@openremote/or-scheduler 1.30.0 → 1.30.1

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.
@@ -1,4 +1,4 @@
1
- var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).constructor;e.exports=()=>t},7052(e){"use strict";let t=(async function*(){}).constructor;e.exports=()=>t},9630(e,t,o){"use strict";var n=o(469),i=o(24),r=o(1530);e.exports=o(7009)||n.call(r,i)},24(e){"use strict";e.exports=Function.prototype.apply},1530(e){"use strict";e.exports=Function.prototype.call},7196(e,t,o){"use strict";var n=o(469),i=o(6757),r=o(1530),a=o(9630);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,r,e)}},7009(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8682(e,t,o){"use strict";var n=o(4295),i=o(7196),r=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var o=n(e,!!t);return"function"==typeof o&&r(e,".prototype.")>-1?i([o]):o}},714(e,t,o){"use strict";var n,i=o(7196),r=o(1233);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&r&&r(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},9997(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},155(e){"use strict";e.exports=EvalError},593(e){"use strict";e.exports=Error},7180(e){"use strict";e.exports=RangeError},9304(e){"use strict";e.exports=ReferenceError},1742(e){"use strict";e.exports=SyntaxError},6757(e){"use strict";e.exports=TypeError},4923(e){"use strict";e.exports=URIError},802(e){"use strict";e.exports=Object},9691(e){"use strict";var t=Object.prototype.toString,o=Math.max,n=function(e,t){for(var o=[],n=0;n<e.length;n+=1)o[n]=e[n];for(var i=0;i<t.length;i+=1)o[i+e.length]=t[i];return o},i=function(e,t){for(var o=[],n=t||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},r=function(e,t){for(var o="",n=0;n<e.length;n+=1)o+=e[n],n+1<e.length&&(o+=t);return o};e.exports=function(e){var a,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var l=i(arguments,1),c=o(0,s.length-l.length),d=[],u=0;u<c;u++)d[u]="$"+u;if(a=Function("binder","return function ("+r(d,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=s.apply(this,n(l,arguments));return Object(t)===t?t:this}return s.apply(e,n(l,arguments))}),s.prototype){var f=function(){};f.prototype=s.prototype,a.prototype=new f,f.prototype=null}return a}},469(e,t,o){"use strict";var n=o(9691);e.exports=Function.prototype.bind||n},5175(e){"use strict";let t=(function*(){}).constructor;e.exports=()=>t},4295(e,t,o){"use strict";var n,i=o(802),r=o(593),a=o(155),s=o(7180),l=o(9304),c=o(1742),d=o(6757),u=o(4923),f=o(7256),h=o(5414),m=o(7954),b=o(3452),p=o(1358),F=o(5720),g=o(3515),v=o(1233),_=o(9997),y=function(){throw new d},w=v?function(){try{return arguments.callee,y}catch(e){try{return v(arguments,"callee").get}catch(e){return y}}}():y,E=o(8573)(),C=o(7582),k=o(2170),A=o(9090),x=o(24),D=o(1530),S={},T="u">typeof Uint8Array&&C?C(Uint8Array):n,O={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":E&&C?C([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?n:Float16Array,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":S,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&C?C(C([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&E&&C?C(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&E&&C?C(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&C?C(""[Symbol.iterator]()):n,"%Symbol%":E?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":w,"%TypedArray%":T,"%TypeError%":d,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":x,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":k,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":b,"%Math.pow%":p,"%Math.round%":F,"%Math.sign%":g,"%Reflect.getPrototypeOf%":A};if(C)try{null.error}catch(e){var I=C(C(e));O["%Error.prototype%"]=I}var B=o(3260),R=o(5175),P=o(7052),N=function e(t){var o;if("%AsyncFunction%"===t)o=B()||void 0;else if("%GeneratorFunction%"===t)o=R()||void 0;else if("%AsyncGeneratorFunction%"===t)o=P()||void 0;else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&C&&(o=C(i.prototype))}return O[t]=o,o},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=o(469),U=o(9731),j=M.call(D,Array.prototype.concat),$=M.call(x,Array.prototype.splice),V=M.call(D,String.prototype.replace),z=M.call(D,String.prototype.slice),q=M.call(D,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Y=/\\(\\)?/g,W=function(e){var t=z(e,0,1),o=z(e,-1);if("%"===t&&"%"!==o)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return V(e,H,function(e,t,o,i){n[n.length]=o?V(i,Y,"$1"):t||e}),n},G=function(e,t){var o,n=e;if(U(L,n)&&(n="%"+(o=L[n])[0]+"%"),U(O,n)){var i=O[n];if(i===S&&(i=N(n)),void 0===i&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=W(e),n=o.length>0?o[0]:"",i=G("%"+n+"%",t),r=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],$(o,j([0,1],l)));for(var u=1,f=!0;u<o.length;u+=1){var h=o[u],m=z(h,0,1),b=z(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===b||"'"===b||"`"===b)&&m!==b)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),n+="."+h,U(O,r="%"+n+"%"))a=O[r];else if(null!=a){if(!(h in a)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(v&&u+1>=o.length){var p=v(a,h);a=(f=!!p)&&"get"in p&&!("originalValue"in p.get)?p.get:a[h]}else f=U(a,h),a=a[h];f&&!s&&(O[r]=a)}}return a}},2170(e,t,o){"use strict";e.exports=o(802).getPrototypeOf||null},9090(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},7582(e,t,o){"use strict";var n=o(9090),i=o(2170),r=o(714);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:r?function(e){return r(e)}:null},1067(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},1233(e,t,o){"use strict";var n=o(1067);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},8573(e,t,o){"use strict";var n="u">typeof Symbol&&Symbol,i=o(9535);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},9535(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),o=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(o))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},9731(e,t,o){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=o(469).call(n,i)},4954(e,t,o){!function(){"use strict";var t="input is invalid type",n="object"==typeof window,i=n?window:{};i.JS_SHA256_NO_WINDOW&&(n=!1);var r=!n&&"object"==typeof self,a=!i.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;a?i=o.g:r&&(i=self);var s=!i.JS_SHA256_NO_COMMON_JS&&e.exports,l="function"==typeof define&&define.amd,c=!i.JS_SHA256_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,d="0123456789abcdef".split(""),u=[-0x80000000,8388608,32768,128],f=[24,16,8,0],h=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],m=["hex","array","digest","arrayBuffer"],b=[];(i.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),c&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var p=function(e,t){return function(o){return new y(t,!0).update(o)[e]()}},F=function(e){var t=p("hex",e);a&&(t=g(t,e)),t.create=function(){return new y(e)},t.update=function(e){return t.create().update(e)};for(var o=0;o<m.length;++o){var n=m[o];t[n]=p(n,e)}return t},g=function(e,n){var r,a=o(7791),s=o(5610).Buffer,l=n?"sha224":"sha256";return r=s.from&&!i.JS_SHA256_NO_BUFFER_FROM?s.from:function(e){return new s(e)},function(o){if("string"==typeof o)return a.createHash(l).update(o,"utf8").digest("hex");if(null==o)throw Error(t);return o.constructor===ArrayBuffer&&(o=new Uint8Array(o)),Array.isArray(o)||ArrayBuffer.isView(o)||o.constructor===s?a.createHash(l).update(r(o)).digest("hex"):e(o)}},v=function(e,t){return function(o,n){return new w(o,t,!0).update(n)[e]()}},_=function(e){var t=v("hex",e);t.create=function(t){return new w(t,e)},t.update=function(e,o){return t.create(e).update(o)};for(var o=0;o<m.length;++o){var n=m[o];t[n]=v(n,e)}return t};function y(e,t){t?(b[0]=b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0,this.blocks=b):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=0xc1059ed8,this.h1=0x367cd507,this.h2=0x3070dd17,this.h3=0xf70e5939,this.h4=0xffc00b31,this.h5=0x68581511,this.h6=0x64f98fa7,this.h7=0xbefa4fa4):(this.h0=0x6a09e667,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function w(e,o,n){var i,r=typeof e;if("string"===r){var a,s=[],l=e.length,d=0;for(i=0;i<l;++i)(a=e.charCodeAt(i))<128?s[d++]=a:(a<2048?s[d++]=192|a>>>6:(a<55296||a>=57344?s[d++]=224|a>>>12:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++i)),s[d++]=240|a>>>18,s[d++]=128|a>>>12&63),s[d++]=128|a>>>6&63),s[d++]=128|63&a);e=s}else if("object"===r){if(null===e)throw Error(t);else if(c&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!c||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);e.length>64&&(e=new y(o,!0).update(e).array());var u=[],f=[];for(i=0;i<64;++i){var h=e[i]||0;u[i]=92^h,f[i]=54^h}y.call(this,o,n),this.update(f),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}y.prototype.update=function(e){if(!this.finalized){var o,n=typeof e;if("string"!==n){if("object"===n){if(null===e)throw Error(t);else if(c&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!c||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);o=!0}for(var i,r,a=0,s=e.length,l=this.blocks;a<s;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,this.block=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0),o)for(r=this.start;a<s&&r<64;++a)l[r>>>2]|=e[a]<<f[3&r++];else for(r=this.start;a<s&&r<64;++a)(i=e.charCodeAt(a))<128?l[r>>>2]|=i<<f[3&r++]:(i<2048?l[r>>>2]|=(192|i>>>6)<<f[3&r++]:(i<55296||i>=57344?l[r>>>2]|=(224|i>>>12)<<f[3&r++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++a)),l[r>>>2]|=(240|i>>>18)<<f[3&r++],l[r>>>2]|=(128|i>>>12&63)<<f[3&r++]),l[r>>>2]|=(128|i>>>6&63)<<f[3&r++]),l[r>>>2]|=(128|63&i)<<f[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.block=l[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},y.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=u[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},y.prototype.hash=function(){var e,t,o,n,i,r,a,s,l,c,d=this.h0,u=this.h1,f=this.h2,m=this.h3,b=this.h4,p=this.h5,F=this.h6,g=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((i=v[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,o=((i=v[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,v[e]=v[e-16]+t+v[e-7]+o|0;for(c=u&f,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,g=(i=v[0]-0x543c9a5b)-0x8f1a6c7|0,m=i+0x170e9b5|0):(a=0x2a01a605,g=(i=v[0]-0xc881298)-0x5ab00ac6|0,m=i+0x8909ae5|0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),o=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7),n=(a=d&u)^d&f^c,i=g+o+(b&p^~b&F)+h[e]+v[e],r=t+n,g=m+i|0,m=i+r|0),t=(m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10),o=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),n=(s=m&d)^m&u^a,i=F+o+(g&b^~g&p)+h[e+1]+v[e+1],r=t+n,F=f+i|0,t=((f=i+r|0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),o=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7),n=(l=f&m)^f&d^s,i=p+o+(F&g^~F&b)+h[e+2]+v[e+2],r=t+n,p=u+i|0,t=((u=i+r|0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),o=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),n=(c=u&f)^u&m^l,i=b+o+(p&F^~p&g)+h[e+3]+v[e+3],r=t+n,b=d+i|0,d=i+r|0,this.chromeBugWorkAround=!0;this.h0=this.h0+d|0,this.h1=this.h1+u|0,this.h2=this.h2+f|0,this.h3=this.h3+m|0,this.h4=this.h4+b|0,this.h5=this.h5+p|0,this.h6=this.h6+F|0,this.h7=this.h7+g|0},y.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,i=this.h4,r=this.h5,a=this.h6,s=this.h7,l=d[e>>>28&15]+d[e>>>24&15]+d[e>>>20&15]+d[e>>>16&15]+d[e>>>12&15]+d[e>>>8&15]+d[e>>>4&15]+d[15&e]+d[t>>>28&15]+d[t>>>24&15]+d[t>>>20&15]+d[t>>>16&15]+d[t>>>12&15]+d[t>>>8&15]+d[t>>>4&15]+d[15&t]+d[o>>>28&15]+d[o>>>24&15]+d[o>>>20&15]+d[o>>>16&15]+d[o>>>12&15]+d[o>>>8&15]+d[o>>>4&15]+d[15&o]+d[n>>>28&15]+d[n>>>24&15]+d[n>>>20&15]+d[n>>>16&15]+d[n>>>12&15]+d[n>>>8&15]+d[n>>>4&15]+d[15&n]+d[i>>>28&15]+d[i>>>24&15]+d[i>>>20&15]+d[i>>>16&15]+d[i>>>12&15]+d[i>>>8&15]+d[i>>>4&15]+d[15&i]+d[r>>>28&15]+d[r>>>24&15]+d[r>>>20&15]+d[r>>>16&15]+d[r>>>12&15]+d[r>>>8&15]+d[r>>>4&15]+d[15&r]+d[a>>>28&15]+d[a>>>24&15]+d[a>>>20&15]+d[a>>>16&15]+d[a>>>12&15]+d[a>>>8&15]+d[a>>>4&15]+d[15&a];return this.is224||(l+=d[s>>>28&15]+d[s>>>24&15]+d[s>>>20&15]+d[s>>>16&15]+d[s>>>12&15]+d[s>>>8&15]+d[s>>>4&15]+d[15&s]),l},y.prototype.toString=y.prototype.hex,y.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,i=this.h4,r=this.h5,a=this.h6,s=this.h7,l=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,o>>>24&255,o>>>16&255,o>>>8&255,255&o,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,r>>>24&255,r>>>16&255,r>>>8&255,255&r,a>>>24&255,a>>>16&255,a>>>8&255,255&a];return this.is224||l.push(s>>>24&255,s>>>16&255,s>>>8&255,255&s),l},y.prototype.array=y.prototype.digest,y.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},w.prototype=new y,w.prototype.finalize=function(){if(y.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();y.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),y.prototype.finalize.call(this)}};var E=F();E.sha256=E,E.sha224=F(!0),E.sha256.hmac=_(),E.sha224.hmac=_(!0),s?e.exports=E:(i.sha256=E.sha256,i.sha224=E.sha224,l&&define(function(){return E}))}()},3472(e,t,o){e=o.nmd(e);var n,i="__lodash_hash_undefined__",r="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",u="[object Map]",f="[object Number]",h="[object Object]",m="[object Promise]",b="[object RegExp]",p="[object Set]",F="[object String]",g="[object Symbol]",v="[object WeakMap]",_="[object ArrayBuffer]",y="[object DataView]",w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,C=/^\./,k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,x=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[r]=S[a]=S[_]=S[s]=S[y]=S[l]=S[c]=S[d]=S[u]=S[f]=S[h]=S[b]=S[p]=S[F]=S[v]=!1;var T="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,O="object"==typeof self&&self&&self.Object===Object&&self,I=T||O||Function("return this")(),B=t&&!t.nodeType&&t,R=B&&e&&!e.nodeType&&e,P=R&&R.exports===B&&T.process,N=function(){try{return P&&P.binding("util")}catch(e){}}(),L=N&&N.isTypedArray;function M(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,o=Array(e.size);return e.forEach(function(e,n){o[++t]=[n,e]}),o}function j(e,t){return function(o){return e(t(o))}}function $(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=e}),o}var V=Array.prototype,z=Function.prototype,q=Object.prototype,H=I["__core-js_shared__"],Y=(n=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",W=z.toString,G=q.hasOwnProperty,K=q.toString,J=RegExp("^"+W.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=I.Symbol,Q=I.Uint8Array,Z=j(Object.getPrototypeOf,Object),ee=Object.create,et=q.propertyIsEnumerable,eo=V.splice,en=j(Object.keys,Object),ei=eT(I,"DataView"),er=eT(I,"Map"),ea=eT(I,"Promise"),es=eT(I,"Set"),el=eT(I,"WeakMap"),ec=eT(Object,"create"),ed=eL(ei),eu=eL(er),ef=eL(ea),eh=eL(es),em=eL(el),eb=X?X.prototype:void 0,ep=eb?eb.valueOf:void 0,eF=eb?eb.toString:void 0;function eg(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function ev(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function e_(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function ey(e){var t=-1,o=e?e.length:0;for(this.__data__=new e_;++t<o;)this.add(e[t])}function ew(e){this.__data__=new ev(e)}function eE(e,t){for(var o=e.length;o--;)if(eU(e[o][0],t))return o;return -1}eg.prototype.clear=function(){this.__data__=ec?ec(null):{}},eg.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eg.prototype.get=function(e){var t=this.__data__;if(ec){var o=t[e];return o===i?void 0:o}return G.call(t,e)?t[e]:void 0},eg.prototype.has=function(e){var t=this.__data__;return ec?void 0!==t[e]:G.call(t,e)},eg.prototype.set=function(e,t){return this.__data__[e]=ec&&void 0===t?i:t,this},ev.prototype.clear=function(){this.__data__=[]},ev.prototype.delete=function(e){var t=this.__data__,o=eE(t,e);return!(o<0)&&(o==t.length-1?t.pop():eo.call(t,o,1),!0)},ev.prototype.get=function(e){var t=this.__data__,o=eE(t,e);return o<0?void 0:t[o][1]},ev.prototype.has=function(e){return eE(this.__data__,e)>-1},ev.prototype.set=function(e,t){var o=this.__data__,n=eE(o,e);return n<0?o.push([e,t]):o[n][1]=t,this},e_.prototype.clear=function(){this.__data__={hash:new eg,map:new(er||ev),string:new eg}},e_.prototype.delete=function(e){return eS(this,e).delete(e)},e_.prototype.get=function(e){return eS(this,e).get(e)},e_.prototype.has=function(e){return eS(this,e).has(e)},e_.prototype.set=function(e,t){return eS(this,e).set(e,t),this},ey.prototype.add=ey.prototype.push=function(e){return this.__data__.set(e,i),this},ey.prototype.has=function(e){return this.__data__.has(e)},ew.prototype.clear=function(){this.__data__=new ev},ew.prototype.delete=function(e){return this.__data__.delete(e)},ew.prototype.get=function(e){return this.__data__.get(e)},ew.prototype.has=function(e){return this.__data__.has(e)},ew.prototype.set=function(e,t){var o=this.__data__;if(o instanceof ev){var n=o.__data__;if(!er||n.length<199)return n.push([e,t]),this;o=this.__data__=new e_(n)}return o.set(e,t),this};var eC=function(e,t,o){for(var n=-1,i=Object(e),r=o(e),a=r.length;a--;){var s=r[++n];if(!1===t(i[s],s,i))break}return e};function ek(e,t){var o;t=eB(t,e)?[t]:e$(o=t)?o:eP(o);for(var n=0,i=t.length;null!=e&&n<i;)e=e[eN(t[n++])];return n&&n==i?e:void 0}function eA(e,t){return null!=e&&t in Object(e)}function ex(e,t,o,n,i){return e===t||(null!=e&&null!=t&&(eH(e)||eY(t))?function(e,t,o,n,i,d){var m=e$(e),v=e$(t),w=a,E=a;m||(w=(w=eO(e))==r?h:w),v||(E=(E=eO(t))==r?h:E);var C=w==h&&!M(e),k=E==h&&!M(t),A=w==E;if(A&&!C)return d||(d=new ew),m||eG(e)?eD(e,t,o,n,i,d):function(e,t,o,n,i,r,a){switch(o){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case _:if(e.byteLength!=t.byteLength||!n(new Q(e),new Q(t)))break;return!0;case s:case l:case f:return eU(+e,+t);case c:return e.name==t.name&&e.message==t.message;case b:case F:return e==t+"";case u:var d=U;case p:var h=2&r;if(d||(d=$),e.size!=t.size&&!h)break;var m=a.get(e);if(m)return m==t;r|=1,a.set(e,t);var v=eD(d(e),d(t),n,i,r,a);return a.delete(e),v;case g:if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,w,o,n,i,d);if(!(2&i)){var x=C&&G.call(e,"__wrapped__"),D=k&&G.call(t,"__wrapped__");if(x||D){var S=x?e.value():e,T=D?t.value():t;return d||(d=new ew),o(S,T,n,i,d)}}return!!A&&(d||(d=new ew),function(e,t,o,n,i,r){var a=2&i,s=eK(e),l=s.length;if(l!=eK(t).length&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:G.call(t,d)))return!1}var u=r.get(e);if(u&&r.get(t))return u==t;var f=!0;r.set(e,t),r.set(t,e);for(var h=a;++c<l;){var m=e[d=s[c]],b=t[d];if(n)var p=a?n(b,m,d,t,e,r):n(m,b,d,e,t,r);if(!(void 0===p?m===b||o(m,b,n,i,r):p)){f=!1;break}h||(h="constructor"==d)}if(f&&!h){var F=e.constructor,g=t.constructor;F!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof F&&F instanceof F&&"function"==typeof g&&g instanceof g)&&(f=!1)}return r.delete(e),r.delete(t),f}(e,t,o,n,i,d))}(e,t,ex,o,n,i):e!=e&&t!=t)}function eD(e,t,o,n,i,r){var a=2&i,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var d=-1,u=!0,f=1&i?new ey:void 0;for(r.set(e,t),r.set(t,e);++d<s;){var h=e[d],m=t[d];if(n)var b=a?n(m,h,d,t,e,r):n(h,m,d,e,t,r);if(void 0!==b){if(b)continue;u=!1;break}if(f){if(!function(e,t){for(var o=-1,n=e?e.length:0;++o<n;)if(t(e[o],o,e))return!0;return!1}(t,function(e,t){if(!f.has(t)&&(h===e||o(h,e,n,i,r)))return f.add(t)})){u=!1;break}}else if(!(h===m||o(h,m,n,i,r))){u=!1;break}}return r.delete(e),r.delete(t),u}function eS(e,t){var o,n,i=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?i["string"==typeof t?"string":"hash"]:i.map}function eT(e,t){var o,n=null==e?void 0:e[t];return!(!eH(n)||(o=n,Y&&Y in o))&&(ez(n)||M(n)?J:x).test(eL(n))?n:void 0}var eO=function(e){return K.call(e)};function eI(e,t){return!!(t=null==t?0x1fffffffffffff:t)&&("number"==typeof e||D.test(e))&&e>-1&&e%1==0&&e<t}function eB(e,t){if(e$(e))return!1;var o=typeof e;return!!("number"==o||"symbol"==o||"boolean"==o||null==e||eW(e))||E.test(e)||!w.test(e)||null!=t&&e in Object(t)}(ei&&eO(new ei(new ArrayBuffer(1)))!=y||er&&eO(new er)!=u||ea&&eO(ea.resolve())!=m||es&&eO(new es)!=p||el&&eO(new el)!=v)&&(eO=function(e){var t=K.call(e),o=t==h?e.constructor:void 0,n=o?eL(o):void 0;if(n)switch(n){case ed:return y;case eu:return u;case ef:return m;case eh:return p;case em:return v}return t});function eR(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}var eP=eM(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(eW(e))return eF?eF.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var t,o=[];return C.test(e)&&o.push(""),e.replace(k,function(e,t,n,i){o.push(n?i.replace(A,"$1"):t||e)}),o});function eN(e){if("string"==typeof e||eW(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function eL(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eM(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var o=function(){var n=arguments,i=t?t.apply(this,n):n[0],r=o.cache;if(r.has(i))return r.get(i);var a=e.apply(this,n);return o.cache=r.set(i,a),a};return o.cache=new(eM.Cache||e_),o}function eU(e,t){return e===t||e!=e&&t!=t}function ej(e){var t;return eY(t=e)&&eV(t)&&G.call(e,"callee")&&(!et.call(e,"callee")||K.call(e)==r)}eM.Cache=e_;var e$=Array.isArray;function eV(e){return null!=e&&eq(e.length)&&!ez(e)}function ez(e){var t=eH(e)?K.call(e):"";return t==d||"[object GeneratorFunction]"==t}function eq(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eH(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eY(e){return!!e&&"object"==typeof e}function eW(e){return"symbol"==typeof e||eY(e)&&K.call(e)==g}var eG=L?function(e){return L(e)}:function(e){return eY(e)&&eq(e.length)&&!!S[K.call(e)]};function eK(e){return eV(e)?function(e){var t=e$(e)||ej(e)?function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}(e.length,String):[],o=t.length,n=!!o;for(var i in e)G.call(e,i)&&!(n&&("length"==i||eI(i,o)))&&t.push(i);return t}(e):function(e){if(o=(t=e)&&t.constructor,t!==("function"==typeof o&&o.prototype||q))return en(e);var t,o,n=[];for(var i in Object(e))G.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}function eJ(e){return e}e.exports=function(e,t,o){var n=e$(e)||eG(e);if(t="function"==typeof(c=t)?c:null==c?eJ:"object"==typeof c?e$(c)?(i=c[0],r=c[1],eB(i)&&(a=r)==a&&!eH(a)?eR(eN(i),r):function(e){var t,o,n,a,s,l=(t=e,o=i,void 0===(n=null==t?void 0:ek(t,o))?void 0:n);return void 0===l&&l===r?(a=e,s=i,null!=a&&function(e,t,o){t=eB(t,e)?[t]:e$(n=t)?n:eP(n);for(var n,i,r=-1,a=t.length;++r<a;){var s=eN(t[r]);if(!(i=null!=e&&o(e,s)))break;e=e[s]}if(i)return i;var a=e?e.length:0;return!!a&&eq(a)&&eI(s,a)&&(e$(e)||ej(e))}(a,s,eA)):ex(r,l,void 0,3)}):1==(l=function(e){for(var t=eK(e),o=t.length;o--;){var n,i=t[o],r=e[i];t[o]=[i,r,(n=r)==n&&!eH(n)]}return t}(s=c)).length&&l[0][2]?eR(l[0][0],l[0][1]):function(e){return e===s||function(e,t){var o=t.length,n=o;if(null==e)return!n;for(e=Object(e);o--;){var i=t[o];if((0,i[2])?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<n;){var r=(i=t[o])[0],a=e[r],s=i[1];if(0,i[2]){if(void 0===a&&!(r in e))return!1}else{var l,c=new ew;if(!(void 0===l?ex(s,a,void 0,3,c):l))return!1}}return!0}(e,l)}:function(e){var t;return eB(e)?(t=eN(e),function(e){return null==e?void 0:e[t]}):function(t){return ek(t,e)}}(c),null==o)if(n||eH(e)){var i,r,a,s,l,c,d,u=e.constructor;o=n?e$(e)?new u:[]:ez(u)&&eH(d=Z(e))?ee(d):{}}else o={};return(n?function(e,t){for(var o=-1,n=e?e.length:0;++o<n&&!1!==t(e[o],o,e););return e}:function(e,t){return e&&eC(e,t,eK)})(e,function(e,n,i){return t(o,e,n,i)}),o}},7256(e){"use strict";e.exports=Math.abs},5414(e){"use strict";e.exports=Math.floor},981(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},7954(e){"use strict";e.exports=Math.max},3452(e){"use strict";e.exports=Math.min},1358(e){"use strict";e.exports=Math.pow},5720(e){"use strict";e.exports=Math.round},3515(e,t,o){"use strict";var n=o(981);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},4867(e,t,o){e=o.nmd(e),e.exports=function(){"use strict";function t(){return $.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(r(e,t))return!1;return!0}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var o,n=[],i=e.length;for(o=0;o<i;++o)n.push(t(e[o],o));return n}function u(e,t){for(var o in t)r(t,o)&&(e[o]=t[o]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,o,n){return tr(e,t,o,n,!0).utc()}function h(e){return null==e._pf&&(e._pf={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}),e._pf}function m(e){var t=null,o=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=h(e),o=V.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function b(e){var t=f(0/0);return null!=e?u(h(t),e):h(t).userInvalidated=!0,t}V=Array.prototype.some?Array.prototype.some:function(e){var t,o=Object(this),n=o.length>>>0;for(t=0;t<n;t++)if(t in o&&e.call(this,o[t],t,o))return!0;return!1};var p,F,g=t.momentProperties=[],v=!1;function _(e,t){var o,n,i,r=g.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),r>0)for(o=0;o<r;o++)s(i=t[n=g[o]])||(e[n]=i);return e}function y(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():0/0),this.isValid()||(this._d=new Date(0/0)),!1===v&&(v=!0,t.updateOffset(this),v=!1)}function w(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function E(e){!1===t.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,o){var n=!0;return u(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var i,a,s,l=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(s in i+="\n["+a+"] ",arguments[0])r(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}E(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+Error().stack),n=!1}return o.apply(this,arguments)},o)}var k={};function A(e,o){null!=t.deprecationHandler&&t.deprecationHandler(e,o),k[e]||(E(o),k[e]=!0)}function x(e){return"u">typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e,t){var o,n=u({},e);for(o in t)r(t,o)&&(i(e[o])&&i(t[o])?(n[o]={},u(n[o],e[o]),u(n[o],t[o])):null!=t[o]?n[o]=t[o]:delete n[o]);for(o in e)r(e,o)&&!r(t,o)&&i(e[o])&&(n[o]=u({},n[o]));return n}function S(e){null!=e&&this.set(e)}function T(e,t,o){var n=""+Math.abs(e);return(e>=0?o?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var O=/(\[[^\[]*\])|(\\)?([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,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},R={};function P(e,t,o,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(R[e]=i),t&&(R[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),o&&(R[o]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(B[t=L(t,e.localeData())]=B[t]||function(e){var t,o,n,i=e.match(O);for(o=0,n=i.length;o<n;o++)R[i[o]]?i[o]=R[i[o]]:i[o]=(t=i[o]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var o,r="";for(o=0;o<n;o++)r+=x(i[o])?i[o].call(t,e):i[o];return r}}(t),B[t](e)):e.localeData().invalidDate()}function L(e,t){var o=5;function n(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;o>=0&&I.test(e);)e=e.replace(I,n),I.lastIndex=0,o-=1;return e}var M={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 U(e){return"string"==typeof e?M[e]||M[e.toLowerCase()]:void 0}function j(e){var t,o,n={};for(o in e)r(e,o)&&(t=U(o))&&(n[t]=e[o]);return n}var $,V,z,q={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},H=Object.keys?Object.keys:function(e){var t,o=[];for(t in e)r(e,t)&&o.push(t);return o},Y=/\d/,W=/\d\d/,G=/\d{3}/,K=/\d{4}/,J=/[+-]?\d{6}/,X=/\d\d?/,Q=/\d\d\d\d?/,Z=/\d\d\d\d\d\d?/,ee=/\d{1,3}/,et=/\d{1,4}/,eo=/[+-]?\d{1,6}/,en=/\d+/,ei=/[+-]?\d+/,er=/Z|[+-]\d\d:?\d\d/gi,ea=/Z|[+-]\d\d(?::?\d\d)?/gi,es=/[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,el=/^[1-9]\d?/,ec=/^([1-9]\d|\d)/;function ed(e,t,o){z[e]=x(t)?t:function(e,n){return e&&o?o:t}}function eu(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ef(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function eh(e){var t=+e,o=0;return 0!==t&&isFinite(t)&&(o=ef(t)),o}z={};var em={};function eb(e,t){var o,n,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,o){o[t]=eh(e)}),n=e.length,o=0;o<n;o++)em[e[o]]=i}function ep(e,t){eb(e,function(e,o,n,i){n._w=n._w||{},t(e,n._w,n,i)})}function eF(e){return e%4==0&&e%100!=0||e%400==0}function eg(e){return eF(e)?366:365}P("Y",0,0,function(){var e=this.year();return e<=9999?T(e,4):"+"+e}),P(0,["YY",2],0,function(){return this.year()%100}),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),ed("Y",ei),ed("YY",X,W),ed("YYYY",et,K),ed("YYYYY",eo,J),ed("YYYYYY",eo,J),eb(["YYYYY","YYYYYY"],0),eb("YYYY",function(e,o){o[0]=2===e.length?t.parseTwoDigitYear(e):eh(e)}),eb("YY",function(e,o){o[0]=t.parseTwoDigitYear(e)}),eb("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return eh(e)+(eh(e)>68?1900:2e3)};var ev=e_("FullYear",!0);function e_(e,o){return function(n){return null!=n?(ew(this,e,n),t.updateOffset(this,o),this):ey(this,e)}}function ey(e,t){if(!e.isValid())return 0/0;var o=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return n?o.getUTCSeconds():o.getSeconds();case"Minutes":return n?o.getUTCMinutes():o.getMinutes();case"Hours":return n?o.getUTCHours():o.getHours();case"Date":return n?o.getUTCDate():o.getDate();case"Day":return n?o.getUTCDay():o.getDay();case"Month":return n?o.getUTCMonth():o.getMonth();case"FullYear":return n?o.getUTCFullYear():o.getFullYear();default:return 0/0}}function ew(e,t,o){var n,i,r,a;if(!(!e.isValid()||isNaN(o))){switch(n=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?n.setUTCMilliseconds(o):n.setMilliseconds(o));case"Seconds":return void(i?n.setUTCSeconds(o):n.setSeconds(o));case"Minutes":return void(i?n.setUTCMinutes(o):n.setMinutes(o));case"Hours":return void(i?n.setUTCHours(o):n.setHours(o));case"Date":return void(i?n.setUTCDate(o):n.setDate(o));case"FullYear":break;default:return}r=e.month(),a=29!==(a=e.date())||1!==r||eF(o)?a:28,i?n.setUTCFullYear(o,r,a):n.setFullYear(o,r,a)}}function eE(e,t){if(isNaN(e)||isNaN(t))return 0/0;var o=(t%12+12)%12;return e+=(t-o)/12,1===o?eF(e)?29:28:31-o%7%2}ez=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},P("M",["MM",2],"Mo",function(){return this.month()+1}),P("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),P("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ed("M",X,el),ed("MM",X,W),ed("MMM",function(e,t){return t.monthsShortRegex(e)}),ed("MMMM",function(e,t){return t.monthsRegex(e)}),eb(["M","MM"],function(e,t){t[1]=eh(e)-1}),eb(["MMM","MMMM"],function(e,t,o,n){var i=o._locale.monthsParse(e,n,o._strict);null!=i?t[1]=i:h(o).invalidMonth=e});var eC="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ek=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eA(e,t,o){var n,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();if(o)if("MMM"===t)return -1!==(i=ez.call(this._shortMonthsParse,a))?i:null;else return -1!==(i=ez.call(this._longMonthsParse,a))?i:null;return"MMM"===t?-1!==(i=ez.call(this._shortMonthsParse,a))||-1!==(i=ez.call(this._longMonthsParse,a))?i:null:-1!==(i=ez.call(this._longMonthsParse,a))||-1!==(i=ez.call(this._shortMonthsParse,a))?i:null}function ex(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=eh(t);else if(!l(t=e.localeData().monthsParse(t)))return e}var o=t,n=e.date();return n=n<29?n:Math.min(n,eE(e.year(),o)),e._isUTC?e._d.setUTCMonth(o,n):e._d.setMonth(o,n),e}function eD(e){return null!=e?(ex(this,e),t.updateOffset(this,!0),this):ey(this,"Month")}function eS(){function e(e,t){return t.length-e.length}var t,o,n,i,r=[],a=[],s=[];for(t=0;t<12;t++)o=f([2e3,t]),n=eu(this.monthsShort(o,"")),i=eu(this.months(o,"")),r.push(n),a.push(i),s.push(i),s.push(n);r.sort(e),a.sort(e),s.sort(e),this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+r.join("|")+")","i")}function eT(e,t,o,n,i,r,a){var s;return e<100&&e>=0?isFinite((s=new Date(e+400,t,o,n,i,r,a)).getFullYear())&&s.setFullYear(e):s=new Date(e,t,o,n,i,r,a),s}function eO(e){var t,o;return e<100&&e>=0?(o=Array.prototype.slice.call(arguments),o[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,o))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eI(e,t,o){var n=7+t-o;return-((7+eO(e,0,n).getUTCDay()-t)%7)+n-1}function eB(e,t,o,n,i){var r,a,s=1+7*(t-1)+(7+o-n)%7+eI(e,n,i);return s<=0?a=eg(r=e-1)+s:s>eg(e)?(r=e+1,a=s-eg(e)):(r=e,a=s),{year:r,dayOfYear:a}}function eR(e,t,o){var n,i,r=eI(e.year(),t,o),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?n=a+eP(i=e.year()-1,t,o):a>eP(e.year(),t,o)?(n=a-eP(e.year(),t,o),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function eP(e,t,o){var n=eI(e,t,o),i=eI(e+1,t,o);return(eg(e)-n+i)/7}function eN(e,t){return e.slice(t,7).concat(e.slice(0,t))}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),ed("w",X,el),ed("ww",X,W),ed("W",X,el),ed("WW",X,W),ep(["w","ww","W","WW"],function(e,t,o,n){t[n.substr(0,1)]=eh(e)}),P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),ed("d",X),ed("e",X),ed("E",X),ed("dd",function(e,t){return t.weekdaysMinRegex(e)}),ed("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ed("dddd",function(e,t){return t.weekdaysRegex(e)}),ep(["dd","ddd","dddd"],function(e,t,o,n){var i=o._locale.weekdaysParse(e,n,o._strict);null!=i?t.d=i:h(o).invalidWeekday=e}),ep(["d","e","E"],function(e,t,o,n){t[n]=eh(e)});var eL="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eM(e,t,o){var n,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();if(o)if("dddd"===t)return -1!==(i=ez.call(this._weekdaysParse,a))?i:null;else if("ddd"===t)return -1!==(i=ez.call(this._shortWeekdaysParse,a))?i:null;else return -1!==(i=ez.call(this._minWeekdaysParse,a))?i:null;return"dddd"===t?-1!==(i=ez.call(this._weekdaysParse,a))||-1!==(i=ez.call(this._shortWeekdaysParse,a))||-1!==(i=ez.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ez.call(this._shortWeekdaysParse,a))||-1!==(i=ez.call(this._weekdaysParse,a))||-1!==(i=ez.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ez.call(this._minWeekdaysParse,a))||-1!==(i=ez.call(this._weekdaysParse,a))||-1!==(i=ez.call(this._shortWeekdaysParse,a))?i:null}function eU(){function e(e,t){return t.length-e.length}var t,o,n,i,r,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)o=f([2e3,1]).day(t),n=eu(this.weekdaysMin(o,"")),i=eu(this.weekdaysShort(o,"")),r=eu(this.weekdays(o,"")),a.push(n),s.push(i),l.push(r),c.push(n),c.push(i),c.push(r);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function ej(){return this.hours()%12||12}function e$(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eV(e,t){return t._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,ej),P("k",["kk",2],0,function(){return this.hours()||24}),P("hmm",0,0,function(){return""+ej.apply(this)+T(this.minutes(),2)}),P("hmmss",0,0,function(){return""+ej.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),P("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),P("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),e$("a",!0),e$("A",!1),ed("a",eV),ed("A",eV),ed("H",X,ec),ed("h",X,el),ed("k",X,el),ed("HH",X,W),ed("hh",X,W),ed("kk",X,W),ed("hmm",Q),ed("hmmss",Z),ed("Hmm",Q),ed("Hmmss",Z),eb(["H","HH"],3),eb(["k","kk"],function(e,t,o){var n=eh(e);t[3]=24===n?0:n}),eb(["a","A"],function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e}),eb(["h","hh"],function(e,t,o){t[3]=eh(e),h(o).bigHour=!0}),eb("hmm",function(e,t,o){var n=e.length-2;t[3]=eh(e.substr(0,n)),t[4]=eh(e.substr(n)),h(o).bigHour=!0}),eb("hmmss",function(e,t,o){var n=e.length-4,i=e.length-2;t[3]=eh(e.substr(0,n)),t[4]=eh(e.substr(n,2)),t[5]=eh(e.substr(i)),h(o).bigHour=!0}),eb("Hmm",function(e,t,o){var n=e.length-2;t[3]=eh(e.substr(0,n)),t[4]=eh(e.substr(n))}),eb("Hmmss",function(e,t,o){var n=e.length-4,i=e.length-2;t[3]=eh(e.substr(0,n)),t[4]=eh(e.substr(n,2)),t[5]=eh(e.substr(i))});var ez,eq,eH=e_("Hours",!0),eY={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eC,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eL,meridiemParse:/[ap]\.?m?\.?/i},eW={},eG={};function eK(e){return e?e.toLowerCase().replace("_","-"):e}function eJ(t){var n=null;if(void 0===eW[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eq._abbr,o(3118)("./locale/"+t),eX(n)}catch(e){eW[t]=null}return eW[t]}function eX(e,t){var o;return e&&((o=s(t)?eZ(e):eQ(e,t))?eq=o:"u">typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eq._abbr}function eQ(e,t){if(null===t)return delete eW[e],null;var o,n=eY;if(t.abbr=e,null!=eW[e])A("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."),n=eW[e]._config;else if(null!=t.parentLocale)if(null!=eW[t.parentLocale])n=eW[t.parentLocale]._config;else{if(null==(o=eJ(t.parentLocale)))return eG[t.parentLocale]||(eG[t.parentLocale]=[]),eG[t.parentLocale].push({name:e,config:t}),null;n=o._config}return eW[e]=new S(D(n,t)),eG[e]&&eG[e].forEach(function(e){eQ(e.name,e.config)}),eX(e),eW[e]}function eZ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eq;if(!n(e)){if(t=eJ(e))return t;e=[e]}return function(e){for(var t,o,n,i,r=0;r<e.length;){for(t=(i=eK(e[r]).split("-")).length,o=(o=eK(e[r+1]))?o.split("-"):null;t>0;){if(n=eJ(i.slice(0,t).join("-")))return n;if(o&&o.length>=t&&function(e,t){var o,n=Math.min(e.length,t.length);for(o=0;o<n;o+=1)if(e[o]!==t[o])return o;return n}(i,o)>=t-1)break;t--}r++}return eq}(e)}function e0(e){var t,o=e._a;return o&&-2===h(e).overflow&&(t=o[1]<0||o[1]>11?1:o[2]<1||o[2]>eE(o[0],o[1])?2:o[3]<0||o[3]>24||24===o[3]&&(0!==o[4]||0!==o[5]||0!==o[6])?3:o[4]<0||o[4]>59?4:o[5]<0||o[5]>59?5:o[6]<0||o[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var e1=/^\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)?)?$/,e2=/^\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)?)?$/,e3=/Z|[+-]\d\d(?::?\d\d)?/,e5=[["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]],e4=[["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/]],e6=/^\/?Date\((-?\d+)/i,e8=/^(?:(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}))$/,e9={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e7(e){var t,o,n,i,r,a,s=e._i,l=e1.exec(s)||e2.exec(s),c=e5.length,d=e4.length;if(l){for(h(e).iso=!0,t=0,o=c;t<o;t++)if(e5[t][1].exec(l[1])){i=e5[t][0],n=!1!==e5[t][2];break}if(null==i){e._isValid=!1;return}if(l[3]){for(t=0,o=d;t<o;t++)if(e4[t][1].exec(l[3])){r=(l[2]||" ")+e4[t][0];break}if(null==r){e._isValid=!1;return}}if(!n&&null!=r){e._isValid=!1;return}if(l[4])if(e3.exec(l[4]))a="Z";else{e._isValid=!1;return}e._f=i+(r||"")+(a||""),tn(e)}else e._isValid=!1}function te(e){var t,o,n,i,r,a,s,l,c,d,u,f=e8.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(f){if(r=f[4],a=f[3],s=f[2],l=f[5],c=f[6],d=f[7],u=[(t=parseInt(r,10))<=49?2e3+t:t<=999?1900+t:t,eC.indexOf(a),parseInt(s,10),parseInt(l,10),parseInt(c,10)],d&&u.push(parseInt(d,10)),o=f[1],n=u,i=e,o&&eL.indexOf(o)!==new Date(n[0],n[1],n[2]).getDay()&&(h(i).weekdayMismatch=!0,i._isValid=!1,1))return;e._a=u,e._tzm=function(e,t,o){if(e)return e9[e];if(t)return 0;var n=parseInt(o,10),i=n%100;return(n-i)/100*60+i}(f[8],f[9],f[10]),e._d=eO.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function tt(e,t,o){return null!=e?e:null!=t?t:o}function to(e){var o,n,i,r,a,s,l,c,d,u,f,m,b,p,F,g,v=[];if(!e._d){for(f=new Date(t.now()),p=e._useUTC?[f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()]:[f.getFullYear(),f.getMonth(),f.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(n=(o=e)._w).GG||null!=n.W||null!=n.E?(s=1,l=4,i=tt(n.GG,o._a[0],eR(ta(),1,4).year),r=tt(n.W,1),((a=tt(n.E,1))<1||a>7)&&(d=!0)):(s=o._locale._week.dow,l=o._locale._week.doy,u=eR(ta(),s,l),i=tt(n.gg,o._a[0],u.year),r=tt(n.w,u.week),null!=n.d?((a=n.d)<0||a>6)&&(d=!0):null!=n.e?(a=n.e+s,(n.e<0||n.e>6)&&(d=!0)):a=s),r<1||r>eP(i,s,l)?h(o)._overflowWeeks=!0:null!=d?h(o)._overflowWeekday=!0:(c=eB(i,r,a,s,l),o._a[0]=c.year,o._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(g=tt(e._a[0],p[0]),(e._dayOfYear>eg(g)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),b=eO(g,0,e._dayOfYear),e._a[1]=b.getUTCMonth(),e._a[2]=b.getUTCDate()),m=0;m<3&&null==e._a[m];++m)e._a[m]=v[m]=p[m];for(;m<7;m++)e._a[m]=v[m]=null==e._a[m]?+(2===m):e._a[m];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eO:eT).apply(null,v),F=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==F&&(h(e).weekdayMismatch=!0)}}function tn(e){if(e._f===t.ISO_8601)return void e7(e);if(e._f===t.RFC_2822)return void te(e);e._a=[],h(e).empty=!0;var o,n,i,a,s,l,c,d,u,f,m,b=""+e._i,p=b.length,F=0;for(m=(c=L(e._f,e._locale).match(O)||[]).length,s=0;s<m;s++)if(d=c[s],(l=(b.match(!r(z,d)?new RegExp(eu(d.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,o,n,i){return t||o||n||i}))):z[d](e._strict,e._locale))||[])[0])&&((u=b.substr(0,b.indexOf(l))).length>0&&h(e).unusedInput.push(u),b=b.slice(b.indexOf(l)+l.length),F+=l.length),R[d])l?h(e).empty=!1:h(e).unusedTokens.push(d),null!=l&&r(em,d)&&em[d](l,e._a,e,d);else e._strict&&!l&&h(e).unusedTokens.push(d);h(e).charsLeftOver=p-F,b.length>0&&h(e).unusedInput.push(b),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=(o=e._locale,n=e._a[3],null==(i=e._meridiem)?n:null!=o.meridiemHour?o.meridiemHour(n,i):(null!=o.isPM&&((a=o.isPM(i))&&n<12&&(n+=12),a||12!==n||(n=0)),n)),null!==(f=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(f,e._a[0])),to(e),e0(e)}function ti(e){var o=e._i,r=e._f;return(e._locale=e._locale||eZ(e._l),null===o||void 0===r&&""===o)?b({nullInput:!0}):("string"==typeof o&&(e._i=o=e._locale.preparse(o)),w(o))?new y(e0(o)):(c(o)?e._d=o:n(r)?!function(e){var t,o,n,i,r,a,s=!1,l=e._f.length;if(0===l){h(e).invalidFormat=!0,e._d=new Date(0/0);return}for(i=0;i<l;i++)r=0,a=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],tn(t),m(t)&&(a=!0),r+=h(t).charsLeftOver,r+=10*h(t).unusedTokens.length,h(t).score=r,s?r<n&&(n=r,o=t):(null==n||r<n||a)&&(n=r,o=t,a&&(s=!0));u(e,o||t)}(e):r?tn(e):function(e){var o=e._i;if(s(o))e._d=new Date(t.now());else if(c(o))e._d=new Date(o.valueOf());else if("string"==typeof o)!function(e){var o=e6.exec(e._i);if(null!==o){e._d=new Date(+o[1]);return}e7(e),!1!==e._isValid||(delete e._isValid,te(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}(e);else if(n(o))e._a=d(o.slice(0),function(e){return parseInt(e,10)}),to(e);else if(i(o)){if(!e._d){var r=j(e._i),a=void 0===r.day?r.date:r.day;e._a=d([r.year,r.month,a,r.hour,r.minute,r.second,r.millisecond],function(e){return e&&parseInt(e,10)}),to(e)}}else l(o)?e._d=new Date(o):t.createFromInputFallback(e)}(e),m(e)||(e._d=null),e)}function tr(e,t,o,r,s){var l,c={};return(!0===t||!1===t)&&(r=t,t=void 0),(!0===o||!1===o)&&(r=o,o=void 0),(i(e)&&a(e)||n(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=o,c._i=e,c._f=t,c._strict=r,(l=new y(e0(ti(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function ta(e,t,o,n){return tr(e,t,o,n,!1)}t.createFromInputFallback=C("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":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var ts=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()}),tl=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()});function tc(e,t){var o,i;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return ta();for(o=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](o))&&(o=t[i]);return o}var td=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tu(e){var t=j(e),o=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,d=t.second||0,u=t.millisecond||0;this._isValid=function(e){var t,o,n=!1,i=td.length;for(t in e)if(r(e,t)&&!(-1!==ez.call(td,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(o=0;o<i;++o)if(e[td[o]]){if(n)return!1;parseFloat(e[td[o]])!==eh(e[td[o]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*d+6e4*c+1e3*l*3600,this._days=+s+7*a,this._months=+i+3*n+12*o,this._data={},this._locale=eZ(),this._bubble()}function tf(e){return e instanceof tu}function th(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tm(e,t){P(e,0,0,function(){var e=this.utcOffset(),o="+";return e<0&&(e=-e,o="-"),o+T(~~(e/60),2)+t+T(~~e%60,2)})}tm("Z",":"),tm("ZZ",""),ed("Z",ea),ed("ZZ",ea),eb(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=tp(ea,e)});var tb=/([\+\-]|\d\d)/gi;function tp(e,t){var o,n,i=(t||"").match(e);return null===i?null:0===(n=+(60*(o=((i[i.length-1]||[])+"").match(tb)||["-",0,0])[1])+eh(o[2]))?0:"+"===o[0]?n:-n}function tF(e,o){var n,i;return o._isUTC?(n=o.clone(),i=(w(e)||c(e)?e.valueOf():ta(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),t.updateOffset(n,!1),n):ta(e).local()}function tg(e){return-Math.round(e._d.getTimezoneOffset())}function tv(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var t_=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ty=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tw(e,t){var o,n,i,a,s,c,d=e,u=null;return tf(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(d={},t?d[t]=+e:d.milliseconds=+e):(u=t_.exec(e))?(a="-"===u[1]?-1:1,d={y:0,d:eh(u[2])*a,h:eh(u[3])*a,m:eh(u[4])*a,s:eh(u[5])*a,ms:eh(th(1e3*u[6]))*a}):(u=ty.exec(e))?(a="-"===u[1]?-1:1,d={y:tE(u[2],a),M:tE(u[3],a),w:tE(u[4],a),d:tE(u[5],a),h:tE(u[6],a),m:tE(u[7],a),s:tE(u[8],a)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(o=ta(d.from),n=ta(d.to),c=o.isValid()&&n.isValid()?(n=tF(n,o),o.isBefore(n)?i=tC(o,n):((i=tC(n,o)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0},(d={}).ms=c.milliseconds,d.M=c.months),s=new tu(d),tf(e)&&r(e,"_locale")&&(s._locale=e._locale),tf(e)&&r(e,"_isValid")&&(s._isValid=e._isValid),s}function tE(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function tC(e,t){var o={};return o.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=t-e.clone().add(o.months,"M"),o}function tk(e,t){return function(o,n){var i;return null===n||isNaN(+n)||(A(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."),i=o,o=n,n=i),tA(this,tw(o,n),e),this}}function tA(e,o,n,i){var r=o._milliseconds,a=th(o._days),s=th(o._months);e.isValid()&&(i=null==i||i,s&&ex(e,ey(e,"Month")+s*n),a&&ew(e,"Date",ey(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&t.updateOffset(e,a||s))}tw.fn=tu.prototype,tw.invalid=function(){return tw(0/0)};var tx=tk(1,"add"),tD=tk(-1,"subtract");function tS(e){return"string"==typeof e||e instanceof String}function tT(e,t){if(e.date()<t.date())return-tT(t,e);var o,n=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(n,"months");return o=t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i),-(n+o)||0}function tO(e){var t;return void 0===e?this._locale._abbr:(null!=(t=eZ(e))&&(this._locale=t),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tI=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tB(){return this._locale}function tR(e,t,o){return e<100&&e>=0?new Date(e+400,t,o)-126227808e5:new Date(e,t,o).valueOf()}function tP(e,t,o){return e<100&&e>=0?Date.UTC(e+400,t,o)-126227808e5:Date.UTC(e,t,o)}function tN(e,t){return t.erasAbbrRegex(e)}function tL(){var e,t,o,n,i,r=[],a=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)o=eu(c[e].name),n=eu(c[e].abbr),i=eu(c[e].narrow),a.push(o),r.push(n),s.push(i),l.push(o),l.push(n),l.push(i);this._erasRegex=RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+s.join("|")+")","i")}function tM(e,t){P(0,[e,e.length],0,t)}function tU(e,t,o,n,i){var r;return null==e?eR(this,n,i).year:(t>(r=eP(e,n,i))&&(t=r),tj.call(this,e,t,o,n,i))}function tj(e,t,o,n,i){var r=eB(e,t,o,n,i),a=eO(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}P("N",0,0,"eraAbbr"),P("NN",0,0,"eraAbbr"),P("NNN",0,0,"eraAbbr"),P("NNNN",0,0,"eraName"),P("NNNNN",0,0,"eraNarrow"),P("y",["y",1],"yo","eraYear"),P("y",["yy",2],0,"eraYear"),P("y",["yyy",3],0,"eraYear"),P("y",["yyyy",4],0,"eraYear"),ed("N",tN),ed("NN",tN),ed("NNN",tN),ed("NNNN",function(e,t){return t.erasNameRegex(e)}),ed("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eb(["N","NN","NNN","NNNN","NNNNN"],function(e,t,o,n){var i=o._locale.erasParse(e,n,o._strict);i?h(o).era=i:h(o).invalidEra=e}),ed("y",en),ed("yy",en),ed("yyy",en),ed("yyyy",en),ed("yo",function(e,t){return t._eraYearOrdinalRegex||en}),eb(["y","yy","yyy","yyyy"],0),eb(["yo"],function(e,t,o,n){var i;o._locale._eraYearOrdinalRegex&&(i=e.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?t[0]=o._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)}),P(0,["gg",2],0,function(){return this.weekYear()%100}),P(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tM("gggg","weekYear"),tM("ggggg","weekYear"),tM("GGGG","isoWeekYear"),tM("GGGGG","isoWeekYear"),ed("G",ei),ed("g",ei),ed("GG",X,W),ed("gg",X,W),ed("GGGG",et,K),ed("gggg",et,K),ed("GGGGG",eo,J),ed("ggggg",eo,J),ep(["gggg","ggggg","GGGG","GGGGG"],function(e,t,o,n){t[n.substr(0,2)]=eh(e)}),ep(["gg","GG"],function(e,o,n,i){o[i]=t.parseTwoDigitYear(e)}),P("Q",0,"Qo","quarter"),ed("Q",Y),eb("Q",function(e,t){t[1]=(eh(e)-1)*3}),P("D",["DD",2],"Do","date"),ed("D",X,el),ed("DD",X,W),ed("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eb(["D","DD"],2),eb("Do",function(e,t){t[2]=eh(e.match(X)[0])});var t$=e_("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),ed("DDD",ee),ed("DDDD",G),eb(["DDD","DDDD"],function(e,t,o){o._dayOfYear=eh(e)}),P("m",["mm",2],0,"minute"),ed("m",X,ec),ed("mm",X,W),eb(["m","mm"],4);var tV=e_("Minutes",!1);P("s",["ss",2],0,"second"),ed("s",X,ec),ed("ss",X,W),eb(["s","ss"],5);var tz=e_("Seconds",!1);for(P("S",0,0,function(){return~~(this.millisecond()/100)}),P(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,function(){return 10*this.millisecond()}),P(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),P(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),P(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),P(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),P(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ed("S",ee,Y),ed("SS",ee,W),ed("SSS",ee,G),p="SSSS";p.length<=9;p+="S")ed(p,en);function tq(e,t){t[6]=eh(("0."+e)*1e3)}for(p="S";p.length<=9;p+="S")eb(p,tq);F=e_("Milliseconds",!1),P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var tH=y.prototype;function tY(e){return e}tH.add=tx,tH.calendar=function(e,o){if(1==arguments.length)if(arguments[0]){var s,d,u,f;if(s=arguments[0],w(s)||c(s)||tS(s)||l(s)||(u=n(d=s),f=!1,u&&(f=0===d.filter(function(e){return!l(e)&&tS(d)}).length),u&&f)||function(e){var t,o,n=i(e)&&!a(e),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(t=0;t<c;t+=1)o=l[t],s=s||r(e,o);return n&&s}(s)||null==s)e=arguments[0],o=void 0;else(function(e){var t,o,n=i(e)&&!a(e),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)o=l[t],s=s||r(e,o);return n&&s})(arguments[0])&&(o=arguments[0],e=void 0)}else e=void 0,o=void 0;var h=e||ta(),m=tF(h,this).startOf("day"),b=t.calendarFormat(this,m)||"sameElse",p=o&&(x(o[b])?o[b].call(this,h):o[b]);return this.format(p||this.localeData().calendar(b,this,ta(h)))},tH.clone=function(){return new y(this)},tH.diff=function(e,t,o){var n,i,r;if(!this.isValid()||!(n=tF(e,this)).isValid())return 0/0;switch(i=(n.utcOffset()-this.utcOffset())*6e4,t=U(t)){case"year":r=tT(this,n)/12;break;case"month":r=tT(this,n);break;case"quarter":r=tT(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-i)/864e5;break;case"week":r=(this-n-i)/6048e5;break;default:r=this-n}return o?r:ef(r)},tH.endOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tP:tR,e){case"year":o=n(this.year()+1,0,1)-1;break;case"quarter":o=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=n(this.year(),this.month()+1,1)-1;break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=36e5-((o+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":o=this._d.valueOf(),o+=6e4-(o%6e4+6e4)%6e4-1;break;case"second":o=this._d.valueOf(),o+=1e3-(o%1e3+1e3)%1e3-1}return this._d.setTime(o),t.updateOffset(this,!0),this},tH.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var o=N(this,e);return this.localeData().postformat(o)},tH.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||ta(e).isValid())?tw({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tH.fromNow=function(e){return this.from(ta(),e)},tH.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||ta(e).isValid())?tw({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tH.toNow=function(e){return this.to(ta(),e)},tH.get=function(e){return x(this[e=U(e)])?this[e]():this},tH.invalidAt=function(){return h(this).overflow},tH.isAfter=function(e,t){var o=w(e)?e:ta(e);return!!(this.isValid()&&o.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(t).valueOf())},tH.isBefore=function(e,t){var o=w(e)?e:ta(e);return!!(this.isValid()&&o.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<o.valueOf():this.clone().endOf(t).valueOf()<o.valueOf())},tH.isBetween=function(e,t,o,n){var i=w(e)?e:ta(e),r=w(t)?t:ta(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&("("===(n=n||"()")[0]?this.isAfter(i,o):!this.isBefore(i,o))&&(")"===n[1]?this.isBefore(r,o):!this.isAfter(r,o))},tH.isSame=function(e,t){var o,n=w(e)?e:ta(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===n.valueOf():(o=n.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf()))},tH.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tH.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tH.isValid=function(){return m(this)},tH.lang=tI,tH.locale=tO,tH.localeData=tB,tH.max=tl,tH.min=ts,tH.parsingFlags=function(){return u({},h(this))},tH.set=function(e,t){if("object"==typeof e){var o,n=function(e){var t,o=[];for(t in e)r(e,t)&&o.push({unit:t,priority:q[t]});return o.sort(function(e,t){return e.priority-t.priority}),o}(e=j(e)),i=n.length;for(o=0;o<i;o++)this[n[o].unit](e[n[o].unit])}else if(x(this[e=U(e)]))return this[e](t);return this},tH.startOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tP:tR,e){case"year":o=n(this.year(),0,1);break;case"quarter":o=n(this.year(),this.month()-this.month()%3,1);break;case"month":o=n(this.year(),this.month(),1);break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=n(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=((o+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":o=this._d.valueOf(),o-=(o%6e4+6e4)%6e4;break;case"second":o=this._d.valueOf(),o-=(o%1e3+1e3)%1e3}return this._d.setTime(o),t.updateOffset(this,!0),this},tH.subtract=tD,tH.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tH.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tH.toDate=function(){return new Date(this.valueOf())},tH.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,o=t?this.clone().utc():this;if(0>o.year()||o.year()>9999)return N(o,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(x(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(o,"Z"));return N(o,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tH.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,o,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",o=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+o)},"u">typeof Symbol&&null!=Symbol.for&&(tH[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tH.toJSON=function(){return this.isValid()?this.toISOString():null},tH.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tH.unix=function(){return Math.floor(this.valueOf()/1e3)},tH.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tH.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tH.eraName=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].name;return""},tH.eraNarrow=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].narrow;return""},tH.eraAbbr=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].abbr;return""},tH.eraYear=function(){var e,o,n,i,r=this.localeData().eras();for(e=0,o=r.length;e<o;++e)if(n=r[e].since<=r[e].until?1:-1,i=this.clone().startOf("day").valueOf(),r[e].since<=i&&i<=r[e].until||r[e].until<=i&&i<=r[e].since)return(this.year()-t(r[e].since).year())*n+r[e].offset;return this.year()},tH.year=ev,tH.isLeapYear=function(){return eF(this.year())},tH.weekYear=function(e){return tU.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tH.isoWeekYear=function(e){return tU.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tH.quarter=tH.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tH.month=eD,tH.daysInMonth=function(){return eE(this.year(),this.month())},tH.week=tH.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tH.isoWeek=tH.isoWeeks=function(e){var t=eR(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tH.weeksInYear=function(){var e=this.localeData()._week;return eP(this.year(),e.dow,e.doy)},tH.weeksInWeekYear=function(){var e=this.localeData()._week;return eP(this.weekYear(),e.dow,e.doy)},tH.isoWeeksInYear=function(){return eP(this.year(),1,4)},tH.isoWeeksInISOWeekYear=function(){return eP(this.isoWeekYear(),1,4)},tH.date=t$,tH.day=tH.days=function(e){if(!this.isValid())return null!=e?this:0/0;var t,o,n=ey(this,"Day");return null==e?n:(t=e,o=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=o.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d"))},tH.weekday=function(e){if(!this.isValid())return null!=e?this:0/0;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tH.isoWeekday=function(e){if(!this.isValid())return null!=e?this:0/0;if(null==e)return this.day()||7;var t,o=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?o:o-7)},tH.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tH.hour=tH.hours=eH,tH.minute=tH.minutes=tV,tH.second=tH.seconds=tz,tH.millisecond=tH.milliseconds=F,tH.utcOffset=function(e,o,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:0/0;if(null==e)return this._isUTC?r:tg(this);if("string"==typeof e){if(null===(e=tp(ea,e)))return this}else 16>Math.abs(e)&&!n&&(e*=60);return!this._isUTC&&o&&(i=tg(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!o||this._changeInProgress?tA(this,tw(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tH.utc=function(e){return this.utcOffset(0,e)},tH.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tg(this),"m")),this},tH.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tp(er,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tH.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ta(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tH.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tH.isLocal=function(){return!!this.isValid()&&!this._isUTC},tH.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tH.isUtc=tv,tH.isUTC=tv,tH.zoneAbbr=function(){return this._isUTC?"UTC":""},tH.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tH.dates=C("dates accessor is deprecated. Use date instead.",t$),tH.months=C("months accessor is deprecated. Use month instead",eD),tH.years=C("years accessor is deprecated. Use year instead",ev),tH.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tH.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=ti(t))._a?(e=t._isUTC?f(t._a):ta(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var o,n=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0;for(o=0;o<n;o++)eh(e[o])!==eh(t[o])&&r++;return r+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tW=S.prototype;function tG(e,t,o,n){var i=eZ(),r=f().set(n,t);return i[o](r,e)}function tK(e,t,o){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return tG(e,t,o,"month");var n,i=[];for(n=0;n<12;n++)i[n]=tG(e,n,o,"month");return i}function tJ(e,t,o,n){"boolean"==typeof e||(o=t=e,e=!1),l(t)&&(o=t,t=void 0),t=t||"";var i,r=eZ(),a=e?r._week.dow:0,s=[];if(null!=o)return tG(t,(o+a)%7,n,"day");for(i=0;i<7;i++)s[i]=tG(t,(i+a)%7,n,"day");return s}tW.calendar=function(e,t,o){var n=this._calendar[e]||this._calendar.sameElse;return x(n)?n.call(t,o):n},tW.longDateFormat=function(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.match(O).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tW.invalidDate=function(){return this._invalidDate},tW.ordinal=function(e){return this._ordinal.replace("%d",e)},tW.preparse=tY,tW.postformat=tY,tW.relativeTime=function(e,t,o,n){var i=this._relativeTime[o];return x(i)?i(e,t,o,n):i.replace(/%d/i,e)},tW.pastFuture=function(e,t){var o=this._relativeTime[e>0?"future":"past"];return x(o)?o(t):o.replace(/%s/i,t)},tW.set=function(e){var t,o;for(o in e)r(e,o)&&(x(t=e[o])?this[o]=t:this["_"+o]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tW.eras=function(e,o){var n,i,r,a=this._eras||eZ("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"==typeof a[n].since&&(r=t(a[n].since).startOf("day"),a[n].since=r.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":r=t(a[n].until).startOf("day").valueOf(),a[n].until=r.valueOf()}return a},tW.erasParse=function(e,t,o){var n,i,r,a,s,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(r=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),o)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[n];break;case"NNNN":if(r===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([r,a,s].indexOf(e)>=0)return l[n]},tW.erasConvertYear=function(e,o){var n=e.since<=e.until?1:-1;return void 0===o?t(e.since).year():t(e.since).year()+(o-e.offset)*n},tW.erasAbbrRegex=function(e){return r(this,"_erasAbbrRegex")||tL.call(this),e?this._erasAbbrRegex:this._erasRegex},tW.erasNameRegex=function(e){return r(this,"_erasNameRegex")||tL.call(this),e?this._erasNameRegex:this._erasRegex},tW.erasNarrowRegex=function(e){return r(this,"_erasNarrowRegex")||tL.call(this),e?this._erasNarrowRegex:this._erasRegex},tW.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ek).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},tW.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ek.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tW.monthsParse=function(e,t,o){var n,i,r;if(this._monthsParseExact)return eA.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=f([2e3,n]),o&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),o||this._monthsParse[n]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=RegExp(r.replace(".",""),"i")),o&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(o&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!o&&this._monthsParse[n].test(e))return n}},tW.monthsRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||eS.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(r(this,"_monthsRegex")||(this._monthsRegex=es),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tW.monthsShortRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||eS.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(r(this,"_monthsShortRegex")||(this._monthsShortRegex=es),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tW.week=function(e){return eR(e,this._week.dow,this._week.doy).week},tW.firstDayOfYear=function(){return this._week.doy},tW.firstDayOfWeek=function(){return this._week.dow},tW.weekdays=function(e,t){var o=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eN(o,this._week.dow):e?o[e.day()]:o},tW.weekdaysMin=function(e){return!0===e?eN(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tW.weekdaysShort=function(e){return!0===e?eN(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tW.weekdaysParse=function(e,t,o){var n,i,r;if(this._weekdaysParseExact)return eM.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=f([2e3,1]).day(n),o&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=RegExp(r.replace(".",""),"i")),o&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(o&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(o&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;else if(!o&&this._weekdaysParse[n].test(e))return n}},tW.weekdaysRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(r(this,"_weekdaysRegex")||(this._weekdaysRegex=es),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tW.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=es),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tW.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=es),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tW.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tW.meridiem=function(e,t,o){return e>11?o?"pm":"PM":o?"am":"AM"},eX("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,o=1===eh(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+o}}),t.lang=C("moment.lang is deprecated. Use moment.locale instead.",eX),t.langData=C("moment.langData is deprecated. Use moment.localeData instead.",eZ);var tX=Math.abs;function tQ(e,t,o,n){var i=tw(t,o);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function tZ(e){return e<0?Math.floor(e):Math.ceil(e)}function t0(e){return 4800*e/146097}function t1(e){return 146097*e/4800}function t2(e){return function(){return this.as(e)}}var t3=t2("ms"),t5=t2("s"),t4=t2("m"),t6=t2("h"),t8=t2("d"),t9=t2("w"),t7=t2("M"),oe=t2("Q"),ot=t2("y");function oo(e){return function(){return this.isValid()?this._data[e]:0/0}}var on=oo("milliseconds"),oi=oo("seconds"),or=oo("minutes"),oa=oo("hours"),os=oo("days"),ol=oo("months"),oc=oo("years"),od=Math.round,ou={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function of(e,t,o,n,i){return i.relativeTime(t||1,!!o,e,n)}var oh=Math.abs;function om(e){return(e>0)-(e<0)||+e}function ob(){if(!this.isValid())return this.localeData().invalidDate();var e,t,o,n,i,r,a,s,l=oh(this._milliseconds)/1e3,c=oh(this._days),d=oh(this._months),u=this.asSeconds();return u?(e=ef(l/60),t=ef(e/60),l%=60,e%=60,o=ef(d/12),d%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=u<0?"-":"",r=om(this._months)!==om(u)?"-":"",a=om(this._days)!==om(u)?"-":"",s=om(this._milliseconds)!==om(u)?"-":"",i+"P"+(o?r+o+"Y":"")+(d?r+d+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var op=tu.prototype;return op.isValid=function(){return this._isValid},op.abs=function(){var e=this._data;return this._milliseconds=tX(this._milliseconds),this._days=tX(this._days),this._months=tX(this._months),e.milliseconds=tX(e.milliseconds),e.seconds=tX(e.seconds),e.minutes=tX(e.minutes),e.hours=tX(e.hours),e.months=tX(e.months),e.years=tX(e.years),this},op.add=function(e,t){return tQ(this,e,t,1)},op.subtract=function(e,t){return tQ(this,e,t,-1)},op.as=function(e){if(!this.isValid())return 0/0;var t,o,n=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,o=this._months+t0(t),e){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(t=this._days+Math.round(t1(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},op.asMilliseconds=t3,op.asSeconds=t5,op.asMinutes=t4,op.asHours=t6,op.asDays=t8,op.asWeeks=t9,op.asMonths=t7,op.asQuarters=oe,op.asYears=ot,op.valueOf=t3,op._bubble=function(){var e,t,o,n,i,r=this._milliseconds,a=this._days,s=this._months,l=this._data;return r>=0&&a>=0&&s>=0||r<=0&&a<=0&&s<=0||(r+=864e5*tZ(t1(s)+a),a=0,s=0),l.milliseconds=r%1e3,l.seconds=(e=ef(r/1e3))%60,l.minutes=(t=ef(e/60))%60,l.hours=(o=ef(t/60))%24,a+=ef(o/24),s+=i=ef(t0(a)),a-=tZ(t1(i)),n=ef(s/12),s%=12,l.days=a,l.months=s,l.years=n,this},op.clone=function(){return tw(this)},op.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():0/0},op.milliseconds=on,op.seconds=oi,op.minutes=or,op.hours=oa,op.days=os,op.weeks=function(){return ef(this.days()/7)},op.months=ol,op.years=oc,op.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var o,n,i,r,a,s,l,c,d,u,f,h,m,b=!1,p=ou;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(b=e),"object"==typeof t&&(p=Object.assign({},ou,t),null!=t.s&&null==t.ss&&(p.ss=t.s-1)),h=this.localeData(),o=!b,n=p,i=tw(this).abs(),r=od(i.as("s")),a=od(i.as("m")),s=od(i.as("h")),l=od(i.as("d")),c=od(i.as("M")),d=od(i.as("w")),u=od(i.as("y")),f=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l],null!=n.w&&(f=f||d<=1&&["w"]||d<n.w&&["ww",d]),(f=f||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=o,f[3]=+this>0,f[4]=h,m=of.apply(null,f),b&&(m=h.pastFuture(+this,m)),h.postformat(m)},op.toISOString=ob,op.toString=ob,op.toJSON=ob,op.locale=tO,op.localeData=tB,op.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ob),op.lang=tI,P("X",0,0,"unix"),P("x",0,0,"valueOf"),ed("x",ei),ed("X",/[+-]?\d+(\.\d{1,3})?/),eb("X",function(e,t,o){o._d=new Date(1e3*parseFloat(e))}),eb("x",function(e,t,o){o._d=new Date(eh(e))}),t.version="2.30.1",$=ta,t.fn=tH,t.min=function(){var e=[].slice.call(arguments,0);return tc("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tc("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=f,t.unix=function(e){return ta(1e3*e)},t.months=function(e,t){return tK(e,t,"months")},t.isDate=c,t.locale=eX,t.invalid=b,t.duration=tw,t.isMoment=w,t.weekdays=function(e,t,o){return tJ(e,t,o,"weekdays")},t.parseZone=function(){return ta.apply(null,arguments).parseZone()},t.localeData=eZ,t.isDuration=tf,t.monthsShort=function(e,t){return tK(e,t,"monthsShort")},t.weekdaysMin=function(e,t,o){return tJ(e,t,o,"weekdaysMin")},t.defineLocale=eQ,t.updateLocale=function(e,t){if(null!=t){var o,n,i=eY;null!=eW[e]&&null!=eW[e].parentLocale?eW[e].set(D(eW[e]._config,t)):(null!=(n=eJ(e))&&(i=n._config),t=D(i,t),null==n&&(t.abbr=e),(o=new S(t)).parentLocale=eW[e],eW[e]=o),eX(e)}else null!=eW[e]&&(null!=eW[e].parentLocale?(eW[e]=eW[e].parentLocale,e===eX()&&eX(e)):null!=eW[e]&&delete eW[e]);return eW[e]},t.locales=function(){return H(eW)},t.weekdaysShort=function(e,t,o){return tJ(e,t,o,"weekdaysShort")},t.normalizeUnits=U,t.relativeTimeRounding=function(e){return void 0===e?od:"function"==typeof e&&(od=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==ou[e]&&(void 0===t?ou[e]:(ou[e]=t,"s"===e&&(ou.ss=t-1),!0))},t.calendarFormat=function(e,t){var o=e.diff(t,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"},t.prototype=tH,t.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"},t}()},3118(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3118,e.exports=t},3109(e,t,o){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,d=s&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,b=Object.prototype.toString,p=Function.prototype.toString,F=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,y=String.prototype.toLowerCase,w=RegExp.prototype.test,E=Array.prototype.concat,C=Array.prototype.join,k=Array.prototype.slice,A=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,O="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T?"object":"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,B=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(1/0===e||-1/0===e||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var i=String(n),r=g.call(t,i.length+1);return v.call(i,o,"$&_")+"."+v.call(v.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,o,"$&_")}var P=o(6550),N=P.custom,L=q(N)?N:null,M={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function j(e,t,o){var n=M[o.quoteStyle||t];return n+e+n}function $(e){return!O||!("object"==typeof e&&(O in e||void 0!==e[O]))}function V(e){return"[object Array]"===W(e)&&$(e)}function z(e){return"[object RegExp]"===W(e)&&$(e)}function q(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,s){var l,b,_,w,A,D=n||{};if(Y(D,"quoteStyle")&&!Y(M,D.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(Y(D,"maxStringLength")&&("number"==typeof D.maxStringLength?D.maxStringLength<0&&1/0!==D.maxStringLength:null!==D.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!Y(D,"customInspect")||D.customInspect;if("boolean"!=typeof N&&"symbol"!==N)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(D,"indent")&&null!==D.indent&&" "!==D.indent&&!(parseInt(D.indent,10)===D.indent&&D.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(D,"numericSeparator")&&"boolean"!=typeof D.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var H=D.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,o){if(t.length>o.maxStringLength){var n=t.length-o.maxStringLength;return e(g.call(t,0,o.maxStringLength),o)+("... "+n)+" more character"+(n>1?"s":"")}var i=U[o.quoteStyle||"single"];return i.lastIndex=0,j(v.call(v.call(t,i,"\\$1"),/[\x00-\x1f]/g,K),"single",o)}(t,D);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return H?R(t,et):et}if("bigint"==typeof t){var eo=String(t)+"n";return H?R(t,eo):eo}var en=void 0===D.depth?5:D.depth;if(void 0===i&&(i=0),i>=en&&en>0&&"object"==typeof t)return V(t)?"[Array]":"[Object]";var ei=function(e,t){var o;if(" "===e.indent)o=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;o=C.call(Array(e.indent+1)," ")}return{base:o,prev:C.call(Array(t+1),o)}}(D,i);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function er(t,o,n){if(o&&(s=k.call(s)).push(o),n){var r={depth:D.depth};return Y(D,"quoteStyle")&&(r.quoteStyle=D.quoteStyle),e(t,r,i+1,s)}return e(t,D,i+1,s)}if("function"==typeof t&&!z(t)){var ea=function(e){if(e.name)return e.name;var t=F.call(p.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),es=ee(t,er);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(es.length>0?" { "+C.call(es,", ")+" }":"")}if(q(t)){var el=T?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):S.call(t);return"object"!=typeof t||T?el:J(el)}if((ec=t)&&"object"==typeof ec&&("u">typeof HTMLElement&&ec instanceof HTMLElement||"string"==typeof ec.nodeName&&"function"==typeof ec.getAttribute)){for(var ec,ed,eu="<"+y.call(String(t.nodeName)),ef=t.attributes||[],eh=0;eh<ef.length;eh++){eu+=" "+ef[eh].name+"="+j((ed=ef[eh].value,v.call(String(ed),/"/g,"&quot;")),"double",D)}return eu+=">",t.childNodes&&t.childNodes.length&&(eu+="..."),eu+="</"+y.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var em=ee(t,er);return ei&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(em)?"["+Z(em,ei)+"]":"[ "+C.call(em,", ")+" ]"}if("[object Error]"===W(l=t)&&$(l)){var eb=ee(t,er);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===eb.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(eb,", ")+" }":"{ ["+String(t)+"] "+C.call(E.call("[cause]: "+er(t.cause),eb),", ")+" }"}if("object"==typeof t&&N){if(L&&"function"==typeof t[L]&&P)return P(t,{depth:en-i});else if("symbol"!==N&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!r||!e||"object"!=typeof e)return!1;try{r.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ep=[];return a&&a.call(t,function(e,o){ep.push(er(o,t,!0)+" => "+er(e,t))}),Q("Map",r.call(t),ep,ei)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{r.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eF=[];return d&&d.call(t,function(e){eF.push(er(e,t))}),Q("Set",c.call(t),eF,ei)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===W(b=t)&&$(b))return J(er(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return J(er(x.call(t)));if("[object Boolean]"===W(_=t)&&$(_))return J(m.call(t));if("[object String]"===W(w=t)&&$(w))return J(er(String(t)));if("u">typeof window&&t===window)return"{ [object Window] }";if("u">typeof globalThis&&t===globalThis||void 0!==o.g&&t===o.g)return"{ [object globalThis] }";if(!("[object Date]"===W(A=t)&&$(A))&&!z(t)){var eg=ee(t,er),ev=B?B(t)===Object.prototype:t instanceof Object||t.constructor===Object,e_=t instanceof Object?"":"null prototype",ey=!ev&&O&&Object(t)===t&&O in t?g.call(W(t),8,-1):e_?"Object":"",ew=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ey||e_?"["+C.call(E.call([],ey||[],e_||[]),": ")+"] ":"");return 0===eg.length?ew+"{}":ei?ew+"{"+Z(eg,ei)+"}":ew+"{ "+C.call(eg,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function Y(e,t){return H.call(e,t)}function W(e){return b.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var o=0,n=e.length;o<n;o++)if(e[o]===t)return o;return -1}function K(e){var t=e.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return o?"\\"+o:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function J(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Q(e,t,o,n){return e+" ("+t+") {"+(n?Z(o,n):C.call(o,", "))+"}"}function Z(e,t){if(0===e.length)return"";var o="\n"+t.prev+t.base;return o+C.call(e,","+o)+"\n"+t.prev}function ee(e,t){var o,n=V(e),i=[];if(n){i.length=e.length;for(var r=0;r<e.length;r++)i[r]=Y(e,r)?t(e[r],e):""}var a="function"==typeof D?D(e):[];if(T){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)if(Y(e,l)&&(!n||String(Number(l))!==l||!(l<e.length)))if(T&&o["$"+l]instanceof Symbol)continue;else w.call(/[^\w$]/,l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e));if("function"==typeof D)for(var c=0;c<a.length;c++)I.call(e,a[c])&&i.push("["+t(a[c])+"]: "+t(e[a[c]],e));return i}},4461(e,t,o){e=o.nmd(e),(function(){"use strict";var n={function:!0,object:!0},i=n[typeof window]&&window||this,r=n[typeof t]&&t,a=n.object&&e&&!e.nodeType&&e,s=r&&a&&"object"==typeof o.g&&o.g;s&&(s.global===s||s.window===s||s.self===s)&&(i=s);var l=/\bOpera/,c=Object.prototype,d=c.hasOwnProperty,u=c.toString;function f(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function h(e){return e=g(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:f(e)}function m(e,t){for(var o in e)d.call(e,o)&&t(e[o],o,e)}function b(e){return null==e?f(e):u.call(e).slice(8,-1)}function p(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function F(e,t){var o=null,n=function(n,i){o=t(o,n,i,e)},i=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=0x1fffffffffffff)for(;++i<r;)n(e[i],i);else m(e,n);return o}function g(e){return String(e).replace(/^ +| +$/g,"")}function v(e){var t,o,n,r,a,s=i,c=e&&"object"==typeof e&&"String"!=b(e);c&&(s=e,e=null);var d=s.navigator||{},f=d.userAgent||"";e||(e=f);var _=c?!!d.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(u.toString()),y="Object",w=c&&s.java?"JavaPackage":b(s.java),E=/\bJava/.test(w)&&s.java,C=E&&b(s.environment)==(c?y:"Environment"),k=E?"a":"α",A=E?"b":"β",x=s.document||{},D=s.operamini||s.opera,S=l.test(S=c&&D?D["[[Class]]"]:b(D))?S:D=null,T=e,O=[],I=null,B=e==f,R=B&&D&&"function"==typeof D.version&&D.version(),P=F([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(t,o){return t||RegExp("\\b"+(o.pattern||p(o))+"\\b","i").exec(e)&&(o.label||o)}),N=F(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],function(t,o){return t||RegExp("\\b"+(o.pattern||p(o))+"\\b","i").exec(e)&&(o.label||o)}),L=j([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),M=F({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}},function(t,o,n){return t||(o[L]||o[/^[a-z]+(?: +[a-z]+\b)*/i.exec(L)]||RegExp("\\b"+p(n)+"(?:\\b|\\w*\\d)","i").exec(e))&&n}),U=F(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],function(t,o){var n,i,r,a=o.pattern||p(o);return!t&&(t=RegExp("\\b"+a+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(n=t,i=o.label||o,r={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"},a&&i&&/^Win/i.test(n)&&!/^Windows Phone /i.test(n)&&(r=r[/[\d.]+$/.exec(n)])&&(n="Windows "+r),n=String(n),a&&i&&(n=n.replace(RegExp(a,"i"),i)),t=n=h(n.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])),t});function j(t){return F(t,function(t,o){var n=o.pattern||p(o);return!t&&(t=RegExp("\\b"+n+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+n+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+n+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(o.label&&!RegExp(n,"i").test(o.label)?o.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),o=o.label||o,t=h(t[0].replace(RegExp(n,"i"),o).replace(RegExp("; *(?:"+o+"[_-])?","i")," ").replace(RegExp("("+o+")[-_.]?(\\w)","i"),"$1 $2"))),t})}function $(t){return F(t,function(t,o){return t||(RegExp(o+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null})}if(P&&(P=[P]),/\bAndroid\b/.test(U)&&!L&&(r=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(e))&&(L=g(r[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),M&&!L?L=j([M]):M&&L&&(L=L.replace(RegExp("^("+p(M)+")[-_.\\s]","i"),M+" ").replace(RegExp("^("+p(M)+")[-_.]?(\\w)","i"),M+" $2")),(r=/\bGoogle TV\b/.exec(L))&&(L=r[0]),/\bSimulator\b/i.test(e)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==N&&/\bOPiOS\b/.test(e)&&O.push("running in Turbo/Uncompressed mode"),"IE"==N&&/\blike iPhone OS\b/.test(e)?(M=(r=v(e.replace(/like iPhone OS/,""))).manufacturer,L=r.product):/^iP/.test(L)?(N||(N="Safari"),U="iOS"+((r=/ OS ([\d_]+)/i.exec(e))?" "+r[1].replace(/_/g,"."):"")):"Konqueror"==N&&/^Linux\b/i.test(U)?U="Kubuntu":M&&"Google"!=M&&(/Chrome/.test(N)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(L))||/\bAndroid\b/.test(U)&&/^Chrome/.test(N)&&/\bVersion\//i.test(e)?(N="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==N?(/\bMobi/i.test(e)||(U="Android",O.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&O.unshift("accelerated")):"UC Browser"==N&&/\bUCWEB\b/.test(e)?O.push("speed mode"):"PaleMoon"==N&&(r=/\bFirefox\/([\d.]+)\b/.exec(e))?O.push("identifying as Firefox "+r[1]):"Firefox"==N&&(r=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(U||(U="Firefox OS"),L||(L=r[1])):!N||(r=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(N))?(N&&!L&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(r+"/")+8))&&(N=null),(r=L||M||U)&&(L||M||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(N=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:r)+" Browser")):"Electron"==N&&(r=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&O.push("Chromium "+r),R||(R=$(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",p(N),"(?:Firefox|Minefield|NetFront)"])),(r="iCab"==P&&parseFloat(R)>3&&"WebKit"||/\bOpera\b/.test(N)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(P)&&"WebKit"||!P&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==P&&/\bPlayStation\b(?! Vita\b)/i.test(N)&&"NetFront")&&(P=[r]),"IE"==N&&(r=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(N+=" Mobile",U="Windows Phone "+(/\+$/.test(r)?r:r+".x"),O.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(N="IE Mobile",U="Windows Phone 8.x",O.unshift("desktop mode"),R||(R=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=N&&"Trident"==P&&(r=/\brv:([\d.]+)/.exec(e))&&(N&&O.push("identifying as "+N+(R?" "+R:"")),N="IE",R=r[1]),B){if(o="global",n=null!=(t=s)?typeof t[o]:"number",/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!t[o])b(r=s.runtime)==(c?y:"ScriptBridgingProxyObject")?(N="Adobe AIR",U=r.flash.system.Capabilities.os):b(r=s.phantom)==(c?y:"RuntimeObject")?(N="PhantomJS",R=(r=r.version||null)&&r.major+"."+r.minor+"."+r.patch):"number"==typeof x.documentMode&&(r=/\bTrident\/(\d+)/i.exec(e))?(R=[R,x.documentMode],(r=+r[1]+4)!=R[1]&&(O.push("IE "+R[1]+" mode"),P&&(P[1]=""),R[1]=r),R="IE"==N?String(R[1].toFixed(1)):R[0]):"number"==typeof x.documentMode&&/^(?:Chrome|Firefox)\b/.test(N)&&(O.push("masking as "+N+" "+R),N="IE",R="11.0",P=["Trident"],U="Windows");else if(E&&(T=(r=E.lang.System).getProperty("os.arch"),U=U||r.getProperty("os.name")+" "+r.getProperty("os.version")),C){try{R=s.require("ringo/engine").version.join("."),N="RingoJS"}catch(e){(r=s.system)&&r.global.system==s.system&&(N="Narwhal",U||(U=r[0].os||null))}N||(N="Rhino")}else"object"==typeof s.process&&!s.process.browser&&(r=s.process)&&("object"==typeof r.versions&&("string"==typeof r.versions.electron?(O.push("Node "+r.versions.node),N="Electron",R=r.versions.electron):"string"==typeof r.versions.nw&&(O.push("Chromium "+R,"Node "+r.versions.node),N="NW.js",R=r.versions.nw)),N||(N="Node.js",T=r.arch,U=r.platform,R=(R=/[\d.]+/.exec(r.version))?R[0]:null));U=U&&h(U)}if(R&&(r=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(R)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(B&&d.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(I=/b/i.test(r)?"beta":"alpha",R=R.replace(RegExp(r+"\\+?$"),"")+("beta"==I?A:k)+(/\d+\+?/.exec(r)||"")),"Fennec"==N||"Firefox"==N&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))N="Firefox Mobile";else if("Maxthon"==N&&R)R=R.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(U=null),"Xbox 360"==L&&/\bIEMobile\b/.test(e)&&O.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(N)||N&&!L&&!/Browser|Mobi/.test(N))&&("Windows CE"==U||/Mobi/i.test(e)))N+=" Mobile";else if("IE"==N&&B)try{null===s.external&&O.unshift("platform preview")}catch(e){O.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(e))&&(r=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||R)?(U=((r=[r,/BB10/.test(e)])[1]?(L=null,M="BlackBerry"):"Device Software")+" "+r[0],R=null):this!=m&&"Wii"!=L&&(B&&D||/Opera/.test(N)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==N&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==N&&(U&&!/^Win/.test(U)&&R>5.5||/\bWindows XP\b/.test(U)&&R>8||8==R&&!/\bTrident\b/.test(e)))&&!l.test(r=v.call(m,e.replace(l,"")+";"))&&r.name&&(r="ing as "+r.name+((r=r.version)?" "+r:""),l.test(N)?(/\bIE\b/.test(r)&&"Mac OS"==U&&(U=null),r="identify"+r):(r="mask"+r,N=S?h(S.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(r)&&(U=null),B||(R=null)),P=["Presto"],O.push(r));(r=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(r=[parseFloat(r.replace(/\.(\d)$/,".0$1")),r],"Safari"==N&&"+"==r[1].slice(-1)?(N="WebKit Nightly",I="alpha",R=r[1].slice(0,-1)):(R==r[1]||R==(r[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1]))&&(R=null),r[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==r[0]&&537.36==r[2]&&parseFloat(r[1])>=28&&"WebKit"==P&&(P=["Blink"]),B&&(_||r[1])?(P&&(P[1]="like Chrome"),r=r[1]||((r=r[0])<530?1:r<532?2:r<532.05?3:r<533?4:r<534.03?5:r<534.07?6:r<534.1?7:r<534.13?8:r<534.16?9:r<534.24?10:r<534.3?11:r<535.01?12:r<535.02?"13+":r<535.07?15:r<535.11?16:r<535.19?17:r<536.05?18:r<536.1?19:r<537.01?20:r<537.11?"21+":r<537.13?23:r<537.18?24:r<537.24?25:r<537.36?26:"Blink"!=P?"27":"28")):(P&&(P[1]="like Safari"),r=(r=r[0])<400?1:r<500?2:r<526?3:r<533?4:r<534?"4+":r<535?5:r<537?6:r<538?7:r<601?8:r<602?9:r<604?10:r<606?11:r<608?12:"12"),P&&(P[1]+=" "+(r+="number"==typeof r?".x":/[.+]/.test(r)?"":"+")),"Safari"==N&&(!R||parseInt(R)>45)?R=r:"Chrome"==N&&/\bHeadlessChrome/i.test(e)&&O.unshift("headless")),"Opera"==N&&(r=/\bzbov|zvav$/.exec(U))?(N+=" ",O.unshift("desktop mode"),"zvav"==r?(N+="Mini",R=null):N+="Mobile",U=U.replace(RegExp(" *"+r+"$"),"")):"Safari"==N&&/\bChrome\b/.exec(P&&P[1])?(O.unshift("desktop mode"),N="Chrome Mobile",R=null,/\bOS X\b/.test(U)?(M="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(N)&&!R&&(R=$("Chrome")),R&&0==R.indexOf(r=/[\d.]+$/.exec(U))&&e.indexOf("/"+r+"-")>-1&&(U=g(U.replace(r,""))),U&&-1!=U.indexOf(N)&&!RegExp(N+" OS").test(U)&&(U=U.replace(RegExp(" *"+p(N)+" *"),"")),P&&!/\b(?:Avant|Nook)\b/.test(N)&&(/Browser|Lunascape|Maxthon/.test(N)||"Safari"!=N&&/^iOS/.test(U)&&/\bSafari\b/.test(P[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(N)&&P[1])&&(r=P[P.length-1])&&O.push(r),O.length&&(O=["("+O.join("; ")+")"]),M&&L&&0>L.indexOf(M)&&O.push("on "+M),L&&O.push((/^on /.test(O[O.length-1])?"":"on ")+L),U&&(a=(r=/ ([\d.+]+)$/.exec(U))&&"/"==U.charAt(U.length-r[0].length-1),U={architecture:32,family:r&&!a?U.replace(r[0],""):U,version:r?r[1]:null,toString:function(){var e=this.version;return this.family+(e&&!a?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(r=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(T))&&!/\bi686\b/i.test(T)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+r),"")),N&&(/\bWOW64\b/i.test(e)||B&&/\w(?:86|32)$/.test(d.cpuClass||d.platform)&&!/\bWin64; x64\b/i.test(e))&&O.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==N&&parseFloat(R)>=39&&(U.architecture=64),e||(e=null);var V={};return V.description=e,V.layout=P&&P[0],V.manufacturer=M,V.name=N,V.prerelease=I,V.product=L,V.ua=e,V.version=N&&R,V.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},V.parse=v,V.toString=function(){return this.description||""},V.version&&O.unshift(R),V.name&&O.unshift(N),U&&N&&!(U==String(U).split(" ")[0]&&(U==N.split(" ")[0]||L))&&O.push(L?"("+U+")":"on "+U),O.length&&(V.description=O.join(" ")),V}var _=v();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(i.platform=_,define(function(){return _})):r&&a?m(_,function(e,t){r[t]=e}):i.platform=_}).call(this)},5539(e){"use strict";var t=String.prototype.replace,o=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},8183(e,t,o){"use strict";var n=o(6334),i=o(4816);e.exports={formats:o(5539),parse:i,stringify:n}},4816(e,t,o){"use strict";var n=o(1954),i=Object.prototype.hasOwnProperty,r=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e,t,o){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&o>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t){var o={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=1/0===t.parameterLimit?void 0:t.parameterLimit,d=l.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==c?c+1:c);if(t.throwOnLimitExceeded&&void 0!==c&&d.length>c)throw RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var u=-1,f=t.charset;if(t.charsetSentinel)for(h=0;h<d.length;++h)0===d[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[h]?f="utf-8":"utf8=%26%2310003%3B"===d[h]&&(f="iso-8859-1"),u=h,h=d.length);for(h=0;h<d.length;++h)if(h!==u){var h,m,b,p=d[h],F=p.indexOf("]="),g=-1===F?p.indexOf("="):F+1;if(-1===g?(m=t.decoder(p,a.decoder,f,"key"),b=t.strictNullHandling?null:""):null!==(m=t.decoder(p.slice(0,g),a.decoder,f,"key"))&&(b=n.maybeMap(s(p.slice(g+1),t,r(o[m])?o[m].length:0),function(e){return t.decoder(e,a.decoder,f,"value")})),b&&t.interpretNumericEntities&&"iso-8859-1"===f&&(b=String(b).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),p.indexOf("[]=")>-1&&(b=r(b)?[b]:b),t.comma&&r(b)&&b.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");b=n.combine([],b,t.arrayLimit,t.plainObjects)}if(null!==m){var v=i.call(o,m);v&&("combine"===t.duplicates||p.indexOf("[]=")>-1)?o[m]=n.combine(o[m],b,t.arrayLimit,t.plainObjects):v&&"last"!==t.duplicates||(o[m]=b)}}return o},c=function(e,t,o,i){var r=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");r=Array.isArray(t)&&t[a]?t[a].length:0}for(var l=i?t:s(t,o,r),c=e.length-1;c>=0;--c){var d,u=e[c];if("[]"===u&&o.parseArrays)d=n.isOverflow(l)?l:o.allowEmptyArrays&&(""===l||o.strictNullHandling&&null===l)?[]:n.combine([],l,o.arrayLimit,o.plainObjects);else{d=o.plainObjects?{__proto__:null}:{};var f="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,h=o.decodeDotInKeys?f.replace(/%2E/g,"."):f,m=parseInt(h,10),b=!isNaN(m)&&u!==h&&String(m)===h&&m>=0&&o.parseArrays;if(o.parseArrays||""!==h)if(b&&m<o.arrayLimit)(d=[])[m]=l;else if(b&&o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");else b?(d[m]=l,n.markOverflow(d,m)):"__proto__"!==h&&(d[h]=l);else d={0:l}}l=d}return l},d=function(e,t){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&i.call(Object.prototype,o)&&!t.allowPrototypes)return;return[o]}var n=[],r=o.indexOf("["),a=r>=0?o.slice(0,r):o;if(a){if(!t.plainObjects&&i.call(Object.prototype,a)&&!t.allowPrototypes)return;n[n.length]=a}for(var s=o.length,l=r,c=0;l>=0&&c<t.depth;){for(var d=1,u=l+1,f=-1;u<s&&f<0;){var h=o.charCodeAt(u);91===h?d+=1:93===h&&0==(d-=1)&&(f=u),u+=1}if(f<0)return n[n.length]="["+o.slice(l)+"]",n;var m=o.slice(l,f+1),b=m.slice(1,-1);if(!t.plainObjects&&i.call(Object.prototype,b)&&!t.allowPrototypes)return;n[n.length]=m,c+=1,l=o.indexOf("[",f+1)}if(l>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+o.slice(l)+"]"}return n},u=function(e,t,o,n){if(e){var i=d(e,o);if(i)return c(i,t,o,n)}},f=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,o=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:o,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:a.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var o=f(t);if(""===e||null==e)return o.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?l(e,o):e,r=o.plainObjects?{__proto__:null}:{},a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],d=u(c,i[c],o,"string"==typeof e);r=n.merge(r,d,o)}return!0===o.allowSparse?r:n.compact(r)}},6334(e,t,o){"use strict";var n=o(6278),i=o(1954),r=o(5539),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,d=function(e,t){c.apply(e,l(t)?t:[t])},u=Date.prototype.toISOString,f=r.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:r.formatters[f],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},m={},b=function e(t,o,r,a,s,c,u,f,b,p,F,g,v,_,y,w,E,C){for(var k,A,x=t,D=C,S=0,T=!1;void 0!==(D=D.get(m))&&!T;){var O=D.get(t);if(S+=1,void 0!==O)if(O===S)throw RangeError("Cyclic object value");else T=!0;void 0===D.get(m)&&(S=0)}if("function"==typeof p?x=p(o,x):x instanceof Date?x=v(x):"comma"===r&&l(x)&&(x=i.maybeMap(x,function(e){return e instanceof Date?v(e):e})),null===x){if(c)return y(b&&!w?b(o,h.encoder,E,"key",_):o);x=""}if("string"==typeof(k=x)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||i.isBuffer(x))return b?[y(w?o:b(o,h.encoder,E,"key",_))+"="+y(b(x,h.encoder,E,"value",_))]:[y(o)+"="+y(String(x))];var I=[];if(void 0===x)return I;if("comma"===r&&l(x))w&&b&&(x=i.maybeMap(x,function(e){return null==e?e:b(e)})),A=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(p))A=p;else{var B=Object.keys(x);A=F?B.sort(F):B}var R=f?String(o).replace(/\./g,"%2E"):String(o),P=a&&l(x)&&1===x.length?R+"[]":R;if(s&&l(x)&&0===x.length)return P+"[]";for(var N=0;N<A.length;++N){var L=A[N],M="object"==typeof L&&L&&void 0!==L.value?L.value:x[L];if(!u||null!==M){var U=g&&f?String(L).replace(/\./g,"%2E"):String(L),j=l(x)?"function"==typeof r?r(P,U):P:P+(g?"."+U:"["+U+"]");C.set(t,S);var $=n();$.set(m,C),d(I,e(M,j,r,a,s,c,u,f,"comma"===r&&w&&l(x)?null:b,p,F,g,v,_,y,w,E,$))}}return I},p=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,o=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=r.default;if(void 0!==e.format){if(!a.call(r.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=r.formatters[n],c=h.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:t,charset:o,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var o,i=e,r=p(t);"function"==typeof r.filter?i=(0,r.filter)("",i):l(r.filter)&&(o=r.filter);var a=[];if("object"!=typeof i||null===i)return"";var c=s[r.arrayFormat],u="comma"===c&&r.commaRoundTrip;o||(o=Object.keys(i)),r.sort&&o.sort(r.sort);for(var f=n(),h=0;h<o.length;++h){var m=o[h];if(null!=m){var F=i[m];r.skipNulls&&null===F||d(a,b(F,m,c,u,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f))}}var g=a.join(r.delimiter),v=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?v+="utf8=%26%2310003%3B"+r.delimiter:v+="utf8=%E2%9C%93"+r.delimiter),g.length>0?v+g:""}},1954(e,t,o){"use strict";var n=o(5539),i=o(6278),r=Object.prototype.hasOwnProperty,a=Array.isArray,s=i(),l=function(e,t){return s.set(e,t),e},c=function(e){return s.has(e)},d=function(e){return s.get(e)},u=function(e,t){s.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),h=function(e){for(;e.length>1;){var t=e.pop(),o=t.obj[t.prop];if(a(o)){for(var n=[],i=0;i<o.length;++i)void 0!==o[i]&&(n[n.length]=o[i]);t.obj[t.prop]=n}}},m=function(e,t){for(var o=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(o[n]=e[n]);return o};e.exports={arrayToObject:m,assign:function(e,t){return Object.keys(t).reduce(function(e,o){return e[o]=t[o],e},e)},combine:function(e,t,o,n){if(c(e)){var i=d(e)+1;return e[i]=t,u(e,i),e}var r=[].concat(e,t);return r.length>o?l(m(r,{plainObjects:n}),r.length-1):r},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],o=[],n=0;n<t.length;++n)for(var i=t[n],r=i.obj[i.prop],a=Object.keys(r),s=0;s<a.length;++s){var l=a[s],c=r[l];"object"==typeof c&&null!==c&&-1===o.indexOf(c)&&(t[t.length]={obj:r,prop:l},o[o.length]=c)}return h(t),e},decode:function(e,t,o){var n=e.replace(/\+/g," ");if("iso-8859-1"===o)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,o,i,r){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===o)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=1024){for(var c=a.length>=1024?a.slice(l,l+1024):a,d=[],u=0;u<c.length;++u){var h=c.charCodeAt(u);if(45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||r===n.RFC1738&&(40===h||41===h)){d[d.length]=c.charAt(u);continue}if(h<128){d[d.length]=f[h];continue}if(h<2048){d[d.length]=f[192|h>>6]+f[128|63&h];continue}if(h<55296||h>=57344){d[d.length]=f[224|h>>12]+f[128|h>>6&63]+f[128|63&h];continue}u+=1,h=65536+((1023&h)<<10|1023&c.charCodeAt(u)),d[d.length]=f[240|h>>18]+f[128|h>>12&63]+f[128|h>>6&63]+f[128|63&h]}s+=d.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:l,maybeMap:function(e,t){if(a(e)){for(var o=[],n=0;n<e.length;n+=1)o[o.length]=t(e[n]);return o}return t(e)},merge:function e(t,o,n){if(!o)return t;if("object"!=typeof o&&"function"!=typeof o){if(a(t)){var i=t.length;if(n&&"number"==typeof n.arrayLimit&&i>n.arrayLimit)return l(m(t.concat(o),n),i);t[i]=o}else if(!t||"object"!=typeof t)return[t,o];else if(c(t)){var s=d(t)+1;t[s]=o,u(t,s)}else{if(n&&n.strictMerge)return[t,o];(n&&(n.plainObjects||n.allowPrototypes)||!r.call(Object.prototype,o))&&(t[o]=!0)}return t}if(!t||"object"!=typeof t){if(c(o)){for(var f=Object.keys(o),h=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},b=0;b<f.length;b++)h[parseInt(f[b],10)+1]=o[f[b]];return l(h,d(o)+1)}var p=[t].concat(o);return n&&"number"==typeof n.arrayLimit&&p.length>n.arrayLimit?l(m(p,n),p.length-1):p}var F=t;return(a(t)&&!a(o)&&(F=m(t,n)),a(t)&&a(o))?(o.forEach(function(o,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&o&&"object"==typeof o?t[i]=e(a,o,n):t[t.length]=o}else t[i]=o}),t):Object.keys(o).reduce(function(t,i){var a=o[i];if(r.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,c(o)&&!c(t)&&l(t,d(o)),c(t)){var s=parseInt(i,10);String(s)===i&&s>=0&&s>d(t)&&u(t,s)}return t},F)}}},6521(e,t,o){"use strict";var n=o(3109),i=o(6757),r=function(e,t,o){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,o||(n.next=e.next,e.next=n),n},a=function(e,t){if(e){var o=r(e,t);return o&&o.value}},s=function(e,t,o){var n=r(e,t);n?n.value=o:e.next={key:t,next:e.next,value:o}},l=function(e,t){if(e)return r(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var o=e&&e.next,n=l(e,t);return n&&o&&o===n&&(e=void 0),!!n},get:function(t){return a(e,t)},has:function(t){var o;return!!(o=e)&&!!r(o,t)},set:function(t,o){e||(e={next:void 0}),s(e,t,o)}};return t}},3977(e,t,o){"use strict";var n=o(4295),i=o(8682),r=o(3109),a=o(6757),s=n("%Map%",!0),l=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),d=i("Map.prototype.has",!0),u=i("Map.prototype.delete",!0),f=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+r(e))},delete:function(t){if(e){var o=u(e,t);return 0===f(e)&&(e=void 0),o}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,o){e||(e=new s),c(e,t,o)}};return t}},8965(e,t,o){"use strict";var n=o(4295),i=o(8682),r=o(3109),a=o(3977),s=o(6757),l=n("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),d=i("WeakMap.prototype.set",!0),u=i("WeakMap.prototype.has",!0),f=i("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,o={assert:function(e){if(!o.has(e))throw new s("Side channel does not contain "+r(e))},delete:function(o){if(l&&o&&("object"==typeof o||"function"==typeof o)){if(e)return f(e,o)}else if(a&&t)return t.delete(o);return!1},get:function(o){return l&&o&&("object"==typeof o||"function"==typeof o)&&e?c(e,o):t&&t.get(o)},has:function(o){return l&&o&&("object"==typeof o||"function"==typeof o)&&e?u(e,o):!!t&&t.has(o)},set:function(o,n){l&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new l),d(e,o,n)):a&&(t||(t=a()),t.set(o,n))}};return o}:a},6278(e,t,o){"use strict";var n=o(6757),i=o(3109),r=o(6521),a=o(3977),s=o(8965)||a||r;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,o){e||(e=s()),e.set(t,o)}};return t}},4532(e,t,o){!function(e){"use strict";var t,o,n=function(){try{if(e.URLSearchParams&&"bar"===new e.URLSearchParams("foo=bar").get("foo"))return e.URLSearchParams}catch(e){}return null}(),i=n&&"a=1"===new n({a:1}).toString(),r=n&&"+"===new n("s=%2B").get("s"),a=n&&"size"in n.prototype,s="__URLSearchParams__",l=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),c=h.prototype,d=!!(e.Symbol&&e.Symbol.iterator);if(!n||!i||!r||!l||!a){c.append=function(e,t){g(this[s],e,t)},c.delete=function(e){delete this[s][e]},c.get=function(e){var t=this[s];return this.has(e)?t[e][0]:null},c.getAll=function(e){var t=this[s];return this.has(e)?t[e].slice(0):[]},c.has=function(e){return _(this[s],e)},c.set=function(e,t){this[s][e]=[""+t]},c.toString=function(){var e,t,o,n,i=this[s],r=[];for(t in i)for(o=m(t),e=0,n=i[t];e<n.length;e++)r.push(o+"="+m(n[e]));return r.join("&")};var u=e.Proxy&&n&&(!r||!l||!i||!a);u?(o=new Proxy(n,{construct:function(e,t){return new e(new h(t[0]).toString())}})).toString=Function.prototype.toString.bind(h):o=h,Object.defineProperty(e,"URLSearchParams",{value:o});var f=e.URLSearchParams.prototype;f.polyfill=!0,!u&&e.Symbol&&(f[e.Symbol.toStringTag]="URLSearchParams"),"forEach"in f||(f.forEach=function(e,t){var o=F(this.toString());Object.getOwnPropertyNames(o).forEach(function(n){o[n].forEach(function(o){e.call(t,o,n,this)},this)},this)}),"sort"in f||(f.sort=function(){var e,t,o,n=F(this.toString()),i=[];for(e in n)i.push(e);for(i.sort(),t=0;t<i.length;t++)this.delete(i[t]);for(t=0;t<i.length;t++){var r=i[t],a=n[r];for(o=0;o<a.length;o++)this.append(r,a[o])}}),"keys"in f||(f.keys=function(){var e=[];return this.forEach(function(t,o){e.push(o)}),p(e)}),"values"in f||(f.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),p(e)}),"entries"in f||(f.entries=function(){var e=[];return this.forEach(function(t,o){e.push([o,t])}),p(e)}),d&&(f[e.Symbol.iterator]=f[e.Symbol.iterator]||f.entries),"size"in f||Object.defineProperty(f,"size",{get:function(){var e=F(this.toString());if(f===this)throw TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(e).reduce(function(t,o){return t+e[o].length},0)}})}function h(e){((e=e||"")instanceof URLSearchParams||e instanceof h)&&(e=e.toString()),this[s]=F(e)}function m(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function b(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(e){return decodeURIComponent(e)})}function p(t){var o={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return d&&(o[e.Symbol.iterator]=function(){return o}),o}function F(e){var t={};if("object"==typeof e)if(v(e))for(var o=0;o<e.length;o++){var n=e[o];if(v(n)&&2===n.length)g(t,n[0],n[1]);else throw TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements")}else for(var i in e)e.hasOwnProperty(i)&&g(t,i,e[i]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var r=e.split("&"),a=0;a<r.length;a++){var s=r[a],l=s.indexOf("=");-1<l?g(t,b(s.slice(0,l)),b(s.slice(l+1))):s&&g(t,b(s),"")}}return t}function g(e,t,o){var n="string"==typeof o?o:null!=o&&"function"==typeof o.toString?o.toString():JSON.stringify(o);_(e,t)?e[t].push(n):e[t]=[n]}function v(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==o.g?o.g:"u">typeof window?window:this)},5610(){},7791(){},6550(){}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t,n)=>{var i=(t,n)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,[n]:t[i]})};i(t,"get"),i(n,"value")},o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";let e,t,i,r,a,s,l;o.r(n),o.d(n,{BY_RRULE_PARTS:()=>hH,EventTypes:()=>tO,FREQUENCIES:()=>hq,INTUITIVE_NOT_APPLICABLE:()=>hG,MONTHS:()=>hJ,OrScheduler:()=>h8,OrSchedulerChangedEvent:()=>h4,OrSchedulerRemovedEvent:()=>h6,RFC_STRICT_NOT_APPLICABLE:()=>hY,RRULE_ENDS:()=>hX,WEEKDAYS:()=>hK});var c,d,u,f,h,m,b,p,F,g,v,_,y,w,E,C,k,A,x,D,S,T,O,I,B,R,P,N,L,M,U,j,$,V,z,q,H,Y,W,G,K,J,X,Q,Z,ee,et,eo,en,ei,er,ea,es,el,ec,ed,eu,ef,eh,em,eb,ep,eF,eg,ev,e_,ey,ew,eE,eC,ek,eA,ex,eD,eS,eT,eO,eI,eB,eR,eP,eN,eL,eM,eU,ej,e$,eV,ez,eq,eH,eY,eW,eG,eK,eJ,eX,eQ,eZ,e0,e1,e2,e3,e5,e4,e6,e8,e9,e7,te,tt,to,tn,ti,tr,ta,ts,tl,tc,td,tu,tf,th,tm,tb,tp,tF,tg,tv,t_,ty,tw,tE,tC,tk,tA,tx,tD,tS,tT,tO,tI={};o.r(tI),o.d(tI,{hasBrowserEnv:()=>l9,hasStandardBrowserEnv:()=>ce,hasStandardBrowserWebWorkerEnv:()=>ct,navigator:()=>l7,origin:()=>co});let tB=globalThis,tR=tB.ShadowRoot&&(void 0===tB.ShadyCSS||tB.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tP=Symbol(),tN=new WeakMap;class tL{constructor(e,t,o){if(this._$cssResult$=!0,o!==tP)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(tR&&void 0===e){let o=void 0!==t&&1===t.length;o&&(e=tN.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&tN.set(t,e))}return e}toString(){return this.cssText}}let tM=e=>new tL("string"==typeof e?e:e+"",void 0,tP),tU=(e,...t)=>new tL(1===e.length?e[0]:t.reduce((t,o,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[n+1],e[0]),e,tP),tj=(e,t)=>{if(tR)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let o of t){let t=document.createElement("style"),n=tB.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=o.cssText,e.appendChild(t)}},t$=tR?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return tM(t)})(e):e,{is:tV,defineProperty:tz,getOwnPropertyDescriptor:tq,getOwnPropertyNames:tH,getOwnPropertySymbols:tY,getPrototypeOf:tW}=Object,tG=globalThis,tK=tG.trustedTypes,tJ=tK?tK.emptyScript:"",tX=tG.reactiveElementPolyfillSupport,tQ={toAttribute(e,t){switch(t){case Boolean:e=e?tJ:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=null!==e;break;case Number:o=null===e?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch(e){o=null}}return o}},tZ=(e,t)=>!tV(e,t),t0={attribute:!0,type:String,converter:tQ,reflect:!1,useDefault:!1,hasChanged:tZ};Symbol.metadata??=Symbol("metadata"),tG.litPropertyMetadata??=new WeakMap;class t1 extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=t0){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);void 0!==n&&tz(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:i}=tq(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){let r=n?.call(this);i?.call(this,t),this.requestUpdate(e,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??t0}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=tW(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...tH(e),...tY(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,o]of t)this.elementProperties.set(e,o)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let o=this._$Eu(e,t);void 0!==o&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let o of new Set(e.flat(1/0).reverse()))t.unshift(t$(o));else void 0!==e&&t.push(t$(e));return t}static _$Eu(e,t){let o=t.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return tj(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(void 0!==n&&!0===o.reflect){let i=(void 0!==o.converter?.toAttribute?o.converter:tQ).toAttribute(t,o.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(void 0!==n&&this._$Em!==n){let e=o.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:tQ;this._$Em=n;let r=i.fromAttribute(t,e.type);this[n]=r??this._$Ej?.get(n)??r,this._$Em=null}}requestUpdate(e,t,o){if(void 0!==e){let n=this.constructor,i=this[e];if(!(((o??=n.getPropertyOptions(e)).hasChanged??tZ)(i,t)||o.useDefault&&o.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,t,o)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:n,wrapped:i},r){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,r??t??this[e]),!0!==i||void 0!==r)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),!0===n&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,o]of e){let{wrapped:e}=o,n=this[t];!0!==e||this._$AL.has(t)||void 0===n||this.C(t,void 0,o,n)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}t1.elementStyles=[],t1.shadowRootOptions={mode:"open"},t1.elementProperties=new Map,t1.finalized=new Map,tX?.({ReactiveElement:t1}),(tG.reactiveElementVersions??=[]).push("2.1.1");let t2=globalThis,t3=t2.trustedTypes,t5=t3?t3.createPolicy("lit-html",{createHTML:e=>e}):void 0,t4="$lit$",t6=`lit$${Math.random().toFixed(9).slice(2)}$`,t8="?"+t6,t9=`<${t8}>`,t7=document,oe=()=>t7.createComment(""),ot=e=>null===e||"object"!=typeof e&&"function"!=typeof e,oo=Array.isArray,on=e=>oo(e)||"function"==typeof e?.[Symbol.iterator],oi="[ \n\f\r]",or=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oa=/-->/g,os=/>/g,ol=RegExp(`>|${oi}(?:([^\\s"'>=/]+)(${oi}*=${oi}*(?:[^
1
+ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).constructor;e.exports=()=>t},7052(e){"use strict";let t=(async function*(){}).constructor;e.exports=()=>t},9630(e,t,o){"use strict";var n=o(469),i=o(24),r=o(1530);e.exports=o(7009)||n.call(r,i)},24(e){"use strict";e.exports=Function.prototype.apply},1530(e){"use strict";e.exports=Function.prototype.call},7196(e,t,o){"use strict";var n=o(469),i=o(6757),r=o(1530),a=o(9630);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,r,e)}},7009(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8682(e,t,o){"use strict";var n=o(4295),i=o(7196),r=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var o=n(e,!!t);return"function"==typeof o&&r(e,".prototype.")>-1?i([o]):o}},714(e,t,o){"use strict";var n,i=o(7196),r=o(1233);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&r&&r(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},9997(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},155(e){"use strict";e.exports=EvalError},593(e){"use strict";e.exports=Error},7180(e){"use strict";e.exports=RangeError},9304(e){"use strict";e.exports=ReferenceError},1742(e){"use strict";e.exports=SyntaxError},6757(e){"use strict";e.exports=TypeError},4923(e){"use strict";e.exports=URIError},802(e){"use strict";e.exports=Object},9691(e){"use strict";var t=Object.prototype.toString,o=Math.max,n=function(e,t){for(var o=[],n=0;n<e.length;n+=1)o[n]=e[n];for(var i=0;i<t.length;i+=1)o[i+e.length]=t[i];return o},i=function(e,t){for(var o=[],n=t||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},r=function(e,t){for(var o="",n=0;n<e.length;n+=1)o+=e[n],n+1<e.length&&(o+=t);return o};e.exports=function(e){var a,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var l=i(arguments,1),c=o(0,s.length-l.length),d=[],u=0;u<c;u++)d[u]="$"+u;if(a=Function("binder","return function ("+r(d,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=s.apply(this,n(l,arguments));return Object(t)===t?t:this}return s.apply(e,n(l,arguments))}),s.prototype){var f=function(){};f.prototype=s.prototype,a.prototype=new f,f.prototype=null}return a}},469(e,t,o){"use strict";var n=o(9691);e.exports=Function.prototype.bind||n},5175(e){"use strict";let t=(function*(){}).constructor;e.exports=()=>t},4295(e,t,o){"use strict";var n,i=o(802),r=o(593),a=o(155),s=o(7180),l=o(9304),c=o(1742),d=o(6757),u=o(4923),f=o(7256),h=o(5414),m=o(7954),b=o(3452),p=o(1358),F=o(5720),g=o(3515),v=o(1233),_=o(9997),y=function(){throw new d},w=v?function(){try{return arguments.callee,y}catch(e){try{return v(arguments,"callee").get}catch(e){return y}}}():y,E=o(8573)(),C=o(7582),k=o(2170),A=o(9090),x=o(24),D=o(1530),S={},T="u">typeof Uint8Array&&C?C(Uint8Array):n,O={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":E&&C?C([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?n:Float16Array,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":S,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&C?C(C([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&E&&C?C(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&E&&C?C(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&C?C(""[Symbol.iterator]()):n,"%Symbol%":E?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":w,"%TypedArray%":T,"%TypeError%":d,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":x,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":k,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":b,"%Math.pow%":p,"%Math.round%":F,"%Math.sign%":g,"%Reflect.getPrototypeOf%":A};if(C)try{null.error}catch(e){var I=C(C(e));O["%Error.prototype%"]=I}var B=o(3260),R=o(5175),P=o(7052),N=function e(t){var o;if("%AsyncFunction%"===t)o=B()||void 0;else if("%GeneratorFunction%"===t)o=R()||void 0;else if("%AsyncGeneratorFunction%"===t)o=P()||void 0;else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&C&&(o=C(i.prototype))}return O[t]=o,o},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=o(469),U=o(9731),j=M.call(D,Array.prototype.concat),$=M.call(x,Array.prototype.splice),V=M.call(D,String.prototype.replace),z=M.call(D,String.prototype.slice),q=M.call(D,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Y=/\\(\\)?/g,W=function(e){var t=z(e,0,1),o=z(e,-1);if("%"===t&&"%"!==o)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return V(e,H,function(e,t,o,i){n[n.length]=o?V(i,Y,"$1"):t||e}),n},G=function(e,t){var o,n=e;if(U(L,n)&&(n="%"+(o=L[n])[0]+"%"),U(O,n)){var i=O[n];if(i===S&&(i=N(n)),void 0===i&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=W(e),n=o.length>0?o[0]:"",i=G("%"+n+"%",t),r=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],$(o,j([0,1],l)));for(var u=1,f=!0;u<o.length;u+=1){var h=o[u],m=z(h,0,1),b=z(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===b||"'"===b||"`"===b)&&m!==b)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),n+="."+h,U(O,r="%"+n+"%"))a=O[r];else if(null!=a){if(!(h in a)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(v&&u+1>=o.length){var p=v(a,h);a=(f=!!p)&&"get"in p&&!("originalValue"in p.get)?p.get:a[h]}else f=U(a,h),a=a[h];f&&!s&&(O[r]=a)}}return a}},2170(e,t,o){"use strict";e.exports=o(802).getPrototypeOf||null},9090(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},7582(e,t,o){"use strict";var n=o(9090),i=o(2170),r=o(714);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:r?function(e){return r(e)}:null},1067(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},1233(e,t,o){"use strict";var n=o(1067);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},8573(e,t,o){"use strict";var n="u">typeof Symbol&&Symbol,i=o(9535);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},9535(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),o=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(o))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},9731(e,t,o){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=o(469).call(n,i)},4954(e,t,o){!function(){"use strict";var t="input is invalid type",n="object"==typeof window,i=n?window:{};i.JS_SHA256_NO_WINDOW&&(n=!1);var r=!n&&"object"==typeof self,a=!i.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;a?i=o.g:r&&(i=self);var s=!i.JS_SHA256_NO_COMMON_JS&&e.exports,l="function"==typeof define&&define.amd,c=!i.JS_SHA256_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,d="0123456789abcdef".split(""),u=[-0x80000000,8388608,32768,128],f=[24,16,8,0],h=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],m=["hex","array","digest","arrayBuffer"],b=[];(i.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),c&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var p=function(e,t){return function(o){return new y(t,!0).update(o)[e]()}},F=function(e){var t=p("hex",e);a&&(t=g(t,e)),t.create=function(){return new y(e)},t.update=function(e){return t.create().update(e)};for(var o=0;o<m.length;++o){var n=m[o];t[n]=p(n,e)}return t},g=function(e,n){var r,a=o(7791),s=o(5610).Buffer,l=n?"sha224":"sha256";return r=s.from&&!i.JS_SHA256_NO_BUFFER_FROM?s.from:function(e){return new s(e)},function(o){if("string"==typeof o)return a.createHash(l).update(o,"utf8").digest("hex");if(null==o)throw Error(t);return o.constructor===ArrayBuffer&&(o=new Uint8Array(o)),Array.isArray(o)||ArrayBuffer.isView(o)||o.constructor===s?a.createHash(l).update(r(o)).digest("hex"):e(o)}},v=function(e,t){return function(o,n){return new w(o,t,!0).update(n)[e]()}},_=function(e){var t=v("hex",e);t.create=function(t){return new w(t,e)},t.update=function(e,o){return t.create(e).update(o)};for(var o=0;o<m.length;++o){var n=m[o];t[n]=v(n,e)}return t};function y(e,t){t?(b[0]=b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0,this.blocks=b):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=0xc1059ed8,this.h1=0x367cd507,this.h2=0x3070dd17,this.h3=0xf70e5939,this.h4=0xffc00b31,this.h5=0x68581511,this.h6=0x64f98fa7,this.h7=0xbefa4fa4):(this.h0=0x6a09e667,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function w(e,o,n){var i,r=typeof e;if("string"===r){var a,s=[],l=e.length,d=0;for(i=0;i<l;++i)(a=e.charCodeAt(i))<128?s[d++]=a:(a<2048?s[d++]=192|a>>>6:(a<55296||a>=57344?s[d++]=224|a>>>12:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++i)),s[d++]=240|a>>>18,s[d++]=128|a>>>12&63),s[d++]=128|a>>>6&63),s[d++]=128|63&a);e=s}else if("object"===r){if(null===e)throw Error(t);else if(c&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!c||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);e.length>64&&(e=new y(o,!0).update(e).array());var u=[],f=[];for(i=0;i<64;++i){var h=e[i]||0;u[i]=92^h,f[i]=54^h}y.call(this,o,n),this.update(f),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}y.prototype.update=function(e){if(!this.finalized){var o,n=typeof e;if("string"!==n){if("object"===n){if(null===e)throw Error(t);else if(c&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!c||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);o=!0}for(var i,r,a=0,s=e.length,l=this.blocks;a<s;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,this.block=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0),o)for(r=this.start;a<s&&r<64;++a)l[r>>>2]|=e[a]<<f[3&r++];else for(r=this.start;a<s&&r<64;++a)(i=e.charCodeAt(a))<128?l[r>>>2]|=i<<f[3&r++]:(i<2048?l[r>>>2]|=(192|i>>>6)<<f[3&r++]:(i<55296||i>=57344?l[r>>>2]|=(224|i>>>12)<<f[3&r++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++a)),l[r>>>2]|=(240|i>>>18)<<f[3&r++],l[r>>>2]|=(128|i>>>12&63)<<f[3&r++]),l[r>>>2]|=(128|i>>>6&63)<<f[3&r++]),l[r>>>2]|=(128|63&i)<<f[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.block=l[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},y.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=u[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},y.prototype.hash=function(){var e,t,o,n,i,r,a,s,l,c,d=this.h0,u=this.h1,f=this.h2,m=this.h3,b=this.h4,p=this.h5,F=this.h6,g=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((i=v[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,o=((i=v[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,v[e]=v[e-16]+t+v[e-7]+o|0;for(c=u&f,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,g=(i=v[0]-0x543c9a5b)-0x8f1a6c7|0,m=i+0x170e9b5|0):(a=0x2a01a605,g=(i=v[0]-0xc881298)-0x5ab00ac6|0,m=i+0x8909ae5|0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),o=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7),n=(a=d&u)^d&f^c,i=g+o+(b&p^~b&F)+h[e]+v[e],r=t+n,g=m+i|0,m=i+r|0),t=(m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10),o=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),n=(s=m&d)^m&u^a,i=F+o+(g&b^~g&p)+h[e+1]+v[e+1],r=t+n,F=f+i|0,t=((f=i+r|0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),o=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7),n=(l=f&m)^f&d^s,i=p+o+(F&g^~F&b)+h[e+2]+v[e+2],r=t+n,p=u+i|0,t=((u=i+r|0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),o=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),n=(c=u&f)^u&m^l,i=b+o+(p&F^~p&g)+h[e+3]+v[e+3],r=t+n,b=d+i|0,d=i+r|0,this.chromeBugWorkAround=!0;this.h0=this.h0+d|0,this.h1=this.h1+u|0,this.h2=this.h2+f|0,this.h3=this.h3+m|0,this.h4=this.h4+b|0,this.h5=this.h5+p|0,this.h6=this.h6+F|0,this.h7=this.h7+g|0},y.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,i=this.h4,r=this.h5,a=this.h6,s=this.h7,l=d[e>>>28&15]+d[e>>>24&15]+d[e>>>20&15]+d[e>>>16&15]+d[e>>>12&15]+d[e>>>8&15]+d[e>>>4&15]+d[15&e]+d[t>>>28&15]+d[t>>>24&15]+d[t>>>20&15]+d[t>>>16&15]+d[t>>>12&15]+d[t>>>8&15]+d[t>>>4&15]+d[15&t]+d[o>>>28&15]+d[o>>>24&15]+d[o>>>20&15]+d[o>>>16&15]+d[o>>>12&15]+d[o>>>8&15]+d[o>>>4&15]+d[15&o]+d[n>>>28&15]+d[n>>>24&15]+d[n>>>20&15]+d[n>>>16&15]+d[n>>>12&15]+d[n>>>8&15]+d[n>>>4&15]+d[15&n]+d[i>>>28&15]+d[i>>>24&15]+d[i>>>20&15]+d[i>>>16&15]+d[i>>>12&15]+d[i>>>8&15]+d[i>>>4&15]+d[15&i]+d[r>>>28&15]+d[r>>>24&15]+d[r>>>20&15]+d[r>>>16&15]+d[r>>>12&15]+d[r>>>8&15]+d[r>>>4&15]+d[15&r]+d[a>>>28&15]+d[a>>>24&15]+d[a>>>20&15]+d[a>>>16&15]+d[a>>>12&15]+d[a>>>8&15]+d[a>>>4&15]+d[15&a];return this.is224||(l+=d[s>>>28&15]+d[s>>>24&15]+d[s>>>20&15]+d[s>>>16&15]+d[s>>>12&15]+d[s>>>8&15]+d[s>>>4&15]+d[15&s]),l},y.prototype.toString=y.prototype.hex,y.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,i=this.h4,r=this.h5,a=this.h6,s=this.h7,l=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,o>>>24&255,o>>>16&255,o>>>8&255,255&o,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,r>>>24&255,r>>>16&255,r>>>8&255,255&r,a>>>24&255,a>>>16&255,a>>>8&255,255&a];return this.is224||l.push(s>>>24&255,s>>>16&255,s>>>8&255,255&s),l},y.prototype.array=y.prototype.digest,y.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},w.prototype=new y,w.prototype.finalize=function(){if(y.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();y.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),y.prototype.finalize.call(this)}};var E=F();E.sha256=E,E.sha224=F(!0),E.sha256.hmac=_(),E.sha224.hmac=_(!0),s?e.exports=E:(i.sha256=E.sha256,i.sha224=E.sha224,l&&define(function(){return E}))}()},3472(e,t,o){e=o.nmd(e);var n,i="__lodash_hash_undefined__",r="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",u="[object Map]",f="[object Number]",h="[object Object]",m="[object Promise]",b="[object RegExp]",p="[object Set]",F="[object String]",g="[object Symbol]",v="[object WeakMap]",_="[object ArrayBuffer]",y="[object DataView]",w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,C=/^\./,k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,x=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[r]=S[a]=S[_]=S[s]=S[y]=S[l]=S[c]=S[d]=S[u]=S[f]=S[h]=S[b]=S[p]=S[F]=S[v]=!1;var T="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,O="object"==typeof self&&self&&self.Object===Object&&self,I=T||O||Function("return this")(),B=t&&!t.nodeType&&t,R=B&&e&&!e.nodeType&&e,P=R&&R.exports===B&&T.process,N=function(){try{return P&&P.binding("util")}catch(e){}}(),L=N&&N.isTypedArray;function M(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,o=Array(e.size);return e.forEach(function(e,n){o[++t]=[n,e]}),o}function j(e,t){return function(o){return e(t(o))}}function $(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=e}),o}var V=Array.prototype,z=Function.prototype,q=Object.prototype,H=I["__core-js_shared__"],Y=(n=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",W=z.toString,G=q.hasOwnProperty,K=q.toString,J=RegExp("^"+W.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=I.Symbol,Q=I.Uint8Array,Z=j(Object.getPrototypeOf,Object),ee=Object.create,et=q.propertyIsEnumerable,eo=V.splice,en=j(Object.keys,Object),ei=eT(I,"DataView"),er=eT(I,"Map"),ea=eT(I,"Promise"),es=eT(I,"Set"),el=eT(I,"WeakMap"),ec=eT(Object,"create"),ed=eL(ei),eu=eL(er),ef=eL(ea),eh=eL(es),em=eL(el),eb=X?X.prototype:void 0,ep=eb?eb.valueOf:void 0,eF=eb?eb.toString:void 0;function eg(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function ev(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function e_(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function ey(e){var t=-1,o=e?e.length:0;for(this.__data__=new e_;++t<o;)this.add(e[t])}function ew(e){this.__data__=new ev(e)}function eE(e,t){for(var o=e.length;o--;)if(eU(e[o][0],t))return o;return -1}eg.prototype.clear=function(){this.__data__=ec?ec(null):{}},eg.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eg.prototype.get=function(e){var t=this.__data__;if(ec){var o=t[e];return o===i?void 0:o}return G.call(t,e)?t[e]:void 0},eg.prototype.has=function(e){var t=this.__data__;return ec?void 0!==t[e]:G.call(t,e)},eg.prototype.set=function(e,t){return this.__data__[e]=ec&&void 0===t?i:t,this},ev.prototype.clear=function(){this.__data__=[]},ev.prototype.delete=function(e){var t=this.__data__,o=eE(t,e);return!(o<0)&&(o==t.length-1?t.pop():eo.call(t,o,1),!0)},ev.prototype.get=function(e){var t=this.__data__,o=eE(t,e);return o<0?void 0:t[o][1]},ev.prototype.has=function(e){return eE(this.__data__,e)>-1},ev.prototype.set=function(e,t){var o=this.__data__,n=eE(o,e);return n<0?o.push([e,t]):o[n][1]=t,this},e_.prototype.clear=function(){this.__data__={hash:new eg,map:new(er||ev),string:new eg}},e_.prototype.delete=function(e){return eS(this,e).delete(e)},e_.prototype.get=function(e){return eS(this,e).get(e)},e_.prototype.has=function(e){return eS(this,e).has(e)},e_.prototype.set=function(e,t){return eS(this,e).set(e,t),this},ey.prototype.add=ey.prototype.push=function(e){return this.__data__.set(e,i),this},ey.prototype.has=function(e){return this.__data__.has(e)},ew.prototype.clear=function(){this.__data__=new ev},ew.prototype.delete=function(e){return this.__data__.delete(e)},ew.prototype.get=function(e){return this.__data__.get(e)},ew.prototype.has=function(e){return this.__data__.has(e)},ew.prototype.set=function(e,t){var o=this.__data__;if(o instanceof ev){var n=o.__data__;if(!er||n.length<199)return n.push([e,t]),this;o=this.__data__=new e_(n)}return o.set(e,t),this};var eC=function(e,t,o){for(var n=-1,i=Object(e),r=o(e),a=r.length;a--;){var s=r[++n];if(!1===t(i[s],s,i))break}return e};function ek(e,t){var o;t=eB(t,e)?[t]:e$(o=t)?o:eP(o);for(var n=0,i=t.length;null!=e&&n<i;)e=e[eN(t[n++])];return n&&n==i?e:void 0}function eA(e,t){return null!=e&&t in Object(e)}function ex(e,t,o,n,i){return e===t||(null!=e&&null!=t&&(eH(e)||eY(t))?function(e,t,o,n,i,d){var m=e$(e),v=e$(t),w=a,E=a;m||(w=(w=eO(e))==r?h:w),v||(E=(E=eO(t))==r?h:E);var C=w==h&&!M(e),k=E==h&&!M(t),A=w==E;if(A&&!C)return d||(d=new ew),m||eG(e)?eD(e,t,o,n,i,d):function(e,t,o,n,i,r,a){switch(o){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case _:if(e.byteLength!=t.byteLength||!n(new Q(e),new Q(t)))break;return!0;case s:case l:case f:return eU(+e,+t);case c:return e.name==t.name&&e.message==t.message;case b:case F:return e==t+"";case u:var d=U;case p:var h=2&r;if(d||(d=$),e.size!=t.size&&!h)break;var m=a.get(e);if(m)return m==t;r|=1,a.set(e,t);var v=eD(d(e),d(t),n,i,r,a);return a.delete(e),v;case g:if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,w,o,n,i,d);if(!(2&i)){var x=C&&G.call(e,"__wrapped__"),D=k&&G.call(t,"__wrapped__");if(x||D){var S=x?e.value():e,T=D?t.value():t;return d||(d=new ew),o(S,T,n,i,d)}}return!!A&&(d||(d=new ew),function(e,t,o,n,i,r){var a=2&i,s=eK(e),l=s.length;if(l!=eK(t).length&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:G.call(t,d)))return!1}var u=r.get(e);if(u&&r.get(t))return u==t;var f=!0;r.set(e,t),r.set(t,e);for(var h=a;++c<l;){var m=e[d=s[c]],b=t[d];if(n)var p=a?n(b,m,d,t,e,r):n(m,b,d,e,t,r);if(!(void 0===p?m===b||o(m,b,n,i,r):p)){f=!1;break}h||(h="constructor"==d)}if(f&&!h){var F=e.constructor,g=t.constructor;F!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof F&&F instanceof F&&"function"==typeof g&&g instanceof g)&&(f=!1)}return r.delete(e),r.delete(t),f}(e,t,o,n,i,d))}(e,t,ex,o,n,i):e!=e&&t!=t)}function eD(e,t,o,n,i,r){var a=2&i,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var d=-1,u=!0,f=1&i?new ey:void 0;for(r.set(e,t),r.set(t,e);++d<s;){var h=e[d],m=t[d];if(n)var b=a?n(m,h,d,t,e,r):n(h,m,d,e,t,r);if(void 0!==b){if(b)continue;u=!1;break}if(f){if(!function(e,t){for(var o=-1,n=e?e.length:0;++o<n;)if(t(e[o],o,e))return!0;return!1}(t,function(e,t){if(!f.has(t)&&(h===e||o(h,e,n,i,r)))return f.add(t)})){u=!1;break}}else if(!(h===m||o(h,m,n,i,r))){u=!1;break}}return r.delete(e),r.delete(t),u}function eS(e,t){var o,n,i=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?i["string"==typeof t?"string":"hash"]:i.map}function eT(e,t){var o,n=null==e?void 0:e[t];return!(!eH(n)||(o=n,Y&&Y in o))&&(ez(n)||M(n)?J:x).test(eL(n))?n:void 0}var eO=function(e){return K.call(e)};function eI(e,t){return!!(t=null==t?0x1fffffffffffff:t)&&("number"==typeof e||D.test(e))&&e>-1&&e%1==0&&e<t}function eB(e,t){if(e$(e))return!1;var o=typeof e;return!!("number"==o||"symbol"==o||"boolean"==o||null==e||eW(e))||E.test(e)||!w.test(e)||null!=t&&e in Object(t)}(ei&&eO(new ei(new ArrayBuffer(1)))!=y||er&&eO(new er)!=u||ea&&eO(ea.resolve())!=m||es&&eO(new es)!=p||el&&eO(new el)!=v)&&(eO=function(e){var t=K.call(e),o=t==h?e.constructor:void 0,n=o?eL(o):void 0;if(n)switch(n){case ed:return y;case eu:return u;case ef:return m;case eh:return p;case em:return v}return t});function eR(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}var eP=eM(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(eW(e))return eF?eF.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var t,o=[];return C.test(e)&&o.push(""),e.replace(k,function(e,t,n,i){o.push(n?i.replace(A,"$1"):t||e)}),o});function eN(e){if("string"==typeof e||eW(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function eL(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eM(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var o=function(){var n=arguments,i=t?t.apply(this,n):n[0],r=o.cache;if(r.has(i))return r.get(i);var a=e.apply(this,n);return o.cache=r.set(i,a),a};return o.cache=new(eM.Cache||e_),o}function eU(e,t){return e===t||e!=e&&t!=t}function ej(e){var t;return eY(t=e)&&eV(t)&&G.call(e,"callee")&&(!et.call(e,"callee")||K.call(e)==r)}eM.Cache=e_;var e$=Array.isArray;function eV(e){return null!=e&&eq(e.length)&&!ez(e)}function ez(e){var t=eH(e)?K.call(e):"";return t==d||"[object GeneratorFunction]"==t}function eq(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eH(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eY(e){return!!e&&"object"==typeof e}function eW(e){return"symbol"==typeof e||eY(e)&&K.call(e)==g}var eG=L?function(e){return L(e)}:function(e){return eY(e)&&eq(e.length)&&!!S[K.call(e)]};function eK(e){return eV(e)?function(e){var t=e$(e)||ej(e)?function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}(e.length,String):[],o=t.length,n=!!o;for(var i in e)G.call(e,i)&&!(n&&("length"==i||eI(i,o)))&&t.push(i);return t}(e):function(e){if(o=(t=e)&&t.constructor,t!==("function"==typeof o&&o.prototype||q))return en(e);var t,o,n=[];for(var i in Object(e))G.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}function eJ(e){return e}e.exports=function(e,t,o){var n=e$(e)||eG(e);if(t="function"==typeof(c=t)?c:null==c?eJ:"object"==typeof c?e$(c)?(i=c[0],r=c[1],eB(i)&&(a=r)==a&&!eH(a)?eR(eN(i),r):function(e){var t,o,n,a,s,l=(t=e,o=i,void 0===(n=null==t?void 0:ek(t,o))?void 0:n);return void 0===l&&l===r?(a=e,s=i,null!=a&&function(e,t,o){t=eB(t,e)?[t]:e$(n=t)?n:eP(n);for(var n,i,r=-1,a=t.length;++r<a;){var s=eN(t[r]);if(!(i=null!=e&&o(e,s)))break;e=e[s]}if(i)return i;var a=e?e.length:0;return!!a&&eq(a)&&eI(s,a)&&(e$(e)||ej(e))}(a,s,eA)):ex(r,l,void 0,3)}):1==(l=function(e){for(var t=eK(e),o=t.length;o--;){var n,i=t[o],r=e[i];t[o]=[i,r,(n=r)==n&&!eH(n)]}return t}(s=c)).length&&l[0][2]?eR(l[0][0],l[0][1]):function(e){return e===s||function(e,t){var o=t.length,n=o;if(null==e)return!n;for(e=Object(e);o--;){var i=t[o];if((0,i[2])?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<n;){var r=(i=t[o])[0],a=e[r],s=i[1];if(0,i[2]){if(void 0===a&&!(r in e))return!1}else{var l,c=new ew;if(!(void 0===l?ex(s,a,void 0,3,c):l))return!1}}return!0}(e,l)}:function(e){var t;return eB(e)?(t=eN(e),function(e){return null==e?void 0:e[t]}):function(t){return ek(t,e)}}(c),null==o)if(n||eH(e)){var i,r,a,s,l,c,d,u=e.constructor;o=n?e$(e)?new u:[]:ez(u)&&eH(d=Z(e))?ee(d):{}}else o={};return(n?function(e,t){for(var o=-1,n=e?e.length:0;++o<n&&!1!==t(e[o],o,e););return e}:function(e,t){return e&&eC(e,t,eK)})(e,function(e,n,i){return t(o,e,n,i)}),o}},7256(e){"use strict";e.exports=Math.abs},5414(e){"use strict";e.exports=Math.floor},981(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},7954(e){"use strict";e.exports=Math.max},3452(e){"use strict";e.exports=Math.min},1358(e){"use strict";e.exports=Math.pow},5720(e){"use strict";e.exports=Math.round},3515(e,t,o){"use strict";var n=o(981);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},4867(e,t,o){e=o.nmd(e),e.exports=function(){"use strict";function t(){return $.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(r(e,t))return!1;return!0}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var o,n=[],i=e.length;for(o=0;o<i;++o)n.push(t(e[o],o));return n}function u(e,t){for(var o in t)r(t,o)&&(e[o]=t[o]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,o,n){return tr(e,t,o,n,!0).utc()}function h(e){return null==e._pf&&(e._pf={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}),e._pf}function m(e){var t=null,o=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=h(e),o=V.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function b(e){var t=f(0/0);return null!=e?u(h(t),e):h(t).userInvalidated=!0,t}V=Array.prototype.some?Array.prototype.some:function(e){var t,o=Object(this),n=o.length>>>0;for(t=0;t<n;t++)if(t in o&&e.call(this,o[t],t,o))return!0;return!1};var p,F,g=t.momentProperties=[],v=!1;function _(e,t){var o,n,i,r=g.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),r>0)for(o=0;o<r;o++)s(i=t[n=g[o]])||(e[n]=i);return e}function y(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():0/0),this.isValid()||(this._d=new Date(0/0)),!1===v&&(v=!0,t.updateOffset(this),v=!1)}function w(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function E(e){!1===t.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,o){var n=!0;return u(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var i,a,s,l=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(s in i+="\n["+a+"] ",arguments[0])r(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}E(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+Error().stack),n=!1}return o.apply(this,arguments)},o)}var k={};function A(e,o){null!=t.deprecationHandler&&t.deprecationHandler(e,o),k[e]||(E(o),k[e]=!0)}function x(e){return"u">typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e,t){var o,n=u({},e);for(o in t)r(t,o)&&(i(e[o])&&i(t[o])?(n[o]={},u(n[o],e[o]),u(n[o],t[o])):null!=t[o]?n[o]=t[o]:delete n[o]);for(o in e)r(e,o)&&!r(t,o)&&i(e[o])&&(n[o]=u({},n[o]));return n}function S(e){null!=e&&this.set(e)}function T(e,t,o){var n=""+Math.abs(e);return(e>=0?o?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var O=/(\[[^\[]*\])|(\\)?([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,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},R={};function P(e,t,o,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(R[e]=i),t&&(R[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),o&&(R[o]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(B[t=L(t,e.localeData())]=B[t]||function(e){var t,o,n,i=e.match(O);for(o=0,n=i.length;o<n;o++)R[i[o]]?i[o]=R[i[o]]:i[o]=(t=i[o]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var o,r="";for(o=0;o<n;o++)r+=x(i[o])?i[o].call(t,e):i[o];return r}}(t),B[t](e)):e.localeData().invalidDate()}function L(e,t){var o=5;function n(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;o>=0&&I.test(e);)e=e.replace(I,n),I.lastIndex=0,o-=1;return e}var M={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 U(e){return"string"==typeof e?M[e]||M[e.toLowerCase()]:void 0}function j(e){var t,o,n={};for(o in e)r(e,o)&&(t=U(o))&&(n[t]=e[o]);return n}var $,V,z,q={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},H=Object.keys?Object.keys:function(e){var t,o=[];for(t in e)r(e,t)&&o.push(t);return o},Y=/\d/,W=/\d\d/,G=/\d{3}/,K=/\d{4}/,J=/[+-]?\d{6}/,X=/\d\d?/,Q=/\d\d\d\d?/,Z=/\d\d\d\d\d\d?/,ee=/\d{1,3}/,et=/\d{1,4}/,eo=/[+-]?\d{1,6}/,en=/\d+/,ei=/[+-]?\d+/,er=/Z|[+-]\d\d:?\d\d/gi,ea=/Z|[+-]\d\d(?::?\d\d)?/gi,es=/[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,el=/^[1-9]\d?/,ec=/^([1-9]\d|\d)/;function ed(e,t,o){z[e]=x(t)?t:function(e,n){return e&&o?o:t}}function eu(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ef(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function eh(e){var t=+e,o=0;return 0!==t&&isFinite(t)&&(o=ef(t)),o}z={};var em={};function eb(e,t){var o,n,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,o){o[t]=eh(e)}),n=e.length,o=0;o<n;o++)em[e[o]]=i}function ep(e,t){eb(e,function(e,o,n,i){n._w=n._w||{},t(e,n._w,n,i)})}function eF(e){return e%4==0&&e%100!=0||e%400==0}function eg(e){return eF(e)?366:365}P("Y",0,0,function(){var e=this.year();return e<=9999?T(e,4):"+"+e}),P(0,["YY",2],0,function(){return this.year()%100}),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),ed("Y",ei),ed("YY",X,W),ed("YYYY",et,K),ed("YYYYY",eo,J),ed("YYYYYY",eo,J),eb(["YYYYY","YYYYYY"],0),eb("YYYY",function(e,o){o[0]=2===e.length?t.parseTwoDigitYear(e):eh(e)}),eb("YY",function(e,o){o[0]=t.parseTwoDigitYear(e)}),eb("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return eh(e)+(eh(e)>68?1900:2e3)};var ev=e_("FullYear",!0);function e_(e,o){return function(n){return null!=n?(ew(this,e,n),t.updateOffset(this,o),this):ey(this,e)}}function ey(e,t){if(!e.isValid())return 0/0;var o=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return n?o.getUTCSeconds():o.getSeconds();case"Minutes":return n?o.getUTCMinutes():o.getMinutes();case"Hours":return n?o.getUTCHours():o.getHours();case"Date":return n?o.getUTCDate():o.getDate();case"Day":return n?o.getUTCDay():o.getDay();case"Month":return n?o.getUTCMonth():o.getMonth();case"FullYear":return n?o.getUTCFullYear():o.getFullYear();default:return 0/0}}function ew(e,t,o){var n,i,r,a;if(!(!e.isValid()||isNaN(o))){switch(n=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?n.setUTCMilliseconds(o):n.setMilliseconds(o));case"Seconds":return void(i?n.setUTCSeconds(o):n.setSeconds(o));case"Minutes":return void(i?n.setUTCMinutes(o):n.setMinutes(o));case"Hours":return void(i?n.setUTCHours(o):n.setHours(o));case"Date":return void(i?n.setUTCDate(o):n.setDate(o));case"FullYear":break;default:return}r=e.month(),a=29!==(a=e.date())||1!==r||eF(o)?a:28,i?n.setUTCFullYear(o,r,a):n.setFullYear(o,r,a)}}function eE(e,t){if(isNaN(e)||isNaN(t))return 0/0;var o=(t%12+12)%12;return e+=(t-o)/12,1===o?eF(e)?29:28:31-o%7%2}ez=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},P("M",["MM",2],"Mo",function(){return this.month()+1}),P("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),P("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ed("M",X,el),ed("MM",X,W),ed("MMM",function(e,t){return t.monthsShortRegex(e)}),ed("MMMM",function(e,t){return t.monthsRegex(e)}),eb(["M","MM"],function(e,t){t[1]=eh(e)-1}),eb(["MMM","MMMM"],function(e,t,o,n){var i=o._locale.monthsParse(e,n,o._strict);null!=i?t[1]=i:h(o).invalidMonth=e});var eC="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ek=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eA(e,t,o){var n,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();if(o)if("MMM"===t)return -1!==(i=ez.call(this._shortMonthsParse,a))?i:null;else return -1!==(i=ez.call(this._longMonthsParse,a))?i:null;return"MMM"===t?-1!==(i=ez.call(this._shortMonthsParse,a))||-1!==(i=ez.call(this._longMonthsParse,a))?i:null:-1!==(i=ez.call(this._longMonthsParse,a))||-1!==(i=ez.call(this._shortMonthsParse,a))?i:null}function ex(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=eh(t);else if(!l(t=e.localeData().monthsParse(t)))return e}var o=t,n=e.date();return n=n<29?n:Math.min(n,eE(e.year(),o)),e._isUTC?e._d.setUTCMonth(o,n):e._d.setMonth(o,n),e}function eD(e){return null!=e?(ex(this,e),t.updateOffset(this,!0),this):ey(this,"Month")}function eS(){function e(e,t){return t.length-e.length}var t,o,n,i,r=[],a=[],s=[];for(t=0;t<12;t++)o=f([2e3,t]),n=eu(this.monthsShort(o,"")),i=eu(this.months(o,"")),r.push(n),a.push(i),s.push(i),s.push(n);r.sort(e),a.sort(e),s.sort(e),this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+r.join("|")+")","i")}function eT(e,t,o,n,i,r,a){var s;return e<100&&e>=0?isFinite((s=new Date(e+400,t,o,n,i,r,a)).getFullYear())&&s.setFullYear(e):s=new Date(e,t,o,n,i,r,a),s}function eO(e){var t,o;return e<100&&e>=0?(o=Array.prototype.slice.call(arguments),o[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,o))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eI(e,t,o){var n=7+t-o;return-((7+eO(e,0,n).getUTCDay()-t)%7)+n-1}function eB(e,t,o,n,i){var r,a,s=1+7*(t-1)+(7+o-n)%7+eI(e,n,i);return s<=0?a=eg(r=e-1)+s:s>eg(e)?(r=e+1,a=s-eg(e)):(r=e,a=s),{year:r,dayOfYear:a}}function eR(e,t,o){var n,i,r=eI(e.year(),t,o),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?n=a+eP(i=e.year()-1,t,o):a>eP(e.year(),t,o)?(n=a-eP(e.year(),t,o),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function eP(e,t,o){var n=eI(e,t,o),i=eI(e+1,t,o);return(eg(e)-n+i)/7}function eN(e,t){return e.slice(t,7).concat(e.slice(0,t))}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),ed("w",X,el),ed("ww",X,W),ed("W",X,el),ed("WW",X,W),ep(["w","ww","W","WW"],function(e,t,o,n){t[n.substr(0,1)]=eh(e)}),P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),ed("d",X),ed("e",X),ed("E",X),ed("dd",function(e,t){return t.weekdaysMinRegex(e)}),ed("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ed("dddd",function(e,t){return t.weekdaysRegex(e)}),ep(["dd","ddd","dddd"],function(e,t,o,n){var i=o._locale.weekdaysParse(e,n,o._strict);null!=i?t.d=i:h(o).invalidWeekday=e}),ep(["d","e","E"],function(e,t,o,n){t[n]=eh(e)});var eL="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eM(e,t,o){var n,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();if(o)if("dddd"===t)return -1!==(i=ez.call(this._weekdaysParse,a))?i:null;else if("ddd"===t)return -1!==(i=ez.call(this._shortWeekdaysParse,a))?i:null;else return -1!==(i=ez.call(this._minWeekdaysParse,a))?i:null;return"dddd"===t?-1!==(i=ez.call(this._weekdaysParse,a))||-1!==(i=ez.call(this._shortWeekdaysParse,a))||-1!==(i=ez.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ez.call(this._shortWeekdaysParse,a))||-1!==(i=ez.call(this._weekdaysParse,a))||-1!==(i=ez.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ez.call(this._minWeekdaysParse,a))||-1!==(i=ez.call(this._weekdaysParse,a))||-1!==(i=ez.call(this._shortWeekdaysParse,a))?i:null}function eU(){function e(e,t){return t.length-e.length}var t,o,n,i,r,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)o=f([2e3,1]).day(t),n=eu(this.weekdaysMin(o,"")),i=eu(this.weekdaysShort(o,"")),r=eu(this.weekdays(o,"")),a.push(n),s.push(i),l.push(r),c.push(n),c.push(i),c.push(r);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function ej(){return this.hours()%12||12}function e$(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eV(e,t){return t._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,ej),P("k",["kk",2],0,function(){return this.hours()||24}),P("hmm",0,0,function(){return""+ej.apply(this)+T(this.minutes(),2)}),P("hmmss",0,0,function(){return""+ej.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),P("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),P("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),e$("a",!0),e$("A",!1),ed("a",eV),ed("A",eV),ed("H",X,ec),ed("h",X,el),ed("k",X,el),ed("HH",X,W),ed("hh",X,W),ed("kk",X,W),ed("hmm",Q),ed("hmmss",Z),ed("Hmm",Q),ed("Hmmss",Z),eb(["H","HH"],3),eb(["k","kk"],function(e,t,o){var n=eh(e);t[3]=24===n?0:n}),eb(["a","A"],function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e}),eb(["h","hh"],function(e,t,o){t[3]=eh(e),h(o).bigHour=!0}),eb("hmm",function(e,t,o){var n=e.length-2;t[3]=eh(e.substr(0,n)),t[4]=eh(e.substr(n)),h(o).bigHour=!0}),eb("hmmss",function(e,t,o){var n=e.length-4,i=e.length-2;t[3]=eh(e.substr(0,n)),t[4]=eh(e.substr(n,2)),t[5]=eh(e.substr(i)),h(o).bigHour=!0}),eb("Hmm",function(e,t,o){var n=e.length-2;t[3]=eh(e.substr(0,n)),t[4]=eh(e.substr(n))}),eb("Hmmss",function(e,t,o){var n=e.length-4,i=e.length-2;t[3]=eh(e.substr(0,n)),t[4]=eh(e.substr(n,2)),t[5]=eh(e.substr(i))});var ez,eq,eH=e_("Hours",!0),eY={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eC,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eL,meridiemParse:/[ap]\.?m?\.?/i},eW={},eG={};function eK(e){return e?e.toLowerCase().replace("_","-"):e}function eJ(t){var n=null;if(void 0===eW[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eq._abbr,o(3118)("./locale/"+t),eX(n)}catch(e){eW[t]=null}return eW[t]}function eX(e,t){var o;return e&&((o=s(t)?eZ(e):eQ(e,t))?eq=o:"u">typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eq._abbr}function eQ(e,t){if(null===t)return delete eW[e],null;var o,n=eY;if(t.abbr=e,null!=eW[e])A("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."),n=eW[e]._config;else if(null!=t.parentLocale)if(null!=eW[t.parentLocale])n=eW[t.parentLocale]._config;else{if(null==(o=eJ(t.parentLocale)))return eG[t.parentLocale]||(eG[t.parentLocale]=[]),eG[t.parentLocale].push({name:e,config:t}),null;n=o._config}return eW[e]=new S(D(n,t)),eG[e]&&eG[e].forEach(function(e){eQ(e.name,e.config)}),eX(e),eW[e]}function eZ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eq;if(!n(e)){if(t=eJ(e))return t;e=[e]}return function(e){for(var t,o,n,i,r=0;r<e.length;){for(t=(i=eK(e[r]).split("-")).length,o=(o=eK(e[r+1]))?o.split("-"):null;t>0;){if(n=eJ(i.slice(0,t).join("-")))return n;if(o&&o.length>=t&&function(e,t){var o,n=Math.min(e.length,t.length);for(o=0;o<n;o+=1)if(e[o]!==t[o])return o;return n}(i,o)>=t-1)break;t--}r++}return eq}(e)}function e0(e){var t,o=e._a;return o&&-2===h(e).overflow&&(t=o[1]<0||o[1]>11?1:o[2]<1||o[2]>eE(o[0],o[1])?2:o[3]<0||o[3]>24||24===o[3]&&(0!==o[4]||0!==o[5]||0!==o[6])?3:o[4]<0||o[4]>59?4:o[5]<0||o[5]>59?5:o[6]<0||o[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var e1=/^\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)?)?$/,e2=/^\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)?)?$/,e3=/Z|[+-]\d\d(?::?\d\d)?/,e5=[["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]],e4=[["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/]],e6=/^\/?Date\((-?\d+)/i,e8=/^(?:(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}))$/,e9={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e7(e){var t,o,n,i,r,a,s=e._i,l=e1.exec(s)||e2.exec(s),c=e5.length,d=e4.length;if(l){for(h(e).iso=!0,t=0,o=c;t<o;t++)if(e5[t][1].exec(l[1])){i=e5[t][0],n=!1!==e5[t][2];break}if(null==i){e._isValid=!1;return}if(l[3]){for(t=0,o=d;t<o;t++)if(e4[t][1].exec(l[3])){r=(l[2]||" ")+e4[t][0];break}if(null==r){e._isValid=!1;return}}if(!n&&null!=r){e._isValid=!1;return}if(l[4])if(e3.exec(l[4]))a="Z";else{e._isValid=!1;return}e._f=i+(r||"")+(a||""),tn(e)}else e._isValid=!1}function te(e){var t,o,n,i,r,a,s,l,c,d,u,f=e8.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(f){if(r=f[4],a=f[3],s=f[2],l=f[5],c=f[6],d=f[7],u=[(t=parseInt(r,10))<=49?2e3+t:t<=999?1900+t:t,eC.indexOf(a),parseInt(s,10),parseInt(l,10),parseInt(c,10)],d&&u.push(parseInt(d,10)),o=f[1],n=u,i=e,o&&eL.indexOf(o)!==new Date(n[0],n[1],n[2]).getDay()&&(h(i).weekdayMismatch=!0,i._isValid=!1,1))return;e._a=u,e._tzm=function(e,t,o){if(e)return e9[e];if(t)return 0;var n=parseInt(o,10),i=n%100;return(n-i)/100*60+i}(f[8],f[9],f[10]),e._d=eO.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function tt(e,t,o){return null!=e?e:null!=t?t:o}function to(e){var o,n,i,r,a,s,l,c,d,u,f,m,b,p,F,g,v=[];if(!e._d){for(f=new Date(t.now()),p=e._useUTC?[f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()]:[f.getFullYear(),f.getMonth(),f.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(n=(o=e)._w).GG||null!=n.W||null!=n.E?(s=1,l=4,i=tt(n.GG,o._a[0],eR(ta(),1,4).year),r=tt(n.W,1),((a=tt(n.E,1))<1||a>7)&&(d=!0)):(s=o._locale._week.dow,l=o._locale._week.doy,u=eR(ta(),s,l),i=tt(n.gg,o._a[0],u.year),r=tt(n.w,u.week),null!=n.d?((a=n.d)<0||a>6)&&(d=!0):null!=n.e?(a=n.e+s,(n.e<0||n.e>6)&&(d=!0)):a=s),r<1||r>eP(i,s,l)?h(o)._overflowWeeks=!0:null!=d?h(o)._overflowWeekday=!0:(c=eB(i,r,a,s,l),o._a[0]=c.year,o._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(g=tt(e._a[0],p[0]),(e._dayOfYear>eg(g)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),b=eO(g,0,e._dayOfYear),e._a[1]=b.getUTCMonth(),e._a[2]=b.getUTCDate()),m=0;m<3&&null==e._a[m];++m)e._a[m]=v[m]=p[m];for(;m<7;m++)e._a[m]=v[m]=null==e._a[m]?+(2===m):e._a[m];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eO:eT).apply(null,v),F=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==F&&(h(e).weekdayMismatch=!0)}}function tn(e){if(e._f===t.ISO_8601)return void e7(e);if(e._f===t.RFC_2822)return void te(e);e._a=[],h(e).empty=!0;var o,n,i,a,s,l,c,d,u,f,m,b=""+e._i,p=b.length,F=0;for(m=(c=L(e._f,e._locale).match(O)||[]).length,s=0;s<m;s++)if(d=c[s],(l=(b.match(!r(z,d)?new RegExp(eu(d.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,o,n,i){return t||o||n||i}))):z[d](e._strict,e._locale))||[])[0])&&((u=b.substr(0,b.indexOf(l))).length>0&&h(e).unusedInput.push(u),b=b.slice(b.indexOf(l)+l.length),F+=l.length),R[d])l?h(e).empty=!1:h(e).unusedTokens.push(d),null!=l&&r(em,d)&&em[d](l,e._a,e,d);else e._strict&&!l&&h(e).unusedTokens.push(d);h(e).charsLeftOver=p-F,b.length>0&&h(e).unusedInput.push(b),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=(o=e._locale,n=e._a[3],null==(i=e._meridiem)?n:null!=o.meridiemHour?o.meridiemHour(n,i):(null!=o.isPM&&((a=o.isPM(i))&&n<12&&(n+=12),a||12!==n||(n=0)),n)),null!==(f=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(f,e._a[0])),to(e),e0(e)}function ti(e){var o=e._i,r=e._f;return(e._locale=e._locale||eZ(e._l),null===o||void 0===r&&""===o)?b({nullInput:!0}):("string"==typeof o&&(e._i=o=e._locale.preparse(o)),w(o))?new y(e0(o)):(c(o)?e._d=o:n(r)?!function(e){var t,o,n,i,r,a,s=!1,l=e._f.length;if(0===l){h(e).invalidFormat=!0,e._d=new Date(0/0);return}for(i=0;i<l;i++)r=0,a=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],tn(t),m(t)&&(a=!0),r+=h(t).charsLeftOver,r+=10*h(t).unusedTokens.length,h(t).score=r,s?r<n&&(n=r,o=t):(null==n||r<n||a)&&(n=r,o=t,a&&(s=!0));u(e,o||t)}(e):r?tn(e):function(e){var o=e._i;if(s(o))e._d=new Date(t.now());else if(c(o))e._d=new Date(o.valueOf());else if("string"==typeof o)!function(e){var o=e6.exec(e._i);if(null!==o){e._d=new Date(+o[1]);return}e7(e),!1!==e._isValid||(delete e._isValid,te(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}(e);else if(n(o))e._a=d(o.slice(0),function(e){return parseInt(e,10)}),to(e);else if(i(o)){if(!e._d){var r=j(e._i),a=void 0===r.day?r.date:r.day;e._a=d([r.year,r.month,a,r.hour,r.minute,r.second,r.millisecond],function(e){return e&&parseInt(e,10)}),to(e)}}else l(o)?e._d=new Date(o):t.createFromInputFallback(e)}(e),m(e)||(e._d=null),e)}function tr(e,t,o,r,s){var l,c={};return(!0===t||!1===t)&&(r=t,t=void 0),(!0===o||!1===o)&&(r=o,o=void 0),(i(e)&&a(e)||n(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=o,c._i=e,c._f=t,c._strict=r,(l=new y(e0(ti(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function ta(e,t,o,n){return tr(e,t,o,n,!1)}t.createFromInputFallback=C("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":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var ts=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()}),tl=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()});function tc(e,t){var o,i;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return ta();for(o=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](o))&&(o=t[i]);return o}var td=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tu(e){var t=j(e),o=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,d=t.second||0,u=t.millisecond||0;this._isValid=function(e){var t,o,n=!1,i=td.length;for(t in e)if(r(e,t)&&!(-1!==ez.call(td,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(o=0;o<i;++o)if(e[td[o]]){if(n)return!1;parseFloat(e[td[o]])!==eh(e[td[o]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*d+6e4*c+1e3*l*3600,this._days=+s+7*a,this._months=+i+3*n+12*o,this._data={},this._locale=eZ(),this._bubble()}function tf(e){return e instanceof tu}function th(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tm(e,t){P(e,0,0,function(){var e=this.utcOffset(),o="+";return e<0&&(e=-e,o="-"),o+T(~~(e/60),2)+t+T(~~e%60,2)})}tm("Z",":"),tm("ZZ",""),ed("Z",ea),ed("ZZ",ea),eb(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=tp(ea,e)});var tb=/([\+\-]|\d\d)/gi;function tp(e,t){var o,n,i=(t||"").match(e);return null===i?null:0===(n=+(60*(o=((i[i.length-1]||[])+"").match(tb)||["-",0,0])[1])+eh(o[2]))?0:"+"===o[0]?n:-n}function tF(e,o){var n,i;return o._isUTC?(n=o.clone(),i=(w(e)||c(e)?e.valueOf():ta(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),t.updateOffset(n,!1),n):ta(e).local()}function tg(e){return-Math.round(e._d.getTimezoneOffset())}function tv(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var t_=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ty=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tw(e,t){var o,n,i,a,s,c,d=e,u=null;return tf(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(d={},t?d[t]=+e:d.milliseconds=+e):(u=t_.exec(e))?(a="-"===u[1]?-1:1,d={y:0,d:eh(u[2])*a,h:eh(u[3])*a,m:eh(u[4])*a,s:eh(u[5])*a,ms:eh(th(1e3*u[6]))*a}):(u=ty.exec(e))?(a="-"===u[1]?-1:1,d={y:tE(u[2],a),M:tE(u[3],a),w:tE(u[4],a),d:tE(u[5],a),h:tE(u[6],a),m:tE(u[7],a),s:tE(u[8],a)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(o=ta(d.from),n=ta(d.to),c=o.isValid()&&n.isValid()?(n=tF(n,o),o.isBefore(n)?i=tC(o,n):((i=tC(n,o)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0},(d={}).ms=c.milliseconds,d.M=c.months),s=new tu(d),tf(e)&&r(e,"_locale")&&(s._locale=e._locale),tf(e)&&r(e,"_isValid")&&(s._isValid=e._isValid),s}function tE(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function tC(e,t){var o={};return o.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=t-e.clone().add(o.months,"M"),o}function tk(e,t){return function(o,n){var i;return null===n||isNaN(+n)||(A(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."),i=o,o=n,n=i),tA(this,tw(o,n),e),this}}function tA(e,o,n,i){var r=o._milliseconds,a=th(o._days),s=th(o._months);e.isValid()&&(i=null==i||i,s&&ex(e,ey(e,"Month")+s*n),a&&ew(e,"Date",ey(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&t.updateOffset(e,a||s))}tw.fn=tu.prototype,tw.invalid=function(){return tw(0/0)};var tx=tk(1,"add"),tD=tk(-1,"subtract");function tS(e){return"string"==typeof e||e instanceof String}function tT(e,t){if(e.date()<t.date())return-tT(t,e);var o,n=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(n,"months");return o=t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i),-(n+o)||0}function tO(e){var t;return void 0===e?this._locale._abbr:(null!=(t=eZ(e))&&(this._locale=t),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tI=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tB(){return this._locale}function tR(e,t,o){return e<100&&e>=0?new Date(e+400,t,o)-126227808e5:new Date(e,t,o).valueOf()}function tP(e,t,o){return e<100&&e>=0?Date.UTC(e+400,t,o)-126227808e5:Date.UTC(e,t,o)}function tN(e,t){return t.erasAbbrRegex(e)}function tL(){var e,t,o,n,i,r=[],a=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)o=eu(c[e].name),n=eu(c[e].abbr),i=eu(c[e].narrow),a.push(o),r.push(n),s.push(i),l.push(o),l.push(n),l.push(i);this._erasRegex=RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+s.join("|")+")","i")}function tM(e,t){P(0,[e,e.length],0,t)}function tU(e,t,o,n,i){var r;return null==e?eR(this,n,i).year:(t>(r=eP(e,n,i))&&(t=r),tj.call(this,e,t,o,n,i))}function tj(e,t,o,n,i){var r=eB(e,t,o,n,i),a=eO(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}P("N",0,0,"eraAbbr"),P("NN",0,0,"eraAbbr"),P("NNN",0,0,"eraAbbr"),P("NNNN",0,0,"eraName"),P("NNNNN",0,0,"eraNarrow"),P("y",["y",1],"yo","eraYear"),P("y",["yy",2],0,"eraYear"),P("y",["yyy",3],0,"eraYear"),P("y",["yyyy",4],0,"eraYear"),ed("N",tN),ed("NN",tN),ed("NNN",tN),ed("NNNN",function(e,t){return t.erasNameRegex(e)}),ed("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eb(["N","NN","NNN","NNNN","NNNNN"],function(e,t,o,n){var i=o._locale.erasParse(e,n,o._strict);i?h(o).era=i:h(o).invalidEra=e}),ed("y",en),ed("yy",en),ed("yyy",en),ed("yyyy",en),ed("yo",function(e,t){return t._eraYearOrdinalRegex||en}),eb(["y","yy","yyy","yyyy"],0),eb(["yo"],function(e,t,o,n){var i;o._locale._eraYearOrdinalRegex&&(i=e.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?t[0]=o._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)}),P(0,["gg",2],0,function(){return this.weekYear()%100}),P(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tM("gggg","weekYear"),tM("ggggg","weekYear"),tM("GGGG","isoWeekYear"),tM("GGGGG","isoWeekYear"),ed("G",ei),ed("g",ei),ed("GG",X,W),ed("gg",X,W),ed("GGGG",et,K),ed("gggg",et,K),ed("GGGGG",eo,J),ed("ggggg",eo,J),ep(["gggg","ggggg","GGGG","GGGGG"],function(e,t,o,n){t[n.substr(0,2)]=eh(e)}),ep(["gg","GG"],function(e,o,n,i){o[i]=t.parseTwoDigitYear(e)}),P("Q",0,"Qo","quarter"),ed("Q",Y),eb("Q",function(e,t){t[1]=(eh(e)-1)*3}),P("D",["DD",2],"Do","date"),ed("D",X,el),ed("DD",X,W),ed("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eb(["D","DD"],2),eb("Do",function(e,t){t[2]=eh(e.match(X)[0])});var t$=e_("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),ed("DDD",ee),ed("DDDD",G),eb(["DDD","DDDD"],function(e,t,o){o._dayOfYear=eh(e)}),P("m",["mm",2],0,"minute"),ed("m",X,ec),ed("mm",X,W),eb(["m","mm"],4);var tV=e_("Minutes",!1);P("s",["ss",2],0,"second"),ed("s",X,ec),ed("ss",X,W),eb(["s","ss"],5);var tz=e_("Seconds",!1);for(P("S",0,0,function(){return~~(this.millisecond()/100)}),P(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,function(){return 10*this.millisecond()}),P(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),P(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),P(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),P(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),P(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ed("S",ee,Y),ed("SS",ee,W),ed("SSS",ee,G),p="SSSS";p.length<=9;p+="S")ed(p,en);function tq(e,t){t[6]=eh(("0."+e)*1e3)}for(p="S";p.length<=9;p+="S")eb(p,tq);F=e_("Milliseconds",!1),P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var tH=y.prototype;function tY(e){return e}tH.add=tx,tH.calendar=function(e,o){if(1==arguments.length)if(arguments[0]){var s,d,u,f;if(s=arguments[0],w(s)||c(s)||tS(s)||l(s)||(u=n(d=s),f=!1,u&&(f=0===d.filter(function(e){return!l(e)&&tS(d)}).length),u&&f)||function(e){var t,o,n=i(e)&&!a(e),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(t=0;t<c;t+=1)o=l[t],s=s||r(e,o);return n&&s}(s)||null==s)e=arguments[0],o=void 0;else(function(e){var t,o,n=i(e)&&!a(e),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)o=l[t],s=s||r(e,o);return n&&s})(arguments[0])&&(o=arguments[0],e=void 0)}else e=void 0,o=void 0;var h=e||ta(),m=tF(h,this).startOf("day"),b=t.calendarFormat(this,m)||"sameElse",p=o&&(x(o[b])?o[b].call(this,h):o[b]);return this.format(p||this.localeData().calendar(b,this,ta(h)))},tH.clone=function(){return new y(this)},tH.diff=function(e,t,o){var n,i,r;if(!this.isValid()||!(n=tF(e,this)).isValid())return 0/0;switch(i=(n.utcOffset()-this.utcOffset())*6e4,t=U(t)){case"year":r=tT(this,n)/12;break;case"month":r=tT(this,n);break;case"quarter":r=tT(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-i)/864e5;break;case"week":r=(this-n-i)/6048e5;break;default:r=this-n}return o?r:ef(r)},tH.endOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tP:tR,e){case"year":o=n(this.year()+1,0,1)-1;break;case"quarter":o=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=n(this.year(),this.month()+1,1)-1;break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=36e5-((o+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":o=this._d.valueOf(),o+=6e4-(o%6e4+6e4)%6e4-1;break;case"second":o=this._d.valueOf(),o+=1e3-(o%1e3+1e3)%1e3-1}return this._d.setTime(o),t.updateOffset(this,!0),this},tH.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var o=N(this,e);return this.localeData().postformat(o)},tH.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||ta(e).isValid())?tw({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tH.fromNow=function(e){return this.from(ta(),e)},tH.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||ta(e).isValid())?tw({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tH.toNow=function(e){return this.to(ta(),e)},tH.get=function(e){return x(this[e=U(e)])?this[e]():this},tH.invalidAt=function(){return h(this).overflow},tH.isAfter=function(e,t){var o=w(e)?e:ta(e);return!!(this.isValid()&&o.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(t).valueOf())},tH.isBefore=function(e,t){var o=w(e)?e:ta(e);return!!(this.isValid()&&o.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<o.valueOf():this.clone().endOf(t).valueOf()<o.valueOf())},tH.isBetween=function(e,t,o,n){var i=w(e)?e:ta(e),r=w(t)?t:ta(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&("("===(n=n||"()")[0]?this.isAfter(i,o):!this.isBefore(i,o))&&(")"===n[1]?this.isBefore(r,o):!this.isAfter(r,o))},tH.isSame=function(e,t){var o,n=w(e)?e:ta(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===n.valueOf():(o=n.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf()))},tH.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tH.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tH.isValid=function(){return m(this)},tH.lang=tI,tH.locale=tO,tH.localeData=tB,tH.max=tl,tH.min=ts,tH.parsingFlags=function(){return u({},h(this))},tH.set=function(e,t){if("object"==typeof e){var o,n=function(e){var t,o=[];for(t in e)r(e,t)&&o.push({unit:t,priority:q[t]});return o.sort(function(e,t){return e.priority-t.priority}),o}(e=j(e)),i=n.length;for(o=0;o<i;o++)this[n[o].unit](e[n[o].unit])}else if(x(this[e=U(e)]))return this[e](t);return this},tH.startOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tP:tR,e){case"year":o=n(this.year(),0,1);break;case"quarter":o=n(this.year(),this.month()-this.month()%3,1);break;case"month":o=n(this.year(),this.month(),1);break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=n(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=((o+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":o=this._d.valueOf(),o-=(o%6e4+6e4)%6e4;break;case"second":o=this._d.valueOf(),o-=(o%1e3+1e3)%1e3}return this._d.setTime(o),t.updateOffset(this,!0),this},tH.subtract=tD,tH.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tH.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tH.toDate=function(){return new Date(this.valueOf())},tH.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,o=t?this.clone().utc():this;if(0>o.year()||o.year()>9999)return N(o,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(x(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(o,"Z"));return N(o,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tH.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,o,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",o=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+o)},"u">typeof Symbol&&null!=Symbol.for&&(tH[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tH.toJSON=function(){return this.isValid()?this.toISOString():null},tH.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tH.unix=function(){return Math.floor(this.valueOf()/1e3)},tH.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tH.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tH.eraName=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].name;return""},tH.eraNarrow=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].narrow;return""},tH.eraAbbr=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].abbr;return""},tH.eraYear=function(){var e,o,n,i,r=this.localeData().eras();for(e=0,o=r.length;e<o;++e)if(n=r[e].since<=r[e].until?1:-1,i=this.clone().startOf("day").valueOf(),r[e].since<=i&&i<=r[e].until||r[e].until<=i&&i<=r[e].since)return(this.year()-t(r[e].since).year())*n+r[e].offset;return this.year()},tH.year=ev,tH.isLeapYear=function(){return eF(this.year())},tH.weekYear=function(e){return tU.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tH.isoWeekYear=function(e){return tU.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tH.quarter=tH.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tH.month=eD,tH.daysInMonth=function(){return eE(this.year(),this.month())},tH.week=tH.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tH.isoWeek=tH.isoWeeks=function(e){var t=eR(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tH.weeksInYear=function(){var e=this.localeData()._week;return eP(this.year(),e.dow,e.doy)},tH.weeksInWeekYear=function(){var e=this.localeData()._week;return eP(this.weekYear(),e.dow,e.doy)},tH.isoWeeksInYear=function(){return eP(this.year(),1,4)},tH.isoWeeksInISOWeekYear=function(){return eP(this.isoWeekYear(),1,4)},tH.date=t$,tH.day=tH.days=function(e){if(!this.isValid())return null!=e?this:0/0;var t,o,n=ey(this,"Day");return null==e?n:(t=e,o=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=o.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d"))},tH.weekday=function(e){if(!this.isValid())return null!=e?this:0/0;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tH.isoWeekday=function(e){if(!this.isValid())return null!=e?this:0/0;if(null==e)return this.day()||7;var t,o=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?o:o-7)},tH.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tH.hour=tH.hours=eH,tH.minute=tH.minutes=tV,tH.second=tH.seconds=tz,tH.millisecond=tH.milliseconds=F,tH.utcOffset=function(e,o,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:0/0;if(null==e)return this._isUTC?r:tg(this);if("string"==typeof e){if(null===(e=tp(ea,e)))return this}else 16>Math.abs(e)&&!n&&(e*=60);return!this._isUTC&&o&&(i=tg(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!o||this._changeInProgress?tA(this,tw(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tH.utc=function(e){return this.utcOffset(0,e)},tH.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tg(this),"m")),this},tH.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tp(er,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tH.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ta(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tH.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tH.isLocal=function(){return!!this.isValid()&&!this._isUTC},tH.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tH.isUtc=tv,tH.isUTC=tv,tH.zoneAbbr=function(){return this._isUTC?"UTC":""},tH.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tH.dates=C("dates accessor is deprecated. Use date instead.",t$),tH.months=C("months accessor is deprecated. Use month instead",eD),tH.years=C("years accessor is deprecated. Use year instead",ev),tH.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tH.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=ti(t))._a?(e=t._isUTC?f(t._a):ta(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var o,n=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0;for(o=0;o<n;o++)eh(e[o])!==eh(t[o])&&r++;return r+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tW=S.prototype;function tG(e,t,o,n){var i=eZ(),r=f().set(n,t);return i[o](r,e)}function tK(e,t,o){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return tG(e,t,o,"month");var n,i=[];for(n=0;n<12;n++)i[n]=tG(e,n,o,"month");return i}function tJ(e,t,o,n){"boolean"==typeof e||(o=t=e,e=!1),l(t)&&(o=t,t=void 0),t=t||"";var i,r=eZ(),a=e?r._week.dow:0,s=[];if(null!=o)return tG(t,(o+a)%7,n,"day");for(i=0;i<7;i++)s[i]=tG(t,(i+a)%7,n,"day");return s}tW.calendar=function(e,t,o){var n=this._calendar[e]||this._calendar.sameElse;return x(n)?n.call(t,o):n},tW.longDateFormat=function(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.match(O).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tW.invalidDate=function(){return this._invalidDate},tW.ordinal=function(e){return this._ordinal.replace("%d",e)},tW.preparse=tY,tW.postformat=tY,tW.relativeTime=function(e,t,o,n){var i=this._relativeTime[o];return x(i)?i(e,t,o,n):i.replace(/%d/i,e)},tW.pastFuture=function(e,t){var o=this._relativeTime[e>0?"future":"past"];return x(o)?o(t):o.replace(/%s/i,t)},tW.set=function(e){var t,o;for(o in e)r(e,o)&&(x(t=e[o])?this[o]=t:this["_"+o]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tW.eras=function(e,o){var n,i,r,a=this._eras||eZ("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"==typeof a[n].since&&(r=t(a[n].since).startOf("day"),a[n].since=r.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":r=t(a[n].until).startOf("day").valueOf(),a[n].until=r.valueOf()}return a},tW.erasParse=function(e,t,o){var n,i,r,a,s,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(r=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),o)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[n];break;case"NNNN":if(r===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([r,a,s].indexOf(e)>=0)return l[n]},tW.erasConvertYear=function(e,o){var n=e.since<=e.until?1:-1;return void 0===o?t(e.since).year():t(e.since).year()+(o-e.offset)*n},tW.erasAbbrRegex=function(e){return r(this,"_erasAbbrRegex")||tL.call(this),e?this._erasAbbrRegex:this._erasRegex},tW.erasNameRegex=function(e){return r(this,"_erasNameRegex")||tL.call(this),e?this._erasNameRegex:this._erasRegex},tW.erasNarrowRegex=function(e){return r(this,"_erasNarrowRegex")||tL.call(this),e?this._erasNarrowRegex:this._erasRegex},tW.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ek).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},tW.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ek.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tW.monthsParse=function(e,t,o){var n,i,r;if(this._monthsParseExact)return eA.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=f([2e3,n]),o&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),o||this._monthsParse[n]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=RegExp(r.replace(".",""),"i")),o&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(o&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!o&&this._monthsParse[n].test(e))return n}},tW.monthsRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||eS.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(r(this,"_monthsRegex")||(this._monthsRegex=es),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tW.monthsShortRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||eS.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(r(this,"_monthsShortRegex")||(this._monthsShortRegex=es),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tW.week=function(e){return eR(e,this._week.dow,this._week.doy).week},tW.firstDayOfYear=function(){return this._week.doy},tW.firstDayOfWeek=function(){return this._week.dow},tW.weekdays=function(e,t){var o=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eN(o,this._week.dow):e?o[e.day()]:o},tW.weekdaysMin=function(e){return!0===e?eN(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tW.weekdaysShort=function(e){return!0===e?eN(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tW.weekdaysParse=function(e,t,o){var n,i,r;if(this._weekdaysParseExact)return eM.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=f([2e3,1]).day(n),o&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=RegExp(r.replace(".",""),"i")),o&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(o&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(o&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;else if(!o&&this._weekdaysParse[n].test(e))return n}},tW.weekdaysRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(r(this,"_weekdaysRegex")||(this._weekdaysRegex=es),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tW.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=es),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tW.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=es),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tW.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tW.meridiem=function(e,t,o){return e>11?o?"pm":"PM":o?"am":"AM"},eX("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,o=1===eh(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+o}}),t.lang=C("moment.lang is deprecated. Use moment.locale instead.",eX),t.langData=C("moment.langData is deprecated. Use moment.localeData instead.",eZ);var tX=Math.abs;function tQ(e,t,o,n){var i=tw(t,o);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function tZ(e){return e<0?Math.floor(e):Math.ceil(e)}function t0(e){return 4800*e/146097}function t1(e){return 146097*e/4800}function t2(e){return function(){return this.as(e)}}var t3=t2("ms"),t5=t2("s"),t4=t2("m"),t6=t2("h"),t8=t2("d"),t9=t2("w"),t7=t2("M"),oe=t2("Q"),ot=t2("y");function oo(e){return function(){return this.isValid()?this._data[e]:0/0}}var on=oo("milliseconds"),oi=oo("seconds"),or=oo("minutes"),oa=oo("hours"),os=oo("days"),ol=oo("months"),oc=oo("years"),od=Math.round,ou={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function of(e,t,o,n,i){return i.relativeTime(t||1,!!o,e,n)}var oh=Math.abs;function om(e){return(e>0)-(e<0)||+e}function ob(){if(!this.isValid())return this.localeData().invalidDate();var e,t,o,n,i,r,a,s,l=oh(this._milliseconds)/1e3,c=oh(this._days),d=oh(this._months),u=this.asSeconds();return u?(e=ef(l/60),t=ef(e/60),l%=60,e%=60,o=ef(d/12),d%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=u<0?"-":"",r=om(this._months)!==om(u)?"-":"",a=om(this._days)!==om(u)?"-":"",s=om(this._milliseconds)!==om(u)?"-":"",i+"P"+(o?r+o+"Y":"")+(d?r+d+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var op=tu.prototype;return op.isValid=function(){return this._isValid},op.abs=function(){var e=this._data;return this._milliseconds=tX(this._milliseconds),this._days=tX(this._days),this._months=tX(this._months),e.milliseconds=tX(e.milliseconds),e.seconds=tX(e.seconds),e.minutes=tX(e.minutes),e.hours=tX(e.hours),e.months=tX(e.months),e.years=tX(e.years),this},op.add=function(e,t){return tQ(this,e,t,1)},op.subtract=function(e,t){return tQ(this,e,t,-1)},op.as=function(e){if(!this.isValid())return 0/0;var t,o,n=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,o=this._months+t0(t),e){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(t=this._days+Math.round(t1(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},op.asMilliseconds=t3,op.asSeconds=t5,op.asMinutes=t4,op.asHours=t6,op.asDays=t8,op.asWeeks=t9,op.asMonths=t7,op.asQuarters=oe,op.asYears=ot,op.valueOf=t3,op._bubble=function(){var e,t,o,n,i,r=this._milliseconds,a=this._days,s=this._months,l=this._data;return r>=0&&a>=0&&s>=0||r<=0&&a<=0&&s<=0||(r+=864e5*tZ(t1(s)+a),a=0,s=0),l.milliseconds=r%1e3,l.seconds=(e=ef(r/1e3))%60,l.minutes=(t=ef(e/60))%60,l.hours=(o=ef(t/60))%24,a+=ef(o/24),s+=i=ef(t0(a)),a-=tZ(t1(i)),n=ef(s/12),s%=12,l.days=a,l.months=s,l.years=n,this},op.clone=function(){return tw(this)},op.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():0/0},op.milliseconds=on,op.seconds=oi,op.minutes=or,op.hours=oa,op.days=os,op.weeks=function(){return ef(this.days()/7)},op.months=ol,op.years=oc,op.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var o,n,i,r,a,s,l,c,d,u,f,h,m,b=!1,p=ou;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(b=e),"object"==typeof t&&(p=Object.assign({},ou,t),null!=t.s&&null==t.ss&&(p.ss=t.s-1)),h=this.localeData(),o=!b,n=p,i=tw(this).abs(),r=od(i.as("s")),a=od(i.as("m")),s=od(i.as("h")),l=od(i.as("d")),c=od(i.as("M")),d=od(i.as("w")),u=od(i.as("y")),f=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l],null!=n.w&&(f=f||d<=1&&["w"]||d<n.w&&["ww",d]),(f=f||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=o,f[3]=+this>0,f[4]=h,m=of.apply(null,f),b&&(m=h.pastFuture(+this,m)),h.postformat(m)},op.toISOString=ob,op.toString=ob,op.toJSON=ob,op.locale=tO,op.localeData=tB,op.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ob),op.lang=tI,P("X",0,0,"unix"),P("x",0,0,"valueOf"),ed("x",ei),ed("X",/[+-]?\d+(\.\d{1,3})?/),eb("X",function(e,t,o){o._d=new Date(1e3*parseFloat(e))}),eb("x",function(e,t,o){o._d=new Date(eh(e))}),t.version="2.30.1",$=ta,t.fn=tH,t.min=function(){var e=[].slice.call(arguments,0);return tc("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tc("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=f,t.unix=function(e){return ta(1e3*e)},t.months=function(e,t){return tK(e,t,"months")},t.isDate=c,t.locale=eX,t.invalid=b,t.duration=tw,t.isMoment=w,t.weekdays=function(e,t,o){return tJ(e,t,o,"weekdays")},t.parseZone=function(){return ta.apply(null,arguments).parseZone()},t.localeData=eZ,t.isDuration=tf,t.monthsShort=function(e,t){return tK(e,t,"monthsShort")},t.weekdaysMin=function(e,t,o){return tJ(e,t,o,"weekdaysMin")},t.defineLocale=eQ,t.updateLocale=function(e,t){if(null!=t){var o,n,i=eY;null!=eW[e]&&null!=eW[e].parentLocale?eW[e].set(D(eW[e]._config,t)):(null!=(n=eJ(e))&&(i=n._config),t=D(i,t),null==n&&(t.abbr=e),(o=new S(t)).parentLocale=eW[e],eW[e]=o),eX(e)}else null!=eW[e]&&(null!=eW[e].parentLocale?(eW[e]=eW[e].parentLocale,e===eX()&&eX(e)):null!=eW[e]&&delete eW[e]);return eW[e]},t.locales=function(){return H(eW)},t.weekdaysShort=function(e,t,o){return tJ(e,t,o,"weekdaysShort")},t.normalizeUnits=U,t.relativeTimeRounding=function(e){return void 0===e?od:"function"==typeof e&&(od=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==ou[e]&&(void 0===t?ou[e]:(ou[e]=t,"s"===e&&(ou.ss=t-1),!0))},t.calendarFormat=function(e,t){var o=e.diff(t,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"},t.prototype=tH,t.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"},t}()},3118(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3118,e.exports=t},3109(e,t,o){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,d=s&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,b=Object.prototype.toString,p=Function.prototype.toString,F=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,y=String.prototype.toLowerCase,w=RegExp.prototype.test,E=Array.prototype.concat,C=Array.prototype.join,k=Array.prototype.slice,A=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,O="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T?"object":"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,B=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(1/0===e||-1/0===e||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var i=String(n),r=g.call(t,i.length+1);return v.call(i,o,"$&_")+"."+v.call(v.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,o,"$&_")}var P=o(6550),N=P.custom,L=q(N)?N:null,M={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function j(e,t,o){var n=M[o.quoteStyle||t];return n+e+n}function $(e){return!O||!("object"==typeof e&&(O in e||void 0!==e[O]))}function V(e){return"[object Array]"===W(e)&&$(e)}function z(e){return"[object RegExp]"===W(e)&&$(e)}function q(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,s){var l,b,_,w,A,D=n||{};if(Y(D,"quoteStyle")&&!Y(M,D.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(Y(D,"maxStringLength")&&("number"==typeof D.maxStringLength?D.maxStringLength<0&&1/0!==D.maxStringLength:null!==D.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!Y(D,"customInspect")||D.customInspect;if("boolean"!=typeof N&&"symbol"!==N)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(D,"indent")&&null!==D.indent&&" "!==D.indent&&!(parseInt(D.indent,10)===D.indent&&D.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(D,"numericSeparator")&&"boolean"!=typeof D.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var H=D.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,o){if(t.length>o.maxStringLength){var n=t.length-o.maxStringLength;return e(g.call(t,0,o.maxStringLength),o)+("... "+n)+" more character"+(n>1?"s":"")}var i=U[o.quoteStyle||"single"];return i.lastIndex=0,j(v.call(v.call(t,i,"\\$1"),/[\x00-\x1f]/g,K),"single",o)}(t,D);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return H?R(t,et):et}if("bigint"==typeof t){var eo=String(t)+"n";return H?R(t,eo):eo}var en=void 0===D.depth?5:D.depth;if(void 0===i&&(i=0),i>=en&&en>0&&"object"==typeof t)return V(t)?"[Array]":"[Object]";var ei=function(e,t){var o;if(" "===e.indent)o=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;o=C.call(Array(e.indent+1)," ")}return{base:o,prev:C.call(Array(t+1),o)}}(D,i);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function er(t,o,n){if(o&&(s=k.call(s)).push(o),n){var r={depth:D.depth};return Y(D,"quoteStyle")&&(r.quoteStyle=D.quoteStyle),e(t,r,i+1,s)}return e(t,D,i+1,s)}if("function"==typeof t&&!z(t)){var ea=function(e){if(e.name)return e.name;var t=F.call(p.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),es=ee(t,er);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(es.length>0?" { "+C.call(es,", ")+" }":"")}if(q(t)){var el=T?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):S.call(t);return"object"!=typeof t||T?el:J(el)}if((ec=t)&&"object"==typeof ec&&("u">typeof HTMLElement&&ec instanceof HTMLElement||"string"==typeof ec.nodeName&&"function"==typeof ec.getAttribute)){for(var ec,ed,eu="<"+y.call(String(t.nodeName)),ef=t.attributes||[],eh=0;eh<ef.length;eh++){eu+=" "+ef[eh].name+"="+j((ed=ef[eh].value,v.call(String(ed),/"/g,"&quot;")),"double",D)}return eu+=">",t.childNodes&&t.childNodes.length&&(eu+="..."),eu+="</"+y.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var em=ee(t,er);return ei&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(em)?"["+Z(em,ei)+"]":"[ "+C.call(em,", ")+" ]"}if("[object Error]"===W(l=t)&&$(l)){var eb=ee(t,er);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===eb.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(eb,", ")+" }":"{ ["+String(t)+"] "+C.call(E.call("[cause]: "+er(t.cause),eb),", ")+" }"}if("object"==typeof t&&N){if(L&&"function"==typeof t[L]&&P)return P(t,{depth:en-i});else if("symbol"!==N&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!r||!e||"object"!=typeof e)return!1;try{r.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ep=[];return a&&a.call(t,function(e,o){ep.push(er(o,t,!0)+" => "+er(e,t))}),Q("Map",r.call(t),ep,ei)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{r.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eF=[];return d&&d.call(t,function(e){eF.push(er(e,t))}),Q("Set",c.call(t),eF,ei)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===W(b=t)&&$(b))return J(er(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return J(er(x.call(t)));if("[object Boolean]"===W(_=t)&&$(_))return J(m.call(t));if("[object String]"===W(w=t)&&$(w))return J(er(String(t)));if("u">typeof window&&t===window)return"{ [object Window] }";if("u">typeof globalThis&&t===globalThis||void 0!==o.g&&t===o.g)return"{ [object globalThis] }";if(!("[object Date]"===W(A=t)&&$(A))&&!z(t)){var eg=ee(t,er),ev=B?B(t)===Object.prototype:t instanceof Object||t.constructor===Object,e_=t instanceof Object?"":"null prototype",ey=!ev&&O&&Object(t)===t&&O in t?g.call(W(t),8,-1):e_?"Object":"",ew=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ey||e_?"["+C.call(E.call([],ey||[],e_||[]),": ")+"] ":"");return 0===eg.length?ew+"{}":ei?ew+"{"+Z(eg,ei)+"}":ew+"{ "+C.call(eg,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function Y(e,t){return H.call(e,t)}function W(e){return b.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var o=0,n=e.length;o<n;o++)if(e[o]===t)return o;return -1}function K(e){var t=e.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return o?"\\"+o:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function J(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Q(e,t,o,n){return e+" ("+t+") {"+(n?Z(o,n):C.call(o,", "))+"}"}function Z(e,t){if(0===e.length)return"";var o="\n"+t.prev+t.base;return o+C.call(e,","+o)+"\n"+t.prev}function ee(e,t){var o,n=V(e),i=[];if(n){i.length=e.length;for(var r=0;r<e.length;r++)i[r]=Y(e,r)?t(e[r],e):""}var a="function"==typeof D?D(e):[];if(T){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)if(Y(e,l)&&(!n||String(Number(l))!==l||!(l<e.length)))if(T&&o["$"+l]instanceof Symbol)continue;else w.call(/[^\w$]/,l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e));if("function"==typeof D)for(var c=0;c<a.length;c++)I.call(e,a[c])&&i.push("["+t(a[c])+"]: "+t(e[a[c]],e));return i}},4461(e,t,o){e=o.nmd(e),(function(){"use strict";var n={function:!0,object:!0},i=n[typeof window]&&window||this,r=n[typeof t]&&t,a=n.object&&e&&!e.nodeType&&e,s=r&&a&&"object"==typeof o.g&&o.g;s&&(s.global===s||s.window===s||s.self===s)&&(i=s);var l=/\bOpera/,c=Object.prototype,d=c.hasOwnProperty,u=c.toString;function f(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function h(e){return e=g(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:f(e)}function m(e,t){for(var o in e)d.call(e,o)&&t(e[o],o,e)}function b(e){return null==e?f(e):u.call(e).slice(8,-1)}function p(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function F(e,t){var o=null,n=function(n,i){o=t(o,n,i,e)},i=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=0x1fffffffffffff)for(;++i<r;)n(e[i],i);else m(e,n);return o}function g(e){return String(e).replace(/^ +| +$/g,"")}function v(e){var t,o,n,r,a,s=i,c=e&&"object"==typeof e&&"String"!=b(e);c&&(s=e,e=null);var d=s.navigator||{},f=d.userAgent||"";e||(e=f);var _=c?!!d.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(u.toString()),y="Object",w=c&&s.java?"JavaPackage":b(s.java),E=/\bJava/.test(w)&&s.java,C=E&&b(s.environment)==(c?y:"Environment"),k=E?"a":"α",A=E?"b":"β",x=s.document||{},D=s.operamini||s.opera,S=l.test(S=c&&D?D["[[Class]]"]:b(D))?S:D=null,T=e,O=[],I=null,B=e==f,R=B&&D&&"function"==typeof D.version&&D.version(),P=F([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(t,o){return t||RegExp("\\b"+(o.pattern||p(o))+"\\b","i").exec(e)&&(o.label||o)}),N=F(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],function(t,o){return t||RegExp("\\b"+(o.pattern||p(o))+"\\b","i").exec(e)&&(o.label||o)}),L=j([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),M=F({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}},function(t,o,n){return t||(o[L]||o[/^[a-z]+(?: +[a-z]+\b)*/i.exec(L)]||RegExp("\\b"+p(n)+"(?:\\b|\\w*\\d)","i").exec(e))&&n}),U=F(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],function(t,o){var n,i,r,a=o.pattern||p(o);return!t&&(t=RegExp("\\b"+a+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(n=t,i=o.label||o,r={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"},a&&i&&/^Win/i.test(n)&&!/^Windows Phone /i.test(n)&&(r=r[/[\d.]+$/.exec(n)])&&(n="Windows "+r),n=String(n),a&&i&&(n=n.replace(RegExp(a,"i"),i)),t=n=h(n.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])),t});function j(t){return F(t,function(t,o){var n=o.pattern||p(o);return!t&&(t=RegExp("\\b"+n+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+n+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+n+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(o.label&&!RegExp(n,"i").test(o.label)?o.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),o=o.label||o,t=h(t[0].replace(RegExp(n,"i"),o).replace(RegExp("; *(?:"+o+"[_-])?","i")," ").replace(RegExp("("+o+")[-_.]?(\\w)","i"),"$1 $2"))),t})}function $(t){return F(t,function(t,o){return t||(RegExp(o+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null})}if(P&&(P=[P]),/\bAndroid\b/.test(U)&&!L&&(r=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(e))&&(L=g(r[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),M&&!L?L=j([M]):M&&L&&(L=L.replace(RegExp("^("+p(M)+")[-_.\\s]","i"),M+" ").replace(RegExp("^("+p(M)+")[-_.]?(\\w)","i"),M+" $2")),(r=/\bGoogle TV\b/.exec(L))&&(L=r[0]),/\bSimulator\b/i.test(e)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==N&&/\bOPiOS\b/.test(e)&&O.push("running in Turbo/Uncompressed mode"),"IE"==N&&/\blike iPhone OS\b/.test(e)?(M=(r=v(e.replace(/like iPhone OS/,""))).manufacturer,L=r.product):/^iP/.test(L)?(N||(N="Safari"),U="iOS"+((r=/ OS ([\d_]+)/i.exec(e))?" "+r[1].replace(/_/g,"."):"")):"Konqueror"==N&&/^Linux\b/i.test(U)?U="Kubuntu":M&&"Google"!=M&&(/Chrome/.test(N)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(L))||/\bAndroid\b/.test(U)&&/^Chrome/.test(N)&&/\bVersion\//i.test(e)?(N="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==N?(/\bMobi/i.test(e)||(U="Android",O.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&O.unshift("accelerated")):"UC Browser"==N&&/\bUCWEB\b/.test(e)?O.push("speed mode"):"PaleMoon"==N&&(r=/\bFirefox\/([\d.]+)\b/.exec(e))?O.push("identifying as Firefox "+r[1]):"Firefox"==N&&(r=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(U||(U="Firefox OS"),L||(L=r[1])):!N||(r=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(N))?(N&&!L&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(r+"/")+8))&&(N=null),(r=L||M||U)&&(L||M||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(N=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:r)+" Browser")):"Electron"==N&&(r=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&O.push("Chromium "+r),R||(R=$(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",p(N),"(?:Firefox|Minefield|NetFront)"])),(r="iCab"==P&&parseFloat(R)>3&&"WebKit"||/\bOpera\b/.test(N)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(P)&&"WebKit"||!P&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==P&&/\bPlayStation\b(?! Vita\b)/i.test(N)&&"NetFront")&&(P=[r]),"IE"==N&&(r=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(N+=" Mobile",U="Windows Phone "+(/\+$/.test(r)?r:r+".x"),O.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(N="IE Mobile",U="Windows Phone 8.x",O.unshift("desktop mode"),R||(R=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=N&&"Trident"==P&&(r=/\brv:([\d.]+)/.exec(e))&&(N&&O.push("identifying as "+N+(R?" "+R:"")),N="IE",R=r[1]),B){if(o="global",n=null!=(t=s)?typeof t[o]:"number",/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!t[o])b(r=s.runtime)==(c?y:"ScriptBridgingProxyObject")?(N="Adobe AIR",U=r.flash.system.Capabilities.os):b(r=s.phantom)==(c?y:"RuntimeObject")?(N="PhantomJS",R=(r=r.version||null)&&r.major+"."+r.minor+"."+r.patch):"number"==typeof x.documentMode&&(r=/\bTrident\/(\d+)/i.exec(e))?(R=[R,x.documentMode],(r=+r[1]+4)!=R[1]&&(O.push("IE "+R[1]+" mode"),P&&(P[1]=""),R[1]=r),R="IE"==N?String(R[1].toFixed(1)):R[0]):"number"==typeof x.documentMode&&/^(?:Chrome|Firefox)\b/.test(N)&&(O.push("masking as "+N+" "+R),N="IE",R="11.0",P=["Trident"],U="Windows");else if(E&&(T=(r=E.lang.System).getProperty("os.arch"),U=U||r.getProperty("os.name")+" "+r.getProperty("os.version")),C){try{R=s.require("ringo/engine").version.join("."),N="RingoJS"}catch(e){(r=s.system)&&r.global.system==s.system&&(N="Narwhal",U||(U=r[0].os||null))}N||(N="Rhino")}else"object"==typeof s.process&&!s.process.browser&&(r=s.process)&&("object"==typeof r.versions&&("string"==typeof r.versions.electron?(O.push("Node "+r.versions.node),N="Electron",R=r.versions.electron):"string"==typeof r.versions.nw&&(O.push("Chromium "+R,"Node "+r.versions.node),N="NW.js",R=r.versions.nw)),N||(N="Node.js",T=r.arch,U=r.platform,R=(R=/[\d.]+/.exec(r.version))?R[0]:null));U=U&&h(U)}if(R&&(r=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(R)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(B&&d.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(I=/b/i.test(r)?"beta":"alpha",R=R.replace(RegExp(r+"\\+?$"),"")+("beta"==I?A:k)+(/\d+\+?/.exec(r)||"")),"Fennec"==N||"Firefox"==N&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))N="Firefox Mobile";else if("Maxthon"==N&&R)R=R.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(U=null),"Xbox 360"==L&&/\bIEMobile\b/.test(e)&&O.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(N)||N&&!L&&!/Browser|Mobi/.test(N))&&("Windows CE"==U||/Mobi/i.test(e)))N+=" Mobile";else if("IE"==N&&B)try{null===s.external&&O.unshift("platform preview")}catch(e){O.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(e))&&(r=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||R)?(U=((r=[r,/BB10/.test(e)])[1]?(L=null,M="BlackBerry"):"Device Software")+" "+r[0],R=null):this!=m&&"Wii"!=L&&(B&&D||/Opera/.test(N)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==N&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==N&&(U&&!/^Win/.test(U)&&R>5.5||/\bWindows XP\b/.test(U)&&R>8||8==R&&!/\bTrident\b/.test(e)))&&!l.test(r=v.call(m,e.replace(l,"")+";"))&&r.name&&(r="ing as "+r.name+((r=r.version)?" "+r:""),l.test(N)?(/\bIE\b/.test(r)&&"Mac OS"==U&&(U=null),r="identify"+r):(r="mask"+r,N=S?h(S.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(r)&&(U=null),B||(R=null)),P=["Presto"],O.push(r));(r=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(r=[parseFloat(r.replace(/\.(\d)$/,".0$1")),r],"Safari"==N&&"+"==r[1].slice(-1)?(N="WebKit Nightly",I="alpha",R=r[1].slice(0,-1)):(R==r[1]||R==(r[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1]))&&(R=null),r[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==r[0]&&537.36==r[2]&&parseFloat(r[1])>=28&&"WebKit"==P&&(P=["Blink"]),B&&(_||r[1])?(P&&(P[1]="like Chrome"),r=r[1]||((r=r[0])<530?1:r<532?2:r<532.05?3:r<533?4:r<534.03?5:r<534.07?6:r<534.1?7:r<534.13?8:r<534.16?9:r<534.24?10:r<534.3?11:r<535.01?12:r<535.02?"13+":r<535.07?15:r<535.11?16:r<535.19?17:r<536.05?18:r<536.1?19:r<537.01?20:r<537.11?"21+":r<537.13?23:r<537.18?24:r<537.24?25:r<537.36?26:"Blink"!=P?"27":"28")):(P&&(P[1]="like Safari"),r=(r=r[0])<400?1:r<500?2:r<526?3:r<533?4:r<534?"4+":r<535?5:r<537?6:r<538?7:r<601?8:r<602?9:r<604?10:r<606?11:r<608?12:"12"),P&&(P[1]+=" "+(r+="number"==typeof r?".x":/[.+]/.test(r)?"":"+")),"Safari"==N&&(!R||parseInt(R)>45)?R=r:"Chrome"==N&&/\bHeadlessChrome/i.test(e)&&O.unshift("headless")),"Opera"==N&&(r=/\bzbov|zvav$/.exec(U))?(N+=" ",O.unshift("desktop mode"),"zvav"==r?(N+="Mini",R=null):N+="Mobile",U=U.replace(RegExp(" *"+r+"$"),"")):"Safari"==N&&/\bChrome\b/.exec(P&&P[1])?(O.unshift("desktop mode"),N="Chrome Mobile",R=null,/\bOS X\b/.test(U)?(M="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(N)&&!R&&(R=$("Chrome")),R&&0==R.indexOf(r=/[\d.]+$/.exec(U))&&e.indexOf("/"+r+"-")>-1&&(U=g(U.replace(r,""))),U&&-1!=U.indexOf(N)&&!RegExp(N+" OS").test(U)&&(U=U.replace(RegExp(" *"+p(N)+" *"),"")),P&&!/\b(?:Avant|Nook)\b/.test(N)&&(/Browser|Lunascape|Maxthon/.test(N)||"Safari"!=N&&/^iOS/.test(U)&&/\bSafari\b/.test(P[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(N)&&P[1])&&(r=P[P.length-1])&&O.push(r),O.length&&(O=["("+O.join("; ")+")"]),M&&L&&0>L.indexOf(M)&&O.push("on "+M),L&&O.push((/^on /.test(O[O.length-1])?"":"on ")+L),U&&(a=(r=/ ([\d.+]+)$/.exec(U))&&"/"==U.charAt(U.length-r[0].length-1),U={architecture:32,family:r&&!a?U.replace(r[0],""):U,version:r?r[1]:null,toString:function(){var e=this.version;return this.family+(e&&!a?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(r=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(T))&&!/\bi686\b/i.test(T)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+r),"")),N&&(/\bWOW64\b/i.test(e)||B&&/\w(?:86|32)$/.test(d.cpuClass||d.platform)&&!/\bWin64; x64\b/i.test(e))&&O.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==N&&parseFloat(R)>=39&&(U.architecture=64),e||(e=null);var V={};return V.description=e,V.layout=P&&P[0],V.manufacturer=M,V.name=N,V.prerelease=I,V.product=L,V.ua=e,V.version=N&&R,V.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},V.parse=v,V.toString=function(){return this.description||""},V.version&&O.unshift(R),V.name&&O.unshift(N),U&&N&&!(U==String(U).split(" ")[0]&&(U==N.split(" ")[0]||L))&&O.push(L?"("+U+")":"on "+U),O.length&&(V.description=O.join(" ")),V}var _=v();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(i.platform=_,define(function(){return _})):r&&a?m(_,function(e,t){r[t]=e}):i.platform=_}).call(this)},5539(e){"use strict";var t=String.prototype.replace,o=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},8183(e,t,o){"use strict";var n=o(6334),i=o(4816);e.exports={formats:o(5539),parse:i,stringify:n}},4816(e,t,o){"use strict";var n=o(1954),i=Object.prototype.hasOwnProperty,r=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e,t,o){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var n=0,i=e.indexOf(",");i>-1;){if((n+=1)>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");i=e.indexOf(",",i+1)}return e.split(",")}if(t.throwOnLimitExceeded&&o>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t){var o={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=1/0===t.parameterLimit?void 0:t.parameterLimit,d=l.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==c?c+1:c);if(t.throwOnLimitExceeded&&void 0!==c&&d.length>c)throw RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var u=-1,f=t.charset;if(t.charsetSentinel)for(h=0;h<d.length;++h)0===d[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[h]?f="utf-8":"utf8=%26%2310003%3B"===d[h]&&(f="iso-8859-1"),u=h,h=d.length);for(h=0;h<d.length;++h)if(h!==u){var h,m,b,p=d[h],F=p.indexOf("]="),g=-1===F?p.indexOf("="):F+1;if(-1===g?(m=t.decoder(p,a.decoder,f,"key"),b=t.strictNullHandling?null:""):null!==(m=t.decoder(p.slice(0,g),a.decoder,f,"key"))&&(b=n.maybeMap(s(p.slice(g+1),t,r(o[m])?o[m].length:0),function(e){return t.decoder(e,a.decoder,f,"value")})),b&&t.interpretNumericEntities&&"iso-8859-1"===f&&(b=String(b).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),p.indexOf("[]=")>-1&&(b=r(b)?[b]:b),t.comma&&r(b)&&b.length>t.arrayLimit&&(b=n.combine([],b,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==m){var v=i.call(o,m);v&&("combine"===t.duplicates||p.indexOf("[]=")>-1)?o[m]=n.combine(o[m],b,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):v&&"last"!==t.duplicates||(o[m]=b)}}return o},c=function(e,t,o,i){var r=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");r=Array.isArray(t)&&t[a]?t[a].length:0}for(var l=i?t:s(t,o,r),c=e.length-1;c>=0;--c){var d,u=e[c];if("[]"===u&&o.parseArrays)d=n.isOverflow(l)?l:o.allowEmptyArrays&&(""===l||o.strictNullHandling&&null===l)?[]:n.combine([],l,o.arrayLimit,o.plainObjects,o.throwOnLimitExceeded);else{d=o.plainObjects?{__proto__:null}:{};var f="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,h=o.decodeDotInKeys?f.replace(/%2E/g,"."):f,m=parseInt(h,10),b=!isNaN(m)&&u!==h&&String(m)===h&&m>=0&&o.parseArrays;if(o.parseArrays||""!==h)if(b&&m<o.arrayLimit)(d=[])[m]=l;else if(b&&o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");else b?(d[m]=l,n.markOverflow(d,m)):"__proto__"!==h&&(d[h]=l);else d={0:l}}l=d}return l},d=function(e,t){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&i.call(Object.prototype,o)&&!t.allowPrototypes)return;return[o]}var n=[],r=o.indexOf("["),a=r>=0?o.slice(0,r):o;if(a){if(!t.plainObjects&&i.call(Object.prototype,a)&&!t.allowPrototypes)return;n[n.length]=a}for(var s=o.length,l=r,c=0;l>=0&&c<t.depth;){for(var d=1,u=l+1,f=-1;u<s&&f<0;){var h=o.charCodeAt(u);91===h?d+=1:93===h&&0==(d-=1)&&(f=u),u+=1}if(f<0)return n[n.length]="["+o.slice(l)+"]",n;var m=o.slice(l,f+1),b=m.slice(1,-1);if(!t.plainObjects&&i.call(Object.prototype,b)&&!t.allowPrototypes)return;n[n.length]=m,c+=1,l=o.indexOf("[",f+1)}if(l>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+o.slice(l)+"]"}return n},u=function(e,t,o,n){if(e){var i=d(e,o);if(i)return c(i,t,o,n)}},f=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,o=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:o,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:a.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var o=f(t);if(""===e||null==e)return o.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?l(e,o):e,r=o.plainObjects?{__proto__:null}:{},a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],d=u(c,i[c],o,"string"==typeof e);r=n.merge(r,d,o)}return!0===o.allowSparse?r:n.compact(r)}},6334(e,t,o){"use strict";var n=o(6278),i=o(1954),r=o(5539),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,d=function(e,t){c.apply(e,l(t)?t:[t])},u=Date.prototype.toISOString,f=r.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:r.formatters[f],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},m={},b=function e(t,o,r,a,s,c,u,f,b,p,F,g,v,_,y,w,E,C,k,A){var x,D,S=t;if(A>k)throw RangeError("Input depth exceeded depth option of "+k);for(var T=C,O=0,I=!1;void 0!==(T=T.get(m))&&!I;){var B=T.get(t);if(O+=1,void 0!==B)if(B===O)throw RangeError("Cyclic object value");else I=!0;void 0===T.get(m)&&(O=0)}if((S="function"==typeof p?p(o,S):S)instanceof Date?S=v(S):"comma"===r&&l(S)&&(S=i.maybeMap(S,function(e){return e instanceof Date?v(e):e})),null===S){if(c)return y(b&&!w?b(o,h.encoder,E,"key",_):o);S=""}if("string"==typeof(x=S)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||i.isBuffer(S))return b?[y(w?o:b(o,h.encoder,E,"key",_))+"="+y(b(S,h.encoder,E,"value",_))]:[y(o)+"="+y(String(S))];var R=[];if(void 0===S)return R;if("comma"===r&&l(S))w&&b&&(S=i.maybeMap(S,function(e){return null==e?e:b(e)})),D=[{value:S.length>0?S.join(",")||null:void 0}];else if(l(p))D=p;else{var P=Object.keys(S);D=F?P.sort(F):P}var N=f?String(o).replace(/\./g,"%2E"):String(o),L=a&&l(S)&&1===S.length?N+"[]":N;if(s&&l(S)&&0===S.length&&0===Object.keys(S).length)return L+"[]";for(var M=0;M<D.length;++M){var U=D[M],j="object"==typeof U&&U&&void 0!==U.value?U.value:S[U];if(!u||null!==j){var $=g&&f?String(U).replace(/\./g,"%2E"):String(U),V=l(S)?"function"==typeof r?r(L,$):L:L+(g?"."+$:"["+$+"]");C.set(t,O);var z=n();z.set(m,C),d(R,e(j,V,r,a,s,c,u,f,"comma"===r&&w&&l(S)?null:b,p,F,g,v,_,y,w,E,z,k,A+1))}}return R},p=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,o=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=r.default;if(void 0!==e.format){if(!a.call(r.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=r.formatters[n],c=h.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:t,charset:o,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,depth:"number"==typeof e.depth?e.depth:h.depth,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var o,i=e,r=p(t);"function"==typeof r.filter?i=(0,r.filter)("",i):l(r.filter)&&(o=r.filter);var a=[];if("object"!=typeof i||null===i)return"";var c=s[r.arrayFormat],u="comma"===c&&r.commaRoundTrip;o||(o=Object.keys(i)),r.sort&&o.sort(r.sort);for(var f=n(),h=0;h<o.length;++h){var m=o[h];if(null!=m){var F=i[m];r.skipNulls&&null===F||d(a,b(F,r.encodeDotInKeys?String(m).replace(/\./g,"%2E"):String(m),c,u,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f,r.depth,0))}}var g=a.join(r.delimiter),v=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?v+="utf8=%26%2310003%3B"+r.delimiter:v+="utf8=%E2%9C%93"+r.delimiter),g.length>0?v+g:""}},1954(e,t,o){"use strict";var n=o(5539),i=o(6278),r=o(9997),a=Object.prototype.hasOwnProperty,s=Array.isArray,l=i(),c=function(e,t){return l.set(e,t),e},d=function(e){return l.has(e)},u=function(e){return l.get(e)},f=function(e,t){l.set(e,t)},h=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),m=function(e){for(;e.length>1;){var t=e.pop(),o=t.obj[t.prop];if(s(o)){for(var n=[],i=0;i<o.length;++i)void 0!==o[i]&&(n[n.length]=o[i]);t.obj[t.prop]=n}}},b=function(e,t){for(var o=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(o[n]=e[n]);return o},p=function(e,t,o){"__proto__"===t&&r?r(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o};e.exports={arrayToObject:b,assign:function(e,t){return Object.keys(t).reduce(function(e,o){return p(e,o,t[o]),e},e)},combine:function(e,t,o,n,i){if(d(e)){if(i)throw RangeError("Array limit exceeded. Only "+o+" element"+(1===o?"":"s")+" allowed in an array.");for(var r=s(t)?t:[t],a=u(e),l=0;l<r.length;++l)e[a+=1]=r[l];return f(e,a),e}var h=[].concat(e,t);if(h.length>o){if(i)throw RangeError("Array limit exceeded. Only "+o+" element"+(1===o?"":"s")+" allowed in an array.");return c(b(h,{plainObjects:n}),h.length-1)}return h},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],o=i(),n=0;n<t.length;++n)for(var r=t[n],a=r.obj[r.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],d=a[c];"object"!=typeof d||null===d||o.has(d)||(t[t.length]={obj:a,prop:c},o.set(d,!0))}return m(t),e},decode:function(e,t,o){var n=e.replace(/\+/g," ");if("iso-8859-1"===o)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,o,i,r){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===o)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=1024){var c=a.length>=1024?a.slice(l,l+1024):a;if(l+1024<a.length){var d=c.charCodeAt(c.length-1);d>=55296&&d<=56319&&(c=c.slice(0,-1),l-=1)}for(var u=[],f=0;f<c.length;++f){var m=c.charCodeAt(f);if(45===m||46===m||95===m||126===m||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||r===n.RFC1738&&(40===m||41===m)){u[u.length]=c.charAt(f);continue}if(m<128){u[u.length]=h[m];continue}if(m<2048){u[u.length]=h[192|m>>6]+h[128|63&m];continue}if(m<55296||m>=57344){u[u.length]=h[224|m>>12]+h[128|m>>6&63]+h[128|63&m];continue}f+=1,m=65536+((1023&m)<<10|1023&c.charCodeAt(f)),u[u.length]=h[240|m>>18]+h[128|m>>12&63]+h[128|m>>6&63]+h[128|63&m]}s+=u.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:d,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:c,maybeMap:function(e,t){if(s(e)){for(var o=[],n=0;n<e.length;n+=1)o[o.length]=t(e[n]);return o}return t(e)},merge:function e(t,o,n){if(!o)return t;if("object"!=typeof o&&"function"!=typeof o){if(s(t)){var i=t.length;if(n&&"number"==typeof n.arrayLimit&&i>=n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return c(b(t.concat(o),n),i)}t[i]=o}else if(!t||"object"!=typeof t)return[t,o];else if(d(t)){var r=u(t)+1;t[r]=o,f(t,r)}else{if(n&&n.strictMerge)return[t,o];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,o))&&(t[o]=!0)}return t}if(!t||"object"!=typeof t){if(d(o)){for(var l=Object.keys(o),h=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},m=0;m<l.length;m++)h[parseInt(l[m],10)+1]=o[l[m]];return c(h,u(o)+1)}var F=[t].concat(o);if(n&&"number"==typeof n.arrayLimit&&F.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return c(b(F,n),F.length-1)}return F}var g=t;if(s(t)&&!s(o)&&(g=b(t,n)),s(t)&&s(o)){if(o.forEach(function(o,i){if(a.call(t,i)){var r=t[i];r&&"object"==typeof r&&o&&"object"==typeof o?t[i]=e(r,o,n):t[t.length]=o}else t[i]=o}),n&&"number"==typeof n.arrayLimit&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return c(b(t,n),t.length-1)}return t}return Object.keys(o).reduce(function(t,i){var r=o[i];if(a.call(t,i)?p(t,i,e(t[i],r,n)):p(t,i,r),d(o)&&!d(t)&&c(t,u(o)),d(t)){var s=parseInt(i,10);String(s)===i&&s>=0&&s>u(t)&&f(t,s)}return t},g)}}},6521(e,t,o){"use strict";var n=o(3109),i=o(6757),r=function(e,t,o){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,o||(n.next=e.next,e.next=n),n},a=function(e,t){if(e){var o=r(e,t);return o&&o.value}},s=function(e,t,o){var n=r(e,t);n?n.value=o:e.next={key:t,next:e.next,value:o}},l=function(e,t){if(e)return r(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var o=l(e,t);return o&&e&&!e.next&&(e=void 0),!!o},get:function(t){return a(e,t)},has:function(t){var o;return!!(o=e)&&!!r(o,t)},set:function(t,o){e||(e={next:void 0}),s(e,t,o)}};return t}},3977(e,t,o){"use strict";var n=o(4295),i=o(8682),r=o(3109),a=o(6757),s=n("%Map%",!0),l=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),d=i("Map.prototype.has",!0),u=i("Map.prototype.delete",!0),f=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+r(e))},delete:function(t){if(e){var o=u(e,t);return 0===f(e)&&(e=void 0),o}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,o){e||(e=new s),c(e,t,o)}};return t}},8965(e,t,o){"use strict";var n=o(4295),i=o(8682),r=o(3109),a=o(3977),s=o(6757),l=n("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),d=i("WeakMap.prototype.set",!0),u=i("WeakMap.prototype.has",!0),f=i("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,o={assert:function(e){if(!o.has(e))throw new s("Side channel does not contain "+r(e))},delete:function(o){if(l&&o&&("object"==typeof o||"function"==typeof o)){if(e)return f(e,o)}else if(a&&t)return t.delete(o);return!1},get:function(o){return l&&o&&("object"==typeof o||"function"==typeof o)&&e?c(e,o):t&&t.get(o)},has:function(o){return l&&o&&("object"==typeof o||"function"==typeof o)&&e?u(e,o):!!t&&t.has(o)},set:function(o,n){l&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new l),d(e,o,n)):a&&(t||(t=a()),t.set(o,n))}};return o}:a},6278(e,t,o){"use strict";var n=o(6757),i=o(3109),r=o(6521),a=o(3977),s=o(8965)||a||r;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+(e&&Object(e)===e?"the given object key":i(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,o){e||(e=s()),e.set(t,o)}};return t}},4532(e,t,o){!function(e){"use strict";var t,o,n=function(){try{if(e.URLSearchParams&&"bar"===new e.URLSearchParams("foo=bar").get("foo"))return e.URLSearchParams}catch(e){}return null}(),i=n&&"a=1"===new n({a:1}).toString(),r=n&&"+"===new n("s=%2B").get("s"),a=n&&"size"in n.prototype,s="__URLSearchParams__",l=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),c=h.prototype,d=!!(e.Symbol&&e.Symbol.iterator);if(!n||!i||!r||!l||!a){c.append=function(e,t){g(this[s],e,t)},c.delete=function(e){delete this[s][e]},c.get=function(e){var t=this[s];return this.has(e)?t[e][0]:null},c.getAll=function(e){var t=this[s];return this.has(e)?t[e].slice(0):[]},c.has=function(e){return _(this[s],e)},c.set=function(e,t){this[s][e]=[""+t]},c.toString=function(){var e,t,o,n,i=this[s],r=[];for(t in i)for(o=m(t),e=0,n=i[t];e<n.length;e++)r.push(o+"="+m(n[e]));return r.join("&")};var u=e.Proxy&&n&&(!r||!l||!i||!a);u?(o=new Proxy(n,{construct:function(e,t){return new e(new h(t[0]).toString())}})).toString=Function.prototype.toString.bind(h):o=h,Object.defineProperty(e,"URLSearchParams",{value:o});var f=e.URLSearchParams.prototype;f.polyfill=!0,!u&&e.Symbol&&(f[e.Symbol.toStringTag]="URLSearchParams"),"forEach"in f||(f.forEach=function(e,t){var o=F(this.toString());Object.getOwnPropertyNames(o).forEach(function(n){o[n].forEach(function(o){e.call(t,o,n,this)},this)},this)}),"sort"in f||(f.sort=function(){var e,t,o,n=F(this.toString()),i=[];for(e in n)i.push(e);for(i.sort(),t=0;t<i.length;t++)this.delete(i[t]);for(t=0;t<i.length;t++){var r=i[t],a=n[r];for(o=0;o<a.length;o++)this.append(r,a[o])}}),"keys"in f||(f.keys=function(){var e=[];return this.forEach(function(t,o){e.push(o)}),p(e)}),"values"in f||(f.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),p(e)}),"entries"in f||(f.entries=function(){var e=[];return this.forEach(function(t,o){e.push([o,t])}),p(e)}),d&&(f[e.Symbol.iterator]=f[e.Symbol.iterator]||f.entries),"size"in f||Object.defineProperty(f,"size",{get:function(){var e=F(this.toString());if(f===this)throw TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(e).reduce(function(t,o){return t+e[o].length},0)}})}function h(e){((e=e||"")instanceof URLSearchParams||e instanceof h)&&(e=e.toString()),this[s]=F(e)}function m(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function b(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(e){return decodeURIComponent(e)})}function p(t){var o={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return d&&(o[e.Symbol.iterator]=function(){return o}),o}function F(e){var t={};if("object"==typeof e)if(v(e))for(var o=0;o<e.length;o++){var n=e[o];if(v(n)&&2===n.length)g(t,n[0],n[1]);else throw TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements")}else for(var i in e)e.hasOwnProperty(i)&&g(t,i,e[i]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var r=e.split("&"),a=0;a<r.length;a++){var s=r[a],l=s.indexOf("=");-1<l?g(t,b(s.slice(0,l)),b(s.slice(l+1))):s&&g(t,b(s),"")}}return t}function g(e,t,o){var n="string"==typeof o?o:null!=o&&"function"==typeof o.toString?o.toString():JSON.stringify(o);_(e,t)?e[t].push(n):e[t]=[n]}function v(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==o.g?o.g:"u">typeof window?window:this)},5610(){},7791(){},6550(){}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t,n)=>{var i=(t,n)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,[n]:t[i]})};i(t,"get"),i(n,"value")},o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";let e,t,i,r,a,s,l;o.r(n),o.d(n,{BY_RRULE_PARTS:()=>hW,EventTypes:()=>tO,FREQUENCIES:()=>hY,INTUITIVE_NOT_APPLICABLE:()=>hJ,MONTHS:()=>hQ,OrScheduler:()=>h7,OrSchedulerChangedEvent:()=>h8,OrSchedulerRemovedEvent:()=>h9,RFC_STRICT_NOT_APPLICABLE:()=>hG,RRULE_ENDS:()=>hZ,WEEKDAYS:()=>hX});var c,d,u,f,h,m,b,p,F,g,v,_,y,w,E,C,k,A,x,D,S,T,O,I,B,R,P,N,L,M,U,j,$,V,z,q,H,Y,W,G,K,J,X,Q,Z,ee,et,eo,en,ei,er,ea,es,el,ec,ed,eu,ef,eh,em,eb,ep,eF,eg,ev,e_,ey,ew,eE,eC,ek,eA,ex,eD,eS,eT,eO,eI,eB,eR,eP,eN,eL,eM,eU,ej,e$,eV,ez,eq,eH,eY,eW,eG,eK,eJ,eX,eQ,eZ,e0,e1,e2,e3,e5,e4,e6,e8,e9,e7,te,tt,to,tn,ti,tr,ta,ts,tl,tc,td,tu,tf,th,tm,tb,tp,tF,tg,tv,t_,ty,tw,tE,tC,tk,tA,tx,tD,tS,tT,tO,tI={};o.r(tI),o.d(tI,{hasBrowserEnv:()=>ce,hasStandardBrowserEnv:()=>co,hasStandardBrowserWebWorkerEnv:()=>cn,navigator:()=>ct,origin:()=>ci});let tB=globalThis,tR=tB.ShadowRoot&&(void 0===tB.ShadyCSS||tB.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tP=Symbol(),tN=new WeakMap;class tL{constructor(e,t,o){if(this._$cssResult$=!0,o!==tP)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(tR&&void 0===e){let o=void 0!==t&&1===t.length;o&&(e=tN.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&tN.set(t,e))}return e}toString(){return this.cssText}}let tM=e=>new tL("string"==typeof e?e:e+"",void 0,tP),tU=(e,...t)=>new tL(1===e.length?e[0]:t.reduce((t,o,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[n+1],e[0]),e,tP),tj=(e,t)=>{if(tR)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let o of t){let t=document.createElement("style"),n=tB.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=o.cssText,e.appendChild(t)}},t$=tR?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return tM(t)})(e):e,{is:tV,defineProperty:tz,getOwnPropertyDescriptor:tq,getOwnPropertyNames:tH,getOwnPropertySymbols:tY,getPrototypeOf:tW}=Object,tG=globalThis,tK=tG.trustedTypes,tJ=tK?tK.emptyScript:"",tX=tG.reactiveElementPolyfillSupport,tQ={toAttribute(e,t){switch(t){case Boolean:e=e?tJ:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=null!==e;break;case Number:o=null===e?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch(e){o=null}}return o}},tZ=(e,t)=>!tV(e,t),t0={attribute:!0,type:String,converter:tQ,reflect:!1,useDefault:!1,hasChanged:tZ};Symbol.metadata??=Symbol("metadata"),tG.litPropertyMetadata??=new WeakMap;class t1 extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=t0){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);void 0!==n&&tz(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:i}=tq(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){let r=n?.call(this);i?.call(this,t),this.requestUpdate(e,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??t0}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=tW(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...tH(e),...tY(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,o]of t)this.elementProperties.set(e,o)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let o=this._$Eu(e,t);void 0!==o&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let o of new Set(e.flat(1/0).reverse()))t.unshift(t$(o));else void 0!==e&&t.push(t$(e));return t}static _$Eu(e,t){let o=t.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return tj(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(void 0!==n&&!0===o.reflect){let i=(void 0!==o.converter?.toAttribute?o.converter:tQ).toAttribute(t,o.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(void 0!==n&&this._$Em!==n){let e=o.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:tQ;this._$Em=n;let r=i.fromAttribute(t,e.type);this[n]=r??this._$Ej?.get(n)??r,this._$Em=null}}requestUpdate(e,t,o){if(void 0!==e){let n=this.constructor,i=this[e];if(!(((o??=n.getPropertyOptions(e)).hasChanged??tZ)(i,t)||o.useDefault&&o.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,t,o)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:n,wrapped:i},r){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,r??t??this[e]),!0!==i||void 0!==r)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),!0===n&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,o]of e){let{wrapped:e}=o,n=this[t];!0!==e||this._$AL.has(t)||void 0===n||this.C(t,void 0,o,n)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}t1.elementStyles=[],t1.shadowRootOptions={mode:"open"},t1.elementProperties=new Map,t1.finalized=new Map,tX?.({ReactiveElement:t1}),(tG.reactiveElementVersions??=[]).push("2.1.1");let t2=globalThis,t3=t2.trustedTypes,t5=t3?t3.createPolicy("lit-html",{createHTML:e=>e}):void 0,t4="$lit$",t6=`lit$${Math.random().toFixed(9).slice(2)}$`,t8="?"+t6,t9=`<${t8}>`,t7=document,oe=()=>t7.createComment(""),ot=e=>null===e||"object"!=typeof e&&"function"!=typeof e,oo=Array.isArray,on=e=>oo(e)||"function"==typeof e?.[Symbol.iterator],oi="[ \n\f\r]",or=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oa=/-->/g,os=/>/g,ol=RegExp(`>|${oi}(?:([^\\s"'>=/]+)(${oi}*=${oi}*(?:[^
2
2
  \f\r"'\`<>=]|("|')|))|$)`,"g"),oc=/'/g,od=/"/g,ou=/^(?:script|style|textarea|title)$/i,of=(e,...t)=>({_$litType$:1,strings:e,values:t}),oh=Symbol.for("lit-noChange"),om=Symbol.for("lit-nothing"),ob=new WeakMap,op=t7.createTreeWalker(t7,129);function oF(e,t){if(!oo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==t5?t5.createHTML(t):t}let og=(e,t)=>{let o=e.length-1,n=[],i,r=2===t?"<svg>":3===t?"<math>":"",a=or;for(let t=0;t<o;t++){let o=e[t],s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,null!==(l=a.exec(o)));)d=a.lastIndex,a===or?"!--"===l[1]?a=oa:void 0!==l[1]?a=os:void 0!==l[2]?(ou.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=ol):void 0!==l[3]&&(a=ol):a===ol?">"===l[0]?(a=i??or,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?ol:'"'===l[3]?od:oc):a===od||a===oc?a=ol:a===oa||a===os?a=or:(a=ol,i=void 0);let u=a===ol&&e[t+1].startsWith("/>")?" ":"";r+=a===or?o+t9:c>=0?(n.push(s),o.slice(0,c)+t4+o.slice(c)+t6+u):o+t6+(-2===c?t:u)}return[oF(e,r+(e[o]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]};class ov{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let i=0,r=0;const a=e.length-1,s=this.parts,[l,c]=og(e,t);if(this.el=ov.createElement(l,o),op.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=op.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(t4)){const t=c[r++],o=n.getAttribute(e).split(t6),a=/([.?@])?(.*)/.exec(t);s.push({type:1,index:i,name:a[2],strings:o,ctor:"."===a[1]?oC:"?"===a[1]?ok:"@"===a[1]?oA:oE}),n.removeAttribute(e)}else e.startsWith(t6)&&(s.push({type:6,index:i}),n.removeAttribute(e));if(ou.test(n.tagName)){const e=n.textContent.split(t6),t=e.length-1;if(t>0){n.textContent=t3?t3.emptyScript:"";for(let o=0;o<t;o++)n.append(e[o],oe()),op.nextNode(),s.push({type:2,index:++i});n.append(e[t],oe())}}}else if(8===n.nodeType)if(n.data===t8)s.push({type:2,index:i});else{let e=-1;for(;-1!==(e=n.data.indexOf(t6,e+1));)s.push({type:7,index:i}),e+=t6.length-1}i++}}static createElement(e,t){let o=t7.createElement("template");return o.innerHTML=e,o}}function o_(e,t,o=e,n){if(t===oh)return t;let i=void 0!==n?o._$Co?.[n]:o._$Cl,r=ot(t)?void 0:t._$litDirective$;return i?.constructor!==r&&(i?._$AO?.(!1),void 0===r?i=void 0:(i=new r(e))._$AT(e,o,n),void 0!==n?(o._$Co??=[])[n]=i:o._$Cl=i),void 0!==i&&(t=o_(e,i._$AS(e,t.values),i,n)),t}class oy{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??t7).importNode(t,!0);op.currentNode=n;let i=op.nextNode(),r=0,a=0,s=o[0];for(;void 0!==s;){if(r===s.index){let t;2===s.type?t=new ow(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new ox(i,this,e)),this._$AV.push(t),s=o[++a]}r!==s?.index&&(i=op.nextNode(),r++)}return op.currentNode=t7,n}p(e){let t=0;for(let o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class ow{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=om,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){ot(e=o_(this,e,t))?e===om||null==e||""===e?(this._$AH!==om&&this._$AR(),this._$AH=om):e!==this._$AH&&e!==oh&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):on(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==om&&ot(this._$AH)?this._$AA.nextSibling.data=e:this.T(t7.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,n="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=ov.createElement(oF(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let e=new oy(n,this),o=e.u(this.options);e.p(t),this.T(o),this._$AH=e}}_$AC(e){let t=ob.get(e.strings);return void 0===t&&ob.set(e.strings,t=new ov(e)),t}k(e){oo(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let i of e)n===t.length?t.push(o=new ow(this.O(oe()),this.O(oe()),this,this.options)):o=t[n],o._$AI(i),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class oE{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,i){this.type=1,this._$AH=om,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=om}_$AI(e,t=this,o,n){let i=this.strings,r=!1;if(void 0===i)(r=!ot(e=o_(this,e,t,0))||e!==this._$AH&&e!==oh)&&(this._$AH=e);else{let n,a,s=e;for(e=i[0],n=0;n<i.length-1;n++)(a=o_(this,s[o+n],t,n))===oh&&(a=this._$AH[n]),r||=!ot(a)||a!==this._$AH[n],a===om?e=om:e!==om&&(e+=(a??"")+i[n+1]),this._$AH[n]=a}r&&!n&&this.j(e)}j(e){e===om?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class oC extends oE{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===om?void 0:e}}class ok extends oE{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==om)}}class oA extends oE{constructor(e,t,o,n,i){super(e,t,o,n,i),this.type=5}_$AI(e,t=this){if((e=o_(this,e,t,0)??om)===oh)return;let o=this._$AH,n=e===om&&o!==om||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,i=e!==om&&(o===om||n);n&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ox{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){o_(this,e)}}let oD=t2.litHtmlPolyfillSupport;oD?.(ov,ow),(t2.litHtmlVersions??=[]).push("3.3.1");let oS=(e,t,o)=>{let n=o?.renderBefore??t,i=n._$litPart$;if(void 0===i){let e=o?.renderBefore??null;n._$litPart$=i=new ow(t.insertBefore(oe(),e),e,void 0,o??{})}return i._$AI(e),i},oT=globalThis;class oO extends t1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=oS(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return oh}}oO._$litElement$=!0,oO.finalized=!0,oT.litElementHydrateSupport?.({LitElement:oO});let oI=oT.litElementPolyfillSupport;oI?.({LitElement:oO}),(oT.litElementVersions??=[]).push("4.2.1");let oB=tU`
3
3
  h4 {
4
4
  margin: 0;
@@ -60,7 +60,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
60
60
  :host([hidden]) {
61
61
  display: none;
62
62
  }
63
- `,nW([oV({type:String})],nG.prototype,"value",void 0),nW([oV({type:Object})],nG.prototype,"options",void 0),nG=nW([oj("or-translate")],nG),window.Vaadin||={},window.Vaadin.featureFlags||={};let nK={};function nJ(e,t="25.2.8"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||nK[t]){if(nK[t])return void nK[t].add(e)}else{nK[t]=new Set,nK[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===nK[t].size,set(e){e&&nK[t].size>0&&(nK[t].forEach(e=>{customElements.define(e.is,e)}),nK[t].clear())}});return}}let o=customElements.get(e.is);if(o){let t=o.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${o.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let nX=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,nQ=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function nZ(e,t){if("function"!=typeof e)return;let o=nX.exec(e.toString());if(o)try{e=Function(o[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};let n0=function(e,t){if(window.Vaadin.developmentMode)return nZ(e,t)};function n1(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(nQ)return!(nQ&&Object.keys(nQ).map(e=>nQ[e]).filter(e=>e.productionMode).length>0);return!nZ(function(){return!0})}catch(e){return!1}}());let n2=function(){if("function"==typeof n0)return n0(n1)},n3=0,n5=0,n4=[],n6=!1,n8={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},n9={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},n7={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},ie={run(e){n6||(n6=!0,queueMicrotask(()=>(function(){n6=!1;let e=n4.length;for(let t=0;t<e;t++){let e=n4[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}n4.splice(0,e),n5+=e})())),n4.push(e);let t=n3;return n3+=1,t},cancel(e){let t=e-n5;if(t>=0){if(!n4[t])throw Error(`invalid async handle: ${e}`);n4[t]=null}}},it=new Set;class io{static debounce(e,t,o){return e instanceof io?e._cancelAsync():e=new io,e.setConfig(t,o),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,it.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),it.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let ii=()=>{let e;do e=function(){let e=!!it.size;return it.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e}();while(e)},ir=[];function ia(e,t,o=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=o&&e.removeAttribute("dir")}function is(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=is();ir.forEach(t=>{ia(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let il=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ia(this,is(),null))}attributeChangedCallback(e,t,o){if(super.attributeChangedCallback(e,t,o),"dir"!==e)return;let n=is(),i=o===n&&-1===ir.indexOf(this),r=!o&&t&&-1===ir.indexOf(this),a=o!==n&&t===n;i||r?(this.__subscribe(),ia(this,n,o)):a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ir.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,o){("dir"!==o||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,o)}_attributeToProperty(e,t,o){"dir"!==e||t?super._attributeToProperty(e,t,o):this.dir=""}__subscribe(){ir.includes(this)||ir.push(this)}__unsubscribe(){ir.includes(this)&&ir.splice(ir.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){n2()};let ic=new Set,id=t=>class extends il(t){static _ensureRegistrations(){let{is:t}=this;if(t&&!ic.has(t)){window.Vaadin.registrations.push(this),ic.add(t);let n=window.Vaadin.developmentModeCallback;if(n){var o;o=e=io.debounce(e,n7,()=>{n["vaadin-usage-statistics"]()}),it.add(o)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},iu=new WeakMap;function ih(e){return t=>{if(function(e,t){let o=t;for(;o;){if(iu.get(o)===e)return!0;o=Object.getPrototypeOf(o)}return!1}(e,t))return t;let o=e(t);return iu.set(o,e),o}}function im(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}let ib={},ip=/([A-Z])/gu;function iF(e){return ib[e]||(ib[e]=e.replace(ip,"-$1").toLowerCase()),ib[e]}function ig(e){return e[0].toUpperCase()+e.substring(1)}function iv(e){let[t,o]=e.split("(");return{method:t,observerProps:o.replace(")","").split(",").map(e=>e.trim())}}function i_(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let iy=ih(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return i_(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:o,observerProps:n}=iv(t);e.set(o,n)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,o){let n=super.getPropertyDescriptor(e,t,o),i=n;if(this.getOrCreateMap("__propKeys").set(e,t),o.sync&&(i={get:n.get,set(n){let i=this[e];tZ(n,i)&&(this[t]=n,this.requestUpdate(e,i,o),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),o.readOnly){let t=i.set;this.addCheckedInitializer(o=>{o[`_set${ig(e)}`]=function(e){t.call(o,e)}}),i={get:i.get,set(){},configurable:!0,enumerable:!0}}if("value"in o&&this.addCheckedInitializer(t=>{let n="function"==typeof o.value?o.value.call(t):o.value;o.readOnly?t[`_set${ig(e)}`](n):t[e]=n}),o.observer){let t=o.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(o.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(o.computed){let t=`__assignComputed${e}`,n=iv(o.computed);this.prototype[t]=function(...t){this[e]=this[n.method](...t)},this.getOrCreateMap("__computedObservers").set(t,n.observerProps)}return o.attribute||(o.attribute=iF(e)),i}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let o=this.constructor.__propKeys.get(e),n=this[o];this[o]=t,this.requestUpdate(e,n)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=i_(this,"__dynamicMethodObservers"),{method:o,observerProps:n}=iv(e);t.set(o,n)}_createPropertyObserver(e,t){i_(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,o)=>{t.some(t=>e.has(t))&&(this[o]?this[o](...t.map(e=>this[e])):console.warn(`observer method ${o} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,o)=>{e.has(t)&&this[o]&&this[o](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,o)=>{let n=t.get(o);void 0!==n&&this[n]&&this[n](this[o],e)})}__runNotifyProps(e,t){e.forEach((e,o)=>{t.has(o)&&this.dispatchEvent(new CustomEvent(`${iF(o)}-changed`,{detail:{value:this[o]}}))})}_get(e,t){return im(e,t)}_set(e,t,o){let n,i;i=(n=e.split(".")).pop(),n.reduce((e,t)=>e[t],o)[i]=t}});function iw(e){return e?new Set(e.split(" ")):new Set}function iE(e){return e?[...e].join(" "):""}function iC(e,t,o){let n=iw(e.getAttribute(t));n.add(o),e.setAttribute(t,iE(n))}class ik{constructor(e,t,o={}){this.target=e,this.callback=t,this.forceInitial=o.forceInitial,this._storedNodes=[],this._isSlot=e instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),o.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(e=>e.assignedNodes({flatten:!0})))]}_groupNodesBySlot(e){let t=new Map;return e.forEach(e=>{let o=e.assignedSlot;t.set(o,t.get(o)??[]),t.get(o).push(e)}),t}_collectMovedNodes(e){let t=this._groupNodesBySlot(e),o=this._groupNodesBySlot(this._storedNodes),n=[];return t.forEach((e,t)=>{let i=o.get(t)||[];new Set(i).difference(new Set(e)).size>0||i.forEach((t,o)=>{e.indexOf(t)!==o&&n.push(t)})}),n}_processNodes(){let e=this._collectNodes(),t=e.filter(e=>!this._storedNodes.includes(e)),o=this._storedNodes.filter(t=>!e.includes(t)),n=this._collectMovedNodes(e);(t.length||o.length||n.length||this.forceInitial)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:n,removedNodes:o}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=e}}let iA=0;class ix extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${iA++}`}constructor(e,t,o,n={}){super();const{initializer:i,multiple:r,observe:a,useUniqueId:s,uniqueIdPrefix:l}=n;this.host=e,this.slotName=t,this.tagName=o,this.observe="boolean"!=typeof a||a,this.multiple="boolean"==typeof r&&r,this.slotInitializer=i,r&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,l||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){let e=this.getSlotChildren();if(0===e.length){let e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){let{host:e,slotName:t,tagName:o}=this,n=this.defaultNode;return!n&&o&&(n=document.createElement(o))instanceof Element&&(""!==t&&n.setAttribute("slot",t),this.defaultNode=n),n&&(this.node=n,e.appendChild(n)),n}getSlotChildren(){let{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore"))&&(t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){let{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){let{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`,o=this.host.shadowRoot.querySelector(t);this.__slotObserver=new ik(o,({addedNodes:e,removedNodes:t})=>{let o=this.multiple?this.nodes:[this.node],n=e.filter(e=>(e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim())&&!o.includes(e)&&!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore")));t.length&&(this.nodes=o.filter(e=>!t.includes(e)),t.forEach(e=>{this.teardownNode(e)})),n?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...o,...n].filter(e=>e!==this.defaultNode),n.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=n[0],this.initAddedNode(this.node)))})}}class iD extends ix{constructor(e){super(e,"tooltip"),this.setTarget(e),this.__onContentChange=this.__onContentChange.bind(this)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.__notifyChange(e),e.addEventListener("content-changed",this.__onContentChange)}teardownNode(e){this.manual||this.host.removeAttribute("has-tooltip"),e.removeEventListener("content-changed",this.__onContentChange),this.__notifyChange(null)}setAriaTarget(e){this.ariaTarget=e;let t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;let t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;let t=this.node;t&&(t.manual=e)}setPosition(e){this.position=e;let t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;let t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;let t=this.node;t&&(t.target=e)}open(e){let t=this.node;t?.isConnected&&t._stateController.open(e)}close(e){let t=this.node;t&&t._stateController.close(e)}__onContentChange(e){this.__notifyChange(e.target)}__notifyChange(e){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:e}}))}}function iS(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class iT extends EventTarget{#e;#t=new Set;#o;#n=!1;constructor(e){super(),this.#e=e,this.#o=new CSSStyleSheet}#i(e){let{propertyName:t}=e;this.#t.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#t.has(e)||(this.#t.add(e),this.#o.replaceSync(`
63
+ `,nW([oV({type:String})],nG.prototype,"value",void 0),nW([oV({type:Object})],nG.prototype,"options",void 0),nG=nW([oj("or-translate")],nG),window.Vaadin||={},window.Vaadin.featureFlags||={};let nK={};function nJ(e,t="25.2.11"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||nK[t]){if(nK[t])return void nK[t].add(e)}else{nK[t]=new Set,nK[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===nK[t].size,set(e){e&&nK[t].size>0&&(nK[t].forEach(e=>{customElements.define(e.is,e)}),nK[t].clear())}});return}}let o=customElements.get(e.is);if(o){let t=o.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${o.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let nX=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,nQ=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function nZ(e,t){if("function"!=typeof e)return;let o=nX.exec(e.toString());if(o)try{e=Function(o[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};let n0=function(e,t){if(window.Vaadin.developmentMode)return nZ(e,t)};function n1(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(nQ)return!(nQ&&Object.keys(nQ).map(e=>nQ[e]).filter(e=>e.productionMode).length>0);return!nZ(function(){return!0})}catch(e){return!1}}());let n2=function(){if("function"==typeof n0)return n0(n1)},n3=0,n5=0,n4=[],n6=!1,n8={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},n9={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},n7={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},ie={run(e){n6||(n6=!0,queueMicrotask(()=>(function(){n6=!1;let e=n4.length;for(let t=0;t<e;t++){let e=n4[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}n4.splice(0,e),n5+=e})())),n4.push(e);let t=n3;return n3+=1,t},cancel(e){let t=e-n5;if(t>=0){if(!n4[t])throw Error(`invalid async handle: ${e}`);n4[t]=null}}},it=new Set;class io{static debounce(e,t,o){return e instanceof io?e._cancelAsync():e=new io,e.setConfig(t,o),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,it.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),it.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let ii=()=>{let e;do e=function(){let e=!!it.size;return it.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e}();while(e)},ir=[];function ia(e,t,o=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=o&&e.removeAttribute("dir")}function is(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=is();ir.forEach(t=>{ia(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let il=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ia(this,is(),null))}attributeChangedCallback(e,t,o){if(super.attributeChangedCallback(e,t,o),"dir"!==e)return;let n=is(),i=o===n&&-1===ir.indexOf(this),r=!o&&t&&-1===ir.indexOf(this),a=o!==n&&t===n;i||r?(this.__subscribe(),ia(this,n,o)):a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ir.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,o){("dir"!==o||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,o)}_attributeToProperty(e,t,o){"dir"!==e||t?super._attributeToProperty(e,t,o):this.dir=""}__subscribe(){ir.includes(this)||ir.push(this)}__unsubscribe(){ir.includes(this)&&ir.splice(ir.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){n2()};let ic=new Set,id=t=>class extends il(t){static _ensureRegistrations(){let{is:t}=this;if(t&&!ic.has(t)){window.Vaadin.registrations.push(this),ic.add(t);let n=window.Vaadin.developmentModeCallback;if(n){var o;o=e=io.debounce(e,n7,()=>{n["vaadin-usage-statistics"]()}),it.add(o)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},iu=new WeakMap;function ih(e){return t=>{if(function(e,t){let o=t;for(;o;){if(iu.get(o)===e)return!0;o=Object.getPrototypeOf(o)}return!1}(e,t))return t;let o=e(t);return iu.set(o,e),o}}function im(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}let ib={},ip=/([A-Z])/gu;function iF(e){return ib[e]||(ib[e]=e.replace(ip,"-$1").toLowerCase()),ib[e]}function ig(e){return e[0].toUpperCase()+e.substring(1)}function iv(e){let[t,o]=e.split("(");return{method:t,observerProps:o.replace(")","").split(",").map(e=>e.trim())}}function i_(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let iy=ih(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return i_(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:o,observerProps:n}=iv(t);e.set(o,n)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,o){let n=super.getPropertyDescriptor(e,t,o),i=n;if(this.getOrCreateMap("__propKeys").set(e,t),o.sync&&(i={get:n.get,set(n){let i=this[e];tZ(n,i)&&(this[t]=n,this.requestUpdate(e,i,o),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),o.readOnly){let t=i.set;this.addCheckedInitializer(o=>{o[`_set${ig(e)}`]=function(e){t.call(o,e)}}),i={get:i.get,set(){},configurable:!0,enumerable:!0}}if("value"in o&&this.addCheckedInitializer(t=>{let n="function"==typeof o.value?o.value.call(t):o.value;o.readOnly?t[`_set${ig(e)}`](n):t[e]=n}),o.observer){let t=o.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(o.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(o.computed){let t=`__assignComputed${e}`,n=iv(o.computed);this.prototype[t]=function(...t){this[e]=this[n.method](...t)},this.getOrCreateMap("__computedObservers").set(t,n.observerProps)}return o.attribute||(o.attribute=iF(e)),i}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let o=this.constructor.__propKeys.get(e),n=this[o];this[o]=t,this.requestUpdate(e,n)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=i_(this,"__dynamicMethodObservers"),{method:o,observerProps:n}=iv(e);t.set(o,n)}_createPropertyObserver(e,t){i_(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,o)=>{t.some(t=>e.has(t))&&(this[o]?this[o](...t.map(e=>this[e])):console.warn(`observer method ${o} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,o)=>{e.has(t)&&this[o]&&this[o](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,o)=>{let n=t.get(o);void 0!==n&&this[n]&&this[n](this[o],e)})}__runNotifyProps(e,t){e.forEach((e,o)=>{t.has(o)&&this.dispatchEvent(new CustomEvent(`${iF(o)}-changed`,{detail:{value:this[o]}}))})}_get(e,t){return im(e,t)}_set(e,t,o){let n,i;i=(n=e.split(".")).pop(),n.reduce((e,t)=>e[t],o)[i]=t}});function iw(e){return e?new Set(e.split(" ")):new Set}function iE(e){return e?[...e].join(" "):""}function iC(e,t,o){let n=iw(e.getAttribute(t));n.add(o),e.setAttribute(t,iE(n))}class ik{constructor(e,t,o={}){this.target=e,this.callback=t,this.forceInitial=o.forceInitial,this._storedNodes=[],this._isSlot=e instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),o.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(e=>e.assignedNodes({flatten:!0})))]}_groupNodesBySlot(e){let t=new Map;return e.forEach(e=>{let o=e.assignedSlot;t.set(o,t.get(o)??[]),t.get(o).push(e)}),t}_collectMovedNodes(e){let t=this._groupNodesBySlot(e),o=this._groupNodesBySlot(this._storedNodes),n=[];return t.forEach((e,t)=>{let i=o.get(t)||[];new Set(i).difference(new Set(e)).size>0||i.forEach((t,o)=>{e.indexOf(t)!==o&&n.push(t)})}),n}_processNodes(){let e=this._collectNodes(),t=e.filter(e=>!this._storedNodes.includes(e)),o=this._storedNodes.filter(t=>!e.includes(t)),n=this._collectMovedNodes(e);(t.length||o.length||n.length||this.forceInitial)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:n,removedNodes:o}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=e}}let iA=0;class ix extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${iA++}`}constructor(e,t,o,n={}){super();const{initializer:i,multiple:r,observe:a,useUniqueId:s,uniqueIdPrefix:l}=n;this.host=e,this.slotName=t,this.tagName=o,this.observe="boolean"!=typeof a||a,this.multiple="boolean"==typeof r&&r,this.slotInitializer=i,r&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,l||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){let e=this.getSlotChildren();if(0===e.length){let e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){let{host:e,slotName:t,tagName:o}=this,n=this.defaultNode;return!n&&o&&(n=document.createElement(o))instanceof Element&&(""!==t&&n.setAttribute("slot",t),this.defaultNode=n),n&&(this.node=n,e.appendChild(n)),n}getSlotChildren(){let{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore"))&&(t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){let{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){let{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`,o=this.host.shadowRoot.querySelector(t);this.__slotObserver=new ik(o,({addedNodes:e,removedNodes:t})=>{let o=this.multiple?this.nodes:[this.node],n=e.filter(e=>(e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim())&&!o.includes(e)&&!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore")));t.length&&(this.nodes=o.filter(e=>!t.includes(e)),t.forEach(e=>{this.teardownNode(e)})),n?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...o,...n].filter(e=>e!==this.defaultNode),n.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=n[0],this.initAddedNode(this.node)))})}}class iD extends ix{constructor(e){super(e,"tooltip"),this.setTarget(e),this.__onContentChange=this.__onContentChange.bind(this)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.__notifyChange(e),e.addEventListener("content-changed",this.__onContentChange)}teardownNode(e){this.manual||this.host.removeAttribute("has-tooltip"),e.removeEventListener("content-changed",this.__onContentChange),this.__notifyChange(null)}setAriaTarget(e){this.ariaTarget=e;let t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;let t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;let t=this.node;t&&(t.manual=e)}setPosition(e){this.position=e;let t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;let t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;let t=this.node;t&&(t.target=e)}open(e){let t=this.node;t?.isConnected&&t._stateController.open(e)}close(e){let t=this.node;t&&t._stateController.close(e)}__onContentChange(e){this.__notifyChange(e.target)}__notifyChange(e){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:e}}))}}function iS(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class iT extends EventTarget{#e;#t=new Set;#o;#n=!1;constructor(e){super(),this.#e=e,this.#o=new CSSStyleSheet}#i(e){let{propertyName:t}=e;this.#t.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#t.has(e)||(this.#t.add(e),this.#o.replaceSync(`
64
64
  :root::before, :host::before {
65
65
  content: '' !important;
66
66
  position: absolute !important;
@@ -288,7 +288,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
288
288
  }
289
289
  }
290
290
  `,iG="string"==typeof document.head.style.touchAction,iK="__polymerGestures",iJ="__polymerGesturesHandled",iX="__polymerGesturesTouchAction",iQ=["mousedown","mousemove","mouseup","click"],iZ=[0,1,4,2],i0=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function i1(e){return iQ.indexOf(e)>-1}let i2=!1;try{let e=Object.defineProperty({},"passive",{get(){i2=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}let i3=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),i5={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function i4(e){let t=e.type;if(!i1(t))return!1;if("mousemove"===t){let t=e.buttons??1;return e instanceof window.MouseEvent&&!i0&&(t=iZ[e.which]||0),!!(1&t)}return 0===(e.button??0)}let i6={x:0,y:0,id:-1,scrollDecided:!1};function i8(e,t,o){e.movefn=t,e.upfn=o,document.addEventListener("mousemove",t),document.addEventListener("mouseup",o)}function i9(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}let i7=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],re={},rt=[];function ro(e){let t=i7(e);return t.length>0?t[0]:e.target}function rn(e){let t=e.type,o=e.currentTarget[iK];if(!o)return;let n=o[t];if(!n)return;if(!e[iJ]&&(e[iJ]={},t.startsWith("touch"))){let o=e.changedTouches[0];if("touchstart"===t&&1===e.touches.length&&(i6.id=o.identifier),i6.id!==o.identifier)return;iG||"touchstart"!==t&&"touchmove"!==t||function(e){let t=e.changedTouches[0],o=e.type;if("touchstart"===o)i6.x=t.clientX,i6.y=t.clientY,i6.scrollDecided=!1;else if("touchmove"===o){if(i6.scrollDecided)return;i6.scrollDecided=!0;let o=function(e){let t="auto",o=i7(e);for(let e=0,n;e<o.length;e++)if((n=o[e])[iX]){t=n[iX];break}return t}(e),n=!1,i=Math.abs(i6.x-t.clientX),r=Math.abs(i6.y-t.clientY);e.cancelable&&("none"===o?n=!0:"pan-x"===o?n=r>i:"pan-y"===o&&(n=i>r)),n?e.preventDefault():rs("track")}}(e)}let i=e[iJ];if(!i.skip){for(let t=0,o;t<rt.length;t++)n[(o=rt[t]).name]&&!i[o.name]&&o.flow&&o.flow.start.indexOf(e.type)>-1&&o.reset&&o.reset();for(let o=0,r;o<rt.length;o++)n[(r=rt[o]).name]&&!i[r.name]&&(i[r.name]=!0,r[t](e))}}function ri(e,t,o){return!!re[t]&&(function(e,t,o){var n,i;let r=re[t],a=r.deps,s=r.name,l=e[iK];l||(e[iK]=l={});for(let t=0,o,n;t<a.length;t++)(o=a[t],!(i3&&i1(o))||"click"===o)&&((n=l[o])||(l[o]=n={_count:0}),0===n._count&&e.addEventListener(o,rn,void i1(o)),n[s]=(n[s]||0)+1,n._count=(n._count||0)+1);e.addEventListener(t,o),r.touchAction&&(n=e,i=r.touchAction,iG&&n instanceof HTMLElement&&ie.run(()=>{n.style.touchAction=i}),n[iX]=i)}(e,t,o),!0)}function rr(e){rt.push(e),e.emits.forEach(t=>{re[t]=e})}function ra(e,t,o){let n=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=o,e.dispatchEvent(n),n.defaultPrevented){let e=o.preventer||o.sourceEvent;e?.preventDefault&&e.preventDefault()}}function rs(e){let t=function(e){for(let t=0,o;t<rt.length;t++){o=rt[t];for(let t=0;t<o.emits.length;t++)if(o.emits[t]===e)return o}return null}(e);t.info&&(t.info.prevent=!0)}function rl(e,t,o,n){t&&ra(t,e,{x:o.clientX,y:o.clientY,sourceEvent:o,preventer:n,prevent:e=>rs(e)})}function rc(e,t,o){if(e.prevent)return!1;if(e.started)return!0;let n=Math.abs(e.x-t),i=Math.abs(e.y-o);return n>=5||i>=5}function rd(e,t,o){if(!t)return;let n=e.moves[e.moves.length-2],i=e.moves[e.moves.length-1],r=i.x-e.x,a=i.y-e.y,s,l=0;n&&(s=i.x-n.x,l=i.y-n.y),ra(t,"track",{state:e.state,x:o.clientX,y:o.clientY,dx:r,dy:a,ddx:s,ddy:l,sourceEvent:o,hover:()=>(function(e,t){let o=document.elementFromPoint(e,t),n=o;for(;n?.shadowRoot&&!window.ShadyDOM&&n!==(n=n.shadowRoot.elementFromPoint(e,t));)n&&(o=n);return o})(o.clientX,o.clientY)})}function ru(e,t,o){let n=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),r=ro(o||t);!(!r||i5[r.localName]&&r.hasAttribute("disabled"))&&(isNaN(n)||isNaN(i)||n<=25&&i<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;let t=ro(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let o=t.getBoundingClientRect(),n=e.pageX,i=e.pageY;return!(n>=o.left&&n<=o.right&&i>=o.top&&i<=o.bottom)}return!1}(t))&&!e.prevent&&ra(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:o})}rr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){i9(this.info)},mousedown(e){if(!i4(e))return;let t=ro(e),o=this;i8(this.info,e=>{i4(e)||(rl("up",t,e),i9(o.info))},e=>{i4(e)&&rl("up",t,e),i9(o.info)}),rl("down",t,e)},touchstart(e){rl("down",ro(e),e.changedTouches[0],e)},touchend(e){rl("up",ro(e),e.changedTouches[0],e)}}),rr({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>2&&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,i9(this.info)},mousedown(e){if(!i4(e))return;let t=ro(e),o=this,n=e=>{let n=e.clientX,i=e.clientY;rc(o.info,n,i)&&(o.info.state=o.info.started?"mouseup"===e.type?"end":"track":"start","start"===o.info.state&&rs("tap"),o.info.addMove({x:n,y:i}),i4(e)||(o.info.state="end",i9(o.info)),t&&rd(o.info,t,e),o.info.started=!0)};i8(this.info,n,e=>{o.info.started&&n(e),i9(o.info)}),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){let t=ro(e),o=e.changedTouches[0],n=o.clientX,i=o.clientY;rc(this.info,n,i)&&("start"===this.info.state&&rs("tap"),this.info.addMove({x:n,y:i}),rd(this.info,t,o),this.info.state="track",this.info.started=!0)},touchend(e){let t=ro(e),o=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:o.clientX,y:o.clientY}),rd(this.info,t,o))}}),rr({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:0/0,y:0/0,prevent:!1},reset(){this.info.x=0/0,this.info.y=0/0,this.info.prevent=!1},mousedown(e){i4(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){i4(e)&&ru(this.info,e)},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){ru(this.info,e.changedTouches[0],e)}});let rf=ih(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}),rh=ih(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}}),rm=e=>class extends rf(rh(e)){get _activeKeys(){return[" "]}ready(){super.ready(),ri(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ri(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}},rb=!1;function rp(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function rF(e){let t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;let o=window.getComputedStyle(e);return"hidden"===o.visibility||"none"===o.display}function rg(e){return e.checkVisibility?!e.checkVisibility({visibilityProperty:!0}):null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||rF(e)}function rv(e){return!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function r_(e){return e.getRootNode().activeElement===e}window.addEventListener("keydown",()=>{rb=!0},{capture:!0}),window.addEventListener("mousedown",()=>{rb=!1},{capture:!0});let ry=ih(e=>class extends e{get _keyboardActive(){return rb}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}focus(e){super.focus(e),e?.focusVisible!==!1&&this.setAttribute("focus-ring","")}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}),rw=e=>class extends rf(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged",sync:!0},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),!this.__shouldAllowFocusWhenDisabled()&&(e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.setAttribute("tabindex","-1")):t&&(void 0!==this._lastTabIndex?this.setAttribute("tabindex",this._lastTabIndex):this.tabindex=void 0))}_tabindexChanged(e){!this.__shouldAllowFocusWhenDisabled()&&this.disabled&&-1!==e&&(this._lastTabIndex=e,this.setAttribute("tabindex","-1"))}focus(e){(!this.disabled||this.__shouldAllowFocusWhenDisabled())&&super.focus(e)}__shouldAllowFocusWhenDisabled(){return!1}},rE=["mousedown","mouseup","click","dblclick","keypress","keydown","keyup"],rC=e=>class extends rm(rw(ry(e))){constructor(){super(),this.__onInteractionEvent=this.__onInteractionEvent.bind(this),rE.forEach(e=>{this.addEventListener(e,this.__onInteractionEvent,!0)}),this.tabindex=0}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button"),this.__shouldAllowFocusWhenDisabled()&&this.style.setProperty("--_vaadin-button-disabled-pointer-events","auto")}_onKeyDown(e){super._onKeyDown(e),e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}__onInteractionEvent(e){this.__shouldSuppressInteractionEvent(e)&&e.stopImmediatePropagation()}__shouldSuppressInteractionEvent(e){return this.disabled}};class rk extends rC(id(iY(iy(i$(oO))))){static get is(){return"vaadin-button"}static get styles(){return iW}static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}render(){return of`
291
- <div class="vaadin-button-container">
291
+ <div class="vaadin-button-container" role="presentation">
292
292
  <span part="prefix" aria-hidden="true">
293
293
  <slot name="prefix"></slot>
294
294
  </span>
@@ -729,7 +729,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
729
729
  padding-inline: 0;
730
730
  border-block: var(--vaadin-input-field-border-width, 1px) solid transparent;
731
731
  }
732
- `,r5=[rD,r3],r4=e=>class extends rX(ry(rf(e))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new iD(this),this._tooltipController.addEventListener("tooltip-changed",e=>{let t=e.detail.node;if(t?.isConnected){let e=this.__checkboxes.map(e=>e.inputElement);this._tooltipController.setAriaTarget(e)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");let e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new ik(e,({addedNodes:e,removedNodes:t})=>{let o=this.__filterCheckboxes(e),n=this.__filterCheckboxes(t);o.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);let i=this.__checkboxes.map(e=>e.inputElement);this._tooltipController.setAriaTarget(i),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(e=>e.nodeType===Node.ELEMENT_NODE&&"vaadin-checkbox"===e.localName)}__warnOfCheckboxesWithoutValue(e){e.some(e=>{let{value:t}=e;return!e.hasAttribute("value")&&(!t||"on"===t)})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),(e||void 0!==t)&&t!==e&&this.__checkboxes.forEach(t=>{t.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){let t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){(e?.length!==0||void 0!==t)&&(this.toggleAttribute("has-value",e?.length>0),this.__checkboxes.forEach(t=>{t.checked=e?.includes(t.value)}),void 0!==t&&this._requestValidation())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(t=>{t.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this._requestValidation()}};class r6 extends r4(id(iY(iy(i$(oO))))){static get is(){return"vaadin-checkbox-group"}static get styles(){return r5}render(){return of`
732
+ `,r5=[rD,r3],r4=e=>class extends rX(ry(rf(e))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new iD(this),this._tooltipController.addEventListener("tooltip-changed",e=>{let t=e.detail.node;if(t?.isConnected){let e=this.__checkboxes.map(e=>e.inputElement);this._tooltipController.setAriaTarget(e)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");let e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new ik(e,({addedNodes:e,removedNodes:t})=>{let o=this.__filterCheckboxes(e),n=this.__filterCheckboxes(t);o.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);let i=this.__checkboxes.map(e=>e.inputElement);this._tooltipController.setAriaTarget(i),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(e=>e instanceof r1)}__warnOfCheckboxesWithoutValue(e){e.some(e=>{let{value:t}=e;return!e.hasAttribute("value")&&(!t||"on"===t)})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),(e||void 0!==t)&&t!==e&&this.__checkboxes.forEach(t=>{t.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){let t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){(e?.length!==0||void 0!==t)&&(this.toggleAttribute("has-value",e?.length>0),this.__checkboxes.forEach(t=>{t.checked=e?.includes(t.value)}),void 0!==t&&this._requestValidation())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(t=>{t.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this._requestValidation()}};class r6 extends r4(id(iY(iy(i$(oO))))){static get is(){return"vaadin-checkbox-group"}static get styles(){return r5}render(){return of`
733
733
  <div class="vaadin-group-field-container">
734
734
  <div part="label">
735
735
  <slot name="label"></slot>
@@ -947,6 +947,11 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
947
947
  display: none !important;
948
948
  }
949
949
 
950
+ :host([suppressed]) [part='overlay'],
951
+ :host([suppressed]) ::slotted(*) {
952
+ pointer-events: none !important;
953
+ }
954
+
950
955
  [part='overlay'] {
951
956
  color: var(--vaadin-overlay-text-color, var(--vaadin-text-color));
952
957
  background: var(--vaadin-overlay-background, var(--vaadin-background-color));
@@ -1032,7 +1037,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1032
1037
  inset: auto 0 0 !important;
1033
1038
  }
1034
1039
  }
1035
- `;/Android/u.test(navigator.userAgent),/Chrome/u.test(navigator.userAgent)&&/Google Inc/u.test(navigator.vendor),/Firefox/u.test(navigator.userAgent);let ao=/^iPad/u.test(navigator.platform)||/^Mac/u.test(navigator.platform)&&navigator.maxTouchPoints>1,an=/^iPhone/u.test(navigator.platform)||ao,ai=/^((?!chrome|android).)*safari/iu.test(navigator.userAgent),ar=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();class aa{saveFocus(e){this.focusNode=e||rp()}restoreFocus(e){let t=this.focusNode;if(!t)return;let o={preventScroll:!!e&&e.preventScroll,focusVisible:!!e&&e.focusVisible};rp()===document.body?setTimeout(()=>t.focus(o)):t.focus(o),this.focusNode=null}}let as=[];class al{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){var e;let t;return e=this.__trapNode,!function e(t,o){if(t.nodeType!==Node.ELEMENT_NODE||rF(t))return!1;let n=rv(t)?Number(t.getAttribute("tabindex")||0):-1,i=n>0;n>=0&&o.push(t);return[..."slot"===t.localName?t.assignedNodes({flatten:!0}):(t.shadowRoot||t).children].forEach(t=>{i=e(t,o)||i}),i}(e,t=[])?t:function e(t){let o=t.length;if(o<2)return t;let n=Math.ceil(o/2),i=e(t.slice(0,n)),r=e(t.slice(n)),a=[];for(;i.length>0&&r.length>0;)!function(e,t){let o=Math.max(e.tabIndex,0),n=Math.max(t.tabIndex,0);return 0===o||0===n?n>o:o>n}(i[0],r[0])?a.push(i.shift()):a.push(r.shift());return a.concat(i,r)}(t)}get __focusedElementIndex(){let e=this.__focusableElements;return e.indexOf(e.filter(r_).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,Error("The trap node should have at least one focusable descendant or be focusable itself.");as.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus({focusVisible:rb})}releaseFocus(){this.__trapNode=null,as.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(as).pop()&&"Tab"===e.key){if(e.defaultPrevented)return;e.preventDefault();let t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){let t=this.__focusableElements,o=this.__focusedElementIndex,n=(t.length+o+(e?-1:1))%t.length,i=t[n];i.focus({focusVisible:!0}),"input"===i.localName&&i.select()}}let ac=e=>class extends e{static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__focusTrapController=new al(this),this.__focusRestorationController=new aa}get _contentRoot(){return this}ready(){super.ready(),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}get _focusTrapRoot(){return this.$.overlay}_resetFocus(){if(this.focusTrap&&this.__focusTrapController.releaseFocus(),this.restoreFocusOnClose&&this._shouldRestoreFocus()){let e=rb;this.__focusRestorationController.restoreFocus({preventScroll:!e,focusVisible:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&!rg(this._focusTrapRoot)&&this.__focusTrapController.trapFocus(this._focusTrapRoot)}_shouldRestoreFocus(){let e=rp();return e===document.body||this._deepContains(e)}_deepContains(e){if(this._contentRoot.contains(e))return!0;let t=e,o=e.ownerDocument;for(;t&&t!==o&&t!==this._contentRoot;)t=t.parentNode||t.host;return t===this._contentRoot}},ad=new Set,au=()=>[...ad].filter(e=>!e.hasAttribute("closing")),af=e=>{let t=au(),o=t.indexOf(e);return -1===o?[]:t.slice(o+1)},ah=(e,t=e=>!0)=>e===au().filter(t).pop(),am=e=>class extends e{get _last(){return ah(this)}get _isAttached(){return ad.has(this)}bringToFront(){if(ah(this))return;let e=af(this),t=e.filter(e=>e._hasOverlayPositionMixin&&this._deepContains(e));t.length!==e.length&&[this,...t].forEach(e=>{e.matches(":popover-open")&&(e.hidePopover(),e.showPopover()),e._removeAttachedInstance(),e._appendAttachedInstance()})}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),au().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){let e;void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);let t=au();for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}_appendAttachedInstance(){ad.add(this)}_removeAttachedInstance(){this._isAttached&&ad.delete(this)}};function ab(e,t,o){let n=[e];e.owner&&n.push(e.owner),"string"==typeof o?n.forEach(e=>{e.setAttribute(t,o)}):o?n.forEach(e=>{e.setAttribute(t,"")}):n.forEach(e=>{e.removeAttribute(t)})}let ap=e=>class extends ac(am(e)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},owner:{type:Object,sync:!0},model:{type:Object,sync:!0},renderer:{type:Object,sync:!0},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged",sync:!0},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged",sync:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_withBackdropChanged",sync:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}get _rendererRoot(){return this}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),an&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}firstUpdated(){super.firstUpdated(),this.popover="manual",this.addEventListener("click",()=>{}),this.$.backdrop&&this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}),this.addEventListener("animationcancel",()=>{this._flushAnimation("opening"),this._flushAnimation("closing")})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener)),this.opened&&this._attachOverlay()}disconnectedCallback(){super.disconnectedCallback(),this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this._rendererRoot,this.owner,this.model)}close(e){let t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{overlay:this,sourceEvent:e}});this.dispatchEvent(t),document.body.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}setBounds(e,t=!0){let o=this.$.overlay,n={...e};t&&"absolute"!==o.style.position&&(o.style.position="absolute"),Object.keys(n).forEach(e=>{null===n[e]||isNaN(n[e])||(n[e]=`${n[e]}px`)}),Object.assign(o.style,n)}_detectIosNavbar(){if(!this.opened)return;let e=window.innerHeight,t=window.innerWidth,o=document.documentElement.clientHeight;t>e&&o>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0px")}_shouldAddGlobalListeners(){return!this.modeless}_addGlobalListeners(){this.__hasGlobalListeners||(this.__hasGlobalListeners=!0,document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0))}_removeGlobalListeners(){this.__hasGlobalListeners&&(this.__hasGlobalListeners=!1,document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0))}_rendererOrDataChanged(e,t,o,n){let i=this._oldOwner!==t||this._oldModel!==o;this._oldModel=o,this._oldOwner=t;let r=this._oldRenderer!==e,a=void 0!==this._oldRenderer;this._oldRenderer=e;let s=this._oldOpened!==n;this._oldOpened=n,r&&a&&(this._rendererRoot.innerHTML="",delete this._rendererRoot._$litPart$),n&&e&&(r||s||i)&&this.requestContentUpdate()}_modelessChanged(e){this.opened&&(this._shouldAddGlobalListeners()?this._addGlobalListeners():this._removeGlobalListeners()),e?this._exitModalState():this.opened&&this._enterModalState(),ab(this,"modeless",e)}_withBackdropChanged(e){ab(this,"with-backdrop",e)}_openedChanged(e,t){if(e){if(!this.isConnected){this.opened=!1;return}this._saveFocus(),this._animatedOpening(),this.__scheduledOpen=requestAnimationFrame(()=>{setTimeout(()=>{this._trapFocus();let e=new CustomEvent("vaadin-overlay-open",{detail:{overlay:this},bubbles:!0});this.dispatchEvent(e),document.body.dispatchEvent(e)})}),document.addEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._addGlobalListeners()}else t&&(this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){let e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return"none"!==e.getPropertyValue("display")&&t&&"none"!==t}_enqueueAnimation(e,t){let o=`__${e}Handler`,n=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",n),delete this[o])};this[o]=n,this.addEventListener("animationend",n)}_flushAnimation(e){let t=`__${e}Handler`;"function"==typeof this[t]&&this[t]()}_animatedOpening(){this._isAttached&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this._appendAttachedInstance(),this.bringToFront(),this.modeless||this._enterModalState(),ab(this,"opening",!0),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this.matches(":popover-open")||this.showPopover()}_finishOpening(){ab(this,"opening",!1)}_finishClosing(){this._detachOverlay(),this._removeAttachedInstance(),this.$.overlay.style.removeProperty("pointer-events"),ab(this,"closing",!1),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._isAttached&&(this._exitModalState(),ab(this,"closing",!0),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this.hidePopover()}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;let t=new CustomEvent("vaadin-overlay-outside-click",{cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&(this.close(e),this.opened||this.modeless||e.preventDefault())}_keydownListener(e){if(this._last&&!e.defaultPrevented&&(this._shouldAddGlobalListeners()||e.composedPath().includes(this._focusTrapRoot))&&"Escape"===e.key){let t=new CustomEvent("vaadin-overlay-escape-press",{cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}},aF={start:"top",end:"bottom"},ag={start:"left",end:"right"},av=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),a_=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}}}constructor(){super(),this._hasOverlayPositionMixin=!0,this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}updated(e){if(super.updated(e),e.has("positionTarget")){let t=e.get("positionTarget");this.__oldContentWidth=void 0,this.__oldContentHeight=void 0,(!this.positionTarget&&t||this.positionTarget&&!t&&this.__margins)&&this.__resetPosition()}(e.has("opened")||e.has("positionTarget"))&&this.__updatePositionSettings(this.opened,this.positionTarget),["horizontalAlign","verticalAlign","noHorizontalOverlap","noVerticalOverlap","requiredVerticalSpace"].some(t=>e.has(t))&&this._updatePosition()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(e){let 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}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=function(e,t){let o,n=null,i=document.documentElement;function r(){o&&clearTimeout(o),n?.disconnect(),n=null}return!function a(s=!1,l=1){r();let{left:c,top:d,width:u,height:f}=e.getBoundingClientRect();if(s||t(),!u||!f)return;let h=Math.floor(d),m=Math.floor(i.clientWidth-(c+u)),b=Math.floor(i.clientHeight-(d+f)),p=Math.floor(c),F=!0;(n=new IntersectionObserver(function(e){let t=e[0].intersectionRatio;if(t!==l){if(!F)return a();t?a(!1,t):o=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1},{rootMargin:`${-h}px ${-m}px ${-b}px ${-p}px`,threshold:Math.max(0,Math.min(1,l))||1})).observe(e)}(!0),r}(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__updatePositionSettings(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,av.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,av.observe(t))),e){let e=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(t=>{this.__margins[t]=parseInt(e[t],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__onScroll(e){e.target instanceof Node&&this._deepContains(e.target)||this._updatePosition()}__resetPosition(){this.__margins=null,Object.assign(this.style,{justifyContent:"",alignItems:"",top:"",bottom:"",left:"",right:""}),ab(this,"bottom-aligned",!1),ab(this,"top-aligned",!1),ab(this,"end-aligned",!1),ab(this,"start-aligned",!1)}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;let e=this.positionTarget.getBoundingClientRect();if(0===e.width&&0===e.height&&this.opened){this.opened=!1;return}let t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";let o=this.__isRTL,n=this.__shouldAlignStartHorizontally(e,o),i=!o&&n||o&&!n;this.style.alignItems=i?"flex-start":"flex-end";let r=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,r,this.noVerticalOverlap,aF,this,t),s=this.__calculatePositionInOneDimension(e,r,this.noHorizontalOverlap,ag,this,n);Object.assign(this.style,a,s),ab(this,"bottom-aligned",!t),ab(this,"top-aligned",t),ab(this,"end-aligned",!i),ab(this,"start-aligned",i)}__shouldAlignStartHorizontally(e,t){let o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;let n=Math.min(window.innerWidth,document.documentElement.clientWidth),i=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,o,n,this.__margins,i,this.noHorizontalOverlap,ag)}__shouldAlignStartVertically(e){let t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;let o=Math.min(window.innerHeight,document.documentElement.clientHeight),n="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,o,this.__margins,n,this.noVerticalOverlap,aF)}__shouldAlignStart(e,t,o,n,i,r,a){let s=o-e[r?a.end:a.start]-n[a.end],l=e[r?a.start:a.end]-n[a.start],c=i?s:l;return i===(c>(i?l:s)||c>t)}__adjustBottomProperty(e,t,o){let n;if(e===t.end){if(t.end===aF.end){let e=Math.min(window.innerHeight,document.documentElement.clientHeight);o>e&&this.__oldViewportHeight&&(n=o-(this.__oldViewportHeight-e)),this.__oldViewportHeight=e}if(t.end===ag.end){let e=Math.min(window.innerWidth,document.documentElement.clientWidth);o>e&&this.__oldViewportWidth&&(n=o-(this.__oldViewportWidth-e)),this.__oldViewportWidth=e}}return n}__calculatePositionInOneDimension(e,t,o,n,i,r){let a=r?n.start:n.end,s=r?n.end:n.start,l=parseFloat(i.style[a]||getComputedStyle(i)[a]),c=this.__adjustBottomProperty(a,n,l),d=t[r?n.start:n.end]-e[o===r?n.end:n.start];return{[a]:c?`${c}px`:`${l+d*(r?-1:1)}px`,[s]:""}}},ay=e=>class extends a_(ap(e)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!rv(e.composedPath()[0])&&e.preventDefault()}};class aw extends ay(il(iY(iy(i$(oO))))){static get is(){return"vaadin-date-picker-overlay"}static get styles(){return[ae,at]}render(){return of`
1040
+ `;/Android/u.test(navigator.userAgent),/Chrome/u.test(navigator.userAgent)&&/Google Inc/u.test(navigator.vendor),/Firefox/u.test(navigator.userAgent);let ao=/^iPad/u.test(navigator.platform)||/^Mac/u.test(navigator.platform)&&navigator.maxTouchPoints>1,an=/^iPhone/u.test(navigator.platform)||ao,ai=/^((?!chrome|android).)*safari/iu.test(navigator.userAgent),ar=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();class aa{saveFocus(e){this.focusNode=e||rp()}restoreFocus(e){let t=this.focusNode;if(!t)return;let o={preventScroll:!!e&&e.preventScroll,focusVisible:!!e&&e.focusVisible};rp()===document.body?setTimeout(()=>t.focus(o)):t.focus(o),this.focusNode=null}}let as=[];class al{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){var e;let t;return e=this.__trapNode,!function e(t,o){if(t.nodeType!==Node.ELEMENT_NODE||rF(t))return!1;let n=rv(t)?Number(t.getAttribute("tabindex")||0):-1,i=n>0;n>=0&&o.push(t);return[..."slot"===t.localName?t.assignedNodes({flatten:!0}):(t.shadowRoot||t).children].forEach(t=>{i=e(t,o)||i}),i}(e,t=[])?t:function e(t){let o=t.length;if(o<2)return t;let n=Math.ceil(o/2),i=e(t.slice(0,n)),r=e(t.slice(n)),a=[];for(;i.length>0&&r.length>0;)!function(e,t){let o=Math.max(e.tabIndex,0),n=Math.max(t.tabIndex,0);return 0===o||0===n?n>o:o>n}(i[0],r[0])?a.push(i.shift()):a.push(r.shift());return a.concat(i,r)}(t)}get __focusedElementIndex(){let e=this.__focusableElements;return e.indexOf(e.filter(r_).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,Error("The trap node should have at least one focusable descendant or be focusable itself.");as.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus({focusVisible:rb})}releaseFocus(){this.__trapNode=null,as.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(as).pop()&&"Tab"===e.key){if(e.defaultPrevented)return;e.preventDefault();let t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){let t=this.__focusableElements,o=this.__focusedElementIndex,n=(t.length+o+(e?-1:1))%t.length,i=t[n];i.focus({focusVisible:!0}),"input"===i.localName&&i.select()}}let ac=e=>class extends e{static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__focusTrapController=new al(this),this.__focusRestorationController=new aa}get _contentRoot(){return this}ready(){super.ready(),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}get _focusTrapRoot(){return this.$.overlay}_resetFocus(){if(this.focusTrap&&this.__focusTrapController.releaseFocus(),this.restoreFocusOnClose&&this._shouldRestoreFocus()){let e=rb;this.__focusRestorationController.restoreFocus({preventScroll:!e,focusVisible:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&!rg(this._focusTrapRoot)&&this.__focusTrapController.trapFocus(this._focusTrapRoot)}_shouldRestoreFocus(){let e=rp();return e===document.body||this._deepContains(e)}_deepContains(e){if(this._contentRoot.contains(e))return!0;let t=e,o=e.ownerDocument;for(;t&&t!==o&&t!==this._contentRoot;)t=t.parentNode||t.host;return t===this._contentRoot}},ad=new Set,au=()=>[...ad].filter(e=>!e.hasAttribute("closing")),af=e=>{let t=au(),o=t.indexOf(e);return -1===o?[]:t.slice(o+1)},ah=(e,t=e=>!0)=>e===au().filter(t).pop(),am=e=>class extends e{get _last(){return ah(this)}get _isAttached(){return ad.has(this)}bringToFront(){if(ah(this))return;let e=af(this),t=e.filter(e=>e._hasOverlayPositionMixin&&this._deepContains(e));t.length!==e.length&&[this,...t].forEach(e=>{e.matches(":popover-open")&&(e.hidePopover(),e.showPopover()),e._removeAttachedInstance(),e._appendAttachedInstance()})}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),au().forEach(e=>{e!==this&&e.toggleAttribute("suppressed",!0)})}_exitModalState(){let e;void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);let t=au();for(;(e=t.pop())&&(e===this||(e.toggleAttribute("suppressed",!1),e.modeless)););}_appendAttachedInstance(){ad.add(this)}_removeAttachedInstance(){this._isAttached&&ad.delete(this)}};function ab(e,t,o){let n=[e];e.owner&&n.push(e.owner),"string"==typeof o?n.forEach(e=>{e.setAttribute(t,o)}):o?n.forEach(e=>{e.setAttribute(t,"")}):n.forEach(e=>{e.removeAttribute(t)})}let ap=e=>class extends ac(am(e)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},owner:{type:Object,sync:!0},model:{type:Object,sync:!0},renderer:{type:Object,sync:!0},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged",sync:!0},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged",sync:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_withBackdropChanged",sync:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}get _rendererRoot(){return this}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),an&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}firstUpdated(){super.firstUpdated(),this.popover="manual",this.addEventListener("click",()=>{}),this.$.backdrop&&this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}),this.addEventListener("animationcancel",()=>{this._flushAnimation("opening"),this._flushAnimation("closing")})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener)),this.opened&&this._attachOverlay()}disconnectedCallback(){super.disconnectedCallback(),this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this._rendererRoot,this.owner,this.model)}close(e){let t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{overlay:this,sourceEvent:e}});this.dispatchEvent(t),document.body.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}setBounds(e,t=!0){let o=this.$.overlay,n={...e};t&&"absolute"!==o.style.position&&(o.style.position="absolute"),Object.keys(n).forEach(e=>{null===n[e]||isNaN(n[e])||(n[e]=`${n[e]}px`)}),Object.assign(o.style,n)}_detectIosNavbar(){if(!this.opened)return;let e=window.innerHeight,t=window.innerWidth,o=document.documentElement.clientHeight;t>e&&o>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0px")}_shouldAddGlobalListeners(){return!this.modeless}_addGlobalListeners(){this.__hasGlobalListeners||(this.__hasGlobalListeners=!0,document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0))}_removeGlobalListeners(){this.__hasGlobalListeners&&(this.__hasGlobalListeners=!1,document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0))}_rendererOrDataChanged(e,t,o,n){let i=this._oldOwner!==t||this._oldModel!==o;this._oldModel=o,this._oldOwner=t;let r=this._oldRenderer!==e,a=void 0!==this._oldRenderer;this._oldRenderer=e;let s=this._oldOpened!==n;this._oldOpened=n,r&&a&&(this._rendererRoot.innerHTML="",delete this._rendererRoot._$litPart$),n&&e&&(r||s||i)&&this.requestContentUpdate()}_modelessChanged(e){this.opened&&(this._shouldAddGlobalListeners()?this._addGlobalListeners():this._removeGlobalListeners()),e?this._exitModalState():this.opened&&this._enterModalState(),ab(this,"modeless",e)}_withBackdropChanged(e){ab(this,"with-backdrop",e)}_openedChanged(e,t){if(e){if(!this.isConnected){this.opened=!1;return}this._saveFocus(),this._animatedOpening(),this.__scheduledOpen=requestAnimationFrame(()=>{setTimeout(()=>{this._trapFocus();let e=new CustomEvent("vaadin-overlay-open",{detail:{overlay:this},bubbles:!0});this.dispatchEvent(e),document.body.dispatchEvent(e)})}),document.addEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._addGlobalListeners()}else t&&(this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){let e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return"none"!==e.getPropertyValue("display")&&t&&"none"!==t}_enqueueAnimation(e,t){let o=`__${e}Handler`,n=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",n),delete this[o])};this[o]=n,this.addEventListener("animationend",n)}_flushAnimation(e){let t=`__${e}Handler`;"function"==typeof this[t]&&this[t]()}_animatedOpening(){this._isAttached&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this._appendAttachedInstance(),this.bringToFront(),this.modeless||this._enterModalState(),ab(this,"opening",!0),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this.matches(":popover-open")||this.showPopover()}_finishOpening(){ab(this,"opening",!1)}_finishClosing(){this._detachOverlay(),this._removeAttachedInstance(),this.toggleAttribute("suppressed",!1),ab(this,"closing",!1),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._isAttached&&(this._exitModalState(),ab(this,"closing",!0),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this.hidePopover()}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;let t=new CustomEvent("vaadin-overlay-outside-click",{cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&(this.close(e),this.opened||this.modeless||e.preventDefault())}_keydownListener(e){if(this._last&&!e.defaultPrevented&&(this._shouldAddGlobalListeners()||e.composedPath().includes(this._focusTrapRoot))&&"Escape"===e.key){let t=new CustomEvent("vaadin-overlay-escape-press",{cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}},aF={start:"top",end:"bottom"},ag={start:"left",end:"right"},av=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),a_=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}}}constructor(){super(),this._hasOverlayPositionMixin=!0,this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}updated(e){if(super.updated(e),e.has("positionTarget")){let t=e.get("positionTarget");this.__oldContentWidth=void 0,this.__oldContentHeight=void 0,(!this.positionTarget&&t||this.positionTarget&&!t&&this.__margins)&&this.__resetPosition()}(e.has("opened")||e.has("positionTarget"))&&this.__updatePositionSettings(this.opened,this.positionTarget),["horizontalAlign","verticalAlign","noHorizontalOverlap","noVerticalOverlap","requiredVerticalSpace"].some(t=>e.has(t))&&this._updatePosition()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(e){let 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}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=function(e,t){let o,n=null,i=document.documentElement;function r(){o&&clearTimeout(o),n?.disconnect(),n=null}return!function a(s=!1,l=1){r();let{left:c,top:d,width:u,height:f}=e.getBoundingClientRect();if(s||t(),!u||!f)return;let h=Math.floor(d),m=Math.floor(i.clientWidth-(c+u)),b=Math.floor(i.clientHeight-(d+f)),p=Math.floor(c),F=!0;(n=new IntersectionObserver(function(e){let t=e[0].intersectionRatio;if(t!==l){if(!F)return a();t?a(!1,t):o=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1},{rootMargin:`${-h}px ${-m}px ${-b}px ${-p}px`,threshold:Math.max(0,Math.min(1,l))||1})).observe(e)}(!0),r}(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__updatePositionSettings(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,av.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,av.observe(t))),e){let e=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(t=>{this.__margins[t]=parseInt(e[t],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__onScroll(e){e.target instanceof Node&&this._deepContains(e.target)||this._updatePosition()}__resetPosition(){this.__margins=null,Object.assign(this.style,{justifyContent:"",alignItems:"",top:"",bottom:"",left:"",right:""}),ab(this,"bottom-aligned",!1),ab(this,"top-aligned",!1),ab(this,"end-aligned",!1),ab(this,"start-aligned",!1)}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;let e=this.positionTarget.getBoundingClientRect();if(0===e.width&&0===e.height&&this.opened){this.opened=!1;return}let t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";let o=this.__isRTL,n=this.__shouldAlignStartHorizontally(e,o),i=!o&&n||o&&!n;this.style.alignItems=i?"flex-start":"flex-end";let r=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,r,this.noVerticalOverlap,aF,this,t),s=this.__calculatePositionInOneDimension(e,r,this.noHorizontalOverlap,ag,this,n);Object.assign(this.style,a,s),ab(this,"bottom-aligned",!t),ab(this,"top-aligned",t),ab(this,"end-aligned",!i),ab(this,"start-aligned",i)}__shouldAlignStartHorizontally(e,t){let o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;let n=Math.min(window.innerWidth,document.documentElement.clientWidth),i=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,o,n,this.__margins,i,this.noHorizontalOverlap,ag)}__shouldAlignStartVertically(e){let t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;let o=Math.min(window.innerHeight,document.documentElement.clientHeight),n="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,o,this.__margins,n,this.noVerticalOverlap,aF)}__shouldAlignStart(e,t,o,n,i,r,a){let s=o-e[r?a.end:a.start]-n[a.end],l=e[r?a.start:a.end]-n[a.start],c=i?s:l;return i===(c>(i?l:s)||c>t)}__adjustBottomProperty(e,t,o){let n;if(e===t.end){if(t.end===aF.end){let e=Math.min(window.innerHeight,document.documentElement.clientHeight);o>e&&this.__oldViewportHeight&&(n=o-(this.__oldViewportHeight-e)),this.__oldViewportHeight=e}if(t.end===ag.end){let e=Math.min(window.innerWidth,document.documentElement.clientWidth);o>e&&this.__oldViewportWidth&&(n=o-(this.__oldViewportWidth-e)),this.__oldViewportWidth=e}}return n}__calculatePositionInOneDimension(e,t,o,n,i,r){let a=r?n.start:n.end,s=r?n.end:n.start,l=parseFloat(i.style[a]||getComputedStyle(i)[a]),c=this.__adjustBottomProperty(a,n,l),d=t[r?n.start:n.end]-e[o===r?n.end:n.start];return{[a]:c?`${c}px`:`${l+d*(r?-1:1)}px`,[s]:""}}},ay=e=>class extends a_(ap(e)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!rv(e.composedPath()[0])&&e.preventDefault()}};class aw extends ay(il(iY(iy(i$(oO))))){static get is(){return"vaadin-date-picker-overlay"}static get styles(){return[ae,at]}render(){return of`
1036
1041
  <div id="backdrop" part="backdrop" ?hidden="${!this.withBackdrop}"></div>
1037
1042
  <div part="overlay" id="overlay">
1038
1043
  <div part="content" id="content">
@@ -1140,6 +1145,9 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1140
1145
  :host {
1141
1146
  display: block;
1142
1147
  padding: var(--vaadin-date-picker-month-padding, var(--vaadin-padding-s));
1148
+ -webkit-tap-highlight-color: transparent;
1149
+ -webkit-user-select: none;
1150
+ user-select: none;
1143
1151
  }
1144
1152
 
1145
1153
  [part='month-header'] {
@@ -1528,7 +1536,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1528
1536
  :host([readonly]) [part~='toggle-button'] {
1529
1537
  display: none;
1530
1538
  }
1531
- `,aJ=new WeakMap,aX=new WeakMap,aQ={},aZ=0,a0=e=>e?.nodeType===Node.ELEMENT_NODE,a1=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)};function a2(e,...t){let o=e=>e&&"object"==typeof e&&!Array.isArray(e),n=(e,t)=>{o(t)&&o(e)&&Object.keys(t).forEach(i=>{let r=t[i];o(r)?(e[i]||(e[i]={}),n(e[i],r)):Array.isArray(r)?e[i]=[...r]:null!=r&&(e[i]=r)})};return t.forEach(t=>{n(e,t)}),e}HTMLElement.prototype;let a3=e=>class extends e{static get properties(){return{i18n:{type:Object},__effectiveI18n:{type:Object,sync:!0}}}static get defaultI18n(){return{}}constructor(){super(),this.i18n=a2({},this.constructor.defaultI18n)}get i18n(){return this.__customI18n}set i18n(e){e!==this.__customI18n&&(this.__customI18n=e,this.__effectiveI18n=a2({},this.constructor.defaultI18n,this.__customI18n))}};class a5{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}let a4=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){let t=String(e.year).replace(/\d+/u,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate(e){let t=e.split("/"),o=new Date,n,i=o.getMonth(),r=o.getFullYear();if(3===t.length?(i=parseInt(t[0])-1,n=parseInt(t[1]),r=parseInt(t[2]),t[2].length<3&&r>=0&&(r=function(e,t,o=0,n=1){if(t>99)throw Error("The provided year cannot have more than 2 digits.");if(t<0)throw Error("The provided year cannot be negative.");let i=t+100*Math.floor(e.getFullYear()/100);return e<new Date(i-50,o,n)?i-=100:e>new Date(i+50,o,n)&&(i+=100),i}(this.referenceDate?aT(this.referenceDate):new Date,r,i,n))):2===t.length?(i=parseInt(t[0])-1,n=parseInt(t[1])):1===t.length&&(n=parseInt(t[0])),void 0!==n)return{day:n,month:i,year:r}},formatTitle:(e,t)=>`${e} ${t}`}),a6=e=>class extends a3(rO(aY(rh(e)))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:{type: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)"},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)"},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)"},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, __effectiveI18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:an},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},__enteredDate:{type:Date,sync:!0}}}static get observers(){return["_selectedDateChanged(_selectedDate, __effectiveI18n)","_focusedDateChanged(_focusedDate, __effectiveI18n)","__updateOverlayContent(_overlayContent, __effectiveI18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled, __enteredDate)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get defaultI18n(){return a4}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this)}get i18n(){return super.i18n}set i18n(e){super.i18n=e}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e;let t=this.__parseDate(e);this.__setEnteredDate(t)}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!rb&&e.target.blur()}_onBlur(e){super._onBlur(e),!this.opened&&(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this._requestValidation())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new aV(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new a5(this)),this._overlayElement=this.$.overlay}updated(e){super.updated(e),(e.has("showWeekNumbers")||e.has("__effectiveI18n"))&&this.toggleAttribute("week-numbers",this.showWeekNumbers&&1===this.__effectiveI18n.firstDayOfWeek)}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}focus(e){this._noInput&&!rb?this.open():super.focus(e)}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}__ensureContent(){if(this._overlayContent)return;let e=document.createElement("vaadin-date-picker-overlay-content");e.setAttribute("slot","overlay"),this.appendChild(e),this._overlayContent=e,e.addEventListener("close",()=>{this._close()}),e.addEventListener("focus-input",this._focusAndSelect.bind(this)),e.addEventListener("date-tap",e=>{this.__commitDate(e.detail.date),this._close()}),e.addEventListener("date-selected",e=>{this.__commitDate(e.detail.date)}),e.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),e.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),e.addEventListener("focused-date-changed",e=>{this._focusedDate=e.detail.value}),e.addEventListener("click",e=>e.stopPropagation())}__parseDate(e){if(!this.__effectiveI18n.parseDate)return;let t=this.__effectiveI18n.parseDate(e);if(t&&(t=aT(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.__effectiveI18n.formatDate)return this.__effectiveI18n.formatDate(aA(e))}checkValidity(){let e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||ax(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled),n=!0;return this.inputElement&&this.inputElement.checkValidity&&(n=this.inputElement.checkValidity()),t&&o&&n}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldKeepFocusOnClearMousedown(){return!!this.opened||super._shouldKeepFocusOnClearMousedown()}_shouldRemoveFocus(e){let{relatedTarget:t}=e;return!(!this.opened||null===t||t===document.body||this.contains(t)||this._overlayContent.contains(t))||!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){let e=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}_isNoInput(e,t,o,n,i,r){return!e||t&&(!r||i)||o&&i||!n.parseDate}_formatISO(e){return e instanceof Date?aO({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}):""}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){e&&this.__ensureContent(),this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0!==e&&void 0!==t&&(this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(e))}_valueChanged(e,t){let o=aT(e);if(e&&!o){this.value=t;return}e?ak(this._selectedDate,o)||(this._selectedDate=o,void 0!==t&&this._requestValidation()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,o,n,i,r,a,s,l,c){e&&(e.i18n=t,e.label=o,e.minDate=n,e.maxDate=i,e.focusedDate=r,e.selectedDate=a,e.showWeekNumbers=s,e.isDateDisabled=l,e.enteredDate=c)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(e){e.stopPropagation(),this._focusedDate=this._selectedDate,this._applyInputValue(this._selectedDate),this._close()}_onOverlayOpened(){let e=this._overlayContent;e.reset();let t=this._getInitialPosition();e.initialPosition=t;let o=e.focusedDate||t;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();let n=this.inputElement;this._noInput&&n&&(n.blur(),this._overlayContent.focusDateElement());let i=this._noInput?e:this;this.__showOthers=((e,t=document.body,o="data-aria-hidden")=>{var n,i;let r,a,s,l,c,d,u,f=Array.from(Array.isArray(e)?e:[e]);return t&&f.push(...Array.from(t.querySelectorAll("[aria-live]"))),n="aria-hidden",i=Array.isArray(f)?f:[f],r=a0(t)?i.map(e=>{if(!a0(e))return a1(e,"is not a valid element"),null;let o=e;for(;o&&o!==t;){if(t.contains(o))return e;o=o.getRootNode().host}return a1(e,"is not contained inside",t),null}).filter(e=>!!e):(a1(t,"is not a valid element"),[]),aQ[o]||(aQ[o]=new WeakMap),a=aQ[o],s=[],l=new Set,c=new Set(r),d=e=>{if(!e||l.has(e))return;l.add(e);let t=e.assignedSlot;t&&d(t),d(e.parentNode||e.host)},r.forEach(d),(u=e=>{if(!e||c.has(e))return;let t=e.shadowRoot;(t?[...e.children,...t.children]:[...e.children]).forEach(e=>{if(!["template","script","style"].includes(e.localName))if(l.has(e))u(e);else{let t=e.getAttribute(n),i=null!==t&&"false"!==t,r=(aJ.get(e)||0)+1,l=(a.get(e)||0)+1;aJ.set(e,r),a.set(e,l),s.push(e),1===r&&i&&aX.set(e,!0),1===l&&e.setAttribute(o,"true"),i||e.setAttribute(n,"true")}})})(t),l.clear(),aZ+=1,()=>{s.forEach(e=>{let t=aJ.get(e)-1,i=a.get(e)-1;aJ.set(e,t),a.set(e,i),t||(aX.has(e)?aX.delete(e):e.removeAttribute(n)),i||e.removeAttribute(o)}),(aZ-=1)||(aJ=new WeakMap,aJ=new WeakMap,aX=new WeakMap,aQ={})}})(i)}_getInitialPosition(){let e=aT(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||ax(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?aD(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.__effectiveI18n.parseDate){let e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(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.__commitParsedOrFocusedDate(),this.inputElement&&this.inputElement.selectionStart&&(this.inputElement.selectionStart=this.inputElement.selectionEnd),this.value||this._keyboardActive||this._requestValidation()}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this.inputElement&&this.inputElement.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){!e.composedPath().includes(this._overlayElement)&&(this._isClearButton(e)||this._onHostClick(e))}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&-1===["Tab","Escape"].indexOf(e.key)&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(e){e.composedPath().includes(this._overlayContent)||(this.opened?this.close():this.__commitParsedOrFocusedDate())}_onEscape(e){if(this.opened)return void this._onOverlayEscapePress(e);if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}""===this.inputElement.value?this.__commitDate(null):this._applyInputValue(this._selectedDate)}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open();let e=this.__parseDate(this._inputElementValue||"");e&&(this._ignoreFocusedDateChange=!0,ak(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1),this.__setEnteredDate(e)}__setEnteredDate(e){e?ak(this.__enteredDate,e)||(this.__enteredDate=e):this.__enteredDate=null}__computeMinOrMaxDate(e){return aT(e)}};class a8 extends a6(aW(iY(id(iy(i$(oO)))))){static get is(){return"vaadin-date-picker"}static get styles(){return[aG,aK]}static get properties(){return{_positionTarget:{type:Object,sync:!0}}}get clearElement(){return this.$.clearButton}render(){return of`
1539
+ `,aJ=new WeakMap,aX=new WeakMap,aQ={},aZ=0,a0=e=>e?.nodeType===Node.ELEMENT_NODE,a1=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)};HTMLElement.prototype;let a2=["__proto__","constructor","prototype"],a3=e=>{if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t};function a5(e,...t){return t.forEach(t=>(function e(t,o,n){return a3(t)&&a3(o)&&Object.keys(o).forEach(i=>{if(a2.includes(i))return;let r=o[i];if(a3(r)){if(!Object.hasOwn(t,i)||!a3(t[i])){if(n&&Object.hasOwn(t,i)&&t[i])return;t[i]={}}e(t[i],r,n)}else n&&Array.isArray(r)?t[i]=[...r]:n&&null==r||(t[i]=r)}),t})(e,t,!0)),e}let a4=e=>class extends e{static get properties(){return{i18n:{type:Object},__effectiveI18n:{type:Object,sync:!0}}}static get defaultI18n(){return{}}constructor(){super(),this.i18n=a5({},this.constructor.defaultI18n)}get i18n(){return this.__customI18n}set i18n(e){e!==this.__customI18n&&(this.__customI18n=e,this.__effectiveI18n=a5({},this.constructor.defaultI18n,this.__customI18n))}};class a6{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}let a8=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){let t=String(e.year).replace(/\d+/u,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate(e){let t=e.split("/"),o=new Date,n,i=o.getMonth(),r=o.getFullYear();if(3===t.length?(i=parseInt(t[0])-1,n=parseInt(t[1]),r=parseInt(t[2]),t[2].length<3&&r>=0&&(r=function(e,t,o=0,n=1){if(t>99)throw Error("The provided year cannot have more than 2 digits.");if(t<0)throw Error("The provided year cannot be negative.");let i=t+100*Math.floor(e.getFullYear()/100);return e<new Date(i-50,o,n)?i-=100:e>new Date(i+50,o,n)&&(i+=100),i}(this.referenceDate?aT(this.referenceDate):new Date,r,i,n))):2===t.length?(i=parseInt(t[0])-1,n=parseInt(t[1])):1===t.length&&(n=parseInt(t[0])),void 0!==n)return{day:n,month:i,year:r}},formatTitle:(e,t)=>`${e} ${t}`}),a9=e=>class extends a4(rO(aY(rh(e)))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:{type: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)"},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)"},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)"},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, __effectiveI18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:an},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},__enteredDate:{type:Date,sync:!0}}}static get observers(){return["_selectedDateChanged(_selectedDate, __effectiveI18n)","_focusedDateChanged(_focusedDate, __effectiveI18n)","__updateOverlayContent(_overlayContent, __effectiveI18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled, __enteredDate)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get defaultI18n(){return a8}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this)}get i18n(){return super.i18n}set i18n(e){super.i18n=e}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e;let t=this.__parseDate(e);this.__setEnteredDate(t)}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!rb&&(this.__ignoreInternalBlur=!0,e.target.blur(),this.__ignoreInternalBlur=!1)}_onBlur(e){super._onBlur(e),this.__ignoreInternalBlur||!this.opened&&(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this._requestValidation())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new aV(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new a6(this)),this._overlayElement=this.$.overlay}updated(e){super.updated(e),(e.has("showWeekNumbers")||e.has("__effectiveI18n"))&&this.toggleAttribute("week-numbers",this.showWeekNumbers&&1===this.__effectiveI18n.firstDayOfWeek)}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}focus(e){this._noInput&&!rb?this.open():super.focus(e)}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}__ensureContent(){if(this._overlayContent)return;let e=document.createElement("vaadin-date-picker-overlay-content");e.setAttribute("slot","overlay"),this.appendChild(e),this._overlayContent=e,e.addEventListener("close",()=>{this._close()}),e.addEventListener("focus-input",this._focusAndSelect.bind(this)),e.addEventListener("date-tap",e=>{this.__commitDate(e.detail.date),this._close()}),e.addEventListener("date-selected",e=>{this.__commitDate(e.detail.date)}),e.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),e.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),e.addEventListener("focused-date-changed",e=>{this._focusedDate=e.detail.value}),e.addEventListener("click",e=>e.stopPropagation())}__parseDate(e){if(!this.__effectiveI18n.parseDate)return;let t=this.__effectiveI18n.parseDate(e);if(t&&(t=aT(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.__effectiveI18n.formatDate)return this.__effectiveI18n.formatDate(aA(e))}checkValidity(){let e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||ax(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled),n=!0;return this.inputElement&&this.inputElement.checkValidity&&(n=this.inputElement.checkValidity()),t&&o&&n}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldKeepFocusOnClearMousedown(){return!!this.opened||super._shouldKeepFocusOnClearMousedown()}_shouldRemoveFocus(e){let{relatedTarget:t}=e;return!(!this.opened||null===t||t===document.body||this.contains(t)||this._overlayContent.contains(t))||!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){let e=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}_isNoInput(e,t,o,n,i,r){return!e||t&&(!r||i)||o&&i||!n.parseDate}_formatISO(e){return e instanceof Date?aO({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}):""}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){e&&this.__ensureContent(),this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0!==e&&void 0!==t&&(this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(e))}_valueChanged(e,t){let o=aT(e);if(e&&!o){this.value=t;return}e?ak(this._selectedDate,o)||(this._selectedDate=o,void 0!==t&&this._requestValidation()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,o,n,i,r,a,s,l,c){e&&(e.i18n=t,e.label=o,e.minDate=n,e.maxDate=i,e.focusedDate=r,e.selectedDate=a,e.showWeekNumbers=s,e.isDateDisabled=l,e.enteredDate=c)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(e){e.stopPropagation(),this._focusedDate=this._selectedDate,this._applyInputValue(this._selectedDate),this._close()}_onOverlayOpened(){let e=this._overlayContent;e.reset();let t=this._getInitialPosition();e.initialPosition=t;let o=e.focusedDate||t;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();let n=this.inputElement;this._noInput&&n&&(n.blur(),this._overlayContent.focusDateElement());let i=this._noInput?e:this;this.__showOthers=((e,t=document.body,o="data-aria-hidden")=>{var n,i;let r,a,s,l,c,d,u,f=Array.from(Array.isArray(e)?e:[e]);return t&&f.push(...Array.from(t.querySelectorAll("[aria-live]"))),n="aria-hidden",i=Array.isArray(f)?f:[f],r=a0(t)?i.map(e=>{if(!a0(e))return a1(e,"is not a valid element"),null;let o=e;for(;o&&o!==t;){if(t.contains(o))return e;o=o.getRootNode().host}return a1(e,"is not contained inside",t),null}).filter(e=>!!e):(a1(t,"is not a valid element"),[]),aQ[o]||(aQ[o]=new WeakMap),a=aQ[o],s=[],l=new Set,c=new Set(r),d=e=>{if(!e||l.has(e))return;l.add(e);let t=e.assignedSlot;t&&d(t),d(e.parentNode||e.host)},r.forEach(d),(u=e=>{if(!e||c.has(e))return;let t=e.shadowRoot;(t?[...e.children,...t.children]:[...e.children]).forEach(e=>{if(!["template","script","style"].includes(e.localName))if(l.has(e))u(e);else{let t=e.getAttribute(n),i=null!==t&&"false"!==t,r=(aJ.get(e)||0)+1,l=(a.get(e)||0)+1;aJ.set(e,r),a.set(e,l),s.push(e),1===r&&i&&aX.set(e,!0),1===l&&e.setAttribute(o,"true"),i||e.setAttribute(n,"true")}})})(t),l.clear(),aZ+=1,()=>{s.forEach(e=>{let t=aJ.get(e)-1,i=a.get(e)-1;aJ.set(e,t),a.set(e,i),t||(aX.has(e)?aX.delete(e):e.removeAttribute(n)),i||e.removeAttribute(o)}),(aZ-=1)||(aJ=new WeakMap,aJ=new WeakMap,aX=new WeakMap,aQ={})}})(i)}_getInitialPosition(){let e=aT(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||ax(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?aD(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.__effectiveI18n.parseDate){let e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(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.__commitParsedOrFocusedDate(),this.inputElement&&this.inputElement.selectionStart&&(this.inputElement.selectionStart=this.inputElement.selectionEnd),this.value||this._keyboardActive||this._requestValidation(),this.inputElement&&r_(this.inputElement)||this._setFocused(!1)}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this.inputElement&&this.inputElement.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){!e.composedPath().includes(this._overlayElement)&&(this._isClearButton(e)||this._onHostClick(e))}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&-1===["Tab","Escape"].indexOf(e.key)&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(e){e.composedPath().includes(this._overlayContent)||(this.opened?this.close():this.__commitParsedOrFocusedDate())}_onEscape(e){if(this.opened)return void this._onOverlayEscapePress(e);if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}""===this.inputElement.value?this.__commitDate(null):this._applyInputValue(this._selectedDate)}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open();let e=this.__parseDate(this._inputElementValue||"");e&&(this._ignoreFocusedDateChange=!0,ak(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1),this.__setEnteredDate(e)}__setEnteredDate(e){e?ak(this.__enteredDate,e)||(this.__enteredDate=e):this.__enteredDate=null}__computeMinOrMaxDate(e){return aT(e)}};class a7 extends a9(aW(iY(id(iy(i$(oO)))))){static get is(){return"vaadin-date-picker"}static get styles(){return[aG,aK]}static get properties(){return{_positionTarget:{type:Object,sync:!0}}}get clearElement(){return this.$.clearButton}render(){return of`
1532
1540
  <div class="vaadin-date-picker-container">
1533
1541
  <div part="label">
1534
1542
  <slot name="label"></slot>
@@ -1577,12 +1585,12 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1577
1585
  >
1578
1586
  <slot name="overlay"></slot>
1579
1587
  </vaadin-date-picker-overlay>
1580
- `}ready(){super.ready(),this.addController(new rQ(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new rZ(this.inputElement,this._labelController)),this._tooltipController=new iD(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.shadowRoot.querySelector('[part="field-button toggle-button"]').addEventListener("mousedown",e=>e.preventDefault())}_onOpenedChanged(e){this.opened=e.detail.value}_onVaadinOverlayClose(e){let t=e.detail.sourceEvent;t?.composedPath().includes(this)&&!t.composedPath().includes(this._overlayElement)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}}nJ(a8);let a9=class extends a8{};a9=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-date-picker")],a9);let a7=tU`
1588
+ `}ready(){super.ready(),this.addController(new rQ(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new rZ(this.inputElement,this._labelController)),this._tooltipController=new iD(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.shadowRoot.querySelector('[part="field-button toggle-button"]').addEventListener("mousedown",e=>e.preventDefault())}_onOpenedChanged(e){this.opened=e.detail.value}_onVaadinOverlayClose(e){let t=e.detail.sourceEvent;t?.composedPath().includes(this)&&!t.composedPath().includes(this._overlayElement)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}}nJ(a7);let se=class extends a7{};se=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-date-picker")],se);let st=tU`
1581
1589
  :host([focused]) {
1582
1590
  outline: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color);
1583
1591
  outline-offset: calc(var(--vaadin-focus-ring-width) / -1);
1584
1592
  }
1585
- `,se=e=>class extends e{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,o){"hidden"===e&&null!==o?this.index=void 0:super.attributeChangedCallback(e,t,o)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;let e=this._getHostDir();e&&this.setAttribute("dir",e)}_getHostDir(){return this._owner&&this._owner.$.overlay.getAttribute("dir")}requestContentUpdate(){if(!this.renderer||this.hidden)return;let e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,o){void 0!==o&&void 0!==t&&(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}},st=tU`
1593
+ `,so=e=>class extends e{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,o){"hidden"===e&&null!==o?this.index=void 0:super.attributeChangedCallback(e,t,o)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;let e=this._getHostDir();e&&this.setAttribute("dir",e)}_getHostDir(){return this._owner&&this._owner.$.overlay.getAttribute("dir")}requestContentUpdate(){if(!this.renderer||this.hidden)return;let e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,o){void 0!==o&&void 0!==t&&(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}},sn=tU`
1586
1594
  :host {
1587
1595
  align-items: center;
1588
1596
  border-radius: var(--vaadin-item-border-radius, var(--vaadin-radius-m));
@@ -1642,12 +1650,12 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1642
1650
  background: CanvasText;
1643
1651
  }
1644
1652
  }
1645
- `;class so extends se(iY(il(iy(i$(oO))))){static get is(){return"vaadin-time-picker-item"}static get styles(){return[st,a7]}render(){return of`
1653
+ `;class si extends so(iY(il(iy(i$(oO))))){static get is(){return"vaadin-time-picker-item"}static get styles(){return[sn,st]}render(){return of`
1646
1654
  <span part="checkmark" aria-hidden="true"></span>
1647
1655
  <div part="content">
1648
1656
  <slot></slot>
1649
1657
  </div>
1650
- `}}nJ(so);let sn=e=>class extends a_(e){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}_shouldCloseOnOutsideClick(e){let t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!rv(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){this.style.setProperty(`--_${this.localName}-default-width`,`${this.positionTarget.offsetWidth}px`)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}},si=tU`
1658
+ `}}nJ(si);let sr=e=>class extends a_(e){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}_shouldCloseOnOutsideClick(e){let t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!rv(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){this.style.setProperty(`--_${this.localName}-default-width`,`${this.positionTarget.offsetWidth}px`)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}},sa=tU`
1651
1659
  :host {
1652
1660
  --vaadin-item-checkmark-display: block;
1653
1661
  }
@@ -1661,13 +1669,13 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1661
1669
  flex-direction: column;
1662
1670
  height: 100%;
1663
1671
  }
1664
- `;class sr extends sn(ap(il(iY(iy(i$(oO)))))){static get is(){return"vaadin-time-picker-overlay"}static get styles(){return[ae,si]}render(){return of`
1672
+ `;class ss extends sr(ap(il(iY(iy(i$(oO)))))){static get is(){return"vaadin-time-picker-overlay"}static get styles(){return[ae,sa]}render(){return of`
1665
1673
  <div part="overlay" id="overlay">
1666
1674
  <div part="content" id="content">
1667
1675
  <slot></slot>
1668
1676
  </div>
1669
1677
  </div>
1670
- `}}nJ(sr);let sa=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),ss=sa&&sa[1]>=8;class sl{constructor({createElements:e,updateElement:t,scrollTarget:o,scrollContainer:n,reorderElements:i,elementsContainer:r,__disableHeightPlaceholder:a}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=o,this.scrollContainer=n,this.reorderElements=i,this.elementsContainer=r||n,this.__disableHeightPlaceholder=a??!1,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,PREVENT_OVERSCROLL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:e}])=>{let t=0===e.width&&0===e.height;!t&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=t}).observe(this.scrollTarget),this.scrollTarget.addEventListener("virtualizer-element-focused",e=>this.__onElementFocused(e)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",e=>{e.target===this.scrollTarget&&(this.__mouseDown=!0)}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if("number"!=typeof e||isNaN(e)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);let t=this.__getVisibleElements().length,o=Math.floor(e/this.size*this._virtualCount);this._virtualCount-o<t?(o=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):o<t?e<1e3?(o=e,this._vidxOffset=0):(o=1e3,this._vidxOffset=e-o):this._vidxOffset=e-o,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(o),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),ii(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}hostConnected(){this.scrollTarget.offsetParent&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition)}update(e=0,t=this.size-1){let o=[];this.__getVisibleElements().forEach(n=>{n.__virtualIndex>=e&&n.__virtualIndex<=t&&(this.__updateElement(n,n.__virtualIndex,!0),o.push(n))}),this.__afterElementsUpdated(o)}_updateMetrics(e){ii();let t=0,o=0,n=this._physicalAverageCount,i=this._physicalAverage;this._iterateItems((e,n)=>{o+=this._physicalSizes[e];let i=this._physicalSizes[e];this._physicalSizes[e]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[e])),this._physicalSizes[e]!==i&&(this.__resizeObserver.unobserve(this._physicalItems[e]),this.__resizeObserver.observe(this._physicalItems[e],{box:"border-box"})),t+=this._physicalSizes[e],this._physicalAverageCount+=+!!this._physicalSizes[e]},e),this._physicalSize=this._physicalSize+t-o,this._physicalAverageCount!==n&&(this._physicalAverage=Math.round((i*n+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){let t=getComputedStyle(e),o=parseFloat(t.height)||0;return"border-box"===t.boxSizing?o:o+(parseFloat(t.paddingBottom)||0)+(parseFloat(t.paddingTop)||0)+(parseFloat(t.borderBottomWidth)||0)+(parseFloat(t.borderTopWidth)||0)}__updateElement(e,t,o){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||o)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){this.__disableHeightPlaceholder||e.forEach(e=>{let t=e.offsetHeight;if(0===t)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=io.debounce(this.__placeholderClearDebouncer,n9,()=>this._resizeHandler());else{this.__elementHeightQueue.push(t),this.__elementHeightQueue.shift();let e=this.__elementHeightQueue.filter(e=>void 0!==e);this.__placeholderHeight=Math.round(e.reduce((e,t)=>e+t,0)/e.length)}}),void 0===this.__pendingScrollToIndex||this.__hasPlaceholders()||this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){let t=this.__getVisibleElements().find(t=>t.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}__restoreScrollOffset(e,t){let o=this.__getIndexScrollOffset(e);void 0!==t&&void 0!==o&&(this._scrollTop+=t-o)}get size(){return this.__size}set size(e){let t,o;if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel();let n=e>0&&this._scrollTop>0;n&&(t=this.adjustedFirstVisibleIndex,o=this.__getIndexScrollOffset(t)),this.__size=e,this.__preventElementUpdates=n,this._itemsChanged({path:"items"}),ii(),n&&(t=Math.min(t,e-1),this.scrollToIndex(t),this.__restoreScrollOffset(t,o)),this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._updateScrollerSize(!0),this._resizeHandler(),ii(),this._debounce("_update",this._update,ie)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){let e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL="rtl"===e.direction,this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight}setAttribute(){}_createPool(e){let t=this.createElements(e),o=document.createDocumentFragment();return t.forEach(e=>{e.style.position="absolute",o.appendChild(e),this.__resizeObserver.observe(e,{box:"border-box"})}),this.elementsContainer.appendChild(o),t}_assignModels(e){let t=[];this._iterateItems((e,o)=>{let n=this._physicalItems[e];n.hidden=o>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),t.push(n))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,o,n){n.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){let t=document.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;for(;t&&!e.includes(t);)t=t.assignedSlot||t.parentNode||t.host;return t}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return 0===t.indexOf(e)&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;let t=e.detail.element;if(!t)return;let o=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,o)||this.__nextFocusableSiblingMissing(t,o))&&this.flush();let n=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,n)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,n)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-this._scrollPosition);let e=this._scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){let t=e>=0,o=this._getReusables(!t);o.indexes.length&&(this._physicalTop=o.physicalTop,t?(this._virtualStart-=o.indexes.length,this._physicalStart-=o.indexes.length):(this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=io.debounce(this.__fixInvalidItemPositioningDebouncer,n8.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning()),this.__overscrollDebouncer?.isActive()||(this.scrollTarget.style.overscrollBehavior="none"),this.__overscrollDebouncer=io.debounce(this.__overscrollDebouncer,n8.after(this.timeouts.PREVENT_OVERSCROLL),()=>{this.scrollTarget.style.overscrollBehavior=null})),this.reorderElements&&(this.__scrollReorderDebouncer=io.debounce(this.__scrollReorderDebouncer,n8.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),0===this._scrollPosition&&0!==this.firstVisibleIndex&&Math.abs(e)>0&&this.scrollToIndex(0)}_resizeHandler(){super._resizeHandler();let e=this.adjustedLastVisibleIndex===this.size-1,t=this._physicalTop-this._scrollPosition;if(e&&t>0){let e=Math.ceil(t/this._physicalAverage);this._virtualStart=Math.max(0,this._virtualStart-e),this._physicalStart=Math.max(0,this._physicalStart-e),super.scrollToIndex(this._virtualCount-1),this.scrollTarget.scrollTop=this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight}}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;let e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,o=0===this.adjustedFirstVisibleIndex,n=this.adjustedLastVisibleIndex===this.size-1;if(e&&!o||t&&!n){let e=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(t?-1:1),this._scrollHandler(),this._ratio=e}}_increasePoolIfNeeded(e){if(this._physicalCount>2&&this._physicalAverage>0&&e>0){let t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){let e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;let e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;let e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),o=this.__getFocusedElement(t)||t[0];if(!o)return;let n=o.__virtualIndex-e,i=t.indexOf(o)-n;if(i>0)for(let e=0;e<i;e++)this.elementsContainer.appendChild(t[e]);else if(i<0)for(let e=t.length+i;e<t.length;e++)this.elementsContainer.insertBefore(t[e],t[0]);if(ai){let{transform:e}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=e})}}_adjustVirtualIndexOffset(e){let t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){let e=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(e*t)}else{let e,o,n=this._vidxOffset,i=()=>{e=this.adjustedFirstVisibleIndex,o=this.__getIndexScrollOffset(e)};0===this._scrollTop?0!==n&&(i(),this._vidxOffset=0,super.scrollToIndex(0)):this.firstVisibleIndex<1e3&&this._vidxOffset>0&&(i(),this._vidxOffset-=Math.min(this._vidxOffset,100),super.scrollToIndex(this.firstVisibleIndex+(n-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?n!==t&&(i(),this._vidxOffset=t,super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-1e3&&this._vidxOffset<t&&(i(),this._vidxOffset+=Math.min(t-this._vidxOffset,100),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-n))),void 0!==e&&this.__restoreScrollOffset(e,o)}}}Object.setPrototypeOf(sl.prototype,{_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(val){val=this._clamp(val,0,this._maxVirtualStart),this._virtualStartVal=val},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(val){(val%=this._physicalCount)<0&&(val=this._physicalCount+val),this._physicalStartVal=val},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(val){this._physicalCountVal=val},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let e=this._firstVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;e=this._iterateItems((e,o)=>{if((t+=this._getPhysicalSizeIncrement(e))>this._scrollPosition)return o})||0,this._firstVisibleIndexVal=e}return e},get lastVisibleIndex(){let e=this._lastVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;this._iterateItems((o,n)=>{t<this._scrollBottom&&(e=n),t+=this._getPhysicalSizeIncrement(o)}),this._lastVisibleIndexVal=e}return e},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){let e=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),t=e-this._scrollPosition,o=t>=0;if(this._scrollPosition=e,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){let e=Math.round((t-=this._scrollOffset)/this._physicalAverage);this._virtualStart+=e,this._physicalStart+=e,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){let e=this._getReusables(o);o?(this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length):(this._virtualStart-=e.indexes.length,this._physicalStart-=e.indexes.length),this._update(e.indexes,o?null:e.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ie)}},_getReusables(e){let t,o,n,i=[],r=this._hiddenContentSize*this._ratio,a=this._virtualStart,s=this._virtualEnd,l=this._physicalCount,c=this._physicalTop+this._scrollOffset,d=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,f=this._scrollBottom;for(e?(t=this._physicalStart,o=u-c):(t=this._physicalEnd,o=d-f);o-=n=this._getPhysicalSizeIncrement(t),!(i.length>=l)&&!(o<=r);)if(e){if(s+i.length+1>=this._virtualCount||c+n>=u-this._scrollOffset)break;i.push(t),c+=n,t=(t+1)%l}else{if(a-i.length<=0||c+this._physicalSize-n<=f)break;i.push(t),c-=n,t=0===t?l-1:t-1}return{indexes:i,physicalTop:c-this._scrollOffset}},_update(e,t){if((!e||0!==e.length)&&0!==this._physicalCount){if(this._assignModels(e),this._updateMetrics(e),t)for(;t.length;){let e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(e){let t=this._clamp(this._physicalCount+e,3,this._virtualCount-this._virtualStart)-this._physicalCount,o=Math.round(.5*this._physicalCount);if(!(t<0)){if(t>0){let e=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let e=0;e<t;e++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-e)/t,o=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===o||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,o)),n7):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,o),ie))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){let e=this._getReusables(!0);this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length,this._update(e.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(e){"items"===e.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,n9))},_iterateItems(e,t){let o,n,i,r;if(2==arguments.length&&t){for(r=0;r<t.length;r++)if(o=t[r],n=this._computeVidx(o),null!=(i=e.call(this,o,n)))return i}else{for(o=this._physicalStart,n=this._virtualStart;o<this._physicalCount;o++,n++)if(null!=(i=e.call(this,o,n)))return i;for(o=0;o<this._physicalStart;o++,n++)if(null!=(i=e.call(this,o,n)))return i}},_computeVidx(e){return e>=this._physicalStart?this._virtualStart+(e-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+e},_positionItems(){this._adjustScrollPosition();let e=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${e}px`,0,this._physicalItems[t]),e+=this._physicalSizes[t]})},_getPhysicalSizeIncrement(e){return this._physicalSizes[e]},_adjustScrollPosition(){let e=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==e){this._physicalTop-=e;let t=this._scrollPosition;!ss&&t>0&&this._resetScrollPosition(t-e)}},_resetScrollPosition(e){this.scrollTarget&&e>=0&&(this._scrollTop=e,this._scrollPosition=this._scrollTop)},_updateScrollerSize(e){let t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(e||0===this._scrollHeight||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(e){if("number"!=typeof e||e<0||e>this.items.length-1||(ii(),0===this._physicalCount))return;e=this._clamp(e,0,this._virtualCount-1),(!this._isIndexRendered(e)||e>=this._maxVirtualStart)&&(this._virtualStart=e-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,o=this._virtualStart,n=0,i=this._hiddenContentSize;for(;o<e&&n<=i;)n+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,o+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+n),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},n9)},_isIndexRendered(e){return e>=this._virtualStart&&e<=this._virtualEnd},_getPhysicalIndex(e){return(this._physicalStart+(e-this._virtualStart))%this._physicalCount},_clamp:(e,t,o)=>Math.min(o,Math.max(t,e)),_debounce(e,t,o){var n;this._debouncers||(this._debouncers={}),this._debouncers[e]=io.debounce(this._debouncers[e],o,t.bind(this)),n=this._debouncers[e],it.add(n)}});class sc{constructor(e){this.__adapter=new sl(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}hostConnected(){this.__adapter.hostConnected()}}let sd=class{toString(){return""}},su=e=>class extends e{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){let e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(e=>parseInt(e,10)).reduce((e,t)=>e+t)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${iA++}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e,t=!1){if(!this.__virtualizer||!(this.opened&&e>=0))return;let o=[...this.children].find(t=>!t.hidden&&t.index===e);if(!t&&o){let e=o.getBoundingClientRect(),t=this.getBoundingClientRect();if(e.top>=t.top&&e.bottom+this._viewportTotalPaddingBottom<=t.bottom)return}let n=e;if(!t){let t=this._visibleItemsCount();e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),n=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(n=this.__virtualizer.firstVisibleIndex)}this.__virtualizer.scrollToIndex(Math.max(0,n)),this.__virtualizer.flush();let i=[...this.children].find(t=>!t.hidden&&t.index===e);if(!i)return;if(t)return void i.scrollIntoView({block:"center"});let r=i.getBoundingClientRect(),a=this.getBoundingClientRect(),s=r.bottom+this._viewportTotalPaddingBottom;s>a.bottom?this.scrollTop+=s-a.bottom:r.top<a.top&&(this.scrollTop-=a.top-r.top)}_isItemSelected(e,t,o){return!(e instanceof sd)&&(o&&void 0!==e&&void 0!==t?im(o,e)===im(o,t):e===t)}__initVirtualizer(){this.__virtualizer=new sc({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0,__disableHeightPlaceholder:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){if(e){this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate();return}let t=this.__virtualizer&&this.__virtualizer.__adapter;t&&t._scrollPosition>0&&(this.scrollTop=0,t._scrollPosition=0)}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{let e=document.createElement(`${this.__hostTagName}-item`);return e.addEventListener("click",this.__boundOnItemClick),e.tabIndex="-1",e.style.width="100%",e})}_updateElement(e,t){let o=this.items[t],n=this.focusedIndex,i=this._isItemSelected(o,this.selectedItem,this.itemIdPath);e.setProperties({item:o,index:t,label:this.getItemLabel(o),selected:i,renderer:this.renderer,focused:!this.loading&&n===t}),"function"==typeof this.itemClassNameGenerator?e.className=this.itemClassNameGenerator(o):""!==e.className&&(e.className=""),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",void 0!==t&&"option"),e.setAttribute("aria-selected",i.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),o instanceof sd&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{let t=0===this.scrollTop,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;t&&e.deltaY<0?e.preventDefault():o&&e.deltaY>0&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}},sf=tU`
1678
+ `}}nJ(ss);let sl=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),sc=sl&&sl[1]>=8;class sd{constructor({createElements:e,updateElement:t,scrollTarget:o,scrollContainer:n,reorderElements:i,elementsContainer:r,__disableHeightPlaceholder:a}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=o,this.scrollContainer=n,this.reorderElements=i,this.elementsContainer=r||n,this.__disableHeightPlaceholder=a??!1,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,PREVENT_OVERSCROLL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:e}])=>{let t=0===e.width&&0===e.height;!t&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=t}).observe(this.scrollTarget),this.scrollTarget.addEventListener("virtualizer-element-focused",e=>this.__onElementFocused(e)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",e=>{e.target===this.scrollTarget&&(this.__mouseDown=!0)}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if("number"!=typeof e||isNaN(e)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);let t=this.__getVisibleElements().length,o=Math.floor(e/this.size*this._virtualCount);this._virtualCount-o<t?(o=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):o<t?e<1e3?(o=e,this._vidxOffset=0):(o=1e3,this._vidxOffset=e-o):this._vidxOffset=e-o,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(o),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),ii(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}hostConnected(){this.scrollTarget.offsetParent&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition)}update(e=0,t=this.size-1){let o=[];this.__getVisibleElements().forEach(n=>{n.__virtualIndex>=e&&n.__virtualIndex<=t&&(this.__updateElement(n,n.__virtualIndex,!0),o.push(n))}),this.__afterElementsUpdated(o)}_updateMetrics(e){ii();let t=0,o=0,n=this._physicalAverageCount,i=this._physicalAverage;this._iterateItems((e,n)=>{o+=this._physicalSizes[e];let i=this._physicalSizes[e];this._physicalSizes[e]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[e])),this._physicalSizes[e]!==i&&(this.__resizeObserver.unobserve(this._physicalItems[e]),this.__resizeObserver.observe(this._physicalItems[e],{box:"border-box"})),t+=this._physicalSizes[e],this._physicalAverageCount+=+!!this._physicalSizes[e]},e),this._physicalSize=this._physicalSize+t-o,this._physicalAverageCount!==n&&(this._physicalAverage=Math.round((i*n+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){let t=getComputedStyle(e),o=parseFloat(t.height)||0;return"border-box"===t.boxSizing?o:o+(parseFloat(t.paddingBottom)||0)+(parseFloat(t.paddingTop)||0)+(parseFloat(t.borderBottomWidth)||0)+(parseFloat(t.borderTopWidth)||0)}__updateElement(e,t,o){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||o)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){this.__disableHeightPlaceholder||e.forEach(e=>{let t=e.offsetHeight;if(0===t)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=io.debounce(this.__placeholderClearDebouncer,n9,()=>this._resizeHandler());else{this.__elementHeightQueue.push(t),this.__elementHeightQueue.shift();let e=this.__elementHeightQueue.filter(e=>void 0!==e);this.__placeholderHeight=Math.round(e.reduce((e,t)=>e+t,0)/e.length)}}),void 0===this.__pendingScrollToIndex||this.__hasPlaceholders()||this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){let t=this.__getVisibleElements().find(t=>t.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}__restoreScrollOffset(e,t){let o=this.__getIndexScrollOffset(e);void 0!==t&&void 0!==o&&(this._scrollTop+=t-o)}get size(){return this.__size}set size(e){let t,o;if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel();let n=e>0&&this._scrollTop>0;n&&(t=this.adjustedFirstVisibleIndex,o=this.__getIndexScrollOffset(t)),this.__size=e,this.__preventElementUpdates=n,this._itemsChanged({path:"items"}),ii(),n&&(t=Math.min(t,e-1),this.scrollToIndex(t),this.__restoreScrollOffset(t,o)),this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._updateScrollerSize(!0),this._resizeHandler(),ii(),this._debounce("_update",this._update,ie)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){let e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL="rtl"===e.direction,this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight}setAttribute(){}_createPool(e){let t=this.createElements(e),o=document.createDocumentFragment();return t.forEach(e=>{e.style.position="absolute",o.appendChild(e),this.__resizeObserver.observe(e,{box:"border-box"})}),this.elementsContainer.appendChild(o),t}_assignModels(e){let t=[];this._iterateItems((e,o)=>{let n=this._physicalItems[e];n.hidden=o>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),t.push(n))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,o,n){n.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){let t=document.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;for(;t&&!e.includes(t);)t=t.assignedSlot||t.parentNode||t.host;return t}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return 0===t.indexOf(e)&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;let t=e.detail.element;if(!t)return;let o=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,o)||this.__nextFocusableSiblingMissing(t,o))&&this.flush();let n=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,n)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,n)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-this._scrollPosition);let e=this._scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){let t=e>=0,o=this._getReusables(!t);o.indexes.length&&(this._physicalTop=o.physicalTop,t?(this._virtualStart-=o.indexes.length,this._physicalStart-=o.indexes.length):(this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=io.debounce(this.__fixInvalidItemPositioningDebouncer,n8.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning()),this.__overscrollDebouncer?.isActive()||(this.scrollTarget.style.overscrollBehavior="none"),this.__overscrollDebouncer=io.debounce(this.__overscrollDebouncer,n8.after(this.timeouts.PREVENT_OVERSCROLL),()=>{this.scrollTarget.style.overscrollBehavior=null})),this.reorderElements&&(this.__scrollReorderDebouncer=io.debounce(this.__scrollReorderDebouncer,n8.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),0===this._scrollPosition&&0!==this.firstVisibleIndex&&Math.abs(e)>0&&this.scrollToIndex(0)}_resizeHandler(){super._resizeHandler();let e=this.adjustedLastVisibleIndex===this.size-1,t=this._physicalTop-this._scrollPosition;if(e&&t>0){let e=Math.ceil(t/this._physicalAverage);this._virtualStart=Math.max(0,this._virtualStart-e),this._physicalStart=Math.max(0,this._physicalStart-e),super.scrollToIndex(this._virtualCount-1),this.scrollTarget.scrollTop=this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight}}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;let e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,o=0===this.adjustedFirstVisibleIndex,n=this.adjustedLastVisibleIndex===this.size-1;if(e&&!o||t&&!n){let e=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(t?-1:1),this._scrollHandler(),this._ratio=e}}_increasePoolIfNeeded(e){if(this._physicalCount>2&&this._physicalAverage>0&&e>0){let t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){let e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;let e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;let e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),o=this.__getFocusedElement(t)||t[0];if(!o)return;let n=o.__virtualIndex-e,i=t.indexOf(o)-n;if(i>0)for(let e=0;e<i;e++)this.elementsContainer.appendChild(t[e]);else if(i<0)for(let e=t.length+i;e<t.length;e++)this.elementsContainer.insertBefore(t[e],t[0]);if(ai){let{transform:e}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=e})}}_adjustVirtualIndexOffset(e){let t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){let e=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(e*t)}else{let e,o,n=this._vidxOffset,i=()=>{e=this.adjustedFirstVisibleIndex,o=this.__getIndexScrollOffset(e)};0===this._scrollTop?0!==n&&(i(),this._vidxOffset=0,super.scrollToIndex(0)):this.firstVisibleIndex<1e3&&this._vidxOffset>0&&(i(),this._vidxOffset-=Math.min(this._vidxOffset,100),super.scrollToIndex(this.firstVisibleIndex+(n-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?n!==t&&(i(),this._vidxOffset=t,super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-1e3&&this._vidxOffset<t&&(i(),this._vidxOffset+=Math.min(t-this._vidxOffset,100),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-n))),void 0!==e&&this.__restoreScrollOffset(e,o)}}}Object.setPrototypeOf(sd.prototype,{_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(val){val=this._clamp(val,0,this._maxVirtualStart),this._virtualStartVal=val},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(val){(val%=this._physicalCount)<0&&(val=this._physicalCount+val),this._physicalStartVal=val},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(val){this._physicalCountVal=val},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let e=this._firstVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;e=this._iterateItems((e,o)=>{if((t+=this._getPhysicalSizeIncrement(e))>this._scrollPosition)return o})||0,this._firstVisibleIndexVal=e}return e},get lastVisibleIndex(){let e=this._lastVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;this._iterateItems((o,n)=>{t<this._scrollBottom&&(e=n),t+=this._getPhysicalSizeIncrement(o)}),this._lastVisibleIndexVal=e}return e},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){let e=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),t=e-this._scrollPosition,o=t>=0;if(this._scrollPosition=e,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){let e=Math.round((t-=this._scrollOffset)/this._physicalAverage);this._virtualStart+=e,this._physicalStart+=e,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){let e=this._getReusables(o);o?(this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length):(this._virtualStart-=e.indexes.length,this._physicalStart-=e.indexes.length),this._update(e.indexes,o?null:e.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ie)}},_getReusables(e){let t,o,n,i=[],r=this._hiddenContentSize*this._ratio,a=this._virtualStart,s=this._virtualEnd,l=this._physicalCount,c=this._physicalTop+this._scrollOffset,d=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,f=this._scrollBottom;for(e?(t=this._physicalStart,o=u-c):(t=this._physicalEnd,o=d-f);o-=n=this._getPhysicalSizeIncrement(t),!(i.length>=l)&&!(o<=r);)if(e){if(s+i.length+1>=this._virtualCount||c+n>=u-this._scrollOffset)break;i.push(t),c+=n,t=(t+1)%l}else{if(a-i.length<=0||c+this._physicalSize-n<=f)break;i.push(t),c-=n,t=0===t?l-1:t-1}return{indexes:i,physicalTop:c-this._scrollOffset}},_update(e,t){if((!e||0!==e.length)&&0!==this._physicalCount){if(this._assignModels(e),this._updateMetrics(e),t)for(;t.length;){let e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(e){let t=this._clamp(this._physicalCount+e,3,this._virtualCount-this._virtualStart)-this._physicalCount,o=Math.round(.5*this._physicalCount);if(!(t<0)){if(t>0){let e=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let e=0;e<t;e++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-e)/t,o=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===o||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,o)),n7):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,o),ie))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){let e=this._getReusables(!0);this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length,this._update(e.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(e){"items"===e.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,n9))},_iterateItems(e,t){let o,n,i,r;if(2==arguments.length&&t){for(r=0;r<t.length;r++)if(o=t[r],n=this._computeVidx(o),null!=(i=e.call(this,o,n)))return i}else{for(o=this._physicalStart,n=this._virtualStart;o<this._physicalCount;o++,n++)if(null!=(i=e.call(this,o,n)))return i;for(o=0;o<this._physicalStart;o++,n++)if(null!=(i=e.call(this,o,n)))return i}},_computeVidx(e){return e>=this._physicalStart?this._virtualStart+(e-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+e},_positionItems(){this._adjustScrollPosition();let e=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${e}px`,0,this._physicalItems[t]),e+=this._physicalSizes[t]})},_getPhysicalSizeIncrement(e){return this._physicalSizes[e]},_adjustScrollPosition(){let e=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==e){this._physicalTop-=e;let t=this._scrollPosition;!sc&&t>0&&this._resetScrollPosition(t-e)}},_resetScrollPosition(e){this.scrollTarget&&e>=0&&(this._scrollTop=e,this._scrollPosition=this._scrollTop)},_updateScrollerSize(e){let t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(e||0===this._scrollHeight||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(e){if("number"!=typeof e||e<0||e>this.items.length-1||(ii(),0===this._physicalCount))return;e=this._clamp(e,0,this._virtualCount-1),(!this._isIndexRendered(e)||e>=this._maxVirtualStart)&&(this._virtualStart=e-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,o=this._virtualStart,n=0,i=this._hiddenContentSize;for(;o<e&&n<=i;)n+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,o+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+n),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},n9)},_isIndexRendered(e){return e>=this._virtualStart&&e<=this._virtualEnd},_getPhysicalIndex(e){return(this._physicalStart+(e-this._virtualStart))%this._physicalCount},_clamp:(e,t,o)=>Math.min(o,Math.max(t,e)),_debounce(e,t,o){var n;this._debouncers||(this._debouncers={}),this._debouncers[e]=io.debounce(this._debouncers[e],o,t.bind(this)),n=this._debouncers[e],it.add(n)}});class su{constructor(e){this.__adapter=new sd(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}hostConnected(){this.__adapter.hostConnected()}}let sf=class{toString(){return""}},sh=e=>class extends e{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){let e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(e=>parseInt(e,10)).reduce((e,t)=>e+t)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${iA++}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e,t=!1){if(!this.__virtualizer||!(this.opened&&e>=0))return;let o=[...this.children].find(t=>!t.hidden&&t.index===e);if(!t&&o){let e=o.getBoundingClientRect(),t=this.getBoundingClientRect();if(e.top>=t.top&&e.bottom+this._viewportTotalPaddingBottom<=t.bottom)return}let n=e;if(!t){let t=this._visibleItemsCount();e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),n=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(n=this.__virtualizer.firstVisibleIndex)}this.__virtualizer.scrollToIndex(Math.max(0,n)),this.__virtualizer.flush();let i=[...this.children].find(t=>!t.hidden&&t.index===e);if(!i)return;if(t)return void i.scrollIntoView({block:"center"});let r=i.getBoundingClientRect(),a=this.getBoundingClientRect(),s=r.bottom+this._viewportTotalPaddingBottom;s>a.bottom?this.scrollTop+=s-a.bottom:r.top<a.top&&(this.scrollTop-=a.top-r.top)}_isItemSelected(e,t,o){return!(e instanceof sf)&&(o&&void 0!==e&&void 0!==t?im(o,e)===im(o,t):e===t)}__initVirtualizer(){this.__virtualizer=new su({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0,__disableHeightPlaceholder:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){if(e){this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate();return}let t=this.__virtualizer&&this.__virtualizer.__adapter;t&&t._scrollPosition>0&&(this.scrollTop=0,t._scrollPosition=0)}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{let e=document.createElement(`${this.__hostTagName}-item`);return e.addEventListener("click",this.__boundOnItemClick),e.tabIndex="-1",e.style.width="100%",e})}_updateElement(e,t){let o=this.items[t],n=this.focusedIndex,i=this._isItemSelected(o,this.selectedItem,this.itemIdPath);e.setProperties({item:o,index:t,label:this.getItemLabel(o),selected:i,renderer:this.renderer,focused:!this.loading&&n===t}),"function"==typeof this.itemClassNameGenerator?e.className=this.itemClassNameGenerator(o):""!==e.className&&(e.className=""),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",void 0!==t&&"option"),e.setAttribute("aria-selected",i.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),o instanceof sf&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{let t=0===this.scrollTop,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;t&&e.deltaY<0?e.preventDefault():o&&e.deltaY>0&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}},sm=tU`
1671
1679
  :host {
1672
1680
  /* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
1673
1681
  box-shadow: 0 0 0 white;
@@ -1689,11 +1697,11 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1689
1697
  #selector > * {
1690
1698
  forced-color-adjust: auto;
1691
1699
  }
1692
- `;class sh extends su(iy(oO)){static get is(){return"vaadin-time-picker-scroller"}static get styles(){return sf}render(){return of`
1700
+ `;class sb extends sh(iy(oO)){static get is(){return"vaadin-time-picker-scroller"}static get styles(){return sm}render(){return of`
1693
1701
  <div id="selector">
1694
1702
  <slot></slot>
1695
1703
  </div>
1696
- `}}nJ(sh);let sm=tU`
1704
+ `}}nJ(sb);let sp=tU`
1697
1705
  :host([opened]) {
1698
1706
  pointer-events: auto;
1699
1707
  }
@@ -1715,7 +1723,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1715
1723
  direction: rtl;
1716
1724
  text-align: left;
1717
1725
  }
1718
- `,sb=e=>class extends rh(rP(rf(ry(e)))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"}}}constructor(){super(),this._scroller,this._closeOnBlurIsPrevented,this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.autocapitalize="off",e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",!!this.opened),e.setAttribute("spellcheck","false"),e.setAttribute("autocorrect","off"))}firstUpdated(){super.firstUpdated(),this._initScroller()}ready(){super.ready(),this._initOverlay(),this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown)}disconnectedCallback(){super.disconnectedCallback(),this.close()}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.opened=!1}_initOverlay(){let e=this.$.overlay;e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",e=>e.preventDefault()),e.addEventListener("opened-changed",e=>{this._overlayOpened=e.detail.value}),e.addEventListener("vaadin-overlay-closed",()=>{this._scroller.items=[],this._onOverlayClosed()}),this._overlayElement=e}_initScroller(){let e=document.createElement(`${this._tagNamePrefix}-scroller`);e.owner=this,e.getItemLabel=this._getItemLabel.bind(this),e.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._renderScroller(e),this._scroller=e}_renderScroller(e){e.setAttribute("slot","overlay"),e.setAttribute("tabindex","-1"),this.appendChild(e)}get _hasDropdownItems(){return!!(this._dropdownItems&&this._dropdownItems.length)}_overlayOpenedChanged(e,t){e?this._onOpened():t&&this._hasDropdownItems&&this.close()}_focusedIndexChanged(e,t){void 0!==t&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&r_(this.inputElement)}_updateActiveDescendant(e){let t=this.inputElement;if(!t)return;let o=this._getItemElements().find(t=>t.index===e);o?t.setAttribute("aria-activedescendant",o.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(void 0===t)return;e?this._isInputFocused()||ar||!this.inputElement||this.inputElement.focus():(this.autoselect&&(this.__autoselectPending=!0),this._onClosed());let o=this.inputElement;o&&(o.setAttribute("aria-expanded",!!e),e?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this.autoselect&&this.inputElement&&this.__autoselectPending&&this.inputElement.selectionStart===this.inputElement.selectionEnd&&this.inputElement.select(),this.__autoselectPending=!1,this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onTouchend(e){this.clearElement&&e.composedPath()[0]===this.clearElement&&(e.preventDefault(),this._onClearAction())}_onKeyDown(e){super._onKeyDown(e),"ArrowDown"===e.key?(this._onArrowDown(),e.preventDefault()):"ArrowUp"===e.key&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){return e?e.toString():""}_onArrowDown(){if(this.opened){let e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{let e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){let e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){let e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){this.opened?this.close():this._commitValue()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){return!0}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this._onEscapeCancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this._onEscapeCancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onEscapeCancel(){}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",e=>e.preventDefault()),e.addEventListener("click",()=>{ar&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){}_onOpened(){}_onClosed(){}_onOverlayClosed(){}_commitValue(){}_revertInputValue(){this._inputElementValue=this.value,this._clearSelectionRange()}_onInput(e){this.opened||this._isClearButton(e)||this.autoOpenDisabled||(this.opened=!0)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e,t=!1){this._scroller&&this._scroller.scrollIntoView(e,t)}_overlaySelectedItemChanged(e){e.stopPropagation(),this.hasAttribute("closing")||e.detail.item instanceof sd||this.opened&&(this._focusedIndex=this._dropdownItems.indexOf(e.detail.item),this.close())}_setFocused(e){super._setFocused(e),e||(this.__autoselectPending=!1),e||this.readonly||this._closeOnBlurIsPrevented||this._handleFocusOut()}_handleFocusOut(){rb?this._closeOrCommit():this.opened?this._overlayOpened||this.close():this._commitValue()}_shouldRemoveFocus(e){return(!e.relatedTarget||e.relatedTarget.localName!==`${this._tagNamePrefix}-item`)&&(e.relatedTarget!==this._overlayElement||(e.composedPath()[0].focus(),!1))}},sp=e=>class extends aY(e){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};function sF(e){if(!e)return"";let t=(e=0,t="00")=>(t+e).substr((t+e).length-t.length),o=`${t(e.hours)}:${t(e.minutes)}`;return void 0!==e.seconds&&(o+=`:${t(e.seconds)}`),void 0!==e.milliseconds&&(o+=`.${t(e.milliseconds,"000")}`),o}let sg="(\\d|[0-5]\\d)",sv=RegExp(`^(\\d|[0-1]\\d|2[0-3])(?::${sg}(?::${sg}(?:\\.(\\d{1,3}))?)?)?$`,"u");function s_(e){let t=sv.exec(e);if(t){if(t[4])for(;t[4].length<3;)t[4]+="0";return{hours:t[1],minutes:t[2],seconds:t[3],milliseconds:t[4]}}}function sy(e,t){var o;let n;if(!e)return e;let i=(n=null==(o=t)?60:parseFloat(o))%3600==0?1:n%60!=0&&n?n%1==0?3:n<1?4:void 0:2;return{...e,hours:parseInt(e.hours),minutes:parseInt(e.minutes||0),seconds:i<3?void 0:parseInt(e.seconds||0),milliseconds:i<4?void 0:parseInt(e.milliseconds||0)}}let sw=Object.freeze({formatTime:sF,parseTime:s_}),sE="00:00:00.000",sC="23:59:59.999",sk=e=>class extends a3(sp(sb(aW(e)))){static get properties(){return{value:{type:String,notify:!0,value:"",sync:!0},min:{type:String,value:"",sync:!0},max:{type:String,value:"",sync:!0},step:{type:Number,sync:!0},_comboBoxValue:{type:String,sync:!0,observer:"__comboBoxValueChanged"},_inputContainer:{type:Object}}}static get observers(){return["_openedOrItemsChanged(opened, _dropdownItems)","_updateScroller(opened, _dropdownItems, _focusedIndex, _theme, _comboBoxValue)","__updateAriaAttributes(_dropdownItems, opened, inputElement)","__updateDropdownItems(__effectiveI18n, min, max, step)"]}static get defaultI18n(){return sw}static get constraints(){return[...super.constraints,"min","max"]}get _tagNamePrefix(){return"vaadin-time-picker"}get clearElement(){return this.$.clearButton}get i18n(){return super.i18n}set i18n(e){super.i18n=e}get __unparsableValue(){return this._inputElementValue&&!this.__effectiveI18n.parseTime(this._inputElementValue)?this._inputElementValue:""}ready(){super.ready(),this.addController(new rQ(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new rZ(this.inputElement,this._labelController)),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._toggleElement=this.$.toggleButton,this._tooltipController=new iD(this),this._tooltipController.setShouldShow(e=>!e.opened),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}checkValidity(){return!!(this.inputElement.checkValidity()&&(!this.value||this._timeAllowed(s_(this.value)))&&(!this._comboBoxValue||this.__effectiveI18n.parseTime(this._comboBoxValue)))}_getItemLabel(e){return e?e.label:""}_updateScroller(e,t,o,n,i){e&&(this._scroller.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),this._scroller.setProperties({items:e?t:[],opened:e,focusedIndex:o,theme:n,selectedItem:t?.find(e=>e.value===i)})}_openedOrItemsChanged(e,t){this._overlayOpened=e&&!!t?.length}_onClosed(){this._commitValue()}_onEscapeCancel(){this._inputElementValue=this._comboBoxValue,this._closeOrCommit()}_onClearAction(){this._comboBoxValue="",this._inputElementValue="",this.__commitValueChange()}_commitValue(){if(this._focusedIndex>-1){let e=this._dropdownItems[this._focusedIndex],t=this._getItemLabel(e);this._inputElementValue=t,this._comboBoxValue=t,this._focusedIndex=-1}else""===this._inputElementValue||void 0===this._inputElementValue?this._comboBoxValue="":this._comboBoxValue=this._inputElementValue;this.__commitValueChange(),this._clearSelectionRange()}_closeOrCommit(){this.opened?this.close():this._commitValue()}_revertInputValue(){this._inputElementValue=this._comboBoxValue,this._clearSelectionRange()}_setFocused(e){super._setFocused(e),!e&&!this._closeOnBlurIsPrevented&&document.hasFocus()&&this._requestValidation()}__validDayDivisor(e){return!e||86400%e==0||e<1&&e%1*1e3%1==0}_onKeyDown(e){if(super._onKeyDown(e),this.readonly||this.disabled||this._dropdownItems.length)return;let t=this.__validDayDivisor(this.step)&&this.step||60;40===e.keyCode?this.__onArrowPressWithStep(-t):38===e.keyCode&&this.__onArrowPressWithStep(t)}__onArrowPressWithStep(e){let t=this.__addStep(this.__getMsec(this.__memoValue),e,!0);this.__memoValue=t,this.__useMemo=!0,this._comboBoxValue=this.__effectiveI18n.formatTime(t),this.__useMemo=!1,this.__commitValueChange()}__commitValueChange(){let e=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__getMsec(e){let t=60*(e?.hours||0)*6e4;return t+=60*(e?.minutes||0)*1e3,t+=1e3*(e?.seconds||0),t+=parseInt(e?.milliseconds)||0}__getSec(e){let t=60*(e?.hours||0)*60;return t+=60*(e?.minutes||0),t+=e?.seconds||0,t+=(e?.milliseconds||0)/1e3}__addStep(e,t,o){0===e&&t<0&&(e=864e5);let n=1e3*t,i=e%n;n<0&&i&&o?e-=i:n>0&&i&&o?e-=i-n:e+=n;let r=Math.floor(e/1e3/60/60),a=Math.floor((e-=1e3*r*3600)/1e3/60),s=Math.floor((e-=1e3*a*60)/1e3);return e-=1e3*s,{hours:r<24?r:0,minutes:a,seconds:s,milliseconds:e}}__updateDropdownItems(e,t,o,n){let i=sy(s_(t||sE),n),r=this.__getSec(i),a=sy(s_(o||sC),n),s=this.__getSec(a);this._dropdownItems=this.__generateDropdownList(r,s,n);let l=sy(s_(this.value),n);n!==this.__oldStep&&(this.__oldStep=n,this.__updateValue(l)),this.value&&(this._comboBoxValue=e.formatTime(l))}__updateAriaAttributes(e,t,o){void 0!==e&&void 0!==o&&(0===e.length?(o.removeAttribute("role"),o.removeAttribute("aria-expanded")):(o.setAttribute("role","combobox"),o.setAttribute("aria-expanded",!!t)))}__generateDropdownList(e,t,o){if(o<900||!this.__validDayDivisor(o))return[];let n=[];o||(o=3600);let i=-o+e;for(;i+o>=e&&i+o<=t;){let e=sy(this.__addStep(1e3*i,o),o);i+=o;let t=this.__effectiveI18n.formatTime(e);n.push({label:t,value:t})}return n}_valueChanged(e,t){let o=this.__memoValue=s_(e),n=sF(o)||"";this.__keepCommittedValue||(this.__committedValue=e,this.__committedUnparsableValue=""),""===e||null===e||o?e!==n?this.value=n:this.__keepInvalidInput?delete this.__keepInvalidInput:this.__updateInputValue(o):this.value=t??"",this._toggleHasValue(this._hasValue)}__comboBoxValueChanged(e,t){if(""===e&&void 0===t)return;let o=sy(this.__useMemo?this.__memoValue:this.__effectiveI18n.parseTime(e),this.step),n=this.__effectiveI18n.formatTime(o)||"";o?e!==n?this._comboBoxValue=n:(this.__keepCommittedValue=!0,this.__updateValue(o),this.__keepCommittedValue=!1):(""!==this.value&&""!==e&&(this.__keepInvalidInput=!0),this.__keepCommittedValue=!0,this.value="",this.__keepCommittedValue=!1)}__updateValue(e){let t=sF(sy(e,this.step))||"";this.value=t,this.__updateInputValue(e)}__updateInputValue(e){let t=this.__effectiveI18n.formatTime(sy(e,this.step))||"";this._inputElementValue=t,this._comboBoxValue=t}_timeAllowed(e){let t=s_(this.min||sE),o=s_(this.max||sC);return(!t||this.__getMsec(e)>=this.__getMsec(t))&&(!o||this.__getMsec(e)<=this.__getMsec(o))}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e),this.opened&&this._scroller.requestContentUpdate()}_onHostClick(e){let t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._inputContainer))&&super._onHostClick(e)}_onChange(e){e.stopPropagation()}};class sA extends sk(iY(id(iy(i$(oO))))){static get is(){return"vaadin-time-picker"}static get styles(){return[aG,sm]}render(){return of`
1726
+ `,sF=e=>class extends rh(rP(rf(ry(e)))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"}}}constructor(){super(),this._scroller,this._closeOnBlurIsPrevented,this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.autocapitalize="off",e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",!!this.opened),e.setAttribute("spellcheck","false"),e.setAttribute("autocorrect","off"))}firstUpdated(){super.firstUpdated(),this._initScroller()}ready(){super.ready(),this._initOverlay(),this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown)}disconnectedCallback(){super.disconnectedCallback(),this.close()}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.opened=!1}_initOverlay(){let e=this.$.overlay;e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",e=>e.preventDefault()),e.addEventListener("opened-changed",e=>{this._overlayOpened=e.detail.value}),e.addEventListener("vaadin-overlay-closed",()=>{this._scroller.items=[],this._onOverlayClosed()}),this._overlayElement=e}_initScroller(){let e=document.createElement(`${this._tagNamePrefix}-scroller`);e.owner=this,e.getItemLabel=this._getItemLabel.bind(this),e.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._renderScroller(e),this._scroller=e}_renderScroller(e){e.setAttribute("slot","overlay"),e.setAttribute("tabindex","-1"),this.appendChild(e)}get _hasDropdownItems(){return!!(this._dropdownItems&&this._dropdownItems.length)}_overlayOpenedChanged(e,t){e?this._onOpened():t&&this._hasDropdownItems&&this.close()}_focusedIndexChanged(e,t){void 0!==t&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&r_(this.inputElement)}_updateActiveDescendant(e){let t=this.inputElement;if(!t)return;let o=this._getItemElements().find(t=>t.index===e);o?t.setAttribute("aria-activedescendant",o.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(void 0===t)return;e?this._isInputFocused()||ar||!this.inputElement||this.inputElement.focus():(this.autoselect&&(this.__autoselectPending=!0),this._onClosed());let o=this.inputElement;o&&(o.setAttribute("aria-expanded",!!e),e?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this.autoselect&&this.inputElement&&this.__autoselectPending&&this.inputElement.selectionStart===this.inputElement.selectionEnd&&this.inputElement.select(),this.__autoselectPending=!1,this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onTouchend(e){this.clearElement&&e.composedPath()[0]===this.clearElement&&(e.preventDefault(),this._onClearAction())}_onKeyDown(e){super._onKeyDown(e),"ArrowDown"===e.key?(this._onArrowDown(),e.preventDefault()):"ArrowUp"===e.key&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){return e?e.toString():""}_onArrowDown(){if(this.opened){let e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{let e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){let e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){let e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){this.opened?this.close():this._commitValue()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){return!0}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this._onEscapeCancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this._onEscapeCancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onEscapeCancel(){}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",e=>e.preventDefault()),e.addEventListener("click",()=>{ar&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){}_onOpened(){}_onClosed(){}_onOverlayClosed(){}_commitValue(){}_revertInputValue(){this._inputElementValue=this.value,this._clearSelectionRange()}_onInput(e){this.opened||this._isClearButton(e)||this.autoOpenDisabled||(this.opened=!0)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e,t=!1){this._scroller&&this._scroller.scrollIntoView(e,t)}_overlaySelectedItemChanged(e){e.stopPropagation(),this.hasAttribute("closing")||e.detail.item instanceof sf||this.opened&&(this._focusedIndex=this._dropdownItems.indexOf(e.detail.item),this.close())}_setFocused(e){super._setFocused(e),e||(this.__autoselectPending=!1),e||this.readonly||this._closeOnBlurIsPrevented||this._handleFocusOut()}_handleFocusOut(){rb?this._closeOrCommit():this.opened?this._overlayOpened||this.close():this._commitValue()}_shouldRemoveFocus(e){return(!e.relatedTarget||e.relatedTarget.localName!==`${this._tagNamePrefix}-item`)&&(e.relatedTarget!==this._overlayElement||(e.composedPath()[0].focus(),!1))}},sg=e=>class extends aY(e){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};function sv(e){if(!e)return"";let t=(e=0,t="00")=>(t+e).substr((t+e).length-t.length),o=`${t(e.hours)}:${t(e.minutes)}`;return void 0!==e.seconds&&(o+=`:${t(e.seconds)}`),void 0!==e.milliseconds&&(o+=`.${t(e.milliseconds,"000")}`),o}let s_="(\\d|[0-5]\\d)",sy=RegExp(`^(\\d|[0-1]\\d|2[0-3])(?::${s_}(?::${s_}(?:\\.(\\d{1,3}))?)?)?$`,"u");function sw(e){let t=sy.exec(e);if(t){if(t[4])for(;t[4].length<3;)t[4]+="0";return{hours:t[1],minutes:t[2],seconds:t[3],milliseconds:t[4]}}}function sE(e,t){var o;let n;if(!e)return e;let i=(n=null==(o=t)?60:parseFloat(o))%3600==0?1:n%60!=0&&n?n%1==0?3:n<1?4:void 0:2;return{...e,hours:parseInt(e.hours),minutes:parseInt(e.minutes||0),seconds:i<3?void 0:parseInt(e.seconds||0),milliseconds:i<4?void 0:parseInt(e.milliseconds||0)}}let sC=Object.freeze({formatTime:sv,parseTime:sw}),sk="00:00:00.000",sA="23:59:59.999",sx=e=>class extends a4(sg(sF(aW(e)))){static get properties(){return{value:{type:String,notify:!0,value:"",sync:!0},min:{type:String,value:"",sync:!0},max:{type:String,value:"",sync:!0},step:{type:Number,sync:!0},_comboBoxValue:{type:String,sync:!0,observer:"__comboBoxValueChanged"},_inputContainer:{type:Object}}}static get observers(){return["_openedOrItemsChanged(opened, _dropdownItems)","_updateScroller(opened, _dropdownItems, _focusedIndex, _theme, _comboBoxValue)","__updateAriaAttributes(_dropdownItems, opened, inputElement)"]}static get defaultI18n(){return sC}static get constraints(){return[...super.constraints,"min","max"]}get _tagNamePrefix(){return"vaadin-time-picker"}get clearElement(){return this.$.clearButton}get i18n(){return super.i18n}set i18n(e){super.i18n=e}get __unparsableValue(){return this._inputElementValue&&!this.__effectiveI18n.parseTime(this._inputElementValue)?this._inputElementValue:""}ready(){super.ready(),this.addController(new rQ(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new rZ(this.inputElement,this._labelController)),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._toggleElement=this.$.toggleButton,this._tooltipController=new iD(this),this._tooltipController.setShouldShow(e=>!e.opened),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}updated(e){super.updated(e),["__effectiveI18n","min","max","step"].some(t=>e.has(t))&&this.__updateDropdownItems(),e.has("step")&&this.__updateValue(this.__getTimeObject(this.value)),e.has("__effectiveI18n")&&this.value&&this.__updateInputValue(this.__getTimeObject(this.value))}checkValidity(){return!!(this.inputElement.checkValidity()&&(!this.value||this._timeAllowed(sw(this.value)))&&(!this._comboBoxValue||this.__effectiveI18n.parseTime(this._comboBoxValue)))}_getItemLabel(e){return e?e.label:""}_updateScroller(e,t,o,n,i){e&&(this._scroller.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),this._scroller.setProperties({items:e?t:[],opened:e,focusedIndex:o,theme:n,selectedItem:t?.find(e=>e.value===i)})}_openedOrItemsChanged(e,t){this._overlayOpened=e&&!!t?.length}_onClosed(){this._commitValue()}_onEscapeCancel(){this._inputElementValue=this._comboBoxValue,this._closeOrCommit()}_onClearAction(){this._comboBoxValue="",this._inputElementValue="",this.__commitValueChange()}_commitValue(){if(this._focusedIndex>-1){let e=this._dropdownItems[this._focusedIndex],t=this._getItemLabel(e);this._inputElementValue=t,this._comboBoxValue=t,this._focusedIndex=-1}else""===this._inputElementValue||void 0===this._inputElementValue?this._comboBoxValue="":this._comboBoxValue=this._inputElementValue;this.__commitValueChange(),this._clearSelectionRange()}_closeOrCommit(){this.opened?this.close():this._commitValue()}_revertInputValue(){this._inputElementValue=this._comboBoxValue,this._clearSelectionRange()}_setFocused(e){super._setFocused(e),!e&&!this._closeOnBlurIsPrevented&&document.hasFocus()&&this._requestValidation()}__validDayDivisor(e){return!e||86400%e==0||e<1&&e%1*1e3%1==0}_onKeyDown(e){if(super._onKeyDown(e),this.readonly||this.disabled||this._dropdownItems.length)return;let t=this.__validDayDivisor(this.step)&&this.step||60;40===e.keyCode?this.__onArrowPressWithStep(-t):38===e.keyCode&&this.__onArrowPressWithStep(t)}__onArrowPressWithStep(e){let t=this.__addStep(this.__getMsec(this.__memoValue),e,!0);this.__memoValue=t,this.__useMemo=!0,this._comboBoxValue=this.__effectiveI18n.formatTime(t),this.__useMemo=!1,this.__commitValueChange()}__commitValueChange(){let e=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__getMsec(e){let t=60*(e?.hours||0)*6e4;return t+=60*(e?.minutes||0)*1e3,t+=1e3*(e?.seconds||0),t+=parseInt(e?.milliseconds)||0}__getTimeObject(e){return sE(sw(e),this.step)}__getSec(e){let t=60*(e?.hours||0)*60;return t+=60*(e?.minutes||0),t+=e?.seconds||0,t+=(e?.milliseconds||0)/1e3}__addStep(e,t,o){0===e&&t<0&&(e=864e5);let n=1e3*t,i=e%n;n<0&&i&&o?e-=i:n>0&&i&&o?e-=i-n:e+=n;let r=Math.floor(e/1e3/60/60),a=Math.floor((e-=1e3*r*3600)/1e3/60),s=Math.floor((e-=1e3*a*60)/1e3);return e-=1e3*s,{hours:r<24?r:0,minutes:a,seconds:s,milliseconds:e}}__updateDropdownItems(){let e=this.__getSec(this.__getTimeObject(this.min||sk)),t=this.__getSec(this.__getTimeObject(this.max||sA));this._dropdownItems=this.__generateDropdownList(e,t,this.step)}__updateAriaAttributes(e,t,o){void 0!==e&&void 0!==o&&(0===e.length?(o.removeAttribute("role"),o.removeAttribute("aria-expanded")):(o.setAttribute("role","combobox"),o.setAttribute("aria-expanded",!!t)))}__generateDropdownList(e,t,o){if(o<900||!this.__validDayDivisor(o))return[];let n=[];o||(o=3600);let i=-o+e;for(;i+o>=e&&i+o<=t;){let e=sE(this.__addStep(1e3*i,o),o);i+=o;let t=this.__effectiveI18n.formatTime(e);n.push({label:t,value:t})}return n}_valueChanged(e,t){let o=this.__memoValue=this.__getTimeObject(e),n=sv(o)||"";this.__keepCommittedValue||(this.__committedValue=e,this.__committedUnparsableValue=""),""===e||null===e||o?e!==n?this.value=n:this.__keepInvalidInput?delete this.__keepInvalidInput:this.__updateInputValue(o):this.value=t??"",this._toggleHasValue(this._hasValue)}__comboBoxValueChanged(e,t){if(""===e&&void 0===t)return;let o=sE(this.__useMemo?this.__memoValue:this.__effectiveI18n.parseTime(e),this.step),n=this.__effectiveI18n.formatTime(o)||"";o?e!==n?this._comboBoxValue=n:(this.__keepCommittedValue=!0,this.__updateValue(o),this.__keepCommittedValue=!1):(""!==this.value&&""!==e&&(this.__keepInvalidInput=!0),this.__keepCommittedValue=!0,this.value="",this.__keepCommittedValue=!1)}__updateValue(e){let t=sv(sE(e,this.step))||"";this.value=t,this.__updateInputValue(e)}__updateInputValue(e){let t=this.__effectiveI18n.formatTime(sE(e,this.step))||"";this._inputElementValue=t,this._comboBoxValue=t}_timeAllowed(e){let t=sw(this.min||sk),o=sw(this.max||sA);return(!t||this.__getMsec(e)>=this.__getMsec(t))&&(!o||this.__getMsec(e)<=this.__getMsec(o))}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e),this.opened&&this._scroller.requestContentUpdate()}_onHostClick(e){let t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._inputContainer))&&super._onHostClick(e)}_onChange(e){e.stopPropagation()}};class sD extends sx(iY(id(iy(i$(oO))))){static get is(){return"vaadin-time-picker"}static get styles(){return[aG,sp]}render(){return of`
1719
1727
  <div class="vaadin-time-picker-container">
1720
1728
  <div part="label">
1721
1729
  <slot name="label"></slot>
@@ -1758,7 +1766,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1758
1766
  >
1759
1767
  <slot name="overlay"></slot>
1760
1768
  </vaadin-time-picker-overlay>
1761
- `}}nJ(sA);let sx=tU`
1769
+ `}}nJ(sD);let sS=tU`
1762
1770
  .vaadin-date-time-picker-container {
1763
1771
  width: calc(var(--vaadin-field-default-width, 12em) * 2 + var(--vaadin-date-time-picker-gap, var(--vaadin-gap-s)));
1764
1772
  }
@@ -1777,7 +1785,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1777
1785
  min-width: 0;
1778
1786
  flex: 1 1.65 auto;
1779
1787
  }
1780
- `,sD=Object.keys(a4),sS=Object.keys(sw),sT={...a4,...sw};class sO extends ix{constructor(e,t){super(e,`${t}-picker`,`vaadin-${t}-picker`,{initializer:(e,o)=>{o[`__${t}Picker`]=e}})}}let sI=e=>class extends a3(rX(ry(rf(e)))){static get properties(){return{name:{type:String},value:{type:String,notify:!0,value:"",observer:"__valueChanged",sync:!0},min:{type:String,observer:"__minChanged",sync:!0},max:{type:String,observer:"__maxChanged",sync:!0},__minDateTime:{type:Date,value:"",sync:!0},__maxDateTime:{type:Date,value:"",sync:!0},datePlaceholder:{type:String,sync:!0},timePlaceholder:{type:String,sync:!0},step:{type:Number,sync:!0},initialPosition:{type:String,sync:!0},showWeekNumbers:{type:Boolean,value:!1,sync:!0},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},autofocus:{type:Boolean},__selectedDateTime:{type:Date,sync:!0},__datePicker:{type:Object,sync:!0,observer:"__datePickerChanged"},__timePicker:{type:Object,sync:!0,observer:"__timePickerChanged"}}}static get observers(){return["__selectedDateTimeChanged(__selectedDateTime)","__datePlaceholderChanged(datePlaceholder, __datePicker)","__timePlaceholderChanged(timePlaceholder, __timePicker)","__stepChanged(step, __timePicker)","__initialPositionChanged(initialPosition, __datePicker)","__showWeekNumbersChanged(showWeekNumbers, __datePicker)","__requiredChanged(required, __datePicker, __timePicker)","__invalidChanged(invalid, __datePicker, __timePicker)","__disabledChanged(disabled, __datePicker, __timePicker)","__readonlyChanged(readonly, __datePicker, __timePicker)","__i18nChanged(__effectiveI18n, __datePicker, __timePicker)","__autoOpenDisabledChanged(autoOpenDisabled, __datePicker, __timePicker)","__themeChanged(_theme, __datePicker, __timePicker)","__pickersChanged(__datePicker, __timePicker)","__labelOrAccessibleNameChanged(label, accessibleName, __effectiveI18n, __datePicker, __timePicker)"]}static get defaultI18n(){return sT}constructor(){super(),this.__defaultDateMinMaxValue=void 0,this.__defaultTimeMinValue="00:00:00.000",this.__defaultTimeMaxValue="23:59:59.999",this.__onGlobalClick=this.__onGlobalClick.bind(this),this.__changeEventHandler=this.__changeEventHandler.bind(this),this.__valueChangedEventHandler=this.__valueChangedEventHandler.bind(this),this.__openedChangedEventHandler=this.__openedChangedEventHandler.bind(this)}get i18n(){return super.i18n}set i18n(e){super.i18n=e}get __pickers(){return[this.__datePicker,this.__timePicker]}get __filledPickers(){return this.__pickers.filter(e=>e.value||e.__unparsableValue)}get __formattedValue(){let e=this.__pickers.map(e=>e.value);return e.every(Boolean)?e.join("T"):""}get __unparsableValue(){return this.__filledPickers.length>0&&!this.__pickers.every(e=>e.value)?this.__pickers.map(e=>e.value||e.__unparsableValue).join("T"):""}ready(){super.ready(),this._datePickerController=new sO(this,"date"),this.addController(this._datePickerController),this._timePickerController=new sO(this,"time"),this.addController(this._timePickerController),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>this.focus()),this.setAttribute("role","group"),this._tooltipController=new iD(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setShouldShow(e=>e.__datePicker&&!e.__datePicker.opened&&e.__timePicker&&!e.__timePicker.opened),this.ariaTarget=this}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onGlobalClick,!0)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.__onGlobalClick,!0)}focus(e){this.__datePicker&&this.__datePicker.focus(e)}__onGlobalClick(e){!(this.__datePicker.opened||this.__timePicker.opened)||e.composedPath().every(e=>![this.__datePicker,this.__datePicker.$.overlay,this.__timePicker,this.__timePicker.$.overlay].includes(e))&&(this.__outsideClickInProgress=!0,setTimeout(()=>{this.__outsideClickInProgress=!1}))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.__commitPendingValueChange()}_shouldRemoveFocus(e){let t=e.relatedTarget;return!(this.__datePicker.opened||this.__timePicker.opened||this.__datePicker.contains(t)||this.__timePicker.contains(t))}__syncI18n(e,t,o){let n={};o.forEach(e=>{t?.hasOwnProperty(e)&&(n[e]=t[e])}),e.i18n=n}__changeEventHandler(e){e.stopPropagation();let t=this.invalid,o=this.__filledPickers;(!(1===o.length&&o[0].checkValidity())||t)&&this.__hasPendingValueChange&&this.__commitPendingValueChange()}__openedChangedEventHandler(){let e=this.__datePicker.opened||this.__timePicker.opened;this.style.pointerEvents=e?"auto":"",!e&&this.__outsideClickInProgress&&this.__commitPendingValueChange()}__addInputListeners(e){e.addEventListener("change",this.__changeEventHandler),e.addEventListener("unparsable-change",this.__changeEventHandler),e.addEventListener("value-changed",this.__valueChangedEventHandler),e.addEventListener("opened-changed",this.__openedChangedEventHandler)}__removeInputListeners(e){e.removeEventListener("change",this.__changeEventHandler),e.removeEventListener("unparsable-change",this.__changeEventHandler),e.removeEventListener("value-changed",this.__valueChangedEventHandler),e.removeEventListener("opened-changed",this.__openedChangedEventHandler)}__isDefaultPicker(e,t){let o=this[`_${t}PickerController`];return o&&e===o.defaultNode}__datePickerChanged(e,t){e&&(t&&(this.__removeInputListeners(t),t.remove()),this.__addInputListeners(e),this.__isDefaultPicker(e,"date")||(this.datePlaceholder=e.placeholder,this.initialPosition=e.initialPosition,this.showWeekNumbers=e.showWeekNumbers),e.min=this.__formatDateISO(this.__minDateTime,this.__defaultDateMinMaxValue),e.max=this.__formatDateISO(this.__maxDateTime,this.__defaultDateMinMaxValue),e.manualValidation=!0)}__timePickerChanged(e,t){e&&(t&&(this.__removeInputListeners(t),t.remove()),this.__addInputListeners(e),this.__isDefaultPicker(e,"time")||(this.timePlaceholder=e.placeholder,this.step=e.step),this.__updateTimePickerMinMax(),e.manualValidation=!0)}__updateTimePickerMinMax(){if(this.__timePicker&&this.__datePicker){let e=this.__parseDate(this.__datePicker.value),t=ak(this.__minDateTime,this.__maxDateTime,aC);this.__minDateTime&&ak(e,this.__minDateTime,aC)||t?this.__timePicker.min=this.__dateToIsoTimeString(this.__minDateTime):this.__timePicker.min=this.__defaultTimeMinValue,this.__maxDateTime&&ak(e,this.__maxDateTime,aC)||t?this.__timePicker.max=this.__dateToIsoTimeString(this.__maxDateTime):this.__timePicker.max=this.__defaultTimeMaxValue}}__i18nChanged(e,t,o){t&&this.__isDefaultPicker(t,"date")&&this.__syncI18n(t,e,sD),o&&this.__isDefaultPicker(o,"time")&&this.__syncI18n(o,e,sS)}__labelOrAccessibleNameChanged(e,t,o,n,i){let r=t||e||"";n&&(n.accessibleName=`${r} ${o.dateLabel||""}`.trim()),i&&(i.accessibleName=`${r} ${o.timeLabel||""}`.trim())}__datePlaceholderChanged(e,t){t&&(t.placeholder=e)}__timePlaceholderChanged(e,t){t&&(t.placeholder=e)}__stepChanged(e,t){t&&t.step!==e&&(t.step=e)}__initialPositionChanged(e,t){t&&(t.initialPosition=e)}__showWeekNumbersChanged(e,t){t&&(t.showWeekNumbers=e)}__invalidChanged(e,t,o){t&&(t.invalid=e),o&&(o.invalid=e)}__requiredChanged(e,t,o){t&&(t.required=e),o&&(o.required=e),this.__oldRequired&&!e&&this._requestValidation(),this.__oldRequired=e}__disabledChanged(e,t,o){t&&(t.disabled=e),o&&(o.disabled=e)}__readonlyChanged(e,t,o){t&&(t.readonly=e),o&&(o.readonly=e)}__parseDate(e){let t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!t)return;let o=new Date(Date.UTC(0,0));return o.setUTCFullYear(parseInt(t[1],10)),o.setUTCMonth(parseInt(t[2],10)-1),o.setUTCDate(parseInt(t[3],10)),o}__formatDateISO(e,t){return e?e instanceof Date?aO({year:e.getUTCFullYear(),month:e.getUTCMonth(),day:e.getUTCDate()}):"":t}__parseDateTime(e){let[t,o]=e.split("T");if(!(t&&o))return;let n=this.__parseDate(t);if(!n)return;let i=s_(o);if(i)return n.setUTCHours(parseInt(i.hours)),n.setUTCMinutes(parseInt(i.minutes||0)),n.setUTCSeconds(parseInt(i.seconds||0)),n.setUTCMilliseconds(parseInt(i.milliseconds||0)),n}__formatDateTime(e){if(!e)return"";let t=this.__formatDateISO(e,""),o=this.__dateToIsoTimeString(e);return`${t}T${o}`}__dateToIsoTimeString(e){return sF(sy({hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds(),milliseconds:e.getUTCMilliseconds()},this.step))}checkValidity(){let e=this.__pickers.some(e=>!e.checkValidity()),t=1===this.__filledPickers.length,o=this.required&&this.__pickers.some(e=>!e.value);return!e&&!o&&!t}__commitPendingValueChange(){this._requestValidation(),this.__committedValue!==this.value?this.dispatchEvent(new CustomEvent("change",{bubbles:!0})):this.__committedUnparsableValue!==this.__unparsableValue&&this.dispatchEvent(new CustomEvent("unparsable-change")),this.__committedValue=this.value,this.__committedUnparsableValue=this.__unparsableValue}get __hasPendingValueChange(){return this.__committedValue!==this.value||this.__committedUnparsableValue!==this.__unparsableValue}__dateTimeEquals(e,t){return!!ak(e,t,aC)&&e.getUTCHours()===t.getUTCHours()&&e.getUTCMinutes()===t.getUTCMinutes()&&e.getUTCSeconds()===t.getUTCSeconds()&&e.getUTCMilliseconds()===t.getUTCMilliseconds()}__handleDateTimeChange(e,t,o,n){if(!o){this[e]="",this[t]="";return}let i=this.__parseDateTime(o);if(!i){this[e]=n;return}this.__dateTimeEquals(this[t],i)||(this[t]=i)}__valueChanged(e,t){this.__handleDateTimeChange("value","__selectedDateTime",e,t),this.__keepCommittedValue||(this.__committedValue=e,this.__committedUnparsableValue=""),this.toggleAttribute("has-value",!!e),this.__updateTimePickerMinMax()}__dispatchChange(){this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__minChanged(e,t){this.__handleDateTimeChange("min","__minDateTime",e,t),this.__datePicker&&(this.__datePicker.min=this.__formatDateISO(this.__minDateTime,this.__defaultDateMinMaxValue)),this.__updateTimePickerMinMax(),this.__datePicker&&this.__timePicker&&this.value&&this._requestValidation()}__maxChanged(e,t){this.__handleDateTimeChange("max","__maxDateTime",e,t),this.__datePicker&&(this.__datePicker.max=this.__formatDateISO(this.__maxDateTime,this.__defaultDateMinMaxValue)),this.__updateTimePickerMinMax(),this.__datePicker&&this.__timePicker&&this.value&&this._requestValidation()}__selectedDateTimeChanged(e){let t=this.__formatDateTime(e);if(this.value!==t&&(this.value=t),this.__datePicker&&this.__datePicker.$&&!this.__ignoreInputValueChange){this.__ignoreInputValueChange=!0;let[e,t]=this.value.split("T");this.__datePicker.value=e||"",this.__timePicker.value=t||"",this.__ignoreInputValueChange=!1}}__valueChangedEventHandler(){this.__ignoreInputValueChange||(this.__ignoreInputValueChange=!0,this.__keepCommittedValue=!0,this.__updateTimePickerMinMax(),this.value=this.__formattedValue,this.__keepCommittedValue=!1,this.__ignoreInputValueChange=!1)}__autoOpenDisabledChanged(e,t,o){t&&(t.autoOpenDisabled=e),o&&(o.autoOpenDisabled=e)}__themeChanged(e,t,o){t&&o&&[t,o].forEach(t=>{e?t.setAttribute("theme",e):t.removeAttribute("theme")})}__pickersChanged(e,t){!e||!t||this.__isDefaultPicker(e,"date")===this.__isDefaultPicker(t,"time")&&(e.value?this.__valueChangedEventHandler():this.value&&(this.__selectedDateTimeChanged(this.__selectedDateTime),(this.min&&this.__minDateTime||this.max&&this.__maxDateTime)&&this._requestValidation()))}};class sB extends sI(iY(id(iy(i$(oO))))){static get is(){return"vaadin-date-time-picker"}static get styles(){return[aG,sx]}render(){return of`
1788
+ `,sT=Object.keys(a8),sO=Object.keys(sC),sI={...a8,...sC};class sB extends ix{constructor(e,t){super(e,`${t}-picker`,`vaadin-${t}-picker`,{initializer:(e,o)=>{o[`__${t}Picker`]=e}})}}let sR=e=>class extends a4(rX(ry(rf(e)))){static get properties(){return{name:{type:String},value:{type:String,notify:!0,value:"",observer:"__valueChanged",sync:!0},min:{type:String,observer:"__minChanged",sync:!0},max:{type:String,observer:"__maxChanged",sync:!0},__minDateTime:{type:Date,value:"",sync:!0},__maxDateTime:{type:Date,value:"",sync:!0},datePlaceholder:{type:String,sync:!0},timePlaceholder:{type:String,sync:!0},step:{type:Number,sync:!0},initialPosition:{type:String,sync:!0},showWeekNumbers:{type:Boolean,value:!1,sync:!0},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},autofocus:{type:Boolean},__selectedDateTime:{type:Date,sync:!0},__datePicker:{type:Object,sync:!0,observer:"__datePickerChanged"},__timePicker:{type:Object,sync:!0,observer:"__timePickerChanged"}}}static get observers(){return["__selectedDateTimeChanged(__selectedDateTime)","__datePlaceholderChanged(datePlaceholder, __datePicker)","__timePlaceholderChanged(timePlaceholder, __timePicker)","__stepChanged(step, __timePicker)","__initialPositionChanged(initialPosition, __datePicker)","__showWeekNumbersChanged(showWeekNumbers, __datePicker)","__requiredChanged(required, __datePicker, __timePicker)","__invalidChanged(invalid, __datePicker, __timePicker)","__disabledChanged(disabled, __datePicker, __timePicker)","__readonlyChanged(readonly, __datePicker, __timePicker)","__i18nChanged(__effectiveI18n, __datePicker, __timePicker)","__autoOpenDisabledChanged(autoOpenDisabled, __datePicker, __timePicker)","__themeChanged(_theme, __datePicker, __timePicker)","__pickersChanged(__datePicker, __timePicker)","__labelOrAccessibleNameChanged(label, accessibleName, __effectiveI18n, __datePicker, __timePicker)"]}static get defaultI18n(){return sI}constructor(){super(),this.__defaultDateMinMaxValue=void 0,this.__defaultTimeMinValue="00:00:00.000",this.__defaultTimeMaxValue="23:59:59.999",this.__onGlobalClick=this.__onGlobalClick.bind(this),this.__changeEventHandler=this.__changeEventHandler.bind(this),this.__valueChangedEventHandler=this.__valueChangedEventHandler.bind(this),this.__openedChangedEventHandler=this.__openedChangedEventHandler.bind(this)}get i18n(){return super.i18n}set i18n(e){super.i18n=e}get __pickers(){return[this.__datePicker,this.__timePicker]}get __filledPickers(){return this.__pickers.filter(e=>e.value||e.__unparsableValue)}get __formattedValue(){let e=this.__pickers.map(e=>e.value);return e.every(Boolean)?e.join("T"):""}get __unparsableValue(){return this.__filledPickers.length>0&&!this.__pickers.every(e=>e.value)?this.__pickers.map(e=>e.value||e.__unparsableValue).join("T"):""}ready(){super.ready(),this._datePickerController=new sB(this,"date"),this.addController(this._datePickerController),this._timePickerController=new sB(this,"time"),this.addController(this._timePickerController),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>this.focus()),this.setAttribute("role","group"),this._tooltipController=new iD(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setShouldShow(e=>e.__datePicker&&!e.__datePicker.opened&&e.__timePicker&&!e.__timePicker.opened),this.ariaTarget=this}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onGlobalClick,!0)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.__onGlobalClick,!0)}focus(e){this.__datePicker&&this.__datePicker.focus(e)}__onGlobalClick(e){!(this.__datePicker.opened||this.__timePicker.opened)||e.composedPath().every(e=>![this.__datePicker,this.__datePicker.$.overlay,this.__timePicker,this.__timePicker.$.overlay].includes(e))&&(this.__outsideClickInProgress=!0,setTimeout(()=>{this.__outsideClickInProgress=!1}))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.__commitPendingValueChange()}_shouldRemoveFocus(e){let t=e.relatedTarget;return!(this.__datePicker.opened||this.__timePicker.opened||this.__datePicker.contains(t)||this.__timePicker.contains(t))}__syncI18n(e,t,o){let n={};o.forEach(e=>{t?.hasOwnProperty(e)&&(n[e]=t[e])}),e.i18n=n}__changeEventHandler(e){e.stopPropagation();let t=this.invalid,o=this.__filledPickers;(!(1===o.length&&o[0].checkValidity())||t)&&this.__hasPendingValueChange&&this.__commitPendingValueChange()}__openedChangedEventHandler(){let e=this.__datePicker.opened||this.__timePicker.opened;this.style.pointerEvents=e?"auto":"",!e&&this.__outsideClickInProgress&&this.__commitPendingValueChange(),e||this.contains(this.getRootNode().activeElement)||super._setFocused(!1)}__addInputListeners(e){e.addEventListener("change",this.__changeEventHandler),e.addEventListener("unparsable-change",this.__changeEventHandler),e.addEventListener("value-changed",this.__valueChangedEventHandler),e.addEventListener("opened-changed",this.__openedChangedEventHandler)}__removeInputListeners(e){e.removeEventListener("change",this.__changeEventHandler),e.removeEventListener("unparsable-change",this.__changeEventHandler),e.removeEventListener("value-changed",this.__valueChangedEventHandler),e.removeEventListener("opened-changed",this.__openedChangedEventHandler)}__isDefaultPicker(e,t){let o=this[`_${t}PickerController`];return o&&e===o.defaultNode}__datePickerChanged(e,t){e&&(t&&(this.__removeInputListeners(t),t.remove()),this.__addInputListeners(e),this.__isDefaultPicker(e,"date")||(this.datePlaceholder=e.placeholder,this.initialPosition=e.initialPosition,this.showWeekNumbers=e.showWeekNumbers),e.min=this.__formatDateISO(this.__minDateTime,this.__defaultDateMinMaxValue),e.max=this.__formatDateISO(this.__maxDateTime,this.__defaultDateMinMaxValue),e.manualValidation=!0)}__timePickerChanged(e,t){e&&(t&&(this.__removeInputListeners(t),t.remove()),this.__addInputListeners(e),this.__isDefaultPicker(e,"time")||(this.timePlaceholder=e.placeholder,this.step=e.step),this.__updateTimePickerMinMax(),e.manualValidation=!0)}__updateTimePickerMinMax(){if(this.__timePicker&&this.__datePicker){let e=this.__parseDate(this.__datePicker.value),t=ak(this.__minDateTime,this.__maxDateTime,aC);this.__minDateTime&&ak(e,this.__minDateTime,aC)||t?this.__timePicker.min=this.__dateToIsoTimeString(this.__minDateTime):this.__timePicker.min=this.__defaultTimeMinValue,this.__maxDateTime&&ak(e,this.__maxDateTime,aC)||t?this.__timePicker.max=this.__dateToIsoTimeString(this.__maxDateTime):this.__timePicker.max=this.__defaultTimeMaxValue}}__i18nChanged(e,t,o){t&&this.__isDefaultPicker(t,"date")&&this.__syncI18n(t,e,sT),o&&this.__isDefaultPicker(o,"time")&&this.__syncI18n(o,e,sO)}__labelOrAccessibleNameChanged(e,t,o,n,i){let r=t||e||"";n&&(n.accessibleName=`${r} ${o.dateLabel||""}`.trim()),i&&(i.accessibleName=`${r} ${o.timeLabel||""}`.trim())}__datePlaceholderChanged(e,t){t&&(t.placeholder=e)}__timePlaceholderChanged(e,t){t&&(t.placeholder=e)}__stepChanged(e,t){t&&t.step!==e&&(t.step=e)}__initialPositionChanged(e,t){t&&(t.initialPosition=e)}__showWeekNumbersChanged(e,t){t&&(t.showWeekNumbers=e)}__invalidChanged(e,t,o){t&&(t.invalid=e),o&&(o.invalid=e)}__requiredChanged(e,t,o){t&&(t.required=e),o&&(o.required=e),this.__oldRequired&&!e&&this._requestValidation(),this.__oldRequired=e}__disabledChanged(e,t,o){t&&(t.disabled=e),o&&(o.disabled=e)}__readonlyChanged(e,t,o){t&&(t.readonly=e),o&&(o.readonly=e)}__parseDate(e){let t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!t)return;let o=new Date(Date.UTC(0,0));return o.setUTCFullYear(parseInt(t[1],10)),o.setUTCMonth(parseInt(t[2],10)-1),o.setUTCDate(parseInt(t[3],10)),o}__formatDateISO(e,t){return e?e instanceof Date?aO({year:e.getUTCFullYear(),month:e.getUTCMonth(),day:e.getUTCDate()}):"":t}__parseDateTime(e){let[t,o]=e.split("T");if(!(t&&o))return;let n=this.__parseDate(t);if(!n)return;let i=sw(o);if(i)return n.setUTCHours(parseInt(i.hours)),n.setUTCMinutes(parseInt(i.minutes||0)),n.setUTCSeconds(parseInt(i.seconds||0)),n.setUTCMilliseconds(parseInt(i.milliseconds||0)),n}__formatDateTime(e){if(!e)return"";let t=this.__formatDateISO(e,""),o=this.__dateToIsoTimeString(e);return`${t}T${o}`}__dateToIsoTimeString(e){return sv(sE({hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds(),milliseconds:e.getUTCMilliseconds()},this.step))}checkValidity(){let e=this.__pickers.some(e=>!e.checkValidity()),t=1===this.__filledPickers.length,o=this.required&&this.__pickers.some(e=>!e.value);return!e&&!o&&!t}__commitPendingValueChange(){this._requestValidation(),this.__committedValue!==this.value?this.dispatchEvent(new CustomEvent("change",{bubbles:!0})):this.__committedUnparsableValue!==this.__unparsableValue&&this.dispatchEvent(new CustomEvent("unparsable-change")),this.__committedValue=this.value,this.__committedUnparsableValue=this.__unparsableValue}get __hasPendingValueChange(){return this.__committedValue!==this.value||this.__committedUnparsableValue!==this.__unparsableValue}__dateTimeEquals(e,t){return!!ak(e,t,aC)&&e.getUTCHours()===t.getUTCHours()&&e.getUTCMinutes()===t.getUTCMinutes()&&e.getUTCSeconds()===t.getUTCSeconds()&&e.getUTCMilliseconds()===t.getUTCMilliseconds()}__handleDateTimeChange(e,t,o,n){if(!o){this[e]="",this[t]="";return}let i=this.__parseDateTime(o);if(!i){this[e]=n;return}this.__dateTimeEquals(this[t],i)||(this[t]=i)}__valueChanged(e,t){this.__handleDateTimeChange("value","__selectedDateTime",e,t),this.__keepCommittedValue||(this.__committedValue=e,this.__committedUnparsableValue=""),this.toggleAttribute("has-value",!!e),this.__updateTimePickerMinMax()}__dispatchChange(){this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__minChanged(e,t){this.__handleDateTimeChange("min","__minDateTime",e,t),this.__datePicker&&(this.__datePicker.min=this.__formatDateISO(this.__minDateTime,this.__defaultDateMinMaxValue)),this.__updateTimePickerMinMax(),this.__datePicker&&this.__timePicker&&this.value&&this._requestValidation()}__maxChanged(e,t){this.__handleDateTimeChange("max","__maxDateTime",e,t),this.__datePicker&&(this.__datePicker.max=this.__formatDateISO(this.__maxDateTime,this.__defaultDateMinMaxValue)),this.__updateTimePickerMinMax(),this.__datePicker&&this.__timePicker&&this.value&&this._requestValidation()}__selectedDateTimeChanged(e){let t=this.__formatDateTime(e);if(this.value!==t&&(this.value=t),this.__datePicker&&this.__datePicker.$&&!this.__ignoreInputValueChange){this.__ignoreInputValueChange=!0;let[e,t]=this.value.split("T");this.__datePicker.value=e||"",this.__timePicker.value=t||"",this.__ignoreInputValueChange=!1}}__valueChangedEventHandler(){this.__ignoreInputValueChange||(this.__ignoreInputValueChange=!0,this.__keepCommittedValue=!0,this.__updateTimePickerMinMax(),this.value=this.__formattedValue,this.__keepCommittedValue=!1,this.__ignoreInputValueChange=!1)}__autoOpenDisabledChanged(e,t,o){t&&(t.autoOpenDisabled=e),o&&(o.autoOpenDisabled=e)}__themeChanged(e,t,o){t&&o&&[t,o].forEach(t=>{e?t.setAttribute("theme",e):t.removeAttribute("theme")})}__pickersChanged(e,t){!e||!t||this.__isDefaultPicker(e,"date")===this.__isDefaultPicker(t,"time")&&(e.value?this.__valueChangedEventHandler():this.value&&(this.__selectedDateTimeChanged(this.__selectedDateTime),(this.min&&this.__minDateTime||this.max&&this.__maxDateTime)&&this._requestValidation()))}};class sP extends sR(iY(id(iy(i$(oO))))){static get is(){return"vaadin-date-time-picker"}static get styles(){return[aG,sS]}render(){return of`
1781
1789
  <div class="vaadin-date-time-picker-container">
1782
1790
  <div part="label" @click="${this.focus}">
1783
1791
  <slot name="label"></slot>
@@ -1799,7 +1807,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1799
1807
  </div>
1800
1808
 
1801
1809
  <slot name="tooltip"></slot>
1802
- `}}nJ(sB);let sR=class extends sB{static getLocalizedISOString(e){return e&&new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString().slice(0,16)}};sR=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-date-time-picker")],sR);let sP=[ae,tU`
1810
+ `}}nJ(sP);let sN=class extends sP{static getLocalizedISOString(e){return e&&new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString().slice(0,16)}};sN=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-date-time-picker")],sN);let sL=[ae,tU`
1803
1811
  /* Optical centering */
1804
1812
  :host::before,
1805
1813
  :host::after {
@@ -2053,7 +2061,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2053
2061
  left: -4px;
2054
2062
  cursor: nwse-resize;
2055
2063
  }
2056
- `];class sN{constructor(e){this.host=e}hostConnected(){if(!this.__initialized){this.__initialized=!0;let{host:e}=this;this.__resizeObserver=new ResizeObserver(()=>this.__updateState()),this.__resizeObserver.observe(e.$.resizerContainer),e.$.content.addEventListener("scroll",()=>this.__updateState(!0)),e.shadowRoot.addEventListener("slotchange",()=>this.__updateState(!0))}}update(){this.__updateState(!0)}__updateState(e=!1){cancelAnimationFrame(this.__updateRaf),e?this.__writeState(this.__readState()):this.__updateRaf=requestAnimationFrame(()=>this.__writeState(this.__readState()))}__readState(){let e=this.host.$.content,t="";return e.scrollTop>0&&(t+=" top"),e.scrollTop<e.scrollHeight-e.clientHeight&&(t+=" bottom"),t.trim()}__writeState(e){let{host:t}=this;e.length>0?ab(t,"overflow",e):ab(t,"overflow",null)}}let sL=e=>class extends ap(e){static get properties(){return{headerTitle:{type:String},headerRenderer:{type:Object},footerRenderer:{type:Object},keepInViewport:{type:Boolean,reflectToAttribute:!0}}}static get observers(){return["_headerFooterRendererChange(headerRenderer, footerRenderer, opened)","_headerTitleChanged(headerTitle, opened)"]}get _contentRoot(){return this.owner}get _rendererRoot(){if(!this.__savedRoot){let e=document.createElement("vaadin-dialog-content");e.style.display="contents",this.owner.appendChild(e),this.__savedRoot=e}return this.__savedRoot}ready(){super.ready(),this.__overflowController=new sN(this),this.addController(this.__overflowController),this.__resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.__adjustPosition()})}),this.__resizeObserver.observe(this.$.resizerContainer);let e=this.shadowRoot.querySelector('slot[name="header-content"]');this.__headerSlotObserver=new ik(e,({currentNodes:e})=>{ab(this,"has-header",e.length>0),this.__overflowController.update()});let t=this.shadowRoot.querySelector('slot[name="footer"]');this.__footerSlotObserver=new ik(t,({currentNodes:e})=>{ab(this,"has-footer",e.length>0),this.__overflowController.update()}),this.__handleWindowResize=this.__handleWindowResize.bind(this)}updated(e){super.updated(e),(e.has("opened")||e.has("keepInViewport"))&&(this.opened&&this.keepInViewport?window.addEventListener("resize",this.__handleWindowResize):window.removeEventListener("resize",this.__handleWindowResize))}__createContainer(e){let t=document.createElement("vaadin-dialog-content");return t.setAttribute("slot",e),t}__clearContainer(e){e.innerHTML="",delete e._$litPart$}__initContainer(e,t){return e?this.__clearContainer(e):(e=this.__createContainer(t),this.owner.appendChild(e)),e}_headerFooterRendererChange(e,t,o){let n=this.__oldHeaderRenderer!==e;this.__oldHeaderRenderer=e;let i=this.__oldFooterRenderer!==t;this.__oldFooterRenderer=t;let r=this._oldOpenedFooterHeader!==o;this._oldOpenedFooterHeader=o,n&&(e?this.headerContainer=this.__initContainer(this.headerContainer,"header-content"):this.headerContainer&&(this.headerContainer.remove(),this.headerContainer=null)),i&&(t?this.footerContainer=this.__initContainer(this.footerContainer,"footer"):this.footerContainer&&(this.footerContainer.remove(),this.footerContainer=null)),(e&&(n||r)||t&&(i||r))&&o&&this.requestContentUpdate()}_headerTitleChanged(e,t){ab(this,"has-title",!!e),t&&(e||this._oldHeaderTitle)&&this.requestContentUpdate(),this._oldHeaderTitle=e}_headerTitleRenderer(){this.headerTitle?(this.headerTitleElement||(this.headerTitleElement=document.createElement("h2"),this.headerTitleElement.setAttribute("slot","title"),this.headerTitleElement.classList.add("draggable")),this.owner.appendChild(this.headerTitleElement),this.headerTitleElement.textContent=this.headerTitle):this.headerTitleElement&&(this.headerTitleElement.remove(),this.headerTitleElement=null)}requestContentUpdate(){super.requestContentUpdate(),this.headerContainer&&this.headerRenderer&&this.headerRenderer.call(this.owner,this.headerContainer,this.owner),this.footerContainer&&this.footerRenderer&&this.footerRenderer.call(this.owner,this.footerContainer,this.owner),this._headerTitleRenderer(),this.__overflowController?.update()}getBounds(){let e=this.$.overlay.getBoundingClientRect(),t=this.getBoundingClientRect(),o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,width:e.width,height:e.height}}setBounds(e,t=!0){super.setBounds(e,t),this.__adjustPosition()}__handleWindowResize(){this.__adjustPosition()}__adjustPosition(){if(!this.opened||!this.keepInViewport)return;let e=getComputedStyle(this.$.overlay);if("absolute"!==e.position)return;let t=this.getBoundingClientRect(),o=this.getBounds(),n=parseFloat(e.width)||o.width,i=parseFloat(e.height)||o.height,r=t.right-t.left-n,a=t.bottom-t.top-i;if(o.left>r||o.top>a){let e=Math.max(0,Math.min(o.left,r)),t=Math.max(0,Math.min(o.top,a));Object.assign(this.$.overlay.style,{left:`${e}px`,top:`${t}px`})}}};class sM extends sL(il(iY(iy(i$(oO))))){static get is(){return"vaadin-dialog-overlay"}static get styles(){return sP}get _focusTrapRoot(){return this.owner}render(){return of`
2064
+ `];class sM{constructor(e){this.host=e}hostConnected(){if(!this.__initialized){this.__initialized=!0;let{host:e}=this;this.__resizeObserver=new ResizeObserver(()=>this.__updateState()),this.__resizeObserver.observe(e.$.resizerContainer),e.$.content.addEventListener("scroll",()=>this.__updateState(!0)),e.shadowRoot.addEventListener("slotchange",()=>this.__updateState(!0))}}update(){this.__updateState(!0)}__updateState(e=!1){cancelAnimationFrame(this.__updateRaf),e?this.__writeState(this.__readState()):this.__updateRaf=requestAnimationFrame(()=>this.__writeState(this.__readState()))}__readState(){let e=this.host.$.content,t="";return e.scrollTop>0&&(t+=" top"),e.scrollTop<e.scrollHeight-e.clientHeight&&(t+=" bottom"),t.trim()}__writeState(e){let{host:t}=this;e.length>0?ab(t,"overflow",e):ab(t,"overflow",null)}}let sU=e=>class extends ap(e){static get properties(){return{headerTitle:{type:String},headerRenderer:{type:Object},footerRenderer:{type:Object},keepInViewport:{type:Boolean,reflectToAttribute:!0}}}static get observers(){return["_headerFooterRendererChange(headerRenderer, footerRenderer, opened)","_headerTitleChanged(headerTitle, opened)"]}get _contentRoot(){return this.owner}get _rendererRoot(){if(!this.__savedRoot){let e=document.createElement("vaadin-dialog-content");e.style.display="contents",this.owner.appendChild(e),this.__savedRoot=e}return this.__savedRoot}ready(){super.ready(),this.__overflowController=new sM(this),this.addController(this.__overflowController),this.__resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.__adjustPosition()})}),this.__resizeObserver.observe(this.$.resizerContainer);let e=this.shadowRoot.querySelector('slot[name="header-content"]');this.__headerSlotObserver=new ik(e,({currentNodes:e})=>{ab(this,"has-header",e.length>0),this.__overflowController.update()});let t=this.shadowRoot.querySelector('slot[name="footer"]');this.__footerSlotObserver=new ik(t,({currentNodes:e})=>{ab(this,"has-footer",e.length>0),this.__overflowController.update()}),this.__handleWindowResize=this.__handleWindowResize.bind(this)}updated(e){super.updated(e),(e.has("opened")||e.has("keepInViewport"))&&(this.opened&&this.keepInViewport?window.addEventListener("resize",this.__handleWindowResize):window.removeEventListener("resize",this.__handleWindowResize))}__createContainer(e){let t=document.createElement("vaadin-dialog-content");return t.setAttribute("slot",e),t}__clearContainer(e){e.innerHTML="",delete e._$litPart$}__initContainer(e,t){return e?this.__clearContainer(e):(e=this.__createContainer(t),this.owner.appendChild(e)),e}_headerFooterRendererChange(e,t,o){let n=this.__oldHeaderRenderer!==e;this.__oldHeaderRenderer=e;let i=this.__oldFooterRenderer!==t;this.__oldFooterRenderer=t;let r=this._oldOpenedFooterHeader!==o;this._oldOpenedFooterHeader=o,n&&(e?this.headerContainer=this.__initContainer(this.headerContainer,"header-content"):this.headerContainer&&(this.headerContainer.remove(),this.headerContainer=null)),i&&(t?this.footerContainer=this.__initContainer(this.footerContainer,"footer"):this.footerContainer&&(this.footerContainer.remove(),this.footerContainer=null)),(e&&(n||r)||t&&(i||r))&&o&&this.requestContentUpdate()}_headerTitleChanged(e,t){ab(this,"has-title",!!e),t&&(e||this._oldHeaderTitle)&&this.requestContentUpdate(),this._oldHeaderTitle=e}_headerTitleRenderer(){this.headerTitle?(this.headerTitleElement||(this.headerTitleElement=document.createElement("h2"),this.headerTitleElement.setAttribute("slot","title"),this.headerTitleElement.classList.add("draggable")),this.owner.appendChild(this.headerTitleElement),this.headerTitleElement.textContent=this.headerTitle):this.headerTitleElement&&(this.headerTitleElement.remove(),this.headerTitleElement=null)}requestContentUpdate(){super.requestContentUpdate(),this.headerContainer&&this.headerRenderer&&this.headerRenderer.call(this.owner,this.headerContainer,this.owner),this.footerContainer&&this.footerRenderer&&this.footerRenderer.call(this.owner,this.footerContainer,this.owner),this._headerTitleRenderer(),this.__overflowController?.update()}getBounds(){let e=this.$.overlay.getBoundingClientRect(),t=this.getBoundingClientRect(),o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,width:e.width,height:e.height}}setBounds(e,t=!0){super.setBounds(e,t),this.__adjustPosition()}__handleWindowResize(){this.__adjustPosition()}__adjustPosition(){if(!this.opened||!this.keepInViewport)return;let e=getComputedStyle(this.$.overlay);if("absolute"!==e.position)return;let t=this.getBoundingClientRect(),o=this.getBounds(),n=parseFloat(e.width)||o.width,i=parseFloat(e.height)||o.height,r=t.right-t.left-n,a=t.bottom-t.top-i;if(o.left>r||o.top>a){let e=Math.max(0,Math.min(o.left,r)),t=Math.max(0,Math.min(o.top,a));Object.assign(this.$.overlay.style,{left:`${e}px`,top:`${t}px`})}}};class sj extends sU(il(iY(iy(i$(oO))))){static get is(){return"vaadin-dialog-overlay"}static get styles(){return sL}get _focusTrapRoot(){return this.owner}render(){return of`
2057
2065
  <div id="backdrop" part="backdrop" ?hidden="${!this.withBackdrop}"></div>
2058
2066
  <div part="overlay" id="overlay">
2059
2067
  <section id="resizerContainer" class="resizer-container">
@@ -2065,7 +2073,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2065
2073
  <footer part="footer"><slot name="footer"></slot></footer>
2066
2074
  </section>
2067
2075
  </div>
2068
- `}bringToFront(e){if(e instanceof Event){let t=e.composedPath();if(af(this).some(e=>t.includes(e)&&this._deepContains(e)&&e instanceof sM))return}super.bringToFront()}}nJ(sM);let sU=e=>class extends e{static get properties(){return{opened:{type:Boolean,reflectToAttribute:!0,value:!1,notify:!0,sync:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},noFocusTrap:{type:Boolean,value:!1},top:{type:String},left:{type:String},overlayRole:{type:String},keepInViewport:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["__positionChanged(top, left)"]}ready(){super.ready();let e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e,this.hasAttribute("role")||(this.role="dialog"),this.setAttribute("tabindex","0")}updated(e){super.updated(e),e.has("overlayRole")&&(this.role=this.overlayRole||"dialog"),e.has("modeless")&&(this.modeless?this.removeAttribute("aria-modal"):this.setAttribute("aria-modal","true"))}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){!1===e.detail.value&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(e){this.modeless&&this._overlayElement.bringToFront(e)}__positionChanged(e,t){requestAnimationFrame(()=>this.$.overlay.setBounds({top:e,left:t}))}__sizeChanged(e,t){requestAnimationFrame(()=>this.$.overlay.setBounds({width:e,height:t},!1))}};function sj(e){return e.touches?e.touches[0]:e}function s$(e){return e.clientX>=0&&e.clientX<=window.innerWidth&&e.clientY>=0&&e.clientY<=window.innerHeight}let sV=e=>class extends e{static get properties(){return{draggable:{type:Boolean,value:!1,reflectToAttribute:!0},_touchDevice:{type:Boolean,value:ar},__dragHandleClassName:{type:String}}}ready(){super.ready(),this._originalBounds={},this._originalMouseCoords={},this._startDrag=this._startDrag.bind(this),this._drag=this._drag.bind(this),this._stopDrag=this._stopDrag.bind(this),this.$.overlay.$.overlay.addEventListener("mousedown",this._startDrag),this.$.overlay.$.overlay.addEventListener("touchstart",this._startDrag)}_startDrag(e){if(("touchstart"!==e.type||!(e.touches.length>1))&&!e.defaultPrevented&&this.draggable&&(0===e.button||e.touches)){let t=this.$.overlay.$.resizerContainer,o=e.target===t,n=e.offsetX>t.clientWidth||e.offsetY>t.clientHeight,i=e.target===this.$.overlay.$.content,r=e.composedPath().some((e,t)=>{if(!e.classList)return!1;let o=e.classList.contains(this.__dragHandleClassName||"draggable"),n=e.classList.contains("draggable-leaf-only"),i=0===t;return n&&i||o&&(!n||i)});if(o&&!n||i||r){e.preventDefault(),this._originalBounds=this.$.overlay.getBounds();let t=sj(e);this._originalMouseCoords={top:t.pageY,left:t.pageX},window.addEventListener("mouseup",this._stopDrag),window.addEventListener("touchend",this._stopDrag),window.addEventListener("mousemove",this._drag),window.addEventListener("touchmove",this._drag);let{top:o,left:n,width:i,height:r}=this._originalBounds;"absolute"!==this.$.overlay.$.overlay.style.position&&(this.top=o,this.left=n),this.dispatchEvent(new CustomEvent("drag-start",{detail:{width:i,height:r,top:o,left:n}}))}}}_drag(e){let t=sj(e);if(s$(t)){let e=this._originalBounds.top+(t.pageY-this._originalMouseCoords.top),o=this._originalBounds.left+(t.pageX-this._originalMouseCoords.left);if(this.keepInViewport){let{width:t,height:n}=this._originalBounds,i=this.$.overlay.getBoundingClientRect(),r=i.right-i.left-t,a=i.bottom-i.top-n;o=Math.max(0,Math.min(o,r)),e=Math.max(0,Math.min(e,a))}this.top=e,this.left=o}}_stopDrag(){this.dispatchEvent(new CustomEvent("dragged",{detail:{top:this.top,left:this.left}})),window.removeEventListener("mouseup",this._stopDrag),window.removeEventListener("touchend",this._stopDrag),window.removeEventListener("mousemove",this._drag),window.removeEventListener("touchmove",this._drag)}},sz=e=>class extends e{static get properties(){return{renderer:{type:Object},headerTitle:{type:String},headerRenderer:{type:Object},footerRenderer:{type:Object}}}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}},sq=e=>class extends e{static get properties(){return{resizable:{type:Boolean,value:!1,reflectToAttribute:!0}}}ready(){super.ready(),this._originalBounds={},this._originalMouseCoords={},this._resizeListeners={start:{},resize:{},stop:{}},this._addResizeListeners()}_addResizeListeners(){["n","e","s","w","nw","ne","se","sw"].forEach(e=>{let t=document.createElement("div");this._resizeListeners.start[e]=t=>this._startResize(t,e),this._resizeListeners.resize[e]=t=>this._resize(t,e),this._resizeListeners.stop[e]=()=>this._stopResize(e),1===e.length&&t.classList.add("edge"),t.classList.add("resizer"),t.classList.add(e),t.addEventListener("mousedown",this._resizeListeners.start[e]),t.addEventListener("touchstart",this._resizeListeners.start[e]),this.$.overlay.$.resizerContainer.appendChild(t)})}_startResize(e,t){if(("touchstart"!==e.type||!(e.touches.length>1))&&(0===e.button||e.touches)){e.preventDefault(),this._originalBounds=this.$.overlay.getBounds();let o=sj(e);this._originalMouseCoords={top:o.pageY,left:o.pageX},window.addEventListener("mousemove",this._resizeListeners.resize[t]),window.addEventListener("touchmove",this._resizeListeners.resize[t]),window.addEventListener("mouseup",this._resizeListeners.stop[t]),window.addEventListener("touchend",this._resizeListeners.stop[t]),this.$.overlay.setBounds(this._originalBounds),this.$.overlay.setAttribute("has-bounds-set","");let{width:n,height:i,top:r,left:a}=this._originalBounds;this.dispatchEvent(new CustomEvent("resize-start",{detail:{width:n,height:i,top:r,left:a}}))}}_resize(e,t){let o=sj(e);s$(o)&&t.split("").forEach(e=>{switch(e){case"n":{let e=this._originalBounds.height-(o.pageY-this._originalMouseCoords.top),t=this._originalBounds.top+(o.pageY-this._originalMouseCoords.top);e>40&&(this.top=t,this.height=e);break}case"e":{let e=this._originalBounds.width+(o.pageX-this._originalMouseCoords.left);e>40&&(this.width=e);break}case"s":{let e=this._originalBounds.height+(o.pageY-this._originalMouseCoords.top);e>40&&(this.height=e);break}case"w":{let e=this._originalBounds.width-(o.pageX-this._originalMouseCoords.left),t=this._originalBounds.left+(o.pageX-this._originalMouseCoords.left);e>40&&(this.left=t,this.width=e)}}})}_stopResize(e){window.removeEventListener("mousemove",this._resizeListeners.resize[e]),window.removeEventListener("touchmove",this._resizeListeners.resize[e]),window.removeEventListener("mouseup",this._resizeListeners.stop[e]),window.removeEventListener("touchend",this._resizeListeners.stop[e]),this.dispatchEvent(new CustomEvent("resize",{detail:this._getResizeDimensions()}))}_getResizeDimensions(){let{width:e,height:t,top:o,left:n}=getComputedStyle(this.$.overlay.$.overlay);return{width:e,height:t,top:o,left:n}}},sH=e=>class extends e{static get properties(){return{width:{type:String},height:{type:String}}}static get observers(){return["__sizeChanged(width, height)"]}__sizeChanged(e,t){requestAnimationFrame(()=>this.$.overlay.setBounds({width:e,height:t},!1))}};class sY extends sH(sV(sq(sz(sU(iV(id(iy(oO)))))))){static get is(){return"vaadin-dialog"}static get styles(){return tU`
2076
+ `}bringToFront(e){if(e instanceof Event){let t=e.composedPath();if(af(this).some(e=>t.includes(e)&&this._deepContains(e)&&e instanceof sj))return}super.bringToFront()}}nJ(sj);let s$=e=>class extends e{static get properties(){return{opened:{type:Boolean,reflectToAttribute:!0,value:!1,notify:!0,sync:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},noFocusTrap:{type:Boolean,value:!1},top:{type:String},left:{type:String},overlayRole:{type:String},keepInViewport:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["__positionChanged(top, left)"]}ready(){super.ready();let e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e,this.hasAttribute("role")||(this.role="dialog"),this.setAttribute("tabindex","0")}updated(e){super.updated(e),e.has("overlayRole")&&(this.role=this.overlayRole||"dialog"),e.has("modeless")&&(this.modeless?this.removeAttribute("aria-modal"):this.setAttribute("aria-modal","true"))}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){!1===e.detail.value&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(e){this.modeless&&this._overlayElement.bringToFront(e)}__positionChanged(e,t){requestAnimationFrame(()=>this.$.overlay.setBounds({top:e,left:t}))}__sizeChanged(e,t){requestAnimationFrame(()=>this.$.overlay.setBounds({width:e,height:t},!1))}};function sV(e){return e.touches?e.touches[0]:e}function sz(e){return e.clientX>=0&&e.clientX<=window.innerWidth&&e.clientY>=0&&e.clientY<=window.innerHeight}let sq=e=>class extends e{static get properties(){return{draggable:{type:Boolean,value:!1,reflectToAttribute:!0},_touchDevice:{type:Boolean,value:ar},__dragHandleClassName:{type:String}}}ready(){super.ready(),this._originalBounds={},this._originalMouseCoords={},this._startDrag=this._startDrag.bind(this),this._drag=this._drag.bind(this),this._stopDrag=this._stopDrag.bind(this),this.$.overlay.$.overlay.addEventListener("mousedown",this._startDrag),this.$.overlay.$.overlay.addEventListener("touchstart",this._startDrag)}_startDrag(e){if(("touchstart"!==e.type||!(e.touches.length>1))&&!e.defaultPrevented&&this.draggable&&(0===e.button||e.touches)){let t=this.$.overlay.$.resizerContainer,o=e.target===t,n=e.offsetX>t.clientWidth||e.offsetY>t.clientHeight,i=e.target===this.$.overlay.$.content,r=e.composedPath().some((e,t)=>{if(!e.classList)return!1;let o=e.classList.contains(this.__dragHandleClassName||"draggable"),n=e.classList.contains("draggable-leaf-only"),i=0===t;return n&&i||o&&(!n||i)});if(o&&!n||i||r){e.preventDefault(),this._originalBounds=this.$.overlay.getBounds();let t=sV(e);this._originalMouseCoords={top:t.pageY,left:t.pageX},window.addEventListener("mouseup",this._stopDrag),window.addEventListener("touchend",this._stopDrag),window.addEventListener("mousemove",this._drag),window.addEventListener("touchmove",this._drag);let{top:o,left:n,width:i,height:r}=this._originalBounds;"absolute"!==this.$.overlay.$.overlay.style.position&&(this.top=o,this.left=n),this.dispatchEvent(new CustomEvent("drag-start",{detail:{width:i,height:r,top:o,left:n}}))}}}_drag(e){let t=sV(e);if(sz(t)){let e=this._originalBounds.top+(t.pageY-this._originalMouseCoords.top),o=this._originalBounds.left+(t.pageX-this._originalMouseCoords.left);if(this.keepInViewport){let{width:t,height:n}=this._originalBounds,i=this.$.overlay.getBoundingClientRect(),r=i.right-i.left-t,a=i.bottom-i.top-n;o=Math.max(0,Math.min(o,r)),e=Math.max(0,Math.min(e,a))}this.top=e,this.left=o}}_stopDrag(){this.dispatchEvent(new CustomEvent("dragged",{detail:{top:this.top,left:this.left}})),window.removeEventListener("mouseup",this._stopDrag),window.removeEventListener("touchend",this._stopDrag),window.removeEventListener("mousemove",this._drag),window.removeEventListener("touchmove",this._drag)}},sH=e=>class extends e{static get properties(){return{renderer:{type:Object},headerTitle:{type:String},headerRenderer:{type:Object},footerRenderer:{type:Object}}}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}},sY=e=>class extends e{static get properties(){return{resizable:{type:Boolean,value:!1,reflectToAttribute:!0}}}ready(){super.ready(),this._originalBounds={},this._originalMouseCoords={},this._resizeListeners={start:{},resize:{},stop:{}},this._addResizeListeners()}_addResizeListeners(){["n","e","s","w","nw","ne","se","sw"].forEach(e=>{let t=document.createElement("div");this._resizeListeners.start[e]=t=>this._startResize(t,e),this._resizeListeners.resize[e]=t=>this._resize(t,e),this._resizeListeners.stop[e]=()=>this._stopResize(e),1===e.length&&t.classList.add("edge"),t.classList.add("resizer"),t.classList.add(e),t.addEventListener("mousedown",this._resizeListeners.start[e]),t.addEventListener("touchstart",this._resizeListeners.start[e]),this.$.overlay.$.resizerContainer.appendChild(t)})}_startResize(e,t){if(("touchstart"!==e.type||!(e.touches.length>1))&&(0===e.button||e.touches)){e.preventDefault(),this._originalBounds=this.$.overlay.getBounds();let o=sV(e);this._originalMouseCoords={top:o.pageY,left:o.pageX},window.addEventListener("mousemove",this._resizeListeners.resize[t]),window.addEventListener("touchmove",this._resizeListeners.resize[t]),window.addEventListener("mouseup",this._resizeListeners.stop[t]),window.addEventListener("touchend",this._resizeListeners.stop[t]),this.$.overlay.setBounds(this._originalBounds),this.$.overlay.setAttribute("has-bounds-set","");let{width:n,height:i,top:r,left:a}=this._originalBounds;this.dispatchEvent(new CustomEvent("resize-start",{detail:{width:n,height:i,top:r,left:a}}))}}_resize(e,t){let o=sV(e);sz(o)&&t.split("").forEach(e=>{switch(e){case"n":{let e=this._originalBounds.height-(o.pageY-this._originalMouseCoords.top),t=this._originalBounds.top+(o.pageY-this._originalMouseCoords.top);e>40&&(this.top=t,this.height=e);break}case"e":{let e=this._originalBounds.width+(o.pageX-this._originalMouseCoords.left);e>40&&(this.width=e);break}case"s":{let e=this._originalBounds.height+(o.pageY-this._originalMouseCoords.top);e>40&&(this.height=e);break}case"w":{let e=this._originalBounds.width-(o.pageX-this._originalMouseCoords.left),t=this._originalBounds.left+(o.pageX-this._originalMouseCoords.left);e>40&&(this.left=t,this.width=e)}}})}_stopResize(e){window.removeEventListener("mousemove",this._resizeListeners.resize[e]),window.removeEventListener("touchmove",this._resizeListeners.resize[e]),window.removeEventListener("mouseup",this._resizeListeners.stop[e]),window.removeEventListener("touchend",this._resizeListeners.stop[e]),this.dispatchEvent(new CustomEvent("resize",{detail:this._getResizeDimensions()}))}_getResizeDimensions(){let{width:e,height:t,top:o,left:n}=getComputedStyle(this.$.overlay.$.overlay);return{width:e,height:t,top:o,left:n}}},sW=e=>class extends e{static get properties(){return{width:{type:String},height:{type:String}}}static get observers(){return["__sizeChanged(width, height)"]}__sizeChanged(e,t){requestAnimationFrame(()=>this.$.overlay.setBounds({width:e,height:t},!1))}};class sG extends sW(sq(sY(sH(s$(iV(id(iy(oO)))))))){static get is(){return"vaadin-dialog"}static get styles(){return tU`
2069
2077
  :host([opened]),
2070
2078
  :host([opening]),
2071
2079
  :host([closing]) {
@@ -2108,7 +2116,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2108
2116
  <slot name="footer" slot="footer"></slot>
2109
2117
  <slot></slot>
2110
2118
  </vaadin-dialog-overlay>
2111
- `}updated(e){super.updated(e),e.has("headerTitle")&&(this.ariaLabel=this.headerTitle)}}nJ(sY),o(4532);var sW=o(4867),sG=o.n(sW);o(3472);class sK{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function sJ(e,t,o=!0){if(null==e||null==t)return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Function||e instanceof RegExp)return e===t;if(e===t||e.valueOf()===t.valueOf())return!0;if(Array.isArray(e)&&e.length!==t.length||e instanceof Date||!(e instanceof Object)||!(t instanceof Object))return!1;if(o){if(Array.isArray(e))return e.every((e,o)=>sJ(e,t[o]));let o=Object.keys(e);return Object.keys(t).every(e=>-1!==o.indexOf(e))&&o.every(o=>sJ(e[o],t[o]))}return!1}class sX{constructor(e){e&&Object.assign(this,e)}matches(e){var t,o,n,i,r,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(o=this.types)?void 0:o.length)&&(!e.type||!this.types.includes(e.type))||(null==(n=this.realm)?void 0:n.name)&&e.realm!==this.realm.name||(null==(i=this.parents)?void 0:i.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(r=this.paths)?void 0:r.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var o;return(null!=(o=e.path)?o:[]).every((e,o)=>t[o]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>sX._evalValuePredicate(e.name,t)))&&(!this.attributes||sX._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!sX._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?sX._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var o;switch(t.predicateType){case"string":{let n;if(null==e)return!1;let i=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),r=!1!==t.caseSensitive?t.value:null==(o=t.value)?void 0:o.toLowerCase();switch(t.match){case"BEGIN":n=i.startsWith(r);break;case"END":n=i.endsWith(r);break;case"CONTAINS":n=i.includes(r);break;default:n=i===r}return t.negate?!n:n}case"boolean":return e===t.value;case"number":{let o;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":o=e>t.value;break;case"GREATER_EQUALS":o=e>=t.value;break;case"LESS_THAN":o=e<t.value;break;case"LESS_EQUALS":o=e<=t.value;break;case"BETWEEN":o=e>=t.value&&e<=t.rangeValue;break;default:o=e===t.value}return t.negate?!o:o}}return!1}static _evalPredicate(e,t){var o,n;let i=null==(o=t.name)?void 0:o.value;if(!i)return!0;let r=null==(n=e.attributes)?void 0:n[i];if(!r)return!!t.negated;let a=!t.value||sX._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var o,n,i;let r=null!=(o=t.operator)?o:"AND",a=[...(null!=(n=t.items)?n:[]).map(t=>sX._evalPredicate(e,t)),...(null!=(i=t.groups)?i:[]).map(t=>sX._evalGroup(e,t))];return!a.length||("OR"===r?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,o;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(o=e.groups)?o:[]).flatMap(e=>sX._collectNames(e))]}}sX._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var sQ=function(e,t,o,n){return new(o||(o=Promise))(function(i,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let sZ=o(4461);class s0{constructor(e,t,o){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=o,window.OpenRemoteConsole=this;let n=new URLSearchParams(window.location.search),i=n.get("consoleName"),r=n.get("consoleVersion"),a=n.get("consolePlatform"),s=n.get("consoleProviders"),l=n.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let d=s0._createConsoleRegistration(),u=window.localStorage.getItem(this._storageKey);if(u)try{let e=JSON.parse(u);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let f=d.providers;for(let e of(d.providers={},c)){let t=f&&f.hasOwnProperty(e)?f[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let h=ul.getAppName();h.length>0&&0>d.apps.indexOf(h)&&d.apps.push(h),this._registration=d,i&&(d.name=i),r&&(d.version=r),a&&(d.platform=a),l&&(this._autoEnable="TRUE"===l||"true"===l)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return sQ(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return sQ(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return sQ(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let o={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},n=yield this.sendProviderMessage(o,!0);this._registration.providers[e].hasPermission=n.hasPermission,this._registration.providers[e].success=n.success,this._registration.providers[e].enabled=n.success,this._registration.providers[e].data=n.data;let i=this._pendingProviderEnables.indexOf(e);return i>=0&&(this._pendingProviderEnables.splice(i,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),n})}disableProvider(e){return sQ(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return sQ(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let o=e.provider+e.action;if(this._pendingProviderPromises[o])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let n=new sK,i=()=>{delete this._pendingProviderPromises[o],n.reject("No response from provider")};return this._pendingProviderPromises[o]=[n,window.setTimeout(i,5e3)],this._doSendProviderMessage(e),n.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>sQ(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return sQ(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield ul.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(o){if(e&&t&&s0._isStaleRegistrationResponse(o)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw o}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return sQ(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let o={type:e,data:t};this.isMobile?this._postNativeShellMessage(o):console.warn("Failed to send generic message to console.",o)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let o=window.localStorage.getItem(t);if(null!==o)try{o=JSON.parse(o)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:o}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),o=t.provider,n=t.action,i=this._pendingProviderPromises[o+n];i&&(window.clearTimeout(i[1]),delete this._pendingProviderPromises[o+n],i[0].resolve(t));let r=this._providerMessageListeners[o+n];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:sZ.name,version:sZ.version,platform:sZ.os.toString(),apps:[],model:((sZ.manufacturer?sZ.manufacturer+" ":"")+(sZ.product?sZ.product:"")).trim()}}_initialiseProvider(e){return sQ(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function s1(e,t){return function(){return e.apply(t,arguments)}}let{toString:s2}=Object.prototype,{getPrototypeOf:s3}=Object,{iterator:s5,toStringTag:s4}=Symbol,s6=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),s8=(e,t)=>{let o=e,n=[];for(;null!=o&&o!==Object.prototype&&-1===n.indexOf(o);){if(n.push(o),s6(o,t))return!0;o=s3(o)}return!1},s9=(r=Object.create(null),e=>{let t=s2.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),s7=e=>(e=e.toLowerCase(),t=>s9(t)===e),le=e=>t=>typeof t===e,{isArray:lt}=Array,lo=le("undefined");function ln(e){return null!==e&&!lo(e)&&null!==e.constructor&&!lo(e.constructor)&&la(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let li=s7("ArrayBuffer"),lr=le("string"),la=le("function"),ls=le("number"),ll=e=>null!==e&&"object"==typeof e,lc=e=>{if(!ll(e))return!1;let t=s3(e);return(null===t||t===Object.prototype||null===s3(t))&&!s8(e,s4)&&!s8(e,s5)},ld=s7("Date"),lu=s7("File"),lf=s7("Blob"),lh=s7("FileList"),lm="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},lb=void 0!==lm.FormData?lm.FormData:void 0,lp=s7("URLSearchParams"),[lF,lg,lv,l_]=["ReadableStream","Request","Response","Headers"].map(s7);function ly(e,t,{allOwnKeys:o=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),lt(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(ln(e))return;let r=o?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(n=0;n<a;n++)i=r[n],t.call(null,e[i],i,e)}}function lw(e,t){let o;if(ln(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(o=n[i]).toLowerCase())return o;return null}let lE="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,lC=e=>!lo(e)&&e!==lE,lk=(a="u">typeof Uint8Array&&s3(Uint8Array),e=>a&&e instanceof a),lA=s7("HTMLFormElement"),{propertyIsEnumerable:lx}=Object.prototype,lD=s7("RegExp"),lS=(e,t)=>{let o=Object.getOwnPropertyDescriptors(e),n={};ly(o,(o,i)=>{let r;!1!==(r=t(o,i,e))&&(n[i]=r||o)}),Object.defineProperties(e,n)},lT=s7("AsyncFunction"),lO=(c="function"==typeof setImmediate,d=la(lE.postMessage),c?setImmediate:d?(u=`axios@${Math.random()}`,f=[],lE.addEventListener("message",({source:e,data:t})=>{e===lE&&t===u&&f.length&&f.shift()()},!1),e=>{f.push(e),lE.postMessage(u,"*")}):e=>setTimeout(e)),lI="u">typeof queueMicrotask?queueMicrotask.bind(lE):"u">typeof process&&process.nextTick||lO,lB=e=>null!=e&&la(e[s5]),lR={isArray:lt,isArrayBuffer:li,isBuffer:ln,isFormData:e=>{if(!e)return!1;if(lb&&e instanceof lb)return!0;let t=s3(e);if(!t||t===Object.prototype||!la(e.append))return!1;let o=s9(e);return"formdata"===o||"object"===o&&la(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&li(e.buffer)},isString:lr,isNumber:ls,isBoolean:e=>!0===e||!1===e,isObject:ll,isPlainObject:lc,isEmptyObject:e=>{if(!ll(e)||ln(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:lF,isRequest:lg,isResponse:lv,isHeaders:l_,isUndefined:lo,isDate:ld,isFile:lu,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:lf,isRegExp:lD,isFunction:la,isStream:e=>ll(e)&&la(e.pipe),isURLSearchParams:lp,isTypedArray:lk,isFileList:lh,forEach:ly,merge:function e(...t){let{caseless:o,skipUndefined:n}=lC(this)&&this||{},i={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=o&&"string"==typeof r&&lw(i,r)||r,s=s6(i,a)?i[a]:void 0;lc(s)&&lc(t)?i[a]=e(s,t):lc(t)?i[a]=e({},t):lt(t)?i[a]=t.slice():n&&lo(t)||(i[a]=t)};for(let e=0,o=t.length;e<o;e++){let o=t[e];if(!o||ln(o)||(ly(o,r),"object"!=typeof o||lt(o)))continue;let n=Object.getOwnPropertySymbols(o);for(let e=0;e<n.length;e++){let t=n[e];lx.call(o,t)&&r(o[t],t)}}return i},extend:(e,t,o,{allOwnKeys:n}={})=>(ly(t,(t,n)=>{o&&la(t)?Object.defineProperty(e,n,{__proto__:null,value:s1(t,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,o,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),o&&Object.assign(e.prototype,o)},toFlatObject:(e,t,o,n)=>{let i,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(i=Object.getOwnPropertyNames(e)).length;r-- >0;)a=i[r],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==o&&s3(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:s9,kindOfTest:s7,endsWith:(e,t,o)=>{e=String(e),(void 0===o||o>e.length)&&(o=e.length),o-=t.length;let n=e.indexOf(t,o);return -1!==n&&n===o},toArray:e=>{if(!e)return null;if(lt(e))return e;let t=e.length;if(!ls(t))return null;let o=Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{let o,n=(e&&e[s5]).call(e);for(;(o=n.next())&&!o.done;){let n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let o,n=[];for(;null!==(o=e.exec(t));)n.push(o);return n},isHTMLForm:lA,hasOwnProperty:s6,hasOwnProp:s6,hasOwnInPrototypeChain:s8,getSafeProp:(e,t)=>null!=e&&s8(e,t)?e[t]:void 0,reduceDescriptors:lS,freezeMethods:e=>{lS(e,(t,o)=>{if(la(e)&&["arguments","caller","callee"].includes(o))return!1;if(la(e[o])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},toObjectSet:(e,t)=>{let o={};return(lt(e)?e:String(e).split(t)).forEach(e=>{o[e]=!0}),o},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,o){return t.toUpperCase()+o}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:lw,global:lE,isContextDefined:lC,isSpecCompliantForm:function(e){return!!(e&&la(e.append)&&"FormData"===e[s4]&&e[s5])},toJSONObject:e=>{let t=new WeakSet,o=e=>{if(ll(e)){if(t.has(e))return;if(ln(e))return e;if(!("toJSON"in e)){t.add(e);let n=lt(e)?[]:{};return ly(e,(e,t)=>{let i=o(e);lo(i)||(n[t]=i)}),t.delete(e),n}}return e};return o(e)},isAsyncFn:lT,isThenable:e=>e&&(ll(e)||la(e))&&la(e.then)&&la(e.catch),setImmediate:lO,asap:lI,isIterable:lB,isSafeIterable:e=>null!=e&&s8(e,s5)&&lB(e)},lP=lR.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lN=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),lL=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function lM(e,t){return lR.isArray(e)?e.map(e=>lM(e,t)):function(e){let t=0,o=e.length;for(;t<o;){let o=e.charCodeAt(t);if(9!==o&&32!==o)break;t+=1}for(;o>t;){let t=e.charCodeAt(o-1);if(9!==t&&32!==t)break;o-=1}return 0===t&&o===e.length?e:e.slice(t,o)}(String(e).replace(t,""))}function lU(e){let t=Object.create(null);return lR.forEach(e.toJSON(),(e,o)=>{t[o]=lM(e,lL)}),t}let lj=Symbol("internals");function l$(e){return e&&String(e).trim().toLowerCase()}function lV(e){return!1===e||null==e?e:lR.isArray(e)?e.map(lV):lM(String(e),lN)}function lz(e,t,o,n,i){if(lR.isFunction(n))return n.call(this,t,o);if(i&&(t=o),lR.isString(t)){if(lR.isString(n))return -1!==t.indexOf(n);if(lR.isRegExp(n))return n.test(t)}}class lq{constructor(e){e&&this.set(e)}set(e,t,o){let n=this;function i(e,t,o){let i=l$(t);if(!i)return;let r=lR.findKey(n,i);r&&void 0!==n[r]&&!0!==o&&(void 0!==o||!1===n[r])||(n[r||t]=lV(e))}let r=(e,t)=>lR.forEach(e,(e,o)=>i(e,o,t));if(lR.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let n;if(lR.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var a;let o,n,i,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){i=e.indexOf(":"),o=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!o||s[o]&&lP[o]||("set-cookie"===o?s[o]?s[o].push(n):s[o]=[n]:s[o]=s[o]?s[o]+", "+n:n)}),s),t)}else if(lR.isObject(e)&&lR.isSafeIterable(e)){let o=Object.create(null),n,i;for(let t of e){if(!lR.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],lR.hasOwnProp(o,i)?(n=o[i],o[i]=lR.isArray(n)?[...n,t[1]]:[n,t[1]]):o[i]=t[1]}r(o,t)}else null!=e&&i(t,e,o)}return this}get(e,t){if(e=l$(e)){let o=lR.findKey(this,e);if(o){let e=this[o];if(!t)return e;if(!0===t){let t,o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)o[t[1]]=t[2];return o}if(lR.isFunction(t))return t.call(this,e,o);if(lR.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=l$(e)){let o=lR.findKey(this,e);return!!(o&&void 0!==this[o]&&(!t||lz(this,this[o],o,t)))}return!1}delete(e,t){let o=this,n=!1;function i(e){if(e=l$(e)){let i=lR.findKey(o,e);i&&(!t||lz(o,o[i],i,t))&&(delete o[i],n=!0)}}return lR.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),o=t.length,n=!1;for(;o--;){let i=t[o];(!e||lz(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,o={};return lR.forEach(this,(n,i)=>{let r=lR.findKey(o,i);if(r){t[r]=lV(n),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o):String(i).trim();a!==i&&delete t[i],t[a]=lV(n),o[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return lR.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&lR.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let o=new this(e);return t.forEach(e=>o.set(e)),o}static accessor(e){let t=(this[lj]=this[lj]={accessors:{}}).accessors,o=this.prototype;function n(e){let n=l$(e);if(!t[n]){let i;i=lR.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(o,t+i,{__proto__:null,value:function(o,n,i){return this[t].call(this,e,o,n,i)},configurable:!0})}),t[n]=!0}}return lR.isArray(e)?e.forEach(n):n(e),this}}lq.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),lR.reduceDescriptors(lq.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),lR.freezeMethods(lq);class lH extends Error{static from(e,t,o,n,i,r){let a=new lH(e.message,t||e.code,o,n,i);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),r&&Object.assign(a,r),a}constructor(e,t,o,n,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){let e,t,o,n=this.config,i=n&&lR.hasOwnProp(n,"redact")?n.redact:void 0,r=lR.isArray(i)&&i.length>0?(e=new Set(i.map(e=>String(e).toLowerCase())),t=[],(o=n=>{let i;if(null===n||"object"!=typeof n||lR.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof lq&&(n=n.toJSON()),t.push(n),lR.isArray(n))i=[],n.forEach((e,t)=>{let n=o(e);lR.isUndefined(n)||(i[t]=n)});else{if(!lR.isPlainObject(n)&&function(e){if(lR.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(lR.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,r]of(i=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":o(r);lR.isUndefined(n)||(i[t]=n)}}return t.pop(),i}})(n)):lR.toJSONObject(n);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}lH.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",lH.ERR_BAD_OPTION="ERR_BAD_OPTION",lH.ECONNABORTED="ECONNABORTED",lH.ETIMEDOUT="ETIMEDOUT",lH.ECONNREFUSED="ECONNREFUSED",lH.ERR_NETWORK="ERR_NETWORK",lH.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",lH.ERR_DEPRECATED="ERR_DEPRECATED",lH.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",lH.ERR_BAD_REQUEST="ERR_BAD_REQUEST",lH.ERR_CANCELED="ERR_CANCELED",lH.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",lH.ERR_INVALID_URL="ERR_INVALID_URL",lH.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let lY=lH;function lW(e){return lR.isPlainObject(e)||lR.isArray(e)}function lG(e){return lR.endsWith(e,"[]")?e.slice(0,-2):e}function lK(e,t,o){return e?e.concat(t).map(function(e,t){return e=lG(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}let lJ=lR.toFlatObject(lR,{},null,function(e){return/^is[A-Z]/.test(e)}),lX=function(e,t,o){if(!lR.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(o=lR.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!lR.isUndefined(t[e])})).metaTokens,i=o.visitor||h,r=o.dots,a=o.indexes,s=o.Blob||"u">typeof Blob&&Blob,l=void 0===o.maxDepth?100:o.maxDepth,c=s&&lR.isSpecCompliantForm(t),d=[];if(!lR.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(lR.isDate(e))return e.toISOString();if(lR.isBoolean(e))return e.toString();if(!c&&lR.isBlob(e))throw new lY("Blob is not supported. Use a Buffer instead.");if(lR.isArrayBuffer(e)||lR.isTypedArray(e)){if(c&&"function"==typeof s)return new s([e]);if("u">typeof Buffer)return Buffer.from(e);throw new lY("Blob is not supported. Use a Buffer instead.",lY.ERR_NOT_SUPPORT)}return e}function f(e){if(e>l)throw new lY("Object is too deeply nested ("+e+" levels). Max depth: "+l,lY.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,o,i){let s=e;if(lR.isReactNative(t)&&lR.isReactNativeBlob(e))return t.append(lK(i,o,r),u(e)),!1;if(e&&!i&&"object"==typeof e)if(lR.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=function(e){if(1/0===l)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,o){if(!lR.isObject(o))return o;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(o),f(1+t.length-1),o})}(e);else{var c;if(lR.isArray(e)&&(c=e,lR.isArray(c)&&!c.some(lW))||(lR.isFileList(e)||lR.endsWith(o,"[]"))&&(s=lR.toArray(e)))return o=lG(o),s.forEach(function(e,n){lR.isUndefined(e)||null===e||t.append(!0===a?lK([o],n,r):null===a?o:o+"[]",u(e))}),!1}return!!lW(e)||(t.append(lK(i,o,r),u(e)),!1)}let m=Object.assign(lJ,{defaultVisitor:h,convertValue:u,isVisitable:lW});if(!lR.isObject(e))throw TypeError("data must be an object");return!function e(o,n,r=0){if(!lR.isUndefined(o)){if(f(r),-1!==d.indexOf(o))throw Error("Circular reference detected in "+n.join("."));d.push(o),lR.forEach(o,function(o,a){!0===(!(lR.isUndefined(o)||null===o)&&i.call(t,o,lR.isString(a)?a.trim():a,n,m))&&e(o,n?n.concat(a):[a],r+1)}),d.pop()}}(e),t};function lQ(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function lZ(e,t){this._pairs=[],e&&lX(e,this,t)}let l0=lZ.prototype;function l1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function l2(e,t,o){let n;if(!t)return e;e=e||"";let i=lR.isFunction(o)?{serialize:o}:o,r=lR.getSafeProp(i,"encode")||l1,a=lR.getSafeProp(i,"serialize");if(n=a?a(t,i):lR.isURLSearchParams(t)?t.toString():new lZ(t,i).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}l0.append=function(e,t){this._pairs.push([e,t])},l0.toString=function(e){let t=e?t=>e.call(this,t,lQ):lQ;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let l3=class{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){lR.forEach(this.handlers,function(t){null!==t&&e(t)})}},l5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},l4="u">typeof URLSearchParams?URLSearchParams:lZ,l6="u">typeof FormData?FormData:null,l8="u">typeof Blob?Blob:null,l9="u">typeof window&&"u">typeof document,l7="object"==typeof navigator&&navigator||void 0,ce=l9&&(!l7||0>["ReactNative","NativeScript","NS"].indexOf(l7.product)),ct="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,co=l9&&window.location.href||"http://localhost",cn={...tI,isBrowser:!0,classes:{URLSearchParams:l4,FormData:l6,Blob:l8},protocols:["http","https","file","blob","url","data"]};function ci(e){if(e>100)throw new lY("FormData field is too deeply nested ("+e+" levels). Max depth: 100",lY.ERR_FORM_DATA_DEPTH_EXCEEDED)}let cr=function(e){if(lR.isFormData(e)&&lR.isFunction(e.entries)){let t={};return lR.forEachEntry(e,(e,o)=>{!function e(t,o,n,i){ci(i);let r=t[i++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=i>=t.length;return(r=!r&&lR.isArray(n)?n.length:r,s)?lR.hasOwnProp(n,r)?n[r]=lR.isArray(n[r])?n[r].concat(o):[n[r],o]:n[r]=o:(lR.hasOwnProp(n,r)&&lR.isObject(n[r])||(n[r]=[]),e(t,o,n[r],i)&&lR.isArray(n[r])&&(n[r]=function(e){let t,o,n={},i=Object.keys(e),r=i.length;for(t=0;t<r;t++)n[o=i[t]]=e[o];return n}(n[r]))),!a}(function(e){let t,o=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)ci(o.length),o.push("[]"===t[0]?"":t[1]||t[0]);return o}(e),o,t,0)}),t}return null},ca=(e,t)=>null!=e&&lR.hasOwnProp(e,t)?e[t]:void 0,cs={transitional:l5,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let o,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=lR.isObject(e);if(r&&lR.isHTMLForm(e)&&(e=new FormData(e)),lR.isFormData(e))return i?JSON.stringify(cr(e)):e;if(lR.isArrayBuffer(e)||lR.isBuffer(e)||lR.isStream(e)||lR.isFile(e)||lR.isBlob(e)||lR.isReadableStream(e))return e;if(lR.isArrayBufferView(e))return e.buffer;if(lR.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=ca(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return lX(e,new cn.classes.URLSearchParams,{visitor:function(e,t,o,n){return cn.isNode&&lR.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((o=lR.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=ca(this,"env"),i=n&&n.FormData;return lX(o?{"files[]":e}:e,i&&new i,t)}}if(r||i){t.setContentType("application/json",!1);var a=e;if(lR.isString(a))try{return(0,JSON.parse)(a),lR.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=ca(this,"transitional")||cs.transitional,o=t&&t.forcedJSONParsing,n=ca(this,"responseType"),i="json"===n;if(lR.isResponse(e)||lR.isReadableStream(e))return e;if(e&&lR.isString(e)&&(o&&!n||i)){let o=t&&t.silentJSONParsing;try{return JSON.parse(e,ca(this,"parseReviver"))}catch(e){if(!o&&i){if("SyntaxError"===e.name)throw lY.from(e,lY.ERR_BAD_RESPONSE,this,null,ca(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cn.classes.FormData,Blob:cn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function cl(e,t){let o=this||cs,n=t||o,i=lq.from(n.headers),r=n.data;return lR.forEach(e,function(e){r=e.call(o,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function cc(e){return!!(e&&e.__CANCEL__)}lR.forEach(["delete","get","head","post","put","patch","query"],e=>{cs.headers[e]={}});let cd=class extends lY{constructor(e,t,o){super(null==e?"canceled":e,lY.ERR_CANCELED,t,o),this.name="CanceledError",this.__CANCEL__=!0}};function cu(e,t,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new lY("Request failed with status code "+o.status,o.status>=400&&o.status<500?lY.ERR_BAD_REQUEST:lY.ERR_BAD_RESPONSE,o.config,o.request,o))}let cf=function(e,t){let o,n=Array(e=e||10),i=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),c=i[a];o||(o=l),n[r]=s,i[r]=l;let d=a,u=0;for(;d!==r;)u+=n[d++],d%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),l-o<t)return;let f=c&&l-c;return f?Math.round(1e3*u/f):void 0}},ch=function(e,t){let o,n,i=0,r=1e3/t,a=(t,r=Date.now())=>{i=r,o=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=r?a(e,t):(o=e,n||(n=setTimeout(()=>{n=null,a(o)},r-s)))},()=>o&&a(o)]},cm=(e,t,o=3)=>{let n=0,i=cf(50,250);return ch(o=>{if(!o||"number"!=typeof o.loaded)return;let r=o.loaded,a=o.lengthComputable?o.total:void 0,s=null!=a?Math.min(r,a):r,l=Math.max(0,s-n),c=i(l);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:o,lengthComputable:null!=a,[t?"download":"upload"]:!0})},o)},cb=(e,t)=>{let o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},cp=e=>(...t)=>lR.asap(()=>e(...t)),cF=cn.hasStandardBrowserEnv?(s=new URL(cn.origin),l=cn.navigator&&/(msie|trident)/i.test(cn.navigator.userAgent),e=>(e=new URL(e,cn.origin),s.protocol===e.protocol&&s.host===e.host&&(l||s.port===e.port))):()=>!0,cg=cn.hasStandardBrowserEnv?{write(e,t,o,n,i,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];lR.isNumber(o)&&s.push(`expires=${new Date(o).toUTCString()}`),lR.isString(n)&&s.push(`path=${n}`),lR.isString(i)&&s.push(`domain=${i}`),!0===r&&s.push("secure"),lR.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let o=0;o<t.length;o++){let n=t[o].replace(/^\s+/,""),i=n.indexOf("=");if(-1!==i&&n.slice(0,i)===e)try{return decodeURIComponent(n.slice(i+1))}catch(e){return n.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},cv=/^https?:(?!\/\/)/i,c_=/[\t\n\r]/g;function cy(e,t){if("string"==typeof e&&cv.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(c_,"")))throw new lY('Invalid URL: missing "//" after protocol',lY.ERR_INVALID_URL,t)}function cw(e,t,o,n){cy(t,n);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(i||!1===o)?(cy(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let cE=e=>e instanceof lq?{...e}:e;function cC(e,t){e=e||{},t=t||{};let o=Object.create(null);function n(e,t,o,n){return lR.isPlainObject(e)&&lR.isPlainObject(t)?lR.merge.call({caseless:n},e,t):lR.isPlainObject(t)?lR.merge({},t):lR.isArray(t)?t.slice():t}function i(e,t,o,i){return lR.isUndefined(t)?lR.isUndefined(e)?void 0:n(void 0,e,o,i):n(e,t,o,i)}function r(e,t){if(!lR.isUndefined(t))return n(void 0,t)}function a(e,t){return lR.isUndefined(t)?lR.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(o,i,r){return lR.hasOwnProp(t,r)?n(o,i):lR.hasOwnProp(e,r)?n(void 0,o):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,o)=>i(cE(e),cE(t),o,!0)};return lR.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let r=lR.hasOwnProp(l,n)?l[n]:i,a=r(lR.hasOwnProp(e,n)?e[n]:void 0,lR.hasOwnProp(t,n)?t[n]:void 0,n);lR.isUndefined(a)&&r!==s||(o[n]=a)}),lR.hasOwnProp(t,"validateStatus")&&lR.isUndefined(t.validateStatus)&&!1===function(o){let n=lR.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!lR.isUndefined(n)){if(!lR.isPlainObject(n))return;else if(lR.hasOwnProp(n,o))return n[o]}let i=lR.hasOwnProp(e,"transitional")?e.transitional:void 0;if(lR.isPlainObject(i)&&lR.hasOwnProp(i,o))return i[o]}("validateStatusUndefinedResolves")&&(lR.hasOwnProp(e,"validateStatus")?o.validateStatus=n(void 0,e.validateStatus):delete o.validateStatus),o}let ck=["content-type","content-length"],cA=function(e){let t=cC({},e),o=e=>lR.hasOwnProp(t,e)?t[e]:void 0,n=o("data"),i=o("withXSRFToken"),r=o("xsrfHeaderName"),a=o("xsrfCookieName"),s=o("headers"),l=o("auth"),c=o("baseURL"),d=o("allowAbsoluteUrls"),u=o("url");if(t.headers=s=lq.from(s),t.url=l2(cw(c,u,d,t),o("params"),o("paramsSerializer")),l){let t=lR.getSafeProp(l,"username")||"",o=lR.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(o?encodeURIComponent(o).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw lY.from(t,lY.ERR_BAD_OPTION_VALUE,e)}}if(lR.isFormData(n))if(cn.hasStandardBrowserEnv||cn.hasStandardBrowserWebWorkerEnv||lR.isReactNative(n))s.setContentType(void 0);else{var f,h;lR.isFunction(n.getHeaders)&&(f=s,h=n.getHeaders(),"content-only"!==o("formDataHeaderPolicy")?f.set(h):Object.entries(h||{}).forEach(([e,t])=>{ck.includes(e.toLowerCase())&&f.set(e,t)}))}if(cn.hasStandardBrowserEnv&&(lR.isFunction(i)&&(i=i(t)),!0===i||null==i&&cF(t.url))){let e=r&&a&&cg.read(a);e&&s.set(r,e)}return t},cx="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){var n;let i,r,a,s,l,c,d=cA(e),u=d.data,f=lq.from(d.headers).normalize(),{responseType:h,onUploadProgress:m,onDownloadProgress:b}=d;function p(){s&&s(),l&&l(),d.cancelToken&&d.cancelToken.unsubscribe(i),d.signal&&d.signal.removeEventListener("abort",i)}let F=new XMLHttpRequest;function g(){if(!F)return;let n=lq.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders());cu(function(e){t(e),p()},function(e){o(e),p()},{data:h&&"text"!==h&&"json"!==h?F.response:F.responseText,status:F.status,statusText:F.statusText,headers:n,config:e,request:F}),F=null}F.open(d.method.toUpperCase(),d.url,!0),F.timeout=d.timeout,"onloadend"in F?F.onloadend=g:F.onreadystatechange=function(){!F||4!==F.readyState||(0!==F.status||F.responseURL&&F.responseURL.startsWith("file:"))&&setTimeout(g)},F.onabort=function(){F&&(o(new lY("Request aborted",lY.ECONNABORTED,e,F)),p(),F=null)},F.onerror=function(t){let n=new lY(t&&t.message?t.message:"Network Error",lY.ERR_NETWORK,e,F);n.event=t||null,o(n),p(),F=null},F.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",n=d.transitional||l5;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),o(new lY(t,n.clarifyTimeoutError?lY.ETIMEDOUT:lY.ECONNABORTED,e,F)),p(),F=null},void 0===u&&f.setContentType(null),"setRequestHeader"in F&&lR.forEach(lU(f),function(e,t){F.setRequestHeader(t,e)}),lR.isUndefined(d.withCredentials)||(F.withCredentials=!!d.withCredentials),h&&"json"!==h&&(F.responseType=d.responseType),b&&([a,l]=cm(b,!0),F.addEventListener("progress",a)),m&&F.upload&&([r,s]=cm(m),F.upload.addEventListener("progress",r),F.upload.addEventListener("loadend",s)),(d.cancelToken||d.signal)&&(i=t=>{F&&(o(!t||t.type?new cd(null,e,F):t),F.abort(),p(),F=null)},d.cancelToken&&d.cancelToken.subscribe(i),d.signal&&(d.signal.aborted?i():d.signal.addEventListener("abort",i)));let v=(n=d.url,(c=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&c[1]||"");if(v&&!cn.protocols.includes(v)){o(new lY("Unsupported protocol "+v+":",lY.ERR_BAD_REQUEST,e)),p();return}F.send(u||null)})},cD=function*(e,t){let o,n=e.byteLength;if(!t||n<t)return void(yield e);let i=0;for(;i<n;)o=i+t,yield e.slice(i,o),i=o},cS=async function*(e,t){for await(let o of cT(e))yield*cD(o,t)},cT=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:o}=await t.read();if(e)break;yield o}}finally{await t.cancel()}},cO=(e,t,o,n)=>{let i,r=cS(e,t),a=0,s=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await r.next();if(t){s(),e.close();return}let i=n.byteLength;if(o){let e=a+=i;o(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},cI=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,cB=(e,t,o)=>t+2<o&&cI(e.charCodeAt(t+1))&&cI(e.charCodeAt(t+2)),{isFunction:cR}=lR,cP=e=>{if(!lR.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},cN=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},cL=e=>{let t,o=void 0!==lR.global&&null!==lR.global?lR.global:globalThis,{ReadableStream:n,TextEncoder:i}=o,{fetch:r,Request:a,Response:s}=e=lR.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e),l=r?cR(r):"function"==typeof fetch,c=cR(a),d=cR(s);if(!l)return!1;let u=l&&cR(n),f=l&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),h=c&&u&&cN(()=>{let e=!1,t=new a(cn.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),m=d&&u&&cN(()=>lR.isReadableStream(new s("").body)),b={stream:m&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{b[e]||(b[e]=(t,o)=>{let n=t&&t[e];if(n)return n.call(t);throw new lY(`Response type '${e}' is not supported`,lY.ERR_NOT_SUPPORT,o)})});let p=async e=>{if(null==e)return 0;if(lR.isBlob(e))return e.size;if(lR.isSpecCompliantForm(e)){let t=new a(cn.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return lR.isArrayBufferView(e)||lR.isArrayBuffer(e)?e.byteLength:(lR.isURLSearchParams(e)&&(e+=""),lR.isString(e))?(await f(e)).byteLength:void 0},F=async(e,t)=>{let o=lR.toFiniteNumber(e.getContentLength());return null==o?p(t):o};return async e=>{let t,{url:o,method:n,data:l,signal:d,cancelToken:f,timeout:g,onDownloadProgress:v,onUploadProgress:_,responseType:y,headers:w,withCredentials:E="same-origin",fetchOptions:C,maxContentLength:k,maxBodyLength:A}=cA(e),x=lR.isNumber(k)&&k>-1,D=lR.isNumber(A)&&A>-1,S=r||fetch;y=y?(y+"").toLowerCase():"text";let T=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let o=new AbortController,n=!1,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;o.abort(t instanceof lY?t:new cd(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,i(new lY(`timeout of ${t}ms exceeded`,lY.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i,{once:!0}));let{signal:s}=o;return s.unsubscribe=()=>lR.asap(a),s})([d,f&&f.toAbortSignal()],g),O=null,I=T&&T.unsubscribe&&(()=>{T.unsubscribe()}),B=null,R=()=>new lY("Request body larger than maxBodyLength limit",lY.ERR_BAD_REQUEST,e,O);try{var P;let r,d,f,g,N=(d="auth",lR.hasOwnProp(e,d)?e[d]:void 0);if(N){let e=lR.getSafeProp(N,"username")||"",t=lR.getSafeProp(N,"password")||"";r={username:e,password:t}}if(f=(P=o).indexOf("://"),g=P,-1!==f&&(g=g.slice(f+3)),g.includes("@")||g.includes(":")){let e=new URL(o,cn.origin);if(!r&&(e.username||e.password)){let t=cP(e.username),o=cP(e.password);r={username:t,password:o}}(e.username||e.password)&&(e.username="",e.password="",o=e.href)}if(r){let e;w.delete("authorization"),w.set("Authorization","Basic "+btoa((e=(r.username||"")+":"+(r.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(x&&"string"==typeof o&&o.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let o=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(o)){let e=n.length,t=n.length;for(let o=0;o<t;o++)if(37===n.charCodeAt(o)&&o+2<t){let t=n.charCodeAt(o+1),i=n.charCodeAt(o+2);cI(t)&&cI(i)&&(e-=2,o+=2)}let o=0,i=t-1,r=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));i>=0&&(61===n.charCodeAt(i)?(o++,i--):r(i)&&(o++,i-=3)),1===o&&i>=0&&(61===n.charCodeAt(i)?o++:r(i)&&o++);let a=3*Math.floor(e/4)-(o||0);return a>0?a:0}let i=0;for(let e=0,t=n.length;e<t;e++){let o=n.charCodeAt(e);if(37===o&&cB(n,e,t))i+=1,e+=2;else if(o<128)i+=1;else if(o<2048)i+=2;else if(o>=55296&&o<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}(o)>k)throw new lY("maxContentLength size of "+k+" exceeded",lY.ERR_BAD_RESPONSE,e,O);if(D&&"get"!==n&&"head"!==n){let e=await p(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>A))throw R()}let L=D&&(lR.isReadableStream(l)||lR.isStream(l)),M=(e,t,o)=>cO(e,65536,e=>{if(D&&e>A)throw B=R();t&&t(e)},o);if(h&&"get"!==n&&"head"!==n&&(_||L)){if(t=null==t?await F(w,l):t,0!==t||L){let e,n=new a(o,{method:"POST",body:l,duplex:"half"});if(lR.isFormData(l)&&(e=n.headers.get("content-type"))&&w.setContentType(e),n.body){let[e,o]=_&&cb(t,cm(cp(_)))||[];l=M(n.body,e,o)}}}else if(L&&!c&&u&&"get"!==n&&"head"!==n)l=M(l);else if(L&&c&&!h&&"get"!==n&&"head"!==n)throw new lY("Stream request bodies are not supported by the current fetch implementation",lY.ERR_NOT_SUPPORT,e,O);lR.isString(E)||(E=E?"include":"omit");let U=c&&"credentials"in a.prototype;if(lR.isFormData(l)){let e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.18.1",!1);let j={...C,signal:T,method:n.toUpperCase(),headers:lU(w.normalize()),body:l,duplex:"half",credentials:U?E:void 0};O=c&&new a(o,j);let $=await (c?S(O,C):S(o,j)),V=lq.from($.headers);if(x){let t=lR.toFiniteNumber(V.getContentLength());if(null!=t&&t>k)throw new lY("maxContentLength size of "+k+" exceeded",lY.ERR_BAD_RESPONSE,e,O)}let z=m&&("stream"===y||"response"===y);if(m&&$.body&&(v||x||z&&I)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let o=lR.toFiniteNumber(V.getContentLength()),[n,i]=v&&cb(o,cm(cp(v),!0))||[];$=new s(cO($.body,65536,t=>{if(x&&t>k)throw new lY("maxContentLength size of "+k+" exceeded",lY.ERR_BAD_RESPONSE,e,O);n&&n(t)},()=>{i&&i(),I&&I()}),t)}y=y||"text";let q=await b[lR.findKey(b,y)||"text"]($,e);if(x&&!m&&!z){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof i?new i().encode(q).byteLength:q.length)),"number"==typeof t&&t>k)throw new lY("maxContentLength size of "+k+" exceeded",lY.ERR_BAD_RESPONSE,e,O)}return!z&&I&&I(),await new Promise((t,o)=>{cu(t,o,{data:q,headers:lq.from($.headers),status:$.status,statusText:$.statusText,config:e,request:O})})}catch(t){if(I&&I(),T&&T.aborted&&T.reason instanceof lY){let o=T.reason;throw o.config=e,O&&(o.request=O),t!==o&&Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o}if(B)throw O&&!B.request&&(B.request=O),B;if(t instanceof lY)throw O&&!t.request&&(t.request=O),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let o=new lY("Network Error",lY.ERR_NETWORK,e,O,t&&t.response);throw Object.defineProperty(o,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),o}throw lY.from(t,t&&t.code,e,O,t&&t.response)}}},cM=new Map,cU=e=>{let t=e&&e.env||{},{fetch:o,Request:n,Response:i}=t,r=[n,i,o],a=r.length,s,l,c=cM;for(;a--;)s=r[a],void 0===(l=c.get(s))&&c.set(s,l=a?new Map:cL(t)),c=l;return l};cU();let cj={http:null,xhr:cx,fetch:{get:cU}};lR.forEach(cj,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let c$=e=>`- ${e}`,cV=e=>lR.isFunction(e)||null===e||!1===e,cz=function(e,t){let o,n,{length:i}=e=lR.isArray(e)?e:[e],r={};for(let a=0;a<i;a++){let i;if(n=o=e[a],!cV(o)&&void 0===(n=cj[(i=String(o)).toLowerCase()]))throw new lY(`Unknown adapter '${i}'`);if(n&&(lR.isFunction(n)||(n=n.get(t))))break;r[i||"#"+a]=n}if(!n){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new lY("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(c$).join("\n"):" "+c$(e[0]):"as no adapter specified"),lY.ERR_NOT_SUPPORT)}return n};function cq(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cd(null,e)}function cH(e){return cq(e),e.headers=lq.from(e.headers),e.data=cl.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cz(e.adapter||cs.adapter,e)(e).then(function(t){cq(e),e.response=t;try{t.data=cl.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=lq.from(t.headers),t},function(t){if(!cc(t)&&(cq(e),t&&t.response)){e.response=t.response;try{t.response.data=cl.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=lq.from(t.response.headers)}return Promise.reject(t)})}let cY={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cY[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});let cW={};cY.transitional=function(e,t,o){function n(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,i,r)=>{if(!1===e)throw new lY(n(i," has been removed"+(t?" in "+t:"")),lY.ERR_DEPRECATED);return t&&!cW[i]&&(cW[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,i,r)}},cY.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};let cG=function(e,t,o){if("object"!=typeof e||null===e)throw new lY("options must be an object",lY.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let r=n[i],a=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(a){let t=e[r],o=void 0===t||a(t,r,e);if(!0!==o)throw new lY("option "+r+" must be "+o,lY.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new lY("Unknown option "+r,lY.ERR_BAD_OPTION)}};class cK{constructor(e){this.defaults=e||{},this.interceptors={request:new l3,response:new l3}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let o=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),i=-1===n?"":o.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}}throw e}}_request(e,t){let o,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:r,headers:a}=t=cC(this.defaults,t);void 0!==i&&cG(i,{silentJSONParsing:cY.transitional(cY.boolean),forcedJSONParsing:cY.transitional(cY.boolean),clarifyTimeoutError:cY.transitional(cY.boolean),legacyInterceptorReqResOrdering:cY.transitional(cY.boolean),advertiseZstdAcceptEncoding:cY.transitional(cY.boolean),validateStatusUndefinedResolves:cY.transitional(cY.boolean)},!1),null!=r&&(lR.isFunction(r)?t.paramsSerializer={serialize:r}:cG(r,{encode:cY.function,serialize:cY.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),cG(t,{baseUrl:cY.spelling("baseURL"),withXsrfToken:cY.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&lR.merge(a.common,a[t.method]);a&&lR.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=lq.concat(s,a);let l=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let o=t.transitional||l5;o&&o.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let u=0;if(!c){let e=[cH.bind(this),void 0];for(e.unshift(...l),e.push(...d),n=e.length,o=Promise.resolve(t);u<n;)o=o.then(e[u++],e[u++]);return o}n=l.length;let f=t;for(;u<n;){let e=l[u++],t=l[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{o=cH.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,n=d.length;u<n;)o=o.then(d[u++],d[u++]);return o}getUri(e){return l2(cw((e=cC(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}lR.forEach(["delete","get","head","options"],function(e){cK.prototype[e]=function(t,o){return this.request(cC(o||{},{method:e,url:t,data:o&&lR.hasOwnProp(o,"data")?o.data:void 0}))}}),lR.forEach(["post","put","patch","query"],function(e){function t(t){return function(o,n,i){return this.request(cC(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:o,data:n}))}}cK.prototype[e]=t(),"query"!==e&&(cK.prototype[e+"Form"]=t(!0))});let cJ=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const o=this;this.promise.then(e=>{if(!o._listeners)return;let t=o._listeners.length;for(;t-- >0;)o._listeners[t](e);o._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{o.subscribe(e),t=e}).then(e);return n.cancel=function(){o.unsubscribe(t)},n},e(function(e,n,i){o.reason||(o.reason=new cd(e,n,i),t(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},cX={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cX).forEach(([e,t])=>{cX[t]=e});let cQ=function e(t){let o=new cK(t),n=s1(cK.prototype.request,o);return lR.extend(n,cK.prototype,o,{allOwnKeys:!0}),lR.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(cC(t,o))},n}(cs);cQ.Axios=cK,cQ.CanceledError=cd,cQ.CancelToken=cJ,cQ.isCancel=cc,cQ.VERSION="1.18.1",cQ.toFormData=lX,cQ.AxiosError=lY,cQ.Cancel=cQ.CanceledError,cQ.all=function(e){return Promise.all(e)},cQ.spread=function(e){return function(t){return e.apply(null,t)}},cQ.isAxiosError=function(e){return lR.isObject(e)&&!0===e.isAxiosError},cQ.mergeConfig=cC,cQ.AxiosHeaders=lq,cQ.formToJSON=e=>cr(lR.isHTMLForm(e)?new FormData(e):e),cQ.getAdapter=cz,cQ.HttpStatusCode=cX,cQ.default=cQ;class cZ{constructor(e){this.httpClient=e}createAlarm(e,t,o){return this.httpClient.request({method:"POST",url:df`alarm`,queryParams:t,data:e,options:o})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:df`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:df`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:df`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:df`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:df`alarm/${e}`,options:t})}updateAlarm(e,t,o){return this.httpClient.request({method:"PUT",url:df`alarm/${e}`,data:t,options:o})}getAssetLinks(e,t,o){return this.httpClient.request({method:"GET",url:df`alarm/${e}/assets`,queryParams:t,options:o})}}class c0{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:df`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:df`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:df`apps/info`,options:e})}}class c1{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:df`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:df`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:df`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:df`dashboard/query`,data:e,options:t})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:df`dashboard/${e}/${t}`,options:o})}get(e,t,o){return this.httpClient.request({method:"GET",url:df`dashboard/${e}/${t}`,options:o})}}class c2{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:df`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:df`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:df`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:df`syslog/event`,queryParams:e,options:t})}}class c3{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:df`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:df`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:df`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:df`gateway/connection/${e}`,options:t})}setConnection(e,t,o){return this.httpClient.request({method:"PUT",url:df`gateway/connection/${e}`,data:t,options:o})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:df`gateway/status/${e}`,options:t})}}class c5{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:df`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:df`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:df`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:df`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:df`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:df`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:df`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:df`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,o){return this.httpClient.request({method:"GET",url:df`user/${e}/disconnect/${t}`,options:o})}requestPasswordReset(e,t,o){return this.httpClient.request({method:"PUT",url:df`user/${e}/request-password-reset/${t}`,options:o})}updatePassword(e,t,o,n){return this.httpClient.request({method:"PUT",url:df`user/${e}/reset-password/${t}`,data:o,options:n})}resetSecret(e,t,o){return this.httpClient.request({method:"GET",url:df`user/${e}/reset-secret/${t}`,options:o})}updateRoles(e,t,o){return this.httpClient.request({method:"PUT",url:df`user/${e}/roles`,data:t,options:o})}getUserRealmRoles(e,t,o){return this.httpClient.request({method:"GET",url:df`user/${e}/userRealmRoles/${t}`,options:o})}updateUserRealmRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:df`user/${e}/userRealmRoles/${t}`,data:o,options:n})}getUserClientRoles(e,t,o,n){return this.httpClient.request({method:"GET",url:df`user/${e}/userRoles/${t}/${o}`,options:n})}updateUserClientRoles(e,t,o,n,i){return this.httpClient.request({method:"PUT",url:df`user/${e}/userRoles/${t}/${o}`,data:n,options:i})}getUserSessions(e,t,o){return this.httpClient.request({method:"GET",url:df`user/${e}/userSessions/${t}`,options:o})}create(e,t,o){return this.httpClient.request({method:"POST",url:df`user/${e}/users`,data:t,options:o})}update(e,t,o){return this.httpClient.request({method:"PUT",url:df`user/${e}/users`,data:t,options:o})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:df`user/${e}/users/${t}`,options:o})}getClientRoles(e,t,o){return this.httpClient.request({method:"GET",url:df`user/${e}/${t}/roles`,options:o})}updateClientRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:df`user/${e}/${t}/roles`,data:o,options:n})}get(e,t,o){return this.httpClient.request({method:"GET",url:df`user/${e}/${t}`,options:o})}}class c4{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:df`agent/assetDiscovery/${e}`,queryParams:t,options:o})}doProtocolAssetImport(e,t,o,n){return this.httpClient.request({method:"POST",url:df`agent/assetImport/${e}`,queryParams:o,data:t,options:n})}doProtocolInstanceDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:df`agent/instanceDiscovery/${e}`,queryParams:t,options:o})}}class c6{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:df`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:df`info`,options:e})}}class c8{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:df`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:df`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:df`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:df`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:df`realm/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:df`realm/${e}`,data:t,options:o})}}class c9{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:df`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:df`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:df`flow/${e}`,options:t})}}class c7{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:df`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:df`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:df`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,o){return this.httpClient.request({method:"GET",url:df`rules/asset/for/${e}`,queryParams:t,options:o})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:df`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:df`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:df`rules/asset/${e}`,data:t,options:o})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:df`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:df`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:df`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:df`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:df`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,o){return this.httpClient.request({method:"GET",url:df`rules/realm/for/${e}`,queryParams:t,options:o})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:df`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:df`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:df`rules/realm/${e}`,data:t,options:o})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:df`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:df`rules/${e}`,options:t})}updateGlobalRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:df`rules/${e}`,data:t,options:o})}}class de{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:df`console/register`,data:e,options:t})}}class dt{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:df`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:df`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:df`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,o){return this.httpClient.request({method:"PUT",url:df`provisioning/${e}`,data:t,options:o})}}class dn{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:df`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:df`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:df`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:df`map/getCustomMapInfo`,options:e})}getTile(e,t,o,n){return this.httpClient.request({method:"GET",url:df`map/tile/${e}/${t}/${o}`,options:n})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:df`map/upload`,queryParams:e,options:t})}}class di{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:df`asset/predicted/${e}/${t}`,data:o,options:n})}writePredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"PUT",url:df`asset/predicted/${e}/${t}`,data:o,options:n})}}class dr{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:df`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:df`configuration/manager`,data:e,options:t})}fileUpload(e,t,o){return this.httpClient.request({method:"POST",url:df`configuration/manager/file`,queryParams:t,data:e,options:o})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:df`configuration/manager/image/${e}`,options:t})}}class da{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:df`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:df`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:df`asset/datapoint/${e}/${t}`,data:o,options:n})}}class ds{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:df`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:df`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:df`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:df`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:df`notification/${e}`,options:t})}notificationAcknowledged(e,t,o,n){return this.httpClient.request({method:"PUT",url:df`notification/${e}/acknowledged`,queryParams:o,data:t,options:n})}notificationDelivered(e,t,o){return this.httpClient.request({method:"PUT",url:df`notification/${e}/delivered`,queryParams:t,options:o})}}class dl{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:df`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:df`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:df`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:df`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:df`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:df`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:df`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:df`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:df`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:df`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:df`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:df`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:df`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,o){return this.httpClient.request({method:"DELETE",url:df`asset/user/link/${e}/${t}`,options:o})}deleteUserAssetLink(e,t,o,n){return this.httpClient.request({method:"DELETE",url:df`asset/user/link/${e}/${t}/${o}`,options:n})}get(e,t){return this.httpClient.request({method:"GET",url:df`asset/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:df`asset/${e}`,data:t,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,o,n){return this.httpClient.request({method:"PUT",url:df`asset/${e}/attribute/${t}`,data:o,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,o,n,i){return this.httpClient.request({method:"PUT",url:df`asset/${e}/attribute/${t}/${o}`,data:n,options:i})}updateParent(e,t,o){return this.httpClient.request({method:"PUT",url:df`asset/${e}/child`,queryParams:t,options:o})}}class dc{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:df`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:df`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:df`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:df`service/global`,data:e,options:t})}deregisterService(e,t,o){return this.httpClient.request({method:"DELETE",url:df`service/${e}/${t}`,options:o})}getService(e,t,o){return this.httpClient.request({method:"GET",url:df`service/${e}/${t}`,options:o})}heartbeat(e,t,o){return this.httpClient.request({method:"PUT",url:df`service/${e}/${t}`,options:o})}}class dd{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:df`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:df`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:df`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,o){return this.httpClient.request({method:"GET",url:df`gateway/tunnel/${e}/${t}`,options:o})}getActiveTunnelInfo(e,t,o,n,i){return this.httpClient.request({method:"GET",url:df`gateway/tunnel/${e}/${t}/${o}/${n}`,options:i})}}class du{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:df`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,o){return this.httpClient.request({method:"GET",url:df`model/assetInfo/${e}`,queryParams:t,options:o})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:df`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:df`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:df`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:df`model/valueDescriptors`,queryParams:e,options:t})}}function df(e,...t){let o="";for(let n=0;n<t.length;n++)o+=e[n],o+=encodeURIComponent(t[n]);return o+e[e.length-1]}class dh{constructor(e,t=cQ.create()){this._alarmResource=new db(e,t),this._appResource=new dp(e,t),this._dashboardResource=new dF(e,t),this._syslogResource=new dg(e,t),this._gatewayClientResource=new dv(e,t),this._userResource=new d_(e,t),this._agentResource=new dy(e,t),this._statusResource=new dw(e,t),this._realmResource=new dE(e,t),this._flowResource=new dC(e,t),this._rulesResource=new dk(e,t),this._consoleResource=new dA(e,t),this._provisioningResource=new dx(e,t),this._mapResource=new dD(e,t),this._assetPredictedDatapointResource=new dS(e,t),this._configurationResource=new dT(e,t),this._assetDatapointResource=new dO(e,t),this._notificationResource=new dI(e,t),this._assetResource=new dB(e,t),this._externalServiceResource=new dR(e,t),this._gatewayServiceResource=new dP(e,t),this._assetModelResource=new dN(e,t),this._assetResource=new dB(e,t)}get AlarmResource(){return this._alarmResource}get AppResource(){return this._appResource}get DashboardResource(){return this._dashboardResource}get SyslogResource(){return this._syslogResource}get GatewayClientResource(){return this._gatewayClientResource}get UserResource(){return this._userResource}get AgentResource(){return this._agentResource}get StatusResource(){return this._statusResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get RulesResource(){return this._rulesResource}get ConsoleResource(){return this._consoleResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get ExternalServiceResource(){return this._externalServiceResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}}class dm{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}(t,e.options);let o=e.copyFn;return this.axios.request(t).then(e=>(o&&e.data&&(e.originalData=e.data,e.data=o(e.data)),e))}}class db extends cZ{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dp extends c0{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dF extends c1{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dg extends c2{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dv extends c3{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class d_ extends c5{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dy extends c4{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dw extends c6{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dE extends c8{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dC extends c9{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dk extends c7{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dA extends de{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dx extends dt{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dD extends dn{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dS extends di{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dT extends dr{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dO extends da{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dI extends ds{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dB extends dl{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dR extends dc{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dP extends dd{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}class dN extends du{constructor(e,t=cQ.create()){t.defaults.baseURL=e,super(new dm(t))}}var dL=o(8183),dM=o.n(dL);cQ.isAxiosError;let dU=new class{get api(){return this._client}constructor(){this._axiosInstance=cQ.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>dM().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new dh(e,this._axiosInstance)}};var dj=function(e,t,o,n){return new(o||(o=Promise))(function(i,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};(ey=tA||(tA={})).DISCONNECTED="DISCONNECTED",ey.CONNECTED="CONNECTED",ey.CONNECTING="CONNECTING";let d$="SUBSCRIBED:",dV="UNAUTHORIZED:",dz="TRIGGERED:",dq="EVENT:";class dH{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=dY.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tA.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let o=e.indexOf(t);o>=0&&e.splice(o,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tA.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tA.CONNECTING),this._connectingDeferred=new sK,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=dY.MIN_RECONNECT_DELAY,this._onStatusChanged(tA.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tA.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let o={eventSubscription:e,callback:t,deferred:new sK};return null!=this._pendingSubscription||this._status!==tA.CONNECTED?(this._queuedSubscriptions.push(o),o.deferred.promise):(this._pendingSubscription=o,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return dj(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tA.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tA.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,o){return dj(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,i="AssetEvent"+dH._subscriptionCounter++;if(!this._assetEventPromise){let e;ul.authenticated||(e={filterType:"asset",realm:ul.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(i,e=>{let t=e.asset.id;n?n.find(e=>t===e)&&o(e):e.asset.realm===ul.displayRealm&&o(e)}),this._assetEventPromise.then(()=>{try{if(n&&t){let e={messageID:"read-assets:"+n.join(",")+":"+i,eventType:"read-assets",assetQuery:{ids:n}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(i)&&e.assets.forEach(e=>{o({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),i&&this.unsubscribe(i),t}return i})})}subscribeAttributeEvents(e,t,o){return dj(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0],i=n?e.map(e=>e.id):e,r=n?e:void 0,a="AttributeEvent"+dH._subscriptionCounter++;if(!this._attributeEventPromise){let e;ul.authenticated||(e={filterType:"asset",realm:ul.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let r=t.ref;n?e.forEach(e=>{r.id===e.id&&r.name===e.name&&o(t)}):i?i.find(e=>r.id===e)&&o(t):t.realm===ul.displayRealm&&o(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&i){let e={messageID:"read-assets:"+i.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,o])=>{(!r||r.find(o=>o.id===e.id&&o.name===t))&&s({eventType:"attribute",timestamp:o.timestamp,value:o.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tA.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let o=e.deferred;e.deferred=null,o&&o.resolve(t)},t=>{let o=e.deferred;e.deferred=null,o&&o.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let o=this._subscriptionMap.get(e);o&&o.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tA.CONNECTED&&this._onStatusChanged(tA.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tA.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<dY.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(dY.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}dH.MIN_RECONNECT_DELAY=0,dH.MAX_RECONNECT_DELAY=3e4,dH._subscriptionCounter=0;class dY extends dH{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+ul.config.realm;return this._connectDeferred=new sK,(ul.authenticated?ul.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(d$)){let e=JSON.parse(t.substring(d$.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&o.resolve(e.subscriptionId)}else if(t.startsWith(dV)){let e=JSON.parse(t.substring(dV.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),o.reject("Unauthorized"))}else if(t.startsWith(dz)){let e=JSON.parse(t.substring(dz.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(dq)){let e=JSON.parse(t.substring(dq.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new sK,e.subscriptionId||(e.subscriptionId=dY._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=dq+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new sK;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(dq+JSON.stringify(e)),t.promise}}dY._subscriptionCounter=1;let dW=["__proto__","constructor","prototype"];function dG(e){return!("string"!=typeof e||0===e.length||e.length>128||dW.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function dK(e){return!(!dG(e)||e.indexOf("/")>-1)}let dJ={lng:dK,ns:function(e){return dG(e)}};function dX(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function dQ(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let dZ=/\{\{(.+?)\}\}/g;function d0(e,t){let o=!1,n=e.replace(dZ,(e,n)=>{let i=n.trim();if(dW.indexOf(i)>-1)return e;let r=t[i];if(null==r)return e;let a=dJ[i]||dK,s=String(r).split("+");for(let t of s)if(!a(t))return o=!0,e;return s.join("+")});return o?null:n}let d1="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?i=fetch:d1&&"function"==typeof d1.fetch&&(i=d1.fetch);let d2=dQ()&&d1?d1.XMLHttpRequest:void 0,d3="function"==typeof ActiveXObject&&d1?d1.ActiveXObject:void 0,d5=["__proto__","constructor","prototype"],d4=(e,t)=>{if(t&&"object"==typeof t){let o="";for(let e of Object.keys(t))d5.indexOf(e)>-1||(o+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},d6=(e,t,o,n)=>{let r=e=>{if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(t=>{o(null,{status:e.status,data:t})}).catch(o)};if(n){let i=n(e,t);if(i instanceof Promise)return void i.then(r).catch(o)}"function"==typeof fetch?fetch(e,t).then(r).catch(o):i(e,t).then(r).catch(o)},d8=(e,t,o,n)=>{if("function"==typeof o&&(n=o,o=void 0),n=n||(()=>{}),i&&0!==t.indexOf("file:")){var r=t,a=o,s=n;e.queryStringParams&&(r=d4(r,e.queryStringParams));let i={..."function"==typeof e.customHeaders?e.customHeaders():e.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(i["Content-Type"]="application/json");let l="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,c={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:i,...e._omitFetchOptions?{}:l},d="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{d6(r,c,s,d)}catch(t){if(!l||0===Object.keys(l).length||!t.message||0>t.message.indexOf("not implemented"))return s(t);try{Object.keys(l).forEach(e=>{delete c[e]}),d6(r,c,s,d),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(dQ()||"function"==typeof ActiveXObject){var l=t,c=o,d=n;c&&"object"==typeof c&&(c=d4("",c).slice(1)),e.queryStringParams&&(l=d4(l,e.queryStringParams));try{let t=d2?new d2:new d3("MSXML2.XMLHTTP.3.0");t.open(c?"POST":"GET",l,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,c&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let o=e.customHeaders;if(o="function"==typeof o?o():o)for(let e of Object.keys(o))d5.indexOf(e)>-1||t.setRequestHeader(e,o[e]);t.onreadystatechange=()=>{t.readyState>3&&d(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(c)}catch(e){console&&console.log(e)}return}n(Error("No fetch and no xhr implementation found!"))};var d9=class{constructor(e,t={},o={}){this.services=e,this.options=t,this.allOptions=o,this.type="backend",this.init(e,t,o)}init(e,t={},o={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,o)=>({[t]:o||""}),parseLoadPayload:(e,t)=>void 0,request:d8,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=o,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,o){this._readAny(e,e,t,t,o)}read(e,t,o){this._readAny([e],e,[t],t,o)}_readAny(e,t,o,n,i){var r,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,o)),(s=(a=r=s)&&"function"==typeof a.then?r:Promise.resolve(r)).then(r=>{if(!r)return i(null,{});let a=d0(r,{lng:e.join("+"),ns:o.join("+")});if(null==a)return i(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(dX).join(", ")+"] namespaces=["+o.map(dX).join(", ")+"]"),!1);this.loadUrl(a,i,t,n)})}loadUrl(e,t,o,n){let i=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof n?[n]:n),r=dX(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,i,(e,i)=>{let a,s;if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+r+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+r+"; status code: "+i.status,!1);if(!i&&e&&e.message){let o=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>o.indexOf(e)>-1))return t("failed loading "+r+": "+dX(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof i.data?this.options.parse(i.data,o,n):i.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,o,n,i){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=this.options.parsePayload(t,o,n),a=0,s=[],l=[];e.forEach(o=>{let n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(o,t));let c=d0(n,{lng:o,ns:t});if(null==c){a+=1,i&&a===e.length&&i(s,l);return}this.options.request(this.options,c,r,(t,o)=>{a+=1,s.push(t),l.push(o),a===e.length&&"function"==typeof i&&i(s,l)})})}reload(){let{backendConnector:e,languageUtils:t,logger:o}=this.services,n=e.language;if(n&&"cimode"===n.toLowerCase())return;let i=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>i.indexOf(e)&&i.push(e)})};r(n),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),i.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(i,r)=>{i&&o.warn(`loading namespace ${n} for language ${t} failed`,i),!i&&r&&o.log(`loaded namespace ${n} for language ${t}`,r),e.loaded(`${t}|${n}`,i,r)})})})}};d9.type="backend";var d7=o(4954);class ue extends Error{}function ut(e,t){let o;if("string"!=typeof e)throw new ue("Invalid token specified: must be a string");t||(t={});let n=+(!0!==t.header),i=e.split(".")[n];if("string"!=typeof i)throw new ue(`Invalid token specified: missing part #${n+1}`);try{o=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var o;return o=t,decodeURIComponent(atob(o).replace(/(.)/g,(e,t)=>{let o=t.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}catch(e){return atob(t)}}(i)}catch(e){throw new ue(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new ue(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}if(ue.prototype.name="InvalidTokenError","u"<typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function uo(e){if(!(this instanceof uo))throw Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var t,o,n=this,i=[],r={enable:!0,callbackList:[],interval:5},a=document.getElementsByTagName("script"),s=0;s<a.length;s++)(-1!==a[s].src.indexOf("keycloak.js")||-1!==a[s].src.indexOf("keycloak.min.js"))&&-1!==a[s].src.indexOf("version=")&&(n.iframeVersion=a[s].src.substring(a[s].src.indexOf("version=")+8).split("&")[0]);var l=!0,c=x(console.info),d=x(console.warn);function u(e,t){for(var o=function(e){var t=null,o=window.crypto||window.msCrypto;if(o&&o.getRandomValues&&window.Uint8Array)return t=new Uint8Array(e),o.getRandomValues(t),t;t=Array(e);for(var n=0;n<t.length;n++)t[n]=Math.floor(256*Math.random());return t}(e),n=Array(e),i=0;i<e;i++)n[i]=t.charCodeAt(o[i]%t.length);return String.fromCharCode.apply(null,n)}function f(){return void 0===n.authServerUrl?void 0:"/"==n.authServerUrl.charAt(n.authServerUrl.length-1)?n.authServerUrl+"realms/"+encodeURIComponent(n.realm):n.authServerUrl+"/realms/"+encodeURIComponent(n.realm)}function h(e,t){var o=e.code,i=e.error,r=e.prompt,a=new Date().getTime();if(e.kc_action_status&&n.onActionUpdate&&n.onActionUpdate(e.kc_action_status),i){if("none"!=r)if(e.error_description&&"authentication_expired"===e.error_description)n.login(e.loginOptions);else{var s={error:i,error_description:e.error_description};n.onAuthError&&n.onAuthError(s),t&&t.setError(s)}else t&&t.setSuccess();return}if("standard"!=n.flow&&(e.access_token||e.id_token)&&h(e.access_token,null,e.id_token,!0),"implicit"!=n.flow&&o){var d="code="+o+"&grant_type=authorization_code",u=n.endpoints.token(),f=new XMLHttpRequest;f.open("POST",u,!0),f.setRequestHeader("Content-type","application/x-www-form-urlencoded"),d+="&client_id="+encodeURIComponent(n.clientId)+"&redirect_uri="+e.redirectUri,e.pkceCodeVerifier&&(d+="&code_verifier="+e.pkceCodeVerifier),f.withCredentials=!0,f.onreadystatechange=function(){if(4==f.readyState)if(200==f.status){var e=JSON.parse(f.responseText);h(e.access_token,e.refresh_token,e.id_token,"standard"===n.flow),y()}else n.onAuthError&&n.onAuthError(),t&&t.setError()},f.send(d)}function h(o,i,r,s){b(o,i,r,a=(a+new Date().getTime())/2),l&&n.idTokenParsed&&n.idTokenParsed.nonce!=e.storedNonce?(c("[KEYCLOAK] Invalid nonce, clearing token"),n.clearToken(),t&&t.setError()):s&&(n.onAuthSuccess&&n.onAuthSuccess(),t&&t.setSuccess())}}function m(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function b(e,t,o,i){if(n.tokenTimeoutHandle&&(clearTimeout(n.tokenTimeoutHandle),n.tokenTimeoutHandle=null),t?(n.refreshToken=t,n.refreshTokenParsed=ut(t)):(delete n.refreshToken,delete n.refreshTokenParsed),o?(n.idToken=o,n.idTokenParsed=ut(o)):(delete n.idToken,delete n.idTokenParsed),e){if(n.token=e,n.tokenParsed=ut(e),n.sessionId=n.tokenParsed.sid,n.authenticated=!0,n.subject=n.tokenParsed.sub,n.realmAccess=n.tokenParsed.realm_access,n.resourceAccess=n.tokenParsed.resource_access,i&&(n.timeSkew=Math.floor(i/1e3)-n.tokenParsed.iat),null!=n.timeSkew&&(c("[KEYCLOAK] Estimated time difference between browser and server is "+n.timeSkew+" seconds"),n.onTokenExpired)){var r=(n.tokenParsed.exp-new Date().getTime()/1e3+n.timeSkew)*1e3;c("[KEYCLOAK] Token expires in "+Math.round(r/1e3)+" s"),r<=0?n.onTokenExpired():n.tokenTimeoutHandle=setTimeout(n.onTokenExpired,r)}}else delete n.token,delete n.tokenParsed,delete n.subject,delete n.realmAccess,delete n.resourceAccess,n.authenticated=!1}function p(){var e="0123456789abcdef",t=u(36,e).split("");return t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}function F(e){var t=function(e){switch(n.flow){case"standard":t=["code","state","session_state","kc_action_status","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"]}t.push("error"),t.push("error_description"),t.push("error_uri");var t,o,i,r=e.indexOf("?"),a=e.indexOf("#");if("query"===n.responseMode&&-1!==r?(o=e.substring(0,r),""!==(i=g(e.substring(r+1,-1!==a?a:e.length),t)).paramsString&&(o+="?"+i.paramsString),-1!==a&&(o+=e.substring(a))):"fragment"===n.responseMode&&-1!==a&&(o=e.substring(0,a),""!==(i=g(e.substring(a+1),t)).paramsString&&(o+="#"+i.paramsString)),i&&i.oauthParams){if("standard"===n.flow||"hybrid"===n.flow){if((i.oauthParams.code||i.oauthParams.error)&&i.oauthParams.state)return i.oauthParams.newUrl=o,i.oauthParams}else if("implicit"===n.flow&&(i.oauthParams.access_token||i.oauthParams.error)&&i.oauthParams.state)return i.oauthParams.newUrl=o,i.oauthParams}}(e);if(t){var i=o.get(t.state);return i&&(t.valid=!0,t.redirectUri=i.redirectUri,t.storedNonce=i.nonce,t.prompt=i.prompt,t.pkceCodeVerifier=i.pkceCodeVerifier,t.loginOptions=i.loginOptions),t}}function g(e,t){for(var o=e.split("&"),n={paramsString:"",oauthParams:{}},i=0;i<o.length;i++){var r=o[i].indexOf("="),a=o[i].slice(0,r);-1!==t.indexOf(a)?n.oauthParams[a]=o[i].slice(r+1):(""!==n.paramsString&&(n.paramsString+="&"),n.paramsString+=o[i])}return n}function v(){var e={setSuccess:function(t){e.resolve(t)},setError:function(t){e.reject(t)}};return e.promise=new Promise(function(t,o){e.resolve=t,e.reject=o}),e}function _(){var e=v();if(!r.enable||r.iframe)return e.setSuccess(),e.promise;var t=document.createElement("iframe");r.iframe=t,t.onload=function(){var t=n.endpoints.authorize();"/"===t.charAt(0)?r.iframeOrigin=window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):r.iframeOrigin=t.substring(0,t.indexOf("/",8)),e.setSuccess()};var o=n.endpoints.checkSessionIframe();return t.setAttribute("src",o),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t),window.addEventListener("message",function(e){if(e.origin===r.iframeOrigin&&r.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&n.clearToken();for(var t=r.callbackList.splice(0,r.callbackList.length),o=t.length-1;o>=0;--o){var i=t[o];"error"==e.data?i.setError():i.setSuccess("unchanged"==e.data)}}},!1),e.promise}function y(){r.enable&&n.token&&setTimeout(function(){w().then(function(e){e&&y()})},1e3*r.interval)}function w(){var e=v();if(r.iframe&&r.iframeOrigin){var t=n.clientId+" "+(n.sessionId?n.sessionId:"");r.callbackList.push(e);var o=r.iframeOrigin;1==r.callbackList.length&&r.iframe.contentWindow.postMessage(t,o)}else e.setSuccess();return e.promise}function E(){var e,t,o,i=v();if(r.enable||n.silentCheckSsoRedirectUri){var a=document.createElement("iframe");a.setAttribute("src",n.endpoints.thirdPartyCookiesIframe()),a.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),a.setAttribute("title","keycloak-3p-check-iframe"),a.style.display="none",document.body.appendChild(a);var s=function(e){a.contentWindow===e.source&&("supported"===e.data||"unsupported"===e.data)&&("unsupported"===e.data&&(d("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers"),r.enable=!1,n.silentCheckSsoFallback&&(n.silentCheckSsoRedirectUri=!1)),document.body.removeChild(a),window.removeEventListener("message",s),i.setSuccess())};window.addEventListener("message",s,!1)}else i.setSuccess();return e=i.promise,t=n.messageReceiveTimeout,o=null,Promise.race([e,new Promise(function(e,n){o=setTimeout(function(){n({error:"Timeout when waiting for 3rd party check iframe message."})},t)})]).finally(function(){clearTimeout(o)})}function C(e){if(!e||"default"==e)return{login:function(e){return window.location.assign(n.createLoginUrl(e)),v().promise},logout:async function(e){if("GET"===(e?.logoutMethod??n.logoutMethod))return void window.location.replace(n.createLogoutUrl(e));let o=n.createLogoutUrl(e),i=await fetch(o,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:n.idToken,client_id:n.clientId,post_logout_redirect_uri:t.redirectUri(e,!1)})});if(i.redirected){window.location.href=i.url;return}if(i.ok)return void window.location.reload();throw Error("Logout failed, request returned an error code.")},register:function(e){return window.location.assign(n.createRegisterUrl(e)),v().promise},accountManagement:function(){var e=n.createAccountUrl();if(void 0!==e)window.location.href=e;else throw"Not supported by the OIDC server";return v().promise},redirectUri:function(e,t){return e&&e.redirectUri?e.redirectUri:n.redirectUri?n.redirectUri:location.href}};if("cordova"==e){r.enable=!1;var o=function(e,t,o){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,t,o):window.open(e,t,o)},i=function(e){var t=e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce(function(t,o){return t[o]=e.cordovaOptions[o],t},{}):{};return t.location="no",e&&"none"==e.prompt&&(t.hidden="yes"),Object.keys(t).reduce(function(e,o){return e.push(o+"="+t[o]),e},[]).join(",")},a=function(){return n.redirectUri||"http://localhost"};return{login:function(e){var t=v(),r=i(e),s=o(n.createLoginUrl(e),"_blank",r),l=!1,c=!1,d=function(){c=!0,s.close()};return s.addEventListener("loadstart",function(e){0==e.url.indexOf(a())&&(h(F(e.url),t),d(),l=!0)}),s.addEventListener("loaderror",function(e){l||(0==e.url.indexOf(a())?(h(F(e.url),t),d(),l=!0):(t.setError(),d()))}),s.addEventListener("exit",function(e){c||t.setError({reason:"closed_by_user"})}),t.promise},logout:function(e){var t,i=v(),r=o(n.createLogoutUrl(e),"_blank","location=no,hidden=yes,clearcache=yes");return r.addEventListener("loadstart",function(e){0==e.url.indexOf(a())&&r.close()}),r.addEventListener("loaderror",function(e){0==e.url.indexOf(a())||(t=!0),r.close()}),r.addEventListener("exit",function(e){t?i.setError():(n.clearToken(),i.setSuccess())}),i.promise},register:function(e){var t=v(),r=o(n.createRegisterUrl(),"_blank",i(e));return r.addEventListener("loadstart",function(e){0==e.url.indexOf(a())&&(r.close(),h(F(e.url),t))}),t.promise},accountManagement:function(){var e=n.createAccountUrl();if(void 0!==e){var t=o(e,"_blank","location=no");t.addEventListener("loadstart",function(e){0==e.url.indexOf(a())&&t.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(e){return a()}}}if("cordova-native"==e)return r.enable=!1,{login:function(e){var t=v(),o=n.createLoginUrl(e);return universalLinks.subscribe("keycloak",function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),h(F(e.url),t)}),window.cordova.plugins.browsertab.openUrl(o),t.promise},logout:function(e){var t=v(),o=n.createLogoutUrl(e);return universalLinks.subscribe("keycloak",function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),n.clearToken(),t.setSuccess()}),window.cordova.plugins.browsertab.openUrl(o),t.promise},register:function(e){var t=v(),o=n.createRegisterUrl(e);return universalLinks.subscribe("keycloak",function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),h(F(e.url),t)}),window.cordova.plugins.browsertab.openUrl(o),t.promise},accountManagement:function(){var e=n.createAccountUrl();if(void 0!==e)window.cordova.plugins.browsertab.openUrl(e);else throw"Not supported by the OIDC server"},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:n.redirectUri?n.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}n.init=function(i){if(n.didInitialize)throw Error("A 'Keycloak' instance can only be initialized once.");if(n.didInitialize=!0,n.authenticated=!1,o=function(){try{return new k}catch(e){}return new A}(),t=i&&["default","cordova","cordova-native"].indexOf(i.adapter)>-1?C(i.adapter):i&&"object"==typeof i.adapter?i.adapter:window.Cordova||window.cordova?C("cordova"):C(),i){if(void 0!==i.useNonce&&(l=i.useNonce),void 0!==i.checkLoginIframe&&(r.enable=i.checkLoginIframe),i.checkLoginIframeInterval&&(r.interval=i.checkLoginIframeInterval),"login-required"===i.onLoad&&(n.loginRequired=!0),i.responseMode)if("query"===i.responseMode||"fragment"===i.responseMode)n.responseMode=i.responseMode;else throw"Invalid value for responseMode";if(i.flow){switch(i.flow){case"standard":n.responseType="code";break;case"implicit":n.responseType="id_token token";break;case"hybrid":n.responseType="code id_token token";break;default:throw"Invalid value for flow"}n.flow=i.flow}if(null!=i.timeSkew&&(n.timeSkew=i.timeSkew),i.redirectUri&&(n.redirectUri=i.redirectUri),i.silentCheckSsoRedirectUri&&(n.silentCheckSsoRedirectUri=i.silentCheckSsoRedirectUri),"boolean"==typeof i.silentCheckSsoFallback?n.silentCheckSsoFallback=i.silentCheckSsoFallback:n.silentCheckSsoFallback=!0,void 0!==i.pkceMethod){if("S256"!==i.pkceMethod&&!1!==i.pkceMethod)throw TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${i.pkceMethod}.`);n.pkceMethod=i.pkceMethod}else n.pkceMethod="S256";"boolean"==typeof i.enableLogging?n.enableLogging=i.enableLogging:n.enableLogging=!1,"POST"===i.logoutMethod?n.logoutMethod="POST":n.logoutMethod="GET","string"==typeof i.scope&&(n.scope=i.scope),"string"==typeof i.acrValues&&(n.acrValues=i.acrValues),"number"==typeof i.messageReceiveTimeout&&i.messageReceiveTimeout>0?n.messageReceiveTimeout=i.messageReceiveTimeout:n.messageReceiveTimeout=1e4}n.responseMode||(n.responseMode="fragment"),n.responseType||(n.responseType="code",n.flow="standard");var a=v(),s=v();s.promise.then(function(){n.onReady&&n.onReady(n.authenticated),a.setSuccess(n.authenticated)}).catch(function(e){a.setError(e)});var c=function(){var t=v();function o(e){e?n.endpoints={authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint}}:n.endpoints={authorize:function(){return f()+"/protocol/openid-connect/auth"},token:function(){return f()+"/protocol/openid-connect/token"},logout:function(){return f()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var e=f()+"/protocol/openid-connect/login-status-iframe.html";return n.iframeVersion&&(e=e+"?version="+n.iframeVersion),e},thirdPartyCookiesIframe:function(){var e=f()+"/protocol/openid-connect/3p-cookies/step1.html";return n.iframeVersion&&(e=e+"?version="+n.iframeVersion),e},register:function(){return f()+"/protocol/openid-connect/registrations"},userinfo:function(){return f()+"/protocol/openid-connect/userinfo"}}}if(e?"string"==typeof e&&(a=e):a="keycloak.json",a){var i=new XMLHttpRequest;i.open("GET",a,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status||m(i)){var e=JSON.parse(i.responseText);n.authServerUrl=e["auth-server-url"],n.realm=e.realm,n.clientId=e.resource,o(null),t.setSuccess()}else t.setError()},i.send()}else{if(!e.clientId)throw"clientId missing";n.clientId=e.clientId;var r=e.oidcProvider;if(r)if("string"==typeof r){var a,s="/"==r.charAt(r.length-1)?r+".well-known/openid-configuration":r+"/.well-known/openid-configuration",i=new XMLHttpRequest;i.open("GET",s,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){4==i.readyState&&(200==i.status||m(i)?(o(JSON.parse(i.responseText)),t.setSuccess()):t.setError())},i.send()}else o(r),t.setSuccess();else{if(!e.url){for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++)if(l[c].src.match(/.*keycloak\.js/)){e.url=l[c].src.substr(0,l[c].src.indexOf("/js/keycloak.js"));break}}if(!e.realm)throw"realm missing";n.authServerUrl=e.url,n.realm=e.realm,o(null),t.setSuccess()}}return t.promise}();function d(){var e=function(e){e||(o.prompt="none"),i&&i.locale&&(o.locale=i.locale),n.login(o).then(function(){s.setSuccess()}).catch(function(e){s.setError(e)})},t=function(){var e=document.createElement("iframe"),t=n.createLoginUrl({prompt:"none",redirectUri:n.silentCheckSsoRedirectUri});e.setAttribute("src",t),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var o=function(t){t.origin===window.location.origin&&e.contentWindow===t.source&&(h(F(t.data),s),document.body.removeChild(e),window.removeEventListener("message",o))};window.addEventListener("message",o)},o={};switch(i.onLoad){case"check-sso":r.enable?_().then(function(){w().then(function(o){o?s.setSuccess():n.silentCheckSsoRedirectUri?t():e(!1)}).catch(function(e){s.setError(e)})}):n.silentCheckSsoRedirectUri?t():e(!1);break;case"login-required":e(!0);break;default:throw"Invalid value for onLoad"}}function u(){var e=F(window.location.href);if(e&&window.history.replaceState(window.history.state,null,e.newUrl),e&&e.valid)return _().then(function(){h(e,s)}).catch(function(e){s.setError(e)});i?i.token&&i.refreshToken?(b(i.token,i.refreshToken,i.idToken),r.enable?_().then(function(){w().then(function(e){e?(n.onAuthSuccess&&n.onAuthSuccess(),s.setSuccess(),y()):s.setSuccess()}).catch(function(e){s.setError(e)})}):n.updateToken(-1).then(function(){n.onAuthSuccess&&n.onAuthSuccess(),s.setSuccess()}).catch(function(e){n.onAuthError&&n.onAuthError(),i.onLoad?d():s.setError(e)})):i.onLoad?d():s.setSuccess():s.setSuccess()}return c.then(function(){var e,t;(e=v(),t=function(){("interactive"===document.readyState||"complete"===document.readyState)&&(document.removeEventListener("readystatechange",t),e.setSuccess())},document.addEventListener("readystatechange",t),t(),e.promise).then(E).then(u).catch(function(e){a.setError(e)})}),c.catch(function(e){a.setError(e)}),a.promise},n.login=function(e){return t.login(e)},n.createLoginUrl=function(e){var i,r=p(),a=p(),s=t.redirectUri(e),c={state:r,nonce:a,redirectUri:encodeURIComponent(s),loginOptions:e};e&&e.prompt&&(c.prompt=e.prompt),i=e&&"register"==e.action?n.endpoints.register():n.endpoints.authorize();var d=e&&e.scope||n.scope;d?-1===d.indexOf("openid")&&(d="openid "+d):d="openid";var f=i+"?client_id="+encodeURIComponent(n.clientId)+"&redirect_uri="+encodeURIComponent(s)+"&state="+encodeURIComponent(r)+"&response_mode="+encodeURIComponent(n.responseMode)+"&response_type="+encodeURIComponent(n.responseType)+"&scope="+encodeURIComponent(d);if(l&&(f=f+"&nonce="+encodeURIComponent(a)),e&&e.prompt&&(f+="&prompt="+encodeURIComponent(e.prompt)),e&&e.maxAge&&(f+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(f+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(f+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(f+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(f+="&ui_locales="+encodeURIComponent(e.locale)),e&&e.acr&&(f+="&claims="+encodeURIComponent(JSON.stringify({id_token:{acr:e.acr}}))),(e&&e.acrValues||n.acrValues)&&(f+="&acr_values="+encodeURIComponent(e.acrValues||n.acrValues)),n.pkceMethod){var h=u(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");c.pkceCodeVerifier=h,f+="&code_challenge="+function(e,t){if("S256"!==e)throw TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);return btoa(String.fromCodePoint(...new Uint8Array(d7.arrayBuffer(t)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}(n.pkceMethod,h)+"&code_challenge_method="+n.pkceMethod}return o.add(c),f},n.logout=function(e){return t.logout(e)},n.createLogoutUrl=function(e){if("POST"===(e?.logoutMethod??n.logoutMethod))return n.endpoints.logout();var o=n.endpoints.logout()+"?client_id="+encodeURIComponent(n.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(t.redirectUri(e,!1));return n.idToken&&(o+="&id_token_hint="+encodeURIComponent(n.idToken)),o},n.register=function(e){return t.register(e)},n.createRegisterUrl=function(e){return e||(e={}),e.action="register",n.createLoginUrl(e)},n.createAccountUrl=function(e){var o=f(),i=void 0;return void 0!==o&&(i=o+"/account?referrer="+encodeURIComponent(n.clientId)+"&referrer_uri="+encodeURIComponent(t.redirectUri(e))),i},n.accountManagement=function(){return t.accountManagement()},n.hasRealmRole=function(e){var t=n.realmAccess;return!!t&&t.roles.indexOf(e)>=0},n.hasResourceRole=function(e,t){if(!n.resourceAccess)return!1;var o=n.resourceAccess[t||n.clientId];return!!o&&o.roles.indexOf(e)>=0},n.loadUserProfile=function(){var e=f()+"/account",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+n.token);var o=v();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(n.profile=JSON.parse(t.responseText),o.setSuccess(n.profile)):o.setError())},t.send(),o.promise},n.loadUserInfo=function(){var e=n.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+n.token);var o=v();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(n.userInfo=JSON.parse(t.responseText),o.setSuccess(n.userInfo)):o.setError())},t.send(),o.promise},n.isTokenExpired=function(e){if(!n.tokenParsed||!n.refreshToken&&"implicit"!=n.flow)throw"Not authenticated";if(null==n.timeSkew)return c("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=n.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+n.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";t-=e}return t<0},n.updateToken=function(e){var t=v();if(!n.refreshToken)return t.setError(),t.promise;e=e||5;var o=function(){var o=!1;if(-1==e?(o=!0,c("[KEYCLOAK] Refreshing token: forced refresh")):(!n.tokenParsed||n.isTokenExpired(e))&&(o=!0,c("[KEYCLOAK] Refreshing token: token expired")),o){var r="grant_type=refresh_token&refresh_token="+n.refreshToken,a=n.endpoints.token();if(i.push(t),1==i.length){var s=new XMLHttpRequest;s.open("POST",a,!0),s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.withCredentials=!0,r+="&client_id="+encodeURIComponent(n.clientId);var l=new Date().getTime();s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status){c("[KEYCLOAK] Token refreshed"),l=(l+new Date().getTime())/2;var e=JSON.parse(s.responseText);b(e.access_token,e.refresh_token,e.id_token,l),n.onAuthRefreshSuccess&&n.onAuthRefreshSuccess();for(var t=i.pop();null!=t;t=i.pop())t.setSuccess(!0)}else{d("[KEYCLOAK] Failed to refresh token"),400==s.status&&n.clearToken(),n.onAuthRefreshError&&n.onAuthRefreshError();for(var t=i.pop();null!=t;t=i.pop())t.setError(!0)}},s.send(r)}}else t.setSuccess(!1)};return r.enable?w().then(function(){o()}).catch(function(e){t.setError(e)}):o(),t.promise},n.clearToken=function(){n.token&&(b(null,null,null),n.onAuthLogout&&n.onAuthLogout(),n.loginRequired&&n.login())};var k=function(){if(!(this instanceof k))return new k;function e(){for(var e=new Date().getTime(),t=0;t<localStorage.length;t++){var o=localStorage.key(t);if(o&&0==o.indexOf("kc-callback-")){var n=localStorage.getItem(o);if(n)try{var i=JSON.parse(n).expires;(!i||i<e)&&localStorage.removeItem(o)}catch(e){localStorage.removeItem(o)}}}}localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test"),this.get=function(t){if(t){var o="kc-callback-"+t,n=localStorage.getItem(o);return n&&(localStorage.removeItem(o),n=JSON.parse(n)),e(),n}},this.add=function(t){e();var o="kc-callback-"+t.state;t.expires=new Date().getTime()+36e5,localStorage.setItem(o,JSON.stringify(t))}},A=function(){if(!(this instanceof A))return new A;this.get=function(n){if(n){var i=t("kc-callback-"+n);if(o("kc-callback-"+n,"",e(-100)),i)return JSON.parse(i)}},this.add=function(t){o("kc-callback-"+t.state,JSON.stringify(t),e(60))},this.removeItem=function(t){o(t,"",e(-100))};var e=function(e){var t=new Date;return t.setTime(t.getTime()+60*e*1e3),t},t=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""},o=function(e,t,o){var n=e+"="+t+"; expires="+o.toUTCString()+"; ";document.cookie=n}};function x(e){return function(){n.enableLogging&&e.apply(console,Array.prototype.slice.call(arguments))}}}var un=function(e,t,o,n){return new(o||(o=Promise))(function(i,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let ui="openremote";(ew=tx||(tx={})).MANAGER_FAILED_TO_LOAD="MANAGER_FAILED_TO_LOAD",ew.AUTH_FAILED="AUTH_FAILED",ew.AUTH_TYPE_UNSUPPORTED="AUTH_TYPE_UNSUPPORTED",ew.CONSOLE_ERROR="CONSOLE_INIT_ERROR",ew.EVENTS_CONNECTION_ERROR="EVENTS_CONNECTION_ERROR",ew.TRANSLATION_ERROR="TRANSLATION_ERROR",(eE=tD||(tD={})).ERROR="ERROR",eE.READY="READY",eE.ONLINE="ONLINE",eE.OFFLINE="OFFLINE",eE.CONNECTING="CONNECTING",eE.CONSOLE_INIT="CONSOLE_INIT",eE.CONSOLE_READY="CONSOLE_READY",eE.TRANSLATE_INIT="TRANSLATE_INIT",eE.TRANSLATE_LANGUAGE_CHANGED="TRANSLATE_LANGUAGE_CHANGED",eE.DISPLAY_REALM_CHANGED="DISPLAY_REALM_CHANGED",eE.LOGIN="LOGIN";let ur={cn:"zh-cn"};class ua{constructor(){this._authenticated=!1,this._ready=!1,this._name="",this._username="",this._keycloakUpdateTokenInterval=void 0,this._managerVersion="",this._authServerUrl="",this._listeners=[],this._disconnected=!1}get username(){return this._username}get error(){return this._error}get authenticated(){return this._authenticated}get ready(){return this._ready}get config(){return this._config}get roles(){let e=new Map;return this._keycloak&&this._keycloak.resourceAccess&&this._config.clientId&&this._keycloak.resourceAccess&&Object.entries(this._keycloak.resourceAccess).forEach(([t,o])=>{let n=o.roles;e.set(t,n)}),e}get managerVersion(){return this._managerVersion}get isManagerAvailable(){return this._managerVersion&&""!==this._managerVersion}get managerUrl(){var e;return null==(e=this._config)?void 0:e.managerUrl}get keycloakUrl(){var e;return null==(e=this._config)?void 0:e.keycloakUrl}get isError(){return!!this._error}get connectionStatus(){return this._events&&this._events.status}get console(){return this._console}get consoleAppConfig(){return this._consoleAppConfig}get events(){return this._events}get rest(){return dU}get language(){return nY.language}set language(e){console.debug(`Changing language to ${e}.`),e&&(nY.changeLanguage(e),this.console.storeData("LANGUAGE",e),this.authenticated&&this.updateKeycloakUserLanguage(e).catch(e=>console.error(e)))}get displayRealm(){return this._displayRealm||this._config.realm}set displayRealm(e){this.isSuperUser()&&this._displayRealm!==e&&(this._displayRealm=e,this._emitEvent(tD.DISPLAY_REALM_CHANGED))}get clientId(){return this._config.clientId||ui}getEventProvider(){return this.events}isManagerSameOrigin(){if(!this.ready)return!1;let e=new URL(this._config.managerUrl),t=window.location;return e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}addListener(e){0>this._listeners.indexOf(e)&&this._listeners.push(e)}removeListener(e){let t=this._listeners.indexOf(e);t>=0&&this._listeners.splice(t,1)}init(e){return un(this,void 0,void 0,function*(){let t;this._config&&console.debug("Already initialised"),this._config=((t=e?Object.assign({},e):{}).managerUrl&&""!==t.managerUrl?t.managerUrl=t.managerUrl.replace(/\/+$/,""):t.managerUrl=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname.replace(/\/[^/]+\/?$/,""),t.realm&&""!==t.realm||(t.realm="master"),t.auth||(t.auth="KEYCLOAK"),void 0===t.consoleAutoEnable&&(t.consoleAutoEnable=!0),void 0===t.applyConfigToAdmin&&(t.applyConfigToAdmin=!0),t.eventProviderType||(t.eventProviderType="WEBSOCKET"),(!t.pollingIntervalMillis||t.pollingIntervalMillis<5e3)&&(t.pollingIntervalMillis=1e4),void 0===t.loadIcons&&(t.loadIcons=!0),void 0===t.loadTranslations&&(t.loadTranslations=["or"]),void 0===t.translationsLoadPath&&(t.translationsLoadPath="locales/{{lng}}/{{ns}}.json"),void 0===t.loadDescriptors&&(t.loadDescriptors=!0),void 0===t.clientId&&(t.clientId=ui),t);let o=yield this.loadManagerInfo(),n=new s0(this._config.realm,this._config.consoleAutoEnable,()=>{this._emitEvent(tD.CONSOLE_READY)});if(this._console=n,"KEYCLOAK"===this._config.auth){if(!this._config.keycloakUrl&&this._authServerUrl){let e,t=new URL(this._config.managerUrl);this._authServerUrl.startsWith("//")?(this._authServerUrl=t.protocol+this._authServerUrl,this._config.keycloakUrl=this._authServerUrl):this._authServerUrl.startsWith("http")?this._config.keycloakUrl=this._authServerUrl:((e=new URL(t)).pathname=this._authServerUrl,e.protocol||(e.protocol=t.protocol),e.hostname||(e.hostname=t.hostname),e.port||(e.port=t.port),this._config.keycloakUrl=e.toString())}this._config.keycloakUrl||(this._config.keycloakUrl=this._config.managerUrl+"/auth"),this._config.keycloakUrl=this._config.keycloakUrl.replace(/\/+$/,""),o=yield this.doAuthInit()}return!!o&&(o&&(o=this.doRestApiInit()),(yield this.doConsoleInit())&&this._clearWebHistory(),(o=(yield this.doTranslateInit())&&o)&&(o=yield this.doDescriptorsInit(),o=yield this.getConsoleAppConfig()),this.doIconInit(),o?(o=yield this.doEventsSubscriptionInit(),this._ready=!0,this._emitEvent(tD.READY)):(this._config=void 0,console.warn("Failed to initialise the manager")),this.displayRealm=e.realm||"master",o)})}loadManagerInfo(){return un(this,void 0,void 0,function*(){try{let e=yield new Promise((e,t)=>{let o=new XMLHttpRequest;o.addEventListener("load",()=>{e(JSON.parse(o.responseText))}),o.addEventListener("error",()=>{t(Error("Failed to contact the manager"))}),o.open("GET",this._config.managerUrl+"/api/master/info"),o.send()});return this._managerVersion=e&&e.version?e.version:"",this._authServerUrl=e&&e.authServerUrl?e.authServerUrl:"",!0}catch(e){return console.error("Failed to contact the manager",e),this._setError(tx.MANAGER_FAILED_TO_LOAD),!1}})}doTranslateInit(){return un(this,void 0,void 0,function*(){if(nY.isInitialized)return!0;nY.on("initialized",e=>{this._emitEvent(tD.TRANSLATE_INIT)}),nY.on("languageChanged",e=>{var t;sG().locale(null!=(t=ur[e])?t:e),this._emitEvent(tD.TRANSLATE_LANGUAGE_CHANGED)});let e={lng:(yield this.getConsolePreferredLanguage())||(yield this.getUserPreferredLanguage())||this.config.defaultLanguage||"en",fallbackLng:"en",defaultNS:"app",fallbackNS:"or",ns:this.config.loadTranslations,interpolation:{format:(e,t,o)=>"uppercase"===t?e.toUpperCase():e instanceof Date?sG()(e).format(t):e},backend:{loadPath:(e,t)=>1===t.length&&"or"===t[0]?this.config.managerUrl+"/shared/locales/{{lng}}/{{ns}}.json":this.config.translationsLoadPath?this.config.translationsLoadPath:"locales/{{lng}}/{{ns}}.json"}};this.config.configureTranslationsOptions&&this.config.configureTranslationsOptions(e);try{yield nY.use(d9).init(e)}catch(e){return console.error(e),this._setError(tx.TRANSLATION_ERROR),!1}return!0})}doDescriptorsInit(){return un(this,void 0,void 0,function*(){if(!this.config.loadDescriptors)return!0;try{let e=yield dU.api.AssetModelResource.getAssetInfos(),t=yield dU.api.AssetModelResource.getMetaItemDescriptors(),o=yield dU.api.AssetModelResource.getValueDescriptors();oq._assetTypeInfos=e.data,oq._metaItemDescriptors=Object.values(t.data),oq._valueDescriptors=Object.values(o.data)}catch(e){return console.error(e),!1}return!0})}doAuthInit(){return un(this,void 0,void 0,function*(){let e=!0;switch(this._config.auth){case"KEYCLOAK":e=yield this.loadAndInitialiseKeycloak();break;case"NONE":return!0;default:return this._setError(tx.AUTH_TYPE_UNSUPPORTED),!1}return!!e&&(dU.addRequestInterceptor(e=>{if(!e.headers.Authorization){let t=this.getAuthorizationHeader();t&&(e.headers.Authorization=t)}return e}),e)})}doRestApiInit(){return dU.setTimeout(2e4),dU.initialise(this.getApiBaseUrl()),!0}doEventsSubscriptionInit(){return un(this,void 0,void 0,function*(){let e=!1;return"WEBSOCKET"===this._config.eventProviderType&&(this._events=new dY(this._config.managerUrl),this._events.subscribeStatusChange(e=>this._onEventProviderStatusChanged(e)),e=yield this._events.connect()),e||this._setError(tx.EVENTS_CONNECTION_ERROR),e})}_connectEvents(){var e;(null==(e=this.events)?void 0:e.status)===tA.DISCONNECTED?this.events.connect().catch(e=>{console.error("Failed to connect EventProvider."),console.error(e)}):console.warn("Tried to connect EventProvider, but it wasn't disconnected!")}_onEventProviderStatusChanged(e){switch(e){case tA.DISCONNECTED:this._onDisconnect();break;case tA.CONNECTED:break;case tA.CONNECTING:this._emitEvent(tD.CONNECTING)}}doConsoleInit(){return un(this,void 0,void 0,function*(){try{return yield this.console.initialise(),this._emitEvent(tD.CONSOLE_INIT),!0}catch(e){return this._setError(tx.CONSOLE_ERROR),!1}})}doIconInit(){var e;this._config.loadIcons&&(oG.addIconSet("mdi",(e=us.managerUrl,{getIconTemplate:e=>of`<span style="font-family: 'Material Design Icons';" class="mdi-${e}"></span>`,onAdd(){let t=document.createElement("style");t.id="mdiFontStyle",t.textContent='@font-face {\n font-family: "Material Design Icons";\n src: url("'+e+'/shared/fonts/Material Design Icons/fonts/materialdesignicons-webfont.eot");\n src: url("'+e+'/shared/fonts/Material Design Icons/fonts/materialdesignicons-webfont.eot") format("embedded-opentype"), url("'+e+'/shared/fonts/Material Design Icons/fonts/materialdesignicons-webfont.woff2") format("woff2"), url("'+e+'/shared/fonts/Material Design Icons/fonts/materialdesignicons-webfont.woff") format("woff"), url("'+e+'/shared/fonts/Material Design Icons//fonts/materialdesignicons-webfont.ttf") format("truetype");\n font-weight: normal;\n font-style: normal;\n}',document.head.appendChild(t)}})),oG.addIconSet("or",{getIconTemplate:e=>{let t=oH[e];return t?of`
2119
+ `}updated(e){super.updated(e),e.has("headerTitle")&&(this.ariaLabel=this.headerTitle)}}nJ(sG),o(4532);var sK=o(4867),sJ=o.n(sK);o(3472);class sX{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function sQ(e,t,o=!0){if(null==e||null==t)return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Function||e instanceof RegExp)return e===t;if(e===t||e.valueOf()===t.valueOf())return!0;if(Array.isArray(e)&&e.length!==t.length||e instanceof Date||!(e instanceof Object)||!(t instanceof Object))return!1;if(o){if(Array.isArray(e))return e.every((e,o)=>sQ(e,t[o]));let o=Object.keys(e);return Object.keys(t).every(e=>-1!==o.indexOf(e))&&o.every(o=>sQ(e[o],t[o]))}return!1}class sZ{constructor(e){e&&Object.assign(this,e)}matches(e){var t,o,n,i,r,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(o=this.types)?void 0:o.length)&&(!e.type||!this.types.includes(e.type))||(null==(n=this.realm)?void 0:n.name)&&e.realm!==this.realm.name||(null==(i=this.parents)?void 0:i.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(r=this.paths)?void 0:r.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var o;return(null!=(o=e.path)?o:[]).every((e,o)=>t[o]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>sZ._evalValuePredicate(e.name,t)))&&(!this.attributes||sZ._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!sZ._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?sZ._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var o;switch(t.predicateType){case"string":{let n;if(null==e)return!1;let i=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),r=!1!==t.caseSensitive?t.value:null==(o=t.value)?void 0:o.toLowerCase();switch(t.match){case"BEGIN":n=i.startsWith(r);break;case"END":n=i.endsWith(r);break;case"CONTAINS":n=i.includes(r);break;default:n=i===r}return t.negate?!n:n}case"boolean":return e===t.value;case"number":{let o;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":o=e>t.value;break;case"GREATER_EQUALS":o=e>=t.value;break;case"LESS_THAN":o=e<t.value;break;case"LESS_EQUALS":o=e<=t.value;break;case"BETWEEN":o=e>=t.value&&e<=t.rangeValue;break;default:o=e===t.value}return t.negate?!o:o}}return!1}static _evalPredicate(e,t){var o,n;let i=null==(o=t.name)?void 0:o.value;if(!i)return!0;let r=null==(n=e.attributes)?void 0:n[i];if(!r)return!!t.negated;let a=!t.value||sZ._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var o,n,i;let r=null!=(o=t.operator)?o:"AND",a=[...(null!=(n=t.items)?n:[]).map(t=>sZ._evalPredicate(e,t)),...(null!=(i=t.groups)?i:[]).map(t=>sZ._evalGroup(e,t))];return!a.length||("OR"===r?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,o;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(o=e.groups)?o:[]).flatMap(e=>sZ._collectNames(e))]}}sZ._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var s0=function(e,t,o,n){return new(o||(o=Promise))(function(i,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let s1=o(4461);class s2{constructor(e,t,o){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=o,window.OpenRemoteConsole=this;let n=new URLSearchParams(window.location.search),i=n.get("consoleName"),r=n.get("consoleVersion"),a=n.get("consolePlatform"),s=n.get("consoleProviders"),l=n.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let d=s2._createConsoleRegistration(),u=window.localStorage.getItem(this._storageKey);if(u)try{let e=JSON.parse(u);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let f=d.providers;for(let e of(d.providers={},c)){let t=f&&f.hasOwnProperty(e)?f[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let h=ud.getAppName();h.length>0&&0>d.apps.indexOf(h)&&d.apps.push(h),this._registration=d,i&&(d.name=i),r&&(d.version=r),a&&(d.platform=a),l&&(this._autoEnable="TRUE"===l||"true"===l)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return s0(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return s0(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return s0(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let o={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},n=yield this.sendProviderMessage(o,!0);this._registration.providers[e].hasPermission=n.hasPermission,this._registration.providers[e].success=n.success,this._registration.providers[e].enabled=n.success,this._registration.providers[e].data=n.data;let i=this._pendingProviderEnables.indexOf(e);return i>=0&&(this._pendingProviderEnables.splice(i,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),n})}disableProvider(e){return s0(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return s0(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let o=e.provider+e.action;if(this._pendingProviderPromises[o])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let n=new sX,i=()=>{delete this._pendingProviderPromises[o],n.reject("No response from provider")};return this._pendingProviderPromises[o]=[n,window.setTimeout(i,5e3)],this._doSendProviderMessage(e),n.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>s0(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return s0(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield ud.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(o){if(e&&t&&s2._isStaleRegistrationResponse(o)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw o}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return s0(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let o={type:e,data:t};this.isMobile?this._postNativeShellMessage(o):console.warn("Failed to send generic message to console.",o)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let o=window.localStorage.getItem(t);if(null!==o)try{o=JSON.parse(o)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:o}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),o=t.provider,n=t.action,i=this._pendingProviderPromises[o+n];i&&(window.clearTimeout(i[1]),delete this._pendingProviderPromises[o+n],i[0].resolve(t));let r=this._providerMessageListeners[o+n];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:s1.name,version:s1.version,platform:s1.os.toString(),apps:[],model:((s1.manufacturer?s1.manufacturer+" ":"")+(s1.product?s1.product:"")).trim()}}_initialiseProvider(e){return s0(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function s3(e,t){return function(){return e.apply(t,arguments)}}let{toString:s5}=Object.prototype,{getPrototypeOf:s4}=Object,{iterator:s6,toStringTag:s8}=Symbol,s9=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),s7=(e,t)=>{let o=e,n=[];for(;null!=o&&o!==Object.prototype&&-1===n.indexOf(o);){if(n.push(o),s9(o,t))return!0;o=s4(o)}return!1},le=(r=Object.create(null),e=>{let t=s5.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),lt=e=>(e=e.toLowerCase(),t=>le(t)===e),lo=e=>t=>typeof t===e,{isArray:ln}=Array,li=lo("undefined");function lr(e){return null!==e&&!li(e)&&null!==e.constructor&&!li(e.constructor)&&ll(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let la=lt("ArrayBuffer"),ls=lo("string"),ll=lo("function"),lc=lo("number"),ld=e=>null!==e&&"object"==typeof e,lu=e=>{if(!ld(e))return!1;let t=s4(e);return(null===t||t===Object.prototype||null===s4(t))&&!s7(e,s8)&&!s7(e,s6)},lf=lt("Date"),lh=lt("File"),lm=lt("Blob"),lb=lt("FileList"),lp="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},lF=void 0!==lp.FormData?lp.FormData:void 0,lg=lt("URLSearchParams"),[lv,l_,ly,lw]=["ReadableStream","Request","Response","Headers"].map(lt);function lE(e,t,{allOwnKeys:o=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),ln(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(lr(e))return;let r=o?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(n=0;n<a;n++)i=r[n],t.call(null,e[i],i,e)}}function lC(e,t){let o;if(lr(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(o=n[i]).toLowerCase())return o;return null}let lk="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,lA=e=>!li(e)&&e!==lk,lx=(a="u">typeof Uint8Array&&s4(Uint8Array),e=>a&&e instanceof a),lD=lt("HTMLFormElement"),{propertyIsEnumerable:lS}=Object.prototype,lT=lt("RegExp"),lO=(e,t)=>{let o=Object.getOwnPropertyDescriptors(e),n={};lE(o,(o,i)=>{let r;!1!==(r=t(o,i,e))&&(n[i]=r||o)}),Object.defineProperties(e,n)},lI=lt("AsyncFunction"),lB=(c="function"==typeof setImmediate,d=ll(lk.postMessage),c?setImmediate:d?(u=`axios@${Math.random()}`,f=[],lk.addEventListener("message",({source:e,data:t})=>{e===lk&&t===u&&f.length&&f.shift()()},!1),e=>{f.push(e),lk.postMessage(u,"*")}):e=>setTimeout(e)),lR="u">typeof queueMicrotask?queueMicrotask.bind(lk):"u">typeof process&&process.nextTick||lB,lP=e=>null!=e&&ll(e[s6]),lN={isArray:ln,isArrayBuffer:la,isBuffer:lr,isFormData:e=>{if(!e)return!1;if(lF&&e instanceof lF)return!0;let t=s4(e);if(!t||t===Object.prototype||!ll(e.append))return!1;let o=le(e);return"formdata"===o||"object"===o&&ll(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&la(e.buffer)},isString:ls,isNumber:lc,isBoolean:e=>!0===e||!1===e,isObject:ld,isPlainObject:lu,isEmptyObject:e=>{if(!ld(e)||lr(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:lv,isRequest:l_,isResponse:ly,isHeaders:lw,isUndefined:li,isDate:lf,isFile:lh,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:lm,isRegExp:lT,isFunction:ll,isStream:e=>ld(e)&&ll(e.pipe),isURLSearchParams:lg,isTypedArray:lx,isFileList:lb,forEach:lE,merge:function e(...t){let{caseless:o,skipUndefined:n}=lA(this)&&this||{},i={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=o&&"string"==typeof r&&lC(i,r)||r,s=s9(i,a)?i[a]:void 0;lu(s)&&lu(t)?i[a]=e(s,t):lu(t)?i[a]=e({},t):ln(t)?i[a]=t.slice():n&&li(t)||(i[a]=t)};for(let e=0,o=t.length;e<o;e++){let o=t[e];if(!o||lr(o)||(lE(o,r),"object"!=typeof o||ln(o)))continue;let n=Object.getOwnPropertySymbols(o);for(let e=0;e<n.length;e++){let t=n[e];lS.call(o,t)&&r(o[t],t)}}return i},extend:(e,t,o,{allOwnKeys:n}={})=>(lE(t,(t,n)=>{o&&ll(t)?Object.defineProperty(e,n,{__proto__:null,value:s3(t,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,o,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),o&&Object.assign(e.prototype,o)},toFlatObject:(e,t,o,n)=>{let i,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(i=Object.getOwnPropertyNames(e)).length;r-- >0;)a=i[r],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==o&&s4(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:le,kindOfTest:lt,endsWith:(e,t,o)=>{e=String(e),(void 0===o||o>e.length)&&(o=e.length),o-=t.length;let n=e.indexOf(t,o);return -1!==n&&n===o},toArray:e=>{if(!e)return null;if(ln(e))return e;let t=e.length;if(!lc(t))return null;let o=Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{let o,n=(e&&e[s6]).call(e);for(;(o=n.next())&&!o.done;){let n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let o,n=[];for(;null!==(o=e.exec(t));)n.push(o);return n},isHTMLForm:lD,hasOwnProperty:s9,hasOwnProp:s9,hasOwnInPrototypeChain:s7,getSafeProp:(e,t)=>null!=e&&s7(e,t)?e[t]:void 0,reduceDescriptors:lO,freezeMethods:e=>{lO(e,(t,o)=>{if(ll(e)&&["arguments","caller","callee"].includes(o))return!1;if(ll(e[o])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},toObjectSet:(e,t)=>{let o={};return(ln(e)?e:String(e).split(t)).forEach(e=>{o[e]=!0}),o},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,o){return t.toUpperCase()+o}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:lC,global:lk,isContextDefined:lA,isSpecCompliantForm:function(e){return!!(e&&ll(e.append)&&"FormData"===e[s8]&&e[s6])},toJSONObject:e=>{let t=new WeakSet,o=e=>{if(ld(e)){if(t.has(e))return;if(lr(e))return e;if(!("toJSON"in e)){t.add(e);let n=ln(e)?[]:{};return lE(e,(e,t)=>{let i=o(e);li(i)||(n[t]=i)}),t.delete(e),n}}return e};return o(e)},isAsyncFn:lI,isThenable:e=>e&&(ld(e)||ll(e))&&ll(e.then)&&ll(e.catch),setImmediate:lB,asap:lR,isIterable:lP,isSafeIterable:e=>null!=e&&s7(e,s6)&&lP(e)},lL=lN.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lM=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),lU=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function lj(e,t){return lN.isArray(e)?e.map(e=>lj(e,t)):function(e){let t=0,o=e.length;for(;t<o;){let o=e.charCodeAt(t);if(9!==o&&32!==o)break;t+=1}for(;o>t;){let t=e.charCodeAt(o-1);if(9!==t&&32!==t)break;o-=1}return 0===t&&o===e.length?e:e.slice(t,o)}(String(e).replace(t,""))}function l$(e){let t=Object.create(null);return lN.forEach(e.toJSON(),(e,o)=>{t[o]=lj(e,lU)}),t}let lV=Symbol("internals");function lz(e){return e&&String(e).trim().toLowerCase()}function lq(e){return!1===e||null==e?e:lN.isArray(e)?e.map(lq):lj(String(e),lM)}function lH(e,t,o,n,i){if(lN.isFunction(n))return n.call(this,t,o);if(i&&(t=o),lN.isString(t)){if(lN.isString(n))return -1!==t.indexOf(n);if(lN.isRegExp(n))return n.test(t)}}class lY{constructor(e){e&&this.set(e)}set(e,t,o){let n=this;function i(e,t,o){let i=lz(t);if(!i)return;let r=lN.findKey(n,i);r&&void 0!==n[r]&&!0!==o&&(void 0!==o||!1===n[r])||(n[r||t]=lq(e))}let r=(e,t)=>lN.forEach(e,(e,o)=>i(e,o,t));if(lN.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let n;if(lN.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var a;let o,n,i,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){i=e.indexOf(":"),o=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!o||s[o]&&lL[o]||("set-cookie"===o?s[o]?s[o].push(n):s[o]=[n]:s[o]=s[o]?s[o]+", "+n:n)}),s),t)}else if(lN.isObject(e)&&lN.isSafeIterable(e)){let o=Object.create(null),n,i;for(let t of e){if(!lN.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],lN.hasOwnProp(o,i)?(n=o[i],o[i]=lN.isArray(n)?[...n,t[1]]:[n,t[1]]):o[i]=t[1]}r(o,t)}else null!=e&&i(t,e,o)}return this}get(e,t){if(e=lz(e)){let o=lN.findKey(this,e);if(o){let e=this[o];if(!t)return e;if(!0===t){let t,o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)o[t[1]]=t[2];return o}if(lN.isFunction(t))return t.call(this,e,o);if(lN.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=lz(e)){let o=lN.findKey(this,e);return!!(o&&void 0!==this[o]&&(!t||lH(this,this[o],o,t)))}return!1}delete(e,t){let o=this,n=!1;function i(e){if(e=lz(e)){let i=lN.findKey(o,e);i&&(!t||lH(o,o[i],i,t))&&(delete o[i],n=!0)}}return lN.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),o=t.length,n=!1;for(;o--;){let i=t[o];(!e||lH(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,o={};return lN.forEach(this,(n,i)=>{let r=lN.findKey(o,i);if(r){t[r]=lq(n),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o):String(i).trim();a!==i&&delete t[i],t[a]=lq(n),o[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return lN.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&lN.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let o=new this(e);return t.forEach(e=>o.set(e)),o}static accessor(e){let t=(this[lV]=this[lV]={accessors:{}}).accessors,o=this.prototype;function n(e){let n=lz(e);if(!t[n]){let i;i=lN.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(o,t+i,{__proto__:null,value:function(o,n,i){return this[t].call(this,e,o,n,i)},configurable:!0})}),t[n]=!0}}return lN.isArray(e)?e.forEach(n):n(e),this}}lY.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),lN.reduceDescriptors(lY.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),lN.freezeMethods(lY);class lW extends Error{static from(e,t,o,n,i,r){let a=new lW(e.message,t||e.code,o,n,i);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),r&&Object.assign(a,r),a}constructor(e,t,o,n,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){let e,t,o,n=this.config,i=n&&lN.hasOwnProp(n,"redact")?n.redact:void 0,r=lN.isArray(i)&&i.length>0?(e=new Set(i.map(e=>String(e).toLowerCase())),t=[],(o=n=>{let i;if(null===n||"object"!=typeof n||lN.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof lY&&(n=n.toJSON()),t.push(n),lN.isArray(n))i=[],n.forEach((e,t)=>{let n=o(e);lN.isUndefined(n)||(i[t]=n)});else{if(!lN.isPlainObject(n)&&function(e){if(lN.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(lN.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,r]of(i=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":o(r);lN.isUndefined(n)||(i[t]=n)}}return t.pop(),i}})(n)):lN.toJSONObject(n);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}lW.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",lW.ERR_BAD_OPTION="ERR_BAD_OPTION",lW.ECONNABORTED="ECONNABORTED",lW.ETIMEDOUT="ETIMEDOUT",lW.ECONNREFUSED="ECONNREFUSED",lW.ERR_NETWORK="ERR_NETWORK",lW.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",lW.ERR_DEPRECATED="ERR_DEPRECATED",lW.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",lW.ERR_BAD_REQUEST="ERR_BAD_REQUEST",lW.ERR_CANCELED="ERR_CANCELED",lW.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",lW.ERR_INVALID_URL="ERR_INVALID_URL",lW.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let lG=lW;function lK(e){return lN.isPlainObject(e)||lN.isArray(e)}function lJ(e){return lN.endsWith(e,"[]")?e.slice(0,-2):e}function lX(e,t,o){return e?e.concat(t).map(function(e,t){return e=lJ(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}let lQ=lN.toFlatObject(lN,{},null,function(e){return/^is[A-Z]/.test(e)}),lZ=function(e,t,o){if(!lN.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(o=lN.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!lN.isUndefined(t[e])})).metaTokens,i=o.visitor||h,r=o.dots,a=o.indexes,s=o.Blob||"u">typeof Blob&&Blob,l=void 0===o.maxDepth?100:o.maxDepth,c=s&&lN.isSpecCompliantForm(t),d=[];if(!lN.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(lN.isDate(e))return e.toISOString();if(lN.isBoolean(e))return e.toString();if(!c&&lN.isBlob(e))throw new lG("Blob is not supported. Use a Buffer instead.");if(lN.isArrayBuffer(e)||lN.isTypedArray(e)){if(c&&"function"==typeof s)return new s([e]);if("u">typeof Buffer)return Buffer.from(e);throw new lG("Blob is not supported. Use a Buffer instead.",lG.ERR_NOT_SUPPORT)}return e}function f(e){if(e>l)throw new lG("Object is too deeply nested ("+e+" levels). Max depth: "+l,lG.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,o,i){let s=e;if(lN.isReactNative(t)&&lN.isReactNativeBlob(e))return t.append(lX(i,o,r),u(e)),!1;if(e&&!i&&"object"==typeof e)if(lN.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=function(e){if(1/0===l)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,o){if(!lN.isObject(o))return o;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(o),f(1+t.length-1),o})}(e);else{var c;if(lN.isArray(e)&&(c=e,lN.isArray(c)&&!c.some(lK))||(lN.isFileList(e)||lN.endsWith(o,"[]"))&&(s=lN.toArray(e)))return o=lJ(o),s.forEach(function(e,n){lN.isUndefined(e)||null===e||t.append(!0===a?lX([o],n,r):null===a?o:o+"[]",u(e))}),!1}return!!lK(e)||(t.append(lX(i,o,r),u(e)),!1)}let m=Object.assign(lQ,{defaultVisitor:h,convertValue:u,isVisitable:lK});if(!lN.isObject(e))throw TypeError("data must be an object");return!function e(o,n,r=0){if(!lN.isUndefined(o)){if(f(r),-1!==d.indexOf(o))throw Error("Circular reference detected in "+n.join("."));d.push(o),lN.forEach(o,function(o,a){!0===(!(lN.isUndefined(o)||null===o)&&i.call(t,o,lN.isString(a)?a.trim():a,n,m))&&e(o,n?n.concat(a):[a],r+1)}),d.pop()}}(e),t};function l0(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function l1(e,t){this._pairs=[],e&&lZ(e,this,t)}let l2=l1.prototype;function l3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function l5(e,t,o){let n;if(!t)return e;e=e||"";let i=lN.isFunction(o)?{serialize:o}:o,r=lN.getSafeProp(i,"encode")||l3,a=lN.getSafeProp(i,"serialize");if(n=a?a(t,i):lN.isURLSearchParams(t)?t.toString():new l1(t,i).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}l2.append=function(e,t){this._pairs.push([e,t])},l2.toString=function(e){let t=e?t=>e.call(this,t,l0):l0;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let l4=class{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){lN.forEach(this.handlers,function(t){null!==t&&e(t)})}},l6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},l8="u">typeof URLSearchParams?URLSearchParams:l1,l9="u">typeof FormData?FormData:null,l7="u">typeof Blob?Blob:null,ce="u">typeof window&&"u">typeof document,ct="object"==typeof navigator&&navigator||void 0,co=ce&&(!ct||0>["ReactNative","NativeScript","NS"].indexOf(ct.product)),cn="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ci=ce&&window.location.href||"http://localhost",cr={...tI,isBrowser:!0,classes:{URLSearchParams:l8,FormData:l9,Blob:l7},protocols:["http","https","file","blob","url","data"]};function ca(e){if(e>100)throw new lG("FormData field is too deeply nested ("+e+" levels). Max depth: 100",lG.ERR_FORM_DATA_DEPTH_EXCEEDED)}let cs=function(e){if(lN.isFormData(e)&&lN.isFunction(e.entries)){let t={};return lN.forEachEntry(e,(e,o)=>{!function e(t,o,n,i){ca(i);let r=t[i++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=i>=t.length;return(r=!r&&lN.isArray(n)?n.length:r,s)?lN.hasOwnProp(n,r)?n[r]=lN.isArray(n[r])?n[r].concat(o):[n[r],o]:n[r]=o:(lN.hasOwnProp(n,r)&&lN.isObject(n[r])||(n[r]=[]),e(t,o,n[r],i)&&lN.isArray(n[r])&&(n[r]=function(e){let t,o,n={},i=Object.keys(e),r=i.length;for(t=0;t<r;t++)n[o=i[t]]=e[o];return n}(n[r]))),!a}(function(e){let t,o=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)ca(o.length),o.push("[]"===t[0]?"":t[1]||t[0]);return o}(e),o,t,0)}),t}return null},cl=(e,t)=>null!=e&&lN.hasOwnProp(e,t)?e[t]:void 0,cc={transitional:l6,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let o,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=lN.isObject(e);if(r&&lN.isHTMLForm(e)&&(e=new FormData(e)),lN.isFormData(e))return i?JSON.stringify(cs(e)):e;if(lN.isArrayBuffer(e)||lN.isBuffer(e)||lN.isStream(e)||lN.isFile(e)||lN.isBlob(e)||lN.isReadableStream(e))return e;if(lN.isArrayBufferView(e))return e.buffer;if(lN.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=cl(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return lZ(e,new cr.classes.URLSearchParams,{visitor:function(e,t,o,n){return cr.isNode&&lN.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((o=lN.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=cl(this,"env"),i=n&&n.FormData;return lZ(o?{"files[]":e}:e,i&&new i,t)}}if(r||i){t.setContentType("application/json",!1);var a=e;if(lN.isString(a))try{return(0,JSON.parse)(a),lN.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=cl(this,"transitional")||cc.transitional,o=t&&t.forcedJSONParsing,n=cl(this,"responseType"),i="json"===n;if(lN.isResponse(e)||lN.isReadableStream(e))return e;if(e&&lN.isString(e)&&(o&&!n||i)){let o=t&&t.silentJSONParsing;try{return JSON.parse(e,cl(this,"parseReviver"))}catch(e){if(!o&&i){if("SyntaxError"===e.name)throw lG.from(e,lG.ERR_BAD_RESPONSE,this,null,cl(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cr.classes.FormData,Blob:cr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function cd(e,t){let o=this||cc,n=t||o,i=lY.from(n.headers),r=n.data;return lN.forEach(e,function(e){r=e.call(o,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function cu(e){return!!(e&&e.__CANCEL__)}lN.forEach(["delete","get","head","post","put","patch","query"],e=>{cc.headers[e]={}});let cf=class extends lG{constructor(e,t,o){super(null==e?"canceled":e,lG.ERR_CANCELED,t,o),this.name="CanceledError",this.__CANCEL__=!0}};function ch(e,t,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new lG("Request failed with status code "+o.status,o.status>=400&&o.status<500?lG.ERR_BAD_REQUEST:lG.ERR_BAD_RESPONSE,o.config,o.request,o))}let cm=function(e,t){let o,n=Array(e=e||10),i=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),c=i[a];o||(o=l),n[r]=s,i[r]=l;let d=a,u=0;for(;d!==r;)u+=n[d++],d%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),l-o<t)return;let f=c&&l-c;return f?Math.round(1e3*u/f):void 0}},cb=function(e,t){let o,n,i=0,r=1e3/t,a=(t,r=Date.now())=>{i=r,o=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=r?a(e,t):(o=e,n||(n=setTimeout(()=>{n=null,a(o)},r-s)))},()=>o&&a(o)]},cp=(e,t,o=3)=>{let n=0,i=cm(50,250);return cb(o=>{if(!o||"number"!=typeof o.loaded)return;let r=o.loaded,a=o.lengthComputable?o.total:void 0,s=null!=a?Math.min(r,a):r,l=Math.max(0,s-n),c=i(l);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:o,lengthComputable:null!=a,[t?"download":"upload"]:!0})},o)},cF=(e,t)=>{let o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},cg=e=>(...t)=>lN.asap(()=>e(...t)),cv=cr.hasStandardBrowserEnv?(s=new URL(cr.origin),l=cr.navigator&&/(msie|trident)/i.test(cr.navigator.userAgent),e=>(e=new URL(e,cr.origin),s.protocol===e.protocol&&s.host===e.host&&(l||s.port===e.port))):()=>!0,c_=cr.hasStandardBrowserEnv?{write(e,t,o,n,i,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];lN.isNumber(o)&&s.push(`expires=${new Date(o).toUTCString()}`),lN.isString(n)&&s.push(`path=${n}`),lN.isString(i)&&s.push(`domain=${i}`),!0===r&&s.push("secure"),lN.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let o=0;o<t.length;o++){let n=t[o].replace(/^\s+/,""),i=n.indexOf("=");if(-1!==i&&n.slice(0,i)===e)try{return decodeURIComponent(n.slice(i+1))}catch(e){return n.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},cy=/^https?:(?!\/\/)/i,cw=/[\t\n\r]/g;function cE(e,t){if("string"==typeof e&&cy.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(cw,"")))throw new lG('Invalid URL: missing "//" after protocol',lG.ERR_INVALID_URL,t)}function cC(e,t,o,n){cE(t,n);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(i||!1===o)?(cE(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let ck=e=>e instanceof lY?{...e}:e;function cA(e,t){e=e||{},t=t||{};let o=Object.create(null);function n(e,t,o,n){return lN.isPlainObject(e)&&lN.isPlainObject(t)?lN.merge.call({caseless:n},e,t):lN.isPlainObject(t)?lN.merge({},t):lN.isArray(t)?t.slice():t}function i(e,t,o,i){return lN.isUndefined(t)?lN.isUndefined(e)?void 0:n(void 0,e,o,i):n(e,t,o,i)}function r(e,t){if(!lN.isUndefined(t))return n(void 0,t)}function a(e,t){return lN.isUndefined(t)?lN.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(o,i,r){return lN.hasOwnProp(t,r)?n(o,i):lN.hasOwnProp(e,r)?n(void 0,o):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,o)=>i(ck(e),ck(t),o,!0)};return lN.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let r=lN.hasOwnProp(l,n)?l[n]:i,a=r(lN.hasOwnProp(e,n)?e[n]:void 0,lN.hasOwnProp(t,n)?t[n]:void 0,n);lN.isUndefined(a)&&r!==s||(o[n]=a)}),lN.hasOwnProp(t,"validateStatus")&&lN.isUndefined(t.validateStatus)&&!1===function(o){let n=lN.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!lN.isUndefined(n)){if(!lN.isPlainObject(n))return;else if(lN.hasOwnProp(n,o))return n[o]}let i=lN.hasOwnProp(e,"transitional")?e.transitional:void 0;if(lN.isPlainObject(i)&&lN.hasOwnProp(i,o))return i[o]}("validateStatusUndefinedResolves")&&(lN.hasOwnProp(e,"validateStatus")?o.validateStatus=n(void 0,e.validateStatus):delete o.validateStatus),o}let cx=["content-type","content-length"],cD=function(e){let t=cA({},e),o=e=>lN.hasOwnProp(t,e)?t[e]:void 0,n=o("data"),i=o("withXSRFToken"),r=o("xsrfHeaderName"),a=o("xsrfCookieName"),s=o("headers"),l=o("auth"),c=o("baseURL"),d=o("allowAbsoluteUrls"),u=o("url");if(t.headers=s=lY.from(s),t.url=l5(cC(c,u,d,t),o("params"),o("paramsSerializer")),l){let t=lN.getSafeProp(l,"username")||"",o=lN.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(o?encodeURIComponent(o).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw lG.from(t,lG.ERR_BAD_OPTION_VALUE,e)}}if(lN.isFormData(n))if(cr.hasStandardBrowserEnv||cr.hasStandardBrowserWebWorkerEnv||lN.isReactNative(n))s.setContentType(void 0);else{var f,h;lN.isFunction(n.getHeaders)&&(f=s,h=n.getHeaders(),"content-only"!==o("formDataHeaderPolicy")?f.set(h):Object.entries(h||{}).forEach(([e,t])=>{cx.includes(e.toLowerCase())&&f.set(e,t)}))}if(cr.hasStandardBrowserEnv&&(lN.isFunction(i)&&(i=i(t)),!0===i||null==i&&cv(t.url))){let e=r&&a&&c_.read(a);e&&s.set(r,e)}return t},cS="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){var n;let i,r,a,s,l,c,d=cD(e),u=d.data,f=lY.from(d.headers).normalize(),{responseType:h,onUploadProgress:m,onDownloadProgress:b}=d;function p(){s&&s(),l&&l(),d.cancelToken&&d.cancelToken.unsubscribe(i),d.signal&&d.signal.removeEventListener("abort",i)}let F=new XMLHttpRequest;function g(){if(!F)return;let n=lY.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders());ch(function(e){t(e),p()},function(e){o(e),p()},{data:h&&"text"!==h&&"json"!==h?F.response:F.responseText,status:F.status,statusText:F.statusText,headers:n,config:e,request:F}),F=null}F.open(d.method.toUpperCase(),d.url,!0),F.timeout=d.timeout,"onloadend"in F?F.onloadend=g:F.onreadystatechange=function(){!F||4!==F.readyState||(0!==F.status||F.responseURL&&F.responseURL.startsWith("file:"))&&setTimeout(g)},F.onabort=function(){F&&(o(new lG("Request aborted",lG.ECONNABORTED,e,F)),p(),F=null)},F.onerror=function(t){let n=new lG(t&&t.message?t.message:"Network Error",lG.ERR_NETWORK,e,F);n.event=t||null,o(n),p(),F=null},F.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",n=d.transitional||l6;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),o(new lG(t,n.clarifyTimeoutError?lG.ETIMEDOUT:lG.ECONNABORTED,e,F)),p(),F=null},void 0===u&&f.setContentType(null),"setRequestHeader"in F&&lN.forEach(l$(f),function(e,t){F.setRequestHeader(t,e)}),lN.isUndefined(d.withCredentials)||(F.withCredentials=!!d.withCredentials),h&&"json"!==h&&(F.responseType=d.responseType),b&&([a,l]=cp(b,!0),F.addEventListener("progress",a)),m&&F.upload&&([r,s]=cp(m),F.upload.addEventListener("progress",r),F.upload.addEventListener("loadend",s)),(d.cancelToken||d.signal)&&(i=t=>{F&&(o(!t||t.type?new cf(null,e,F):t),F.abort(),p(),F=null)},d.cancelToken&&d.cancelToken.subscribe(i),d.signal&&(d.signal.aborted?i():d.signal.addEventListener("abort",i)));let v=(n=d.url,(c=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&c[1]||"");if(v&&!cr.protocols.includes(v)){o(new lG("Unsupported protocol "+v+":",lG.ERR_BAD_REQUEST,e)),p();return}F.send(u||null)})},cT=function*(e,t){let o,n=e.byteLength;if(!t||n<t)return void(yield e);let i=0;for(;i<n;)o=i+t,yield e.slice(i,o),i=o},cO=async function*(e,t){for await(let o of cI(e))yield*cT(o,t)},cI=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:o}=await t.read();if(e)break;yield o}}finally{await t.cancel()}},cB=(e,t,o,n)=>{let i,r=cO(e,t),a=0,s=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await r.next();if(t){s(),e.close();return}let i=n.byteLength;if(o){let e=a+=i;o(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},cR=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,cP=(e,t,o)=>t+2<o&&cR(e.charCodeAt(t+1))&&cR(e.charCodeAt(t+2)),{isFunction:cN}=lN,cL=e=>{if(!lN.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},cM=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},cU=e=>{let t,o=void 0!==lN.global&&null!==lN.global?lN.global:globalThis,{ReadableStream:n,TextEncoder:i}=o,{fetch:r,Request:a,Response:s}=e=lN.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e),l=r?cN(r):"function"==typeof fetch,c=cN(a),d=cN(s);if(!l)return!1;let u=l&&cN(n),f=l&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),h=c&&u&&cM(()=>{let e=!1,t=new a(cr.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),m=d&&u&&cM(()=>lN.isReadableStream(new s("").body)),b={stream:m&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{b[e]||(b[e]=(t,o)=>{let n=t&&t[e];if(n)return n.call(t);throw new lG(`Response type '${e}' is not supported`,lG.ERR_NOT_SUPPORT,o)})});let p=async e=>{if(null==e)return 0;if(lN.isBlob(e))return e.size;if(lN.isSpecCompliantForm(e)){let t=new a(cr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return lN.isArrayBufferView(e)||lN.isArrayBuffer(e)?e.byteLength:(lN.isURLSearchParams(e)&&(e+=""),lN.isString(e))?(await f(e)).byteLength:void 0},F=async(e,t)=>{let o=lN.toFiniteNumber(e.getContentLength());return null==o?p(t):o};return async e=>{let t,{url:o,method:n,data:l,signal:d,cancelToken:f,timeout:g,onDownloadProgress:v,onUploadProgress:_,responseType:y,headers:w,withCredentials:E="same-origin",fetchOptions:C,maxContentLength:k,maxBodyLength:A}=cD(e),x=lN.isNumber(k)&&k>-1,D=lN.isNumber(A)&&A>-1,S=r||fetch;y=y?(y+"").toLowerCase():"text";let T=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let o=new AbortController,n=!1,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;o.abort(t instanceof lG?t:new cf(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,i(new lG(`timeout of ${t}ms exceeded`,lG.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i,{once:!0}));let{signal:s}=o;return s.unsubscribe=()=>lN.asap(a),s})([d,f&&f.toAbortSignal()],g),O=null,I=T&&T.unsubscribe&&(()=>{T.unsubscribe()}),B=null,R=()=>new lG("Request body larger than maxBodyLength limit",lG.ERR_BAD_REQUEST,e,O);try{var P;let r,d,f,g,N=(d="auth",lN.hasOwnProp(e,d)?e[d]:void 0);if(N){let e=lN.getSafeProp(N,"username")||"",t=lN.getSafeProp(N,"password")||"";r={username:e,password:t}}if(f=(P=o).indexOf("://"),g=P,-1!==f&&(g=g.slice(f+3)),g.includes("@")||g.includes(":")){let e=new URL(o,cr.origin);if(!r&&(e.username||e.password)){let t=cL(e.username),o=cL(e.password);r={username:t,password:o}}(e.username||e.password)&&(e.username="",e.password="",o=e.href)}if(r){let e;w.delete("authorization"),w.set("Authorization","Basic "+btoa((e=(r.username||"")+":"+(r.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(x&&"string"==typeof o&&o.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let o=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(o)){let e=n.length,t=n.length;for(let o=0;o<t;o++)if(37===n.charCodeAt(o)&&o+2<t){let t=n.charCodeAt(o+1),i=n.charCodeAt(o+2);cR(t)&&cR(i)&&(e-=2,o+=2)}let o=0,i=t-1,r=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));i>=0&&(61===n.charCodeAt(i)?(o++,i--):r(i)&&(o++,i-=3)),1===o&&i>=0&&(61===n.charCodeAt(i)?o++:r(i)&&o++);let a=3*Math.floor(e/4)-(o||0);return a>0?a:0}let i=0;for(let e=0,t=n.length;e<t;e++){let o=n.charCodeAt(e);if(37===o&&cP(n,e,t))i+=1,e+=2;else if(o<128)i+=1;else if(o<2048)i+=2;else if(o>=55296&&o<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}(o)>k)throw new lG("maxContentLength size of "+k+" exceeded",lG.ERR_BAD_RESPONSE,e,O);if(D&&"get"!==n&&"head"!==n){let e=await p(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>A))throw R()}let L=D&&(lN.isReadableStream(l)||lN.isStream(l)),M=(e,t,o)=>cB(e,65536,e=>{if(D&&e>A)throw B=R();t&&t(e)},o);if(h&&"get"!==n&&"head"!==n&&(_||L)){if(t=null==t?await F(w,l):t,0!==t||L){let e,n=new a(o,{method:"POST",body:l,duplex:"half"});if(lN.isFormData(l)&&(e=n.headers.get("content-type"))&&w.setContentType(e),n.body){let[e,o]=_&&cF(t,cp(cg(_)))||[];l=M(n.body,e,o)}}}else if(L&&!c&&u&&"get"!==n&&"head"!==n)l=M(l);else if(L&&c&&!h&&"get"!==n&&"head"!==n)throw new lG("Stream request bodies are not supported by the current fetch implementation",lG.ERR_NOT_SUPPORT,e,O);lN.isString(E)||(E=E?"include":"omit");let U=c&&"credentials"in a.prototype;if(lN.isFormData(l)){let e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.18.1",!1);let j={...C,signal:T,method:n.toUpperCase(),headers:l$(w.normalize()),body:l,duplex:"half",credentials:U?E:void 0};O=c&&new a(o,j);let $=await (c?S(O,C):S(o,j)),V=lY.from($.headers);if(x){let t=lN.toFiniteNumber(V.getContentLength());if(null!=t&&t>k)throw new lG("maxContentLength size of "+k+" exceeded",lG.ERR_BAD_RESPONSE,e,O)}let z=m&&("stream"===y||"response"===y);if(m&&$.body&&(v||x||z&&I)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let o=lN.toFiniteNumber(V.getContentLength()),[n,i]=v&&cF(o,cp(cg(v),!0))||[];$=new s(cB($.body,65536,t=>{if(x&&t>k)throw new lG("maxContentLength size of "+k+" exceeded",lG.ERR_BAD_RESPONSE,e,O);n&&n(t)},()=>{i&&i(),I&&I()}),t)}y=y||"text";let q=await b[lN.findKey(b,y)||"text"]($,e);if(x&&!m&&!z){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof i?new i().encode(q).byteLength:q.length)),"number"==typeof t&&t>k)throw new lG("maxContentLength size of "+k+" exceeded",lG.ERR_BAD_RESPONSE,e,O)}return!z&&I&&I(),await new Promise((t,o)=>{ch(t,o,{data:q,headers:lY.from($.headers),status:$.status,statusText:$.statusText,config:e,request:O})})}catch(t){if(I&&I(),T&&T.aborted&&T.reason instanceof lG){let o=T.reason;throw o.config=e,O&&(o.request=O),t!==o&&Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o}if(B)throw O&&!B.request&&(B.request=O),B;if(t instanceof lG)throw O&&!t.request&&(t.request=O),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let o=new lG("Network Error",lG.ERR_NETWORK,e,O,t&&t.response);throw Object.defineProperty(o,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),o}throw lG.from(t,t&&t.code,e,O,t&&t.response)}}},cj=new Map,c$=e=>{let t=e&&e.env||{},{fetch:o,Request:n,Response:i}=t,r=[n,i,o],a=r.length,s,l,c=cj;for(;a--;)s=r[a],void 0===(l=c.get(s))&&c.set(s,l=a?new Map:cU(t)),c=l;return l};c$();let cV={http:null,xhr:cS,fetch:{get:c$}};lN.forEach(cV,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let cz=e=>`- ${e}`,cq=e=>lN.isFunction(e)||null===e||!1===e,cH=function(e,t){let o,n,{length:i}=e=lN.isArray(e)?e:[e],r={};for(let a=0;a<i;a++){let i;if(n=o=e[a],!cq(o)&&void 0===(n=cV[(i=String(o)).toLowerCase()]))throw new lG(`Unknown adapter '${i}'`);if(n&&(lN.isFunction(n)||(n=n.get(t))))break;r[i||"#"+a]=n}if(!n){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new lG("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(cz).join("\n"):" "+cz(e[0]):"as no adapter specified"),lG.ERR_NOT_SUPPORT)}return n};function cY(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cf(null,e)}function cW(e){return cY(e),e.headers=lY.from(e.headers),e.data=cd.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cH(e.adapter||cc.adapter,e)(e).then(function(t){cY(e),e.response=t;try{t.data=cd.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=lY.from(t.headers),t},function(t){if(!cu(t)&&(cY(e),t&&t.response)){e.response=t.response;try{t.response.data=cd.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=lY.from(t.response.headers)}return Promise.reject(t)})}let cG={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cG[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});let cK={};cG.transitional=function(e,t,o){function n(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,i,r)=>{if(!1===e)throw new lG(n(i," has been removed"+(t?" in "+t:"")),lG.ERR_DEPRECATED);return t&&!cK[i]&&(cK[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,i,r)}},cG.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};let cJ=function(e,t,o){if("object"!=typeof e||null===e)throw new lG("options must be an object",lG.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let r=n[i],a=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(a){let t=e[r],o=void 0===t||a(t,r,e);if(!0!==o)throw new lG("option "+r+" must be "+o,lG.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new lG("Unknown option "+r,lG.ERR_BAD_OPTION)}};class cX{constructor(e){this.defaults=e||{},this.interceptors={request:new l4,response:new l4}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let o=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),i=-1===n?"":o.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}}throw e}}_request(e,t){let o,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:r,headers:a}=t=cA(this.defaults,t);void 0!==i&&cJ(i,{silentJSONParsing:cG.transitional(cG.boolean),forcedJSONParsing:cG.transitional(cG.boolean),clarifyTimeoutError:cG.transitional(cG.boolean),legacyInterceptorReqResOrdering:cG.transitional(cG.boolean),advertiseZstdAcceptEncoding:cG.transitional(cG.boolean),validateStatusUndefinedResolves:cG.transitional(cG.boolean)},!1),null!=r&&(lN.isFunction(r)?t.paramsSerializer={serialize:r}:cJ(r,{encode:cG.function,serialize:cG.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),cJ(t,{baseUrl:cG.spelling("baseURL"),withXsrfToken:cG.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&lN.merge(a.common,a[t.method]);a&&lN.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=lY.concat(s,a);let l=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let o=t.transitional||l6;o&&o.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let u=0;if(!c){let e=[cW.bind(this),void 0];for(e.unshift(...l),e.push(...d),n=e.length,o=Promise.resolve(t);u<n;)o=o.then(e[u++],e[u++]);return o}n=l.length;let f=t;for(;u<n;){let e=l[u++],t=l[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{o=cW.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,n=d.length;u<n;)o=o.then(d[u++],d[u++]);return o}getUri(e){return l5(cC((e=cA(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}lN.forEach(["delete","get","head","options"],function(e){cX.prototype[e]=function(t,o){return this.request(cA(o||{},{method:e,url:t,data:o&&lN.hasOwnProp(o,"data")?o.data:void 0}))}}),lN.forEach(["post","put","patch","query"],function(e){function t(t){return function(o,n,i){return this.request(cA(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:o,data:n}))}}cX.prototype[e]=t(),"query"!==e&&(cX.prototype[e+"Form"]=t(!0))});let cQ=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const o=this;this.promise.then(e=>{if(!o._listeners)return;let t=o._listeners.length;for(;t-- >0;)o._listeners[t](e);o._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{o.subscribe(e),t=e}).then(e);return n.cancel=function(){o.unsubscribe(t)},n},e(function(e,n,i){o.reason||(o.reason=new cf(e,n,i),t(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},cZ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cZ).forEach(([e,t])=>{cZ[t]=e});let c0=function e(t){let o=new cX(t),n=s3(cX.prototype.request,o);return lN.extend(n,cX.prototype,o,{allOwnKeys:!0}),lN.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(cA(t,o))},n}(cc);c0.Axios=cX,c0.CanceledError=cf,c0.CancelToken=cQ,c0.isCancel=cu,c0.VERSION="1.18.1",c0.toFormData=lZ,c0.AxiosError=lG,c0.Cancel=c0.CanceledError,c0.all=function(e){return Promise.all(e)},c0.spread=function(e){return function(t){return e.apply(null,t)}},c0.isAxiosError=function(e){return lN.isObject(e)&&!0===e.isAxiosError},c0.mergeConfig=cA,c0.AxiosHeaders=lY,c0.formToJSON=e=>cs(lN.isHTMLForm(e)?new FormData(e):e),c0.getAdapter=cH,c0.HttpStatusCode=cZ,c0.default=c0;class c1{constructor(e){this.httpClient=e}createAlarm(e,t,o){return this.httpClient.request({method:"POST",url:dm`alarm`,queryParams:t,data:e,options:o})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:dm`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:dm`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:dm`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:dm`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:dm`alarm/${e}`,options:t})}updateAlarm(e,t,o){return this.httpClient.request({method:"PUT",url:dm`alarm/${e}`,data:t,options:o})}getAssetLinks(e,t,o){return this.httpClient.request({method:"GET",url:dm`alarm/${e}/assets`,queryParams:t,options:o})}}class c2{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:dm`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:dm`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:dm`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,o){return this.httpClient.request({method:"GET",url:dm`gateway/tunnel/${e}/${t}`,options:o})}getActiveTunnelInfo(e,t,o,n,i){return this.httpClient.request({method:"GET",url:dm`gateway/tunnel/${e}/${t}/${o}/${n}`,options:i})}}class c3{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:dm`asset/predicted/${e}/${t}`,data:o,options:n})}writePredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"PUT",url:dm`asset/predicted/${e}/${t}`,data:o,options:n})}}class c5{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:dm`agent/assetDiscovery/${e}`,queryParams:t,options:o})}doProtocolAssetImport(e,t,o,n){return this.httpClient.request({method:"POST",url:dm`agent/assetImport/${e}`,queryParams:o,data:t,options:n})}doProtocolInstanceDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:dm`agent/instanceDiscovery/${e}`,queryParams:t,options:o})}}class c4{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:dm`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:dm`info`,options:e})}}class c6{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:dm`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:dm`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:dm`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:dm`map/getCustomMapInfo`,options:e})}getTile(e,t,o,n){return this.httpClient.request({method:"GET",url:dm`map/tile/${e}/${t}/${o}`,options:n})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:dm`map/upload`,queryParams:e,options:t})}}class c8{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:dm`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:dm`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:dm`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:dm`syslog/event`,queryParams:e,options:t})}}class c9{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:dm`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:dm`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:dm`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:dm`dashboard/query`,data:e,options:t})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:dm`dashboard/${e}/${t}`,options:o})}get(e,t,o){return this.httpClient.request({method:"GET",url:dm`dashboard/${e}/${t}`,options:o})}}class c7{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:dm`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:dm`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:dm`flow/${e}`,options:t})}}class de{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:dm`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:dm`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:dm`asset/datapoint/${e}/${t}`,data:o,options:n})}}class dt{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:dm`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:dm`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:dm`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:dm`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:dm`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:dm`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:dm`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:dm`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,o){return this.httpClient.request({method:"GET",url:dm`user/${e}/disconnect/${t}`,options:o})}requestPasswordReset(e,t,o){return this.httpClient.request({method:"PUT",url:dm`user/${e}/request-password-reset/${t}`,options:o})}updatePassword(e,t,o,n){return this.httpClient.request({method:"PUT",url:dm`user/${e}/reset-password/${t}`,data:o,options:n})}resetSecret(e,t,o){return this.httpClient.request({method:"GET",url:dm`user/${e}/reset-secret/${t}`,options:o})}updateRoles(e,t,o){return this.httpClient.request({method:"PUT",url:dm`user/${e}/roles`,data:t,options:o})}getUserRealmRoles(e,t,o){return this.httpClient.request({method:"GET",url:dm`user/${e}/userRealmRoles/${t}`,options:o})}updateUserRealmRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:dm`user/${e}/userRealmRoles/${t}`,data:o,options:n})}getUserClientRoles(e,t,o,n){return this.httpClient.request({method:"GET",url:dm`user/${e}/userRoles/${t}/${o}`,options:n})}updateUserClientRoles(e,t,o,n,i){return this.httpClient.request({method:"PUT",url:dm`user/${e}/userRoles/${t}/${o}`,data:n,options:i})}getUserSessions(e,t,o){return this.httpClient.request({method:"GET",url:dm`user/${e}/userSessions/${t}`,options:o})}create(e,t,o){return this.httpClient.request({method:"POST",url:dm`user/${e}/users`,data:t,options:o})}update(e,t,o){return this.httpClient.request({method:"PUT",url:dm`user/${e}/users`,data:t,options:o})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:dm`user/${e}/users/${t}`,options:o})}getClientRoles(e,t,o){return this.httpClient.request({method:"GET",url:dm`user/${e}/${t}/roles`,options:o})}updateClientRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:dm`user/${e}/${t}/roles`,data:o,options:n})}get(e,t,o){return this.httpClient.request({method:"GET",url:dm`user/${e}/${t}`,options:o})}}class dn{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:dm`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,o){return this.httpClient.request({method:"GET",url:dm`model/assetInfo/${e}`,queryParams:t,options:o})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:dm`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:dm`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:dm`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:dm`model/valueDescriptors`,queryParams:e,options:t})}}class di{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:dm`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:dm`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:dm`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,o){return this.httpClient.request({method:"PUT",url:dm`provisioning/${e}`,data:t,options:o})}}class dr{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:dm`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:dm`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:dm`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:dm`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:dm`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:dm`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:dm`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:dm`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:dm`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:dm`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:dm`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:dm`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:dm`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,o){return this.httpClient.request({method:"DELETE",url:dm`asset/user/link/${e}/${t}`,options:o})}deleteUserAssetLink(e,t,o,n){return this.httpClient.request({method:"DELETE",url:dm`asset/user/link/${e}/${t}/${o}`,options:n})}get(e,t){return this.httpClient.request({method:"GET",url:dm`asset/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:dm`asset/${e}`,data:t,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,o,n){return this.httpClient.request({method:"PUT",url:dm`asset/${e}/attribute/${t}`,data:o,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,o,n,i){return this.httpClient.request({method:"PUT",url:dm`asset/${e}/attribute/${t}/${o}`,data:n,options:i})}updateParent(e,t,o){return this.httpClient.request({method:"PUT",url:dm`asset/${e}/child`,queryParams:t,options:o})}}class da{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:dm`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:dm`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:dm`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:dm`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:dm`realm/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:dm`realm/${e}`,data:t,options:o})}}class ds{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:dm`console/register`,data:e,options:t})}}class dl{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:dm`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:dm`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:dm`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,o){return this.httpClient.request({method:"GET",url:dm`rules/asset/for/${e}`,queryParams:t,options:o})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:dm`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:dm`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:dm`rules/asset/${e}`,data:t,options:o})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:dm`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:dm`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:dm`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:dm`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:dm`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,o){return this.httpClient.request({method:"GET",url:dm`rules/realm/for/${e}`,queryParams:t,options:o})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:dm`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:dm`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:dm`rules/realm/${e}`,data:t,options:o})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:dm`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:dm`rules/${e}`,options:t})}updateGlobalRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:dm`rules/${e}`,data:t,options:o})}}class dc{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:dm`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:dm`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:dm`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:dm`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:dm`notification/${e}`,options:t})}notificationAcknowledged(e,t,o,n){return this.httpClient.request({method:"PUT",url:dm`notification/${e}/acknowledged`,queryParams:o,data:t,options:n})}notificationDelivered(e,t,o){return this.httpClient.request({method:"PUT",url:dm`notification/${e}/delivered`,queryParams:t,options:o})}}class dd{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:dm`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:dm`configuration/manager`,data:e,options:t})}fileUpload(e,t,o){return this.httpClient.request({method:"POST",url:dm`configuration/manager/file`,queryParams:t,data:e,options:o})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:dm`configuration/manager/image/${e}`,options:t})}}class du{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:dm`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:dm`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:dm`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:dm`gateway/connection/${e}`,options:t})}setConnection(e,t,o){return this.httpClient.request({method:"PUT",url:dm`gateway/connection/${e}`,data:t,options:o})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:dm`gateway/status/${e}`,options:t})}}class df{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:dm`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:dm`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:dm`apps/info`,options:e})}}class dh{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:dm`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:dm`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:dm`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:dm`service/global`,data:e,options:t})}deregisterService(e,t,o){return this.httpClient.request({method:"DELETE",url:dm`service/${e}/${t}`,options:o})}getService(e,t,o){return this.httpClient.request({method:"GET",url:dm`service/${e}/${t}`,options:o})}heartbeat(e,t,o){return this.httpClient.request({method:"PUT",url:dm`service/${e}/${t}`,options:o})}}function dm(e,...t){let o="";for(let n=0;n<t.length;n++)o+=e[n],o+=encodeURIComponent(t[n]);return o+e[e.length-1]}class db{constructor(e,t=c0.create()){this._alarmResource=new dF(e,t),this._gatewayServiceResource=new dg(e,t),this._assetPredictedDatapointResource=new dv(e,t),this._agentResource=new d_(e,t),this._statusResource=new dy(e,t),this._mapResource=new dw(e,t),this._syslogResource=new dE(e,t),this._dashboardResource=new dC(e,t),this._flowResource=new dk(e,t),this._assetDatapointResource=new dA(e,t),this._userResource=new dx(e,t),this._assetModelResource=new dD(e,t),this._provisioningResource=new dS(e,t),this._assetResource=new dT(e,t),this._realmResource=new dO(e,t),this._consoleResource=new dI(e,t),this._rulesResource=new dB(e,t),this._notificationResource=new dR(e,t),this._configurationResource=new dP(e,t),this._gatewayClientResource=new dN(e,t),this._appResource=new dL(e,t),this._externalServiceResource=new dM(e,t),this._assetResource=new dT(e,t)}get AlarmResource(){return this._alarmResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get AgentResource(){return this._agentResource}get StatusResource(){return this._statusResource}get MapResource(){return this._mapResource}get SyslogResource(){return this._syslogResource}get DashboardResource(){return this._dashboardResource}get FlowResource(){return this._flowResource}get AssetDatapointResource(){return this._assetDatapointResource}get UserResource(){return this._userResource}get AssetModelResource(){return this._assetModelResource}get ProvisioningResource(){return this._provisioningResource}get AssetResource(){return this._assetResource}get RealmResource(){return this._realmResource}get ConsoleResource(){return this._consoleResource}get RulesResource(){return this._rulesResource}get NotificationResource(){return this._notificationResource}get ConfigurationResource(){return this._configurationResource}get GatewayClientResource(){return this._gatewayClientResource}get AppResource(){return this._appResource}get ExternalServiceResource(){return this._externalServiceResource}}class dp{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}(t,e.options);let o=e.copyFn;return this.axios.request(t).then(e=>(o&&e.data&&(e.originalData=e.data,e.data=o(e.data)),e))}}class dF extends c1{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dg extends c2{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dv extends c3{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class d_ extends c5{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dy extends c4{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dw extends c6{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dE extends c8{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dC extends c9{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dk extends c7{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dA extends de{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dx extends dt{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dD extends dn{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dS extends di{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dT extends dr{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dO extends da{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dI extends ds{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dB extends dl{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dR extends dc{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dP extends dd{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dN extends du{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dL extends df{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}class dM extends dh{constructor(e,t=c0.create()){t.defaults.baseURL=e,super(new dp(t))}}var dU=o(8183),dj=o.n(dU);c0.isAxiosError;let d$=new class{get api(){return this._client}constructor(){this._axiosInstance=c0.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>dj().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new db(e,this._axiosInstance)}};var dV=function(e,t,o,n){return new(o||(o=Promise))(function(i,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};(ey=tA||(tA={})).DISCONNECTED="DISCONNECTED",ey.CONNECTED="CONNECTED",ey.CONNECTING="CONNECTING";let dz="SUBSCRIBED:",dq="UNAUTHORIZED:",dH="TRIGGERED:",dY="EVENT:";class dW{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=dG.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tA.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let o=e.indexOf(t);o>=0&&e.splice(o,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tA.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tA.CONNECTING),this._connectingDeferred=new sX,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=dG.MIN_RECONNECT_DELAY,this._onStatusChanged(tA.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tA.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let o={eventSubscription:e,callback:t,deferred:new sX};return null!=this._pendingSubscription||this._status!==tA.CONNECTED?(this._queuedSubscriptions.push(o),o.deferred.promise):(this._pendingSubscription=o,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return dV(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tA.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tA.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,o){return dV(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,i="AssetEvent"+dW._subscriptionCounter++;if(!this._assetEventPromise){let e;ud.authenticated||(e={filterType:"asset",realm:ud.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(i,e=>{let t=e.asset.id;n?n.find(e=>t===e)&&o(e):e.asset.realm===ud.displayRealm&&o(e)}),this._assetEventPromise.then(()=>{try{if(n&&t){let e={messageID:"read-assets:"+n.join(",")+":"+i,eventType:"read-assets",assetQuery:{ids:n}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(i)&&e.assets.forEach(e=>{o({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),i&&this.unsubscribe(i),t}return i})})}subscribeAttributeEvents(e,t,o){return dV(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0],i=n?e.map(e=>e.id):e,r=n?e:void 0,a="AttributeEvent"+dW._subscriptionCounter++;if(!this._attributeEventPromise){let e;ud.authenticated||(e={filterType:"asset",realm:ud.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let r=t.ref;n?e.forEach(e=>{r.id===e.id&&r.name===e.name&&o(t)}):i?i.find(e=>r.id===e)&&o(t):t.realm===ud.displayRealm&&o(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&i){let e={messageID:"read-assets:"+i.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,o])=>{(!r||r.find(o=>o.id===e.id&&o.name===t))&&s({eventType:"attribute",timestamp:o.timestamp,value:o.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tA.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let o=e.deferred;e.deferred=null,o&&o.resolve(t)},t=>{let o=e.deferred;e.deferred=null,o&&o.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let o=this._subscriptionMap.get(e);o&&o.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tA.CONNECTED&&this._onStatusChanged(tA.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tA.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<dG.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(dG.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}dW.MIN_RECONNECT_DELAY=0,dW.MAX_RECONNECT_DELAY=3e4,dW._subscriptionCounter=0;class dG extends dW{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+ud.config.realm;return this._connectDeferred=new sX,(ud.authenticated?ud.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(dz)){let e=JSON.parse(t.substring(dz.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&o.resolve(e.subscriptionId)}else if(t.startsWith(dq)){let e=JSON.parse(t.substring(dq.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),o.reject("Unauthorized"))}else if(t.startsWith(dH)){let e=JSON.parse(t.substring(dH.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(dY)){let e=JSON.parse(t.substring(dY.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new sX,e.subscriptionId||(e.subscriptionId=dG._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=dY+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new sX;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(dY+JSON.stringify(e)),t.promise}}dG._subscriptionCounter=1;let dK=["__proto__","constructor","prototype"];function dJ(e){return!("string"!=typeof e||0===e.length||e.length>128||dK.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function dX(e){return!(!dJ(e)||e.indexOf("/")>-1)}let dQ={lng:dX,ns:function(e){return dJ(e)}};function dZ(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function d0(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let d1=/\{\{(.+?)\}\}/g;function d2(e,t){let o=!1,n=e.replace(d1,(e,n)=>{let i=n.trim();if(dK.indexOf(i)>-1)return e;let r=t[i];if(null==r)return e;let a=dQ[i]||dX,s=String(r).split("+");for(let t of s)if(!a(t))return o=!0,e;return s.join("+")});return o?null:n}let d3="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?i=fetch:d3&&"function"==typeof d3.fetch&&(i=d3.fetch);let d5=d0()&&d3?d3.XMLHttpRequest:void 0,d4="function"==typeof ActiveXObject&&d3?d3.ActiveXObject:void 0,d6=["__proto__","constructor","prototype"],d8=(e,t)=>{if(t&&"object"==typeof t){let o="";for(let e of Object.keys(t))d6.indexOf(e)>-1||(o+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},d9=(e,t,o,n)=>{let r=e=>{if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(t=>{o(null,{status:e.status,data:t})}).catch(o)};if(n){let i=n(e,t);if(i instanceof Promise)return void i.then(r).catch(o)}"function"==typeof fetch?fetch(e,t).then(r).catch(o):i(e,t).then(r).catch(o)},d7=(e,t,o,n)=>{if("function"==typeof o&&(n=o,o=void 0),n=n||(()=>{}),i&&0!==t.indexOf("file:")){var r=t,a=o,s=n;e.queryStringParams&&(r=d8(r,e.queryStringParams));let i={..."function"==typeof e.customHeaders?e.customHeaders():e.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(i["Content-Type"]="application/json");let l="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,c={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:i,...e._omitFetchOptions?{}:l},d="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{d9(r,c,s,d)}catch(t){if(!l||0===Object.keys(l).length||!t.message||0>t.message.indexOf("not implemented"))return s(t);try{Object.keys(l).forEach(e=>{delete c[e]}),d9(r,c,s,d),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(d0()||"function"==typeof ActiveXObject){var l=t,c=o,d=n;c&&"object"==typeof c&&(c=d8("",c).slice(1)),e.queryStringParams&&(l=d8(l,e.queryStringParams));try{let t=d5?new d5:new d4("MSXML2.XMLHTTP.3.0");t.open(c?"POST":"GET",l,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,c&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let o=e.customHeaders;if(o="function"==typeof o?o():o)for(let e of Object.keys(o))d6.indexOf(e)>-1||t.setRequestHeader(e,o[e]);t.onreadystatechange=()=>{t.readyState>3&&d(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(c)}catch(e){console&&console.log(e)}return}n(Error("No fetch and no xhr implementation found!"))};var ue=class{constructor(e,t={},o={}){this.services=e,this.options=t,this.allOptions=o,this.type="backend",this.init(e,t,o)}init(e,t={},o={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,o)=>({[t]:o||""}),parseLoadPayload:(e,t)=>void 0,request:d7,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=o,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,o){this._readAny(e,e,t,t,o)}read(e,t,o){this._readAny([e],e,[t],t,o)}_readAny(e,t,o,n,i){var r,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,o)),(s=(a=r=s)&&"function"==typeof a.then?r:Promise.resolve(r)).then(r=>{if(!r)return i(null,{});let a=d2(r,{lng:e.join("+"),ns:o.join("+")});if(null==a)return i(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(dZ).join(", ")+"] namespaces=["+o.map(dZ).join(", ")+"]"),!1);this.loadUrl(a,i,t,n)})}loadUrl(e,t,o,n){let i=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof n?[n]:n),r=dZ(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,i,(e,i)=>{let a,s;if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+r+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+r+"; status code: "+i.status,!1);if(!i&&e&&e.message){let o=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>o.indexOf(e)>-1))return t("failed loading "+r+": "+dZ(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof i.data?this.options.parse(i.data,o,n):i.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,o,n,i){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=this.options.parsePayload(t,o,n),a=0,s=[],l=[];e.forEach(o=>{let n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(o,t));let c=d2(n,{lng:o,ns:t});if(null==c){a+=1,i&&a===e.length&&i(s,l);return}this.options.request(this.options,c,r,(t,o)=>{a+=1,s.push(t),l.push(o),a===e.length&&"function"==typeof i&&i(s,l)})})}reload(){let{backendConnector:e,languageUtils:t,logger:o}=this.services,n=e.language;if(n&&"cimode"===n.toLowerCase())return;let i=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>i.indexOf(e)&&i.push(e)})};r(n),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),i.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(i,r)=>{i&&o.warn(`loading namespace ${n} for language ${t} failed`,i),!i&&r&&o.log(`loaded namespace ${n} for language ${t}`,r),e.loaded(`${t}|${n}`,i,r)})})})}};ue.type="backend";var ut=o(4954);class uo extends Error{}function un(e,t){let o;if("string"!=typeof e)throw new uo("Invalid token specified: must be a string");t||(t={});let n=+(!0!==t.header),i=e.split(".")[n];if("string"!=typeof i)throw new uo(`Invalid token specified: missing part #${n+1}`);try{o=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var o;return o=t,decodeURIComponent(atob(o).replace(/(.)/g,(e,t)=>{let o=t.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}catch(e){return atob(t)}}(i)}catch(e){throw new uo(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new uo(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}if(uo.prototype.name="InvalidTokenError","u"<typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function ui(e){if(!(this instanceof ui))throw Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var t,o,n=this,i=[],r={enable:!0,callbackList:[],interval:5},a=document.getElementsByTagName("script"),s=0;s<a.length;s++)(-1!==a[s].src.indexOf("keycloak.js")||-1!==a[s].src.indexOf("keycloak.min.js"))&&-1!==a[s].src.indexOf("version=")&&(n.iframeVersion=a[s].src.substring(a[s].src.indexOf("version=")+8).split("&")[0]);var l=!0,c=x(console.info),d=x(console.warn);function u(e,t){for(var o=function(e){var t=null,o=window.crypto||window.msCrypto;if(o&&o.getRandomValues&&window.Uint8Array)return t=new Uint8Array(e),o.getRandomValues(t),t;t=Array(e);for(var n=0;n<t.length;n++)t[n]=Math.floor(256*Math.random());return t}(e),n=Array(e),i=0;i<e;i++)n[i]=t.charCodeAt(o[i]%t.length);return String.fromCharCode.apply(null,n)}function f(){return void 0===n.authServerUrl?void 0:"/"==n.authServerUrl.charAt(n.authServerUrl.length-1)?n.authServerUrl+"realms/"+encodeURIComponent(n.realm):n.authServerUrl+"/realms/"+encodeURIComponent(n.realm)}function h(e,t){var o=e.code,i=e.error,r=e.prompt,a=new Date().getTime();if(e.kc_action_status&&n.onActionUpdate&&n.onActionUpdate(e.kc_action_status),i){if("none"!=r)if(e.error_description&&"authentication_expired"===e.error_description)n.login(e.loginOptions);else{var s={error:i,error_description:e.error_description};n.onAuthError&&n.onAuthError(s),t&&t.setError(s)}else t&&t.setSuccess();return}if("standard"!=n.flow&&(e.access_token||e.id_token)&&h(e.access_token,null,e.id_token,!0),"implicit"!=n.flow&&o){var d="code="+o+"&grant_type=authorization_code",u=n.endpoints.token(),f=new XMLHttpRequest;f.open("POST",u,!0),f.setRequestHeader("Content-type","application/x-www-form-urlencoded"),d+="&client_id="+encodeURIComponent(n.clientId)+"&redirect_uri="+e.redirectUri,e.pkceCodeVerifier&&(d+="&code_verifier="+e.pkceCodeVerifier),f.withCredentials=!0,f.onreadystatechange=function(){if(4==f.readyState)if(200==f.status){var e=JSON.parse(f.responseText);h(e.access_token,e.refresh_token,e.id_token,"standard"===n.flow),y()}else n.onAuthError&&n.onAuthError(),t&&t.setError()},f.send(d)}function h(o,i,r,s){b(o,i,r,a=(a+new Date().getTime())/2),l&&n.idTokenParsed&&n.idTokenParsed.nonce!=e.storedNonce?(c("[KEYCLOAK] Invalid nonce, clearing token"),n.clearToken(),t&&t.setError()):s&&(n.onAuthSuccess&&n.onAuthSuccess(),t&&t.setSuccess())}}function m(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function b(e,t,o,i){if(n.tokenTimeoutHandle&&(clearTimeout(n.tokenTimeoutHandle),n.tokenTimeoutHandle=null),t?(n.refreshToken=t,n.refreshTokenParsed=un(t)):(delete n.refreshToken,delete n.refreshTokenParsed),o?(n.idToken=o,n.idTokenParsed=un(o)):(delete n.idToken,delete n.idTokenParsed),e){if(n.token=e,n.tokenParsed=un(e),n.sessionId=n.tokenParsed.sid,n.authenticated=!0,n.subject=n.tokenParsed.sub,n.realmAccess=n.tokenParsed.realm_access,n.resourceAccess=n.tokenParsed.resource_access,i&&(n.timeSkew=Math.floor(i/1e3)-n.tokenParsed.iat),null!=n.timeSkew&&(c("[KEYCLOAK] Estimated time difference between browser and server is "+n.timeSkew+" seconds"),n.onTokenExpired)){var r=(n.tokenParsed.exp-new Date().getTime()/1e3+n.timeSkew)*1e3;c("[KEYCLOAK] Token expires in "+Math.round(r/1e3)+" s"),r<=0?n.onTokenExpired():n.tokenTimeoutHandle=setTimeout(n.onTokenExpired,r)}}else delete n.token,delete n.tokenParsed,delete n.subject,delete n.realmAccess,delete n.resourceAccess,n.authenticated=!1}function p(){var e="0123456789abcdef",t=u(36,e).split("");return t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}function F(e){var t=function(e){switch(n.flow){case"standard":t=["code","state","session_state","kc_action_status","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"]}t.push("error"),t.push("error_description"),t.push("error_uri");var t,o,i,r=e.indexOf("?"),a=e.indexOf("#");if("query"===n.responseMode&&-1!==r?(o=e.substring(0,r),""!==(i=g(e.substring(r+1,-1!==a?a:e.length),t)).paramsString&&(o+="?"+i.paramsString),-1!==a&&(o+=e.substring(a))):"fragment"===n.responseMode&&-1!==a&&(o=e.substring(0,a),""!==(i=g(e.substring(a+1),t)).paramsString&&(o+="#"+i.paramsString)),i&&i.oauthParams){if("standard"===n.flow||"hybrid"===n.flow){if((i.oauthParams.code||i.oauthParams.error)&&i.oauthParams.state)return i.oauthParams.newUrl=o,i.oauthParams}else if("implicit"===n.flow&&(i.oauthParams.access_token||i.oauthParams.error)&&i.oauthParams.state)return i.oauthParams.newUrl=o,i.oauthParams}}(e);if(t){var i=o.get(t.state);return i&&(t.valid=!0,t.redirectUri=i.redirectUri,t.storedNonce=i.nonce,t.prompt=i.prompt,t.pkceCodeVerifier=i.pkceCodeVerifier,t.loginOptions=i.loginOptions),t}}function g(e,t){for(var o=e.split("&"),n={paramsString:"",oauthParams:{}},i=0;i<o.length;i++){var r=o[i].indexOf("="),a=o[i].slice(0,r);-1!==t.indexOf(a)?n.oauthParams[a]=o[i].slice(r+1):(""!==n.paramsString&&(n.paramsString+="&"),n.paramsString+=o[i])}return n}function v(){var e={setSuccess:function(t){e.resolve(t)},setError:function(t){e.reject(t)}};return e.promise=new Promise(function(t,o){e.resolve=t,e.reject=o}),e}function _(){var e=v();if(!r.enable||r.iframe)return e.setSuccess(),e.promise;var t=document.createElement("iframe");r.iframe=t,t.onload=function(){var t=n.endpoints.authorize();"/"===t.charAt(0)?r.iframeOrigin=window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):r.iframeOrigin=t.substring(0,t.indexOf("/",8)),e.setSuccess()};var o=n.endpoints.checkSessionIframe();return t.setAttribute("src",o),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t),window.addEventListener("message",function(e){if(e.origin===r.iframeOrigin&&r.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&n.clearToken();for(var t=r.callbackList.splice(0,r.callbackList.length),o=t.length-1;o>=0;--o){var i=t[o];"error"==e.data?i.setError():i.setSuccess("unchanged"==e.data)}}},!1),e.promise}function y(){r.enable&&n.token&&setTimeout(function(){w().then(function(e){e&&y()})},1e3*r.interval)}function w(){var e=v();if(r.iframe&&r.iframeOrigin){var t=n.clientId+" "+(n.sessionId?n.sessionId:"");r.callbackList.push(e);var o=r.iframeOrigin;1==r.callbackList.length&&r.iframe.contentWindow.postMessage(t,o)}else e.setSuccess();return e.promise}function E(){var e,t,o,i=v();if(r.enable||n.silentCheckSsoRedirectUri){var a=document.createElement("iframe");a.setAttribute("src",n.endpoints.thirdPartyCookiesIframe()),a.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),a.setAttribute("title","keycloak-3p-check-iframe"),a.style.display="none",document.body.appendChild(a);var s=function(e){a.contentWindow===e.source&&("supported"===e.data||"unsupported"===e.data)&&("unsupported"===e.data&&(d("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers"),r.enable=!1,n.silentCheckSsoFallback&&(n.silentCheckSsoRedirectUri=!1)),document.body.removeChild(a),window.removeEventListener("message",s),i.setSuccess())};window.addEventListener("message",s,!1)}else i.setSuccess();return e=i.promise,t=n.messageReceiveTimeout,o=null,Promise.race([e,new Promise(function(e,n){o=setTimeout(function(){n({error:"Timeout when waiting for 3rd party check iframe message."})},t)})]).finally(function(){clearTimeout(o)})}function C(e){if(!e||"default"==e)return{login:function(e){return window.location.assign(n.createLoginUrl(e)),v().promise},logout:async function(e){if("GET"===(e?.logoutMethod??n.logoutMethod))return void window.location.replace(n.createLogoutUrl(e));let o=n.createLogoutUrl(e),i=await fetch(o,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:n.idToken,client_id:n.clientId,post_logout_redirect_uri:t.redirectUri(e,!1)})});if(i.redirected){window.location.href=i.url;return}if(i.ok)return void window.location.reload();throw Error("Logout failed, request returned an error code.")},register:function(e){return window.location.assign(n.createRegisterUrl(e)),v().promise},accountManagement:function(){var e=n.createAccountUrl();if(void 0!==e)window.location.href=e;else throw"Not supported by the OIDC server";return v().promise},redirectUri:function(e,t){return e&&e.redirectUri?e.redirectUri:n.redirectUri?n.redirectUri:location.href}};if("cordova"==e){r.enable=!1;var o=function(e,t,o){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,t,o):window.open(e,t,o)},i=function(e){var t=e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce(function(t,o){return t[o]=e.cordovaOptions[o],t},{}):{};return t.location="no",e&&"none"==e.prompt&&(t.hidden="yes"),Object.keys(t).reduce(function(e,o){return e.push(o+"="+t[o]),e},[]).join(",")},a=function(){return n.redirectUri||"http://localhost"};return{login:function(e){var t=v(),r=i(e),s=o(n.createLoginUrl(e),"_blank",r),l=!1,c=!1,d=function(){c=!0,s.close()};return s.addEventListener("loadstart",function(e){0==e.url.indexOf(a())&&(h(F(e.url),t),d(),l=!0)}),s.addEventListener("loaderror",function(e){l||(0==e.url.indexOf(a())?(h(F(e.url),t),d(),l=!0):(t.setError(),d()))}),s.addEventListener("exit",function(e){c||t.setError({reason:"closed_by_user"})}),t.promise},logout:function(e){var t,i=v(),r=o(n.createLogoutUrl(e),"_blank","location=no,hidden=yes,clearcache=yes");return r.addEventListener("loadstart",function(e){0==e.url.indexOf(a())&&r.close()}),r.addEventListener("loaderror",function(e){0==e.url.indexOf(a())||(t=!0),r.close()}),r.addEventListener("exit",function(e){t?i.setError():(n.clearToken(),i.setSuccess())}),i.promise},register:function(e){var t=v(),r=o(n.createRegisterUrl(),"_blank",i(e));return r.addEventListener("loadstart",function(e){0==e.url.indexOf(a())&&(r.close(),h(F(e.url),t))}),t.promise},accountManagement:function(){var e=n.createAccountUrl();if(void 0!==e){var t=o(e,"_blank","location=no");t.addEventListener("loadstart",function(e){0==e.url.indexOf(a())&&t.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(e){return a()}}}if("cordova-native"==e)return r.enable=!1,{login:function(e){var t=v(),o=n.createLoginUrl(e);return universalLinks.subscribe("keycloak",function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),h(F(e.url),t)}),window.cordova.plugins.browsertab.openUrl(o),t.promise},logout:function(e){var t=v(),o=n.createLogoutUrl(e);return universalLinks.subscribe("keycloak",function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),n.clearToken(),t.setSuccess()}),window.cordova.plugins.browsertab.openUrl(o),t.promise},register:function(e){var t=v(),o=n.createRegisterUrl(e);return universalLinks.subscribe("keycloak",function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),h(F(e.url),t)}),window.cordova.plugins.browsertab.openUrl(o),t.promise},accountManagement:function(){var e=n.createAccountUrl();if(void 0!==e)window.cordova.plugins.browsertab.openUrl(e);else throw"Not supported by the OIDC server"},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:n.redirectUri?n.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}n.init=function(i){if(n.didInitialize)throw Error("A 'Keycloak' instance can only be initialized once.");if(n.didInitialize=!0,n.authenticated=!1,o=function(){try{return new k}catch(e){}return new A}(),t=i&&["default","cordova","cordova-native"].indexOf(i.adapter)>-1?C(i.adapter):i&&"object"==typeof i.adapter?i.adapter:window.Cordova||window.cordova?C("cordova"):C(),i){if(void 0!==i.useNonce&&(l=i.useNonce),void 0!==i.checkLoginIframe&&(r.enable=i.checkLoginIframe),i.checkLoginIframeInterval&&(r.interval=i.checkLoginIframeInterval),"login-required"===i.onLoad&&(n.loginRequired=!0),i.responseMode)if("query"===i.responseMode||"fragment"===i.responseMode)n.responseMode=i.responseMode;else throw"Invalid value for responseMode";if(i.flow){switch(i.flow){case"standard":n.responseType="code";break;case"implicit":n.responseType="id_token token";break;case"hybrid":n.responseType="code id_token token";break;default:throw"Invalid value for flow"}n.flow=i.flow}if(null!=i.timeSkew&&(n.timeSkew=i.timeSkew),i.redirectUri&&(n.redirectUri=i.redirectUri),i.silentCheckSsoRedirectUri&&(n.silentCheckSsoRedirectUri=i.silentCheckSsoRedirectUri),"boolean"==typeof i.silentCheckSsoFallback?n.silentCheckSsoFallback=i.silentCheckSsoFallback:n.silentCheckSsoFallback=!0,void 0!==i.pkceMethod){if("S256"!==i.pkceMethod&&!1!==i.pkceMethod)throw TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${i.pkceMethod}.`);n.pkceMethod=i.pkceMethod}else n.pkceMethod="S256";"boolean"==typeof i.enableLogging?n.enableLogging=i.enableLogging:n.enableLogging=!1,"POST"===i.logoutMethod?n.logoutMethod="POST":n.logoutMethod="GET","string"==typeof i.scope&&(n.scope=i.scope),"string"==typeof i.acrValues&&(n.acrValues=i.acrValues),"number"==typeof i.messageReceiveTimeout&&i.messageReceiveTimeout>0?n.messageReceiveTimeout=i.messageReceiveTimeout:n.messageReceiveTimeout=1e4}n.responseMode||(n.responseMode="fragment"),n.responseType||(n.responseType="code",n.flow="standard");var a=v(),s=v();s.promise.then(function(){n.onReady&&n.onReady(n.authenticated),a.setSuccess(n.authenticated)}).catch(function(e){a.setError(e)});var c=function(){var t=v();function o(e){e?n.endpoints={authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint}}:n.endpoints={authorize:function(){return f()+"/protocol/openid-connect/auth"},token:function(){return f()+"/protocol/openid-connect/token"},logout:function(){return f()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var e=f()+"/protocol/openid-connect/login-status-iframe.html";return n.iframeVersion&&(e=e+"?version="+n.iframeVersion),e},thirdPartyCookiesIframe:function(){var e=f()+"/protocol/openid-connect/3p-cookies/step1.html";return n.iframeVersion&&(e=e+"?version="+n.iframeVersion),e},register:function(){return f()+"/protocol/openid-connect/registrations"},userinfo:function(){return f()+"/protocol/openid-connect/userinfo"}}}if(e?"string"==typeof e&&(a=e):a="keycloak.json",a){var i=new XMLHttpRequest;i.open("GET",a,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status||m(i)){var e=JSON.parse(i.responseText);n.authServerUrl=e["auth-server-url"],n.realm=e.realm,n.clientId=e.resource,o(null),t.setSuccess()}else t.setError()},i.send()}else{if(!e.clientId)throw"clientId missing";n.clientId=e.clientId;var r=e.oidcProvider;if(r)if("string"==typeof r){var a,s="/"==r.charAt(r.length-1)?r+".well-known/openid-configuration":r+"/.well-known/openid-configuration",i=new XMLHttpRequest;i.open("GET",s,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){4==i.readyState&&(200==i.status||m(i)?(o(JSON.parse(i.responseText)),t.setSuccess()):t.setError())},i.send()}else o(r),t.setSuccess();else{if(!e.url){for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++)if(l[c].src.match(/.*keycloak\.js/)){e.url=l[c].src.substr(0,l[c].src.indexOf("/js/keycloak.js"));break}}if(!e.realm)throw"realm missing";n.authServerUrl=e.url,n.realm=e.realm,o(null),t.setSuccess()}}return t.promise}();function d(){var e=function(e){e||(o.prompt="none"),i&&i.locale&&(o.locale=i.locale),n.login(o).then(function(){s.setSuccess()}).catch(function(e){s.setError(e)})},t=function(){var e=document.createElement("iframe"),t=n.createLoginUrl({prompt:"none",redirectUri:n.silentCheckSsoRedirectUri});e.setAttribute("src",t),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var o=function(t){t.origin===window.location.origin&&e.contentWindow===t.source&&(h(F(t.data),s),document.body.removeChild(e),window.removeEventListener("message",o))};window.addEventListener("message",o)},o={};switch(i.onLoad){case"check-sso":r.enable?_().then(function(){w().then(function(o){o?s.setSuccess():n.silentCheckSsoRedirectUri?t():e(!1)}).catch(function(e){s.setError(e)})}):n.silentCheckSsoRedirectUri?t():e(!1);break;case"login-required":e(!0);break;default:throw"Invalid value for onLoad"}}function u(){var e=F(window.location.href);if(e&&window.history.replaceState(window.history.state,null,e.newUrl),e&&e.valid)return _().then(function(){h(e,s)}).catch(function(e){s.setError(e)});i?i.token&&i.refreshToken?(b(i.token,i.refreshToken,i.idToken),r.enable?_().then(function(){w().then(function(e){e?(n.onAuthSuccess&&n.onAuthSuccess(),s.setSuccess(),y()):s.setSuccess()}).catch(function(e){s.setError(e)})}):n.updateToken(-1).then(function(){n.onAuthSuccess&&n.onAuthSuccess(),s.setSuccess()}).catch(function(e){n.onAuthError&&n.onAuthError(),i.onLoad?d():s.setError(e)})):i.onLoad?d():s.setSuccess():s.setSuccess()}return c.then(function(){var e,t;(e=v(),t=function(){("interactive"===document.readyState||"complete"===document.readyState)&&(document.removeEventListener("readystatechange",t),e.setSuccess())},document.addEventListener("readystatechange",t),t(),e.promise).then(E).then(u).catch(function(e){a.setError(e)})}),c.catch(function(e){a.setError(e)}),a.promise},n.login=function(e){return t.login(e)},n.createLoginUrl=function(e){var i,r=p(),a=p(),s=t.redirectUri(e),c={state:r,nonce:a,redirectUri:encodeURIComponent(s),loginOptions:e};e&&e.prompt&&(c.prompt=e.prompt),i=e&&"register"==e.action?n.endpoints.register():n.endpoints.authorize();var d=e&&e.scope||n.scope;d?-1===d.indexOf("openid")&&(d="openid "+d):d="openid";var f=i+"?client_id="+encodeURIComponent(n.clientId)+"&redirect_uri="+encodeURIComponent(s)+"&state="+encodeURIComponent(r)+"&response_mode="+encodeURIComponent(n.responseMode)+"&response_type="+encodeURIComponent(n.responseType)+"&scope="+encodeURIComponent(d);if(l&&(f=f+"&nonce="+encodeURIComponent(a)),e&&e.prompt&&(f+="&prompt="+encodeURIComponent(e.prompt)),e&&e.maxAge&&(f+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(f+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(f+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(f+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(f+="&ui_locales="+encodeURIComponent(e.locale)),e&&e.acr&&(f+="&claims="+encodeURIComponent(JSON.stringify({id_token:{acr:e.acr}}))),(e&&e.acrValues||n.acrValues)&&(f+="&acr_values="+encodeURIComponent(e.acrValues||n.acrValues)),n.pkceMethod){var h=u(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");c.pkceCodeVerifier=h,f+="&code_challenge="+function(e,t){if("S256"!==e)throw TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);return btoa(String.fromCodePoint(...new Uint8Array(ut.arrayBuffer(t)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}(n.pkceMethod,h)+"&code_challenge_method="+n.pkceMethod}return o.add(c),f},n.logout=function(e){return t.logout(e)},n.createLogoutUrl=function(e){if("POST"===(e?.logoutMethod??n.logoutMethod))return n.endpoints.logout();var o=n.endpoints.logout()+"?client_id="+encodeURIComponent(n.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(t.redirectUri(e,!1));return n.idToken&&(o+="&id_token_hint="+encodeURIComponent(n.idToken)),o},n.register=function(e){return t.register(e)},n.createRegisterUrl=function(e){return e||(e={}),e.action="register",n.createLoginUrl(e)},n.createAccountUrl=function(e){var o=f(),i=void 0;return void 0!==o&&(i=o+"/account?referrer="+encodeURIComponent(n.clientId)+"&referrer_uri="+encodeURIComponent(t.redirectUri(e))),i},n.accountManagement=function(){return t.accountManagement()},n.hasRealmRole=function(e){var t=n.realmAccess;return!!t&&t.roles.indexOf(e)>=0},n.hasResourceRole=function(e,t){if(!n.resourceAccess)return!1;var o=n.resourceAccess[t||n.clientId];return!!o&&o.roles.indexOf(e)>=0},n.loadUserProfile=function(){var e=f()+"/account",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+n.token);var o=v();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(n.profile=JSON.parse(t.responseText),o.setSuccess(n.profile)):o.setError())},t.send(),o.promise},n.loadUserInfo=function(){var e=n.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+n.token);var o=v();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(n.userInfo=JSON.parse(t.responseText),o.setSuccess(n.userInfo)):o.setError())},t.send(),o.promise},n.isTokenExpired=function(e){if(!n.tokenParsed||!n.refreshToken&&"implicit"!=n.flow)throw"Not authenticated";if(null==n.timeSkew)return c("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=n.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+n.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";t-=e}return t<0},n.updateToken=function(e){var t=v();if(!n.refreshToken)return t.setError(),t.promise;e=e||5;var o=function(){var o=!1;if(-1==e?(o=!0,c("[KEYCLOAK] Refreshing token: forced refresh")):(!n.tokenParsed||n.isTokenExpired(e))&&(o=!0,c("[KEYCLOAK] Refreshing token: token expired")),o){var r="grant_type=refresh_token&refresh_token="+n.refreshToken,a=n.endpoints.token();if(i.push(t),1==i.length){var s=new XMLHttpRequest;s.open("POST",a,!0),s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.withCredentials=!0,r+="&client_id="+encodeURIComponent(n.clientId);var l=new Date().getTime();s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status){c("[KEYCLOAK] Token refreshed"),l=(l+new Date().getTime())/2;var e=JSON.parse(s.responseText);b(e.access_token,e.refresh_token,e.id_token,l),n.onAuthRefreshSuccess&&n.onAuthRefreshSuccess();for(var t=i.pop();null!=t;t=i.pop())t.setSuccess(!0)}else{d("[KEYCLOAK] Failed to refresh token"),400==s.status&&n.clearToken(),n.onAuthRefreshError&&n.onAuthRefreshError();for(var t=i.pop();null!=t;t=i.pop())t.setError(!0)}},s.send(r)}}else t.setSuccess(!1)};return r.enable?w().then(function(){o()}).catch(function(e){t.setError(e)}):o(),t.promise},n.clearToken=function(){n.token&&(b(null,null,null),n.onAuthLogout&&n.onAuthLogout(),n.loginRequired&&n.login())};var k=function(){if(!(this instanceof k))return new k;function e(){for(var e=new Date().getTime(),t=0;t<localStorage.length;t++){var o=localStorage.key(t);if(o&&0==o.indexOf("kc-callback-")){var n=localStorage.getItem(o);if(n)try{var i=JSON.parse(n).expires;(!i||i<e)&&localStorage.removeItem(o)}catch(e){localStorage.removeItem(o)}}}}localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test"),this.get=function(t){if(t){var o="kc-callback-"+t,n=localStorage.getItem(o);return n&&(localStorage.removeItem(o),n=JSON.parse(n)),e(),n}},this.add=function(t){e();var o="kc-callback-"+t.state;t.expires=new Date().getTime()+36e5,localStorage.setItem(o,JSON.stringify(t))}},A=function(){if(!(this instanceof A))return new A;this.get=function(n){if(n){var i=t("kc-callback-"+n);if(o("kc-callback-"+n,"",e(-100)),i)return JSON.parse(i)}},this.add=function(t){o("kc-callback-"+t.state,JSON.stringify(t),e(60))},this.removeItem=function(t){o(t,"",e(-100))};var e=function(e){var t=new Date;return t.setTime(t.getTime()+60*e*1e3),t},t=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""},o=function(e,t,o){var n=e+"="+t+"; expires="+o.toUTCString()+"; ";document.cookie=n}};function x(e){return function(){n.enableLogging&&e.apply(console,Array.prototype.slice.call(arguments))}}}var ur=function(e,t,o,n){return new(o||(o=Promise))(function(i,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let ua="openremote";(ew=tx||(tx={})).MANAGER_FAILED_TO_LOAD="MANAGER_FAILED_TO_LOAD",ew.AUTH_FAILED="AUTH_FAILED",ew.AUTH_TYPE_UNSUPPORTED="AUTH_TYPE_UNSUPPORTED",ew.CONSOLE_ERROR="CONSOLE_INIT_ERROR",ew.EVENTS_CONNECTION_ERROR="EVENTS_CONNECTION_ERROR",ew.TRANSLATION_ERROR="TRANSLATION_ERROR",(eE=tD||(tD={})).ERROR="ERROR",eE.READY="READY",eE.ONLINE="ONLINE",eE.OFFLINE="OFFLINE",eE.CONNECTING="CONNECTING",eE.CONSOLE_INIT="CONSOLE_INIT",eE.CONSOLE_READY="CONSOLE_READY",eE.TRANSLATE_INIT="TRANSLATE_INIT",eE.TRANSLATE_LANGUAGE_CHANGED="TRANSLATE_LANGUAGE_CHANGED",eE.DISPLAY_REALM_CHANGED="DISPLAY_REALM_CHANGED",eE.LOGIN="LOGIN";let us={cn:"zh-cn"};class ul{constructor(){this._authenticated=!1,this._ready=!1,this._name="",this._username="",this._keycloakUpdateTokenInterval=void 0,this._managerVersion="",this._authServerUrl="",this._listeners=[],this._disconnected=!1}get username(){return this._username}get error(){return this._error}get authenticated(){return this._authenticated}get ready(){return this._ready}get config(){return this._config}get roles(){let e=new Map;return this._keycloak&&this._keycloak.resourceAccess&&this._config.clientId&&this._keycloak.resourceAccess&&Object.entries(this._keycloak.resourceAccess).forEach(([t,o])=>{let n=o.roles;e.set(t,n)}),e}get managerVersion(){return this._managerVersion}get isManagerAvailable(){return this._managerVersion&&""!==this._managerVersion}get managerUrl(){var e;return null==(e=this._config)?void 0:e.managerUrl}get keycloakUrl(){var e;return null==(e=this._config)?void 0:e.keycloakUrl}get isError(){return!!this._error}get connectionStatus(){return this._events&&this._events.status}get console(){return this._console}get consoleAppConfig(){return this._consoleAppConfig}get events(){return this._events}get rest(){return d$}get language(){return nY.language}set language(e){console.debug(`Changing language to ${e}.`),e&&(nY.changeLanguage(e),this.console.storeData("LANGUAGE",e),this.authenticated&&this.updateKeycloakUserLanguage(e).catch(e=>console.error(e)))}get displayRealm(){return this._displayRealm||this._config.realm}set displayRealm(e){this.isSuperUser()&&this._displayRealm!==e&&(this._displayRealm=e,this._emitEvent(tD.DISPLAY_REALM_CHANGED))}get clientId(){return this._config.clientId||ua}getEventProvider(){return this.events}isManagerSameOrigin(){if(!this.ready)return!1;let e=new URL(this._config.managerUrl),t=window.location;return e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}addListener(e){0>this._listeners.indexOf(e)&&this._listeners.push(e)}removeListener(e){let t=this._listeners.indexOf(e);t>=0&&this._listeners.splice(t,1)}init(e){return ur(this,void 0,void 0,function*(){let t;this._config&&console.debug("Already initialised"),this._config=((t=e?Object.assign({},e):{}).managerUrl&&""!==t.managerUrl?t.managerUrl=t.managerUrl.replace(/\/+$/,""):t.managerUrl=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname.replace(/\/[^/]+\/?$/,""),t.realm&&""!==t.realm||(t.realm="master"),t.auth||(t.auth="KEYCLOAK"),void 0===t.consoleAutoEnable&&(t.consoleAutoEnable=!0),void 0===t.applyConfigToAdmin&&(t.applyConfigToAdmin=!0),t.eventProviderType||(t.eventProviderType="WEBSOCKET"),(!t.pollingIntervalMillis||t.pollingIntervalMillis<5e3)&&(t.pollingIntervalMillis=1e4),void 0===t.loadIcons&&(t.loadIcons=!0),void 0===t.loadTranslations&&(t.loadTranslations=["or"]),void 0===t.translationsLoadPath&&(t.translationsLoadPath="locales/{{lng}}/{{ns}}.json"),void 0===t.loadDescriptors&&(t.loadDescriptors=!0),void 0===t.clientId&&(t.clientId=ua),t);let o=yield this.loadManagerInfo(),n=new s2(this._config.realm,this._config.consoleAutoEnable,()=>{this._emitEvent(tD.CONSOLE_READY)});if(this._console=n,"KEYCLOAK"===this._config.auth){if(!this._config.keycloakUrl&&this._authServerUrl){let e,t=new URL(this._config.managerUrl);this._authServerUrl.startsWith("//")?(this._authServerUrl=t.protocol+this._authServerUrl,this._config.keycloakUrl=this._authServerUrl):this._authServerUrl.startsWith("http")?this._config.keycloakUrl=this._authServerUrl:((e=new URL(t)).pathname=this._authServerUrl,e.protocol||(e.protocol=t.protocol),e.hostname||(e.hostname=t.hostname),e.port||(e.port=t.port),this._config.keycloakUrl=e.toString())}this._config.keycloakUrl||(this._config.keycloakUrl=this._config.managerUrl+"/auth"),this._config.keycloakUrl=this._config.keycloakUrl.replace(/\/+$/,""),o=yield this.doAuthInit()}return!!o&&(o&&(o=this.doRestApiInit()),(yield this.doConsoleInit())&&this._clearWebHistory(),(o=(yield this.doTranslateInit())&&o)&&(o=yield this.doDescriptorsInit(),o=yield this.getConsoleAppConfig()),this.doIconInit(),o?(o=yield this.doEventsSubscriptionInit(),this._ready=!0,this._emitEvent(tD.READY)):(this._config=void 0,console.warn("Failed to initialise the manager")),this.displayRealm=e.realm||"master",o)})}loadManagerInfo(){return ur(this,void 0,void 0,function*(){try{let e=yield new Promise((e,t)=>{let o=new XMLHttpRequest;o.addEventListener("load",()=>{e(JSON.parse(o.responseText))}),o.addEventListener("error",()=>{t(Error("Failed to contact the manager"))}),o.open("GET",this._config.managerUrl+"/api/master/info"),o.send()});return this._managerVersion=e&&e.version?e.version:"",this._authServerUrl=e&&e.authServerUrl?e.authServerUrl:"",!0}catch(e){return console.error("Failed to contact the manager",e),this._setError(tx.MANAGER_FAILED_TO_LOAD),!1}})}doTranslateInit(){return ur(this,void 0,void 0,function*(){if(nY.isInitialized)return!0;nY.on("initialized",e=>{this._emitEvent(tD.TRANSLATE_INIT)}),nY.on("languageChanged",e=>{var t;sJ().locale(null!=(t=us[e])?t:e),this._emitEvent(tD.TRANSLATE_LANGUAGE_CHANGED)});let e={lng:(yield this.getConsolePreferredLanguage())||(yield this.getUserPreferredLanguage())||this.config.defaultLanguage||"en",fallbackLng:"en",defaultNS:"app",fallbackNS:"or",ns:this.config.loadTranslations,interpolation:{format:(e,t,o)=>"uppercase"===t?e.toUpperCase():e instanceof Date?sJ()(e).format(t):e},backend:{loadPath:(e,t)=>1===t.length&&"or"===t[0]?this.config.managerUrl+"/shared/locales/{{lng}}/{{ns}}.json":this.config.translationsLoadPath?this.config.translationsLoadPath:"locales/{{lng}}/{{ns}}.json"}};this.config.configureTranslationsOptions&&this.config.configureTranslationsOptions(e);try{yield nY.use(ue).init(e)}catch(e){return console.error(e),this._setError(tx.TRANSLATION_ERROR),!1}return!0})}doDescriptorsInit(){return ur(this,void 0,void 0,function*(){if(!this.config.loadDescriptors)return!0;try{let e=yield d$.api.AssetModelResource.getAssetInfos(),t=yield d$.api.AssetModelResource.getMetaItemDescriptors(),o=yield d$.api.AssetModelResource.getValueDescriptors();oq._assetTypeInfos=e.data,oq._metaItemDescriptors=Object.values(t.data),oq._valueDescriptors=Object.values(o.data)}catch(e){return console.error(e),!1}return!0})}doAuthInit(){return ur(this,void 0,void 0,function*(){let e=!0;switch(this._config.auth){case"KEYCLOAK":e=yield this.loadAndInitialiseKeycloak();break;case"NONE":return!0;default:return this._setError(tx.AUTH_TYPE_UNSUPPORTED),!1}return!!e&&(d$.addRequestInterceptor(e=>{if(!e.headers.Authorization){let t=this.getAuthorizationHeader();t&&(e.headers.Authorization=t)}return e}),e)})}doRestApiInit(){return d$.setTimeout(2e4),d$.initialise(this.getApiBaseUrl()),!0}doEventsSubscriptionInit(){return ur(this,void 0,void 0,function*(){let e=!1;return"WEBSOCKET"===this._config.eventProviderType&&(this._events=new dG(this._config.managerUrl),this._events.subscribeStatusChange(e=>this._onEventProviderStatusChanged(e)),e=yield this._events.connect()),e||this._setError(tx.EVENTS_CONNECTION_ERROR),e})}_connectEvents(){var e;(null==(e=this.events)?void 0:e.status)===tA.DISCONNECTED?this.events.connect().catch(e=>{console.error("Failed to connect EventProvider."),console.error(e)}):console.warn("Tried to connect EventProvider, but it wasn't disconnected!")}_onEventProviderStatusChanged(e){switch(e){case tA.DISCONNECTED:this._onDisconnect();break;case tA.CONNECTED:break;case tA.CONNECTING:this._emitEvent(tD.CONNECTING)}}doConsoleInit(){return ur(this,void 0,void 0,function*(){try{return yield this.console.initialise(),this._emitEvent(tD.CONSOLE_INIT),!0}catch(e){return this._setError(tx.CONSOLE_ERROR),!1}})}doIconInit(){var e;this._config.loadIcons&&(oG.addIconSet("mdi",(e=uc.managerUrl,{getIconTemplate:e=>of`<span style="font-family: 'Material Design Icons';" class="mdi-${e}"></span>`,onAdd(){let t=document.createElement("style");t.id="mdiFontStyle",t.textContent='@font-face {\n font-family: "Material Design Icons";\n src: url("'+e+'/shared/fonts/Material Design Icons/fonts/materialdesignicons-webfont.eot");\n src: url("'+e+'/shared/fonts/Material Design Icons/fonts/materialdesignicons-webfont.eot") format("embedded-opentype"), url("'+e+'/shared/fonts/Material Design Icons/fonts/materialdesignicons-webfont.woff2") format("woff2"), url("'+e+'/shared/fonts/Material Design Icons/fonts/materialdesignicons-webfont.woff") format("woff"), url("'+e+'/shared/fonts/Material Design Icons//fonts/materialdesignicons-webfont.ttf") format("truetype");\n font-weight: normal;\n font-style: normal;\n}',document.head.appendChild(t)}})),oG.addIconSet("or",{getIconTemplate:e=>{let t=oH[e];return t?of`
2112
2120
  <svg
2113
2121
  xmlns="http://www.w3.org/2000/svg"
2114
2122
  viewBox="0 0 ${24} ${24}"
@@ -2117,7 +2125,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2117
2125
  >
2118
2126
  ${oU(t.startsWith("<")?t:'<path xmlns="http://www.w3.org/2000/svg" d="'+t+'" />')}
2119
2127
  </svg>
2120
- `:of``},onAdd:void 0}))}getConsoleAppConfig(){return un(this,void 0,void 0,function*(){var e;try{let t=yield fetch((null!=(e=us.managerUrl)?e:"")+"/consoleappconfig/"+us.displayRealm+".json");return this._consoleAppConfig=yield t.json(),!0}catch(e){return!0}})}getConsolePreferredLanguage(){return un(this,arguments,void 0,function*(e=this.console){return e.retrieveData("LANGUAGE")})}getUserPreferredLanguage(){return un(this,arguments,void 0,function*(e=this._keycloak){if(e&&e.authenticated){let t=(null==e?void 0:e.profile)||(yield null==e?void 0:e.loadUserProfile());if(null==t?void 0:t.attributes){let e=new Map(Object.entries(t.attributes));if(e.has("locale")){let t=e.get("locale");if("string"==typeof t[0])return t[0]}console.warn("Could not get user language from keycloak: no user attributes were found.")}else console.warn("Could not get user language from keycloak: no valid keycloak user profile was found.")}})}updateKeycloakUserLanguage(e){return un(this,arguments,void 0,function*(e,t=this.rest){this.authenticated?t?yield t.api.UserResource.updateCurrentUserLocale(e,{headers:{"Content-Type":"application/json"}}):console.warn("Tried updating user language, but the REST API is not initialized yet."):console.warn("Tried updating user language, but the user is not authenticated.")})}logout(e){this._authenticated&&(this._authenticated=!0,this._keycloak&&(this.isMobile()&&this.console.storeData("REFRESH_TOKEN",null),this._keycloakUpdateTokenInterval&&(window.clearTimeout(this._keycloakUpdateTokenInterval),this._keycloakUpdateTokenInterval=void 0),this._keycloak.logout(e&&""!==e?{redirectUri:e}:void 0)))}login(e){if("KEYCLOAK"===this._config.auth&&this._keycloak){let t={};e&&e.redirectUrl&&""!==e.redirectUrl&&(t.redirectUri=e.redirectUrl),(null==e?void 0:e.action)&&""!==e.action&&(t.action=e.action),this.isMobile()&&(t.scope="offline_access"),this._keycloak.login(t)}}isSuperUser(){return!!(this.getRealm()&&"master"===this.getRealm()&&this.hasRealmRole("admin"))}isRestrictedUser(){return!!this.hasRealmRole("restricted_user")}getApiBaseUrl(){return this._config.managerUrl+"/api/"+this._config.realm+"/"}getAppName(){let e=location.pathname.split("/");return e.length>=1?e[1]:""}hasRealmRole(e){return this.isKeycloak()&&this._keycloak.hasRealmRole(e)}hasRole(e,t=this._config.clientId){let o=this.roles;return o&&o.has(t)&&o.get(t).indexOf(e)>=0}getAuthorizationHeader(){if(this.getKeycloakToken())return"Bearer "+this.getKeycloakToken()}retrieveAuthorizationHeader(){return un(this,void 0,void 0,function*(){let e=yield this.retrieveKeycloakToken();if(e)return"Bearer "+e})}getKeycloakToken(){if(this.isKeycloak())return this._keycloak.token}retrieveKeycloakToken(){return un(this,void 0,void 0,function*(){if(this.isKeycloak())return yield this._updateKeycloakAccessToken(),this._keycloak.token})}getRealm(){if(this._config)return this._config.realm}isMobile(){return this.console&&this.console.isMobile}isKeycloak(){return!!this._keycloak}_onAuthenticated(){this._authenticated=!0}loadAndInitialiseKeycloak(){return un(this,void 0,void 0,function*(){var e,t,o,n,i;try{this._keycloak=new uo({clientId:this._config.clientId,realm:this._config.realm,url:this._config.keycloakUrl});let r=yield this._getNativeOfflineRefreshToken(),a=yield this._keycloak.init({checkLoginIframe:!1,onLoad:"check-sso"});if(!a&&r)try{console.error("SETTING OFFLINE TOKEN"),this._keycloak.refreshToken=r,a=yield this._updateKeycloakAccessToken()}catch(e){console.error("Failed to authenticate using offline token")}if(a){this._name=null==(e=this._keycloak.tokenParsed)?void 0:e.name,this._username=null==(t=this._keycloak.tokenParsed)?void 0:t.preferred_username,this.isMobile()&&(null==(n=null==(o=this._keycloak)?void 0:o.refreshTokenParsed)?void 0:n.typ)==="Offline"&&(console.debug("Storing offline refresh token"),this.console.storeData("REFRESH_TOKEN",this._keycloak.refreshToken)),this._onAuthenticated(),this._createTokenUpdateInterval();let r=null==(i=this._keycloak.tokenParsed)?void 0:i.session_state;r&&sessionStorage.getItem("or-session")!==r&&(sessionStorage.setItem("or-session",r),this._emitEvent(tD.LOGIN))}else if(this.config.autoLogin)return this.login(),!1;return!0}catch(e){return this._authenticated=!1,this._setError(tx.AUTH_FAILED),console.error("Failed to initialise Keycloak: "+e),!1}})}_createTokenUpdateInterval(){this._authenticated?this._keycloakUpdateTokenInterval||(this._keycloakUpdateTokenInterval=window.setInterval(()=>un(this,void 0,void 0,function*(){yield this._updateKeycloakAccessToken().catch(()=>{console.debug("Keycloak failed to refresh the access token"),this._onDisconnect()})}),1e4)):console.warn("User is not authenticated; skipping token update interval creation.")}_updateKeycloakAccessToken(){return un(this,void 0,void 0,function*(){let e=yield this._keycloak.updateToken(20);return console.debug("Access token update success, refreshed from server: "+e),e&&this._onAuthenticated(),e})}_getNativeOfflineRefreshToken(){return un(this,void 0,void 0,function*(){if(this.isMobile())return yield this.console.retrieveData("REFRESH_TOKEN")})}_emitEvent(e){window.setTimeout(()=>{for(let t of this._listeners)t(e)},0)}_setError(e){this._error=e,this._emitEvent(tD.ERROR),console.warn("Error set: "+e)}_clearWebHistory(){var e;this.isMobile()&&(null==(e=this.console)||e._doSendGenericMessage("CLEAR_WEB_HISTORY",void 0))}_onDisconnect(){return un(this,void 0,void 0,function*(){this._disconnected||(console.debug("Disconnected"),this._disconnected=!0,this._keycloakUpdateTokenInterval&&(window.clearTimeout(this._keycloakUpdateTokenInterval),this._keycloakUpdateTokenInterval=void 0),this._emitEvent(tD.OFFLINE),this.reconnect())})}_onReconnected(){console.debug("Reconnected to the Manager."),this._disconnected=!1,this._createTokenUpdateInterval(),this._emitEvent(tD.ONLINE)}reconnect(){return un(this,arguments,void 0,function*(e=3e3){if(console.debug("Checking connection to the Manager..."),!this._disconnected)return void console.debug("Manager is still connected. No action necessary.");console.debug("Manager is disconnected!"),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=void 0);let t=()=>un(this,void 0,void 0,function*(){var e,t;if(console.debug("Reconnecting to the Manager..."),!this._authenticated){console.debug("User is not authenticated, skipping token refresh");let t=()=>{var e;return(null==(e=this.events)?void 0:e.status)===tA.CONNECTED};return t()||(yield null==(e=this.events)?void 0:e.connect()),t()}if(!(yield this.isKeycloakReachable()))return console.error("Keycloak is not reachable. Reconnect attempt failed."),!1;try{yield this._updateKeycloakAccessToken()}catch(t){console.error("Could not update Keycloak access token, attempting again using offline token...",t);let e=yield this._getNativeOfflineRefreshToken();this._keycloak.refreshToken=e,e||console.warn("No offline token was found on this device.");try{yield this._updateKeycloakAccessToken()}catch(e){throw this.login(),Error("Cannot update access token so sending to login")}console.debug("Keycloak access token is valid")}let o=()=>{var e;return(null==(e=this.events)?void 0:e.status)===tA.CONNECTED};return o()||(console.debug("Event provider offline, attempting to reconnect using latest auth token."),yield null==(t=this.events)?void 0:t.connect()),o()}),o=yield t();if(void 0!==o){if(!o){e=Math.min(ua.MAX_RECONNECT_DELAY,e+3e3),console.error(`Failed to reconnect to the Manager. Attempting again in ${e}...`),this._reconnectTimer=window.setTimeout(()=>this.reconnect(e),e);return}this._onReconnected()}})}isKeycloakReachable(){return un(this,arguments,void 0,function*(e=2e3){let t=new AbortController,o=setTimeout(()=>t.abort(),e);try{let e=this._keycloak.endpoints.token(),o=yield fetch(e,{method:"OPTIONS",signal:t.signal});return 200===o.status}catch(e){return!1}finally{clearTimeout(o)}})}}ua.MAX_RECONNECT_DELAY=45e3;let us=new ua,ul=us,{I:uc}={M:t4,P:t6,A:t8,C:1,L:og,R:oy,D:on,V:o_,I:ow,H:oE,N:ok,U:oA,B:oC,F:ox},ud=(e,t)=>{let o=e._$AN;if(void 0===o)return!1;for(let e of o)e._$AO?.(t,!1),ud(e,t);return!0},uu=e=>{let t,o;do{if(void 0===(t=e._$AM))break;(o=t._$AN).delete(e),e=t}while(0===o?.size)},uf=e=>{for(let t;t=e._$AM;e=t){let o=t._$AN;if(void 0===o)t._$AN=o=new Set;else if(o.has(e))break;o.add(e),ub(t)}};function uh(e){void 0!==this._$AN?(uu(this),this._$AM=e,uf(this)):this._$AM=e}function um(e,t=!1,o=0){let n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(n))for(let e=o;e<n.length;e++)ud(n[e],!1),uu(n[e]);else null!=n&&(ud(n,!1),uu(n));else ud(this,e)}let ub=e=>{2==e.type&&(e._$AP??=um,e._$AQ??=uh)};class up extends oN{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),uf(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(ud(this,e),uu(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}let uF=Symbol("valueNotInitialized");class ug extends up{constructor(e){if(super(e),6!==e.type)throw Error(`\`${this.constructor.name}\` must be bound to an element.`);this.previousValue=uF}render(e,t){return om}update(e,[t,o]){return this.hasChanged(o)&&(this.host=e.options&&e.options.host,this.element=e.element,this.renderer=t,this.previousValue===uF?this.addRenderer():this.runRenderer(),this.previousValue=Array.isArray(o)?[...o]:o),om}reconnected(){this.addRenderer()}disconnected(){this.removeRenderer()}addRenderer(){throw Error("The `addRenderer` method must be implemented.")}runRenderer(){throw Error("The `runRenderer` method must be implemented.")}removeRenderer(){throw Error("The `removeRenderer` method must be implemented.")}renderRenderer(e,...t){oS(this.renderer.call(this.host,...t),e,{host:this.host})}hasChanged(e){return Array.isArray(e)?!Array.isArray(this.previousValue)||this.previousValue.length!==e.length||e.some((e,t)=>e!==this.previousValue[t]):this.previousValue!==e}}let uv=Symbol("contentUpdateDebouncer");class u_ extends ug{get rendererProperty(){throw Error("The `rendererProperty` getter must be implemented.")}addRenderer(){this.element[this.rendererProperty]=(e,t)=>{this.renderRenderer(e,t)}}runRenderer(){this.element[uv]=io.debounce(this.element[uv],ie,()=>{this.element.requestContentUpdate()})}removeRenderer(){this.element[this.rendererProperty]=null,delete this.element[uv]}}let uy=oP(class extends u_{get rendererProperty(){return"renderer"}}),uw=oP(class extends u_{get rendererProperty(){return"headerRenderer"}}),uE=oP(class extends u_{get rendererProperty(){return"footerRenderer"}}),uC=class extends sY{static get styles(){return[sY.styles,tU`
2128
+ `:of``},onAdd:void 0}))}getConsoleAppConfig(){return ur(this,void 0,void 0,function*(){var e;try{let t=yield fetch((null!=(e=uc.managerUrl)?e:"")+"/consoleappconfig/"+uc.displayRealm+".json");return this._consoleAppConfig=yield t.json(),!0}catch(e){return!0}})}getConsolePreferredLanguage(){return ur(this,arguments,void 0,function*(e=this.console){return e.retrieveData("LANGUAGE")})}getUserPreferredLanguage(){return ur(this,arguments,void 0,function*(e=this._keycloak){if(e&&e.authenticated){let t=(null==e?void 0:e.profile)||(yield null==e?void 0:e.loadUserProfile());if(null==t?void 0:t.attributes){let e=new Map(Object.entries(t.attributes));if(e.has("locale")){let t=e.get("locale");if("string"==typeof t[0])return t[0]}console.warn("Could not get user language from keycloak: no user attributes were found.")}else console.warn("Could not get user language from keycloak: no valid keycloak user profile was found.")}})}updateKeycloakUserLanguage(e){return ur(this,arguments,void 0,function*(e,t=this.rest){this.authenticated?t?yield t.api.UserResource.updateCurrentUserLocale(e,{headers:{"Content-Type":"application/json"}}):console.warn("Tried updating user language, but the REST API is not initialized yet."):console.warn("Tried updating user language, but the user is not authenticated.")})}logout(e){this._authenticated&&(this._authenticated=!0,this._keycloak&&(this.isMobile()&&this.console.storeData("REFRESH_TOKEN",null),this._keycloakUpdateTokenInterval&&(window.clearTimeout(this._keycloakUpdateTokenInterval),this._keycloakUpdateTokenInterval=void 0),this._keycloak.logout(e&&""!==e?{redirectUri:e}:void 0)))}login(e){if("KEYCLOAK"===this._config.auth&&this._keycloak){let t={};e&&e.redirectUrl&&""!==e.redirectUrl&&(t.redirectUri=e.redirectUrl),(null==e?void 0:e.action)&&""!==e.action&&(t.action=e.action),this.isMobile()&&(t.scope="offline_access"),this._keycloak.login(t)}}isSuperUser(){return!!(this.getRealm()&&"master"===this.getRealm()&&this.hasRealmRole("admin"))}isRestrictedUser(){return!!this.hasRealmRole("restricted_user")}getApiBaseUrl(){return this._config.managerUrl+"/api/"+this._config.realm+"/"}getAppName(){let e=location.pathname.split("/");return e.length>=1?e[1]:""}hasRealmRole(e){return this.isKeycloak()&&this._keycloak.hasRealmRole(e)}hasRole(e,t=this._config.clientId){let o=this.roles;return o&&o.has(t)&&o.get(t).indexOf(e)>=0}getAuthorizationHeader(){if(this.getKeycloakToken())return"Bearer "+this.getKeycloakToken()}retrieveAuthorizationHeader(){return ur(this,void 0,void 0,function*(){let e=yield this.retrieveKeycloakToken();if(e)return"Bearer "+e})}getKeycloakToken(){if(this.isKeycloak())return this._keycloak.token}retrieveKeycloakToken(){return ur(this,void 0,void 0,function*(){if(this.isKeycloak())return yield this._updateKeycloakAccessToken(),this._keycloak.token})}getRealm(){if(this._config)return this._config.realm}isMobile(){return this.console&&this.console.isMobile}isKeycloak(){return!!this._keycloak}_onAuthenticated(){this._authenticated=!0}loadAndInitialiseKeycloak(){return ur(this,void 0,void 0,function*(){var e,t,o,n,i;try{this._keycloak=new ui({clientId:this._config.clientId,realm:this._config.realm,url:this._config.keycloakUrl});let r=yield this._getNativeOfflineRefreshToken(),a=yield this._keycloak.init({checkLoginIframe:!1,onLoad:"check-sso"});if(!a&&r)try{console.error("SETTING OFFLINE TOKEN"),this._keycloak.refreshToken=r,a=yield this._updateKeycloakAccessToken()}catch(e){console.error("Failed to authenticate using offline token")}if(a){this._name=null==(e=this._keycloak.tokenParsed)?void 0:e.name,this._username=null==(t=this._keycloak.tokenParsed)?void 0:t.preferred_username,this.isMobile()&&(null==(n=null==(o=this._keycloak)?void 0:o.refreshTokenParsed)?void 0:n.typ)==="Offline"&&(console.debug("Storing offline refresh token"),this.console.storeData("REFRESH_TOKEN",this._keycloak.refreshToken)),this._onAuthenticated(),this._createTokenUpdateInterval();let r=null==(i=this._keycloak.tokenParsed)?void 0:i.session_state;r&&sessionStorage.getItem("or-session")!==r&&(sessionStorage.setItem("or-session",r),this._emitEvent(tD.LOGIN))}else if(this.config.autoLogin)return this.login(),!1;return!0}catch(e){return this._authenticated=!1,this._setError(tx.AUTH_FAILED),console.error("Failed to initialise Keycloak: "+e),!1}})}_createTokenUpdateInterval(){this._authenticated?this._keycloakUpdateTokenInterval||(this._keycloakUpdateTokenInterval=window.setInterval(()=>ur(this,void 0,void 0,function*(){yield this._updateKeycloakAccessToken().catch(()=>{console.debug("Keycloak failed to refresh the access token"),this._onDisconnect()})}),1e4)):console.warn("User is not authenticated; skipping token update interval creation.")}_updateKeycloakAccessToken(){return ur(this,void 0,void 0,function*(){let e=yield this._keycloak.updateToken(20);return console.debug("Access token update success, refreshed from server: "+e),e&&this._onAuthenticated(),e})}_getNativeOfflineRefreshToken(){return ur(this,void 0,void 0,function*(){if(this.isMobile())return yield this.console.retrieveData("REFRESH_TOKEN")})}_emitEvent(e){window.setTimeout(()=>{for(let t of this._listeners)t(e)},0)}_setError(e){this._error=e,this._emitEvent(tD.ERROR),console.warn("Error set: "+e)}_clearWebHistory(){var e;this.isMobile()&&(null==(e=this.console)||e._doSendGenericMessage("CLEAR_WEB_HISTORY",void 0))}_onDisconnect(){return ur(this,void 0,void 0,function*(){this._disconnected||(console.debug("Disconnected"),this._disconnected=!0,this._keycloakUpdateTokenInterval&&(window.clearTimeout(this._keycloakUpdateTokenInterval),this._keycloakUpdateTokenInterval=void 0),this._emitEvent(tD.OFFLINE),this.reconnect())})}_onReconnected(){console.debug("Reconnected to the Manager."),this._disconnected=!1,this._createTokenUpdateInterval(),this._emitEvent(tD.ONLINE)}reconnect(){return ur(this,arguments,void 0,function*(e=3e3){if(console.debug("Checking connection to the Manager..."),!this._disconnected)return void console.debug("Manager is still connected. No action necessary.");console.debug("Manager is disconnected!"),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=void 0);let t=()=>ur(this,void 0,void 0,function*(){var e,t;if(console.debug("Reconnecting to the Manager..."),!this._authenticated){console.debug("User is not authenticated, skipping token refresh");let t=()=>{var e;return(null==(e=this.events)?void 0:e.status)===tA.CONNECTED};return t()||(yield null==(e=this.events)?void 0:e.connect()),t()}if(!(yield this.isKeycloakReachable()))return console.error("Keycloak is not reachable. Reconnect attempt failed."),!1;try{yield this._updateKeycloakAccessToken()}catch(t){console.error("Could not update Keycloak access token, attempting again using offline token...",t);let e=yield this._getNativeOfflineRefreshToken();this._keycloak.refreshToken=e,e||console.warn("No offline token was found on this device.");try{yield this._updateKeycloakAccessToken()}catch(e){throw this.login(),Error("Cannot update access token so sending to login")}console.debug("Keycloak access token is valid")}let o=()=>{var e;return(null==(e=this.events)?void 0:e.status)===tA.CONNECTED};return o()||(console.debug("Event provider offline, attempting to reconnect using latest auth token."),yield null==(t=this.events)?void 0:t.connect()),o()}),o=yield t();if(void 0!==o){if(!o){e=Math.min(ul.MAX_RECONNECT_DELAY,e+3e3),console.error(`Failed to reconnect to the Manager. Attempting again in ${e}...`),this._reconnectTimer=window.setTimeout(()=>this.reconnect(e),e);return}this._onReconnected()}})}isKeycloakReachable(){return ur(this,arguments,void 0,function*(e=2e3){let t=new AbortController,o=setTimeout(()=>t.abort(),e);try{let e=this._keycloak.endpoints.token(),o=yield fetch(e,{method:"OPTIONS",signal:t.signal});return 200===o.status}catch(e){return!1}finally{clearTimeout(o)}})}}ul.MAX_RECONNECT_DELAY=45e3;let uc=new ul,ud=uc,{I:uu}={M:t4,P:t6,A:t8,C:1,L:og,R:oy,D:on,V:o_,I:ow,H:oE,N:ok,U:oA,B:oC,F:ox},uf=(e,t)=>{let o=e._$AN;if(void 0===o)return!1;for(let e of o)e._$AO?.(t,!1),uf(e,t);return!0},uh=e=>{let t,o;do{if(void 0===(t=e._$AM))break;(o=t._$AN).delete(e),e=t}while(0===o?.size)},um=e=>{for(let t;t=e._$AM;e=t){let o=t._$AN;if(void 0===o)t._$AN=o=new Set;else if(o.has(e))break;o.add(e),uF(t)}};function ub(e){void 0!==this._$AN?(uh(this),this._$AM=e,um(this)):this._$AM=e}function up(e,t=!1,o=0){let n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(n))for(let e=o;e<n.length;e++)uf(n[e],!1),uh(n[e]);else null!=n&&(uf(n,!1),uh(n));else uf(this,e)}let uF=e=>{2==e.type&&(e._$AP??=up,e._$AQ??=ub)};class ug extends oN{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),um(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(uf(this,e),uh(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}let uv=Symbol("valueNotInitialized");class u_ extends ug{constructor(e){if(super(e),6!==e.type)throw Error(`\`${this.constructor.name}\` must be bound to an element.`);this.previousValue=uv}render(e,t){return om}update(e,[t,o]){return this.hasChanged(o)&&(this.host=e.options&&e.options.host,this.element=e.element,this.renderer=t,this.previousValue===uv?this.addRenderer():this.runRenderer(),this.previousValue=Array.isArray(o)?[...o]:o),om}reconnected(){this.addRenderer()}disconnected(){this.removeRenderer()}addRenderer(){throw Error("The `addRenderer` method must be implemented.")}runRenderer(){throw Error("The `runRenderer` method must be implemented.")}removeRenderer(){throw Error("The `removeRenderer` method must be implemented.")}renderRenderer(e,...t){oS(this.renderer.call(this.host,...t),e,{host:this.host})}hasChanged(e){return Array.isArray(e)?!Array.isArray(this.previousValue)||this.previousValue.length!==e.length||e.some((e,t)=>e!==this.previousValue[t]):this.previousValue!==e}}let uy=Symbol("contentUpdateDebouncer");class uw extends u_{get rendererProperty(){throw Error("The `rendererProperty` getter must be implemented.")}addRenderer(){this.element[this.rendererProperty]=(e,t)=>{this.renderRenderer(e,t)}}runRenderer(){this.element[uy]=io.debounce(this.element[uy],ie,()=>{this.element.requestContentUpdate()})}removeRenderer(){this.element[this.rendererProperty]=null,delete this.element[uy]}}let uE=oP(class extends uw{get rendererProperty(){return"renderer"}}),uC=oP(class extends uw{get rendererProperty(){return"headerRenderer"}}),uk=oP(class extends uw{get rendererProperty(){return"footerRenderer"}}),uA=class extends sG{static get styles(){return[sG.styles,tU`
2121
2129
  ::part(header),
2122
2130
  ::part(content) {
2123
2131
  background-color: var(--lumo-contrast-5pct);
@@ -2133,7 +2141,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2133
2141
  ::part(content) {
2134
2142
  padding: 0 var(--lumo-space-l);
2135
2143
  }
2136
- `]}open(){this.setAttribute("opened","true")}close(){this.toggleAttribute("opened",!1)}};uC=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-dialog")],uC);let uk=tU`
2144
+ `]}open(){this.setAttribute("opened","true")}close(){this.toggleAttribute("opened",!1)}};uA=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-dialog")],uA);let ux=tU`
2137
2145
  :host([step-buttons-visible]) ::slotted(input) {
2138
2146
  text-align: center;
2139
2147
  }
@@ -2153,7 +2161,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2153
2161
  :host([readonly]) [part$='button'] {
2154
2162
  pointer-events: none;
2155
2163
  }
2156
- `,uA=e=>class extends aW(e){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String,reflectToAttribute:!0},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this._requestValidation()}_onInput(e){super._onInput(e),this.invalid&&this._requestValidation()}_valueChanged(e,t){super._valueChanged(e,t),void 0!==t&&this.invalid&&this._requestValidation()}},ux=e=>class extends uA(e){static get properties(){return{min:{type:Number},max:{type:Number},step:{type:Number},stepButtonsVisible:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_stepChanged(step, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"min","max"]}static get constraints(){return[...super.constraints,"min","max","step"]}constructor(){super(),this._setType("number"),this.__onWheel=this.__onWheel.bind(this)}get slotStyles(){let e=this.localName;return[`
2164
+ `,uD=e=>class extends aW(e){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String,reflectToAttribute:!0},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this._requestValidation()}_onInput(e){super._onInput(e),this.invalid&&this._requestValidation()}_valueChanged(e,t){super._valueChanged(e,t),void 0!==t&&this.invalid&&this._requestValidation()}},uS=e=>class extends uD(e){static get properties(){return{min:{type:Number},max:{type:Number},step:{type:Number},stepButtonsVisible:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_stepChanged(step, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"min","max"]}static get constraints(){return[...super.constraints,"min","max","step"]}constructor(){super(),this._setType("number"),this.__onWheel=this.__onWheel.bind(this)}get slotStyles(){let e=this.localName;return[`
2157
2165
  ${e} input[type="number"]::-webkit-outer-spin-button,
2158
2166
  ${e} input[type="number"]::-webkit-inner-spin-button {
2159
2167
  appearance: none;
@@ -2171,7 +2179,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2171
2179
  ${e}[dir='rtl']:not([step-buttons-visible]) input[type="number"]::placeholder {
2172
2180
  text-align: left;
2173
2181
  }
2174
- `]}get clearElement(){return this.$.clearButton}get __hasUnparsableValue(){return"NaN"===this._inputElementValue}ready(){super.ready(),this.addController(new rQ(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new rZ(this.inputElement,this._labelController)),this._tooltipController=new iD(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement)}checkValidity(){return this.inputElement?this.inputElement.checkValidity():!this.invalid}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("wheel",this.__onWheel)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("wheel",this.__onWheel)}__onWheel(e){this.hasAttribute("focused")&&e.preventDefault()}_onDecreaseButtonTouchend(e){e.cancelable&&(e.preventDefault(),this.__blurActiveElement(),this._decreaseValue())}_onIncreaseButtonTouchend(e){e.cancelable&&(e.preventDefault(),this.__blurActiveElement(),this._increaseValue())}__blurActiveElement(){let e=rp();e&&e!==this.inputElement&&e.blur()}_onDecreaseButtonClick(){this._decreaseValue()}_onIncreaseButtonClick(){this._increaseValue()}_decreaseValue(){this._incrementValue(-1)}_increaseValue(){this._incrementValue(1)}_incrementValue(e){if(this.disabled||this.readonly)return;let t=this.step||1,o=parseFloat(this.value);this.value?o<this.min?(e=0,o=this.min):o>this.max&&(e=0,o=this.max):0===this.min&&e<0||0===this.max&&e>0||0===this.max&&0===this.min?(e=0,o=0):(null==this.max||this.max>=0)&&(null==this.min||this.min<=0)?o=0:this.min>0?(o=this.min,this.max<0&&e<0&&(o=this.max),e=0):this.max<0&&(o=this.max,e<0?e=0:this._getIncrement(1,o-t)>this.max?o-=2*t:o-=t);let n=this._getIncrement(e,o);(!this.value||0===e||this._incrementIsInsideTheLimits(e,o))&&(this.inputElement.value=String(parseFloat(n)),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.__commitValueChange())}_getIncrement(e,t){let o=this.step||1,n=this.min||0,i=Math.max(this._getMultiplier(t),this._getMultiplier(o),this._getMultiplier(n));o*=i,t=Math.round(t*i),n*=i;let r=(t-n)%o;return e>0?(t-r+o)/i:e<0?(t-(r||o))/i:t/i}_getDecimalCount(e){let t=String(e),o=t.indexOf(".");return -1===o?1:t.length-o-1}_getMultiplier(e){if(!isNaN(e))return 10**this._getDecimalCount(e)}_incrementIsInsideTheLimits(e,t){return e<0?null==this.min||this._getIncrement(e,t)>=this.min:e>0?null==this.max||this._getIncrement(e,t)<=this.max:this._getIncrement(e,t)<=this.max&&this._getIncrement(e,t)>=this.min}_isButtonEnabled(e){let t=e*(this.step||1),o=parseFloat(this.value);return!this.value||!this.disabled&&this._incrementIsInsideTheLimits(t,o)}_stepChanged(e,t){t&&(t.step=e||"any")}_valueChanged(e,t){e&&isNaN(parseFloat(e))?this.value="":"string"!=typeof this.value&&(this.value=String(this.value)),super._valueChanged(this.value,t),this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValueStatus=!1)}_onKeyDown(e){"ArrowUp"===e.key?(e.preventDefault(),this._increaseValue()):"ArrowDown"===e.key&&(e.preventDefault(),this._decreaseValue()),super._onKeyDown(e)}_onInput(e){this.__keepCommittedValue=!0,super._onInput(e),this.__keepCommittedValue=!1}_onChange(e){e.stopPropagation()}_onClearAction(e){super._onClearAction(e),this.__commitValueChange()}_setFocused(e){super._setFocused(e),e||this.__commitValueChange()}_onEnter(e){super._onEnter(e),this.__commitValueChange()}__commitValueChange(){this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValueStatus!==this.__hasUnparsableValue&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValueStatus=this.__hasUnparsableValue}get _inputElementValue(){return this.inputElement&&this.inputElement.validity.badInput?"NaN":super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e}};class uD extends ux(iY(id(iy(i$(oO))))){static get is(){return"vaadin-number-field"}static get styles(){return[aG,uk]}render(){return of`
2182
+ `]}get clearElement(){return this.$.clearButton}get __hasUnparsableValue(){return"NaN"===this._inputElementValue}ready(){super.ready(),this.addController(new rQ(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new rZ(this.inputElement,this._labelController)),this._tooltipController=new iD(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement)}checkValidity(){return this.inputElement?this.inputElement.checkValidity():!this.invalid}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("wheel",this.__onWheel)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("wheel",this.__onWheel)}__onWheel(e){this.hasAttribute("focused")&&e.preventDefault()}_onDecreaseButtonTouchend(e){e.cancelable&&(e.preventDefault(),this.__blurActiveElement(),this._decreaseValue())}_onIncreaseButtonTouchend(e){e.cancelable&&(e.preventDefault(),this.__blurActiveElement(),this._increaseValue())}__blurActiveElement(){let e=rp();e&&e!==this.inputElement&&e.blur()}_onDecreaseButtonClick(){this._decreaseValue()}_onIncreaseButtonClick(){this._increaseValue()}_decreaseValue(){this._incrementValue(-1)}_increaseValue(){this._incrementValue(1)}_incrementValue(e){if(this.disabled||this.readonly)return;let t=this.step||1,o=parseFloat(this.value);this.value?o<this.min?(e=0,o=this.min):o>this.max&&(e=0,o=this.max):0===this.min&&e<0||0===this.max&&e>0||0===this.max&&0===this.min?(e=0,o=0):(null==this.max||this.max>=0)&&(null==this.min||this.min<=0)?o=0:this.min>0?(o=this.min,this.max<0&&e<0&&(o=this.max),e=0):this.max<0&&(o=this.max,e<0?e=0:this._getIncrement(1,o-t)>this.max?o-=2*t:o-=t);let n=this._getIncrement(e,o);(!this.value||0===e||this._incrementIsInsideTheLimits(e,o))&&(this.inputElement.value=String(parseFloat(n)),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.__commitValueChange())}_getIncrement(e,t){let o=this.step||1,n=this.min||0,i=Math.max(this._getMultiplier(t),this._getMultiplier(o),this._getMultiplier(n));o*=i,t=Math.round(t*i),n*=i;let r=(t-n)%o;return e>0?(t-r+o)/i:e<0?(t-(r||o))/i:t/i}_getDecimalCount(e){let t=String(e),o=t.indexOf(".");return -1===o?1:t.length-o-1}_getMultiplier(e){if(!isNaN(e))return 10**this._getDecimalCount(e)}_incrementIsInsideTheLimits(e,t){return e<0?null==this.min||this._getIncrement(e,t)>=this.min:e>0?null==this.max||this._getIncrement(e,t)<=this.max:this._getIncrement(e,t)<=this.max&&this._getIncrement(e,t)>=this.min}_isButtonEnabled(e){let t=e*(this.step||1),o=parseFloat(this.value);return!this.value||!this.disabled&&this._incrementIsInsideTheLimits(t,o)}_stepChanged(e,t){t&&(t.step=e||"any")}_valueChanged(e,t){e&&isNaN(parseFloat(e))?this.value="":"string"!=typeof this.value&&(this.value=String(this.value)),super._valueChanged(this.value,t),this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValueStatus=!1)}_onKeyDown(e){"ArrowUp"===e.key?(e.preventDefault(),this._increaseValue()):"ArrowDown"===e.key&&(e.preventDefault(),this._decreaseValue()),super._onKeyDown(e)}_onInput(e){this.__keepCommittedValue=!0,super._onInput(e),this.__keepCommittedValue=!1}_onChange(e){e.stopPropagation()}_onClearAction(e){super._onClearAction(e),this.__commitValueChange()}_setFocused(e){super._setFocused(e),e||this.__commitValueChange()}_onEnter(e){super._onEnter(e),this.__commitValueChange()}__commitValueChange(){this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValueStatus!==this.__hasUnparsableValue&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValueStatus=this.__hasUnparsableValue}get _inputElementValue(){return this.inputElement&&this.inputElement.validity.badInput?"NaN":super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e}};class uT extends uS(iY(id(iy(i$(oO))))){static get is(){return"vaadin-number-field"}static get styles(){return[aG,ux]}render(){return of`
2175
2183
  <div class="vaadin-field-container">
2176
2184
  <div part="label">
2177
2185
  <slot name="label"></slot>
@@ -2219,7 +2227,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2219
2227
 
2220
2228
  <slot name="tooltip"></slot>
2221
2229
  </div>
2222
- `}}nJ(uD);let uS=class extends uD{_onEnter(e){return this.dispatchEvent(new CustomEvent("submit",{bubbles:!0,composed:!0})),super._onEnter(e)}};uS=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-number-field")],uS);let uT=tU`
2230
+ `}}nJ(uT);let uO=class extends uT{_onEnter(e){return this.dispatchEvent(new CustomEvent("submit",{bubbles:!0,composed:!0})),super._onEnter(e)}};uO=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-number-field")],uO);let uI=tU`
2223
2231
  [part='radio'] {
2224
2232
  border-radius: 50%;
2225
2233
  color: var(--vaadin-radio-button-dot-color, var(--_color));
@@ -2231,24 +2239,24 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2231
2239
  border-radius: 50%;
2232
2240
  filter: var(--vaadin-radio-button-dot-color, var(--_filter));
2233
2241
  }
2234
- `,uO=[rD,rx("radio","radio-button"),uT],uI=e=>class extends rB(rK(rN(rO(rm(e))))){static get properties(){return{name:{type:String,value:""}}}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("radio"),this.value="on",this.tabindex=0}get slotStyles(){let e=this.localName;return[`
2242
+ `,uB=[rD,rx("radio","radio-button"),uI],uR=e=>class extends rB(rK(rN(rO(rm(e))))){static get properties(){return{name:{type:String,value:""}}}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("radio"),this.value="on",this.tabindex=0}get slotStyles(){let e=this.localName;return[`
2235
2243
  ${e} > input[slot='input'] {
2236
2244
  opacity: 0;
2237
2245
  }
2238
- `]}ready(){super.ready(),this.addController(new rQ(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new rZ(this.inputElement,this._labelController))}};class uB extends uI(id(iY(iy(i$(oO))))){static get is(){return"vaadin-radio-button"}static get styles(){return uO}render(){return of`
2246
+ `]}ready(){super.ready(),this.addController(new rQ(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new rZ(this.inputElement,this._labelController))}};class uP extends uR(id(iY(iy(i$(oO))))){static get is(){return"vaadin-radio-button"}static get styles(){return uB}render(){return of`
2239
2247
  <div class="vaadin-radio-button-container">
2240
2248
  <div part="radio" aria-hidden="true"></div>
2241
2249
  <slot name="input"></slot>
2242
2250
  <slot name="label"></slot>
2243
2251
  </div>
2244
- `}}nJ(uB);let uR=[rD,r3,tU`
2252
+ `}}nJ(uP);let uN=[rD,r3,tU`
2245
2253
  :host([readonly]) ::slotted(vaadin-radio-button) {
2246
2254
  --vaadin-radio-button-background: transparent;
2247
2255
  --vaadin-radio-button-border-color: var(--vaadin-border-color);
2248
2256
  --vaadin-radio-button-marker-color: var(--vaadin-text-color);
2249
2257
  --_border-style: dashed;
2250
2258
  }
2251
- `],uP=e=>class extends rX(ry(rf(rh(e)))){static get properties(){return{name:{type:String,observer:"__nameChanged",sync:!0},value:{type:String,notify:!0,value:"",sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0,observer:"__readonlyChanged"},_fieldName:{type:String}}}constructor(){super(),this.__registerRadioButton=this.__registerRadioButton.bind(this),this.__unregisterRadioButton=this.__unregisterRadioButton.bind(this),this.__onRadioButtonCheckedChange=this.__onRadioButtonCheckedChange.bind(this),this._tooltipController=new iD(this),this._tooltipController.addEventListener("tooltip-changed",e=>{let t=e.detail.node;if(t?.isConnected){let e=this.__radioButtons.map(e=>e.inputElement);this._tooltipController.setAriaTarget(e)}else this._tooltipController.setAriaTarget([])})}get __radioButtons(){return this.__filterRadioButtons([...this.children])}get __selectedRadioButton(){return this.__radioButtons.find(e=>e.checked)}get isHorizontalRTL(){return this.__isRTL&&"vertical"!==this._theme}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","radiogroup"),this._fieldName=`${this.localName}-${iA++}`;let e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new ik(e,({addedNodes:e,removedNodes:t})=>{this.__filterRadioButtons(e).reverse().forEach(this.__registerRadioButton),this.__filterRadioButtons(t).forEach(this.__unregisterRadioButton);let o=this.__radioButtons.map(e=>e.inputElement);this._tooltipController.setAriaTarget(o)}),this.addController(this._tooltipController)}__filterRadioButtons(e){return e.filter(e=>e.nodeType===Node.ELEMENT_NODE&&"vaadin-radio-button"===e.localName)}_onKeyDown(e){super._onKeyDown(e);let t=e.composedPath().find(e=>e.nodeType===Node.ELEMENT_NODE&&"vaadin-radio-button"===e.localName);["ArrowLeft","ArrowUp"].includes(e.key)&&(e.preventDefault(),this.__selectNextRadioButton(t)),["ArrowRight","ArrowDown"].includes(e.key)&&(e.preventDefault(),this.__selectPrevRadioButton(t))}_invalidChanged(e){super._invalidChanged(e),e?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}__nameChanged(e){this.__radioButtons.forEach(t=>{t.name=e||this._fieldName})}__selectNextRadioButton(e){let t=this.__radioButtons.indexOf(e);this.__selectIncRadioButton(t,this.isHorizontalRTL?1:-1)}__selectPrevRadioButton(e){let t=this.__radioButtons.indexOf(e);this.__selectIncRadioButton(t,this.isHorizontalRTL?-1:1)}__selectIncRadioButton(e,t){let o=(this.__radioButtons.length+e+t)%this.__radioButtons.length,n=this.__radioButtons[o];n.disabled?this.__selectIncRadioButton(o,t):(n.focusElement.focus(),n.focusElement.click())}__registerRadioButton(e){e.name=this.name||this._fieldName,e.addEventListener("checked-changed",this.__onRadioButtonCheckedChange),(this.disabled||this.readonly)&&(e.disabled=!0),e.checked&&this.__selectRadioButton(e)}__unregisterRadioButton(e){e.removeEventListener("checked-changed",this.__onRadioButtonCheckedChange),e.value===this.value&&this.__selectRadioButton(null)}__onRadioButtonCheckedChange(e){e.target.checked&&this.__selectRadioButton(e.target)}__valueChanged(e,t){if(void 0!==t||""!==e){if(e){let t=this.__radioButtons.find(t=>t.value===e);t?(this.__selectRadioButton(t),this.toggleAttribute("has-value",!0)):console.warn(`The radio button with the value "${e}" was not found.`)}else this.__selectRadioButton(null),this.removeAttribute("has-value");void 0!==t&&this._requestValidation()}}__readonlyChanged(e,t){(e||void 0!==t)&&t!==e&&this.__updateRadioButtonsDisabledProperty()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||void 0!==t)&&t!==e&&this.__updateRadioButtonsDisabledProperty()}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this._requestValidation()}__selectRadioButton(e){e?this.value=e.value:this.value="",this.__radioButtons.forEach(t=>{t.checked=t===e}),this.readonly&&this.__updateRadioButtonsDisabledProperty()}__updateRadioButtonsDisabledProperty(){this.__radioButtons.forEach(e=>{this.readonly?e.disabled=e!==this.__selectedRadioButton:e.disabled=this.disabled})}};class uN extends uP(id(iY(iy(i$(oO))))){static get is(){return"vaadin-radio-group"}static get styles(){return uR}render(){return of`
2259
+ `],uL=e=>class extends rX(ry(rf(rh(e)))){static get properties(){return{name:{type:String,observer:"__nameChanged",sync:!0},value:{type:String,notify:!0,value:"",sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0,observer:"__readonlyChanged"},_fieldName:{type:String}}}constructor(){super(),this.__registerRadioButton=this.__registerRadioButton.bind(this),this.__unregisterRadioButton=this.__unregisterRadioButton.bind(this),this.__onRadioButtonCheckedChange=this.__onRadioButtonCheckedChange.bind(this),this._tooltipController=new iD(this),this._tooltipController.addEventListener("tooltip-changed",e=>{let t=e.detail.node;if(t?.isConnected){let e=this.__radioButtons.map(e=>e.inputElement);this._tooltipController.setAriaTarget(e)}else this._tooltipController.setAriaTarget([])})}get __radioButtons(){return this.__filterRadioButtons([...this.children])}get __selectedRadioButton(){return this.__radioButtons.find(e=>e.checked)}get isHorizontalRTL(){return this.__isRTL&&"vertical"!==this._theme}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","radiogroup"),this._fieldName=`${this.localName}-${iA++}`;let e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new ik(e,({addedNodes:e,removedNodes:t})=>{this.__filterRadioButtons(e).reverse().forEach(this.__registerRadioButton),this.__filterRadioButtons(t).forEach(this.__unregisterRadioButton);let o=this.__radioButtons.map(e=>e.inputElement);this._tooltipController.setAriaTarget(o)}),this.addController(this._tooltipController)}__filterRadioButtons(e){return e.filter(e=>e instanceof uP)}_onKeyDown(e){super._onKeyDown(e);let t=e.composedPath().find(e=>e instanceof uP);["ArrowLeft","ArrowUp"].includes(e.key)&&(e.preventDefault(),this.__selectNextRadioButton(t)),["ArrowRight","ArrowDown"].includes(e.key)&&(e.preventDefault(),this.__selectPrevRadioButton(t))}_invalidChanged(e){super._invalidChanged(e),e?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}__nameChanged(e){this.__radioButtons.forEach(t=>{t.name=e||this._fieldName})}__selectNextRadioButton(e){let t=this.__radioButtons.indexOf(e);this.__selectIncRadioButton(t,this.isHorizontalRTL?1:-1)}__selectPrevRadioButton(e){let t=this.__radioButtons.indexOf(e);this.__selectIncRadioButton(t,this.isHorizontalRTL?-1:1)}__selectIncRadioButton(e,t){let o=(this.__radioButtons.length+e+t)%this.__radioButtons.length,n=this.__radioButtons[o];n.disabled?this.__selectIncRadioButton(o,t):(n.focusElement.focus(),n.focusElement.click())}__registerRadioButton(e){e.name=this.name||this._fieldName,e.addEventListener("checked-changed",this.__onRadioButtonCheckedChange),(this.disabled||this.readonly)&&(e.disabled=!0),e.checked&&this.__selectRadioButton(e)}__unregisterRadioButton(e){e.removeEventListener("checked-changed",this.__onRadioButtonCheckedChange),e.value===this.value&&this.__selectRadioButton(null)}__onRadioButtonCheckedChange(e){e.target.checked&&this.__selectRadioButton(e.target)}__valueChanged(e,t){if(void 0!==t||""!==e){if(e){let t=this.__radioButtons.find(t=>t.value===e);t?(this.__selectRadioButton(t),this.toggleAttribute("has-value",!0)):console.warn(`The radio button with the value "${e}" was not found.`)}else this.__selectRadioButton(null),this.removeAttribute("has-value");void 0!==t&&this._requestValidation()}}__readonlyChanged(e,t){(e||void 0!==t)&&t!==e&&this.__updateRadioButtonsDisabledProperty()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||void 0!==t)&&t!==e&&this.__updateRadioButtonsDisabledProperty()}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this._requestValidation()}__selectRadioButton(e){e?this.value=e.value:this.value="",this.__radioButtons.forEach(t=>{t.checked=t===e}),this.readonly&&this.__updateRadioButtonsDisabledProperty()}__updateRadioButtonsDisabledProperty(){this.__radioButtons.forEach(e=>{this.readonly?e.disabled=e!==this.__selectedRadioButton:e.disabled=this.disabled})}};class uM extends uL(id(iY(iy(i$(oO))))){static get is(){return"vaadin-radio-group"}static get styles(){return uN}render(){return of`
2252
2260
  <div class="vaadin-group-field-container">
2253
2261
  <div part="label">
2254
2262
  <slot name="label"></slot>
@@ -2269,12 +2277,12 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2269
2277
  </div>
2270
2278
 
2271
2279
  <slot name="tooltip"></slot>
2272
- `}}nJ(uN);let uL=class extends uN{};uL=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-radio-group")],uL);let uM=e=>class extends rm(ry(e)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged",sync:!0},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value??this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();let e=this.getAttribute("value");null!==e&&(this.value=e),this.__shouldAllowFocusWhenDisabled()&&this.style.setProperty("--_vaadin-item-disabled-pointer-events","auto")}focus(e){(!this.disabled||this.__shouldAllowFocusWhenDisabled())&&super.focus(e)}_shouldSetActive(e){return!this.disabled&&!("keydown"===e.type&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.__shouldAllowFocusWhenDisabled()||this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}__shouldAllowFocusWhenDisabled(){return!1}};class uU extends uM(iY(il(iy(i$(oO))))){static get is(){return"vaadin-select-item"}static get styles(){return st}static get properties(){return{role:{type:String,value:"option",reflectToAttribute:!0}}}render(){return of`
2280
+ `}}nJ(uM);let uU=class extends uM{};uU=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-radio-group")],uU);let uj=e=>class extends rm(ry(e)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged",sync:!0},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value??this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();let e=this.getAttribute("value");null!==e&&(this.value=e),this.__shouldAllowFocusWhenDisabled()&&this.style.setProperty("--_vaadin-item-disabled-pointer-events","auto")}focus(e){(!this.disabled||this.__shouldAllowFocusWhenDisabled())&&super.focus(e)}_shouldSetActive(e){return!this.disabled&&!("keydown"===e.type&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.__shouldAllowFocusWhenDisabled()||this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}__shouldAllowFocusWhenDisabled(){return!1}};class u$ extends uj(iY(il(iy(i$(oO))))){static get is(){return"vaadin-select-item"}static get styles(){return sn}static get properties(){return{role:{type:String,value:"option",reflectToAttribute:!0}}}render(){return of`
2273
2281
  <span part="checkmark" aria-hidden="true"></span>
2274
2282
  <div part="content">
2275
2283
  <slot></slot>
2276
2284
  </div>
2277
- `}}nJ(uU);let uj=e=>class extends rh(e){get focused(){return(this._getItems()||[]).find(r_)}get _vertical(){return!0}get _tabNavigation(){return!1}focus(e){let t=this._getFocusableIndex();t>=0&&this._focus(t,e)}_getFocusableIndex(){let e=this._getItems();return Array.isArray(e)?this._getAvailableIndex(e,0,null,e=>!rg(e)):-1}_getItems(){return Array.from(this.children)}_onKeyDown(e){let t,o;if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;let{key:n,shiftKey:i}=e,r=this._getItems()||[],a=r.indexOf(this.focused),s=this._vertical||"rtl"!==this.getAttribute("dir")?1:-1;this.__isPrevKeyPressed(n,i)?(o=-s,t=a-s):this.__isNextKeyPressed(n,i)?(o=s,t=a+s):"Home"===n?(o=1,t=0):"End"===n&&(o=-1,t=r.length-1),t=this._getAvailableIndex(r,t,o,e=>!rg(e)),this._tabNavigation&&"Tab"===n&&(t>a&&e.shiftKey||t<a&&!e.shiftKey||t===a)||t>=0&&(e.preventDefault(),this._focus(t,{focusVisible:!0,preventScroll:!0},!0))}__isPrevKeyPressed(e,t){return this._vertical?"ArrowUp"===e:"ArrowLeft"===e||this._tabNavigation&&"Tab"===e&&t}__isNextKeyPressed(e,t){return this._vertical?"ArrowDown"===e:"ArrowRight"===e||this._tabNavigation&&"Tab"===e&&!t}_focus(e,t,o=!1){let n=this._getItems();this._focusItem(n[e],t,o)}_focusItem(e,t){e&&e.focus(t)}_getAvailableIndex(e,t,o,n){let i=e.length,r=t;for(let t=0;"number"==typeof r&&t<i;t+=1,r+=o||1){r<0?r=i-1:r>=i&&(r=0);let t=e[r];if(this._isItemFocusable(t)&&this.__isMatchingItem(t,n))return r}return -1}__isMatchingItem(e,t){return"function"!=typeof t||t(e)}_isItemFocusable(e){return!e.hasAttribute("disabled")}},u$=e=>class extends uj(e){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0,sync:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&"rtl"===this.getAttribute("dir")}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return"horizontal"!==this.orientation}focus(e){this._observer&&this._observer.flush();let t=Array.isArray(this.items)?this.items:[],o=this._getAvailableIndex(t,0,null,e=>0===e.tabIndex&&!rg(e));o>=0?this._focus(o,e):super.focus(e)}ready(){super.ready(),this.addEventListener("click",e=>this._onClick(e));let e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new ik(e,()=>{this._setItems(this._filterItems([...this.children]))})}_getItems(){return this.items}_enhanceItems(e,t,o,n){if(!n&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(e=>{t?e.setAttribute("orientation",t):e.removeAttribute("orientation")}),this._setFocusable(o<0||!o?0:o);let n=e[o];e.forEach(e=>{e.selected=e===n}),n&&!n.disabled&&this._scrollToItem(o)}}_filterItems(e){return e.filter(e=>e._hasVaadinItemMixin)}_onClick(e){let t;if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;let o=this._filterItems(e.composedPath())[0];o&&!o.disabled&&(t=this.items.indexOf(o))>=0&&(this.selected=t)}_searchKey(e,t){this._searchReset=io.debounce(this._searchReset,n8.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(e=>this.__isMatchingKey(e))||(this._searchBuf=t.toLowerCase());let o=1===this._searchBuf.length?e+1:e;return this._getAvailableIndex(this.items,o,1,e=>this.__isMatchingKey(e)&&"none"!==getComputedStyle(e).display)}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;let t=e.key,o=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&1===t.length){let e=this._searchKey(o,t);e>=0&&this._focus(e);return}super._onKeyDown(e)}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);let t=this.items[e];this.items.forEach(e=>{e.tabIndex=e===t?0:-1})}_focus(e,t){this.items.forEach((t,o)=>{t.focused=o===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e,t??{preventScroll:!0})}_scrollToItem(e){let t=this._getItems()[e];t&&t.scrollIntoView({block:"nearest",inline:"nearest"})}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{var t;let o=this.getAttribute("dir")||"ltr",n=function(e,t){let{scrollLeft:o}=e;return"rtl"!==t?o:e.scrollWidth-e.clientWidth+o}(this._scrollerElement,o)+e;t=this._scrollerElement,"rtl"!==o?t.scrollLeft=n:t.scrollLeft=t.clientWidth-t.scrollWidth+n}}_isItemFocusable(e){return e.disabled&&e.__shouldAllowFocusWhenDisabled?e.__shouldAllowFocusWhenDisabled():super._isItemFocusable(e)}},uV=tU`
2285
+ `}}nJ(u$);let uV=e=>class extends rh(e){get focused(){return(this._getItems()||[]).find(r_)}get _vertical(){return!0}get _tabNavigation(){return!1}focus(e){let t=this._getFocusableIndex();t>=0&&this._focus(t,e)}_getFocusableIndex(){let e=this._getItems();return Array.isArray(e)?this._getAvailableIndex(e,0,null,e=>!rg(e)):-1}_getItems(){return Array.from(this.children)}_onKeyDown(e){let t,o;if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;let{key:n,shiftKey:i}=e,r=this._getItems()||[],a=r.indexOf(this.focused),s=this._vertical||"rtl"!==this.getAttribute("dir")?1:-1;this.__isPrevKeyPressed(n,i)?(o=-s,t=a-s):this.__isNextKeyPressed(n,i)?(o=s,t=a+s):"Home"===n?(o=1,t=0):"End"===n&&(o=-1,t=r.length-1),t=this._getAvailableIndex(r,t,o,e=>!rg(e)),this._tabNavigation&&"Tab"===n&&(t>a&&e.shiftKey||t<a&&!e.shiftKey||t===a)||t>=0&&(e.preventDefault(),this._focus(t,{focusVisible:!0,preventScroll:!0},!0))}__isPrevKeyPressed(e,t){return this._vertical?"ArrowUp"===e:"ArrowLeft"===e||this._tabNavigation&&"Tab"===e&&t}__isNextKeyPressed(e,t){return this._vertical?"ArrowDown"===e:"ArrowRight"===e||this._tabNavigation&&"Tab"===e&&!t}_focus(e,t,o=!1){let n=this._getItems();this._focusItem(n[e],t,o)}_focusItem(e,t){e&&e.focus(t)}_getAvailableIndex(e,t,o,n){let i=e.length,r=t;for(let t=0;"number"==typeof r&&t<i;t+=1,r+=o||1){r<0?r=i-1:r>=i&&(r=0);let t=e[r];if(this._isItemFocusable(t)&&this.__isMatchingItem(t,n))return r}return -1}__isMatchingItem(e,t){return"function"!=typeof t||t(e)}_isItemFocusable(e){return!e.hasAttribute("disabled")}},uz=e=>class extends uV(e){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0,sync:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&"rtl"===this.getAttribute("dir")}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return"horizontal"!==this.orientation}focus(e){this._observer&&this._observer.flush();let t=Array.isArray(this.items)?this.items:[],o=this._getAvailableIndex(t,0,null,e=>0===e.tabIndex&&!rg(e));o>=0?this._focus(o,e):super.focus(e)}ready(){super.ready(),this.addEventListener("click",e=>this._onClick(e));let e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new ik(e,()=>{this._setItems(this._filterItems([...this.children]))})}_getItems(){return this.items}_enhanceItems(e,t,o,n){if(!n&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(e=>{t?e.setAttribute("orientation",t):e.removeAttribute("orientation")}),this._setFocusable(o<0||!o?0:o);let n=e[o];e.forEach(e=>{e.selected=e===n}),n&&!n.disabled&&this._scrollToItem(o)}}_filterItems(e){return e.filter(e=>e._hasVaadinItemMixin)}_onClick(e){let t;if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;let o=this._filterItems(e.composedPath())[0];o&&!o.disabled&&(t=this.items.indexOf(o))>=0&&(this.selected=t)}_searchKey(e,t){this._searchReset=io.debounce(this._searchReset,n8.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(e=>this.__isMatchingKey(e))||(this._searchBuf=t.toLowerCase());let o=1===this._searchBuf.length?e+1:e;return this._getAvailableIndex(this.items,o,1,e=>this.__isMatchingKey(e)&&"none"!==getComputedStyle(e).display)}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;let t=e.key,o=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&1===t.length){let e=this._searchKey(o,t);e>=0&&this._focus(e);return}super._onKeyDown(e)}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);let t=this.items[e];this.items.forEach(e=>{e.tabIndex=e===t?0:-1})}_focus(e,t){this.items.forEach((t,o)=>{t.focused=o===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e,t??{preventScroll:!0})}_scrollToItem(e){let t=this._getItems()[e];t&&t.scrollIntoView({block:"nearest",inline:"nearest"})}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{var t;let o=this.getAttribute("dir")||"ltr",n=function(e,t){let{scrollLeft:o}=e;return"rtl"!==t?o:e.scrollWidth-e.clientWidth+o}(this._scrollerElement,o)+e;t=this._scrollerElement,"rtl"!==o?t.scrollLeft=n:t.scrollLeft=t.clientWidth-t.scrollWidth+n}}_isItemFocusable(e){return e.disabled&&e.__shouldAllowFocusWhenDisabled?e.__shouldAllowFocusWhenDisabled():super._isItemFocusable(e)}},uq=tU`
2278
2286
  :host {
2279
2287
  --vaadin-item-checkmark-display: block;
2280
2288
  display: flex;
@@ -2296,11 +2304,11 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2296
2304
  margin: 4px 8px;
2297
2305
  margin-inline-start: calc(var(--vaadin-icon-size, 1lh) + var(--vaadin-item-gap, var(--vaadin-gap-s)) + 8px);
2298
2306
  }
2299
- `;class uz extends u$(iY(il(iy(i$(oO))))){static get is(){return"vaadin-select-list-box"}static get styles(){return uV}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}render(){return of`
2307
+ `;class uH extends uz(iY(il(iy(i$(oO))))){static get is(){return"vaadin-select-list-box"}static get styles(){return uq}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}render(){return of`
2300
2308
  <div part="items">
2301
2309
  <slot></slot>
2302
2310
  </div>
2303
- `}ready(){super.ready(),this.setAttribute("role","listbox")}}nJ(uz);let uq=tU`
2311
+ `}ready(){super.ready(),this.setAttribute("role","listbox")}}nJ(uH);let uY=tU`
2304
2312
  :host {
2305
2313
  align-items: flex-start;
2306
2314
  justify-content: flex-start;
@@ -2317,14 +2325,14 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2317
2325
  [part='backdrop'] {
2318
2326
  background: transparent;
2319
2327
  }
2320
- `,uH=e=>class extends a_(ap(il(e))){static get observers(){return["_updateOverlayWidth(opened, positionTarget)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}get _contentRoot(){return this._rendererRoot}get _rendererRoot(){if(!this.__savedRoot){let e=document.createElement("div");e.setAttribute("slot","overlay"),this.owner.appendChild(e),this.__savedRoot=e}return this.__savedRoot}_shouldCloseOnOutsideClick(e){return!0}_mouseDownListener(e){super._mouseDownListener(e),e.preventDefault()}_getMenuElement(){return Array.from(this._rendererRoot.children).find(e=>"style"!==e.localName)}_updateOverlayWidth(e,t){e&&t&&this.style.setProperty("--_vaadin-select-overlay-default-width",`${t.offsetWidth}px`)}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){let e=this._getMenuElement();this.owner._assignMenuElement(e)}}};class uY extends uH(iY(iy(i$(oO)))){static get is(){return"vaadin-select-overlay"}static get styles(){return[ae,uq]}render(){return of`
2328
+ `,uW=e=>class extends a_(ap(il(e))){static get observers(){return["_updateOverlayWidth(opened, positionTarget)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}get _contentRoot(){return this._rendererRoot}get _rendererRoot(){if(!this.__savedRoot){let e=document.createElement("div");e.setAttribute("slot","overlay"),this.owner.appendChild(e),this.__savedRoot=e}return this.__savedRoot}_shouldCloseOnOutsideClick(e){return!0}_mouseDownListener(e){super._mouseDownListener(e),e.preventDefault()}_getMenuElement(){return Array.from(this._rendererRoot.children).find(e=>"style"!==e.localName)}_updateOverlayWidth(e,t){e&&t&&this.style.setProperty("--_vaadin-select-overlay-default-width",`${t.offsetWidth}px`)}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){let e=this._getMenuElement();this.owner._assignMenuElement(e)}}};class uG extends uW(iY(iy(i$(oO)))){static get is(){return"vaadin-select-overlay"}static get styles(){return[ae,uY]}render(){return of`
2321
2329
  <div id="backdrop" part="backdrop" ?hidden="${!this.withBackdrop}"></div>
2322
2330
  <div part="overlay" id="overlay">
2323
2331
  <div part="content" id="content">
2324
2332
  <slot></slot>
2325
2333
  </div>
2326
2334
  </div>
2327
- `}updated(e){super.updated(e),e.has("renderer")&&this.requestContentUpdate()}}nJ(uY);let uW=tU`
2335
+ `}updated(e){super.updated(e),e.has("renderer")&&this.requestContentUpdate()}}nJ(uG);let uK=tU`
2328
2336
  :host {
2329
2337
  min-height: 1lh;
2330
2338
  outline: none;
@@ -2352,13 +2360,13 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2352
2360
  :host([disabled]) {
2353
2361
  pointer-events: none;
2354
2362
  }
2355
- `;class uG extends rC(iY(iy(i$(oO)))){static get is(){return"vaadin-select-value-button"}static get styles(){return uW}render(){return of`
2356
- <div class="vaadin-button-container">
2363
+ `;class uJ extends rC(iY(iy(i$(oO)))){static get is(){return"vaadin-select-value-button"}static get styles(){return uK}render(){return of`
2364
+ <div class="vaadin-button-container" role="presentation">
2357
2365
  <span part="label">
2358
2366
  <slot></slot>
2359
2367
  </span>
2360
2368
  </div>
2361
- `}}nJ(uG);let uK=tU`
2369
+ `}}nJ(uJ);let uX=tU`
2362
2370
  .sr-only {
2363
2371
  border: 0 !important;
2364
2372
  clip: rect(1px, 1px, 1px, 1px) !important;
@@ -2371,7 +2379,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2371
2379
  width: 1px !important;
2372
2380
  white-space: nowrap !important;
2373
2381
  }
2374
- `,uJ=tU`
2382
+ `,uQ=tU`
2375
2383
  :host {
2376
2384
  position: relative;
2377
2385
  }
@@ -2444,7 +2452,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2444
2452
  :host([theme~='align-right']) ::slotted([slot='value']) {
2445
2453
  justify-content: right;
2446
2454
  }
2447
- `;class uX extends ix{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(e,t)=>{t._setFocusElement(e),t.ariaTarget=e,t.stateTarget=e,e.setAttribute("aria-haspopup","listbox")}})}}let uQ=e=>class extends rO(rR(rh(rX(e)))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged",sync:!0},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder, focusElement)"]}constructor(){super(),this._itemId=`value-${this.localName}-${iA++}`,this._srLabelController=new rG(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._overlayElement=this.$.overlay,this._valueButtonController=new uX(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new aV(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new iD(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}updated(e){super.updated(e),e.has("_phone")&&this.toggleAttribute("phone",this._phone)}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}_requiredChanged(e){super._requiredChanged(e),!1===e&&this._requestValidation()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",e=>this._onKeyDownInside(e),!0),e.addEventListener("click",e=>{let t=e.composedPath().find(e=>e._hasVaadinItemMixin);this.__dispatchChangePending=t?.value!==void 0&&t.value!==this.value,this.opened=!1},!0),this.__lastMenuElement=e),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),void 0===t||this.__dispatchChangePending||this._requestValidation()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onEscape(e){this.opened&&(e.stopPropagation(),this.opened=!1)}_onToggleMouseDown(e){e.preventDefault(),this.opened||this.focusElement.focus()}_onKeyDown(e){if(super._onKeyDown(e),!e.altKey&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&1===e.key.length){let t=this._menuElement.selected,o=this._menuElement._searchKey(t??-1,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){"Tab"===e.key&&(this.focusElement.setAttribute("tabindex","-1"),this._overlayElement.restoreFocusOnClose=!1,this.opened=!1,setTimeout(()=>{this.focusElement.setAttribute("tabindex","0"),this._overlayElement.restoreFocusOnClose=!0}))}_openedChanged(e,t){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1);let e=this.hasAttribute("focus-ring");this._openedWithFocusRing=e,e&&this.removeAttribute("focus-ring")}else t&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this._requestValidation())}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t,o=e.getAttribute("label");(t=o?this.__createItemElement({label:o}):e.cloneNode(!0))._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){let t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){let t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){let t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){let e=this.focusElement;if(!e)return;e.innerHTML="";let t=this._items?this._items[this._menuElement.selected]:void 0;if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){let t=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(t,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),r$(e,"aria-labelledby",t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId}),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;let t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),o=e.childElementCount>0;return t||o}_updateSelectedItem(e,t,o){if(t){let o=null==e?e:e.toString();this._menuElement.selected=t.reduce((e,t,n)=>void 0===e&&t.value===o?n:e,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}else o&&this.__updateValueButton()}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this._requestValidation()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||0===this.items.length){e.textContent="";return}let o=e.firstElementChild;o||(o=document.createElement("vaadin-select-list-box"),e.appendChild(o)),o.textContent="",this.items.forEach(e=>{o.appendChild(this.__createItemElement(e))})}__dispatchChange(){this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}};class uZ extends uQ(id(iY(iy(i$(oO))))){static get is(){return"vaadin-select"}static get styles(){return[aG,uK,uJ]}render(){return of`
2455
+ `;class uZ extends ix{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(e,t)=>{t._setFocusElement(e),t.ariaTarget=e,t.stateTarget=e,e.setAttribute("aria-haspopup","listbox")}})}}let u0=e=>class extends rO(rR(rh(rX(e)))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged",sync:!0},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder, focusElement)"]}constructor(){super(),this._itemId=`value-${this.localName}-${iA++}`,this._srLabelController=new rG(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._overlayElement=this.$.overlay,this._valueButtonController=new uZ(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new aV(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new iD(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}updated(e){super.updated(e),e.has("_phone")&&this.toggleAttribute("phone",this._phone)}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}_requiredChanged(e){super._requiredChanged(e),!1===e&&this._requestValidation()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",e=>this._onKeyDownInside(e),!0),e.addEventListener("click",e=>{let t=e.composedPath().find(e=>e._hasVaadinItemMixin);this.__dispatchChangePending=t?.value!==void 0&&t.value!==this.value,this.opened=!1},!0),this.__lastMenuElement=e),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),void 0===t||this.__dispatchChangePending||this._requestValidation()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onEscape(e){this.opened&&(e.stopPropagation(),this.opened=!1)}_onToggleMouseDown(e){e.preventDefault(),this.opened||this.focusElement.focus()}_onKeyDown(e){if(super._onKeyDown(e),!e.altKey&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&1===e.key.length){let t=this._menuElement.selected,o=this._menuElement._searchKey(t??-1,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){"Tab"===e.key&&(this.focusElement.setAttribute("tabindex","-1"),this._overlayElement.restoreFocusOnClose=!1,this.opened=!1,setTimeout(()=>{this.focusElement.setAttribute("tabindex","0"),this._overlayElement.restoreFocusOnClose=!0}))}_openedChanged(e,t){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1);let e=this.hasAttribute("focus-ring");this._openedWithFocusRing=e,e&&this.removeAttribute("focus-ring")}else t&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this._requestValidation())}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t,o=e.getAttribute("label");(t=o?this.__createItemElement({label:o}):e.cloneNode(!0))._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){let t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){let t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){let t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){let e=this.focusElement;if(!e)return;e.innerHTML="";let t=this._items?this._items[this._menuElement.selected]:void 0;if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){let t=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(t,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),r$(e,"aria-labelledby",t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId}),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;let t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),o=e.childElementCount>0;return t||o}_updateSelectedItem(e,t,o){if(t){let o=null==e?e:e.toString();this._menuElement.selected=t.reduce((e,t,n)=>void 0===e&&t.value===o?n:e,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}else o&&this.__updateValueButton()}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this._requestValidation()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||0===this.items.length){e.textContent="";return}let o=e.firstElementChild;o||(o=document.createElement("vaadin-select-list-box"),e.appendChild(o)),o.textContent="",this.items.forEach(e=>{o.appendChild(this.__createItemElement(e))})}__dispatchChange(){this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}};class u1 extends u0(id(iY(iy(i$(oO))))){static get is(){return"vaadin-select"}static get styles(){return[aG,uX,uQ]}render(){return of`
2448
2456
  <div class="vaadin-select-container">
2449
2457
  <div part="label" @click="${this._onClick}">
2450
2458
  <slot name="label"></slot>
@@ -2499,7 +2507,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2499
2507
  <div class="sr-only">
2500
2508
  <slot name="sr-label"></slot>
2501
2509
  </div>
2502
- `}_onOpenedChanged(e){this.opened=e.detail.value}_onOverlayOpen(){this._menuElement&&this._menuElement.focus({focusVisible:rb})}}nJ(uZ),oP(class extends ug{addRenderer(){this.element.renderer=(e,t)=>{this.renderRenderer(e,t)}}runRenderer(){this.element.requestContentUpdate()}removeRenderer(){this.element.renderer=null}});let u0=class extends uZ{};u0=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-select")],u0);let u1=tU`
2510
+ `}_onOpenedChanged(e){this.opened=e.detail.value}_onOverlayOpen(){this._menuElement&&this._menuElement.focus({focusVisible:rb})}}nJ(u1),oP(class extends u_{addRenderer(){this.element.renderer=(e,t)=>{this.renderRenderer(e,t)}}runRenderer(){this.element.requestContentUpdate()}removeRenderer(){this.element.renderer=null}});let u2=class extends u1{};u2=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-select")],u2);let u3=tU`
2503
2511
  :host {
2504
2512
  display: inline-flex;
2505
2513
  align-items: center;
@@ -2613,10 +2621,10 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2613
2621
  background: CanvasText;
2614
2622
  }
2615
2623
  }
2616
- `;class u2 extends iY(iy(i$(oO))){static get is(){return"vaadin-multi-select-combo-box-chip"}static get styles(){return u1}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0,sync:!0},readonly:{type:Boolean,reflectToAttribute:!0,sync:!0},label:{type:String,sync:!0},item:{type:Object}}}render(){return of`
2624
+ `;class u5 extends iY(iy(i$(oO))){static get is(){return"vaadin-multi-select-combo-box-chip"}static get styles(){return u3}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0,sync:!0},readonly:{type:Boolean,reflectToAttribute:!0,sync:!0},label:{type:String,sync:!0},item:{type:Object}}}render(){return of`
2617
2625
  <div part="label">${this.label}</div>
2618
2626
  <div part="remove-button" @click="${this._onRemoveClick}"></div>
2619
- `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}nJ(u2),nJ(class extends r7{static get is(){return"vaadin-multi-select-combo-box-container"}static get styles(){return[super.styles,tU`
2627
+ `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}nJ(u5),nJ(class extends r7{static get is(){return"vaadin-multi-select-combo-box-container"}static get styles(){return[super.styles,tU`
2620
2628
  #wrapper {
2621
2629
  display: flex;
2622
2630
  width: 100%;
@@ -2634,12 +2642,12 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2634
2642
  <slot></slot>
2635
2643
  </div>
2636
2644
  <slot name="suffix"></slot>
2637
- `}});class u3 extends se(iY(il(iy(i$(oO))))){static get is(){return"vaadin-multi-select-combo-box-item"}static get styles(){return[st,a7]}render(){return of`
2645
+ `}});class u4 extends so(iY(il(iy(i$(oO))))){static get is(){return"vaadin-multi-select-combo-box-item"}static get styles(){return[sn,st]}render(){return of`
2638
2646
  <span part="checkmark" aria-hidden="true"></span>
2639
2647
  <div part="content">
2640
2648
  <slot></slot>
2641
2649
  </div>
2642
- `}}nJ(u3);let u5=[[tU`
2650
+ `}}nJ(u4);let u6=[[tU`
2643
2651
  @keyframes fade-in {
2644
2652
  0% {
2645
2653
  opacity: 0;
@@ -2709,16 +2717,16 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2709
2717
  var(--_vaadin-multi-select-combo-box-overlay-default-width, auto)
2710
2718
  );
2711
2719
  }
2712
- `];class u4 extends sn(ap(il(iY(iy(i$(oO)))))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get styles(){return[ae,u5]}render(){return of`
2720
+ `];class u8 extends sr(ap(il(iY(iy(i$(oO)))))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get styles(){return[ae,u6]}render(){return of`
2713
2721
  <div part="overlay" id="overlay">
2714
2722
  <div part="loader"></div>
2715
2723
  <div part="content" id="content"><slot></slot></div>
2716
2724
  </div>
2717
- `}}nJ(u4);class u6 extends su(iy(oO)){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get styles(){return sf}render(){return of`
2725
+ `}}nJ(u8);class u9 extends sh(iy(oO)){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get styles(){return sm}render(){return of`
2718
2726
  <div id="selector">
2719
2727
  <slot></slot>
2720
2728
  </div>
2721
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,o){return!(e instanceof sd)&&!this.owner.readonly&&this.owner._findIndex(e,this.owner.selectedItems,o)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}nJ(u6);let u8=[tU`
2729
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,o){return!(e instanceof sf)&&!this.owner.readonly&&this.owner._findIndex(e,this.owner.selectedItems,o)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}nJ(u9);let u7=[tU`
2722
2730
  :host([opened]) {
2723
2731
  pointer-events: auto;
2724
2732
  }
@@ -2780,12 +2788,12 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2780
2788
  :host([auto-expand-horizontally]) {
2781
2789
  --vaadin-field-default-width: auto;
2782
2790
  }
2783
- `];class u9{context;items=[];pendingRequests={};#f={};#h;#m=0;#b=0;constructor(e,t,o,n,i){this.context=e,this.pageSize=t,this.size=o,this.parentCache=n,this.parentCacheIndex=i,this.#b=o||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.#f)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.#b}get pageSize(){return this.#h}set pageSize(e){this.#h=e,this.pendingRequests={},this.subCaches.forEach(t=>{t.pageSize=e})}get size(){return this.#m}set size(e){if(this.#m!==e){if(this.#m=e,void 0!==this.context.placeholder){this.items.length=e||0;for(let t=0;t<e||0;t++)this.items[t]||=this.context.placeholder}this.items.length>e&&(this.items.length=e||0),Object.keys(this.pendingRequests).forEach(e=>{parseInt(e)*this.pageSize>=this.size&&delete this.pendingRequests[e]})}}recalculateFlatSize(){this.#b=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){let o=e*this.pageSize;t.forEach((e,t)=>{let n=o+t;(void 0===this.size||n<this.size)&&(this.items[n]=e)})}getSubCache(e){return this.#f[e]}removeSubCache(e){delete this.#f[e]}removeSubCaches(){this.#f={}}createSubCache(e){let t=new u9(this.context,this.pageSize,0,this,e);return this.#f[e]=t,t}getFlatIndex(e){let t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((e,o)=>t>o.parentCacheIndex?e+o.flatSize:e,t)}}class u7 extends EventTarget{host;dataProvider;dataProviderParams;isExpanded;getItemId;rootCache;placeholder;isPlaceholder;constructor(e,{size:t,pageSize:o,isExpanded:n,getItemId:i,isPlaceholder:r,placeholder:a,dataProvider:s,dataProviderParams:l}){super(),this.host=e,this.getItemId=i,this.isExpanded=n,this.placeholder=a,this.isPlaceholder=r,this.dataProvider=s,this.dataProviderParams=l,this.rootCache=this.#p(o,t)}get flatSize(){return this.rootCache.flatSize}get pageSize(){return this.rootCache.pageSize}get #F(){return{isExpanded:this.isExpanded,placeholder:this.placeholder}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.rootCache.pageSize=e}setDataProvider(e){this.dataProvider=e}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.#p(this.rootCache.pageSize,this.rootCache.size)}getFlatIndexContext(e){return function e(t,o,n=0){let i=o;for(let o of t.subCaches){let t=o.parentCacheIndex;if(i<=t)break;if(i<=t+o.flatSize)return e(o,i-t-1,n+1);i-=o.flatSize}return{cache:t,item:t.items[i],index:i,page:Math.floor(i/t.pageSize),level:n}}(this.rootCache,e)}getItemContext(e){return function e({getItemId:t},o,n,i=0,r=0){for(let e=0;e<o.items.length;e++){let a=o.items[e];if(a&&t(a)===t(n))return{cache:o,level:i,item:a,index:e,page:Math.floor(e/o.pageSize),subCache:o.getSubCache(e),flatIndex:r+o.getFlatIndex(e)}}for(let a of o.subCaches){let s=r+o.getFlatIndex(a.parentCacheIndex),l=e({getItemId:t},a,n,i+1,s+1);if(l)return l}}({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return function e(t,[o,...n],i=0){1/0===o&&(o=t.size-1);let r=t.getFlatIndex(o),a=t.getSubCache(o);return a?.flatSize>0&&n.length?e(a,n,i+r+1):i+r}(this.rootCache,e)}ensureFlatIndexLoaded(e){let{cache:t,page:o,item:n}=this.getFlatIndexContext(e);this.#g(n)||this.#v(t,o)}ensureFlatIndexHierarchy(e){let{cache:t,item:o,index:n}=this.getFlatIndexContext(e);if(this.#g(o)&&this.isExpanded(o)&&!t.getSubCache(n)){let e=t.createSubCache(n);this.#v(e,0)}}loadFirstPage(){this.#v(this.rootCache,0)}_shouldLoadCachePage(e,t){return!0}#p(e,t){return new u9(this.#F,e,t)}#v(e,t){if(!this.dataProvider||e.pendingRequests[t]||!this._shouldLoadCachePage(e,t))return;let o={page:t,pageSize:e.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(o={...o,...this.dataProviderParams()});let n=(i,r)=>{e.pendingRequests[t]===n&&(void 0!==r?e.size=r:o.parentItem&&(e.size=i.length),e.setPage(t,i),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=n,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(o,n)}#g(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}let fe=e=>class extends e{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0}}}static get observers(){return["_dataProviderFilterChanged(filter)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderInitialized=!1,this.__previousDataProviderFilter,this.__dataProviderController=new u7(this,{placeholder:new sd,isPlaceholder:e=>e instanceof sd,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;let t=e.detail.index;void 0!==t&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(void 0===this.__previousDataProviderFilter&&""===e){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(e){this._shouldFetchData()&&e&&(this._forceNextRequest||void 0===this.size?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){let{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),this.opened||this._isInputFocused()||this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){let{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){let{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){let{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(void 0!==this.items&&void 0!==this.dataProvider)throw e(),Error("Using `items` and `dataProvider` together is not supported")}},ft=e=>class extends e{static get observers(){return["__clearPendingFocusOnFilter(filter)"]}__focusIndex(e){if(!("number"!=typeof e||Number.isNaN(e))&&!(e<0)){if(!this._overlayOpened||!this._dropdownItems||0===this._dropdownItems.length){this.__pendingFocusIndex=e;return}if(!(e>=this._dropdownItems.length)){if(this._focusedIndex=e,this._scrollIntoView(e,!0),this.loading){this.__pendingFocusIndex=e;return}delete this.__pendingFocusIndex,requestAnimationFrame(()=>{this.isConnected&&this._updateActiveDescendant(e)})}}}__focusPendingIndexIfNeeded(){void 0===this.__pendingFocusIndex||this.loading||this.__focusIndex(this.__pendingFocusIndex)}__clearPendingFocusOnFilter(){delete this.__pendingFocusIndex}_onOpened(){super._onOpened(),this.__focusPendingIndexIfNeeded()}__onDataProviderPageLoaded(){super.__onDataProviderPageLoaded(),this.__focusPendingIndexIfNeeded()}};function fo(e,t){return e.findIndex(e=>!(e instanceof sd)&&t(e))}let fn=e=>class extends sb(e){static get properties(){return{items:{type:Array,sync:!0,observer:"_itemsChanged"},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},itemLabelGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0}}}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter),e.has("itemLabelGenerator")&&this.requestContentUpdate()}_onInput(e){let t=this._inputElementValue,o={};this.filter===t?this._filterChanged(this.filter):o.filter=t,this.opened||this._isClearButton(e)||this.autoOpenDisabled||(o.opened=!0),this.setProperties(o)}_getItemLabel(e){if("function"==typeof this.itemLabelGenerator&&e)return this.itemLabelGenerator(e)||"";let t=e&&this.itemLabelPath?im(this.itemLabelPath,e):void 0;return null==t&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?im(this.itemValuePath,e):void 0;return void 0===t&&(t=e?e.toString():""),t}_itemLabelPathChanged(e){"string"!=typeof e&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_setDropdownItems(){}_filterItems(e,t){return e?e.filter(e=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(e).toString().toLowerCase().indexOf(t)>-1)):e}__getItemIndexByValue(e,t){return e&&null!=t?fo(e,e=>this._getItemValue(e)===t):-1}__getItemIndexByLabel(e,t){return e&&t?fo(e,e=>this._getItemLabel(e).toString().toLowerCase()===t.toString().toLowerCase()):-1}},fi=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.isConnected&&(e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect))})})}),fr=ih(e=>class extends e{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),fi.observe(this),this._observeParent){let e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,fi.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),fi.unobserve(this);let e=this.__parent;if(this._observeParent&&e){let t=e.resizables;t&&(t.delete(this),0===t.size&&fi.unobserve(e)),this.__parent=null}}_onResize(e){}}),fa={cleared:"Selection cleared",focused:"focused. Press Backspace to remove",selected:"added to selection",deselected:"removed from selection",total:"{count} items selected"},fs=e=>class extends a3(ft(fe(fn(aW(fr(e)))))){static get properties(){return{autoExpandHorizontally:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},autoExpandVertically:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},collapseChips:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},itemClassNameGenerator:{type:Object,sync:!0},itemIdPath:{type:String,sync:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},selectedItems:{type:Array,value:()=>[],notify:!0,sync:!0},allowCustomValue:{type:Boolean,value:!1},placeholder:{type:String,observer:"_placeholderChanged",reflectToAttribute:!0,sync:!0},renderer:{type:Function,sync:!0},selectedItemsOnTop:{type:Boolean,value:!1,sync:!0},value:{type:String},_overflowItems:{type:Array,value:()=>[],sync:!0},_focusedChipIndex:{type:Number,value:-1,observer:"_focusedChipIndexChanged"},_lastFilter:{type:String,sync:!0},_topGroup:{type:Array,observer:"_topGroupChanged",sync:!0},_inputField:{type:Object}}}static get observers(){return["_selectedItemsChanged(selectedItems)","__openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","__updateOverflowChip(_overflow, _overflowItems, disabled, readonly)","__updateScroller(opened, _dropdownItems, _focusedIndex, _theme)","__updateTopGroup(selectedItemsOnTop, selectedItems, opened)"]}static get defaultI18n(){return fa}get i18n(){return super.i18n}set i18n(e){super.i18n=e}get slotStyles(){let e=this.localName;return[...super.slotStyles,`
2791
+ `];class fe{context;items=[];pendingRequests={};#f={};#h;#m=0;#b=0;constructor(e,t,o,n,i){this.context=e,this.pageSize=t,this.size=o,this.parentCache=n,this.parentCacheIndex=i,this.#b=o||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.#f)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.#b}get pageSize(){return this.#h}set pageSize(e){this.#h=e,this.pendingRequests={},this.subCaches.forEach(t=>{t.pageSize=e})}get size(){return this.#m}set size(e){if(this.#m!==e){if(this.#m=e,void 0!==this.context.placeholder){this.items.length=e||0;for(let t=0;t<e||0;t++)this.items[t]||=this.context.placeholder}this.items.length>e&&(this.items.length=e||0),Object.keys(this.pendingRequests).forEach(e=>{parseInt(e)*this.pageSize>=this.size&&delete this.pendingRequests[e]})}}recalculateFlatSize(){this.#b=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){let o=e*this.pageSize;t.forEach((e,t)=>{let n=o+t;(void 0===this.size||n<this.size)&&(this.items[n]=e)})}getSubCache(e){return this.#f[e]}removeSubCache(e){delete this.#f[e]}removeSubCaches(){this.#f={}}createSubCache(e){let t=new fe(this.context,this.pageSize,0,this,e);return this.#f[e]=t,t}getFlatIndex(e){let t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((e,o)=>t>o.parentCacheIndex?e+o.flatSize:e,t)}}class ft extends EventTarget{host;dataProvider;dataProviderParams;isExpanded;getItemId;rootCache;placeholder;isPlaceholder;constructor(e,{size:t,pageSize:o,isExpanded:n,getItemId:i,isPlaceholder:r,placeholder:a,dataProvider:s,dataProviderParams:l}){super(),this.host=e,this.getItemId=i,this.isExpanded=n,this.placeholder=a,this.isPlaceholder=r,this.dataProvider=s,this.dataProviderParams=l,this.rootCache=this.#p(o,t)}get flatSize(){return this.rootCache.flatSize}get pageSize(){return this.rootCache.pageSize}get #F(){return{isExpanded:this.isExpanded,placeholder:this.placeholder}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.rootCache.pageSize=e}setDataProvider(e){this.dataProvider=e}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.#p(this.rootCache.pageSize,this.rootCache.size)}getFlatIndexContext(e){return function e(t,o,n=0){let i=o;for(let o of t.subCaches){let t=o.parentCacheIndex;if(i<=t)break;if(i<=t+o.flatSize)return e(o,i-t-1,n+1);i-=o.flatSize}return{cache:t,item:t.items[i],index:i,page:Math.floor(i/t.pageSize),level:n}}(this.rootCache,e)}getItemContext(e){return function e({getItemId:t},o,n,i=0,r=0){for(let e=0;e<o.items.length;e++){let a=o.items[e];if(a&&t(a)===t(n))return{cache:o,level:i,item:a,index:e,page:Math.floor(e/o.pageSize),subCache:o.getSubCache(e),flatIndex:r+o.getFlatIndex(e)}}for(let a of o.subCaches){let s=r+o.getFlatIndex(a.parentCacheIndex),l=e({getItemId:t},a,n,i+1,s+1);if(l)return l}}({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return function e(t,[o,...n],i=0){1/0===o&&(o=t.size-1);let r=t.getFlatIndex(o),a=t.getSubCache(o);return a?.flatSize>0&&n.length?e(a,n,i+r+1):i+r}(this.rootCache,e)}ensureFlatIndexLoaded(e){let{cache:t,page:o,item:n}=this.getFlatIndexContext(e);this.#g(n)||this.#v(t,o)}ensureFlatIndexHierarchy(e){let{cache:t,item:o,index:n}=this.getFlatIndexContext(e);if(this.#g(o)&&this.isExpanded(o)&&!t.getSubCache(n)){let e=t.createSubCache(n);this.#v(e,0)}}loadFirstPage(){this.#v(this.rootCache,0)}_shouldLoadCachePage(e,t){return!0}#p(e,t){return new fe(this.#F,e,t)}#v(e,t){if(!this.dataProvider||e.pendingRequests[t]||!this._shouldLoadCachePage(e,t))return;let o={page:t,pageSize:e.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(o={...o,...this.dataProviderParams()});let n=(i,r)=>{e.pendingRequests[t]===n&&(void 0!==r?e.size=r:o.parentItem&&(e.size=i.length),e.setPage(t,i),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=n,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(o,n)}#g(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}let fo=e=>class extends e{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0}}}static get observers(){return["_dataProviderFilterChanged(filter)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderInitialized=!1,this.__previousDataProviderFilter,this.__dataProviderController=new ft(this,{placeholder:new sf,isPlaceholder:e=>e instanceof sf,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;let t=e.detail.index;void 0!==t&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(void 0===this.__previousDataProviderFilter&&""===e){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__dataProviderController.rootCache.size=void 0,this.clearCache())}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(e){this._shouldFetchData()&&e&&(this._forceNextRequest||void 0===this.size?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.__synchronizeControllerState()}__onDataProviderPageLoaded(){let{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),this.opened||this._isInputFocused()||this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0,this.__synchronizeControllerState())}_sizeChanged(e){let{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){let{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){let{rootCache:e}=this.__dataProviderController;this.setProperties({size:e.size,filteredItems:e.items,loading:this.__dataProviderController.isLoading()})}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(void 0!==this.items&&void 0!==this.dataProvider)throw e(),Error("Using `items` and `dataProvider` together is not supported")}},fn=e=>class extends e{static get observers(){return["__clearPendingFocusOnFilter(filter)"]}__focusIndex(e){if(!("number"!=typeof e||Number.isNaN(e))&&!(e<0)&&!this.filter){if(!this._overlayOpened||!this._dropdownItems||0===this._dropdownItems.length){this.__pendingFocusIndex=e;return}if(!(e>=this._dropdownItems.length)){if(this._focusedIndex=e,this._scrollIntoView(e,!0),this.loading){this.__pendingFocusIndex=e;return}delete this.__pendingFocusIndex,requestAnimationFrame(()=>{this.isConnected&&this._updateActiveDescendant(e)})}}}__focusPendingIndexIfNeeded(){void 0===this.__pendingFocusIndex||this.loading||this.__focusIndex(this.__pendingFocusIndex)}__clearPendingFocusOnFilter(){delete this.__pendingFocusIndex}_onOpened(){super._onOpened(),this.__focusPendingIndexIfNeeded()}__onDataProviderPageLoaded(){super.__onDataProviderPageLoaded(),this.__focusPendingIndexIfNeeded()}};function fi(e,t){return e.findIndex(e=>!(e instanceof sf)&&t(e))}let fr=e=>class extends sF(e){static get properties(){return{items:{type:Array,sync:!0,observer:"_itemsChanged"},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},itemLabelGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0}}}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter),e.has("itemLabelGenerator")&&this.requestContentUpdate()}_onInput(e){let t=this._inputElementValue,o={};this.filter===t?this._filterChanged(this.filter):o.filter=t,this.opened||this._isClearButton(e)||this.autoOpenDisabled||(o.opened=!0),this.setProperties(o)}_getItemLabel(e){if("function"==typeof this.itemLabelGenerator&&e)return this.itemLabelGenerator(e)||"";let t=e&&this.itemLabelPath?im(this.itemLabelPath,e):void 0;return null==t&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?im(this.itemValuePath,e):void 0;return void 0===t&&(t=e?e.toString():""),t}_itemLabelPathChanged(e){"string"!=typeof e&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_setDropdownItems(){}_filterItems(e,t){return e?e.filter(e=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(e).toString().toLowerCase().indexOf(t)>-1)):e}__getItemIndexByValue(e,t){return e&&null!=t?fi(e,e=>this._getItemValue(e)===t):-1}__getItemIndexByLabel(e,t){return e&&t?fi(e,e=>this._getItemLabel(e).toString().toLowerCase()===t.toString().toLowerCase()):-1}},fa=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.isConnected&&(e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect))})})}),fs=ih(e=>class extends e{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),fa.observe(this),this._observeParent){let e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,fa.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),fa.unobserve(this);let e=this.__parent;if(this._observeParent&&e){let t=e.resizables;t&&(t.delete(this),0===t.size&&fa.unobserve(e)),this.__parent=null}}_onResize(e){}}),fl={cleared:"Selection cleared",focused:"focused. Press Backspace to remove",selected:"added to selection",deselected:"removed from selection",total:"{count} items selected"},fc=e=>class extends a4(fn(fo(fr(aW(fs(e)))))){static get properties(){return{autoExpandHorizontally:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},autoExpandVertically:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},collapseChips:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},itemClassNameGenerator:{type:Object,sync:!0},itemIdPath:{type:String,sync:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},selectedItems:{type:Array,value:()=>[],notify:!0,sync:!0},allowCustomValue:{type:Boolean,value:!1},placeholder:{type:String,observer:"_placeholderChanged",reflectToAttribute:!0,sync:!0},renderer:{type:Function,sync:!0},selectedItemsOnTop:{type:Boolean,value:!1,sync:!0},value:{type:String},_overflowItems:{type:Array,value:()=>[],sync:!0},_focusedChipIndex:{type:Number,value:-1,observer:"_focusedChipIndexChanged"},_lastFilter:{type:String,sync:!0},_topGroup:{type:Array,observer:"_topGroupChanged",sync:!0},_inputField:{type:Object}}}static get observers(){return["_selectedItemsChanged(selectedItems)","__openedOrItemsChanged(opened, _dropdownItems, loading)","__updateOverflowChip(_overflow, _overflowItems, disabled, readonly)","__updateScroller(opened, _dropdownItems, _focusedIndex, _theme)","__updateTopGroup(selectedItemsOnTop, selectedItems, opened)"]}static get defaultI18n(){return fl}get i18n(){return super.i18n}set i18n(e){super.i18n=e}get slotStyles(){let e=this.localName;return[...super.slotStyles,`
2784
2792
  ${e}[has-value] input::placeholder {
2785
2793
  color: transparent !important;
2786
2794
  forced-color-adjust: none;
2787
2795
  }
2788
- `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}ready(){super.ready(),this.addController(new rQ(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new rZ(this.inputElement,this._labelController)),this._tooltipController=new iD(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._toggleElement=this.$.toggleButton,this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new ix(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",e=>this._preventBlur(e)),this._overflow=e}}),this.addController(this._overflowController)}updated(e){super.updated(e),["loading","itemIdPath","itemClassNameGenerator","renderer"].forEach(t=>{e.has(t)&&(this._scroller[t]=this[t])}),e.has("selectedItems")&&this.opened&&this.$.overlay._updateOverlayWidth(),["autoExpandHorizontally","autoExpandVertically","collapseChips","disabled","readonly","clearButtonVisible","itemClassNameGenerator"].some(t=>e.has(t))&&this.__updateChips(),e.has("readonly")&&(this._setDropdownItems(this.filteredItems),this.dataProvider&&this.clearCache())}checkValidity(){return!this.required||!!this.readonly||this._hasValue}open(){this.disabled||this.readonly&&0===this.selectedItems.length||(this.opened=!0)}clear(){this.__updateSelection([]),rq(this.__effectiveI18n.cleared)}__syncTopGroup(){this._topGroup=this.selectedItemsOnTop?[...this.selectedItems]:[]}clearCache(){this.readonly||(super.clearCache(),this.__syncTopGroup())}_itemsChanged(e,t){super._itemsChanged(e,t),this.__syncTopGroup()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}_onClearAction(){this.clear()}_onClosed(){this._ignoreCommitValue=!0,(!this.loading||this.allowCustomValue)&&this._commitValue()}__updateScroller(e,t,o,n){e&&(this._scroller.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh");let i=this.hasAttribute("closing");this._scroller.setProperties({items:e||i?t:[],opened:e,focusedIndex:o,theme:n})}__openedOrItemsChanged(e,t,o,n){this._overlayOpened=e&&(n||o||!!t?.length)}_closeOrCommit(){this.opened?this.close():this._commitValue()}_commitValue(){this._lastFilter=this.filter,this._ignoreCommitValue?(this._inputElementValue="",this._focusedIndex=-1,this._ignoreCommitValue=!1):this.__commitUserInput(),this.keepFilter&&this.opened||(this.filter="")}__commitUserInput(){if(this._focusedIndex>-1){let e=this._dropdownItems[this._focusedIndex];this.__selectItem(e)}else if(this._inputElementValue){let e=[...this._dropdownItems],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){let e=this._inputElementValue;this._lastCustomValue=e,this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e,composed:!0,bubbles:!0}))}else this.allowCustomValue||this.opened||!t?this._inputElementValue="":this.__selectItem(t)}}_setFocused(e){let t=!e&&!this._closeOnBlurIsPrevented;t&&(this._ignoreCommitValue=!0),super._setFocused(e),t&&document.hasFocus()&&(this._focusedChipIndex=-1,this._requestValidation()),t&&this.readonly&&this.close()}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if("required"===e)return void this._delegateAttribute("aria-required",!!t&&"true");super._delegateAttribute(e,t)}}_placeholderChanged(e){let t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){let t=this._mergeItemLabels(e);void 0===this.__tmpA11yPlaceholder&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else void 0!==this.__tmpA11yPlaceholder&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate()}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_hasValidInputValue(){let e=this._focusedIndex<0&&""!==this._inputElementValue;return this.allowCustomValue||!e}_shouldFetchData(){return!this.readonly&&super._shouldFetchData()}_setDropdownItems(e){if(this.readonly)return void this.__setDropdownItems(this.selectedItems);if(this.filter||!this.selectedItemsOnTop)return void this.__setDropdownItems(e);if(e?.length&&this._topGroup?.length){let t=e.filter(e=>-1===this._findIndex(e,this._topGroup,this.itemIdPath));this.__setDropdownItems(this._topGroup.concat(t));return}this.__setDropdownItems(e)}__setDropdownItems(e){let t=this._dropdownItems;this._dropdownItems=e;let o=t?t[this._focusedIndex]:null;if(t&&t[this._focusedIndex]instanceof sd&&e[this._focusedIndex]instanceof sd)return;let n=this.__getItemIndexByValue(e,this._getItemValue(o));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_mergeItemLabels(e){return e.map(e=>this._getItemLabel(e)).join(", ")}_findIndex(e,t,o){if(o&&e){for(let n=0;n<t.length;n++)if(t[n]&&t[n][o]===e[o])return n;return -1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this._inputElementValue=""):this._inputElementValue=this.filter}__announceItem(e,t,o){let n=this.__effectiveI18n.total.replace("{count}",o||0);rq(`${e} ${this.__effectiveI18n[t?"selected":"deselected"]} ${n}`)}__removeItem(e){let t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);let o=this._getItemLabel(e);this.__announceItem(o,!1,t.length)}__selectItem(e){let t=[...this.selectedItems],o=this._findIndex(e,t,this.itemIdPath),n=this._getItemLabel(e),i=!1;if(-1!==o){let e=this._lastFilter;if(e?.toLowerCase()===n.toLowerCase())return void this.__clearInternalValue();t.splice(o,1)}else t.push(e),i=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(n,i,t.length)}__updateSelection(e){this.selectedItems=e,this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,o){e?(!o||this.__needToSyncTopGroup())&&(this._topGroup=[...t]):this._topGroup=[]}__needToSyncTopGroup(){return!!this.itemIdPath&&this._topGroup&&this._topGroup.some(e=>{let t=this.selectedItems[this._findIndex(e,this.selectedItems,this.itemIdPath)];return t&&e!==t})}__createChip(e){let t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;let o=this._getItemLabel(e);return t.label=o,t.setAttribute("title",o),"function"==typeof this.itemClassNameGenerator&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",e=>this._onItemRemoved(e)),t.addEventListener("mousedown",e=>this._preventBlur(e)),t}__getWrapperWidth(){return this._inputField.$.wrapper.clientWidth}__getOverflowWidth(){let e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");let t=e.getAttribute("count");e.setAttribute("count","99");let o=getComputedStyle(e),n=e.clientWidth+parseInt(o.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",n}__updateChips(){if(!this._inputField||!this.inputElement)return;if(this._chips.forEach(e=>{e.remove()}),0===this.selectedItems.length){this._overflowItems=[];return}if(this.autoExpandVertically){this.selectedItems.forEach(e=>{this.appendChild(this.__createChip(e))}),this._overflowItems=[];return}let e=parseInt(getComputedStyle(this.inputElement).flexBasis);this.collapseChips?this._overflowItems=this.__updateChipsCollapsed(this.selectedItems,e):this.autoExpandHorizontally?this._overflowItems=this.__updateChipsHorizontalExpand(this.selectedItems,e):this._overflowItems=this.__updateChipsDefault(this.selectedItems,e)}__renderAllChips(e,t){return{chips:e.map(e=>{let t=this.__createChip(e);return this.appendChild(t),t}),allChipsFit:this.__getWrapperWidth()-this.$.chips.clientWidth>=t}}__updateChipsCollapsed(e,t){let{chips:o,allChipsFit:n}=this.__renderAllChips(e,t);return n?[]:(o.forEach(e=>e.remove()),e.slice())}__updateChipsHorizontalExpand(e,t){let{chips:o,allChipsFit:n}=this.__renderAllChips(e,t);if(n)return[];let i=this.__getOverflowWidth(),r=o.length;for(;r>1&&(o[r-=1].remove(),!(this.__getWrapperWidth()-this.$.chips.clientWidth>=t+i)););if(1===r){let e=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width")),n=this.__getWrapperWidth()-t-i;o[0].style.maxWidth=`${Math.max(e,n)}px`}return e.slice(r)}__updateChipsDefault(e,t){let o=this.__getWrapperWidth()-t;e.length>1&&(o-=this.__getOverflowWidth());let n=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));for(let t=e.length-1,i=null;t>=0;t--){let r=this.__createChip(e[t]);if(this.insertBefore(r,i),this.$.chips.clientWidth>o&&(o<n||null!==i))return r.remove(),e.slice(0,t+1);r.style.maxWidth=`${o}px`,i=r}return[]}__updateOverflowChip(e,t,o,n){if(e){let i=t.length;e.label=`${i}`,e.setAttribute("count",`${i}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",0===i),e.disabled=o,e.readonly=n}}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e),this.opened&&this.requestContentUpdate()}_onChange(e){e.stopPropagation()}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}this.clearButtonVisible&&!this.opened&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this._onClearAction()),super._onEscape(e)}_onEscapeCancel(){this._closeOrCommit()}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){let e=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(e)}return}super._onEnter(e)}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_onKeyDown(e){super._onKeyDown(e);let t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1}}_onArrowLeft(e,t){let o;if(0!==this.inputElement.selectionStart)return;let n=this._focusedChipIndex;-1!==n&&t.preventDefault(),this.__isRTL?n===e.length-1?o=-1:n>-1&&(o=n+1):-1===n?o=e.length-1:n>0&&(o=n-1),void 0!==o&&(this._focusedChipIndex=o)}_onArrowRight(e,t){let o;if(0!==this.inputElement.selectionStart)return;let n=this._focusedChipIndex;-1!==n&&t.preventDefault(),this.__isRTL?-1===n?o=e.length-1:n>0&&(o=n-1):n===e.length-1?o=-1:n>-1&&(o=n+1),void 0!==o&&(this._focusedChipIndex=o)}_onBackSpace(e){if(0!==this.inputElement.selectionStart)return;let t=this._focusedChipIndex;-1===t?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){let t=this._chips;if(t.forEach((t,o)=>{t.toggleAttribute("focused",o===e)}),e>-1){let o=t[e].item,n=this._getItemLabel(o);rq(`${n} ${this.__effectiveI18n.focused}`)}}}_overlaySelectedItemChanged(e){e.stopPropagation(),this.hasAttribute("closing")||this.readonly||e.detail.item instanceof sd||this.opened&&(this._lastFilter=this._inputElementValue,this.__selectItem(e.detail.item))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}};class fl extends fs(iY(id(iy(i$(oO))))){static get is(){return"vaadin-multi-select-combo-box"}static get styles(){return[aG,u8]}render(){return of`
2796
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}ready(){super.ready(),this.addController(new rQ(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new rZ(this.inputElement,this._labelController)),this._tooltipController=new iD(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._toggleElement=this.$.toggleButton,this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new ix(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",e=>this._preventBlur(e)),this._overflow=e}}),this.addController(this._overflowController)}updated(e){super.updated(e),["loading","itemIdPath","itemClassNameGenerator","renderer"].forEach(t=>{e.has(t)&&(this._scroller[t]=this[t])}),e.has("selectedItems")&&this.opened&&this.$.overlay._updateOverlayWidth(),["autoExpandHorizontally","autoExpandVertically","collapseChips","disabled","readonly","clearButtonVisible","itemClassNameGenerator"].some(t=>e.has(t))&&this.__updateChips(),e.has("readonly")&&(this._setDropdownItems(this.filteredItems),this.dataProvider&&this.clearCache())}checkValidity(){return!this.required||!!this.readonly||this._hasValue}open(){this.disabled||this.readonly&&0===this.selectedItems.length||(this.opened=!0)}clear(){this.__updateSelection([]),rq(this.__effectiveI18n.cleared)}__syncTopGroup(){this._topGroup=this.selectedItemsOnTop?[...this.selectedItems]:[]}clearCache(){this.readonly||(super.clearCache(),this.__syncTopGroup())}_itemsChanged(e,t){super._itemsChanged(e,t),this.__syncTopGroup()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}_onClearAction(){this.clear()}_onClosed(){this._ignoreCommitValue=!0,(!this.loading||this.allowCustomValue)&&this._commitValue()}__updateScroller(e,t,o,n){e&&(this._scroller.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh");let i=this.hasAttribute("closing");this._scroller.setProperties({items:e||i?t:[],opened:e,focusedIndex:o,theme:n})}__openedOrItemsChanged(e,t,o){this._overlayOpened=e&&(o||!!t?.length)}_closeOrCommit(){this.opened?this.close():this._commitValue()}_commitValue(){this._lastFilter=this.filter,this._ignoreCommitValue?(this._inputElementValue="",this._focusedIndex=-1,this._ignoreCommitValue=!1):this.__commitUserInput(),this.keepFilter&&this.opened||(this.filter="")}__commitUserInput(){if(this._focusedIndex>-1){let e=this._dropdownItems[this._focusedIndex];this.__selectItem(e)}else if(this._inputElementValue){let e=[...this._dropdownItems],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){let e=this._inputElementValue;this._lastCustomValue=e,this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e,composed:!0,bubbles:!0}))}else this.allowCustomValue||this.opened||!t?this._inputElementValue="":this.__selectItem(t)}}_setFocused(e){let t=!e&&!this._closeOnBlurIsPrevented;t&&(this._ignoreCommitValue=!0),super._setFocused(e),t&&document.hasFocus()&&(this._focusedChipIndex=-1,this._requestValidation()),t&&this.readonly&&this.close()}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if("required"===e)return void this._delegateAttribute("aria-required",!!t&&"true");super._delegateAttribute(e,t)}}_placeholderChanged(e){let t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){let t=this._mergeItemLabels(e);void 0===this.__tmpA11yPlaceholder&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else void 0!==this.__tmpA11yPlaceholder&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate()}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_hasValidInputValue(){let e=this._focusedIndex<0&&""!==this._inputElementValue;return this.allowCustomValue||!e}_shouldFetchData(){return!this.readonly&&super._shouldFetchData()}_setDropdownItems(e){if(this.readonly)return void this.__setDropdownItems(this.selectedItems);if(this.filter||!this.selectedItemsOnTop)return void this.__setDropdownItems(e);if(e?.length&&this._topGroup?.length){let t=e.filter(e=>-1===this._findIndex(e,this._topGroup,this.itemIdPath));this.__setDropdownItems(this._topGroup.concat(t));return}this.__setDropdownItems(e)}__setDropdownItems(e){let t=this._dropdownItems;this._dropdownItems=e;let o=t?t[this._focusedIndex]:null;if(t&&t[this._focusedIndex]instanceof sf&&e[this._focusedIndex]instanceof sf)return;let n=this.__getItemIndexByValue(e,this._getItemValue(o));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_mergeItemLabels(e){return e.map(e=>this._getItemLabel(e)).join(", ")}_findIndex(e,t,o){if(o&&e){for(let n=0;n<t.length;n++)if(t[n]&&t[n][o]===e[o])return n;return -1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this._inputElementValue=""):this._inputElementValue=this.filter}__announceItem(e,t,o){let n=this.__effectiveI18n.total.replace("{count}",o||0);rq(`${e} ${this.__effectiveI18n[t?"selected":"deselected"]} ${n}`)}__removeItem(e){let t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);let o=this._getItemLabel(e);this.__announceItem(o,!1,t.length)}__selectItem(e){let t=[...this.selectedItems],o=this._findIndex(e,t,this.itemIdPath),n=this._getItemLabel(e),i=!1;if(-1!==o){let e=this._lastFilter;if(e?.toLowerCase()===n.toLowerCase())return void this.__clearInternalValue();t.splice(o,1)}else t.push(e),i=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(n,i,t.length)}__updateSelection(e){this.selectedItems=e,this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,o){e?(!o||this.__needToSyncTopGroup())&&(this._topGroup=[...t]):this._topGroup=[]}__needToSyncTopGroup(){return!!this.itemIdPath&&this._topGroup&&this._topGroup.some(e=>{let t=this.selectedItems[this._findIndex(e,this.selectedItems,this.itemIdPath)];return t&&e!==t})}__createChip(e){let t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;let o=this._getItemLabel(e);return t.label=o,t.setAttribute("title",o),"function"==typeof this.itemClassNameGenerator&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",e=>this._onItemRemoved(e)),t.addEventListener("mousedown",e=>this._preventBlur(e)),t}__getWrapperWidth(){return this._inputField.$.wrapper.clientWidth}__getOverflowWidth(){let e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");let t=e.getAttribute("count");e.setAttribute("count","99");let o=getComputedStyle(e),n=e.clientWidth+parseInt(o.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",n}__updateChips(){if(!this._inputField||!this.inputElement)return;if(this._chips.forEach(e=>{e.remove()}),0===this.selectedItems.length){this._overflowItems=[];return}if(this.autoExpandVertically){this.selectedItems.forEach(e=>{this.appendChild(this.__createChip(e))}),this._overflowItems=[];return}let e=parseInt(getComputedStyle(this.inputElement).flexBasis);this.collapseChips?this._overflowItems=this.__updateChipsCollapsed(this.selectedItems,e):this.autoExpandHorizontally?this._overflowItems=this.__updateChipsHorizontalExpand(this.selectedItems,e):this._overflowItems=this.__updateChipsDefault(this.selectedItems,e)}__renderAllChips(e,t){return{chips:e.map(e=>{let t=this.__createChip(e);return this.appendChild(t),t}),allChipsFit:this.__getWrapperWidth()-this.$.chips.clientWidth>=t}}__updateChipsCollapsed(e,t){let{chips:o,allChipsFit:n}=this.__renderAllChips(e,t);return n?[]:(o.forEach(e=>e.remove()),e.slice())}__updateChipsHorizontalExpand(e,t){let{chips:o,allChipsFit:n}=this.__renderAllChips(e,t);if(n)return[];let i=this.__getOverflowWidth(),r=o.length;for(;r>1&&(o[r-=1].remove(),!(this.__getWrapperWidth()-this.$.chips.clientWidth>=t+i)););if(1===r){let e=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width")),n=this.__getWrapperWidth()-t-i;o[0].style.maxWidth=`${Math.max(e,n)}px`}return e.slice(r)}__updateChipsDefault(e,t){let o=this.__getWrapperWidth()-t;e.length>1&&(o-=this.__getOverflowWidth());let n=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));for(let t=e.length-1,i=null;t>=0;t--){let r=this.__createChip(e[t]);if(this.insertBefore(r,i),this.$.chips.clientWidth>o&&(o<n||null!==i))return r.remove(),e.slice(0,t+1);r.style.maxWidth=`${o}px`,i=r}return[]}__updateOverflowChip(e,t,o,n){if(e){let i=t.length;e.label=`${i}`,e.setAttribute("count",`${i}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",0===i),e.disabled=o,e.readonly=n}}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e),this.opened&&this.requestContentUpdate()}_onChange(e){e.stopPropagation()}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}this.clearButtonVisible&&!this.opened&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this._onClearAction()),super._onEscape(e)}_onEscapeCancel(){this._closeOrCommit()}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){let e=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(e)}return}super._onEnter(e)}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_onKeyDown(e){super._onKeyDown(e);let t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1}}_onArrowLeft(e,t){let o;if(0!==this.inputElement.selectionStart)return;let n=this._focusedChipIndex;-1!==n&&t.preventDefault(),this.__isRTL?n===e.length-1?o=-1:n>-1&&(o=n+1):-1===n?o=e.length-1:n>0&&(o=n-1),void 0!==o&&(this._focusedChipIndex=o)}_onArrowRight(e,t){let o;if(0!==this.inputElement.selectionStart)return;let n=this._focusedChipIndex;-1!==n&&t.preventDefault(),this.__isRTL?-1===n?o=e.length-1:n>0&&(o=n-1):n===e.length-1?o=-1:n>-1&&(o=n+1),void 0!==o&&(this._focusedChipIndex=o)}_onBackSpace(e){if(0!==this.inputElement.selectionStart)return;let t=this._focusedChipIndex;-1===t?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){let t=this._chips;if(t.forEach((t,o)=>{t.toggleAttribute("focused",o===e)}),e>-1){let o=t[e].item,n=this._getItemLabel(o);rq(`${n} ${this.__effectiveI18n.focused}`)}}}_overlaySelectedItemChanged(e){e.stopPropagation(),this.hasAttribute("closing")||this.readonly||e.detail.item instanceof sf||this.opened&&(this._lastFilter=this._inputElementValue,this.__selectItem(e.detail.item))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}};class fd extends fc(iY(id(iy(i$(oO))))){static get is(){return"vaadin-multi-select-combo-box"}static get styles(){return[aG,u7]}render(){return of`
2789
2797
  <div class="vaadin-multi-select-combo-box-container">
2790
2798
  <div part="label">
2791
2799
  <slot name="label"></slot>
@@ -2833,16 +2841,16 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2833
2841
  >
2834
2842
  <slot name="overlay"></slot>
2835
2843
  </vaadin-multi-select-combo-box-overlay>
2836
- `}}nJ(fl);let fc=class extends fl{};fc=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-multi-select-combo-box")],fc);let fd=class extends sA{};function fu(e,t,o){return e?t(e):o?.(e)}fd=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-time-picker")],fd),(eC=tS||(tS={})).BUTTON="button",eC.BUTTON_TOGGLE="button-toggle",eC.BUTTON_MOMENTARY="button-momentary",eC.CHECKBOX="checkbox",eC.CHECKBOX_LIST="checkbox-list",eC.COLOUR="color",eC.DATE="date",eC.DATETIME="datetime-local",eC.EMAIL="email",eC.JSON="json",eC.JSON_OBJECT="json-object",eC.MONTH="month",eC.NUMBER="number",eC.BIG_INT="big-int",eC.PASSWORD="password",eC.RADIO="radio",eC.SWITCH="switch",eC.RANGE="range",eC.TELEPHONE="tel",eC.TEXT="text",eC.TEXTAREA="textarea",eC.TIME="time",eC.URL="url",eC.WEEK="week",eC.SELECT="select",eC.LIST="list",eC.CRON="cron",eC.DURATION="duration",eC.DURATION_TIME="duration-time",eC.DURATION_PERIOD="duration-period";var ff=["MO","TU","WE","TH","FR","SA","SU"],fh=function(){function e(e,t){if(0===t)throw Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return e.fromStr=function(t){return new e(ff.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},e.prototype.toString=function(){var e=ff[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},e.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},e}(),fm=function(e){return null!=e},fb=function(e){return"number"==typeof e},fp=function(e){return"string"==typeof e&&ff.includes(e)},fF=Array.isArray,fg=function(e,t){void 0===t&&(t=e),1==arguments.length&&(t=e,e=0);for(var o=[],n=e;n<t;n++)o.push(n);return o},fv=function(e,t){var o=0,n=[];if(fF(e))for(;o<t;o++)n[o]=[].concat(e);else for(;o<t;o++)n[o]=e;return n};function f_(e,t,o){void 0===o&&(o=" ");var n=String(e);return(t|=0,n.length>t)?String(n):((t-=n.length)>o.length&&(o+=fv(o,t/o.length)),o.slice(0,t)+String(n))}var fy=function(e,t,o){var n=e.split(t);return o?n.slice(0,o).concat([n.slice(o).join(t)]):n},fw=function(e,t){var o=e%t;return o*t<0?o+t:o},fE=function(e,t){return{div:Math.floor(e/t),mod:fw(e,t)}},fC=function(e){return!fm(e)||0===e.length},fk=function(e){return!fC(e)},fA=function(e,t){return fk(e)&&-1!==e.indexOf(t)},fx=function(e,t,o,n,i,r){return void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),new Date(Date.UTC(e,t-1,o,n,i,r))},fD=[31,28,31,30,31,30,31,31,30,31,30,31],fS=fx(1970,1,1),fT=[6,0,1,2,3,4,5],fO=function(e){return e%4==0&&e%100!=0||e%400==0},fI=function(e){return e instanceof Date},fB=function(e){return fI(e)&&!isNaN(e.getTime())},fR=function(e){var t,o;return t=e,o=fS,Math.round((t.getTime()-o.getTime())/864e5)},fP=function(e){return new Date(fS.getTime()+864e5*e)},fN=function(e){var t=e.getUTCMonth();return 1===t&&fO(e.getUTCFullYear())?29:fD[t]},fL=function(e){return fT[e.getUTCDay()]},fM=function(e,t){var o=fx(e,t+1,1);return[fL(o),fN(o)]},fU=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},fj=function(e){return new Date(e.getTime())},f$=function(e){for(var t=[],o=0;o<e.length;o++)t.push(fj(e[o]));return t},fV=function(e){e.sort(function(e,t){return e.getTime()-t.getTime()})},fz=function(e,t){void 0===t&&(t=!0);var o=new Date(e);return[f_(o.getUTCFullYear().toString(),4,"0"),f_(o.getUTCMonth()+1,2,"0"),f_(o.getUTCDate(),2,"0"),"T",f_(o.getUTCHours(),2,"0"),f_(o.getUTCMinutes(),2,"0"),f_(o.getUTCSeconds(),2,"0"),t?"Z":""].join("")},fq=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);if(!t)throw Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[5],10)||0,parseInt(t[6],10)||0,parseInt(t[7],10)||0))},fH=function(e,t){return e.toLocaleString("sv-SE",{timeZone:t}).replace(" ","T")+"Z"},fY=function(e,t){var o=new Date(fH(e,Intl.DateTimeFormat().resolvedOptions().timeZone)),n=new Date(fH(e,null!=t?t:"UTC")).getTime()-o.getTime();return new Date(e.getTime()-n)},fW=function(){function e(e,t){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=t,"between"===e?(this.maxDate=t.inc?t.before:new Date(t.before.getTime()-1),this.minDate=t.inc?t.after:new Date(t.after.getTime()+1)):"before"===e?this.maxDate=t.inc?t.dt:new Date(t.dt.getTime()-1):"after"===e&&(this.minDate=t.inc?t.dt:new Date(t.dt.getTime()+1))}return e.prototype.accept=function(e){++this.total;var t=this.minDate&&e<this.minDate,o=this.maxDate&&e>this.maxDate;if("between"===this.method){if(t)return!0;if(o)return!1}else if("before"===this.method){if(o)return!1}else if("after"===this.method)return!!t||(this.add(e),!1);return this.add(e)},e.prototype.add=function(e){return this._result.push(e),!0},e.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;default:return e.length?e[e.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),fG=function(e,t){return(fG=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};function fK(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}fG(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var fJ=function(){return(fJ=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function fX(e,t,o){if(o||2==arguments.length)for(var n,i=0,r=t.length;i<r;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var fQ=function(e){function t(t,o,n){var i=e.call(this,t,o)||this;return i.iterator=n,i}return fK(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(fW);let fZ={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}};var f0=function(e,t){return -1!==e.indexOf(t)},f1=function(e){return e.toString()},f2=function(e,t,o){return"".concat(t," ").concat(o,", ").concat(e)},f3=function(){function e(e,t,o,n){if(void 0===t&&(t=f1),void 0===o&&(o=fZ),void 0===n&&(n=f2),this.text=[],this.language=o||fZ,this.gettext=t,this.dateFormatter=n,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),r=[].concat(this.options.bynmonthday);i.sort(function(e,t){return e-t}),r.sort(function(e,t){return t-e}),this.bymonthday=i.concat(r),this.bymonthday.length||(this.bymonthday=null)}if(fm(this.origOptions.byweekday)){var a=fF(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],s=String(a);this.byweekday={allWeeks:a.filter(function(e){return!e.n}),someWeeks:a.filter(function(e){return!!e.n}),isWeekdays:-1!==s.indexOf("MO")&&-1!==s.indexOf("TU")&&-1!==s.indexOf("WE")&&-1!==s.indexOf("TH")&&-1!==s.indexOf("FR")&&-1===s.indexOf("SA")&&-1===s.indexOf("SU"),isEveryDay:-1!==s.indexOf("MO")&&-1!==s.indexOf("TU")&&-1!==s.indexOf("WE")&&-1!==s.indexOf("TH")&&-1!==s.indexOf("FR")&&-1!==s.indexOf("SA")&&-1!==s.indexOf("SU")};var l=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(l),this.byweekday.someWeeks.sort(l),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){if(!(t.options.freq in e.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var o in t.origOptions){if(f0(["dtstart","tzid","wkst","freq"],o))break;if(!f0(e.IMPLEMENTED[t.options.freq],o))return!1}return!0},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[hR.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var o=this.options.until;this.add(this.dateFormatter(o.getUTCFullYear(),this.language.monthNames[o.getUTCMonth()],o.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(t(this.plural(this.options.count)?"times":"time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"hours":"hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"minutes":"minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(e(this.plural(this.options.interval)?"weekdays":"weekday")):this.add(e(this.plural(this.options.interval)?"days":"day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(e(this.plural(this.options.interval)?"weeks":"week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(e(this.plural(this.options.interval)?"weekdays":"weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(e(this.plural(this.options.interval)?"days":"day")):(1===this.options.interval&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},e.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"months":"month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"years":"year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(e(this.plural(this.options.byweekno.length)?"weeks":"week")).add(this.list(this.options.byweekno,void 0,e("and")))},e.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},e.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},e.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(e){e=parseInt(e.toString(),10);var t,o=this.gettext;if(-1===e)return o("last");var n=Math.abs(e);switch(n){case 1:case 21:case 31:t=n+o("st");break;case 2:case 22:t=n+o("nd");break;case 3:case 23:t=n+o("rd");break;default:t=n+o("th")}return e<0?t+" "+o("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=fb(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},e.prototype.plural=function(e){return e%100!=1},e.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},e.prototype.list=function(e,t,o,n){var i=this;void 0===n&&(n=","),fF(e)||(e=[e]),t=t||function(e){return e.toString()};var r=function(e){return t&&t.call(i,e)};if(!o)return e.map(r).join(n+" ");for(var a=e.map(r),s=n,l="",c=0;c<a.length;c++)0!==c&&(c===a.length-1?l+=" "+o+" ":l+=s+" "),l+=a[c];return l},e}(),f5=function(){function e(e){this.done=!0,this.rules=e}return e.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&null===this.symbol},e.prototype.nextSymbol=function(){this.symbol=null,this.value=null;do{if(this.done)return!1;for(var e in t=null,this.rules){var t,o,n=this.rules[e].exec(this.text);n&&(null===t||n[0].length>t[0].length)&&(t=n,o=e)}if(null!=t&&(this.text=this.text.substr(t[0].length),""===this.text&&(this.done=!0)),null==t){this.done=!0,this.symbol=null,this.value=null;return}}while("SKIP"===o);return this.symbol=o,this.value=t,!0},e.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(e){if(this.accept(e))return!0;throw Error("expected "+e+" but found "+this.symbol)},e}();function f4(e,t){void 0===t&&(t=fZ);var o={},n=new f5(t.tokens);if(!n.start(e))return null;return function(){n.expect("every");var e=n.acceptNumber();if(e&&(o.interval=parseInt(e[0],10)),n.isDone())throw Error("Unexpected end");switch(n.symbol){case"day(s)":o.freq=hR.DAILY,n.nextSymbol()&&(r(),c());break;case"weekday(s)":o.freq=hR.WEEKLY,o.byweekday=[hR.MO,hR.TU,hR.WE,hR.TH,hR.FR],n.nextSymbol(),r(),c();break;case"week(s)":o.freq=hR.WEEKLY,n.nextSymbol()&&(i(),r(),c());break;case"hour(s)":o.freq=hR.HOURLY,n.nextSymbol()&&(i(),c());break;case"minute(s)":o.freq=hR.MINUTELY,n.nextSymbol()&&(i(),c());break;case"month(s)":o.freq=hR.MONTHLY,n.nextSymbol()&&(i(),c());break;case"year(s)":o.freq=hR.YEARLY,n.nextSymbol()&&(i(),c());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":if(o.freq=hR.WEEKLY,o.byweekday=[hR[n.symbol.substr(0,2).toUpperCase()]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw Error("Unexpected end");var t=s();if(!t)throw Error("Unexpected symbol "+n.symbol+", expected weekday");o.byweekday.push(hR[t]),n.nextSymbol()}r(),function(){n.accept("on"),n.accept("the");var e=l();if(e)for(o.bymonthday=[e],n.nextSymbol();n.accept("comma");){if(!(e=l()))throw Error("Unexpected symbol "+n.symbol+"; expected monthday");o.bymonthday.push(e),n.nextSymbol()}}(),c();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(o.freq=hR.YEARLY,o.bymonth=[a()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw Error("Unexpected end");var d=a();if(!d)throw Error("Unexpected symbol "+n.symbol+", expected month");o.bymonth.push(d),n.nextSymbol()}i(),c();break;default:throw Error("Unknown symbol")}}(),o;function i(){var e=n.accept("on"),t=n.accept("the");if(e||t)do{var i=l(),r=s(),c=a();if(i)r?(n.nextSymbol(),o.byweekday||(o.byweekday=[]),o.byweekday.push(hR[r].nth(i))):(o.bymonthday||(o.bymonthday=[]),o.bymonthday.push(i),n.accept("day(s)"));else if(r)n.nextSymbol(),o.byweekday||(o.byweekday=[]),o.byweekday.push(hR[r]);else if("weekday(s)"===n.symbol)n.nextSymbol(),o.byweekday||(o.byweekday=[hR.MO,hR.TU,hR.WE,hR.TH,hR.FR]);else if("week(s)"===n.symbol){n.nextSymbol();var d=n.acceptNumber();if(!d)throw Error("Unexpected symbol "+n.symbol+", expected week number");for(o.byweekno=[parseInt(d[0],10)];n.accept("comma");){if(!(d=n.acceptNumber()))throw Error("Unexpected symbol "+n.symbol+"; expected monthday");o.byweekno.push(parseInt(d[0],10))}}else{if(!c)return;n.nextSymbol(),o.bymonth||(o.bymonth=[]),o.bymonth.push(c)}}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function r(){if(n.accept("at"))do{var e=n.acceptNumber();if(!e)throw Error("Unexpected symbol "+n.symbol+", expected hour");for(o.byhour=[parseInt(e[0],10)];n.accept("comma");){if(!(e=n.acceptNumber()))throw Error("Unexpected symbol "+n.symbol+"; expected hour");o.byhour.push(parseInt(e[0],10))}}while(n.accept("comma")||n.accept("at"))}function a(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function s(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function l(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var e=parseInt(n.value[1],10);if(e<-366||e>366)throw Error("Nth out of range: "+e);return n.nextSymbol(),n.accept("last")?-e:e;default:return!1}}function c(){if("until"===n.symbol){var e=Date.parse(n.text);if(!e)throw Error("Cannot parse until date:"+n.text);o.until=new Date(e)}else n.accept("for")&&(o.count=parseInt(n.value[0],10),n.expect("number"))}}function f6(e){return e<tT.HOURLY}(ek=tT||(tT={}))[ek.YEARLY=0]="YEARLY",ek[ek.MONTHLY=1]="MONTHLY",ek[ek.WEEKLY=2]="WEEKLY",ek[ek.DAILY=3]="DAILY",ek[ek.HOURLY=4]="HOURLY",ek[ek.MINUTELY=5]="MINUTELY",ek[ek.SECONDLY=6]="SECONDLY";var f8=["count","until","interval","byweekday","bymonthday","bymonth"];f3.IMPLEMENTED=[],f3.IMPLEMENTED[tT.HOURLY]=f8,f3.IMPLEMENTED[tT.MINUTELY]=f8,f3.IMPLEMENTED[tT.DAILY]=["byhour"].concat(f8),f3.IMPLEMENTED[tT.WEEKLY]=f8,f3.IMPLEMENTED[tT.MONTHLY]=f8,f3.IMPLEMENTED[tT.YEARLY]=["byweekno","byyearday"].concat(f8);var f9=f3.isFullyConvertible,f7=function(){function e(e,t,o,n){this.hour=e,this.minute=t,this.second=o,this.millisecond=n||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return(60*this.hour*60+60*this.minute+this.second)*1e3+this.millisecond},e}(),he=function(e){function t(t,o,n,i,r,a,s){var l=e.call(this,i,r,a,s)||this;return l.year=t,l.month=o,l.day=n,l}return fK(t,e),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return fL(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var t=Math.floor(this.month/12),o=fw(this.month,12);this.month=o,this.year+=t,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,t){t>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-t))+7*e:this.day+=-(this.getWeekday()-t)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,t,o){for(t&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var n=fE(this.hour,24),i=n.div,r=n.mod;if(i&&(this.hour=r,this.addDaily(i)),fC(o)||fA(o,this.hour))break}},t.prototype.addMinutes=function(e,t,o,n){for(t&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var i=fE(this.minute,60),r=i.div,a=i.mod;if(r&&(this.minute=a,this.addHours(r,!1,o)),(fC(o)||fA(o,this.hour))&&(fC(n)||fA(n,this.minute)))break}},t.prototype.addSeconds=function(e,t,o,n,i){for(t&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var r=fE(this.second,60),a=r.div,s=r.mod;if(a&&(this.second=s,this.addMinutes(a,!1,o,n)),(fC(o)||fA(o,this.hour))&&(fC(n)||fA(n,this.minute))&&(fC(i)||fA(i,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=fM(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>9999))return;e=fM(this.year,this.month-1)[1]}}},t.prototype.add=function(e,t){var o=e.freq,n=e.interval,i=e.wkst,r=e.byhour,a=e.byminute,s=e.bysecond;switch(o){case tT.YEARLY:return this.addYears(n);case tT.MONTHLY:return this.addMonths(n);case tT.WEEKLY:return this.addWeekly(n,i);case tT.DAILY:return this.addDaily(n);case tT.HOURLY:return this.addHours(n,t,r);case tT.MINUTELY:return this.addMinutes(n,t,r,a);case tT.SECONDLY:return this.addSeconds(n,t,r,a,s)}},t}(f7);function ht(e){for(var t=[],o=Object.keys(e),n=0;n<o.length;n++){var i=o[n];fA(hB,i)||t.push(i),fI(e[i])&&!fB(e[i])&&t.push(i)}if(t.length)throw Error("Invalid options: "+t.join(", "));return fJ({},e)}function ho(e){var t=e.split("\n").map(hi).filter(function(e){return null!==e});return fJ(fJ({},t[0]),t[1])}function hn(e){var t={},o=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!o)return t;var n=o[1],i=o[2];return n&&(t.tzid=n),t.dtstart=fq(i),t}function hi(e){if(!(e=e.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return hr(e);var o=t[1];switch(o.toUpperCase()){case"RRULE":case"EXRULE":return hr(e);case"DTSTART":return hn(e);default:throw Error("Unsupported RFC prop ".concat(o," in ").concat(e))}}function hr(e){var t=hn(e.replace(/^RRULE:/i,""));return e.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach(function(o){var n=o.split("="),i=n[0],r=n[1];switch(i.toUpperCase()){case"FREQ":t.freq=tT[r.toUpperCase()];break;case"WKST":t.wkst=hO[r.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var a,s=-1!==(a=r).indexOf(",")?a.split(",").map(ha):ha(a);t[i.toLowerCase()]=s;break;case"BYWEEKDAY":case"BYDAY":t.byweekday=r.split(",").map(function(e){if(2===e.length)return hO[e];var t=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!t||t.length<3)throw SyntaxError("Invalid weekday string: ".concat(e));var o=Number(t[1]);return new fh(hO[t[2]].weekday,o)});break;case"DTSTART":case"TZID":var l=hn(e);t.tzid=l.tzid,t.dtstart=l.dtstart;break;case"UNTIL":t.until=fq(r);break;case"BYEASTER":t.byeaster=Number(r);break;default:throw Error("Unknown RRULE property '"+i+"'")}}),t}function ha(e){return/^[+-]?\d+$/.test(e)?Number(e):e}var hs=function(){function e(e,t){if(isNaN(e.getTime()))throw RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=t}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var e=fz(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:fY(this.date,this.tzid)},e}();function hl(e){for(var t=[],o="",n=Object.keys(e),i=Object.keys(hI),r=0;r<n.length;r++)if("tzid"!==n[r]&&fA(i,n[r])){var a,s,l=n[r].toUpperCase(),c=e[n[r]],d="";if(!(!fm(c)||fF(c)&&!c.length)){switch(l){case"FREQ":d=hR.FREQUENCIES[e.freq];break;case"WKST":d=fb(c)?new fh(c).toString():c.toString();break;case"BYWEEKDAY":l="BYDAY",d=(fF(c)?c:[c]).map(function(e){return e instanceof fh?e:fF(e)?new fh(e[0],e[1]):new fh(e)}).toString();break;case"DTSTART":a=c,s=e.tzid,o=a?"DTSTART"+new hs(new Date(a),s).toString():"";break;case"UNTIL":d=fz(c,!e.tzid);break;default:if(fF(c)){for(var u=[],f=0;f<c.length;f++)u[f]=String(c[f]);d=u.toString()}else d=String(c)}d&&t.push([l,d])}}var h=t.map(function(e){var t=e[0],o=e[1];return"".concat(t,"=").concat(o.toString())}).join(";"),m="";return""!==h&&(m="RRULE:".concat(h)),[o,m].filter(function(e){return!!e}).join("\n")}var hc=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(e,t,o){t&&(t=t instanceof Date?fj(t):f$(t)),"all"===e?this.all=t:(o._value=t,this[e].push(o))},e.prototype._cacheGet=function(e,t){var o=!1,n=t?Object.keys(t):[],i=this[e];if("all"===e)o=this.all;else if(fF(i))for(var r=0;r<i.length;r++){var a=i[r];if(!(n.length&&function(e){for(var o=0;o<n.length;o++){var i=n[o];if(!function(e,t){return Array.isArray(e)?!!Array.isArray(t)&&e.length===t.length&&e.every(function(e,o){return e.getTime()===t[o].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}(t[i],e[i]))return!0}return!1}(a))){o=a._value;break}}if(!o&&this.all){for(var s=new fW(e,t),r=0;r<this.all.length&&s.accept(this.all[r]);r++);o=s.getValue(),this._cacheAdd(e,o,t)}return fF(o)?f$(o):o instanceof Date?fj(o):o},e}(),hd=fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX([],fv(1,31),!0),fv(2,28),!0),fv(3,31),!0),fv(4,30),!0),fv(5,31),!0),fv(6,30),!0),fv(7,31),!0),fv(8,31),!0),fv(9,30),!0),fv(10,31),!0),fv(11,30),!0),fv(12,31),!0),fv(1,7),!0),hu=fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX([],fv(1,31),!0),fv(2,29),!0),fv(3,31),!0),fv(4,30),!0),fv(5,31),!0),fv(6,30),!0),fv(7,31),!0),fv(8,31),!0),fv(9,30),!0),fv(10,31),!0),fv(11,30),!0),fv(12,31),!0),fv(1,7),!0),hf=fg(1,29),hh=fg(1,30),hm=fg(1,31),hb=fg(1,32),hp=fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX([],hb,!0),hh,!0),hb,!0),hm,!0),hb,!0),hm,!0),hb,!0),hb,!0),hm,!0),hb,!0),hm,!0),hb,!0),hb.slice(0,7),!0),hF=fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX([],hb,!0),hf,!0),hb,!0),hm,!0),hb,!0),hm,!0),hb,!0),hb,!0),hm,!0),hb,!0),hm,!0),hb,!0),hb.slice(0,7),!0),hg=fg(-28,0),hv=fg(-29,0),h_=fg(-30,0),hy=fg(-31,0),hw=fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX([],hy,!0),hv,!0),hy,!0),h_,!0),hy,!0),h_,!0),hy,!0),hy,!0),h_,!0),hy,!0),h_,!0),hy,!0),hy.slice(0,7),!0),hE=fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX(fX([],hy,!0),hg,!0),hy,!0),h_,!0),hy,!0),h_,!0),hy,!0),hy,!0),h_,!0),hy,!0),h_,!0),hy,!0),hy.slice(0,7),!0),hC=[0,31,60,91,121,152,182,213,244,274,305,335,366],hk=[0,31,59,90,120,151,181,212,243,273,304,334,365],hA=function(){for(var e=[],t=0;t<55;t++)e=e.concat(fg(7));return e}(),hx=function(){function e(e){this.options=e}return e.prototype.rebuild=function(e,t){var o,n,i,r,a,s,l,c,d,u,f=this.options;if(e!==this.lastyear&&(this.yearinfo=function(e,t){var o,n,i,r,a,s=fx(e,1,1),l=fO(e)?366:365,c=fO(e+1)?366:365,d=fR(s),u=fL(s),f=fJ(fJ({yearlen:l,nextyearlen:c,yearordinal:d,yearweekday:u},(n=fO(o=e)?366:365,i=fL(fx(o,1,1)),365===n?{mmask:hd,mdaymask:hF,nmdaymask:hE,wdaymask:hA.slice(i),mrange:hk}:{mmask:hu,mdaymask:hp,nmdaymask:hw,wdaymask:hA.slice(i),mrange:hC})),{wnomask:null});if(fC(t.byweekno))return f;f.wnomask=fv(0,l+7);var h=r=fw(7-u+t.wkst,7);h>=4?(h=0,a=f.yearlen+fw(u-t.wkst,7)):a=l-h;for(var m=Math.floor(Math.floor(a/7)+fw(a,7)/4),b=0;b<t.byweekno.length;b++){var p=t.byweekno[b];if(p<0&&(p+=m+1),p>0&&p<=m){var F=void 0;p>1?(F=h+(p-1)*7,h!==r&&(F-=7-r)):F=h;for(var g=0;g<7&&(f.wnomask[F]=1,F++,f.wdaymask[F]!==t.wkst);g++);}}if(fA(t.byweekno,1)){var F=h+7*m;if(h!==r&&(F-=7-r),F<l)for(var b=0;b<7&&(f.wnomask[F]=1,F+=1,f.wdaymask[F]!==t.wkst);b++);}if(h){var v=void 0;if(fA(t.byweekno,-1))v=-1;else{var _=fL(fx(e-1,1,1)),y=fw(7-_.valueOf()+t.wkst,7),w=fO(e-1)?366:365,E=void 0;y>=4?(y=0,E=w+fw(_-t.wkst,7)):E=l-h,v=Math.floor(52+fw(E,7)/4)}if(fA(t.byweekno,v))for(var F=0;F<h;F++)f.wnomask[F]=1}return f}(e,f)),fk(f.bynweekday)&&(t!==this.lastmonth||e!==this.lastyear)){var h=this.yearinfo,m=h.yearlen,b=h.mrange,p=h.wdaymask;this.monthinfo=function(e,t,o,n,i,r){var a={lastyear:e,lastmonth:t,nwdaymask:[]},s=[];if(r.freq===hR.YEARLY)if(fC(r.bymonth))s=[[0,o]];else for(var l=0;l<r.bymonth.length;l++)t=r.bymonth[l],s.push(n.slice(t-1,t+1));else r.freq===hR.MONTHLY&&(s=[n.slice(t-1,t+1)]);if(fC(s))return a;a.nwdaymask=fv(0,o);for(var l=0;l<s.length;l++)for(var c=s[l],d=c[0],u=c[1]-1,f=0;f<r.bynweekday.length;f++){var h=void 0,m=r.bynweekday[f],b=m[0],p=m[1];p<0?(h=u+(p+1)*7,h-=fw(i[h]-b,7)):(h=d+(p-1)*7,h+=fw(7-i[h]+b,7)),d<=h&&h<=u&&(a.nwdaymask[h]=1)}return a}(e,t,m,b,p,f)}fm(f.byeaster)&&(this.eastermask=(void 0===(o=f.byeaster)&&(o=0),n=e%19,i=Math.floor(e/100),r=e%100,a=Math.floor(i/4),s=Math.floor((i+8)/25),l=Math.floor((i-s+1)/3),c=Math.floor(19*n+i-a-l+15)%30,d=Math.floor(32+i%4*2+2*Math.floor(r/4)-c-r%4)%7,u=Math.floor((n+11*c+22*d)/451),[Math.ceil((Date.UTC(e,Math.floor((c+d-7*u+114)/31)-1,(c+d-7*u+114)%31+1+o)-Date.UTC(e,0,1))/864e5)]))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[fg(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(e,t){for(var o=this.mrange[t-1],n=this.mrange[t],i=fv(null,this.yearlen),r=o;r<n;r++)i[r]=r;return[i,o,n]},e.prototype.wdayset=function(e,t,o){for(var n=fv(null,this.yearlen+7),i=fR(fx(e,t,o))-this.yearordinal,r=i,a=0;a<7&&(n[i]=i,++i,this.wdaymask[i]!==this.options.wkst);a++);return[n,r,i]},e.prototype.ddayset=function(e,t,o){var n=fv(null,this.yearlen),i=fR(fx(e,t,o))-this.yearordinal;return n[i]=i,[n,i,i+1]},e.prototype.htimeset=function(e,t,o,n){var i=this,r=[];return this.options.byminute.forEach(function(t){r=r.concat(i.mtimeset(e,t,o,n))}),fV(r),r},e.prototype.mtimeset=function(e,t,o,n){var i=this.options.bysecond.map(function(o){return new f7(e,t,o,n)});return fV(i),i},e.prototype.stimeset=function(e,t,o,n){return[new f7(e,t,o,n)]},e.prototype.getdayset=function(e){switch(e){case tT.YEARLY:return this.ydayset.bind(this);case tT.MONTHLY:return this.mdayset.bind(this);case tT.WEEKLY:return this.wdayset.bind(this);case tT.DAILY:default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(e){switch(e){case tT.HOURLY:return this.htimeset.bind(this);case tT.MINUTELY:return this.mtimeset.bind(this);case tT.SECONDLY:return this.stimeset.bind(this)}},e}();function hD(e,t){var o=t.dtstart,n=t.freq,i=t.interval,r=t.until,a=t.bysetpos,s=t.count;if(0===s||0===i)return hT(e);var l=he.fromDate(o),c=new hx(t);c.rebuild(l.year,l.month);for(var d=function(e,t,o){var n=o.freq,i=o.byhour,r=o.byminute,a=o.bysecond;if(f6(n)){var s=o.dtstart.getTime()%1e3;if(!f6(o.freq))return[];var l=[];return o.byhour.forEach(function(e){o.byminute.forEach(function(t){o.bysecond.forEach(function(o){l.push(new f7(e,t,o,s))})})}),l}return n>=hR.HOURLY&&fk(i)&&!fA(i,t.hour)||n>=hR.MINUTELY&&fk(r)&&!fA(r,t.minute)||n>=hR.SECONDLY&&fk(a)&&!fA(a,t.second)?[]:e.gettimeset(n)(t.hour,t.minute,t.second,t.millisecond)}(c,l,t);;){var u=c.getdayset(n)(l.year,l.month,l.day),f=u[0],h=u[1],m=u[2],b=function(e,t,o,n,i){for(var r=!1,a=t;a<o;a++){var s=e[a];(r=function(e,t,o){var n=o.bymonth,i=o.byweekno,r=o.byweekday,a=o.byeaster,s=o.bymonthday,l=o.bynmonthday,c=o.byyearday;return fk(n)&&!fA(n,e.mmask[t])||fk(i)&&!e.wnomask[t]||fk(r)&&!fA(r,e.wdaymask[t])||fk(e.nwdaymask)&&!e.nwdaymask[t]||null!==a&&!fA(e.eastermask,t)||(fk(s)||fk(l))&&!fA(s,e.mdaymask[t])&&!fA(l,e.nmdaymask[t])||fk(c)&&(t<e.yearlen&&!fA(c,t+1)&&!fA(c,-e.yearlen+t)||t>=e.yearlen&&!fA(c,t+1-e.yearlen)&&!fA(c,-e.nextyearlen+t-e.yearlen))}(n,s,i))&&(e[s]=null)}return r}(f,h,m,c,t);if(fk(a))for(var p=function(e,t,o,n,i,r){for(var a=[],s=0;s<e.length;s++){var l=void 0,c=void 0,d=e[s];d<0?(l=Math.floor(d/t.length),c=fw(d,t.length)):(l=Math.floor((d-1)/t.length),c=fw(d-1,t.length));for(var u=[],f=o;f<n;f++){var h=r[f];fm(h)&&u.push(h)}var m=void 0;m=l<0?u.slice(l)[0]:u[l];var b=t[c],p=fU(fP(i.yearordinal+m),b);fA(a,p)||a.push(p)}return fV(a),a}(a,d,h,m,c,f),F=0;F<p.length;F++){var g=p[F];if(r&&g>r)return hT(e);if(g>=o){var v=hS(g,t);if(!e.accept(v)||s&&!--s)return hT(e)}}else for(var F=h;F<m;F++){var _=f[F];if(fm(_))for(var y=fP(c.yearordinal+_),w=0;w<d.length;w++){var g=fU(y,d[w]);if(r&&g>r)return hT(e);if(g>=o){var v=hS(g,t);if(!e.accept(v)||s&&!--s)return hT(e)}}}if(0===t.interval||(l.add(t,b),l.year>9999))return hT(e);f6(n)||(d=c.gettimeset(n)(l.hour,l.minute,l.second,0)),c.rebuild(l.year,l.month)}}function hS(e,t){return new hs(e,t.tzid).rezonedDate()}function hT(e){return e.getValue()}var hO={MO:new fh(0),TU:new fh(1),WE:new fh(2),TH:new fh(3),FR:new fh(4),SA:new fh(5),SU:new fh(6)},hI={freq:tT.YEARLY,dtstart:null,interval:1,wkst:hO.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},hB=Object.keys(hI),hR=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this._cache=t?null:new hc,this.origOptions=ht(e);var o=function(e){var t=fJ(fJ({},hI),ht(e));if(fm(t.byeaster)&&(t.freq=hR.YEARLY),!(fm(t.freq)&&hR.FREQUENCIES[t.freq]))throw Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date(new Date().setMilliseconds(0))),fm(t.wkst)?fb(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=hR.MO.weekday,fm(t.bysetpos)){fb(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var o=0;o<t.bysetpos.length;o++){var n=t.bysetpos[o];if(0===n||!(n>=-366&&n<=366))throw Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(t.byweekno||fk(t.byweekno)||fk(t.byyearday)||t.bymonthday||fk(t.bymonthday)||fm(t.byweekday)||fm(t.byeaster)))switch(t.freq){case hR.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case hR.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case hR.WEEKLY:t.byweekday=[fL(t.dtstart)]}if(fm(t.bymonth)&&!fF(t.bymonth)&&(t.bymonth=[t.bymonth]),fm(t.byyearday)&&!fF(t.byyearday)&&fb(t.byyearday)&&(t.byyearday=[t.byyearday]),fm(t.bymonthday))if(fF(t.bymonthday)){for(var i=[],r=[],o=0;o<t.bymonthday.length;o++){var n=t.bymonthday[o];n>0?i.push(n):n<0&&r.push(n)}t.bymonthday=i,t.bynmonthday=r}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);else t.bymonthday=[],t.bynmonthday=[];if(fm(t.byweekno)&&!fF(t.byweekno)&&(t.byweekno=[t.byweekno]),fm(t.byweekday))if(fb(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(fp(t.byweekday))t.byweekday=[fh.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof fh)!t.byweekday.n||t.freq>hR.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{for(var a=[],s=[],o=0;o<t.byweekday.length;o++){var l=t.byweekday[o];if(fb(l)){a.push(l);continue}if(fp(l)){a.push(fh.fromStr(l).weekday);continue}!l.n||t.freq>hR.MONTHLY?a.push(l.weekday):s.push([l.weekday,l.n])}t.byweekday=fk(a)?a:null,t.bynweekday=fk(s)?s:null}else t.bynweekday=null;return fm(t.byhour)?fb(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<hR.HOURLY?[t.dtstart.getUTCHours()]:null,fm(t.byminute)?fb(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<hR.MINUTELY?[t.dtstart.getUTCMinutes()]:null,fm(t.bysecond)?fb(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<hR.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}(e).parsedOptions;this.options=o}return e.parseText=function(e,t){return f4(e,t)},e.fromText=function(e,t){var o;return void 0===(o=t)&&(o=fZ),new hR(f4(e,o)||void 0)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(e){return hD(e,this.options)},e.prototype._cacheGet=function(e,t){return!!this._cache&&this._cache._cacheGet(e,t)},e.prototype._cacheAdd=function(e,t,o){if(this._cache)return this._cache._cacheAdd(e,t,o)},e.prototype.all=function(e){if(e)return this._iter(new fQ("all",{},e));var t=this._cacheGet("all");return!1===t&&(t=this._iter(new fW("all",{})),this._cacheAdd("all",t)),t},e.prototype.between=function(e,t,o,n){if(void 0===o&&(o=!1),!fB(e)||!fB(t))throw Error("Invalid date passed in to RRule.between");var i={before:t,after:e,inc:o};if(n)return this._iter(new fQ("between",i,n));var r=this._cacheGet("between",i);return!1===r&&(r=this._iter(new fW("between",i)),this._cacheAdd("between",r,i)),r},e.prototype.before=function(e,t){if(void 0===t&&(t=!1),!fB(e))throw Error("Invalid date passed in to RRule.before");var o={dt:e,inc:t},n=this._cacheGet("before",o);return!1===n&&(n=this._iter(new fW("before",o)),this._cacheAdd("before",n,o)),n},e.prototype.after=function(e,t){if(void 0===t&&(t=!1),!fB(e))throw Error("Invalid date passed in to RRule.after");var o={dt:e,inc:t},n=this._cacheGet("after",o);return!1===n&&(n=this._iter(new fW("after",o)),this._cacheAdd("after",n,o)),n},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return hl(this.origOptions)},e.prototype.toText=function(e,t,o){return new f3(this,e,t,o).toString()},e.prototype.isFullyConvertibleToText=function(){return f9(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=tT.YEARLY,e.MONTHLY=tT.MONTHLY,e.WEEKLY=tT.WEEKLY,e.DAILY=tT.DAILY,e.HOURLY=tT.HOURLY,e.MINUTELY=tT.MINUTELY,e.SECONDLY=tT.SECONDLY,e.MO=hO.MO,e.TU=hO.TU,e.WE=hO.WE,e.TH=hO.TH,e.FR=hO.FR,e.SA=hO.SA,e.SU=hO.SU,e.parseString=ho,e.optionsToString=hl,e}(),hP={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function hN(e,t){return void 0===t&&(t={}),function(e,t){var o,n,i,r,a,s,l,c=(o=[],n=[],i=[],r=[],s=(a=hn(e)).dtstart,l=a.tzid,(function(e,t){if(void 0===t&&(t=!1),!(e=e&&e.trim()))throw Error("Invalid empty string");if(!t)return e.split(/\s/);for(var o=e.split("\n"),n=0;n<o.length;){var i=o[n]=o[n].replace(/\s+$/g,"");i?n>0&&" "===i[0]?(o[n-1]+=i.slice(1),o.splice(n,1)):n+=1:o.splice(n,1)}return o})(e,t.unfold).forEach(function(e){if(e){var t,a=function(e){var t=function(e){if(-1===e.indexOf(":"))return{name:"RRULE",value:e};var t=fy(e,":",1);return{name:t[0],value:t[1]}}(e),o=t.name,n=t.value,i=o.split(";");if(!i)throw Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:n}}(e),s=a.name,c=a.parms,d=a.value;switch(s.toUpperCase()){case"RRULE":if(c.length)throw Error("unsupported RRULE parm: ".concat(c.join(",")));o.push(ho(e));break;case"RDATE":var u=(null!=(t=/RDATE(?:;TZID=([^:=]+))?/i.exec(e))?t:[])[1];u&&!l&&(l=u),n=n.concat(hM(d,c));break;case"EXRULE":if(c.length)throw Error("unsupported EXRULE parm: ".concat(c.join(",")));i.push(ho(d));break;case"EXDATE":r=r.concat(hM(d,c));break;case"DTSTART":break;default:throw Error("unsupported property: "+s)}}}),{dtstart:s,tzid:l,rrulevals:o,rdatevals:n,exrulevals:i,exdatevals:r}),d=c.rrulevals,u=c.rdatevals,f=c.exrulevals,h=c.exdatevals,m=c.dtstart,b=c.tzid,p=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||d.length>1||u.length||f.length||h.length){var F=new hj(p);return F.dtstart(m),F.tzid(b||void 0),d.forEach(function(e){F.rrule(new hR(hL(e,m,b),p))}),u.forEach(function(e){F.rdate(e)}),f.forEach(function(e){F.exrule(new hR(hL(e,m,b),p))}),h.forEach(function(e){F.exdate(e)}),t.compatible&&t.dtstart&&F.rdate(m),F}var g=d[0]||{};return new hR(hL(g,g.dtstart||t.dtstart||m,g.tzid||t.tzid||b),p)}(e,function(e){var t=[],o=Object.keys(e),n=Object.keys(hP);if(o.forEach(function(e){fA(n,e)||t.push(e)}),t.length)throw Error("Invalid options: "+t.join(", "));return fJ(fJ({},hP),e)}(t))}function hL(e,t,o){return fJ(fJ({},e),{dtstart:t,tzid:o})}function hM(e,t){return t.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw Error("unsupported RDATE/EXDATE parm: "+e)}),e.split(",").map(function(e){return fq(e)})}function hU(e){var t=this;return function(o){if(void 0!==o&&(t["_".concat(e)]=o),void 0!==t["_".concat(e)])return t["_".concat(e)];for(var n=0;n<t._rrule.length;n++){var i=t._rrule[n].origOptions[e];if(i)return i}}}var hj=function(e){function t(t){void 0===t&&(t=!1);var o=e.call(this,{},t)||this;return o.dtstart=hU.apply(o,["dtstart"]),o.tzid=hU.apply(o,["tzid"]),o._rrule=[],o._rdate=[],o._exrule=[],o._exdate=[],o}return fK(t,e),t.prototype._iter=function(e){return function(e,t,o,n,i,r){var a={},s=e.accept;function l(e,t){o.forEach(function(o){o.between(e,t,!0).forEach(function(e){a[Number(e)]=!0})})}i.forEach(function(e){a[Number(new hs(e,r).rezonedDate())]=!0}),e.accept=function(e){var t=Number(e);return isNaN(t)?s.call(this,e):!!a[t]||(l(new Date(t-1),new Date(t+1)),!!a[t])||(a[t]=!0,s.call(this,e))},"between"===e.method&&(l(e.args.after,e.args.before),e.accept=function(e){var t=Number(e);return!!a[t]||(a[t]=!0,s.call(this,e))});for(var c=0;c<n.length;c++){var d=new hs(n[c],r).rezonedDate();if(!e.accept(new Date(d.getTime())))break}t.forEach(function(t){hD(e,t.options)});var u=e._result;switch(fV(u),e.method){case"all":case"between":return u;case"before":return u.length&&u[u.length-1]||null;default:return u.length&&u[0]||null}}(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){h$(e,this._rrule)},t.prototype.exrule=function(e){h$(e,this._exrule)},t.prototype.rdate=function(e){hV(e,this._rdate)},t.prototype.exdate=function(e){hV(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return hN(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return hN(e.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(hl({dtstart:this._dtstart}))),this._rrule.forEach(function(t){e=e.concat(t.toString().split("\n"))}),this._exrule.forEach(function(t){e=e.concat(t.toString().split("\n").map(function(e){return e.replace(/^RRULE:/,"EXRULE:")}).filter(function(e){return!/^DTSTART/.test(e)}))}),this._rdate.length&&e.push(hz("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(hz("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach(function(t){return e.rrule(t.clone())}),this._exrule.forEach(function(t){return e.exrule(t.clone())}),this._rdate.forEach(function(t){return e.rdate(new Date(t.getTime()))}),this._exdate.forEach(function(t){return e.exdate(new Date(t.getTime()))}),e},t}(hR);function h$(e,t){if(!(e instanceof hR))throw TypeError(String(e)+" is not RRule instance");fA(t.map(String),String(e))||t.push(e)}function hV(e,t){if(!(e instanceof Date))throw TypeError(String(e)+" is not Date instance");fA(t.map(Number),Number(e))||(t.push(e),fV(t))}function hz(e,t,o){var n=!o||"UTC"===o.toUpperCase(),i=n?"".concat(e,":"):"".concat(e,";TZID=").concat(o,":"),r=t.map(function(e){return fz(e.valueOf(),n)}).join(",");return"".concat(i).concat(r)}let hq={YEARLY:"rrule.frequency.YEARLY",MONTHLY:"rrule.frequency.MONTHLY",WEEKLY:"rrule.frequency.WEEKLY",DAILY:"rrule.frequency.DAILY",HOURLY:"rrule.frequency.HOURLY",MINUTELY:"rrule.frequency.MINUTELY",SECONDLY:"rrule.frequency.SECONDLY"},hH=["bymonth","byweekno","byyearday","bymonthday","byweekday","byhour","byminute","bysecond"],hY={SECONDLY:["byweekno"],MINUTELY:["byweekno"],HOURLY:["byweekno"],DAILY:["byweekno","byyearday"],WEEKLY:["byweekno","byyearday","bymonthday"],MONTHLY:["byweekno","byyearday"],YEARLY:[]},hW=["bymonth","byweekno","byyearday","byhour","byminute","bysecond"],hG={SECONDLY:["bymonthday","byweekday",...hW,...hY.SECONDLY],MINUTELY:["bymonthday","byweekday",...hW,...hY.MINUTELY],HOURLY:["bymonthday","byweekday",...hW,...hY.HOURLY],DAILY:["bymonthday","byweekday",...hW,...hY.DAILY],WEEKLY:["bymonthday",...hW,...hY.WEEKLY],MONTHLY:["byweekday",...hW,...hY.MONTHLY],YEARLY:["bymonthday","byweekday",...hW,...hY.YEARLY]},hK={MO:"monday",TU:"tuesday",WE:"wednesday",TH:"thursday",FR:"friday",SA:"saturday",SU:"sunday"},hJ={1:"january",2:"february",3:"march",4:"april",5:"may",6:"june",7:"july",8:"august",9:"september",10:"october",11:"november",12:"december"};(eA=tO||(tO={})).default="default",eA.period="period",eA.recurrence="recurrence";let hX={never:"never",until:"schedule.ends.until",count:"schedule.ends.count"};var hQ=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};function hZ(e,t){return Array.from({length:t-e+1},(t,o)=>e+o)}let h0=hZ(-53,53).filter(Boolean),h1=hZ(-366,366).filter(Boolean),h2=hZ(-31,31).filter(Boolean),h3=hZ(1,24),h5=hZ(1,60);class h4 extends CustomEvent{constructor(e){super(h4.NAME,{detail:{value:e},bubbles:!0,composed:!0})}}h4.NAME="or-scheduler-changed";class h6 extends CustomEvent{constructor(){super(h6.NAME,{bubbles:!0,composed:!0})}}h6.NAME="or-scheduler-removed";let h8=class extends oJ(nY)(oR){constructor(){super(...arguments),this.defaultEventTypeLabel="default",this.disableNegativeByPartValues=!1,this.disabledFrequencies=[],this.disabledRRuleParts=[],this.disabledByPartCombinations=hY,this.header="scheduleActivity",this.isAllDay=!0,this.open=!1,this.removable=!1,this.schedule=this.defaultSchedule,this.timezoneOffset=0,this._count=1,this._ends="never",this._eventType=tO.default,this._until=sG()().toDate()}get _scheduleWithOffset(){return this._applyTimezoneOffset(this.schedule,this.timezoneOffset)}set _scheduleWithOffset(e){this.schedule=this._applyTimezoneOffset(e,-this.timezoneOffset)}get _timeLabel(){if(this._eventType===tO.default)return of`<or-translate
2844
+ `}}nJ(fd);let fu=class extends fd{};fu=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-multi-select-combo-box")],fu);let ff=class extends sD{};function fh(e,t,o){return e?t(e):o?.(e)}ff=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}([oj("or-vaadin-time-picker")],ff),(eC=tS||(tS={})).BUTTON="button",eC.BUTTON_TOGGLE="button-toggle",eC.BUTTON_MOMENTARY="button-momentary",eC.CHECKBOX="checkbox",eC.CHECKBOX_LIST="checkbox-list",eC.COLOUR="color",eC.DATE="date",eC.DATETIME="datetime-local",eC.EMAIL="email",eC.JSON="json",eC.JSON_OBJECT="json-object",eC.MONTH="month",eC.NUMBER="number",eC.BIG_INT="big-int",eC.PASSWORD="password",eC.RADIO="radio",eC.SWITCH="switch",eC.RANGE="range",eC.TELEPHONE="tel",eC.TEXT="text",eC.TEXTAREA="textarea",eC.TIME="time",eC.URL="url",eC.WEEK="week",eC.SELECT="select",eC.LIST="list",eC.CRON="cron",eC.DURATION="duration",eC.DURATION_TIME="duration-time",eC.DURATION_PERIOD="duration-period";var fm=["MO","TU","WE","TH","FR","SA","SU"],fb=function(){function e(e,t){if(0===t)throw Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return e.fromStr=function(t){return new e(fm.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},e.prototype.toString=function(){var e=fm[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},e.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},e}(),fp=function(e){return null!=e},fF=function(e){return"number"==typeof e},fg=function(e){return"string"==typeof e&&fm.includes(e)},fv=Array.isArray,f_=function(e,t){void 0===t&&(t=e),1==arguments.length&&(t=e,e=0);for(var o=[],n=e;n<t;n++)o.push(n);return o},fy=function(e,t){var o=0,n=[];if(fv(e))for(;o<t;o++)n[o]=[].concat(e);else for(;o<t;o++)n[o]=e;return n};function fw(e,t,o){void 0===o&&(o=" ");var n=String(e);return(t|=0,n.length>t)?String(n):((t-=n.length)>o.length&&(o+=fy(o,t/o.length)),o.slice(0,t)+String(n))}var fE=function(e,t,o){var n=e.split(t);return o?n.slice(0,o).concat([n.slice(o).join(t)]):n},fC=function(e,t){var o=e%t;return o*t<0?o+t:o},fk=function(e,t){return{div:Math.floor(e/t),mod:fC(e,t)}},fA=function(e){return!fp(e)||0===e.length},fx=function(e){return!fA(e)},fD=function(e,t){return fx(e)&&-1!==e.indexOf(t)},fS=function(e,t,o,n,i,r){return void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),new Date(Date.UTC(e,t-1,o,n,i,r))},fT=[31,28,31,30,31,30,31,31,30,31,30,31],fO=fS(1970,1,1),fI=[6,0,1,2,3,4,5],fB=function(e){return e%4==0&&e%100!=0||e%400==0},fR=function(e){return e instanceof Date},fP=function(e){return fR(e)&&!isNaN(e.getTime())},fN=function(e){var t,o;return t=e,o=fO,Math.round((t.getTime()-o.getTime())/864e5)},fL=function(e){return new Date(fO.getTime()+864e5*e)},fM=function(e){var t=e.getUTCMonth();return 1===t&&fB(e.getUTCFullYear())?29:fT[t]},fU=function(e){return fI[e.getUTCDay()]},fj=function(e,t){var o=fS(e,t+1,1);return[fU(o),fM(o)]},f$=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},fV=function(e){return new Date(e.getTime())},fz=function(e){for(var t=[],o=0;o<e.length;o++)t.push(fV(e[o]));return t},fq=function(e){e.sort(function(e,t){return e.getTime()-t.getTime()})},fH=function(e,t){void 0===t&&(t=!0);var o=new Date(e);return[fw(o.getUTCFullYear().toString(),4,"0"),fw(o.getUTCMonth()+1,2,"0"),fw(o.getUTCDate(),2,"0"),"T",fw(o.getUTCHours(),2,"0"),fw(o.getUTCMinutes(),2,"0"),fw(o.getUTCSeconds(),2,"0"),t?"Z":""].join("")},fY=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);if(!t)throw Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[5],10)||0,parseInt(t[6],10)||0,parseInt(t[7],10)||0))},fW=function(e,t){return e.toLocaleString("sv-SE",{timeZone:t}).replace(" ","T")+"Z"},fG=function(e,t){var o=new Date(fW(e,Intl.DateTimeFormat().resolvedOptions().timeZone)),n=new Date(fW(e,null!=t?t:"UTC")).getTime()-o.getTime();return new Date(e.getTime()-n)},fK=function(){function e(e,t){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=t,"between"===e?(this.maxDate=t.inc?t.before:new Date(t.before.getTime()-1),this.minDate=t.inc?t.after:new Date(t.after.getTime()+1)):"before"===e?this.maxDate=t.inc?t.dt:new Date(t.dt.getTime()-1):"after"===e&&(this.minDate=t.inc?t.dt:new Date(t.dt.getTime()+1))}return e.prototype.accept=function(e){++this.total;var t=this.minDate&&e<this.minDate,o=this.maxDate&&e>this.maxDate;if("between"===this.method){if(t)return!0;if(o)return!1}else if("before"===this.method){if(o)return!1}else if("after"===this.method)return!!t||(this.add(e),!1);return this.add(e)},e.prototype.add=function(e){return this._result.push(e),!0},e.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;default:return e.length?e[e.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),fJ=function(e,t){return(fJ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};function fX(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}fJ(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var fQ=function(){return(fQ=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function fZ(e,t,o){if(o||2==arguments.length)for(var n,i=0,r=t.length;i<r;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var f0=function(e){function t(t,o,n){var i=e.call(this,t,o)||this;return i.iterator=n,i}return fX(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(fK);let f1={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}};var f2=function(e,t){return -1!==e.indexOf(t)},f3=function(e){return e.toString()},f5=function(e,t,o){return"".concat(t," ").concat(o,", ").concat(e)},f4=function(){function e(e,t,o,n){if(void 0===t&&(t=f3),void 0===o&&(o=f1),void 0===n&&(n=f5),this.text=[],this.language=o||f1,this.gettext=t,this.dateFormatter=n,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),r=[].concat(this.options.bynmonthday);i.sort(function(e,t){return e-t}),r.sort(function(e,t){return t-e}),this.bymonthday=i.concat(r),this.bymonthday.length||(this.bymonthday=null)}if(fp(this.origOptions.byweekday)){var a=fv(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],s=String(a);this.byweekday={allWeeks:a.filter(function(e){return!e.n}),someWeeks:a.filter(function(e){return!!e.n}),isWeekdays:-1!==s.indexOf("MO")&&-1!==s.indexOf("TU")&&-1!==s.indexOf("WE")&&-1!==s.indexOf("TH")&&-1!==s.indexOf("FR")&&-1===s.indexOf("SA")&&-1===s.indexOf("SU"),isEveryDay:-1!==s.indexOf("MO")&&-1!==s.indexOf("TU")&&-1!==s.indexOf("WE")&&-1!==s.indexOf("TH")&&-1!==s.indexOf("FR")&&-1!==s.indexOf("SA")&&-1!==s.indexOf("SU")};var l=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(l),this.byweekday.someWeeks.sort(l),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){if(!(t.options.freq in e.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var o in t.origOptions){if(f2(["dtstart","tzid","wkst","freq"],o))break;if(!f2(e.IMPLEMENTED[t.options.freq],o))return!1}return!0},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[hN.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var o=this.options.until;this.add(this.dateFormatter(o.getUTCFullYear(),this.language.monthNames[o.getUTCMonth()],o.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(t(this.plural(this.options.count)?"times":"time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"hours":"hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"minutes":"minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(e(this.plural(this.options.interval)?"weekdays":"weekday")):this.add(e(this.plural(this.options.interval)?"days":"day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(e(this.plural(this.options.interval)?"weeks":"week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(e(this.plural(this.options.interval)?"weekdays":"weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(e(this.plural(this.options.interval)?"days":"day")):(1===this.options.interval&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},e.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"months":"month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"years":"year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(e(this.plural(this.options.byweekno.length)?"weeks":"week")).add(this.list(this.options.byweekno,void 0,e("and")))},e.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},e.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},e.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(e){e=parseInt(e.toString(),10);var t,o=this.gettext;if(-1===e)return o("last");var n=Math.abs(e);switch(n){case 1:case 21:case 31:t=n+o("st");break;case 2:case 22:t=n+o("nd");break;case 3:case 23:t=n+o("rd");break;default:t=n+o("th")}return e<0?t+" "+o("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=fF(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},e.prototype.plural=function(e){return e%100!=1},e.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},e.prototype.list=function(e,t,o,n){var i=this;void 0===n&&(n=","),fv(e)||(e=[e]),t=t||function(e){return e.toString()};var r=function(e){return t&&t.call(i,e)};if(!o)return e.map(r).join(n+" ");for(var a=e.map(r),s=n,l="",c=0;c<a.length;c++)0!==c&&(c===a.length-1?l+=" "+o+" ":l+=s+" "),l+=a[c];return l},e}(),f6=function(){function e(e){this.done=!0,this.rules=e}return e.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&null===this.symbol},e.prototype.nextSymbol=function(){this.symbol=null,this.value=null;do{if(this.done)return!1;for(var e in t=null,this.rules){var t,o,n=this.rules[e].exec(this.text);n&&(null===t||n[0].length>t[0].length)&&(t=n,o=e)}if(null!=t&&(this.text=this.text.substr(t[0].length),""===this.text&&(this.done=!0)),null==t){this.done=!0,this.symbol=null,this.value=null;return}}while("SKIP"===o);return this.symbol=o,this.value=t,!0},e.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(e){if(this.accept(e))return!0;throw Error("expected "+e+" but found "+this.symbol)},e}();function f8(e,t){void 0===t&&(t=f1);var o={},n=new f6(t.tokens);if(!n.start(e))return null;return function(){n.expect("every");var e=n.acceptNumber();if(e&&(o.interval=parseInt(e[0],10)),n.isDone())throw Error("Unexpected end");switch(n.symbol){case"day(s)":o.freq=hN.DAILY,n.nextSymbol()&&(r(),c());break;case"weekday(s)":o.freq=hN.WEEKLY,o.byweekday=[hN.MO,hN.TU,hN.WE,hN.TH,hN.FR],n.nextSymbol(),r(),c();break;case"week(s)":o.freq=hN.WEEKLY,n.nextSymbol()&&(i(),r(),c());break;case"hour(s)":o.freq=hN.HOURLY,n.nextSymbol()&&(i(),c());break;case"minute(s)":o.freq=hN.MINUTELY,n.nextSymbol()&&(i(),c());break;case"month(s)":o.freq=hN.MONTHLY,n.nextSymbol()&&(i(),c());break;case"year(s)":o.freq=hN.YEARLY,n.nextSymbol()&&(i(),c());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":if(o.freq=hN.WEEKLY,o.byweekday=[hN[n.symbol.substr(0,2).toUpperCase()]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw Error("Unexpected end");var t=s();if(!t)throw Error("Unexpected symbol "+n.symbol+", expected weekday");o.byweekday.push(hN[t]),n.nextSymbol()}r(),function(){n.accept("on"),n.accept("the");var e=l();if(e)for(o.bymonthday=[e],n.nextSymbol();n.accept("comma");){if(!(e=l()))throw Error("Unexpected symbol "+n.symbol+"; expected monthday");o.bymonthday.push(e),n.nextSymbol()}}(),c();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(o.freq=hN.YEARLY,o.bymonth=[a()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw Error("Unexpected end");var d=a();if(!d)throw Error("Unexpected symbol "+n.symbol+", expected month");o.bymonth.push(d),n.nextSymbol()}i(),c();break;default:throw Error("Unknown symbol")}}(),o;function i(){var e=n.accept("on"),t=n.accept("the");if(e||t)do{var i=l(),r=s(),c=a();if(i)r?(n.nextSymbol(),o.byweekday||(o.byweekday=[]),o.byweekday.push(hN[r].nth(i))):(o.bymonthday||(o.bymonthday=[]),o.bymonthday.push(i),n.accept("day(s)"));else if(r)n.nextSymbol(),o.byweekday||(o.byweekday=[]),o.byweekday.push(hN[r]);else if("weekday(s)"===n.symbol)n.nextSymbol(),o.byweekday||(o.byweekday=[hN.MO,hN.TU,hN.WE,hN.TH,hN.FR]);else if("week(s)"===n.symbol){n.nextSymbol();var d=n.acceptNumber();if(!d)throw Error("Unexpected symbol "+n.symbol+", expected week number");for(o.byweekno=[parseInt(d[0],10)];n.accept("comma");){if(!(d=n.acceptNumber()))throw Error("Unexpected symbol "+n.symbol+"; expected monthday");o.byweekno.push(parseInt(d[0],10))}}else{if(!c)return;n.nextSymbol(),o.bymonth||(o.bymonth=[]),o.bymonth.push(c)}}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function r(){if(n.accept("at"))do{var e=n.acceptNumber();if(!e)throw Error("Unexpected symbol "+n.symbol+", expected hour");for(o.byhour=[parseInt(e[0],10)];n.accept("comma");){if(!(e=n.acceptNumber()))throw Error("Unexpected symbol "+n.symbol+"; expected hour");o.byhour.push(parseInt(e[0],10))}}while(n.accept("comma")||n.accept("at"))}function a(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function s(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function l(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var e=parseInt(n.value[1],10);if(e<-366||e>366)throw Error("Nth out of range: "+e);return n.nextSymbol(),n.accept("last")?-e:e;default:return!1}}function c(){if("until"===n.symbol){var e=Date.parse(n.text);if(!e)throw Error("Cannot parse until date:"+n.text);o.until=new Date(e)}else n.accept("for")&&(o.count=parseInt(n.value[0],10),n.expect("number"))}}function f9(e){return e<tT.HOURLY}(ek=tT||(tT={}))[ek.YEARLY=0]="YEARLY",ek[ek.MONTHLY=1]="MONTHLY",ek[ek.WEEKLY=2]="WEEKLY",ek[ek.DAILY=3]="DAILY",ek[ek.HOURLY=4]="HOURLY",ek[ek.MINUTELY=5]="MINUTELY",ek[ek.SECONDLY=6]="SECONDLY";var f7=["count","until","interval","byweekday","bymonthday","bymonth"];f4.IMPLEMENTED=[],f4.IMPLEMENTED[tT.HOURLY]=f7,f4.IMPLEMENTED[tT.MINUTELY]=f7,f4.IMPLEMENTED[tT.DAILY]=["byhour"].concat(f7),f4.IMPLEMENTED[tT.WEEKLY]=f7,f4.IMPLEMENTED[tT.MONTHLY]=f7,f4.IMPLEMENTED[tT.YEARLY]=["byweekno","byyearday"].concat(f7);var he=f4.isFullyConvertible,ht=function(){function e(e,t,o,n){this.hour=e,this.minute=t,this.second=o,this.millisecond=n||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return(60*this.hour*60+60*this.minute+this.second)*1e3+this.millisecond},e}(),ho=function(e){function t(t,o,n,i,r,a,s){var l=e.call(this,i,r,a,s)||this;return l.year=t,l.month=o,l.day=n,l}return fX(t,e),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return fU(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var t=Math.floor(this.month/12),o=fC(this.month,12);this.month=o,this.year+=t,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,t){t>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-t))+7*e:this.day+=-(this.getWeekday()-t)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,t,o){for(t&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var n=fk(this.hour,24),i=n.div,r=n.mod;if(i&&(this.hour=r,this.addDaily(i)),fA(o)||fD(o,this.hour))break}},t.prototype.addMinutes=function(e,t,o,n){for(t&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var i=fk(this.minute,60),r=i.div,a=i.mod;if(r&&(this.minute=a,this.addHours(r,!1,o)),(fA(o)||fD(o,this.hour))&&(fA(n)||fD(n,this.minute)))break}},t.prototype.addSeconds=function(e,t,o,n,i){for(t&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var r=fk(this.second,60),a=r.div,s=r.mod;if(a&&(this.second=s,this.addMinutes(a,!1,o,n)),(fA(o)||fD(o,this.hour))&&(fA(n)||fD(n,this.minute))&&(fA(i)||fD(i,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=fj(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>9999))return;e=fj(this.year,this.month-1)[1]}}},t.prototype.add=function(e,t){var o=e.freq,n=e.interval,i=e.wkst,r=e.byhour,a=e.byminute,s=e.bysecond;switch(o){case tT.YEARLY:return this.addYears(n);case tT.MONTHLY:return this.addMonths(n);case tT.WEEKLY:return this.addWeekly(n,i);case tT.DAILY:return this.addDaily(n);case tT.HOURLY:return this.addHours(n,t,r);case tT.MINUTELY:return this.addMinutes(n,t,r,a);case tT.SECONDLY:return this.addSeconds(n,t,r,a,s)}},t}(ht);function hn(e){for(var t=[],o=Object.keys(e),n=0;n<o.length;n++){var i=o[n];fD(hP,i)||t.push(i),fR(e[i])&&!fP(e[i])&&t.push(i)}if(t.length)throw Error("Invalid options: "+t.join(", "));return fQ({},e)}function hi(e){var t=e.split("\n").map(ha).filter(function(e){return null!==e});return fQ(fQ({},t[0]),t[1])}function hr(e){var t={},o=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!o)return t;var n=o[1],i=o[2];return n&&(t.tzid=n),t.dtstart=fY(i),t}function ha(e){if(!(e=e.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return hs(e);var o=t[1];switch(o.toUpperCase()){case"RRULE":case"EXRULE":return hs(e);case"DTSTART":return hr(e);default:throw Error("Unsupported RFC prop ".concat(o," in ").concat(e))}}function hs(e){var t=hr(e.replace(/^RRULE:/i,""));return e.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach(function(o){var n=o.split("="),i=n[0],r=n[1];switch(i.toUpperCase()){case"FREQ":t.freq=tT[r.toUpperCase()];break;case"WKST":t.wkst=hB[r.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var a,s=-1!==(a=r).indexOf(",")?a.split(",").map(hl):hl(a);t[i.toLowerCase()]=s;break;case"BYWEEKDAY":case"BYDAY":t.byweekday=r.split(",").map(function(e){if(2===e.length)return hB[e];var t=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!t||t.length<3)throw SyntaxError("Invalid weekday string: ".concat(e));var o=Number(t[1]);return new fb(hB[t[2]].weekday,o)});break;case"DTSTART":case"TZID":var l=hr(e);t.tzid=l.tzid,t.dtstart=l.dtstart;break;case"UNTIL":t.until=fY(r);break;case"BYEASTER":t.byeaster=Number(r);break;default:throw Error("Unknown RRULE property '"+i+"'")}}),t}function hl(e){return/^[+-]?\d+$/.test(e)?Number(e):e}var hc=function(){function e(e,t){if(isNaN(e.getTime()))throw RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=t}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var e=fH(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:fG(this.date,this.tzid)},e}();function hd(e){for(var t=[],o="",n=Object.keys(e),i=Object.keys(hR),r=0;r<n.length;r++)if("tzid"!==n[r]&&fD(i,n[r])){var a,s,l=n[r].toUpperCase(),c=e[n[r]],d="";if(!(!fp(c)||fv(c)&&!c.length)){switch(l){case"FREQ":d=hN.FREQUENCIES[e.freq];break;case"WKST":d=fF(c)?new fb(c).toString():c.toString();break;case"BYWEEKDAY":l="BYDAY",d=(fv(c)?c:[c]).map(function(e){return e instanceof fb?e:fv(e)?new fb(e[0],e[1]):new fb(e)}).toString();break;case"DTSTART":a=c,s=e.tzid,o=a?"DTSTART"+new hc(new Date(a),s).toString():"";break;case"UNTIL":d=fH(c,!e.tzid);break;default:if(fv(c)){for(var u=[],f=0;f<c.length;f++)u[f]=String(c[f]);d=u.toString()}else d=String(c)}d&&t.push([l,d])}}var h=t.map(function(e){var t=e[0],o=e[1];return"".concat(t,"=").concat(o.toString())}).join(";"),m="";return""!==h&&(m="RRULE:".concat(h)),[o,m].filter(function(e){return!!e}).join("\n")}var hu=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(e,t,o){t&&(t=t instanceof Date?fV(t):fz(t)),"all"===e?this.all=t:(o._value=t,this[e].push(o))},e.prototype._cacheGet=function(e,t){var o=!1,n=t?Object.keys(t):[],i=this[e];if("all"===e)o=this.all;else if(fv(i))for(var r=0;r<i.length;r++){var a=i[r];if(!(n.length&&function(e){for(var o=0;o<n.length;o++){var i=n[o];if(!function(e,t){return Array.isArray(e)?!!Array.isArray(t)&&e.length===t.length&&e.every(function(e,o){return e.getTime()===t[o].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}(t[i],e[i]))return!0}return!1}(a))){o=a._value;break}}if(!o&&this.all){for(var s=new fK(e,t),r=0;r<this.all.length&&s.accept(this.all[r]);r++);o=s.getValue(),this._cacheAdd(e,o,t)}return fv(o)?fz(o):o instanceof Date?fV(o):o},e}(),hf=fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ([],fy(1,31),!0),fy(2,28),!0),fy(3,31),!0),fy(4,30),!0),fy(5,31),!0),fy(6,30),!0),fy(7,31),!0),fy(8,31),!0),fy(9,30),!0),fy(10,31),!0),fy(11,30),!0),fy(12,31),!0),fy(1,7),!0),hh=fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ([],fy(1,31),!0),fy(2,29),!0),fy(3,31),!0),fy(4,30),!0),fy(5,31),!0),fy(6,30),!0),fy(7,31),!0),fy(8,31),!0),fy(9,30),!0),fy(10,31),!0),fy(11,30),!0),fy(12,31),!0),fy(1,7),!0),hm=f_(1,29),hb=f_(1,30),hp=f_(1,31),hF=f_(1,32),hg=fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ([],hF,!0),hb,!0),hF,!0),hp,!0),hF,!0),hp,!0),hF,!0),hF,!0),hp,!0),hF,!0),hp,!0),hF,!0),hF.slice(0,7),!0),hv=fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ([],hF,!0),hm,!0),hF,!0),hp,!0),hF,!0),hp,!0),hF,!0),hF,!0),hp,!0),hF,!0),hp,!0),hF,!0),hF.slice(0,7),!0),h_=f_(-28,0),hy=f_(-29,0),hw=f_(-30,0),hE=f_(-31,0),hC=fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ([],hE,!0),hy,!0),hE,!0),hw,!0),hE,!0),hw,!0),hE,!0),hE,!0),hw,!0),hE,!0),hw,!0),hE,!0),hE.slice(0,7),!0),hk=fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ(fZ([],hE,!0),h_,!0),hE,!0),hw,!0),hE,!0),hw,!0),hE,!0),hE,!0),hw,!0),hE,!0),hw,!0),hE,!0),hE.slice(0,7),!0),hA=[0,31,60,91,121,152,182,213,244,274,305,335,366],hx=[0,31,59,90,120,151,181,212,243,273,304,334,365],hD=function(){for(var e=[],t=0;t<55;t++)e=e.concat(f_(7));return e}(),hS=function(){function e(e){this.options=e}return e.prototype.rebuild=function(e,t){var o,n,i,r,a,s,l,c,d,u,f=this.options;if(e!==this.lastyear&&(this.yearinfo=function(e,t){var o,n,i,r,a,s=fS(e,1,1),l=fB(e)?366:365,c=fB(e+1)?366:365,d=fN(s),u=fU(s),f=fQ(fQ({yearlen:l,nextyearlen:c,yearordinal:d,yearweekday:u},(n=fB(o=e)?366:365,i=fU(fS(o,1,1)),365===n?{mmask:hf,mdaymask:hv,nmdaymask:hk,wdaymask:hD.slice(i),mrange:hx}:{mmask:hh,mdaymask:hg,nmdaymask:hC,wdaymask:hD.slice(i),mrange:hA})),{wnomask:null});if(fA(t.byweekno))return f;f.wnomask=fy(0,l+7);var h=r=fC(7-u+t.wkst,7);h>=4?(h=0,a=f.yearlen+fC(u-t.wkst,7)):a=l-h;for(var m=Math.floor(Math.floor(a/7)+fC(a,7)/4),b=0;b<t.byweekno.length;b++){var p=t.byweekno[b];if(p<0&&(p+=m+1),p>0&&p<=m){var F=void 0;p>1?(F=h+(p-1)*7,h!==r&&(F-=7-r)):F=h;for(var g=0;g<7&&(f.wnomask[F]=1,F++,f.wdaymask[F]!==t.wkst);g++);}}if(fD(t.byweekno,1)){var F=h+7*m;if(h!==r&&(F-=7-r),F<l)for(var b=0;b<7&&(f.wnomask[F]=1,F+=1,f.wdaymask[F]!==t.wkst);b++);}if(h){var v=void 0;if(fD(t.byweekno,-1))v=-1;else{var _=fU(fS(e-1,1,1)),y=fC(7-_.valueOf()+t.wkst,7),w=fB(e-1)?366:365,E=void 0;y>=4?(y=0,E=w+fC(_-t.wkst,7)):E=l-h,v=Math.floor(52+fC(E,7)/4)}if(fD(t.byweekno,v))for(var F=0;F<h;F++)f.wnomask[F]=1}return f}(e,f)),fx(f.bynweekday)&&(t!==this.lastmonth||e!==this.lastyear)){var h=this.yearinfo,m=h.yearlen,b=h.mrange,p=h.wdaymask;this.monthinfo=function(e,t,o,n,i,r){var a={lastyear:e,lastmonth:t,nwdaymask:[]},s=[];if(r.freq===hN.YEARLY)if(fA(r.bymonth))s=[[0,o]];else for(var l=0;l<r.bymonth.length;l++)t=r.bymonth[l],s.push(n.slice(t-1,t+1));else r.freq===hN.MONTHLY&&(s=[n.slice(t-1,t+1)]);if(fA(s))return a;a.nwdaymask=fy(0,o);for(var l=0;l<s.length;l++)for(var c=s[l],d=c[0],u=c[1]-1,f=0;f<r.bynweekday.length;f++){var h=void 0,m=r.bynweekday[f],b=m[0],p=m[1];p<0?(h=u+(p+1)*7,h-=fC(i[h]-b,7)):(h=d+(p-1)*7,h+=fC(7-i[h]+b,7)),d<=h&&h<=u&&(a.nwdaymask[h]=1)}return a}(e,t,m,b,p,f)}fp(f.byeaster)&&(this.eastermask=(void 0===(o=f.byeaster)&&(o=0),n=e%19,i=Math.floor(e/100),r=e%100,a=Math.floor(i/4),s=Math.floor((i+8)/25),l=Math.floor((i-s+1)/3),c=Math.floor(19*n+i-a-l+15)%30,d=Math.floor(32+i%4*2+2*Math.floor(r/4)-c-r%4)%7,u=Math.floor((n+11*c+22*d)/451),[Math.ceil((Date.UTC(e,Math.floor((c+d-7*u+114)/31)-1,(c+d-7*u+114)%31+1+o)-Date.UTC(e,0,1))/864e5)]))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[f_(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(e,t){for(var o=this.mrange[t-1],n=this.mrange[t],i=fy(null,this.yearlen),r=o;r<n;r++)i[r]=r;return[i,o,n]},e.prototype.wdayset=function(e,t,o){for(var n=fy(null,this.yearlen+7),i=fN(fS(e,t,o))-this.yearordinal,r=i,a=0;a<7&&(n[i]=i,++i,this.wdaymask[i]!==this.options.wkst);a++);return[n,r,i]},e.prototype.ddayset=function(e,t,o){var n=fy(null,this.yearlen),i=fN(fS(e,t,o))-this.yearordinal;return n[i]=i,[n,i,i+1]},e.prototype.htimeset=function(e,t,o,n){var i=this,r=[];return this.options.byminute.forEach(function(t){r=r.concat(i.mtimeset(e,t,o,n))}),fq(r),r},e.prototype.mtimeset=function(e,t,o,n){var i=this.options.bysecond.map(function(o){return new ht(e,t,o,n)});return fq(i),i},e.prototype.stimeset=function(e,t,o,n){return[new ht(e,t,o,n)]},e.prototype.getdayset=function(e){switch(e){case tT.YEARLY:return this.ydayset.bind(this);case tT.MONTHLY:return this.mdayset.bind(this);case tT.WEEKLY:return this.wdayset.bind(this);case tT.DAILY:default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(e){switch(e){case tT.HOURLY:return this.htimeset.bind(this);case tT.MINUTELY:return this.mtimeset.bind(this);case tT.SECONDLY:return this.stimeset.bind(this)}},e}();function hT(e,t){var o=t.dtstart,n=t.freq,i=t.interval,r=t.until,a=t.bysetpos,s=t.count;if(0===s||0===i)return hI(e);var l=ho.fromDate(o),c=new hS(t);c.rebuild(l.year,l.month);for(var d=function(e,t,o){var n=o.freq,i=o.byhour,r=o.byminute,a=o.bysecond;if(f9(n)){var s=o.dtstart.getTime()%1e3;if(!f9(o.freq))return[];var l=[];return o.byhour.forEach(function(e){o.byminute.forEach(function(t){o.bysecond.forEach(function(o){l.push(new ht(e,t,o,s))})})}),l}return n>=hN.HOURLY&&fx(i)&&!fD(i,t.hour)||n>=hN.MINUTELY&&fx(r)&&!fD(r,t.minute)||n>=hN.SECONDLY&&fx(a)&&!fD(a,t.second)?[]:e.gettimeset(n)(t.hour,t.minute,t.second,t.millisecond)}(c,l,t);;){var u=c.getdayset(n)(l.year,l.month,l.day),f=u[0],h=u[1],m=u[2],b=function(e,t,o,n,i){for(var r=!1,a=t;a<o;a++){var s=e[a];(r=function(e,t,o){var n=o.bymonth,i=o.byweekno,r=o.byweekday,a=o.byeaster,s=o.bymonthday,l=o.bynmonthday,c=o.byyearday;return fx(n)&&!fD(n,e.mmask[t])||fx(i)&&!e.wnomask[t]||fx(r)&&!fD(r,e.wdaymask[t])||fx(e.nwdaymask)&&!e.nwdaymask[t]||null!==a&&!fD(e.eastermask,t)||(fx(s)||fx(l))&&!fD(s,e.mdaymask[t])&&!fD(l,e.nmdaymask[t])||fx(c)&&(t<e.yearlen&&!fD(c,t+1)&&!fD(c,-e.yearlen+t)||t>=e.yearlen&&!fD(c,t+1-e.yearlen)&&!fD(c,-e.nextyearlen+t-e.yearlen))}(n,s,i))&&(e[s]=null)}return r}(f,h,m,c,t);if(fx(a))for(var p=function(e,t,o,n,i,r){for(var a=[],s=0;s<e.length;s++){var l=void 0,c=void 0,d=e[s];d<0?(l=Math.floor(d/t.length),c=fC(d,t.length)):(l=Math.floor((d-1)/t.length),c=fC(d-1,t.length));for(var u=[],f=o;f<n;f++){var h=r[f];fp(h)&&u.push(h)}var m=void 0;m=l<0?u.slice(l)[0]:u[l];var b=t[c],p=f$(fL(i.yearordinal+m),b);fD(a,p)||a.push(p)}return fq(a),a}(a,d,h,m,c,f),F=0;F<p.length;F++){var g=p[F];if(r&&g>r)return hI(e);if(g>=o){var v=hO(g,t);if(!e.accept(v)||s&&!--s)return hI(e)}}else for(var F=h;F<m;F++){var _=f[F];if(fp(_))for(var y=fL(c.yearordinal+_),w=0;w<d.length;w++){var g=f$(y,d[w]);if(r&&g>r)return hI(e);if(g>=o){var v=hO(g,t);if(!e.accept(v)||s&&!--s)return hI(e)}}}if(0===t.interval||(l.add(t,b),l.year>9999))return hI(e);f9(n)||(d=c.gettimeset(n)(l.hour,l.minute,l.second,0)),c.rebuild(l.year,l.month)}}function hO(e,t){return new hc(e,t.tzid).rezonedDate()}function hI(e){return e.getValue()}var hB={MO:new fb(0),TU:new fb(1),WE:new fb(2),TH:new fb(3),FR:new fb(4),SA:new fb(5),SU:new fb(6)},hR={freq:tT.YEARLY,dtstart:null,interval:1,wkst:hB.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},hP=Object.keys(hR),hN=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this._cache=t?null:new hu,this.origOptions=hn(e);var o=function(e){var t=fQ(fQ({},hR),hn(e));if(fp(t.byeaster)&&(t.freq=hN.YEARLY),!(fp(t.freq)&&hN.FREQUENCIES[t.freq]))throw Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date(new Date().setMilliseconds(0))),fp(t.wkst)?fF(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=hN.MO.weekday,fp(t.bysetpos)){fF(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var o=0;o<t.bysetpos.length;o++){var n=t.bysetpos[o];if(0===n||!(n>=-366&&n<=366))throw Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(t.byweekno||fx(t.byweekno)||fx(t.byyearday)||t.bymonthday||fx(t.bymonthday)||fp(t.byweekday)||fp(t.byeaster)))switch(t.freq){case hN.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case hN.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case hN.WEEKLY:t.byweekday=[fU(t.dtstart)]}if(fp(t.bymonth)&&!fv(t.bymonth)&&(t.bymonth=[t.bymonth]),fp(t.byyearday)&&!fv(t.byyearday)&&fF(t.byyearday)&&(t.byyearday=[t.byyearday]),fp(t.bymonthday))if(fv(t.bymonthday)){for(var i=[],r=[],o=0;o<t.bymonthday.length;o++){var n=t.bymonthday[o];n>0?i.push(n):n<0&&r.push(n)}t.bymonthday=i,t.bynmonthday=r}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);else t.bymonthday=[],t.bynmonthday=[];if(fp(t.byweekno)&&!fv(t.byweekno)&&(t.byweekno=[t.byweekno]),fp(t.byweekday))if(fF(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(fg(t.byweekday))t.byweekday=[fb.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof fb)!t.byweekday.n||t.freq>hN.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{for(var a=[],s=[],o=0;o<t.byweekday.length;o++){var l=t.byweekday[o];if(fF(l)){a.push(l);continue}if(fg(l)){a.push(fb.fromStr(l).weekday);continue}!l.n||t.freq>hN.MONTHLY?a.push(l.weekday):s.push([l.weekday,l.n])}t.byweekday=fx(a)?a:null,t.bynweekday=fx(s)?s:null}else t.bynweekday=null;return fp(t.byhour)?fF(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<hN.HOURLY?[t.dtstart.getUTCHours()]:null,fp(t.byminute)?fF(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<hN.MINUTELY?[t.dtstart.getUTCMinutes()]:null,fp(t.bysecond)?fF(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<hN.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}(e).parsedOptions;this.options=o}return e.parseText=function(e,t){return f8(e,t)},e.fromText=function(e,t){var o;return void 0===(o=t)&&(o=f1),new hN(f8(e,o)||void 0)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(e){return hT(e,this.options)},e.prototype._cacheGet=function(e,t){return!!this._cache&&this._cache._cacheGet(e,t)},e.prototype._cacheAdd=function(e,t,o){if(this._cache)return this._cache._cacheAdd(e,t,o)},e.prototype.all=function(e){if(e)return this._iter(new f0("all",{},e));var t=this._cacheGet("all");return!1===t&&(t=this._iter(new fK("all",{})),this._cacheAdd("all",t)),t},e.prototype.between=function(e,t,o,n){if(void 0===o&&(o=!1),!fP(e)||!fP(t))throw Error("Invalid date passed in to RRule.between");var i={before:t,after:e,inc:o};if(n)return this._iter(new f0("between",i,n));var r=this._cacheGet("between",i);return!1===r&&(r=this._iter(new fK("between",i)),this._cacheAdd("between",r,i)),r},e.prototype.before=function(e,t){if(void 0===t&&(t=!1),!fP(e))throw Error("Invalid date passed in to RRule.before");var o={dt:e,inc:t},n=this._cacheGet("before",o);return!1===n&&(n=this._iter(new fK("before",o)),this._cacheAdd("before",n,o)),n},e.prototype.after=function(e,t){if(void 0===t&&(t=!1),!fP(e))throw Error("Invalid date passed in to RRule.after");var o={dt:e,inc:t},n=this._cacheGet("after",o);return!1===n&&(n=this._iter(new fK("after",o)),this._cacheAdd("after",n,o)),n},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return hd(this.origOptions)},e.prototype.toText=function(e,t,o){return new f4(this,e,t,o).toString()},e.prototype.isFullyConvertibleToText=function(){return he(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=tT.YEARLY,e.MONTHLY=tT.MONTHLY,e.WEEKLY=tT.WEEKLY,e.DAILY=tT.DAILY,e.HOURLY=tT.HOURLY,e.MINUTELY=tT.MINUTELY,e.SECONDLY=tT.SECONDLY,e.MO=hB.MO,e.TU=hB.TU,e.WE=hB.WE,e.TH=hB.TH,e.FR=hB.FR,e.SA=hB.SA,e.SU=hB.SU,e.parseString=hi,e.optionsToString=hd,e}(),hL={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function hM(e,t){return void 0===t&&(t={}),function(e,t){var o,n,i,r,a,s,l,c=(o=[],n=[],i=[],r=[],s=(a=hr(e)).dtstart,l=a.tzid,(function(e,t){if(void 0===t&&(t=!1),!(e=e&&e.trim()))throw Error("Invalid empty string");if(!t)return e.split(/\s/);for(var o=e.split("\n"),n=0;n<o.length;){var i=o[n]=o[n].replace(/\s+$/g,"");i?n>0&&" "===i[0]?(o[n-1]+=i.slice(1),o.splice(n,1)):n+=1:o.splice(n,1)}return o})(e,t.unfold).forEach(function(e){if(e){var t,a=function(e){var t=function(e){if(-1===e.indexOf(":"))return{name:"RRULE",value:e};var t=fE(e,":",1);return{name:t[0],value:t[1]}}(e),o=t.name,n=t.value,i=o.split(";");if(!i)throw Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:n}}(e),s=a.name,c=a.parms,d=a.value;switch(s.toUpperCase()){case"RRULE":if(c.length)throw Error("unsupported RRULE parm: ".concat(c.join(",")));o.push(hi(e));break;case"RDATE":var u=(null!=(t=/RDATE(?:;TZID=([^:=]+))?/i.exec(e))?t:[])[1];u&&!l&&(l=u),n=n.concat(hj(d,c));break;case"EXRULE":if(c.length)throw Error("unsupported EXRULE parm: ".concat(c.join(",")));i.push(hi(d));break;case"EXDATE":r=r.concat(hj(d,c));break;case"DTSTART":break;default:throw Error("unsupported property: "+s)}}}),{dtstart:s,tzid:l,rrulevals:o,rdatevals:n,exrulevals:i,exdatevals:r}),d=c.rrulevals,u=c.rdatevals,f=c.exrulevals,h=c.exdatevals,m=c.dtstart,b=c.tzid,p=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||d.length>1||u.length||f.length||h.length){var F=new hV(p);return F.dtstart(m),F.tzid(b||void 0),d.forEach(function(e){F.rrule(new hN(hU(e,m,b),p))}),u.forEach(function(e){F.rdate(e)}),f.forEach(function(e){F.exrule(new hN(hU(e,m,b),p))}),h.forEach(function(e){F.exdate(e)}),t.compatible&&t.dtstart&&F.rdate(m),F}var g=d[0]||{};return new hN(hU(g,g.dtstart||t.dtstart||m,g.tzid||t.tzid||b),p)}(e,function(e){var t=[],o=Object.keys(e),n=Object.keys(hL);if(o.forEach(function(e){fD(n,e)||t.push(e)}),t.length)throw Error("Invalid options: "+t.join(", "));return fQ(fQ({},hL),e)}(t))}function hU(e,t,o){return fQ(fQ({},e),{dtstart:t,tzid:o})}function hj(e,t){return t.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw Error("unsupported RDATE/EXDATE parm: "+e)}),e.split(",").map(function(e){return fY(e)})}function h$(e){var t=this;return function(o){if(void 0!==o&&(t["_".concat(e)]=o),void 0!==t["_".concat(e)])return t["_".concat(e)];for(var n=0;n<t._rrule.length;n++){var i=t._rrule[n].origOptions[e];if(i)return i}}}var hV=function(e){function t(t){void 0===t&&(t=!1);var o=e.call(this,{},t)||this;return o.dtstart=h$.apply(o,["dtstart"]),o.tzid=h$.apply(o,["tzid"]),o._rrule=[],o._rdate=[],o._exrule=[],o._exdate=[],o}return fX(t,e),t.prototype._iter=function(e){return function(e,t,o,n,i,r){var a={},s=e.accept;function l(e,t){o.forEach(function(o){o.between(e,t,!0).forEach(function(e){a[Number(e)]=!0})})}i.forEach(function(e){a[Number(new hc(e,r).rezonedDate())]=!0}),e.accept=function(e){var t=Number(e);return isNaN(t)?s.call(this,e):!!a[t]||(l(new Date(t-1),new Date(t+1)),!!a[t])||(a[t]=!0,s.call(this,e))},"between"===e.method&&(l(e.args.after,e.args.before),e.accept=function(e){var t=Number(e);return!!a[t]||(a[t]=!0,s.call(this,e))});for(var c=0;c<n.length;c++){var d=new hc(n[c],r).rezonedDate();if(!e.accept(new Date(d.getTime())))break}t.forEach(function(t){hT(e,t.options)});var u=e._result;switch(fq(u),e.method){case"all":case"between":return u;case"before":return u.length&&u[u.length-1]||null;default:return u.length&&u[0]||null}}(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){hz(e,this._rrule)},t.prototype.exrule=function(e){hz(e,this._exrule)},t.prototype.rdate=function(e){hq(e,this._rdate)},t.prototype.exdate=function(e){hq(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return hM(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return hM(e.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(hd({dtstart:this._dtstart}))),this._rrule.forEach(function(t){e=e.concat(t.toString().split("\n"))}),this._exrule.forEach(function(t){e=e.concat(t.toString().split("\n").map(function(e){return e.replace(/^RRULE:/,"EXRULE:")}).filter(function(e){return!/^DTSTART/.test(e)}))}),this._rdate.length&&e.push(hH("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(hH("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach(function(t){return e.rrule(t.clone())}),this._exrule.forEach(function(t){return e.exrule(t.clone())}),this._rdate.forEach(function(t){return e.rdate(new Date(t.getTime()))}),this._exdate.forEach(function(t){return e.exdate(new Date(t.getTime()))}),e},t}(hN);function hz(e,t){if(!(e instanceof hN))throw TypeError(String(e)+" is not RRule instance");fD(t.map(String),String(e))||t.push(e)}function hq(e,t){if(!(e instanceof Date))throw TypeError(String(e)+" is not Date instance");fD(t.map(Number),Number(e))||(t.push(e),fq(t))}function hH(e,t,o){var n=!o||"UTC"===o.toUpperCase(),i=n?"".concat(e,":"):"".concat(e,";TZID=").concat(o,":"),r=t.map(function(e){return fH(e.valueOf(),n)}).join(",");return"".concat(i).concat(r)}let hY={YEARLY:"rrule.frequency.YEARLY",MONTHLY:"rrule.frequency.MONTHLY",WEEKLY:"rrule.frequency.WEEKLY",DAILY:"rrule.frequency.DAILY",HOURLY:"rrule.frequency.HOURLY",MINUTELY:"rrule.frequency.MINUTELY",SECONDLY:"rrule.frequency.SECONDLY"},hW=["bymonth","byweekno","byyearday","bymonthday","byweekday","byhour","byminute","bysecond"],hG={SECONDLY:["byweekno"],MINUTELY:["byweekno"],HOURLY:["byweekno"],DAILY:["byweekno","byyearday"],WEEKLY:["byweekno","byyearday","bymonthday"],MONTHLY:["byweekno","byyearday"],YEARLY:[]},hK=["bymonth","byweekno","byyearday","byhour","byminute","bysecond"],hJ={SECONDLY:["bymonthday","byweekday",...hK,...hG.SECONDLY],MINUTELY:["bymonthday","byweekday",...hK,...hG.MINUTELY],HOURLY:["bymonthday","byweekday",...hK,...hG.HOURLY],DAILY:["bymonthday","byweekday",...hK,...hG.DAILY],WEEKLY:["bymonthday",...hK,...hG.WEEKLY],MONTHLY:["byweekday",...hK,...hG.MONTHLY],YEARLY:["bymonthday","byweekday",...hK,...hG.YEARLY]},hX={MO:"monday",TU:"tuesday",WE:"wednesday",TH:"thursday",FR:"friday",SA:"saturday",SU:"sunday"},hQ={1:"january",2:"february",3:"march",4:"april",5:"may",6:"june",7:"july",8:"august",9:"september",10:"october",11:"november",12:"december"};(eA=tO||(tO={})).default="default",eA.period="period",eA.recurrence="recurrence";let hZ={never:"never",until:"schedule.ends.until",count:"schedule.ends.count"};var h0=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};function h1(e,t){return Array.from({length:t-e+1},(t,o)=>e+o)}let h2=h1(-53,53).filter(Boolean),h3=h1(-366,366).filter(Boolean),h5=h1(-31,31).filter(Boolean),h4=h1(1,24),h6=h1(1,60);class h8 extends CustomEvent{constructor(e){super(h8.NAME,{detail:{value:e},bubbles:!0,composed:!0})}}h8.NAME="or-scheduler-changed";class h9 extends CustomEvent{constructor(){super(h9.NAME,{bubbles:!0,composed:!0})}}h9.NAME="or-scheduler-removed";let h7=class extends oJ(nY)(oR){constructor(){super(...arguments),this.defaultEventTypeLabel="default",this.disableNegativeByPartValues=!1,this.disabledFrequencies=[],this.disabledRRuleParts=[],this.disabledByPartCombinations=hG,this.header="scheduleActivity",this.isAllDay=!0,this.open=!1,this.removable=!1,this.schedule=this.defaultSchedule,this.timezoneOffset=0,this._count=1,this._ends="never",this._eventType=tO.default,this._until=sJ()().toDate()}get _scheduleWithOffset(){return this._applyTimezoneOffset(this.schedule,this.timezoneOffset)}set _scheduleWithOffset(e){this.schedule=this._applyTimezoneOffset(e,-this.timezoneOffset)}get _timeLabel(){if(this._eventType===tO.default)return of`<or-translate
2837
2845
  value="${this.defaultEventTypeLabel}"
2838
2846
  .options="${this._getDefaultMessageOptions()}"
2839
- ></or-translate>`;if(this._scheduleWithOffset){let e=this._scheduleWithOffset;if(e.recurrence){let t=sG()(e.end).diff(e.start,"days"),o={start:sG()(e.start).format("HH:mm"),end:sG()(e.end).format("HH:mm")},n=of``;this.isAllDay&&t>0?n=of`<or-translate value="forDays" .options="${{days:t,count:t}}"></or-translate>`:t>0?n=of`<or-translate
2847
+ ></or-translate>`;if(this._scheduleWithOffset){let e=this._scheduleWithOffset;if(e.recurrence){let t=sJ()(e.end).diff(e.start,"days"),o={start:sJ()(e.start).format("HH:mm"),end:sJ()(e.end).format("HH:mm")},n=of``;this.isAllDay&&t>0?n=of`<or-translate value="forDays" .options="${{days:t,count:t}}"></or-translate>`:t>0?n=of`<or-translate
2840
2848
  value="fromToDays"
2841
2849
  .options="${Object.assign(Object.assign({},o),{days:t,count:t})}"
2842
- ></or-translate>`:0===t&&(n=of`<or-translate value="fromTo" .options="${o}"></or-translate>`);let i=of`<span>&nbsp;${n}</span>`,r=Object.values(hJ).map(nY.t),a=Object.values(hK).map(nY.t),s=[a.pop(),...a],l=this._rrule.toText(e=>nY.t(`rrule.${e}`),{dayNames:s,monthNames:r,tokens:{}});return of`<span class="time-label"><span>${l}</span>${i}</span>`}let t=this.isAllDay?"DD-MM-YYYY":"DD-MM-YYYY HH:mm";return of`<or-translate
2850
+ ></or-translate>`:0===t&&(n=of`<or-translate value="fromTo" .options="${o}"></or-translate>`);let i=of`<span>&nbsp;${n}</span>`,r=Object.values(hQ).map(nY.t),a=Object.values(hX).map(nY.t),s=[a.pop(),...a],l=this._rrule.toText(e=>nY.t(`rrule.${e}`),{dayNames:s,monthNames:r,tokens:{}});return of`<span class="time-label"><span>${l}</span>${i}</span>`}let t=this.isAllDay?"DD-MM-YYYY":"DD-MM-YYYY HH:mm";return of`<or-translate
2843
2851
  value="activeFromTo"
2844
- .options="${{start:sG()(e.start).format(t),end:sG()(e.end).format(t)}}"
2845
- ></or-translate>`}}connectedCallback(){var e,t,o;super.connectedCallback();let n=this._applyTimezoneOffset(null!=(e=this.schedule)?e:this.defaultSchedule,this.timezoneOffset);if((null==n?void 0:n.start)&&(null==n?void 0:n.start)){let e=sG()(null==n?void 0:n.start),t=sG()(null==n?void 0:n.end);this.isAllDay=e.isSame(e.clone().startOf("day"))&&t.isSame(t.clone().endOf("day"))}if(null==(t=this.schedule)?void 0:t.recurrence){let e=hR.fromString(this.schedule.recurrence).origOptions;e.until?this._until=sG()(e.until).toDate():e.count&&(this._count=e.count)}!this.schedule||sJ(this.schedule,this.defaultSchedule)?this._eventType=tO.default:this._eventType=(null==(o=this.schedule)?void 0:o.recurrence)?tO.recurrence:tO.period}shouldUpdate(e){var t,o,n,i,r,a,s;return this.schedule&&!this.schedule.end&&(null==(t=this.defaultSchedule)?void 0:t.end)&&(this.schedule=Object.assign(Object.assign({},this.schedule),{end:this.defaultSchedule.end})),e.has("schedule")&&((null==(o=this._scheduleWithOffset)?void 0:o.recurrence)?this._rrule=hR.fromString(this._scheduleWithOffset.recurrence):this._eventType===tO.default&&(null==(n=this.defaultSchedule)?void 0:n.recurrence)&&(this._rrule=hR.fromString(this.defaultSchedule.recurrence))),e.has("_rrule")&&this._rrule&&(this._byRRuleParts=hH.filter(e=>{var t;return!(null==(t=this.disabledByPartCombinations[tT[this._rrule.options.freq]])?void 0:t.includes(e))}).filter(e=>!this.disabledRRuleParts.includes(e)),this._ends=(null==(r=null==(i=this._rrule)?void 0:i.origOptions)?void 0:r.until)&&"until"||(null==(s=null==(a=this._rrule)?void 0:a.origOptions)?void 0:s.count)&&"count"||"never"),super.shouldUpdate(e)}_setAllDay(){let e=this._scheduleWithOffset;if(this.isAllDay&&this._eventType!==tO.default){let t=sG()(null==e?void 0:e.start).startOf("day").valueOf(),o=sG()(null==e?void 0:e.end).endOf("day").valueOf();this._scheduleWithOffset=Object.assign(Object.assign({},e),{start:t,end:o})}}_getRRule(e=this._rrule){var t,o,n;return null==(n=null==(o=null==(t=null==e?void 0:e.toString())?void 0:t.split("RRULE:"))?void 0:o[1])?void 0:n.replace(/(UNTIL=\d+T\d+)Z/,"$1")}_setRRuleValue(e,t){var o;let n=null==(o=this._rrule)?void 0:o.origOptions,i=this._scheduleWithOffset;if("interval"===t||"freq"===t||t.startsWith("by"))if("byweekday"===t)n.byweekday=e.map(e=>hR[e]);else if("freq"===t){for(let e of hH)delete n[e];n[t]=e}else n[t]=e;else if("start"===t){let[t,o,r]=e.split("-").map(Number),a=sG()(i.start).set({year:t,month:o-1,date:r});n&&(n.dtstart=a.toDate()),i.start=a.valueOf()}else if("end"===t){let[t,o,n]=e.split("-").map(Number);i.end=sG()(i.end).set({year:t,month:o-1,date:n}).toDate().getTime()}else if("start-time"===t){let[t,o]=e.split(":");n?n.dtstart=sG()(i.start).set({hour:t,minute:o,second:0,millisecond:0}).toDate():n=new hR({dtstart:sG()(i.start).set({hour:t,minute:o,second:0,millisecond:0}).toDate()}).origOptions,i.start=sG()(n.dtstart).toDate().getTime()}else if("end-time"===t){let[t,o]=e.split(":");i.end=sG()(i.end).set({hour:t,minute:o,second:0,millisecond:0}).toDate().getTime()}else switch(t){case"all-day":this.isAllDay=e;break;case"recurrence-ends":"until"===e?(n.until=this._until,delete n.count):("count"===e?n.count=this._count:delete n.count,delete n.until),this._ends=e;break;case"until":this._until=new Date(e),n.until=this._until;break;case"count":this._count=e,n.count=this._count}this._eventType===tO.recurrence?(this._rrule=new hR(n),this._scheduleWithOffset=Object.assign(Object.assign({},i),{recurrence:this._getRRule()})):this._scheduleWithOffset=Object.assign({},i)}_setCalendarEventType(e){var t,o,n,i,r,a,s,l,c,d;let u=e.target.value;this._eventType=u;let f=sG()().startOf("day");if(u===tO.default){this.schedule={start:null!=(o=null==(t=this.defaultSchedule)?void 0:t.start)?o:f.valueOf()-this.timezoneOffset,end:null!=(i=null==(n=this.defaultSchedule)?void 0:n.end)?i:f.endOf("day").valueOf()-this.timezoneOffset};let e=null==(r=this.defaultSchedule)?void 0:r.recurrence;this._rrule=e?hR.fromString(e):void 0;return}let h={start:null!=(s=null==(a=this._scheduleWithOffset)?void 0:a.start)?s:f.valueOf(),end:null!=(c=null==(l=this._scheduleWithOffset)?void 0:l.end)?c:f.endOf("day").valueOf()};u===tO.period?this._scheduleWithOffset=h:this._scheduleWithOffset=Object.assign(Object.assign({},h),{recurrence:null!=(d=this._getRRule())?d:"FREQ=DAILY"})}_applyTimezoneOffset(e,t){if(e){let{start:o,end:n,recurrence:i}=Object.assign({},e);if(i&&hR.fromString(i).origOptions.until){let e=hR.fromString(i).origOptions;e.until=new Date(Number(e.until)+t),i=this._getRRule(new hR(e))}return{start:null!=o?o+t:o,end:null!=n?n+t:n,recurrence:i}}}_getDefaultMessageOptions(){var e,t;return{date:sG().utc(null==(e=this.defaultSchedule)?void 0:e.start).format("YYYY-MM-DD"),time:sG().utc(null==(t=this.defaultSchedule)?void 0:t.start).format("HH:mm")}}render(){return of`
2852
+ .options="${{start:sJ()(e.start).format(t),end:sJ()(e.end).format(t)}}"
2853
+ ></or-translate>`}}connectedCallback(){var e,t,o;super.connectedCallback();let n=this._applyTimezoneOffset(null!=(e=this.schedule)?e:this.defaultSchedule,this.timezoneOffset);if((null==n?void 0:n.start)&&(null==n?void 0:n.start)){let e=sJ()(null==n?void 0:n.start),t=sJ()(null==n?void 0:n.end);this.isAllDay=e.isSame(e.clone().startOf("day"))&&t.isSame(t.clone().endOf("day"))}if(null==(t=this.schedule)?void 0:t.recurrence){let e=hN.fromString(this.schedule.recurrence).origOptions;e.until?this._until=sJ()(e.until).toDate():e.count&&(this._count=e.count)}!this.schedule||sQ(this.schedule,this.defaultSchedule)?this._eventType=tO.default:this._eventType=(null==(o=this.schedule)?void 0:o.recurrence)?tO.recurrence:tO.period}shouldUpdate(e){var t,o,n,i,r,a,s;return this.schedule&&!this.schedule.end&&(null==(t=this.defaultSchedule)?void 0:t.end)&&(this.schedule=Object.assign(Object.assign({},this.schedule),{end:this.defaultSchedule.end})),e.has("schedule")&&((null==(o=this._scheduleWithOffset)?void 0:o.recurrence)?this._rrule=hN.fromString(this._scheduleWithOffset.recurrence):this._eventType===tO.default&&(null==(n=this.defaultSchedule)?void 0:n.recurrence)&&(this._rrule=hN.fromString(this.defaultSchedule.recurrence))),e.has("_rrule")&&this._rrule&&(this._byRRuleParts=hW.filter(e=>{var t;return!(null==(t=this.disabledByPartCombinations[tT[this._rrule.options.freq]])?void 0:t.includes(e))}).filter(e=>!this.disabledRRuleParts.includes(e)),this._ends=(null==(r=null==(i=this._rrule)?void 0:i.origOptions)?void 0:r.until)&&"until"||(null==(s=null==(a=this._rrule)?void 0:a.origOptions)?void 0:s.count)&&"count"||"never"),super.shouldUpdate(e)}_setAllDay(){let e=this._scheduleWithOffset;if(this.isAllDay&&this._eventType!==tO.default){let t=sJ()(null==e?void 0:e.start).startOf("day").valueOf(),o=sJ()(null==e?void 0:e.end).endOf("day").valueOf();this._scheduleWithOffset=Object.assign(Object.assign({},e),{start:t,end:o})}}_getRRule(e=this._rrule){var t,o,n;return null==(n=null==(o=null==(t=null==e?void 0:e.toString())?void 0:t.split("RRULE:"))?void 0:o[1])?void 0:n.replace(/(UNTIL=\d+T\d+)Z/,"$1")}_setRRuleValue(e,t){var o;let n=null==(o=this._rrule)?void 0:o.origOptions,i=this._scheduleWithOffset;if("interval"===t||"freq"===t||t.startsWith("by"))if("byweekday"===t)n.byweekday=e.map(e=>hN[e]);else if("freq"===t){for(let e of hW)delete n[e];n[t]=e}else n[t]=e;else if("start"===t){let[t,o,r]=e.split("-").map(Number),a=sJ()(i.start).set({year:t,month:o-1,date:r});n&&(n.dtstart=a.toDate()),i.start=a.valueOf()}else if("end"===t){let[t,o,n]=e.split("-").map(Number);i.end=sJ()(i.end).set({year:t,month:o-1,date:n}).toDate().getTime()}else if("start-time"===t){let[t,o]=e.split(":");n?n.dtstart=sJ()(i.start).set({hour:t,minute:o,second:0,millisecond:0}).toDate():n=new hN({dtstart:sJ()(i.start).set({hour:t,minute:o,second:0,millisecond:0}).toDate()}).origOptions,i.start=sJ()(n.dtstart).toDate().getTime()}else if("end-time"===t){let[t,o]=e.split(":");i.end=sJ()(i.end).set({hour:t,minute:o,second:0,millisecond:0}).toDate().getTime()}else switch(t){case"all-day":this.isAllDay=e;break;case"recurrence-ends":"until"===e?(n.until=this._until,delete n.count):("count"===e?n.count=this._count:delete n.count,delete n.until),this._ends=e;break;case"until":this._until=new Date(e),n.until=this._until;break;case"count":this._count=e,n.count=this._count}this._eventType===tO.recurrence?(this._rrule=new hN(n),this._scheduleWithOffset=Object.assign(Object.assign({},i),{recurrence:this._getRRule()})):this._scheduleWithOffset=Object.assign({},i)}_setCalendarEventType(e){var t,o,n,i,r,a,s,l,c,d;let u=e.target.value;this._eventType=u;let f=sJ()().startOf("day");if(u===tO.default){this.schedule={start:null!=(o=null==(t=this.defaultSchedule)?void 0:t.start)?o:f.valueOf()-this.timezoneOffset,end:null!=(i=null==(n=this.defaultSchedule)?void 0:n.end)?i:f.endOf("day").valueOf()-this.timezoneOffset};let e=null==(r=this.defaultSchedule)?void 0:r.recurrence;this._rrule=e?hN.fromString(e):void 0;return}let h={start:null!=(s=null==(a=this._scheduleWithOffset)?void 0:a.start)?s:f.valueOf(),end:null!=(c=null==(l=this._scheduleWithOffset)?void 0:l.end)?c:f.endOf("day").valueOf()};u===tO.period?this._scheduleWithOffset=h:this._scheduleWithOffset=Object.assign(Object.assign({},h),{recurrence:null!=(d=this._getRRule())?d:"FREQ=DAILY"})}_applyTimezoneOffset(e,t){if(e){let{start:o,end:n,recurrence:i}=Object.assign({},e);if(i&&hN.fromString(i).origOptions.until){let e=hN.fromString(i).origOptions;e.until=new Date(Number(e.until)+t),i=this._getRRule(new hN(e))}return{start:null!=o?o+t:o,end:null!=n?n+t:n,recurrence:i}}}_getDefaultMessageOptions(){var e,t;return{date:sJ().utc(null==(e=this.defaultSchedule)?void 0:e.start).format("YYYY-MM-DD"),time:sJ().utc(null==(t=this.defaultSchedule)?void 0:t.start).format("HH:mm")}}render(){return of`
2846
2854
  <or-vaadin-button style="max-width: 100%" @click="${()=>this._dialog.open()}"
2847
2855
  >${this._timeLabel}</or-vaadin-button
2848
2856
  >
@@ -2851,9 +2859,9 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2851
2859
  header-title="${nY.t(this.header)}"
2852
2860
  ?opened="${this.open}"
2853
2861
  @closed="${this._onClose}"
2854
- ${uw(this._getDialogHeader,[])}
2855
- ${uy(this._getDialogContent,[this.defaultSchedule,this.defaultEventTypeLabel,this.disabledFrequencies,this.disabledRRuleParts,this.header,this.isAllDay,this.schedule,this.timezoneOffset,this._count,this._ends,this._rrule])}
2856
- ${uE(this._getDialogFooter,[])}
2862
+ ${uC(this._getDialogHeader,[])}
2863
+ ${uE(this._getDialogContent,[this.defaultSchedule,this.defaultEventTypeLabel,this.disabledFrequencies,this.disabledRRuleParts,this.header,this.isAllDay,this.schedule,this.timezoneOffset,this._count,this._ends,this._rrule])}
2864
+ ${uk(this._getDialogFooter,[])}
2857
2865
  ></or-vaadin-dialog>
2858
2866
  `}_getDialogHeader(){return of`
2859
2867
  <vaadin-button theme="tertiary" @click="${this._onClose}">
@@ -2919,11 +2927,11 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2919
2927
  @change="${this._setCalendarEventType}"
2920
2928
  ></or-vaadin-select>
2921
2929
  </div>
2922
- ${fu(this._eventType!==tO.default,()=>this._getPeriodTemplate())}
2923
- ${fu(this._eventType===tO.recurrence,()=>this._getRepeatTemplate())}
2924
- ${fu(this._eventType===tO.recurrence,()=>this._getEndsTemplate())}
2930
+ ${fh(this._eventType!==tO.default,()=>this._getPeriodTemplate())}
2931
+ ${fh(this._eventType===tO.recurrence,()=>this._getRepeatTemplate())}
2932
+ ${fh(this._eventType===tO.recurrence,()=>this._getEndsTemplate())}
2925
2933
  </div>`}_getDialogFooter(){return of`
2926
- ${fu(this.removable,()=>of` <or-vaadin-button
2934
+ ${fh(this.removable,()=>of` <or-vaadin-button
2927
2935
  style="background-color: unset; margin-right: auto"
2928
2936
  theme="error"
2929
2937
  @click="${this._onDelete}"
@@ -2934,10 +2942,10 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2934
2942
  <or-vaadin-button theme="primary" @click="${this._onSave}"
2935
2943
  ><or-translate value="schedule.save"></or-translate
2936
2944
  ></or-vaadin-button>
2937
- `}_onClose(){this._dialog.close()}_onDelete(){this._dialog.close(),this.dispatchEvent(new h6)}_onSave(){var e;this._setAllDay(),this.dispatchEvent(new h4(null!=(e=this.schedule)?e:this.defaultSchedule)),this._dialog.close()}_onPartChange(e,t,o){return n=>{if("detail"===t){sJ(n.detail.value,o,!0)||this._setRRuleValue(n.detail.value,e);return}this._setRRuleValue(n.target[t],e)}}_isAllowedFrequency(e){return"SECONDLY"!==e&&!this.disabledFrequencies.includes(e)}_getRepeatTemplate(){var e,t,o,n,i;let r=null!=(t=null==(e=this._rrule)?void 0:e.origOptions.interval)?t:1,a=null!=(n=null==(o=this._rrule)?void 0:o.origOptions.freq)?n:tT.DAILY,s=Object.entries(hq).map(([e,t])=>({value:String(tT[e]),label:nY.t(t,{count:r})})).filter(({value:e})=>this._isAllowedFrequency(tT[e]));return of` <div id="recurrence" class="section">
2945
+ `}_onClose(){this._dialog.close()}_onDelete(){this._dialog.close(),this.dispatchEvent(new h9)}_onSave(){var e;this._setAllDay(),this.dispatchEvent(new h8(null!=(e=this.schedule)?e:this.defaultSchedule)),this._dialog.close()}_onPartChange(e,t,o){return n=>{if("detail"===t){sQ(n.detail.value,o,!0)||this._setRRuleValue(n.detail.value,e);return}this._setRRuleValue(n.target[t],e)}}_isAllowedFrequency(e){return"SECONDLY"!==e&&!this.disabledFrequencies.includes(e)}_getRepeatTemplate(){var e,t,o,n,i;let r=null!=(t=null==(e=this._rrule)?void 0:e.origOptions.interval)?t:1,a=null!=(n=null==(o=this._rrule)?void 0:o.origOptions.freq)?n:tT.DAILY,s=Object.entries(hY).map(([e,t])=>({value:String(tT[e]),label:nY.t(t,{count:r})})).filter(({value:e})=>this._isAllowedFrequency(tT[e]));return of` <div id="recurrence" class="section">
2938
2946
  <h4><or-translate value="schedule.repeat"></or-translate></h4>
2939
2947
  <div style="display: flex; gap: 8px">
2940
- ${fu(!(null==(i=this.disabledRRuleParts)?void 0:i.includes("interval")),()=>of`
2948
+ ${fh(!(null==(i=this.disabledRRuleParts)?void 0:i.includes("interval")),()=>of`
2941
2949
  <or-vaadin-number-field
2942
2950
  min="1"
2943
2951
  max="9"
@@ -2956,21 +2964,21 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2956
2964
  >
2957
2965
  </or-vaadin-select>
2958
2966
  </div>
2959
- ${fu(hH.some(e=>{var t;return null==(t=this._byRRuleParts)?void 0:t.includes(e)}),()=>of`
2967
+ ${fh(hW.some(e=>{var t;return null==(t=this._byRRuleParts)?void 0:t.includes(e)}),()=>of`
2960
2968
  <h4 style="margin-top: var(--lumo-space-l)">
2961
2969
  <or-translate value="schedule.repeatOn"></or-translate>
2962
2970
  </h4>
2963
- <div>${this._getByRulePart("bymonth",tS.CHECKBOX_LIST,Object.entries(hJ))}</div>
2971
+ <div>${this._getByRulePart("bymonth",tS.CHECKBOX_LIST,Object.entries(hQ))}</div>
2964
2972
  <div>
2965
- ${this._getByRulePart("byweekno",tS.SELECT,h0)}
2966
- ${this._getByRulePart("byyearday",tS.SELECT,h1)}
2967
- ${this._getByRulePart("bymonthday",tS.SELECT,h2)}
2973
+ ${this._getByRulePart("byweekno",tS.SELECT,h2)}
2974
+ ${this._getByRulePart("byyearday",tS.SELECT,h3)}
2975
+ ${this._getByRulePart("bymonthday",tS.SELECT,h5)}
2968
2976
  </div>
2969
- <div>${this._getByRulePart("byweekday",tS.CHECKBOX_LIST,Object.entries(hK))}</div>
2977
+ <div>${this._getByRulePart("byweekday",tS.CHECKBOX_LIST,Object.entries(hX))}</div>
2970
2978
  <div>
2971
- ${this._getByRulePart("byhour",tS.SELECT,h3)}
2972
- ${this._getByRulePart("byminute",tS.SELECT,h5)}
2973
- ${this._getByRulePart("bysecond",tS.SELECT,h5)}
2979
+ ${this._getByRulePart("byhour",tS.SELECT,h4)}
2980
+ ${this._getByRulePart("byminute",tS.SELECT,h6)}
2981
+ ${this._getByRulePart("bysecond",tS.SELECT,h6)}
2974
2982
  </div>
2975
2983
  `)}
2976
2984
  </div>`}_getByRulePart(e,t,o){var n,i,r,a;if(!(null==(n=this._byRRuleParts)?void 0:n.includes(e)))return;let s=null!=(a=null==(r=null==(i=this._rrule)?void 0:i.origOptions)?void 0:r[e])?a:[],l="byweekday"===e?null==s?void 0:s.map(String):Array.isArray(s)?s:[s];return t===tS.CHECKBOX_LIST?of`
@@ -2992,18 +3000,18 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
2992
3000
  <or-vaadin-date-picker
2993
3001
  style="text-transform: capitalize"
2994
3002
  ?combined="${!this.isAllDay}"
2995
- .value="${sG()(e.start).format("YYYY-MM-DD")}"
3003
+ .value="${sJ()(e.start).format("YYYY-MM-DD")}"
2996
3004
  @change="${this._onPartChange("start","value")}"
2997
3005
  label="${nY.t("from")}"
2998
- .max="${sG()(e.end).format("YYYY-MM-DD")}"
3006
+ .max="${sJ()(e.end).format("YYYY-MM-DD")}"
2999
3007
  >
3000
3008
  </or-vaadin-date-picker>
3001
3009
  <or-vaadin-time-picker
3002
3010
  style="margin-top: auto"
3003
3011
  ?hidden=${this.isAllDay}
3004
- .value="${sG()(e.start).format("HH:mm")}"
3012
+ .value="${sJ()(e.start).format("HH:mm")}"
3005
3013
  @change="${this._onPartChange("start-time","value")}"
3006
- .max="${sG()(e.end).isSameOrBefore(sG()(e.start),"day")&&sG()(e.end).format("HH:mm")}"
3014
+ .max="${sJ()(e.end).isSameOrBefore(sJ()(e.start),"day")&&sJ()(e.end).format("HH:mm")}"
3007
3015
  >
3008
3016
  </or-vaadin-time-picker>
3009
3017
  </div>
@@ -3011,18 +3019,18 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
3011
3019
  <or-vaadin-date-picker
3012
3020
  style="text-transform: capitalize"
3013
3021
  ?combined="${!this.isAllDay}"
3014
- .value="${sG()(e.end).format("YYYY-MM-DD")}"
3022
+ .value="${sJ()(e.end).format("YYYY-MM-DD")}"
3015
3023
  @change="${this._onPartChange("end","value")}"
3016
3024
  label="${nY.t("to")}"
3017
- .min="${sG()(e.start).format("YYYY-MM-DD")}"
3025
+ .min="${sJ()(e.start).format("YYYY-MM-DD")}"
3018
3026
  >
3019
3027
  </or-vaadin-date-picker>
3020
3028
  <or-vaadin-time-picker
3021
3029
  style="margin-top: auto"
3022
3030
  ?hidden=${this.isAllDay}
3023
- .value="${sG()(e.end).format("HH:mm")}"
3031
+ .value="${sJ()(e.end).format("HH:mm")}"
3024
3032
  @change="${this._onPartChange("end-time","value")}"
3025
- .min="${sG()(e.end).isSameOrBefore(sG()(e.start),"day")&&sG()(e.start).format("HH:mm")}"
3033
+ .min="${sJ()(e.end).isSameOrBefore(sJ()(e.start),"day")&&sJ()(e.start).format("HH:mm")}"
3026
3034
  >
3027
3035
  </or-vaadin-time-picker>
3028
3036
  </div>
@@ -3041,19 +3049,19 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
3041
3049
  theme="vertical"
3042
3050
  @change="${this._onPartChange("recurrence-ends","value")}"
3043
3051
  >
3044
- ${Object.entries(hX).filter(([e])=>{var t;return!(null==(t=this.disabledRRuleParts)?void 0:t.includes(e))}).map(([e,t])=>of`
3052
+ ${Object.entries(hZ).filter(([e])=>{var t;return!(null==(t=this.disabledRRuleParts)?void 0:t.includes(e))}).map(([e,t])=>of`
3045
3053
  <vaadin-radio-button style="margin: 6px 0" value="${e}" label="${nY.t(t)}"></vaadin-radio-button>
3046
3054
  `)}
3047
3055
  </or-vaadin-radio-group>
3048
3056
  <div style="display: flex; flex-direction: column; flex: 1; ">
3049
- ${fu(!this.disabledRRuleParts.includes("until"),()=>of` <or-vaadin-date-time-picker
3057
+ ${fh(!this.disabledRRuleParts.includes("until"),()=>of` <or-vaadin-date-time-picker
3050
3058
  style="margin-top: auto; padding: var(--lumo-space-s) 0"
3051
3059
  ?disabled="${"until"!==this._ends}"
3052
- .value="${sG()(this._until).format("YYYY-MM-DDTHH:mm")}"
3060
+ .value="${sJ()(this._until).format("YYYY-MM-DDTHH:mm")}"
3053
3061
  @change="${this._onPartChange("until","value")}"
3054
3062
  >
3055
3063
  </or-vaadin-date-time-picker>`)}
3056
- ${fu(!this.disabledRRuleParts.includes("count"),()=>of`<div style="display: inline-flex">
3064
+ ${fh(!this.disabledRRuleParts.includes("count"),()=>of`<div style="display: inline-flex">
3057
3065
  <or-vaadin-number-field
3058
3066
  ?disabled="${"count"!==this._ends}"
3059
3067
  min="1"
@@ -3073,7 +3081,7 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
3073
3081
  </div>`)}
3074
3082
  </div>
3075
3083
  </div>
3076
- </div>`}};h8.styles=tU`
3084
+ </div>`}};h7.styles=tU`
3077
3085
  or-vaadin-dialog::part(overlay) {
3078
3086
  max-width: 600px;
3079
3087
  }
@@ -3090,4 +3098,4 @@ var ORScheduler;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
3090
3098
  }
3091
3099
  }
3092
3100
  }
3093
- `,hQ([oV({type:Object})],h8.prototype,"defaultSchedule",void 0),hQ([oV({type:String})],h8.prototype,"defaultEventTypeLabel",void 0),hQ([oV({type:Boolean})],h8.prototype,"disableNegativeByPartValues",void 0),hQ([oV({type:Array})],h8.prototype,"disabledFrequencies",void 0),hQ([oV({type:Array})],h8.prototype,"disabledRRuleParts",void 0),hQ([oV({type:Object})],h8.prototype,"disabledByPartCombinations",void 0),hQ([oV({type:String})],h8.prototype,"header",void 0),hQ([oV({type:Boolean})],h8.prototype,"isAllDay",void 0),hQ([oV({type:Boolean})],h8.prototype,"open",void 0),hQ([oV({type:Boolean})],h8.prototype,"removable",void 0),hQ([oV({type:Object})],h8.prototype,"schedule",void 0),hQ([oV({type:Number})],h8.prototype,"timezoneOffset",void 0),hQ([oz()],h8.prototype,"_count",void 0),hQ([oz()],h8.prototype,"_ends",void 0),hQ([oz()],h8.prototype,"_eventType",void 0),hQ([oz()],h8.prototype,"_rrule",void 0),hQ([(e,t,o)=>{let n,i,r;return n=e,i=t,(r={get(){let e;return e=this,e.renderRoot?.querySelector("#scheduler")??null}}).configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=typeof i&&Object.defineProperty(n,i,r),r}],h8.prototype,"_dialog",void 0),h8=hQ([oj("or-scheduler")],h8)})(),ORScheduler=n})();
3101
+ `,h0([oV({type:Object})],h7.prototype,"defaultSchedule",void 0),h0([oV({type:String})],h7.prototype,"defaultEventTypeLabel",void 0),h0([oV({type:Boolean})],h7.prototype,"disableNegativeByPartValues",void 0),h0([oV({type:Array})],h7.prototype,"disabledFrequencies",void 0),h0([oV({type:Array})],h7.prototype,"disabledRRuleParts",void 0),h0([oV({type:Object})],h7.prototype,"disabledByPartCombinations",void 0),h0([oV({type:String})],h7.prototype,"header",void 0),h0([oV({type:Boolean})],h7.prototype,"isAllDay",void 0),h0([oV({type:Boolean})],h7.prototype,"open",void 0),h0([oV({type:Boolean})],h7.prototype,"removable",void 0),h0([oV({type:Object})],h7.prototype,"schedule",void 0),h0([oV({type:Number})],h7.prototype,"timezoneOffset",void 0),h0([oz()],h7.prototype,"_count",void 0),h0([oz()],h7.prototype,"_ends",void 0),h0([oz()],h7.prototype,"_eventType",void 0),h0([oz()],h7.prototype,"_rrule",void 0),h0([(e,t,o)=>{let n,i,r;return n=e,i=t,(r={get(){let e;return e=this,e.renderRoot?.querySelector("#scheduler")??null}}).configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=typeof i&&Object.defineProperty(n,i,r),r}],h7.prototype,"_dialog",void 0),h7=h0([oj("or-scheduler")],h7)})(),ORScheduler=n})();