@openremote/or-services 1.30.0-snapshot.20260902122509 → 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.
- package/{dist → build/dist}/umd/index.bundle.js +24 -19
- package/build/lib/index.d.ts.map +1 -0
- package/build/lib/index.js.map +1 -0
- package/build/lib/or-service-tree.d.ts.map +1 -0
- package/build/lib/or-service-tree.js.map +1 -0
- package/build/lib/types.d.ts.map +1 -0
- package/build/lib/types.js.map +1 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/lib/utils.js.map +1 -0
- package/package.json +22 -16
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/or-service-tree.d.ts.map +0 -1
- package/lib/or-service-tree.js.map +0 -1
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js.map +0 -1
- package/lib/utils.d.ts.map +0 -1
- package/lib/utils.js.map +0 -1
- /package/{custom-elements-jsx.d.ts → build/custom-elements-jsx.d.ts} +0 -0
- /package/{custom-elements.json → build/custom-elements.json} +0 -0
- /package/{lib → build/lib}/index.d.ts +0 -0
- /package/{lib → build/lib}/index.js +0 -0
- /package/{lib → build/lib}/or-service-tree.d.ts +0 -0
- /package/{lib → build/lib}/or-service-tree.js +0 -0
- /package/{lib → build/lib}/types.d.ts +0 -0
- /package/{lib → build/lib}/types.js +0 -0
- /package/{lib → build/lib}/utils.d.ts +0 -0
- /package/{lib → build/lib}/utils.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ORServices;(()=>{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),r=o(24),i=o(1530);e.exports=o(7009)||n.call(i,r)},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),r=o(6757),i=o(1530),a=o(9630);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new r("a function is required");return a(n,i,e)}},7009(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8682(e,t,o){"use strict";var n=o(4295),r=o(7196),i=r([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var o=n(e,!!t);return"function"==typeof o&&i(e,".prototype.")>-1?r([o]):o}},714(e,t,o){"use strict";var n,r=o(7196),i=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&&i&&i(Object.prototype,"__proto__"),c=Object,s=c.getPrototypeOf;e.exports=a&&"function"==typeof a.get?r([a.get]):"function"==typeof s&&function(e){return s(null==e?e:c(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 r=0;r<t.length;r+=1)o[r+e.length]=t[r];return o},r=function(e,t){for(var o=[],n=t||0,r=0;n<e.length;n+=1,r+=1)o[r]=e[n];return o},i=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,c=this;if("function"!=typeof c||"[object Function]"!==t.apply(c))throw TypeError("Function.prototype.bind called on incompatible "+c);for(var s=r(arguments,1),l=o(0,c.length-s.length),d=[],f=0;f<l;f++)d[f]="$"+f;if(a=Function("binder","return function ("+i(d,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=c.apply(this,n(s,arguments));return Object(t)===t?t:this}return c.apply(e,n(s,arguments))}),c.prototype){var u=function(){};u.prototype=c.prototype,a.prototype=new u,u.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,r=o(802),i=o(593),a=o(155),c=o(7180),s=o(9304),l=o(1742),d=o(6757),f=o(4923),u=o(7256),m=o(5414),b=o(7954),h=o(3452),p=o(1358),F=o(5720),g=o(3515),v=o(1233),y=o(9997),E=function(){throw new d},_=v?function(){try{return arguments.callee,E}catch(e){try{return v(arguments,"callee").get}catch(e){return E}}}():E,w=o(8573)(),A=o(7582),k=o(2170),C=o(9090),D=o(24),S=o(1530),x={},O="u">typeof Uint8Array&&A?A(Uint8Array):n,T={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%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%":i,"%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%":x,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&w&&A?A(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":c,"%ReferenceError%":s,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&w&&A?A(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&A?A(""[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":_,"%TypedArray%":O,"%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%":f,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":S,"%Function.prototype.apply%":D,"%Object.defineProperty%":y,"%Object.getPrototypeOf%":k,"%Math.abs%":u,"%Math.floor%":m,"%Math.max%":b,"%Math.min%":h,"%Math.pow%":p,"%Math.round%":F,"%Math.sign%":g,"%Reflect.getPrototypeOf%":C};if(A)try{null.error}catch(e){var B=A(A(e));T["%Error.prototype%"]=B}var R=o(3260),N=o(5175),I=o(7052),P=function e(t){var o;if("%AsyncFunction%"===t)o=R()||void 0;else if("%GeneratorFunction%"===t)o=N()||void 0;else if("%AsyncGeneratorFunction%"===t)o=I()||void 0;else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&A&&(o=A(r.prototype))}return T[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(S,Array.prototype.concat),$=M.call(D,Array.prototype.splice),G=M.call(S,String.prototype.replace),q=M.call(S,String.prototype.slice),H=M.call(S,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(e){var t=q(e,0,1),o=q(e,-1);if("%"===t&&"%"!==o)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return G(e,z,function(e,t,o,r){n[n.length]=o?G(r,W,"$1"):t||e}),n},Y=function(e,t){var o,n=e;if(U(L,n)&&(n="%"+(o=L[n])[0]+"%"),U(T,n)){var r=T[n];if(r===x&&(r=P(n)),void 0===r&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:r}}throw new l("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===H(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=V(e),n=o.length>0?o[0]:"",r=Y("%"+n+"%",t),i=r.name,a=r.value,c=!1,s=r.alias;s&&(n=s[0],$(o,j([0,1],s)));for(var f=1,u=!0;f<o.length;f+=1){var m=o[f],b=q(m,0,1),h=q(m,-1);if(('"'===b||"'"===b||"`"===b||'"'===h||"'"===h||"`"===h)&&b!==h)throw new l("property names with quotes must have matching quotes");if("constructor"!==m&&u||(c=!0),n+="."+m,U(T,i="%"+n+"%"))a=T[i];else if(null!=a){if(!(m in a)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(v&&f+1>=o.length){var p=v(a,m);a=(u=!!p)&&"get"in p&&!("originalValue"in p.get)?p.get:a[m]}else u=U(a,m),a=a[m];u&&!c&&(T[i]=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),r=o(2170),i=o(714);e.exports=n?function(e){return n(e)}:r?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return r(e)}:i?function(e){return i(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,r=o(9535);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&r()}},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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9731(e,t,o){"use strict";var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;e.exports=o(469).call(n,r)},4954(e,t,o){!function(){"use strict";var t="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self,a=!r.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;a?r=o.g:i&&(r=self);var c=!r.JS_SHA256_NO_COMMON_JS&&e.exports,s="function"==typeof define&&define.amd,l=!r.JS_SHA256_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,d="0123456789abcdef".split(""),f=[-0x80000000,8388608,32768,128],u=[24,16,8,0],m=[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],b=["hex","array","digest","arrayBuffer"],h=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),l&&(r.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 E(t,!0).update(o)[e]()}},F=function(e){var t=p("hex",e);a&&(t=g(t,e)),t.create=function(){return new E(e)},t.update=function(e){return t.create().update(e)};for(var o=0;o<b.length;++o){var n=b[o];t[n]=p(n,e)}return t},g=function(e,n){var i,a=o(7791),c=o(5610).Buffer,s=n?"sha224":"sha256";return i=c.from&&!r.JS_SHA256_NO_BUFFER_FROM?c.from:function(e){return new c(e)},function(o){if("string"==typeof o)return a.createHash(s).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===c?a.createHash(s).update(i(o)).digest("hex"):e(o)}},v=function(e,t){return function(o,n){return new _(o,t,!0).update(n)[e]()}},y=function(e){var t=v("hex",e);t.create=function(t){return new _(t,e)},t.update=function(e,o){return t.create(e).update(o)};for(var o=0;o<b.length;++o){var n=b[o];t[n]=v(n,e)}return t};function E(e,t){t?(h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h):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 _(e,o,n){var r,i=typeof e;if("string"===i){var a,c=[],s=e.length,d=0;for(r=0;r<s;++r)(a=e.charCodeAt(r))<128?c[d++]=a:(a<2048?c[d++]=192|a>>>6:(a<55296||a>=57344?c[d++]=224|a>>>12:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++r)),c[d++]=240|a>>>18,c[d++]=128|a>>>12&63),c[d++]=128|a>>>6&63),c[d++]=128|63&a);e=c}else if("object"===i){if(null===e)throw Error(t);else if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!l||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);e.length>64&&(e=new E(o,!0).update(e).array());var f=[],u=[];for(r=0;r<64;++r){var m=e[r]||0;f[r]=92^m,u[r]=54^m}E.call(this,o,n),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=n}E.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(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!l||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);o=!0}for(var r,i,a=0,c=e.length,s=this.blocks;a<c;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,this.block=s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),o)for(i=this.start;a<c&&i<64;++a)s[i>>>2]|=e[a]<<u[3&i++];else for(i=this.start;a<c&&i<64;++a)(r=e.charCodeAt(a))<128?s[i>>>2]|=r<<u[3&i++]:(r<2048?s[i>>>2]|=(192|r>>>6)<<u[3&i++]:(r<55296||r>=57344?s[i>>>2]|=(224|r>>>12)<<u[3&i++]:(r=65536+((1023&r)<<10|1023&e.charCodeAt(++a)),s[i>>>2]|=(240|r>>>18)<<u[3&i++],s[i>>>2]|=(128|r>>>12&63)<<u[3&i++]),s[i>>>2]|=(128|r>>>6&63)<<u[3&i++]),s[i>>>2]|=(128|63&r)<<u[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},E.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=f[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()}},E.prototype.hash=function(){var e,t,o,n,r,i,a,c,s,l,d=this.h0,f=this.h1,u=this.h2,b=this.h3,h=this.h4,p=this.h5,F=this.h6,g=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((r=v[e-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3,o=((r=v[e-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,v[e]=v[e-16]+t+v[e-7]+o|0;for(l=f&u,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,g=(r=v[0]-0x543c9a5b)-0x8f1a6c7|0,b=r+0x170e9b5|0):(a=0x2a01a605,g=(r=v[0]-0xc881298)-0x5ab00ac6|0,b=r+0x8909ae5|0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),o=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7),n=(a=d&f)^d&u^l,r=g+o+(h&p^~h&F)+m[e]+v[e],i=t+n,g=b+r|0,b=r+i|0),t=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),o=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),n=(c=b&d)^b&f^a,r=F+o+(g&h^~g&p)+m[e+1]+v[e+1],i=t+n,F=u+r|0,t=((u=r+i|0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),o=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7),n=(s=u&b)^u&d^c,r=p+o+(F&g^~F&h)+m[e+2]+v[e+2],i=t+n,p=f+r|0,t=((f=r+i|0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),o=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),n=(l=f&u)^f&b^s,r=h+o+(p&F^~p&g)+m[e+3]+v[e+3],i=t+n,h=d+r|0,d=r+i|0,this.chromeBugWorkAround=!0;this.h0=this.h0+d|0,this.h1=this.h1+f|0,this.h2=this.h2+u|0,this.h3=this.h3+b|0,this.h4=this.h4+h|0,this.h5=this.h5+p|0,this.h6=this.h6+F|0,this.h7=this.h7+g|0},E.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,r=this.h4,i=this.h5,a=this.h6,c=this.h7,s=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[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[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[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||(s+=d[c>>>28&15]+d[c>>>24&15]+d[c>>>20&15]+d[c>>>16&15]+d[c>>>12&15]+d[c>>>8&15]+d[c>>>4&15]+d[15&c]),s},E.prototype.toString=E.prototype.hex,E.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,r=this.h4,i=this.h5,a=this.h6,c=this.h7,s=[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,r>>>24&255,r>>>16&255,r>>>8&255,255&r,i>>>24&255,i>>>16&255,i>>>8&255,255&i,a>>>24&255,a>>>16&255,a>>>8&255,255&a];return this.is224||s.push(c>>>24&255,c>>>16&255,c>>>8&255,255&c),s},E.prototype.array=E.prototype.digest,E.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},_.prototype=new E,_.prototype.finalize=function(){if(E.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();E.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),E.prototype.finalize.call(this)}};var w=F();w.sha256=w,w.sha224=F(!0),w.sha256.hmac=y(),w.sha224.hmac=y(!0),c?e.exports=w:(r.sha256=w.sha256,r.sha224=w.sha224,s&&define(function(){return w}))}()},3472(e,t,o){e=o.nmd(e);var n,r="__lodash_hash_undefined__",i="[object Arguments]",a="[object Array]",c="[object Boolean]",s="[object Date]",l="[object Error]",d="[object Function]",f="[object Map]",u="[object Number]",m="[object Object]",b="[object Promise]",h="[object RegExp]",p="[object Set]",F="[object String]",g="[object Symbol]",v="[object WeakMap]",y="[object ArrayBuffer]",E="[object DataView]",_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w=/^\w*$/,A=/^\./,k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,D=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[i]=x[a]=x[y]=x[c]=x[E]=x[s]=x[l]=x[d]=x[f]=x[u]=x[m]=x[h]=x[p]=x[F]=x[v]=!1;var O="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,T="object"==typeof self&&self&&self.Object===Object&&self,B=O||T||Function("return this")(),R=t&&!t.nodeType&&t,N=R&&e&&!e.nodeType&&e,I=N&&N.exports===R&&O.process,P=function(){try{return I&&I.binding("util")}catch(e){}}(),L=P&&P.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 G=Array.prototype,q=Function.prototype,H=Object.prototype,z=B["__core-js_shared__"],W=(n=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",V=q.toString,Y=H.hasOwnProperty,K=H.toString,J=RegExp("^"+V.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=B.Symbol,Q=B.Uint8Array,Z=j(Object.getPrototypeOf,Object),ee=Object.create,et=H.propertyIsEnumerable,eo=G.splice,en=j(Object.keys,Object),er=eO(B,"DataView"),ei=eO(B,"Map"),ea=eO(B,"Promise"),ec=eO(B,"Set"),es=eO(B,"WeakMap"),el=eO(Object,"create"),ed=eL(er),ef=eL(ei),eu=eL(ea),em=eL(ec),eb=eL(es),eh=X?X.prototype:void 0,ep=eh?eh.valueOf:void 0,eF=eh?eh.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 ey(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 eE(e){var t=-1,o=e?e.length:0;for(this.__data__=new ey;++t<o;)this.add(e[t])}function e_(e){this.__data__=new ev(e)}function ew(e,t){for(var o=e.length;o--;)if(eU(e[o][0],t))return o;return -1}eg.prototype.clear=function(){this.__data__=el?el(null):{}},eg.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eg.prototype.get=function(e){var t=this.__data__;if(el){var o=t[e];return o===r?void 0:o}return Y.call(t,e)?t[e]:void 0},eg.prototype.has=function(e){var t=this.__data__;return el?void 0!==t[e]:Y.call(t,e)},eg.prototype.set=function(e,t){return this.__data__[e]=el&&void 0===t?r:t,this},ev.prototype.clear=function(){this.__data__=[]},ev.prototype.delete=function(e){var t=this.__data__,o=ew(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=ew(t,e);return o<0?void 0:t[o][1]},ev.prototype.has=function(e){return ew(this.__data__,e)>-1},ev.prototype.set=function(e,t){var o=this.__data__,n=ew(o,e);return n<0?o.push([e,t]):o[n][1]=t,this},ey.prototype.clear=function(){this.__data__={hash:new eg,map:new(ei||ev),string:new eg}},ey.prototype.delete=function(e){return ex(this,e).delete(e)},ey.prototype.get=function(e){return ex(this,e).get(e)},ey.prototype.has=function(e){return ex(this,e).has(e)},ey.prototype.set=function(e,t){return ex(this,e).set(e,t),this},eE.prototype.add=eE.prototype.push=function(e){return this.__data__.set(e,r),this},eE.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.clear=function(){this.__data__=new ev},e_.prototype.delete=function(e){return this.__data__.delete(e)},e_.prototype.get=function(e){return this.__data__.get(e)},e_.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.set=function(e,t){var o=this.__data__;if(o instanceof ev){var n=o.__data__;if(!ei||n.length<199)return n.push([e,t]),this;o=this.__data__=new ey(n)}return o.set(e,t),this};var eA=function(e,t,o){for(var n=-1,r=Object(e),i=o(e),a=i.length;a--;){var c=i[++n];if(!1===t(r[c],c,r))break}return e};function ek(e,t){var o;t=eR(t,e)?[t]:e$(o=t)?o:eI(o);for(var n=0,r=t.length;null!=e&&n<r;)e=e[eP(t[n++])];return n&&n==r?e:void 0}function eC(e,t){return null!=e&&t in Object(e)}function eD(e,t,o,n,r){return e===t||(null!=e&&null!=t&&(ez(e)||eW(t))?function(e,t,o,n,r,d){var b=e$(e),v=e$(t),_=a,w=a;b||(_=(_=eT(e))==i?m:_),v||(w=(w=eT(t))==i?m:w);var A=_==m&&!M(e),k=w==m&&!M(t),C=_==w;if(C&&!A)return d||(d=new e_),b||eY(e)?eS(e,t,o,n,r,d):function(e,t,o,n,r,i,a){switch(o){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case y:if(e.byteLength!=t.byteLength||!n(new Q(e),new Q(t)))break;return!0;case c:case s:case u:return eU(+e,+t);case l:return e.name==t.name&&e.message==t.message;case h:case F:return e==t+"";case f:var d=U;case p:var m=2&i;if(d||(d=$),e.size!=t.size&&!m)break;var b=a.get(e);if(b)return b==t;i|=1,a.set(e,t);var v=eS(d(e),d(t),n,r,i,a);return a.delete(e),v;case g:if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,_,o,n,r,d);if(!(2&r)){var D=A&&Y.call(e,"__wrapped__"),S=k&&Y.call(t,"__wrapped__");if(D||S){var x=D?e.value():e,O=S?t.value():t;return d||(d=new e_),o(x,O,n,r,d)}}return!!C&&(d||(d=new e_),function(e,t,o,n,r,i){var a=2&r,c=eK(e),s=c.length;if(s!=eK(t).length&&!a)return!1;for(var l=s;l--;){var d=c[l];if(!(a?d in t:Y.call(t,d)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var u=!0;i.set(e,t),i.set(t,e);for(var m=a;++l<s;){var b=e[d=c[l]],h=t[d];if(n)var p=a?n(h,b,d,t,e,i):n(b,h,d,e,t,i);if(!(void 0===p?b===h||o(b,h,n,r,i):p)){u=!1;break}m||(m="constructor"==d)}if(u&&!m){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)&&(u=!1)}return i.delete(e),i.delete(t),u}(e,t,o,n,r,d))}(e,t,eD,o,n,r):e!=e&&t!=t)}function eS(e,t,o,n,r,i){var a=2&r,c=e.length,s=t.length;if(c!=s&&!(a&&s>c))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var d=-1,f=!0,u=1&r?new eE:void 0;for(i.set(e,t),i.set(t,e);++d<c;){var m=e[d],b=t[d];if(n)var h=a?n(b,m,d,t,e,i):n(m,b,d,e,t,i);if(void 0!==h){if(h)continue;f=!1;break}if(u){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(!u.has(t)&&(m===e||o(m,e,n,r,i)))return u.add(t)})){f=!1;break}}else if(!(m===b||o(m,b,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function ex(e,t){var o,n,r=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?r["string"==typeof t?"string":"hash"]:r.map}function eO(e,t){var o,n=null==e?void 0:e[t];return!(!ez(n)||(o=n,W&&W in o))&&(eq(n)||M(n)?J:D).test(eL(n))?n:void 0}var eT=function(e){return K.call(e)};function eB(e,t){return!!(t=null==t?0x1fffffffffffff:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function eR(e,t){if(e$(e))return!1;var o=typeof e;return!!("number"==o||"symbol"==o||"boolean"==o||null==e||eV(e))||w.test(e)||!_.test(e)||null!=t&&e in Object(t)}(er&&eT(new er(new ArrayBuffer(1)))!=E||ei&&eT(new ei)!=f||ea&&eT(ea.resolve())!=b||ec&&eT(new ec)!=p||es&&eT(new es)!=v)&&(eT=function(e){var t=K.call(e),o=t==m?e.constructor:void 0,n=o?eL(o):void 0;if(n)switch(n){case ed:return E;case ef:return f;case eu:return b;case em:return p;case eb:return v}return t});function eN(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}var eI=eM(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(eV(e))return eF?eF.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var t,o=[];return A.test(e)&&o.push(""),e.replace(k,function(e,t,n,r){o.push(n?r.replace(C,"$1"):t||e)}),o});function eP(e){if("string"==typeof e||eV(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function eL(e){if(null!=e){try{return V.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,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var a=e.apply(this,n);return o.cache=i.set(r,a),a};return o.cache=new(eM.Cache||ey),o}function eU(e,t){return e===t||e!=e&&t!=t}function ej(e){var t;return eW(t=e)&&eG(t)&&Y.call(e,"callee")&&(!et.call(e,"callee")||K.call(e)==i)}eM.Cache=ey;var e$=Array.isArray;function eG(e){return null!=e&&eH(e.length)&&!eq(e)}function eq(e){var t=ez(e)?K.call(e):"";return t==d||"[object GeneratorFunction]"==t}function eH(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function ez(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eW(e){return!!e&&"object"==typeof e}function eV(e){return"symbol"==typeof e||eW(e)&&K.call(e)==g}var eY=L?function(e){return L(e)}:function(e){return eW(e)&&eH(e.length)&&!!x[K.call(e)]};function eK(e){return eG(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 r in e)Y.call(e,r)&&!(n&&("length"==r||eB(r,o)))&&t.push(r);return t}(e):function(e){if(o=(t=e)&&t.constructor,t!==("function"==typeof o&&o.prototype||H))return en(e);var t,o,n=[];for(var r in Object(e))Y.call(e,r)&&"constructor"!=r&&n.push(r);return n}(e)}function eJ(e){return e}e.exports=function(e,t,o){var n=e$(e)||eY(e);if(t="function"==typeof(l=t)?l:null==l?eJ:"object"==typeof l?e$(l)?(r=l[0],i=l[1],eR(r)&&(a=i)==a&&!ez(a)?eN(eP(r),i):function(e){var t,o,n,a,c,s=(t=e,o=r,void 0===(n=null==t?void 0:ek(t,o))?void 0:n);return void 0===s&&s===i?(a=e,c=r,null!=a&&function(e,t,o){t=eR(t,e)?[t]:e$(n=t)?n:eI(n);for(var n,r,i=-1,a=t.length;++i<a;){var c=eP(t[i]);if(!(r=null!=e&&o(e,c)))break;e=e[c]}if(r)return r;var a=e?e.length:0;return!!a&&eH(a)&&eB(c,a)&&(e$(e)||ej(e))}(a,c,eC)):eD(i,s,void 0,3)}):1==(s=function(e){for(var t=eK(e),o=t.length;o--;){var n,r=t[o],i=e[r];t[o]=[r,i,(n=i)==n&&!ez(n)]}return t}(c=l)).length&&s[0][2]?eN(s[0][0],s[0][1]):function(e){return e===c||function(e,t){var o=t.length,n=o;if(null==e)return!n;for(e=Object(e);o--;){var r=t[o];if((0,r[2])?r[1]!==e[r[0]]:!(r[0]in e))return!1}for(;++o<n;){var i=(r=t[o])[0],a=e[i],c=r[1];if(0,r[2]){if(void 0===a&&!(i in e))return!1}else{var s,l=new e_;if(!(void 0===s?eD(c,a,void 0,3,l):s))return!1}}return!0}(e,s)}:function(e){var t;return eR(e)?(t=eP(e),function(e){return null==e?void 0:e[t]}):function(t){return ek(t,e)}}(l),null==o)if(n||ez(e)){var r,i,a,c,s,l,d,f=e.constructor;o=n?e$(e)?new f:[]:eq(f)&&ez(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&&eA(e,t,eK)})(e,function(e,n,r){return t(o,e,n,r)}),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 r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(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(i(e,t))return!1;return!0}function c(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var o,n=[],r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function f(e,t){for(var o in t)i(t,o)&&(e[o]=t[o]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,o,n){return ti(e,t,o,n,!0).utc()}function m(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 b(e){var t=null,o=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=m(e),o=G.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 h(e){var t=u(0/0);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}G=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 y(e,t){var o,n,r,i=g.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),i>0)for(o=0;o<i;o++)c(r=t[n=g[o]])||(e[n]=r);return e}function E(e){y(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 _(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function w(e){!1===t.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function A(e,o){var n=!0;return f(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var r,a,c,s=[],l=arguments.length;for(a=0;a<l;a++){if(r="","object"==typeof arguments[a]){for(c in r+="\n["+a+"] ",arguments[0])i(arguments[0],c)&&(r+=c+": "+arguments[0][c]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}w(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+Error().stack),n=!1}return o.apply(this,arguments)},o)}var k={};function C(e,o){null!=t.deprecationHandler&&t.deprecationHandler(e,o),k[e]||(w(o),k[e]=!0)}function D(e){return"u">typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var o,n=f({},e);for(o in t)i(t,o)&&(r(e[o])&&r(t[o])?(n[o]={},f(n[o],e[o]),f(n[o],t[o])):null!=t[o]?n[o]=t[o]:delete n[o]);for(o in e)i(e,o)&&!i(t,o)&&r(e[o])&&(n[o]=f({},n[o]));return n}function x(e){null!=e&&this.set(e)}function O(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 T=/(\[[^\[]*\])|(\\)?([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,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},N={};function I(e,t,o,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(N[e]=r),t&&(N[t[0]]=function(){return O(r.apply(this,arguments),t[1],t[2])}),o&&(N[o]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function P(e,t){return e.isValid()?(R[t=L(t,e.localeData())]=R[t]||function(e){var t,o,n,r=e.match(T);for(o=0,n=r.length;o<n;o++)N[r[o]]?r[o]=N[r[o]]:r[o]=(t=r[o]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var o,i="";for(o=0;o<n;o++)i+=D(r[o])?r[o].call(t,e):r[o];return i}}(t),R[t](e)):e.localeData().invalidDate()}function L(e,t){var o=5;function n(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;o>=0&&B.test(e);)e=e.replace(B,n),B.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)i(e,o)&&(t=U(o))&&(n[t]=e[o]);return n}var $,G,q,H={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},z=Object.keys?Object.keys:function(e){var t,o=[];for(t in e)i(e,t)&&o.push(t);return o},W=/\d/,V=/\d\d/,Y=/\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+/,er=/[+-]?\d+/,ei=/Z|[+-]\d\d:?\d\d/gi,ea=/Z|[+-]\d\d(?::?\d\d)?/gi,ec=/[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,es=/^[1-9]\d?/,el=/^([1-9]\d|\d)/;function ed(e,t,o){q[e]=D(t)?t:function(e,n){return e&&o?o:t}}function ef(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function eu(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function em(e){var t=+e,o=0;return 0!==t&&isFinite(t)&&(o=eu(t)),o}q={};var eb={};function eh(e,t){var o,n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,o){o[t]=em(e)}),n=e.length,o=0;o<n;o++)eb[e[o]]=r}function ep(e,t){eh(e,function(e,o,n,r){n._w=n._w||{},t(e,n._w,n,r)})}function eF(e){return e%4==0&&e%100!=0||e%400==0}function eg(e){return eF(e)?366:365}I("Y",0,0,function(){var e=this.year();return e<=9999?O(e,4):"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),ed("Y",er),ed("YY",X,V),ed("YYYY",et,K),ed("YYYYY",eo,J),ed("YYYYYY",eo,J),eh(["YYYYY","YYYYYY"],0),eh("YYYY",function(e,o){o[0]=2===e.length?t.parseTwoDigitYear(e):em(e)}),eh("YY",function(e,o){o[0]=t.parseTwoDigitYear(e)}),eh("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return em(e)+(em(e)>68?1900:2e3)};var ev=ey("FullYear",!0);function ey(e,o){return function(n){return null!=n?(e_(this,e,n),t.updateOffset(this,o),this):eE(this,e)}}function eE(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 e_(e,t,o){var n,r,i,a;if(!(!e.isValid()||isNaN(o))){switch(n=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?n.setUTCMilliseconds(o):n.setMilliseconds(o));case"Seconds":return void(r?n.setUTCSeconds(o):n.setSeconds(o));case"Minutes":return void(r?n.setUTCMinutes(o):n.setMinutes(o));case"Hours":return void(r?n.setUTCHours(o):n.setHours(o));case"Date":return void(r?n.setUTCDate(o):n.setDate(o));case"FullYear":break;default:return}i=e.month(),a=29!==(a=e.date())||1!==i||eF(o)?a:28,r?n.setUTCFullYear(o,i,a):n.setFullYear(o,i,a)}}function ew(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}eq=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},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ed("M",X,es),ed("MM",X,V),ed("MMM",function(e,t){return t.monthsShortRegex(e)}),ed("MMMM",function(e,t){return t.monthsRegex(e)}),eh(["M","MM"],function(e,t){t[1]=em(e)-1}),eh(["MMM","MMMM"],function(e,t,o,n){var r=o._locale.monthsParse(e,n,o._strict);null!=r?t[1]=r:m(o).invalidMonth=e});var eA="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ek=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eC(e,t,o){var n,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();if(o)if("MMM"===t)return -1!==(r=eq.call(this._shortMonthsParse,a))?r:null;else return -1!==(r=eq.call(this._longMonthsParse,a))?r:null;return"MMM"===t?-1!==(r=eq.call(this._shortMonthsParse,a))||-1!==(r=eq.call(this._longMonthsParse,a))?r:null:-1!==(r=eq.call(this._longMonthsParse,a))||-1!==(r=eq.call(this._shortMonthsParse,a))?r:null}function eD(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=em(t);else if(!s(t=e.localeData().monthsParse(t)))return e}var o=t,n=e.date();return n=n<29?n:Math.min(n,ew(e.year(),o)),e._isUTC?e._d.setUTCMonth(o,n):e._d.setMonth(o,n),e}function eS(e){return null!=e?(eD(this,e),t.updateOffset(this,!0),this):eE(this,"Month")}function ex(){function e(e,t){return t.length-e.length}var t,o,n,r,i=[],a=[],c=[];for(t=0;t<12;t++)o=u([2e3,t]),n=ef(this.monthsShort(o,"")),r=ef(this.months(o,"")),i.push(n),a.push(r),c.push(r),c.push(n);i.sort(e),a.sort(e),c.sort(e),this._monthsRegex=RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+i.join("|")+")","i")}function eO(e,t,o,n,r,i,a){var c;return e<100&&e>=0?isFinite((c=new Date(e+400,t,o,n,r,i,a)).getFullYear())&&c.setFullYear(e):c=new Date(e,t,o,n,r,i,a),c}function eT(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 eB(e,t,o){var n=7+t-o;return-((7+eT(e,0,n).getUTCDay()-t)%7)+n-1}function eR(e,t,o,n,r){var i,a,c=1+7*(t-1)+(7+o-n)%7+eB(e,n,r);return c<=0?a=eg(i=e-1)+c:c>eg(e)?(i=e+1,a=c-eg(e)):(i=e,a=c),{year:i,dayOfYear:a}}function eN(e,t,o){var n,r,i=eB(e.year(),t,o),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?n=a+eI(r=e.year()-1,t,o):a>eI(e.year(),t,o)?(n=a-eI(e.year(),t,o),r=e.year()+1):(r=e.year(),n=a),{week:n,year:r}}function eI(e,t,o){var n=eB(e,t,o),r=eB(e+1,t,o);return(eg(e)-n+r)/7}function eP(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),ed("w",X,es),ed("ww",X,V),ed("W",X,es),ed("WW",X,V),ep(["w","ww","W","WW"],function(e,t,o,n){t[n.substr(0,1)]=em(e)}),I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("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 r=o._locale.weekdaysParse(e,n,o._strict);null!=r?t.d=r:m(o).invalidWeekday=e}),ep(["d","e","E"],function(e,t,o,n){t[n]=em(e)});var eL="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eM(e,t,o){var n,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();if(o)if("dddd"===t)return -1!==(r=eq.call(this._weekdaysParse,a))?r:null;else if("ddd"===t)return -1!==(r=eq.call(this._shortWeekdaysParse,a))?r:null;else return -1!==(r=eq.call(this._minWeekdaysParse,a))?r:null;return"dddd"===t?-1!==(r=eq.call(this._weekdaysParse,a))||-1!==(r=eq.call(this._shortWeekdaysParse,a))||-1!==(r=eq.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=eq.call(this._shortWeekdaysParse,a))||-1!==(r=eq.call(this._weekdaysParse,a))||-1!==(r=eq.call(this._minWeekdaysParse,a))?r:null:-1!==(r=eq.call(this._minWeekdaysParse,a))||-1!==(r=eq.call(this._weekdaysParse,a))||-1!==(r=eq.call(this._shortWeekdaysParse,a))?r:null}function eU(){function e(e,t){return t.length-e.length}var t,o,n,r,i,a=[],c=[],s=[],l=[];for(t=0;t<7;t++)o=u([2e3,1]).day(t),n=ef(this.weekdaysMin(o,"")),r=ef(this.weekdaysShort(o,"")),i=ef(this.weekdays(o,"")),a.push(n),c.push(r),s.push(i),l.push(n),l.push(r),l.push(i);a.sort(e),c.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function ej(){return this.hours()%12||12}function e$(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eG(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,ej),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+ej.apply(this)+O(this.minutes(),2)}),I("hmmss",0,0,function(){return""+ej.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+O(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)}),e$("a",!0),e$("A",!1),ed("a",eG),ed("A",eG),ed("H",X,el),ed("h",X,es),ed("k",X,es),ed("HH",X,V),ed("hh",X,V),ed("kk",X,V),ed("hmm",Q),ed("hmmss",Z),ed("Hmm",Q),ed("Hmmss",Z),eh(["H","HH"],3),eh(["k","kk"],function(e,t,o){var n=em(e);t[3]=24===n?0:n}),eh(["a","A"],function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e}),eh(["h","hh"],function(e,t,o){t[3]=em(e),m(o).bigHour=!0}),eh("hmm",function(e,t,o){var n=e.length-2;t[3]=em(e.substr(0,n)),t[4]=em(e.substr(n)),m(o).bigHour=!0}),eh("hmmss",function(e,t,o){var n=e.length-4,r=e.length-2;t[3]=em(e.substr(0,n)),t[4]=em(e.substr(n,2)),t[5]=em(e.substr(r)),m(o).bigHour=!0}),eh("Hmm",function(e,t,o){var n=e.length-2;t[3]=em(e.substr(0,n)),t[4]=em(e.substr(n))}),eh("Hmmss",function(e,t,o){var n=e.length-4,r=e.length-2;t[3]=em(e.substr(0,n)),t[4]=em(e.substr(n,2)),t[5]=em(e.substr(r))});var eq,eH,ez=ey("Hours",!0),eW={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:eA,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},eV={},eY={};function eK(e){return e?e.toLowerCase().replace("_","-"):e}function eJ(t){var n=null;if(void 0===eV[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eH._abbr,o(3118)("./locale/"+t),eX(n)}catch(e){eV[t]=null}return eV[t]}function eX(e,t){var o;return e&&((o=c(t)?eZ(e):eQ(e,t))?eH=o:"u">typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eH._abbr}function eQ(e,t){if(null===t)return delete eV[e],null;var o,n=eW;if(t.abbr=e,null!=eV[e])C("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=eV[e]._config;else if(null!=t.parentLocale)if(null!=eV[t.parentLocale])n=eV[t.parentLocale]._config;else{if(null==(o=eJ(t.parentLocale)))return eY[t.parentLocale]||(eY[t.parentLocale]=[]),eY[t.parentLocale].push({name:e,config:t}),null;n=o._config}return eV[e]=new x(S(n,t)),eY[e]&&eY[e].forEach(function(e){eQ(e.name,e.config)}),eX(e),eV[e]}function eZ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eH;if(!n(e)){if(t=eJ(e))return t;e=[e]}return function(e){for(var t,o,n,r,i=0;i<e.length;){for(t=(r=eK(e[i]).split("-")).length,o=(o=eK(e[i+1]))?o.split("-"):null;t>0;){if(n=eJ(r.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}(r,o)>=t-1)break;t--}i++}return eH}(e)}function e0(e){var t,o=e._a;return o&&-2===m(e).overflow&&(t=o[1]<0||o[1]>11?1:o[2]<1||o[2]>ew(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,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(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,r,i,a,c=e._i,s=e1.exec(c)||e2.exec(c),l=e5.length,d=e4.length;if(s){for(m(e).iso=!0,t=0,o=l;t<o;t++)if(e5[t][1].exec(s[1])){r=e5[t][0],n=!1!==e5[t][2];break}if(null==r){e._isValid=!1;return}if(s[3]){for(t=0,o=d;t<o;t++)if(e4[t][1].exec(s[3])){i=(s[2]||" ")+e4[t][0];break}if(null==i){e._isValid=!1;return}}if(!n&&null!=i){e._isValid=!1;return}if(s[4])if(e3.exec(s[4]))a="Z";else{e._isValid=!1;return}e._f=r+(i||"")+(a||""),tn(e)}else e._isValid=!1}function te(e){var t,o,n,r,i,a,c,s,l,d,f,u=e8.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(i=u[4],a=u[3],c=u[2],s=u[5],l=u[6],d=u[7],f=[(t=parseInt(i,10))<=49?2e3+t:t<=999?1900+t:t,eA.indexOf(a),parseInt(c,10),parseInt(s,10),parseInt(l,10)],d&&f.push(parseInt(d,10)),o=u[1],n=f,r=e,o&&eL.indexOf(o)!==new Date(n[0],n[1],n[2]).getDay()&&(m(r).weekdayMismatch=!0,r._isValid=!1,1))return;e._a=f,e._tzm=function(e,t,o){if(e)return e9[e];if(t)return 0;var n=parseInt(o,10),r=n%100;return(n-r)/100*60+r}(u[8],u[9],u[10]),e._d=eT.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(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,r,i,a,c,s,l,d,f,u,b,h,p,F,g,v=[];if(!e._d){for(u=new Date(t.now()),p=e._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(n=(o=e)._w).GG||null!=n.W||null!=n.E?(c=1,s=4,r=tt(n.GG,o._a[0],eN(ta(),1,4).year),i=tt(n.W,1),((a=tt(n.E,1))<1||a>7)&&(d=!0)):(c=o._locale._week.dow,s=o._locale._week.doy,f=eN(ta(),c,s),r=tt(n.gg,o._a[0],f.year),i=tt(n.w,f.week),null!=n.d?((a=n.d)<0||a>6)&&(d=!0):null!=n.e?(a=n.e+c,(n.e<0||n.e>6)&&(d=!0)):a=c),i<1||i>eI(r,c,s)?m(o)._overflowWeeks=!0:null!=d?m(o)._overflowWeekday=!0:(l=eR(r,i,a,c,s),o._a[0]=l.year,o._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(g=tt(e._a[0],p[0]),(e._dayOfYear>eg(g)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),h=eT(g,0,e._dayOfYear),e._a[1]=h.getUTCMonth(),e._a[2]=h.getUTCDate()),b=0;b<3&&null==e._a[b];++b)e._a[b]=v[b]=p[b];for(;b<7;b++)e._a[b]=v[b]=null==e._a[b]?+(2===b):e._a[b];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?eT:eO).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&&(m(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=[],m(e).empty=!0;var o,n,r,a,c,s,l,d,f,u,b,h=""+e._i,p=h.length,F=0;for(b=(l=L(e._f,e._locale).match(T)||[]).length,c=0;c<b;c++)if(d=l[c],(s=(h.match(!i(q,d)?new RegExp(ef(d.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,o,n,r){return t||o||n||r}))):q[d](e._strict,e._locale))||[])[0])&&((f=h.substr(0,h.indexOf(s))).length>0&&m(e).unusedInput.push(f),h=h.slice(h.indexOf(s)+s.length),F+=s.length),N[d])s?m(e).empty=!1:m(e).unusedTokens.push(d),null!=s&&i(eb,d)&&eb[d](s,e._a,e,d);else e._strict&&!s&&m(e).unusedTokens.push(d);m(e).charsLeftOver=p-F,h.length>0&&m(e).unusedInput.push(h),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=(o=e._locale,n=e._a[3],null==(r=e._meridiem)?n:null!=o.meridiemHour?o.meridiemHour(n,r):(null!=o.isPM&&((a=o.isPM(r))&&n<12&&(n+=12),a||12!==n||(n=0)),n)),null!==(u=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(u,e._a[0])),to(e),e0(e)}function tr(e){var o=e._i,i=e._f;return(e._locale=e._locale||eZ(e._l),null===o||void 0===i&&""===o)?h({nullInput:!0}):("string"==typeof o&&(e._i=o=e._locale.preparse(o)),_(o))?new E(e0(o)):(l(o)?e._d=o:n(i)?!function(e){var t,o,n,r,i,a,c=!1,s=e._f.length;if(0===s){m(e).invalidFormat=!0,e._d=new Date(0/0);return}for(r=0;r<s;r++)i=0,a=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],tn(t),b(t)&&(a=!0),i+=m(t).charsLeftOver,i+=10*m(t).unusedTokens.length,m(t).score=i,c?i<n&&(n=i,o=t):(null==n||i<n||a)&&(n=i,o=t,a&&(c=!0));f(e,o||t)}(e):i?tn(e):function(e){var o=e._i;if(c(o))e._d=new Date(t.now());else if(l(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(r(o)){if(!e._d){var i=j(e._i),a=void 0===i.day?i.date:i.day;e._a=d([i.year,i.month,a,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),to(e)}}else s(o)?e._d=new Date(o):t.createFromInputFallback(e)}(e),b(e)||(e._d=null),e)}function ti(e,t,o,i,c){var s,l={};return(!0===t||!1===t)&&(i=t,t=void 0),(!0===o||!1===o)&&(i=o,o=void 0),(r(e)&&a(e)||n(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=c,l._l=o,l._i=e,l._f=t,l._strict=i,(s=new E(e0(tr(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function ta(e,t,o,n){return ti(e,t,o,n,!1)}t.createFromInputFallback=A("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 tc=A("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:h()}),ts=A("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:h()});function tl(e,t){var o,r;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return ta();for(o=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](o))&&(o=t[r]);return o}var td=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tf(e){var t=j(e),o=t.year||0,n=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,c=t.day||0,s=t.hour||0,l=t.minute||0,d=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,o,n=!1,r=td.length;for(t in e)if(i(e,t)&&!(-1!==eq.call(td,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[td[o]]){if(n)return!1;parseFloat(e[td[o]])!==em(e[td[o]])&&(n=!0)}return!0}(t),this._milliseconds=+f+1e3*d+6e4*l+1e3*s*3600,this._days=+c+7*a,this._months=+r+3*n+12*o,this._data={},this._locale=eZ(),this._bubble()}function tu(e){return e instanceof tf}function tm(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tb(e,t){I(e,0,0,function(){var e=this.utcOffset(),o="+";return e<0&&(e=-e,o="-"),o+O(~~(e/60),2)+t+O(~~e%60,2)})}tb("Z",":"),tb("ZZ",""),ed("Z",ea),ed("ZZ",ea),eh(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=tp(ea,e)});var th=/([\+\-]|\d\d)/gi;function tp(e,t){var o,n,r=(t||"").match(e);return null===r?null:0===(n=+(60*(o=((r[r.length-1]||[])+"").match(th)||["-",0,0])[1])+em(o[2]))?0:"+"===o[0]?n:-n}function tF(e,o){var n,r;return o._isUTC?(n=o.clone(),r=(_(e)||l(e)?e.valueOf():ta(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),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 ty=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tE=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function t_(e,t){var o,n,r,a,c,l,d=e,f=null;return tu(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:s(e)||!isNaN(+e)?(d={},t?d[t]=+e:d.milliseconds=+e):(f=ty.exec(e))?(a="-"===f[1]?-1:1,d={y:0,d:em(f[2])*a,h:em(f[3])*a,m:em(f[4])*a,s:em(f[5])*a,ms:em(tm(1e3*f[6]))*a}):(f=tE.exec(e))?(a="-"===f[1]?-1:1,d={y:tw(f[2],a),M:tw(f[3],a),w:tw(f[4],a),d:tw(f[5],a),h:tw(f[6],a),m:tw(f[7],a),s:tw(f[8],a)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(o=ta(d.from),n=ta(d.to),l=o.isValid()&&n.isValid()?(n=tF(n,o),o.isBefore(n)?r=tA(o,n):((r=tA(n,o)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(d={}).ms=l.milliseconds,d.M=l.months),c=new tf(d),tu(e)&&i(e,"_locale")&&(c._locale=e._locale),tu(e)&&i(e,"_isValid")&&(c._isValid=e._isValid),c}function tw(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function tA(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 r;return null===n||isNaN(+n)||(C(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."),r=o,o=n,n=r),tC(this,t_(o,n),e),this}}function tC(e,o,n,r){var i=o._milliseconds,a=tm(o._days),c=tm(o._months);e.isValid()&&(r=null==r||r,c&&eD(e,eE(e,"Month")+c*n),a&&e_(e,"Date",eE(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&t.updateOffset(e,a||c))}t_.fn=tf.prototype,t_.invalid=function(){return t_(0/0)};var tD=tk(1,"add"),tS=tk(-1,"subtract");function tx(e){return"string"==typeof e||e instanceof String}function tO(e,t){if(e.date()<t.date())return-tO(t,e);var o,n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months");return o=t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r),-(n+o)||0}function tT(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 tB=A("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 tR(){return this._locale}function tN(e,t,o){return e<100&&e>=0?new Date(e+400,t,o)-126227808e5:new Date(e,t,o).valueOf()}function tI(e,t,o){return e<100&&e>=0?Date.UTC(e+400,t,o)-126227808e5:Date.UTC(e,t,o)}function tP(e,t){return t.erasAbbrRegex(e)}function tL(){var e,t,o,n,r,i=[],a=[],c=[],s=[],l=this.eras();for(e=0,t=l.length;e<t;++e)o=ef(l[e].name),n=ef(l[e].abbr),r=ef(l[e].narrow),a.push(o),i.push(n),c.push(r),s.push(o),s.push(n),s.push(r);this._erasRegex=RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+c.join("|")+")","i")}function tM(e,t){I(0,[e,e.length],0,t)}function tU(e,t,o,n,r){var i;return null==e?eN(this,n,r).year:(t>(i=eI(e,n,r))&&(t=i),tj.call(this,e,t,o,n,r))}function tj(e,t,o,n,r){var i=eR(e,t,o,n,r),a=eT(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),ed("N",tP),ed("NN",tP),ed("NNN",tP),ed("NNNN",function(e,t){return t.erasNameRegex(e)}),ed("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eh(["N","NN","NNN","NNNN","NNNNN"],function(e,t,o,n){var r=o._locale.erasParse(e,n,o._strict);r?m(o).era=r:m(o).invalidEra=e}),ed("y",en),ed("yy",en),ed("yyy",en),ed("yyyy",en),ed("yo",function(e,t){return t._eraYearOrdinalRegex||en}),eh(["y","yy","yyy","yyyy"],0),eh(["yo"],function(e,t,o,n){var r;o._locale._eraYearOrdinalRegex&&(r=e.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?t[0]=o._locale.eraYearOrdinalParse(e,r):t[0]=parseInt(e,10)}),I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tM("gggg","weekYear"),tM("ggggg","weekYear"),tM("GGGG","isoWeekYear"),tM("GGGGG","isoWeekYear"),ed("G",er),ed("g",er),ed("GG",X,V),ed("gg",X,V),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)]=em(e)}),ep(["gg","GG"],function(e,o,n,r){o[r]=t.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),ed("Q",W),eh("Q",function(e,t){t[1]=(em(e)-1)*3}),I("D",["DD",2],"Do","date"),ed("D",X,es),ed("DD",X,V),ed("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eh(["D","DD"],2),eh("Do",function(e,t){t[2]=em(e.match(X)[0])});var t$=ey("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),ed("DDD",ee),ed("DDDD",Y),eh(["DDD","DDDD"],function(e,t,o){o._dayOfYear=em(e)}),I("m",["mm",2],0,"minute"),ed("m",X,el),ed("mm",X,V),eh(["m","mm"],4);var tG=ey("Minutes",!1);I("s",["ss",2],0,"second"),ed("s",X,el),ed("ss",X,V),eh(["s","ss"],5);var tq=ey("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ed("S",ee,W),ed("SS",ee,V),ed("SSS",ee,Y),p="SSSS";p.length<=9;p+="S")ed(p,en);function tH(e,t){t[6]=em(("0."+e)*1e3)}for(p="S";p.length<=9;p+="S")eh(p,tH);F=ey("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var tz=E.prototype;function tW(e){return e}tz.add=tD,tz.calendar=function(e,o){if(1==arguments.length)if(arguments[0]){var c,d,f,u;if(c=arguments[0],_(c)||l(c)||tx(c)||s(c)||(f=n(d=c),u=!1,f&&(u=0===d.filter(function(e){return!s(e)&&tx(d)}).length),f&&u)||function(e){var t,o,n=r(e)&&!a(e),c=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(t=0;t<l;t+=1)o=s[t],c=c||i(e,o);return n&&c}(c)||null==c)e=arguments[0],o=void 0;else(function(e){var t,o,n=r(e)&&!a(e),c=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)o=s[t],c=c||i(e,o);return n&&c})(arguments[0])&&(o=arguments[0],e=void 0)}else e=void 0,o=void 0;var m=e||ta(),b=tF(m,this).startOf("day"),h=t.calendarFormat(this,b)||"sameElse",p=o&&(D(o[h])?o[h].call(this,m):o[h]);return this.format(p||this.localeData().calendar(h,this,ta(m)))},tz.clone=function(){return new E(this)},tz.diff=function(e,t,o){var n,r,i;if(!this.isValid()||!(n=tF(e,this)).isValid())return 0/0;switch(r=(n.utcOffset()-this.utcOffset())*6e4,t=U(t)){case"year":i=tO(this,n)/12;break;case"month":i=tO(this,n);break;case"quarter":i=tO(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return o?i:eu(i)},tz.endOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tI:tN,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},tz.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var o=P(this,e);return this.localeData().postformat(o)},tz.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||ta(e).isValid())?t_({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tz.fromNow=function(e){return this.from(ta(),e)},tz.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||ta(e).isValid())?t_({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tz.toNow=function(e){return this.to(ta(),e)},tz.get=function(e){return D(this[e=U(e)])?this[e]():this},tz.invalidAt=function(){return m(this).overflow},tz.isAfter=function(e,t){var o=_(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())},tz.isBefore=function(e,t){var o=_(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())},tz.isBetween=function(e,t,o,n){var r=_(e)?e:ta(e),i=_(t)?t:ta(t);return!!(this.isValid()&&r.isValid()&&i.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,o):!this.isBefore(r,o))&&(")"===n[1]?this.isBefore(i,o):!this.isAfter(i,o))},tz.isSame=function(e,t){var o,n=_(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()))},tz.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tz.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tz.isValid=function(){return b(this)},tz.lang=tB,tz.locale=tT,tz.localeData=tR,tz.max=ts,tz.min=tc,tz.parsingFlags=function(){return f({},m(this))},tz.set=function(e,t){if("object"==typeof e){var o,n=function(e){var t,o=[];for(t in e)i(e,t)&&o.push({unit:t,priority:H[t]});return o.sort(function(e,t){return e.priority-t.priority}),o}(e=j(e)),r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(D(this[e=U(e)]))return this[e](t);return this},tz.startOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tI:tN,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},tz.subtract=tS,tz.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tz.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tz.toDate=function(){return new Date(this.valueOf())},tz.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 P(o,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(D(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(o,"Z"));return P(o,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tz.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,o,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",o=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+o)},"u">typeof Symbol&&null!=Symbol.for&&(tz[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tz.toJSON=function(){return this.isValid()?this.toISOString():null},tz.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tz.unix=function(){return Math.floor(this.valueOf()/1e3)},tz.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tz.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tz.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""},tz.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""},tz.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""},tz.eraYear=function(){var e,o,n,r,i=this.localeData().eras();for(e=0,o=i.length;e<o;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-t(i[e].since).year())*n+i[e].offset;return this.year()},tz.year=ev,tz.isLeapYear=function(){return eF(this.year())},tz.weekYear=function(e){return tU.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tz.isoWeekYear=function(e){return tU.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tz.quarter=tz.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tz.month=eS,tz.daysInMonth=function(){return ew(this.year(),this.month())},tz.week=tz.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tz.isoWeek=tz.isoWeeks=function(e){var t=eN(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tz.weeksInYear=function(){var e=this.localeData()._week;return eI(this.year(),e.dow,e.doy)},tz.weeksInWeekYear=function(){var e=this.localeData()._week;return eI(this.weekYear(),e.dow,e.doy)},tz.isoWeeksInYear=function(){return eI(this.year(),1,4)},tz.isoWeeksInISOWeekYear=function(){return eI(this.isoWeekYear(),1,4)},tz.date=t$,tz.day=tz.days=function(e){if(!this.isValid())return null!=e?this:0/0;var t,o,n=eE(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"))},tz.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")},tz.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)},tz.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")},tz.hour=tz.hours=ez,tz.minute=tz.minutes=tG,tz.second=tz.seconds=tq,tz.millisecond=tz.milliseconds=F,tz.utcOffset=function(e,o,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:0/0;if(null==e)return this._isUTC?i: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&&(r=tg(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!o||this._changeInProgress?tC(this,t_(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tz.utc=function(e){return this.utcOffset(0,e)},tz.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tg(this),"m")),this},tz.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tp(ei,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tz.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ta(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tz.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tz.isLocal=function(){return!!this.isValid()&&!this._isUTC},tz.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tz.isUtc=tv,tz.isUTC=tv,tz.zoneAbbr=function(){return this._isUTC?"UTC":""},tz.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tz.dates=A("dates accessor is deprecated. Use date instead.",t$),tz.months=A("months accessor is deprecated. Use month instead",eS),tz.years=A("years accessor is deprecated. Use year instead",ev),tz.zone=A("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()}),tz.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=tr(t))._a?(e=t._isUTC?u(t._a):ta(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var o,n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(o=0;o<n;o++)em(e[o])!==em(t[o])&&i++;return i+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tV=x.prototype;function tY(e,t,o,n){var r=eZ(),i=u().set(n,t);return r[o](i,e)}function tK(e,t,o){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return tY(e,t,o,"month");var n,r=[];for(n=0;n<12;n++)r[n]=tY(e,n,o,"month");return r}function tJ(e,t,o,n){"boolean"==typeof e||(o=t=e,e=!1),s(t)&&(o=t,t=void 0),t=t||"";var r,i=eZ(),a=e?i._week.dow:0,c=[];if(null!=o)return tY(t,(o+a)%7,n,"day");for(r=0;r<7;r++)c[r]=tY(t,(r+a)%7,n,"day");return c}tV.calendar=function(e,t,o){var n=this._calendar[e]||this._calendar.sameElse;return D(n)?n.call(t,o):n},tV.longDateFormat=function(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.match(T).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tV.invalidDate=function(){return this._invalidDate},tV.ordinal=function(e){return this._ordinal.replace("%d",e)},tV.preparse=tW,tV.postformat=tW,tV.relativeTime=function(e,t,o,n){var r=this._relativeTime[o];return D(r)?r(e,t,o,n):r.replace(/%d/i,e)},tV.pastFuture=function(e,t){var o=this._relativeTime[e>0?"future":"past"];return D(o)?o(t):o.replace(/%s/i,t)},tV.set=function(e){var t,o;for(o in e)i(e,o)&&(D(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)},tV.eras=function(e,o){var n,r,i,a=this._eras||eZ("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(i=t(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=t(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}return a},tV.erasParse=function(e,t,o){var n,r,i,a,c,s=this.eras();for(e=e.toUpperCase(),n=0,r=s.length;n<r;++n)if(i=s[n].name.toUpperCase(),a=s[n].abbr.toUpperCase(),c=s[n].narrow.toUpperCase(),o)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[n];break;case"NNNN":if(i===e)return s[n];break;case"NNNNN":if(c===e)return s[n]}else if([i,a,c].indexOf(e)>=0)return s[n]},tV.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},tV.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tL.call(this),e?this._erasAbbrRegex:this._erasRegex},tV.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tL.call(this),e?this._erasNameRegex:this._erasRegex},tV.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tL.call(this),e?this._erasNarrowRegex:this._erasRegex},tV.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},tV.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},tV.monthsParse=function(e,t,o){var n,r,i;if(this._monthsParseExact)return eC.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=u([2e3,n]),o&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),o||this._monthsParse[n]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=RegExp(i.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}},tV.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ex.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=ec),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tV.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ex.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=ec),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tV.week=function(e){return eN(e,this._week.dow,this._week.doy).week},tV.firstDayOfYear=function(){return this._week.doy},tV.firstDayOfWeek=function(){return this._week.dow},tV.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?eP(o,this._week.dow):e?o[e.day()]:o},tV.weekdaysMin=function(e){return!0===e?eP(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tV.weekdaysShort=function(e){return!0===e?eP(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tV.weekdaysParse=function(e,t,o){var n,r,i;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(r=u([2e3,1]).day(n),o&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=RegExp(i.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}},tV.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ec),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tV.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ec),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tV.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ec),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tV.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tV.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===em(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+o}}),t.lang=A("moment.lang is deprecated. Use moment.locale instead.",eX),t.langData=A("moment.langData is deprecated. Use moment.localeData instead.",eZ);var tX=Math.abs;function tQ(e,t,o,n){var r=t_(t,o);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._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"),or=oo("seconds"),oi=oo("minutes"),oa=oo("hours"),oc=oo("days"),os=oo("months"),ol=oo("years"),od=Math.round,of={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ou(e,t,o,n,r){return r.relativeTime(t||1,!!o,e,n)}var om=Math.abs;function ob(e){return(e>0)-(e<0)||+e}function oh(){if(!this.isValid())return this.localeData().invalidDate();var e,t,o,n,r,i,a,c,s=om(this._milliseconds)/1e3,l=om(this._days),d=om(this._months),f=this.asSeconds();return f?(e=eu(s/60),t=eu(e/60),s%=60,e%=60,o=eu(d/12),d%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=f<0?"-":"",i=ob(this._months)!==ob(f)?"-":"",a=ob(this._days)!==ob(f)?"-":"",c=ob(this._milliseconds)!==ob(f)?"-":"",r+"P"+(o?i+o+"Y":"")+(d?i+d+"M":"")+(l?a+l+"D":"")+(t||e||s?"T":"")+(t?c+t+"H":"")+(e?c+e+"M":"")+(s?c+n+"S":"")):"P0D"}var op=tf.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,r,i=this._milliseconds,a=this._days,c=this._months,s=this._data;return i>=0&&a>=0&&c>=0||i<=0&&a<=0&&c<=0||(i+=864e5*tZ(t1(c)+a),a=0,c=0),s.milliseconds=i%1e3,s.seconds=(e=eu(i/1e3))%60,s.minutes=(t=eu(e/60))%60,s.hours=(o=eu(t/60))%24,a+=eu(o/24),c+=r=eu(t0(a)),a-=tZ(t1(r)),n=eu(c/12),c%=12,s.days=a,s.months=c,s.years=n,this},op.clone=function(){return t_(this)},op.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():0/0},op.milliseconds=on,op.seconds=or,op.minutes=oi,op.hours=oa,op.days=oc,op.weeks=function(){return eu(this.days()/7)},op.months=os,op.years=ol,op.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var o,n,r,i,a,c,s,l,d,f,u,m,b,h=!1,p=of;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(h=e),"object"==typeof t&&(p=Object.assign({},of,t),null!=t.s&&null==t.ss&&(p.ss=t.s-1)),m=this.localeData(),o=!h,n=p,r=t_(this).abs(),i=od(r.as("s")),a=od(r.as("m")),c=od(r.as("h")),s=od(r.as("d")),l=od(r.as("M")),d=od(r.as("w")),f=od(r.as("y")),u=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||c<=1&&["h"]||c<n.h&&["hh",c]||s<=1&&["d"]||s<n.d&&["dd",s],null!=n.w&&(u=u||d<=1&&["w"]||d<n.w&&["ww",d]),(u=u||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=o,u[3]=+this>0,u[4]=m,b=ou.apply(null,u),h&&(b=m.pastFuture(+this,b)),m.postformat(b)},op.toISOString=oh,op.toString=oh,op.toJSON=oh,op.locale=tT,op.localeData=tR,op.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oh),op.lang=tB,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ed("x",er),ed("X",/[+-]?\d+(\.\d{1,3})?/),eh("X",function(e,t,o){o._d=new Date(1e3*parseFloat(e))}),eh("x",function(e,t,o){o._d=new Date(em(e))}),t.version="2.30.1",$=ta,t.fn=tz,t.min=function(){var e=[].slice.call(arguments,0);return tl("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tl("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=u,t.unix=function(e){return ta(1e3*e)},t.months=function(e,t){return tK(e,t,"months")},t.isDate=l,t.locale=eX,t.invalid=h,t.duration=t_,t.isMoment=_,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=tu,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,r=eW;null!=eV[e]&&null!=eV[e].parentLocale?eV[e].set(S(eV[e]._config,t)):(null!=(n=eJ(e))&&(r=n._config),t=S(r,t),null==n&&(t.abbr=e),(o=new x(t)).parentLocale=eV[e],eV[e]=o),eX(e)}else null!=eV[e]&&(null!=eV[e].parentLocale?(eV[e]=eV[e].parentLocale,e===eX()&&eX(e)):null!=eV[e]&&delete eV[e]);return eV[e]},t.locales=function(){return z(eV)},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!==of[e]&&(void 0===t?of[e]:(of[e]=t,"s"===e&&(of.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=tz,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,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&r&&"function"==typeof r.get?r.get:null,a=n&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=c&&s&&"function"==typeof s.get?s.get:null,d=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,u="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,h=Object.prototype.toString,p=Function.prototype.toString,F=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,E=String.prototype.toLowerCase,_=RegExp.prototype.test,w=Array.prototype.concat,A=Array.prototype.join,k=Array.prototype.slice,C=Math.floor,D="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O?"object":"symbol")?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(1/0===e||-1/0===e||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-C(-e):C(e);if(n!==e){var r=String(n),i=g.call(t,r.length+1);return v.call(r,o,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,o,"$&_")}var I=o(6550),P=I.custom,L=H(P)?P: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!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function G(e){return"[object Array]"===V(e)&&$(e)}function q(e){return"[object RegExp]"===V(e)&&$(e)}function H(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,c){var s,h,y,_,C,S=n||{};if(W(S,"quoteStyle")&&!W(M,S.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(W(S,"maxStringLength")&&("number"==typeof S.maxStringLength?S.maxStringLength<0&&1/0!==S.maxStringLength:null!==S.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var P=!W(S,"customInspect")||S.customInspect;if("boolean"!=typeof P&&"symbol"!==P)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(S,"indent")&&null!==S.indent&&" "!==S.indent&&!(parseInt(S.indent,10)===S.indent&&S.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(S,"numericSeparator")&&"boolean"!=typeof S.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var z=S.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 r=U[o.quoteStyle||"single"];return r.lastIndex=0,j(v.call(v.call(t,r,"\\$1"),/[\x00-\x1f]/g,K),"single",o)}(t,S);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return z?N(t,et):et}if("bigint"==typeof t){var eo=String(t)+"n";return z?N(t,eo):eo}var en=void 0===S.depth?5:S.depth;if(void 0===r&&(r=0),r>=en&&en>0&&"object"==typeof t)return G(t)?"[Array]":"[Object]";var er=function(e,t){var o;if(" "===e.indent)o=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;o=A.call(Array(e.indent+1)," ")}return{base:o,prev:A.call(Array(t+1),o)}}(S,r);if(void 0===c)c=[];else if(Y(c,t)>=0)return"[Circular]";function ei(t,o,n){if(o&&(c=k.call(c)).push(o),n){var i={depth:S.depth};return W(S,"quoteStyle")&&(i.quoteStyle=S.quoteStyle),e(t,i,r+1,c)}return e(t,S,r+1,c)}if("function"==typeof t&&!q(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),ec=ee(t,ei);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(ec.length>0?" { "+A.call(ec,", ")+" }":"")}if(H(t)){var es=O?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||O?es:J(es)}if((el=t)&&"object"==typeof el&&("u">typeof HTMLElement&&el instanceof HTMLElement||"string"==typeof el.nodeName&&"function"==typeof el.getAttribute)){for(var el,ed,ef="<"+E.call(String(t.nodeName)),eu=t.attributes||[],em=0;em<eu.length;em++){ef+=" "+eu[em].name+"="+j((ed=eu[em].value,v.call(String(ed),/"/g,""")),"double",S)}return ef+=">",t.childNodes&&t.childNodes.length&&(ef+="..."),ef+="</"+E.call(String(t.nodeName))+">"}if(G(t)){if(0===t.length)return"[]";var eb=ee(t,ei);return er&&!function(e){for(var t=0;t<e.length;t++)if(Y(e[t],"\n")>=0)return!1;return!0}(eb)?"["+Z(eb,er)+"]":"[ "+A.call(eb,", ")+" ]"}if("[object Error]"===V(s=t)&&$(s)){var eh=ee(t,ei);return"cause"in Error.prototype||!("cause"in t)||B.call(t,"cause")?0===eh.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(eh,", ")+" }":"{ ["+String(t)+"] "+A.call(w.call("[cause]: "+ei(t.cause),eh),", ")+" }"}if("object"==typeof t&&P){if(L&&"function"==typeof t[L]&&I)return I(t,{depth:en-r});else if("symbol"!==P&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.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(ei(o,t,!0)+" => "+ei(e,t))}),Q("Map",i.call(t),ep,er)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.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(ei(e,t))}),Q("Set",l.call(t),eF,er)}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 WeakMap}catch(e){}return!1}(t))return X("WeakMap");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 WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!m||!e||"object"!=typeof e)return!1;try{return m.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===V(h=t)&&$(h))return J(ei(Number(t)));if(function(e){if(!e||"object"!=typeof e||!D)return!1;try{return D.call(e),!0}catch(e){}return!1}(t))return J(ei(D.call(t)));if("[object Boolean]"===V(y=t)&&$(y))return J(b.call(t));if("[object String]"===V(_=t)&&$(_))return J(ei(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]"===V(C=t)&&$(C))&&!q(t)){var eg=ee(t,ei),ev=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,ey=t instanceof Object?"":"null prototype",eE=!ev&&T&&Object(t)===t&&T in t?g.call(V(t),8,-1):ey?"Object":"",e_=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eE||ey?"["+A.call(w.call([],eE||[],ey||[]),": ")+"] ":"");return 0===eg.length?e_+"{}":er?e_+"{"+Z(eg,er)+"}":e_+"{ "+A.call(eg,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return z.call(e,t)}function V(e){return h.call(e)}function Y(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":"")+y.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):A.call(o,", "))+"}"}function Z(e,t){if(0===e.length)return"";var o="\n"+t.prev+t.base;return o+A.call(e,","+o)+"\n"+t.prev}function ee(e,t){var o,n=G(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):""}var a="function"==typeof S?S(e):[];if(O){o={};for(var c=0;c<a.length;c++)o["$"+a[c]]=a[c]}for(var s in e)if(W(e,s)&&(!n||String(Number(s))!==s||!(s<e.length)))if(O&&o["$"+s]instanceof Symbol)continue;else _.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e));if("function"==typeof S)for(var l=0;l<a.length;l++)B.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}},4461(e,t,o){e=o.nmd(e),(function(){"use strict";var n={function:!0,object:!0},r=n[typeof window]&&window||this,i=n[typeof t]&&t,a=n.object&&e&&!e.nodeType&&e,c=i&&a&&"object"==typeof o.g&&o.g;c&&(c.global===c||c.window===c||c.self===c)&&(r=c);var s=/\bOpera/,l=Object.prototype,d=l.hasOwnProperty,f=l.toString;function u(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function m(e){return e=g(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:u(e)}function b(e,t){for(var o in e)d.call(e,o)&&t(e[o],o,e)}function h(e){return null==e?u(e):f.call(e).slice(8,-1)}function p(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function F(e,t){var o=null,n=function(n,r){o=t(o,n,r,e)},r=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=0x1fffffffffffff)for(;++r<i;)n(e[r],r);else b(e,n);return o}function g(e){return String(e).replace(/^ +| +$/g,"")}function v(e){var t,o,n,i,a,c=r,l=e&&"object"==typeof e&&"String"!=h(e);l&&(c=e,e=null);var d=c.navigator||{},u=d.userAgent||"";e||(e=u);var y=l?!!d.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(f.toString()),E="Object",_=l&&c.java?"JavaPackage":h(c.java),w=/\bJava/.test(_)&&c.java,A=w&&h(c.environment)==(l?E:"Environment"),k=w?"a":"α",C=w?"b":"β",D=c.document||{},S=c.operamini||c.opera,x=s.test(x=l&&S?S["[[Class]]"]:h(S))?x:S=null,O=e,T=[],B=null,R=e==u,N=R&&S&&"function"==typeof S.version&&S.version(),I=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)}),P=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,r,i,a=o.pattern||p(o);return!t&&(t=RegExp("\\b"+a+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(n=t,r=o.label||o,i={"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&&r&&/^Win/i.test(n)&&!/^Windows Phone /i.test(n)&&(i=i[/[\d.]+$/.exec(n)])&&(n="Windows "+i),n=String(n),a&&r&&(n=n.replace(RegExp(a,"i"),r)),t=n=m(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=m(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(I&&(I=[I]),/\bAndroid\b/.test(U)&&!L&&(i=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(e))&&(L=g(i[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")),(i=/\bGoogle TV\b/.exec(L))&&(L=i[0]),/\bSimulator\b/i.test(e)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==P&&/\bOPiOS\b/.test(e)&&T.push("running in Turbo/Uncompressed mode"),"IE"==P&&/\blike iPhone OS\b/.test(e)?(M=(i=v(e.replace(/like iPhone OS/,""))).manufacturer,L=i.product):/^iP/.test(L)?(P||(P="Safari"),U="iOS"+((i=/ OS ([\d_]+)/i.exec(e))?" "+i[1].replace(/_/g,"."):"")):"Konqueror"==P&&/^Linux\b/i.test(U)?U="Kubuntu":M&&"Google"!=M&&(/Chrome/.test(P)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(L))||/\bAndroid\b/.test(U)&&/^Chrome/.test(P)&&/\bVersion\//i.test(e)?(P="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==P?(/\bMobi/i.test(e)||(U="Android",T.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&T.unshift("accelerated")):"UC Browser"==P&&/\bUCWEB\b/.test(e)?T.push("speed mode"):"PaleMoon"==P&&(i=/\bFirefox\/([\d.]+)\b/.exec(e))?T.push("identifying as Firefox "+i[1]):"Firefox"==P&&(i=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(U||(U="Firefox OS"),L||(L=i[1])):!P||(i=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(P))?(P&&!L&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(i+"/")+8))&&(P=null),(i=L||M||U)&&(L||M||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(P=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:i)+" Browser")):"Electron"==P&&(i=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&T.push("Chromium "+i),N||(N=$(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",p(P),"(?:Firefox|Minefield|NetFront)"])),(i="iCab"==I&&parseFloat(N)>3&&"WebKit"||/\bOpera\b/.test(P)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(I)&&"WebKit"||!I&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==I&&/\bPlayStation\b(?! Vita\b)/i.test(P)&&"NetFront")&&(I=[i]),"IE"==P&&(i=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(P+=" Mobile",U="Windows Phone "+(/\+$/.test(i)?i:i+".x"),T.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(P="IE Mobile",U="Windows Phone 8.x",T.unshift("desktop mode"),N||(N=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=P&&"Trident"==I&&(i=/\brv:([\d.]+)/.exec(e))&&(P&&T.push("identifying as "+P+(N?" "+N:"")),P="IE",N=i[1]),R){if(o="global",n=null!=(t=c)?typeof t[o]:"number",/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!t[o])h(i=c.runtime)==(l?E:"ScriptBridgingProxyObject")?(P="Adobe AIR",U=i.flash.system.Capabilities.os):h(i=c.phantom)==(l?E:"RuntimeObject")?(P="PhantomJS",N=(i=i.version||null)&&i.major+"."+i.minor+"."+i.patch):"number"==typeof D.documentMode&&(i=/\bTrident\/(\d+)/i.exec(e))?(N=[N,D.documentMode],(i=+i[1]+4)!=N[1]&&(T.push("IE "+N[1]+" mode"),I&&(I[1]=""),N[1]=i),N="IE"==P?String(N[1].toFixed(1)):N[0]):"number"==typeof D.documentMode&&/^(?:Chrome|Firefox)\b/.test(P)&&(T.push("masking as "+P+" "+N),P="IE",N="11.0",I=["Trident"],U="Windows");else if(w&&(O=(i=w.lang.System).getProperty("os.arch"),U=U||i.getProperty("os.name")+" "+i.getProperty("os.version")),A){try{N=c.require("ringo/engine").version.join("."),P="RingoJS"}catch(e){(i=c.system)&&i.global.system==c.system&&(P="Narwhal",U||(U=i[0].os||null))}P||(P="Rhino")}else"object"==typeof c.process&&!c.process.browser&&(i=c.process)&&("object"==typeof i.versions&&("string"==typeof i.versions.electron?(T.push("Node "+i.versions.node),P="Electron",N=i.versions.electron):"string"==typeof i.versions.nw&&(T.push("Chromium "+N,"Node "+i.versions.node),P="NW.js",N=i.versions.nw)),P||(P="Node.js",O=i.arch,U=i.platform,N=(N=/[\d.]+/.exec(i.version))?N[0]:null));U=U&&m(U)}if(N&&(i=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(N)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(R&&d.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(B=/b/i.test(i)?"beta":"alpha",N=N.replace(RegExp(i+"\\+?$"),"")+("beta"==B?C:k)+(/\d+\+?/.exec(i)||"")),"Fennec"==P||"Firefox"==P&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))P="Firefox Mobile";else if("Maxthon"==P&&N)N=N.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(U=null),"Xbox 360"==L&&/\bIEMobile\b/.test(e)&&T.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(P)||P&&!L&&!/Browser|Mobi/.test(P))&&("Windows CE"==U||/Mobi/i.test(e)))P+=" Mobile";else if("IE"==P&&R)try{null===c.external&&T.unshift("platform preview")}catch(e){T.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(e))&&(i=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||N)?(U=((i=[i,/BB10/.test(e)])[1]?(L=null,M="BlackBerry"):"Device Software")+" "+i[0],N=null):this!=b&&"Wii"!=L&&(R&&S||/Opera/.test(P)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==P&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==P&&(U&&!/^Win/.test(U)&&N>5.5||/\bWindows XP\b/.test(U)&&N>8||8==N&&!/\bTrident\b/.test(e)))&&!s.test(i=v.call(b,e.replace(s,"")+";"))&&i.name&&(i="ing as "+i.name+((i=i.version)?" "+i:""),s.test(P)?(/\bIE\b/.test(i)&&"Mac OS"==U&&(U=null),i="identify"+i):(i="mask"+i,P=x?m(x.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(i)&&(U=null),R||(N=null)),I=["Presto"],T.push(i));(i=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(i=[parseFloat(i.replace(/\.(\d)$/,".0$1")),i],"Safari"==P&&"+"==i[1].slice(-1)?(P="WebKit Nightly",B="alpha",N=i[1].slice(0,-1)):(N==i[1]||N==(i[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1]))&&(N=null),i[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==i[0]&&537.36==i[2]&&parseFloat(i[1])>=28&&"WebKit"==I&&(I=["Blink"]),R&&(y||i[1])?(I&&(I[1]="like Chrome"),i=i[1]||((i=i[0])<530?1:i<532?2:i<532.05?3:i<533?4:i<534.03?5:i<534.07?6:i<534.1?7:i<534.13?8:i<534.16?9:i<534.24?10:i<534.3?11:i<535.01?12:i<535.02?"13+":i<535.07?15:i<535.11?16:i<535.19?17:i<536.05?18:i<536.1?19:i<537.01?20:i<537.11?"21+":i<537.13?23:i<537.18?24:i<537.24?25:i<537.36?26:"Blink"!=I?"27":"28")):(I&&(I[1]="like Safari"),i=(i=i[0])<400?1:i<500?2:i<526?3:i<533?4:i<534?"4+":i<535?5:i<537?6:i<538?7:i<601?8:i<602?9:i<604?10:i<606?11:i<608?12:"12"),I&&(I[1]+=" "+(i+="number"==typeof i?".x":/[.+]/.test(i)?"":"+")),"Safari"==P&&(!N||parseInt(N)>45)?N=i:"Chrome"==P&&/\bHeadlessChrome/i.test(e)&&T.unshift("headless")),"Opera"==P&&(i=/\bzbov|zvav$/.exec(U))?(P+=" ",T.unshift("desktop mode"),"zvav"==i?(P+="Mini",N=null):P+="Mobile",U=U.replace(RegExp(" *"+i+"$"),"")):"Safari"==P&&/\bChrome\b/.exec(I&&I[1])?(T.unshift("desktop mode"),P="Chrome Mobile",N=null,/\bOS X\b/.test(U)?(M="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(P)&&!N&&(N=$("Chrome")),N&&0==N.indexOf(i=/[\d.]+$/.exec(U))&&e.indexOf("/"+i+"-")>-1&&(U=g(U.replace(i,""))),U&&-1!=U.indexOf(P)&&!RegExp(P+" OS").test(U)&&(U=U.replace(RegExp(" *"+p(P)+" *"),"")),I&&!/\b(?:Avant|Nook)\b/.test(P)&&(/Browser|Lunascape|Maxthon/.test(P)||"Safari"!=P&&/^iOS/.test(U)&&/\bSafari\b/.test(I[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(P)&&I[1])&&(i=I[I.length-1])&&T.push(i),T.length&&(T=["("+T.join("; ")+")"]),M&&L&&0>L.indexOf(M)&&T.push("on "+M),L&&T.push((/^on /.test(T[T.length-1])?"":"on ")+L),U&&(a=(i=/ ([\d.+]+)$/.exec(U))&&"/"==U.charAt(U.length-i[0].length-1),U={architecture:32,family:i&&!a?U.replace(i[0],""):U,version:i?i[1]:null,toString:function(){var e=this.version;return this.family+(e&&!a?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(i=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(O))&&!/\bi686\b/i.test(O)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+i),"")),P&&(/\bWOW64\b/i.test(e)||R&&/\w(?:86|32)$/.test(d.cpuClass||d.platform)&&!/\bWin64; x64\b/i.test(e))&&T.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==P&&parseFloat(N)>=39&&(U.architecture=64),e||(e=null);var G={};return G.description=e,G.layout=I&&I[0],G.manufacturer=M,G.name=P,G.prerelease=B,G.product=L,G.ua=e,G.version=P&&N,G.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},G.parse=v,G.toString=function(){return this.description||""},G.version&&T.unshift(N),G.name&&T.unshift(P),U&&P&&!(U==String(U).split(" ")[0]&&(U==P.split(" ")[0]||L))&&T.push(L?"("+U+")":"on "+U),T.length&&(G.description=T.join(" ")),G}var y=v();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(r.platform=y,define(function(){return y})):i&&a?b(y,function(e,t){i[t]=e}):r.platform=y}).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),r=o(4816);e.exports={formats:o(5539),parse:r,stringify:n}},4816(e,t,o){"use strict";var n=o(1954),r=Object.prototype.hasOwnProperty,i=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},c=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},s=function(e,t){var o={__proto__:null},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;s=s.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=1/0===t.parameterLimit?void 0:t.parameterLimit,d=s.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==l?l+1:l);if(t.throwOnLimitExceeded&&void 0!==l&&d.length>l)throw RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var f=-1,u=t.charset;if(t.charsetSentinel)for(m=0;m<d.length;++m)0===d[m].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[m]?u="utf-8":"utf8=%26%2310003%3B"===d[m]&&(u="iso-8859-1"),f=m,m=d.length);for(m=0;m<d.length;++m)if(m!==f){var m,b,h,p=d[m],F=p.indexOf("]="),g=-1===F?p.indexOf("="):F+1;if(-1===g?(b=t.decoder(p,a.decoder,u,"key"),h=t.strictNullHandling?null:""):null!==(b=t.decoder(p.slice(0,g),a.decoder,u,"key"))&&(h=n.maybeMap(c(p.slice(g+1),t,i(o[b])?o[b].length:0),function(e){return t.decoder(e,a.decoder,u,"value")})),h&&t.interpretNumericEntities&&"iso-8859-1"===u&&(h=String(h).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),p.indexOf("[]=")>-1&&(h=i(h)?[h]:h),t.comma&&i(h)&&h.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");h=n.combine([],h,t.arrayLimit,t.plainObjects)}if(null!==b){var v=r.call(o,b);v&&("combine"===t.duplicates||p.indexOf("[]=")>-1)?o[b]=n.combine(o[b],h,t.arrayLimit,t.plainObjects):v&&"last"!==t.duplicates||(o[b]=h)}}return o},l=function(e,t,o,r){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=r?t:c(t,o,i),l=e.length-1;l>=0;--l){var d,f=e[l];if("[]"===f&&o.parseArrays)d=n.isOverflow(s)?s:o.allowEmptyArrays&&(""===s||o.strictNullHandling&&null===s)?[]:n.combine([],s,o.arrayLimit,o.plainObjects);else{d=o.plainObjects?{__proto__:null}:{};var u="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,m=o.decodeDotInKeys?u.replace(/%2E/g,"."):u,b=parseInt(m,10),h=!isNaN(b)&&f!==m&&String(b)===m&&b>=0&&o.parseArrays;if(o.parseArrays||""!==m)if(h&&b<o.arrayLimit)(d=[])[b]=s;else if(h&&o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");else h?(d[b]=s,n.markOverflow(d,b)):"__proto__"!==m&&(d[m]=s);else d={0:s}}s=d}return s},d=function(e,t){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;return[o]}var n=[],i=o.indexOf("["),a=i>=0?o.slice(0,i):o;if(a){if(!t.plainObjects&&r.call(Object.prototype,a)&&!t.allowPrototypes)return;n[n.length]=a}for(var c=o.length,s=i,l=0;s>=0&&l<t.depth;){for(var d=1,f=s+1,u=-1;f<c&&u<0;){var m=o.charCodeAt(f);91===m?d+=1:93===m&&0==(d-=1)&&(u=f),f+=1}if(u<0)return n[n.length]="["+o.slice(s)+"]",n;var b=o.slice(s,u+1),h=b.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,h)&&!t.allowPrototypes)return;n[n.length]=b,l+=1,s=o.indexOf("[",u+1)}if(s>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+o.slice(s)+"]"}return n},f=function(e,t,o,n){if(e){var r=d(e,o);if(r)return l(r,t,o,n)}},u=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=u(t);if(""===e||null==e)return o.plainObjects?{__proto__:null}:{};for(var r="string"==typeof e?s(e,o):e,i=o.plainObjects?{__proto__:null}:{},a=Object.keys(r),c=0;c<a.length;++c){var l=a[c],d=f(l,r[l],o,"string"==typeof e);i=n.merge(i,d,o)}return!0===o.allowSparse?i:n.compact(i)}},6334(e,t,o){"use strict";var n=o(6278),r=o(1954),i=o(5539),a=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,d=function(e,t){l.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,u=i.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:u,formatter:i.formatters[u],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},b={},h=function e(t,o,i,a,c,l,f,u,h,p,F,g,v,y,E,_,w,A){for(var k,C,D=t,S=A,x=0,O=!1;void 0!==(S=S.get(b))&&!O;){var T=S.get(t);if(x+=1,void 0!==T)if(T===x)throw RangeError("Cyclic object value");else O=!0;void 0===S.get(b)&&(x=0)}if("function"==typeof p?D=p(o,D):D instanceof Date?D=v(D):"comma"===i&&s(D)&&(D=r.maybeMap(D,function(e){return e instanceof Date?v(e):e})),null===D){if(l)return E(h&&!_?h(o,m.encoder,w,"key",y):o);D=""}if("string"==typeof(k=D)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||r.isBuffer(D))return h?[E(_?o:h(o,m.encoder,w,"key",y))+"="+E(h(D,m.encoder,w,"value",y))]:[E(o)+"="+E(String(D))];var B=[];if(void 0===D)return B;if("comma"===i&&s(D))_&&h&&(D=r.maybeMap(D,function(e){return null==e?e:h(e)})),C=[{value:D.length>0?D.join(",")||null:void 0}];else if(s(p))C=p;else{var R=Object.keys(D);C=F?R.sort(F):R}var N=u?String(o).replace(/\./g,"%2E"):String(o),I=a&&s(D)&&1===D.length?N+"[]":N;if(c&&s(D)&&0===D.length)return I+"[]";for(var P=0;P<C.length;++P){var L=C[P],M="object"==typeof L&&L&&void 0!==L.value?L.value:D[L];if(!f||null!==M){var U=g&&u?String(L).replace(/\./g,"%2E"):String(L),j=s(D)?"function"==typeof i?i(I,U):I:I+(g?"."+U:"["+U+"]");A.set(t,x);var $=n();$.set(b,A),d(B,e(M,j,i,a,c,l,f,u,"comma"===i&&_&&s(D)?null:h,p,F,g,v,y,E,_,w,$))}}return B},p=function(e){if(!e)return m;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||m.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=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],l=m.filter;if(("function"==typeof e.filter||s(e.filter))&&(l=e.filter),t=e.arrayFormat in c?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":m.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||m.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:t,charset:o,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:m.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:m.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:l,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}};e.exports=function(e,t){var o,r=e,i=p(t);"function"==typeof i.filter?r=(0,i.filter)("",r):s(i.filter)&&(o=i.filter);var a=[];if("object"!=typeof r||null===r)return"";var l=c[i.arrayFormat],f="comma"===l&&i.commaRoundTrip;o||(o=Object.keys(r)),i.sort&&o.sort(i.sort);for(var u=n(),m=0;m<o.length;++m){var b=o[m];if(null!=b){var F=r[b];i.skipNulls&&null===F||d(a,h(F,b,l,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,u))}}var g=a.join(i.delimiter),v=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?v+="utf8=%26%2310003%3B"+i.delimiter:v+="utf8=%E2%9C%93"+i.delimiter),g.length>0?v+g:""}},1954(e,t,o){"use strict";var n=o(5539),r=o(6278),i=Object.prototype.hasOwnProperty,a=Array.isArray,c=r(),s=function(e,t){return c.set(e,t),e},l=function(e){return c.has(e)},d=function(e){return c.get(e)},f=function(e,t){c.set(e,t)},u=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(a(o)){for(var n=[],r=0;r<o.length;++r)void 0!==o[r]&&(n[n.length]=o[r]);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};e.exports={arrayToObject:b,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(l(e)){var r=d(e)+1;return e[r]=t,f(e,r),e}var i=[].concat(e,t);return i.length>o?s(b(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],o=[],n=0;n<t.length;++n)for(var r=t[n],i=r.obj[r.prop],a=Object.keys(i),c=0;c<a.length;++c){var s=a[c],l=i[s];"object"==typeof l&&null!==l&&-1===o.indexOf(l)&&(t[t.length]={obj:i,prop:s},o[o.length]=l)}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,r,i){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 c="",s=0;s<a.length;s+=1024){for(var l=a.length>=1024?a.slice(s,s+1024):a,d=[],f=0;f<l.length;++f){var m=l.charCodeAt(f);if(45===m||46===m||95===m||126===m||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===n.RFC1738&&(40===m||41===m)){d[d.length]=l.charAt(f);continue}if(m<128){d[d.length]=u[m];continue}if(m<2048){d[d.length]=u[192|m>>6]+u[128|63&m];continue}if(m<55296||m>=57344){d[d.length]=u[224|m>>12]+u[128|m>>6&63]+u[128|63&m];continue}f+=1,m=65536+((1023&m)<<10|1023&l.charCodeAt(f)),d[d.length]=u[240|m>>18]+u[128|m>>12&63]+u[128|m>>6&63]+u[128|63&m]}c+=d.join("")}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:s,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 r=t.length;if(n&&"number"==typeof n.arrayLimit&&r>n.arrayLimit)return s(b(t.concat(o),n),r);t[r]=o}else if(!t||"object"!=typeof t)return[t,o];else if(l(t)){var c=d(t)+1;t[c]=o,f(t,c)}else{if(n&&n.strictMerge)return[t,o];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,o))&&(t[o]=!0)}return t}if(!t||"object"!=typeof t){if(l(o)){for(var u=Object.keys(o),m=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},h=0;h<u.length;h++)m[parseInt(u[h],10)+1]=o[u[h]];return s(m,d(o)+1)}var p=[t].concat(o);return n&&"number"==typeof n.arrayLimit&&p.length>n.arrayLimit?s(b(p,n),p.length-1):p}var F=t;return(a(t)&&!a(o)&&(F=b(t,n)),a(t)&&a(o))?(o.forEach(function(o,r){if(i.call(t,r)){var a=t[r];a&&"object"==typeof a&&o&&"object"==typeof o?t[r]=e(a,o,n):t[t.length]=o}else t[r]=o}),t):Object.keys(o).reduce(function(t,r){var a=o[r];if(i.call(t,r)?t[r]=e(t[r],a,n):t[r]=a,l(o)&&!l(t)&&s(t,d(o)),l(t)){var c=parseInt(r,10);String(c)===r&&c>=0&&c>d(t)&&f(t,c)}return t},F)}}},6521(e,t,o){"use strict";var n=o(3109),r=o(6757),i=function(e,t,o){for(var n,r=e;null!=(n=r.next);r=n)if(n.key===t)return r.next=n.next,o||(n.next=e.next,e.next=n),n},a=function(e,t){if(e){var o=i(e,t);return o&&o.value}},c=function(e,t,o){var n=i(e,t);n?n.value=o:e.next={key:t,next:e.next,value:o}},s=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+n(e))},delete:function(t){var o=e&&e.next,n=s(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)&&!!i(o,t)},set:function(t,o){e||(e={next:void 0}),c(e,t,o)}};return t}},3977(e,t,o){"use strict";var n=o(4295),r=o(8682),i=o(3109),a=o(6757),c=n("%Map%",!0),s=r("Map.prototype.get",!0),l=r("Map.prototype.set",!0),d=r("Map.prototype.has",!0),f=r("Map.prototype.delete",!0),u=r("Map.prototype.size",!0);e.exports=!!c&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var o=f(e,t);return 0===u(e)&&(e=void 0),o}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,o){e||(e=new c),l(e,t,o)}};return t}},8965(e,t,o){"use strict";var n=o(4295),r=o(8682),i=o(3109),a=o(3977),c=o(6757),s=n("%WeakMap%",!0),l=r("WeakMap.prototype.get",!0),d=r("WeakMap.prototype.set",!0),f=r("WeakMap.prototype.has",!0),u=r("WeakMap.prototype.delete",!0);e.exports=s?function(){var e,t,o={assert:function(e){if(!o.has(e))throw new c("Side channel does not contain "+i(e))},delete:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return u(e,o)}else if(a&&t)return t.delete(o);return!1},get:function(o){return s&&o&&("object"==typeof o||"function"==typeof o)&&e?l(e,o):t&&t.get(o)},has:function(o){return s&&o&&("object"==typeof o||"function"==typeof o)&&e?f(e,o):!!t&&t.has(o)},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new s),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),r=o(3109),i=o(6521),a=o(3977),c=o(8965)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+r(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=c()),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}(),r=n&&"a=1"===new n({a:1}).toString(),i=n&&"+"===new n("s=%2B").get("s"),a=n&&"size"in n.prototype,c="__URLSearchParams__",s=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),l=m.prototype,d=!!(e.Symbol&&e.Symbol.iterator);if(!n||!r||!i||!s||!a){l.append=function(e,t){g(this[c],e,t)},l.delete=function(e){delete this[c][e]},l.get=function(e){var t=this[c];return this.has(e)?t[e][0]:null},l.getAll=function(e){var t=this[c];return this.has(e)?t[e].slice(0):[]},l.has=function(e){return y(this[c],e)},l.set=function(e,t){this[c][e]=[""+t]},l.toString=function(){var e,t,o,n,r=this[c],i=[];for(t in r)for(o=b(t),e=0,n=r[t];e<n.length;e++)i.push(o+"="+b(n[e]));return i.join("&")};var f=e.Proxy&&n&&(!i||!s||!r||!a);f?(o=new Proxy(n,{construct:function(e,t){return new e(new m(t[0]).toString())}})).toString=Function.prototype.toString.bind(m):o=m,Object.defineProperty(e,"URLSearchParams",{value:o});var u=e.URLSearchParams.prototype;u.polyfill=!0,!f&&e.Symbol&&(u[e.Symbol.toStringTag]="URLSearchParams"),"forEach"in u||(u.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 u||(u.sort=function(){var e,t,o,n=F(this.toString()),r=[];for(e in n)r.push(e);for(r.sort(),t=0;t<r.length;t++)this.delete(r[t]);for(t=0;t<r.length;t++){var i=r[t],a=n[i];for(o=0;o<a.length;o++)this.append(i,a[o])}}),"keys"in u||(u.keys=function(){var e=[];return this.forEach(function(t,o){e.push(o)}),p(e)}),"values"in u||(u.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),p(e)}),"entries"in u||(u.entries=function(){var e=[];return this.forEach(function(t,o){e.push([o,t])}),p(e)}),d&&(u[e.Symbol.iterator]=u[e.Symbol.iterator]||u.entries),"size"in u||Object.defineProperty(u,"size",{get:function(){var e=F(this.toString());if(u===this)throw TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(e).reduce(function(t,o){return t+e[o].length},0)}})}function m(e){((e=e||"")instanceof URLSearchParams||e instanceof m)&&(e=e.toString()),this[c]=F(e)}function b(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function h(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 r in e)e.hasOwnProperty(r)&&g(t,r,e[r]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),a=0;a<i.length;a++){var c=i[a],s=c.indexOf("=");-1<s?g(t,h(c.slice(0,s)),h(c.slice(s+1))):c&&g(t,h(c),"")}}return t}function g(e,t,o){var n="string"==typeof o?o:null!=o&&"function"==typeof o.toString?o.toString():JSON.stringify(o);y(e,t)?e[t].push(n):e[t]=[n]}function v(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function y(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 r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.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 r=(t,n)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,[n]:t[r]})};r(t,"get"),r(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,r,i,a,c,s;o.r(n),o.d(n,{OrServices:()=>l6});var l,d,f,u,m,b,h,p,F,g,v,y,E,_,w,A,k,C,D,S,x,O,T,B,R,N,I,P,L,M,U,j,$,G,q,H,z,W,V,Y,K,J,X,Q,Z,ee,et,eo,en,er,ei,ea,ec,es,el,ed,ef,eu,em,eb,eh,ep,eF,eg,ev,ey,eE,e_,ew,eA,ek,eC,eD,eS,ex,eO,eT,eB,eR,eN,eI,eP,eL,eM,eU,ej,e$,eG,eq,eH,ez,eW,eV,eY,eK,eJ,eX,eQ,eZ,e0,e1,e2,e3,e5,e4,e6,e8,e9,e7,te,tt,to,tn,tr,ti,ta,tc,ts,tl,td,tf,tu,tm,tb,th,tp,tF,tg,tv,ty,tE,t_,tw,tA,tk,tC,tD,tS,tx,tO,tT,tB,tR,tN,tI,tP,tL,tM={};o.r(tM),o.d(tM,{hasBrowserEnv:()=>r4,hasStandardBrowserEnv:()=>r8,hasStandardBrowserWebWorkerEnv:()=>r9,navigator:()=>r6,origin:()=>r7});let tU=globalThis,tj=tU.ShadowRoot&&(void 0===tU.ShadyCSS||tU.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,t$=Symbol(),tG=new WeakMap;class tq{constructor(e,t,o){if(this._$cssResult$=!0,o!==t$)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(tj&&void 0===e){let o=void 0!==t&&1===t.length;o&&(e=tG.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&tG.set(t,e))}return e}toString(){return this.cssText}}let tH=e=>new tq("string"==typeof e?e:e+"",void 0,t$),tz=(e,...t)=>new tq(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,t$),tW=(e,t)=>{if(tj)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let o of t){let t=document.createElement("style"),n=tU.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=o.cssText,e.appendChild(t)}},tV=tj?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return tH(t)})(e):e,{is:tY,defineProperty:tK,getOwnPropertyDescriptor:tJ,getOwnPropertyNames:tX,getOwnPropertySymbols:tQ,getPrototypeOf:tZ}=Object,t0=globalThis,t1=t0.trustedTypes,t2=t1?t1.emptyScript:"",t3=t0.reactiveElementPolyfillSupport,t5={toAttribute(e,t){switch(t){case Boolean:e=e?t2: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}},t4=(e,t)=>!tY(e,t),t6={attribute:!0,type:String,converter:t5,reflect:!1,useDefault:!1,hasChanged:t4};Symbol.metadata??=Symbol("metadata"),t0.litPropertyMetadata??=new WeakMap;class t8 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=t6){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&&tK(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:r}=tJ(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){let i=n?.call(this);r?.call(this,t),this.requestUpdate(e,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??t6}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=tZ(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[...tX(e),...tQ(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(tV(o));else void 0!==e&&t.push(tV(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 tW(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 r=(void 0!==o.converter?.toAttribute?o.converter:t5).toAttribute(t,o.type);this._$Em=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),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),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:t5;this._$Em=n;let i=r.fromAttribute(t,e.type);this[n]=i??this._$Ej?.get(n)??i,this._$Em=null}}requestUpdate(e,t,o){if(void 0!==e){let n=this.constructor,r=this[e];if(!(((o??=n.getPropertyOptions(e)).hasChanged??t4)(r,t)||o.useDefault&&o.reflect&&r===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:r},i){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),!0!==r||void 0!==i)||(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){}}t8.elementStyles=[],t8.shadowRootOptions={mode:"open"},t8.elementProperties=new Map,t8.finalized=new Map,t3?.({ReactiveElement:t8}),(t0.reactiveElementVersions??=[]).push("2.1.1");let t9=globalThis,t7=t9.trustedTypes,oe=t7?t7.createPolicy("lit-html",{createHTML:e=>e}):void 0,ot="$lit$",oo=`lit$${Math.random().toFixed(9).slice(2)}$`,on="?"+oo,or=`<${on}>`,oi=document,oa=()=>oi.createComment(""),oc=e=>null===e||"object"!=typeof e&&"function"!=typeof e,os=Array.isArray,ol="[ \n\f\r]",od=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,of=/-->/g,ou=/>/g,om=RegExp(`>|${ol}(?:([^\\s"'>=/]+)(${ol}*=${ol}*(?:[^
|
|
1
|
+
var ORServices;(()=>{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),r=o(24),i=o(1530);e.exports=o(7009)||n.call(i,r)},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),r=o(6757),i=o(1530),a=o(9630);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new r("a function is required");return a(n,i,e)}},7009(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8682(e,t,o){"use strict";var n=o(4295),r=o(7196),i=r([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var o=n(e,!!t);return"function"==typeof o&&i(e,".prototype.")>-1?r([o]):o}},714(e,t,o){"use strict";var n,r=o(7196),i=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&&i&&i(Object.prototype,"__proto__"),c=Object,s=c.getPrototypeOf;e.exports=a&&"function"==typeof a.get?r([a.get]):"function"==typeof s&&function(e){return s(null==e?e:c(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 r=0;r<t.length;r+=1)o[r+e.length]=t[r];return o},r=function(e,t){for(var o=[],n=t||0,r=0;n<e.length;n+=1,r+=1)o[r]=e[n];return o},i=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,c=this;if("function"!=typeof c||"[object Function]"!==t.apply(c))throw TypeError("Function.prototype.bind called on incompatible "+c);for(var s=r(arguments,1),l=o(0,c.length-s.length),d=[],f=0;f<l;f++)d[f]="$"+f;if(a=Function("binder","return function ("+i(d,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=c.apply(this,n(s,arguments));return Object(t)===t?t:this}return c.apply(e,n(s,arguments))}),c.prototype){var u=function(){};u.prototype=c.prototype,a.prototype=new u,u.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,r=o(802),i=o(593),a=o(155),c=o(7180),s=o(9304),l=o(1742),d=o(6757),f=o(4923),u=o(7256),m=o(5414),b=o(7954),h=o(3452),p=o(1358),F=o(5720),g=o(3515),v=o(1233),y=o(9997),E=function(){throw new d},_=v?function(){try{return arguments.callee,E}catch(e){try{return v(arguments,"callee").get}catch(e){return E}}}():E,w=o(8573)(),A=o(7582),k=o(2170),C=o(9090),D=o(24),S=o(1530),x={},O="u">typeof Uint8Array&&A?A(Uint8Array):n,T={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%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%":i,"%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%":x,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&w&&A?A(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":c,"%ReferenceError%":s,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&w&&A?A(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&A?A(""[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":_,"%TypedArray%":O,"%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%":f,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":S,"%Function.prototype.apply%":D,"%Object.defineProperty%":y,"%Object.getPrototypeOf%":k,"%Math.abs%":u,"%Math.floor%":m,"%Math.max%":b,"%Math.min%":h,"%Math.pow%":p,"%Math.round%":F,"%Math.sign%":g,"%Reflect.getPrototypeOf%":C};if(A)try{null.error}catch(e){var B=A(A(e));T["%Error.prototype%"]=B}var R=o(3260),N=o(5175),I=o(7052),P=function e(t){var o;if("%AsyncFunction%"===t)o=R()||void 0;else if("%GeneratorFunction%"===t)o=N()||void 0;else if("%AsyncGeneratorFunction%"===t)o=I()||void 0;else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&A&&(o=A(r.prototype))}return T[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(S,Array.prototype.concat),$=M.call(D,Array.prototype.splice),G=M.call(S,String.prototype.replace),q=M.call(S,String.prototype.slice),H=M.call(S,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(e){var t=q(e,0,1),o=q(e,-1);if("%"===t&&"%"!==o)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return G(e,z,function(e,t,o,r){n[n.length]=o?G(r,W,"$1"):t||e}),n},Y=function(e,t){var o,n=e;if(U(L,n)&&(n="%"+(o=L[n])[0]+"%"),U(T,n)){var r=T[n];if(r===x&&(r=P(n)),void 0===r&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:r}}throw new l("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===H(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=V(e),n=o.length>0?o[0]:"",r=Y("%"+n+"%",t),i=r.name,a=r.value,c=!1,s=r.alias;s&&(n=s[0],$(o,j([0,1],s)));for(var f=1,u=!0;f<o.length;f+=1){var m=o[f],b=q(m,0,1),h=q(m,-1);if(('"'===b||"'"===b||"`"===b||'"'===h||"'"===h||"`"===h)&&b!==h)throw new l("property names with quotes must have matching quotes");if("constructor"!==m&&u||(c=!0),n+="."+m,U(T,i="%"+n+"%"))a=T[i];else if(null!=a){if(!(m in a)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(v&&f+1>=o.length){var p=v(a,m);a=(u=!!p)&&"get"in p&&!("originalValue"in p.get)?p.get:a[m]}else u=U(a,m),a=a[m];u&&!c&&(T[i]=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),r=o(2170),i=o(714);e.exports=n?function(e){return n(e)}:r?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return r(e)}:i?function(e){return i(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,r=o(9535);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&r()}},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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9731(e,t,o){"use strict";var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;e.exports=o(469).call(n,r)},4954(e,t,o){!function(){"use strict";var t="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self,a=!r.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;a?r=o.g:i&&(r=self);var c=!r.JS_SHA256_NO_COMMON_JS&&e.exports,s="function"==typeof define&&define.amd,l=!r.JS_SHA256_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,d="0123456789abcdef".split(""),f=[-0x80000000,8388608,32768,128],u=[24,16,8,0],m=[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],b=["hex","array","digest","arrayBuffer"],h=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),l&&(r.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 E(t,!0).update(o)[e]()}},F=function(e){var t=p("hex",e);a&&(t=g(t,e)),t.create=function(){return new E(e)},t.update=function(e){return t.create().update(e)};for(var o=0;o<b.length;++o){var n=b[o];t[n]=p(n,e)}return t},g=function(e,n){var i,a=o(7791),c=o(5610).Buffer,s=n?"sha224":"sha256";return i=c.from&&!r.JS_SHA256_NO_BUFFER_FROM?c.from:function(e){return new c(e)},function(o){if("string"==typeof o)return a.createHash(s).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===c?a.createHash(s).update(i(o)).digest("hex"):e(o)}},v=function(e,t){return function(o,n){return new _(o,t,!0).update(n)[e]()}},y=function(e){var t=v("hex",e);t.create=function(t){return new _(t,e)},t.update=function(e,o){return t.create(e).update(o)};for(var o=0;o<b.length;++o){var n=b[o];t[n]=v(n,e)}return t};function E(e,t){t?(h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h):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 _(e,o,n){var r,i=typeof e;if("string"===i){var a,c=[],s=e.length,d=0;for(r=0;r<s;++r)(a=e.charCodeAt(r))<128?c[d++]=a:(a<2048?c[d++]=192|a>>>6:(a<55296||a>=57344?c[d++]=224|a>>>12:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++r)),c[d++]=240|a>>>18,c[d++]=128|a>>>12&63),c[d++]=128|a>>>6&63),c[d++]=128|63&a);e=c}else if("object"===i){if(null===e)throw Error(t);else if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!l||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);e.length>64&&(e=new E(o,!0).update(e).array());var f=[],u=[];for(r=0;r<64;++r){var m=e[r]||0;f[r]=92^m,u[r]=54^m}E.call(this,o,n),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=n}E.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(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!l||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);o=!0}for(var r,i,a=0,c=e.length,s=this.blocks;a<c;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,this.block=s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),o)for(i=this.start;a<c&&i<64;++a)s[i>>>2]|=e[a]<<u[3&i++];else for(i=this.start;a<c&&i<64;++a)(r=e.charCodeAt(a))<128?s[i>>>2]|=r<<u[3&i++]:(r<2048?s[i>>>2]|=(192|r>>>6)<<u[3&i++]:(r<55296||r>=57344?s[i>>>2]|=(224|r>>>12)<<u[3&i++]:(r=65536+((1023&r)<<10|1023&e.charCodeAt(++a)),s[i>>>2]|=(240|r>>>18)<<u[3&i++],s[i>>>2]|=(128|r>>>12&63)<<u[3&i++]),s[i>>>2]|=(128|r>>>6&63)<<u[3&i++]),s[i>>>2]|=(128|63&r)<<u[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},E.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=f[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()}},E.prototype.hash=function(){var e,t,o,n,r,i,a,c,s,l,d=this.h0,f=this.h1,u=this.h2,b=this.h3,h=this.h4,p=this.h5,F=this.h6,g=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((r=v[e-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3,o=((r=v[e-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,v[e]=v[e-16]+t+v[e-7]+o|0;for(l=f&u,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,g=(r=v[0]-0x543c9a5b)-0x8f1a6c7|0,b=r+0x170e9b5|0):(a=0x2a01a605,g=(r=v[0]-0xc881298)-0x5ab00ac6|0,b=r+0x8909ae5|0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),o=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7),n=(a=d&f)^d&u^l,r=g+o+(h&p^~h&F)+m[e]+v[e],i=t+n,g=b+r|0,b=r+i|0),t=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),o=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),n=(c=b&d)^b&f^a,r=F+o+(g&h^~g&p)+m[e+1]+v[e+1],i=t+n,F=u+r|0,t=((u=r+i|0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),o=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7),n=(s=u&b)^u&d^c,r=p+o+(F&g^~F&h)+m[e+2]+v[e+2],i=t+n,p=f+r|0,t=((f=r+i|0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),o=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),n=(l=f&u)^f&b^s,r=h+o+(p&F^~p&g)+m[e+3]+v[e+3],i=t+n,h=d+r|0,d=r+i|0,this.chromeBugWorkAround=!0;this.h0=this.h0+d|0,this.h1=this.h1+f|0,this.h2=this.h2+u|0,this.h3=this.h3+b|0,this.h4=this.h4+h|0,this.h5=this.h5+p|0,this.h6=this.h6+F|0,this.h7=this.h7+g|0},E.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,r=this.h4,i=this.h5,a=this.h6,c=this.h7,s=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[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[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[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||(s+=d[c>>>28&15]+d[c>>>24&15]+d[c>>>20&15]+d[c>>>16&15]+d[c>>>12&15]+d[c>>>8&15]+d[c>>>4&15]+d[15&c]),s},E.prototype.toString=E.prototype.hex,E.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,r=this.h4,i=this.h5,a=this.h6,c=this.h7,s=[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,r>>>24&255,r>>>16&255,r>>>8&255,255&r,i>>>24&255,i>>>16&255,i>>>8&255,255&i,a>>>24&255,a>>>16&255,a>>>8&255,255&a];return this.is224||s.push(c>>>24&255,c>>>16&255,c>>>8&255,255&c),s},E.prototype.array=E.prototype.digest,E.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},_.prototype=new E,_.prototype.finalize=function(){if(E.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();E.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),E.prototype.finalize.call(this)}};var w=F();w.sha256=w,w.sha224=F(!0),w.sha256.hmac=y(),w.sha224.hmac=y(!0),c?e.exports=w:(r.sha256=w.sha256,r.sha224=w.sha224,s&&define(function(){return w}))}()},3472(e,t,o){e=o.nmd(e);var n,r="__lodash_hash_undefined__",i="[object Arguments]",a="[object Array]",c="[object Boolean]",s="[object Date]",l="[object Error]",d="[object Function]",f="[object Map]",u="[object Number]",m="[object Object]",b="[object Promise]",h="[object RegExp]",p="[object Set]",F="[object String]",g="[object Symbol]",v="[object WeakMap]",y="[object ArrayBuffer]",E="[object DataView]",_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w=/^\w*$/,A=/^\./,k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,D=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[i]=x[a]=x[y]=x[c]=x[E]=x[s]=x[l]=x[d]=x[f]=x[u]=x[m]=x[h]=x[p]=x[F]=x[v]=!1;var O="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,T="object"==typeof self&&self&&self.Object===Object&&self,B=O||T||Function("return this")(),R=t&&!t.nodeType&&t,N=R&&e&&!e.nodeType&&e,I=N&&N.exports===R&&O.process,P=function(){try{return I&&I.binding("util")}catch(e){}}(),L=P&&P.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 G=Array.prototype,q=Function.prototype,H=Object.prototype,z=B["__core-js_shared__"],W=(n=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",V=q.toString,Y=H.hasOwnProperty,K=H.toString,J=RegExp("^"+V.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=B.Symbol,Q=B.Uint8Array,Z=j(Object.getPrototypeOf,Object),ee=Object.create,et=H.propertyIsEnumerable,eo=G.splice,en=j(Object.keys,Object),er=eO(B,"DataView"),ei=eO(B,"Map"),ea=eO(B,"Promise"),ec=eO(B,"Set"),es=eO(B,"WeakMap"),el=eO(Object,"create"),ed=eL(er),ef=eL(ei),eu=eL(ea),em=eL(ec),eb=eL(es),eh=X?X.prototype:void 0,ep=eh?eh.valueOf:void 0,eF=eh?eh.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 ey(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 eE(e){var t=-1,o=e?e.length:0;for(this.__data__=new ey;++t<o;)this.add(e[t])}function e_(e){this.__data__=new ev(e)}function ew(e,t){for(var o=e.length;o--;)if(eU(e[o][0],t))return o;return -1}eg.prototype.clear=function(){this.__data__=el?el(null):{}},eg.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eg.prototype.get=function(e){var t=this.__data__;if(el){var o=t[e];return o===r?void 0:o}return Y.call(t,e)?t[e]:void 0},eg.prototype.has=function(e){var t=this.__data__;return el?void 0!==t[e]:Y.call(t,e)},eg.prototype.set=function(e,t){return this.__data__[e]=el&&void 0===t?r:t,this},ev.prototype.clear=function(){this.__data__=[]},ev.prototype.delete=function(e){var t=this.__data__,o=ew(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=ew(t,e);return o<0?void 0:t[o][1]},ev.prototype.has=function(e){return ew(this.__data__,e)>-1},ev.prototype.set=function(e,t){var o=this.__data__,n=ew(o,e);return n<0?o.push([e,t]):o[n][1]=t,this},ey.prototype.clear=function(){this.__data__={hash:new eg,map:new(ei||ev),string:new eg}},ey.prototype.delete=function(e){return ex(this,e).delete(e)},ey.prototype.get=function(e){return ex(this,e).get(e)},ey.prototype.has=function(e){return ex(this,e).has(e)},ey.prototype.set=function(e,t){return ex(this,e).set(e,t),this},eE.prototype.add=eE.prototype.push=function(e){return this.__data__.set(e,r),this},eE.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.clear=function(){this.__data__=new ev},e_.prototype.delete=function(e){return this.__data__.delete(e)},e_.prototype.get=function(e){return this.__data__.get(e)},e_.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.set=function(e,t){var o=this.__data__;if(o instanceof ev){var n=o.__data__;if(!ei||n.length<199)return n.push([e,t]),this;o=this.__data__=new ey(n)}return o.set(e,t),this};var eA=function(e,t,o){for(var n=-1,r=Object(e),i=o(e),a=i.length;a--;){var c=i[++n];if(!1===t(r[c],c,r))break}return e};function ek(e,t){var o;t=eR(t,e)?[t]:e$(o=t)?o:eI(o);for(var n=0,r=t.length;null!=e&&n<r;)e=e[eP(t[n++])];return n&&n==r?e:void 0}function eC(e,t){return null!=e&&t in Object(e)}function eD(e,t,o,n,r){return e===t||(null!=e&&null!=t&&(ez(e)||eW(t))?function(e,t,o,n,r,d){var b=e$(e),v=e$(t),_=a,w=a;b||(_=(_=eT(e))==i?m:_),v||(w=(w=eT(t))==i?m:w);var A=_==m&&!M(e),k=w==m&&!M(t),C=_==w;if(C&&!A)return d||(d=new e_),b||eY(e)?eS(e,t,o,n,r,d):function(e,t,o,n,r,i,a){switch(o){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case y:if(e.byteLength!=t.byteLength||!n(new Q(e),new Q(t)))break;return!0;case c:case s:case u:return eU(+e,+t);case l:return e.name==t.name&&e.message==t.message;case h:case F:return e==t+"";case f:var d=U;case p:var m=2&i;if(d||(d=$),e.size!=t.size&&!m)break;var b=a.get(e);if(b)return b==t;i|=1,a.set(e,t);var v=eS(d(e),d(t),n,r,i,a);return a.delete(e),v;case g:if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,_,o,n,r,d);if(!(2&r)){var D=A&&Y.call(e,"__wrapped__"),S=k&&Y.call(t,"__wrapped__");if(D||S){var x=D?e.value():e,O=S?t.value():t;return d||(d=new e_),o(x,O,n,r,d)}}return!!C&&(d||(d=new e_),function(e,t,o,n,r,i){var a=2&r,c=eK(e),s=c.length;if(s!=eK(t).length&&!a)return!1;for(var l=s;l--;){var d=c[l];if(!(a?d in t:Y.call(t,d)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var u=!0;i.set(e,t),i.set(t,e);for(var m=a;++l<s;){var b=e[d=c[l]],h=t[d];if(n)var p=a?n(h,b,d,t,e,i):n(b,h,d,e,t,i);if(!(void 0===p?b===h||o(b,h,n,r,i):p)){u=!1;break}m||(m="constructor"==d)}if(u&&!m){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)&&(u=!1)}return i.delete(e),i.delete(t),u}(e,t,o,n,r,d))}(e,t,eD,o,n,r):e!=e&&t!=t)}function eS(e,t,o,n,r,i){var a=2&r,c=e.length,s=t.length;if(c!=s&&!(a&&s>c))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var d=-1,f=!0,u=1&r?new eE:void 0;for(i.set(e,t),i.set(t,e);++d<c;){var m=e[d],b=t[d];if(n)var h=a?n(b,m,d,t,e,i):n(m,b,d,e,t,i);if(void 0!==h){if(h)continue;f=!1;break}if(u){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(!u.has(t)&&(m===e||o(m,e,n,r,i)))return u.add(t)})){f=!1;break}}else if(!(m===b||o(m,b,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function ex(e,t){var o,n,r=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?r["string"==typeof t?"string":"hash"]:r.map}function eO(e,t){var o,n=null==e?void 0:e[t];return!(!ez(n)||(o=n,W&&W in o))&&(eq(n)||M(n)?J:D).test(eL(n))?n:void 0}var eT=function(e){return K.call(e)};function eB(e,t){return!!(t=null==t?0x1fffffffffffff:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function eR(e,t){if(e$(e))return!1;var o=typeof e;return!!("number"==o||"symbol"==o||"boolean"==o||null==e||eV(e))||w.test(e)||!_.test(e)||null!=t&&e in Object(t)}(er&&eT(new er(new ArrayBuffer(1)))!=E||ei&&eT(new ei)!=f||ea&&eT(ea.resolve())!=b||ec&&eT(new ec)!=p||es&&eT(new es)!=v)&&(eT=function(e){var t=K.call(e),o=t==m?e.constructor:void 0,n=o?eL(o):void 0;if(n)switch(n){case ed:return E;case ef:return f;case eu:return b;case em:return p;case eb:return v}return t});function eN(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}var eI=eM(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(eV(e))return eF?eF.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var t,o=[];return A.test(e)&&o.push(""),e.replace(k,function(e,t,n,r){o.push(n?r.replace(C,"$1"):t||e)}),o});function eP(e){if("string"==typeof e||eV(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function eL(e){if(null!=e){try{return V.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,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var a=e.apply(this,n);return o.cache=i.set(r,a),a};return o.cache=new(eM.Cache||ey),o}function eU(e,t){return e===t||e!=e&&t!=t}function ej(e){var t;return eW(t=e)&&eG(t)&&Y.call(e,"callee")&&(!et.call(e,"callee")||K.call(e)==i)}eM.Cache=ey;var e$=Array.isArray;function eG(e){return null!=e&&eH(e.length)&&!eq(e)}function eq(e){var t=ez(e)?K.call(e):"";return t==d||"[object GeneratorFunction]"==t}function eH(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function ez(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eW(e){return!!e&&"object"==typeof e}function eV(e){return"symbol"==typeof e||eW(e)&&K.call(e)==g}var eY=L?function(e){return L(e)}:function(e){return eW(e)&&eH(e.length)&&!!x[K.call(e)]};function eK(e){return eG(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 r in e)Y.call(e,r)&&!(n&&("length"==r||eB(r,o)))&&t.push(r);return t}(e):function(e){if(o=(t=e)&&t.constructor,t!==("function"==typeof o&&o.prototype||H))return en(e);var t,o,n=[];for(var r in Object(e))Y.call(e,r)&&"constructor"!=r&&n.push(r);return n}(e)}function eJ(e){return e}e.exports=function(e,t,o){var n=e$(e)||eY(e);if(t="function"==typeof(l=t)?l:null==l?eJ:"object"==typeof l?e$(l)?(r=l[0],i=l[1],eR(r)&&(a=i)==a&&!ez(a)?eN(eP(r),i):function(e){var t,o,n,a,c,s=(t=e,o=r,void 0===(n=null==t?void 0:ek(t,o))?void 0:n);return void 0===s&&s===i?(a=e,c=r,null!=a&&function(e,t,o){t=eR(t,e)?[t]:e$(n=t)?n:eI(n);for(var n,r,i=-1,a=t.length;++i<a;){var c=eP(t[i]);if(!(r=null!=e&&o(e,c)))break;e=e[c]}if(r)return r;var a=e?e.length:0;return!!a&&eH(a)&&eB(c,a)&&(e$(e)||ej(e))}(a,c,eC)):eD(i,s,void 0,3)}):1==(s=function(e){for(var t=eK(e),o=t.length;o--;){var n,r=t[o],i=e[r];t[o]=[r,i,(n=i)==n&&!ez(n)]}return t}(c=l)).length&&s[0][2]?eN(s[0][0],s[0][1]):function(e){return e===c||function(e,t){var o=t.length,n=o;if(null==e)return!n;for(e=Object(e);o--;){var r=t[o];if((0,r[2])?r[1]!==e[r[0]]:!(r[0]in e))return!1}for(;++o<n;){var i=(r=t[o])[0],a=e[i],c=r[1];if(0,r[2]){if(void 0===a&&!(i in e))return!1}else{var s,l=new e_;if(!(void 0===s?eD(c,a,void 0,3,l):s))return!1}}return!0}(e,s)}:function(e){var t;return eR(e)?(t=eP(e),function(e){return null==e?void 0:e[t]}):function(t){return ek(t,e)}}(l),null==o)if(n||ez(e)){var r,i,a,c,s,l,d,f=e.constructor;o=n?e$(e)?new f:[]:eq(f)&&ez(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&&eA(e,t,eK)})(e,function(e,n,r){return t(o,e,n,r)}),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 r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(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(i(e,t))return!1;return!0}function c(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var o,n=[],r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function f(e,t){for(var o in t)i(t,o)&&(e[o]=t[o]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,o,n){return ti(e,t,o,n,!0).utc()}function m(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 b(e){var t=null,o=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=m(e),o=G.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 h(e){var t=u(0/0);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}G=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 y(e,t){var o,n,r,i=g.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),i>0)for(o=0;o<i;o++)c(r=t[n=g[o]])||(e[n]=r);return e}function E(e){y(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 _(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function w(e){!1===t.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function A(e,o){var n=!0;return f(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var r,a,c,s=[],l=arguments.length;for(a=0;a<l;a++){if(r="","object"==typeof arguments[a]){for(c in r+="\n["+a+"] ",arguments[0])i(arguments[0],c)&&(r+=c+": "+arguments[0][c]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}w(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+Error().stack),n=!1}return o.apply(this,arguments)},o)}var k={};function C(e,o){null!=t.deprecationHandler&&t.deprecationHandler(e,o),k[e]||(w(o),k[e]=!0)}function D(e){return"u">typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var o,n=f({},e);for(o in t)i(t,o)&&(r(e[o])&&r(t[o])?(n[o]={},f(n[o],e[o]),f(n[o],t[o])):null!=t[o]?n[o]=t[o]:delete n[o]);for(o in e)i(e,o)&&!i(t,o)&&r(e[o])&&(n[o]=f({},n[o]));return n}function x(e){null!=e&&this.set(e)}function O(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 T=/(\[[^\[]*\])|(\\)?([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,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},N={};function I(e,t,o,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(N[e]=r),t&&(N[t[0]]=function(){return O(r.apply(this,arguments),t[1],t[2])}),o&&(N[o]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function P(e,t){return e.isValid()?(R[t=L(t,e.localeData())]=R[t]||function(e){var t,o,n,r=e.match(T);for(o=0,n=r.length;o<n;o++)N[r[o]]?r[o]=N[r[o]]:r[o]=(t=r[o]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var o,i="";for(o=0;o<n;o++)i+=D(r[o])?r[o].call(t,e):r[o];return i}}(t),R[t](e)):e.localeData().invalidDate()}function L(e,t){var o=5;function n(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;o>=0&&B.test(e);)e=e.replace(B,n),B.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)i(e,o)&&(t=U(o))&&(n[t]=e[o]);return n}var $,G,q,H={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},z=Object.keys?Object.keys:function(e){var t,o=[];for(t in e)i(e,t)&&o.push(t);return o},W=/\d/,V=/\d\d/,Y=/\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+/,er=/[+-]?\d+/,ei=/Z|[+-]\d\d:?\d\d/gi,ea=/Z|[+-]\d\d(?::?\d\d)?/gi,ec=/[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,es=/^[1-9]\d?/,el=/^([1-9]\d|\d)/;function ed(e,t,o){q[e]=D(t)?t:function(e,n){return e&&o?o:t}}function ef(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function eu(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function em(e){var t=+e,o=0;return 0!==t&&isFinite(t)&&(o=eu(t)),o}q={};var eb={};function eh(e,t){var o,n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,o){o[t]=em(e)}),n=e.length,o=0;o<n;o++)eb[e[o]]=r}function ep(e,t){eh(e,function(e,o,n,r){n._w=n._w||{},t(e,n._w,n,r)})}function eF(e){return e%4==0&&e%100!=0||e%400==0}function eg(e){return eF(e)?366:365}I("Y",0,0,function(){var e=this.year();return e<=9999?O(e,4):"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),ed("Y",er),ed("YY",X,V),ed("YYYY",et,K),ed("YYYYY",eo,J),ed("YYYYYY",eo,J),eh(["YYYYY","YYYYYY"],0),eh("YYYY",function(e,o){o[0]=2===e.length?t.parseTwoDigitYear(e):em(e)}),eh("YY",function(e,o){o[0]=t.parseTwoDigitYear(e)}),eh("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return em(e)+(em(e)>68?1900:2e3)};var ev=ey("FullYear",!0);function ey(e,o){return function(n){return null!=n?(e_(this,e,n),t.updateOffset(this,o),this):eE(this,e)}}function eE(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 e_(e,t,o){var n,r,i,a;if(!(!e.isValid()||isNaN(o))){switch(n=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?n.setUTCMilliseconds(o):n.setMilliseconds(o));case"Seconds":return void(r?n.setUTCSeconds(o):n.setSeconds(o));case"Minutes":return void(r?n.setUTCMinutes(o):n.setMinutes(o));case"Hours":return void(r?n.setUTCHours(o):n.setHours(o));case"Date":return void(r?n.setUTCDate(o):n.setDate(o));case"FullYear":break;default:return}i=e.month(),a=29!==(a=e.date())||1!==i||eF(o)?a:28,r?n.setUTCFullYear(o,i,a):n.setFullYear(o,i,a)}}function ew(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}eq=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},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ed("M",X,es),ed("MM",X,V),ed("MMM",function(e,t){return t.monthsShortRegex(e)}),ed("MMMM",function(e,t){return t.monthsRegex(e)}),eh(["M","MM"],function(e,t){t[1]=em(e)-1}),eh(["MMM","MMMM"],function(e,t,o,n){var r=o._locale.monthsParse(e,n,o._strict);null!=r?t[1]=r:m(o).invalidMonth=e});var eA="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ek=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eC(e,t,o){var n,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();if(o)if("MMM"===t)return -1!==(r=eq.call(this._shortMonthsParse,a))?r:null;else return -1!==(r=eq.call(this._longMonthsParse,a))?r:null;return"MMM"===t?-1!==(r=eq.call(this._shortMonthsParse,a))||-1!==(r=eq.call(this._longMonthsParse,a))?r:null:-1!==(r=eq.call(this._longMonthsParse,a))||-1!==(r=eq.call(this._shortMonthsParse,a))?r:null}function eD(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=em(t);else if(!s(t=e.localeData().monthsParse(t)))return e}var o=t,n=e.date();return n=n<29?n:Math.min(n,ew(e.year(),o)),e._isUTC?e._d.setUTCMonth(o,n):e._d.setMonth(o,n),e}function eS(e){return null!=e?(eD(this,e),t.updateOffset(this,!0),this):eE(this,"Month")}function ex(){function e(e,t){return t.length-e.length}var t,o,n,r,i=[],a=[],c=[];for(t=0;t<12;t++)o=u([2e3,t]),n=ef(this.monthsShort(o,"")),r=ef(this.months(o,"")),i.push(n),a.push(r),c.push(r),c.push(n);i.sort(e),a.sort(e),c.sort(e),this._monthsRegex=RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+i.join("|")+")","i")}function eO(e,t,o,n,r,i,a){var c;return e<100&&e>=0?isFinite((c=new Date(e+400,t,o,n,r,i,a)).getFullYear())&&c.setFullYear(e):c=new Date(e,t,o,n,r,i,a),c}function eT(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 eB(e,t,o){var n=7+t-o;return-((7+eT(e,0,n).getUTCDay()-t)%7)+n-1}function eR(e,t,o,n,r){var i,a,c=1+7*(t-1)+(7+o-n)%7+eB(e,n,r);return c<=0?a=eg(i=e-1)+c:c>eg(e)?(i=e+1,a=c-eg(e)):(i=e,a=c),{year:i,dayOfYear:a}}function eN(e,t,o){var n,r,i=eB(e.year(),t,o),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?n=a+eI(r=e.year()-1,t,o):a>eI(e.year(),t,o)?(n=a-eI(e.year(),t,o),r=e.year()+1):(r=e.year(),n=a),{week:n,year:r}}function eI(e,t,o){var n=eB(e,t,o),r=eB(e+1,t,o);return(eg(e)-n+r)/7}function eP(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),ed("w",X,es),ed("ww",X,V),ed("W",X,es),ed("WW",X,V),ep(["w","ww","W","WW"],function(e,t,o,n){t[n.substr(0,1)]=em(e)}),I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("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 r=o._locale.weekdaysParse(e,n,o._strict);null!=r?t.d=r:m(o).invalidWeekday=e}),ep(["d","e","E"],function(e,t,o,n){t[n]=em(e)});var eL="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eM(e,t,o){var n,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();if(o)if("dddd"===t)return -1!==(r=eq.call(this._weekdaysParse,a))?r:null;else if("ddd"===t)return -1!==(r=eq.call(this._shortWeekdaysParse,a))?r:null;else return -1!==(r=eq.call(this._minWeekdaysParse,a))?r:null;return"dddd"===t?-1!==(r=eq.call(this._weekdaysParse,a))||-1!==(r=eq.call(this._shortWeekdaysParse,a))||-1!==(r=eq.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=eq.call(this._shortWeekdaysParse,a))||-1!==(r=eq.call(this._weekdaysParse,a))||-1!==(r=eq.call(this._minWeekdaysParse,a))?r:null:-1!==(r=eq.call(this._minWeekdaysParse,a))||-1!==(r=eq.call(this._weekdaysParse,a))||-1!==(r=eq.call(this._shortWeekdaysParse,a))?r:null}function eU(){function e(e,t){return t.length-e.length}var t,o,n,r,i,a=[],c=[],s=[],l=[];for(t=0;t<7;t++)o=u([2e3,1]).day(t),n=ef(this.weekdaysMin(o,"")),r=ef(this.weekdaysShort(o,"")),i=ef(this.weekdays(o,"")),a.push(n),c.push(r),s.push(i),l.push(n),l.push(r),l.push(i);a.sort(e),c.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function ej(){return this.hours()%12||12}function e$(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eG(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,ej),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+ej.apply(this)+O(this.minutes(),2)}),I("hmmss",0,0,function(){return""+ej.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+O(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)}),e$("a",!0),e$("A",!1),ed("a",eG),ed("A",eG),ed("H",X,el),ed("h",X,es),ed("k",X,es),ed("HH",X,V),ed("hh",X,V),ed("kk",X,V),ed("hmm",Q),ed("hmmss",Z),ed("Hmm",Q),ed("Hmmss",Z),eh(["H","HH"],3),eh(["k","kk"],function(e,t,o){var n=em(e);t[3]=24===n?0:n}),eh(["a","A"],function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e}),eh(["h","hh"],function(e,t,o){t[3]=em(e),m(o).bigHour=!0}),eh("hmm",function(e,t,o){var n=e.length-2;t[3]=em(e.substr(0,n)),t[4]=em(e.substr(n)),m(o).bigHour=!0}),eh("hmmss",function(e,t,o){var n=e.length-4,r=e.length-2;t[3]=em(e.substr(0,n)),t[4]=em(e.substr(n,2)),t[5]=em(e.substr(r)),m(o).bigHour=!0}),eh("Hmm",function(e,t,o){var n=e.length-2;t[3]=em(e.substr(0,n)),t[4]=em(e.substr(n))}),eh("Hmmss",function(e,t,o){var n=e.length-4,r=e.length-2;t[3]=em(e.substr(0,n)),t[4]=em(e.substr(n,2)),t[5]=em(e.substr(r))});var eq,eH,ez=ey("Hours",!0),eW={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:eA,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},eV={},eY={};function eK(e){return e?e.toLowerCase().replace("_","-"):e}function eJ(t){var n=null;if(void 0===eV[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eH._abbr,o(3118)("./locale/"+t),eX(n)}catch(e){eV[t]=null}return eV[t]}function eX(e,t){var o;return e&&((o=c(t)?eZ(e):eQ(e,t))?eH=o:"u">typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eH._abbr}function eQ(e,t){if(null===t)return delete eV[e],null;var o,n=eW;if(t.abbr=e,null!=eV[e])C("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=eV[e]._config;else if(null!=t.parentLocale)if(null!=eV[t.parentLocale])n=eV[t.parentLocale]._config;else{if(null==(o=eJ(t.parentLocale)))return eY[t.parentLocale]||(eY[t.parentLocale]=[]),eY[t.parentLocale].push({name:e,config:t}),null;n=o._config}return eV[e]=new x(S(n,t)),eY[e]&&eY[e].forEach(function(e){eQ(e.name,e.config)}),eX(e),eV[e]}function eZ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eH;if(!n(e)){if(t=eJ(e))return t;e=[e]}return function(e){for(var t,o,n,r,i=0;i<e.length;){for(t=(r=eK(e[i]).split("-")).length,o=(o=eK(e[i+1]))?o.split("-"):null;t>0;){if(n=eJ(r.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}(r,o)>=t-1)break;t--}i++}return eH}(e)}function e0(e){var t,o=e._a;return o&&-2===m(e).overflow&&(t=o[1]<0||o[1]>11?1:o[2]<1||o[2]>ew(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,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(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)?)?$/,e5=/Z|[+-]\d\d(?::?\d\d)?/,e3=[["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,r,i,a,c=e._i,s=e1.exec(c)||e2.exec(c),l=e3.length,d=e4.length;if(s){for(m(e).iso=!0,t=0,o=l;t<o;t++)if(e3[t][1].exec(s[1])){r=e3[t][0],n=!1!==e3[t][2];break}if(null==r){e._isValid=!1;return}if(s[3]){for(t=0,o=d;t<o;t++)if(e4[t][1].exec(s[3])){i=(s[2]||" ")+e4[t][0];break}if(null==i){e._isValid=!1;return}}if(!n&&null!=i){e._isValid=!1;return}if(s[4])if(e5.exec(s[4]))a="Z";else{e._isValid=!1;return}e._f=r+(i||"")+(a||""),tn(e)}else e._isValid=!1}function te(e){var t,o,n,r,i,a,c,s,l,d,f,u=e8.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(i=u[4],a=u[3],c=u[2],s=u[5],l=u[6],d=u[7],f=[(t=parseInt(i,10))<=49?2e3+t:t<=999?1900+t:t,eA.indexOf(a),parseInt(c,10),parseInt(s,10),parseInt(l,10)],d&&f.push(parseInt(d,10)),o=u[1],n=f,r=e,o&&eL.indexOf(o)!==new Date(n[0],n[1],n[2]).getDay()&&(m(r).weekdayMismatch=!0,r._isValid=!1,1))return;e._a=f,e._tzm=function(e,t,o){if(e)return e9[e];if(t)return 0;var n=parseInt(o,10),r=n%100;return(n-r)/100*60+r}(u[8],u[9],u[10]),e._d=eT.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(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,r,i,a,c,s,l,d,f,u,b,h,p,F,g,v=[];if(!e._d){for(u=new Date(t.now()),p=e._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(n=(o=e)._w).GG||null!=n.W||null!=n.E?(c=1,s=4,r=tt(n.GG,o._a[0],eN(ta(),1,4).year),i=tt(n.W,1),((a=tt(n.E,1))<1||a>7)&&(d=!0)):(c=o._locale._week.dow,s=o._locale._week.doy,f=eN(ta(),c,s),r=tt(n.gg,o._a[0],f.year),i=tt(n.w,f.week),null!=n.d?((a=n.d)<0||a>6)&&(d=!0):null!=n.e?(a=n.e+c,(n.e<0||n.e>6)&&(d=!0)):a=c),i<1||i>eI(r,c,s)?m(o)._overflowWeeks=!0:null!=d?m(o)._overflowWeekday=!0:(l=eR(r,i,a,c,s),o._a[0]=l.year,o._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(g=tt(e._a[0],p[0]),(e._dayOfYear>eg(g)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),h=eT(g,0,e._dayOfYear),e._a[1]=h.getUTCMonth(),e._a[2]=h.getUTCDate()),b=0;b<3&&null==e._a[b];++b)e._a[b]=v[b]=p[b];for(;b<7;b++)e._a[b]=v[b]=null==e._a[b]?+(2===b):e._a[b];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?eT:eO).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&&(m(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=[],m(e).empty=!0;var o,n,r,a,c,s,l,d,f,u,b,h=""+e._i,p=h.length,F=0;for(b=(l=L(e._f,e._locale).match(T)||[]).length,c=0;c<b;c++)if(d=l[c],(s=(h.match(!i(q,d)?new RegExp(ef(d.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,o,n,r){return t||o||n||r}))):q[d](e._strict,e._locale))||[])[0])&&((f=h.substr(0,h.indexOf(s))).length>0&&m(e).unusedInput.push(f),h=h.slice(h.indexOf(s)+s.length),F+=s.length),N[d])s?m(e).empty=!1:m(e).unusedTokens.push(d),null!=s&&i(eb,d)&&eb[d](s,e._a,e,d);else e._strict&&!s&&m(e).unusedTokens.push(d);m(e).charsLeftOver=p-F,h.length>0&&m(e).unusedInput.push(h),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=(o=e._locale,n=e._a[3],null==(r=e._meridiem)?n:null!=o.meridiemHour?o.meridiemHour(n,r):(null!=o.isPM&&((a=o.isPM(r))&&n<12&&(n+=12),a||12!==n||(n=0)),n)),null!==(u=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(u,e._a[0])),to(e),e0(e)}function tr(e){var o=e._i,i=e._f;return(e._locale=e._locale||eZ(e._l),null===o||void 0===i&&""===o)?h({nullInput:!0}):("string"==typeof o&&(e._i=o=e._locale.preparse(o)),_(o))?new E(e0(o)):(l(o)?e._d=o:n(i)?!function(e){var t,o,n,r,i,a,c=!1,s=e._f.length;if(0===s){m(e).invalidFormat=!0,e._d=new Date(0/0);return}for(r=0;r<s;r++)i=0,a=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],tn(t),b(t)&&(a=!0),i+=m(t).charsLeftOver,i+=10*m(t).unusedTokens.length,m(t).score=i,c?i<n&&(n=i,o=t):(null==n||i<n||a)&&(n=i,o=t,a&&(c=!0));f(e,o||t)}(e):i?tn(e):function(e){var o=e._i;if(c(o))e._d=new Date(t.now());else if(l(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(r(o)){if(!e._d){var i=j(e._i),a=void 0===i.day?i.date:i.day;e._a=d([i.year,i.month,a,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),to(e)}}else s(o)?e._d=new Date(o):t.createFromInputFallback(e)}(e),b(e)||(e._d=null),e)}function ti(e,t,o,i,c){var s,l={};return(!0===t||!1===t)&&(i=t,t=void 0),(!0===o||!1===o)&&(i=o,o=void 0),(r(e)&&a(e)||n(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=c,l._l=o,l._i=e,l._f=t,l._strict=i,(s=new E(e0(tr(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function ta(e,t,o,n){return ti(e,t,o,n,!1)}t.createFromInputFallback=A("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 tc=A("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:h()}),ts=A("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:h()});function tl(e,t){var o,r;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return ta();for(o=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](o))&&(o=t[r]);return o}var td=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tf(e){var t=j(e),o=t.year||0,n=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,c=t.day||0,s=t.hour||0,l=t.minute||0,d=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,o,n=!1,r=td.length;for(t in e)if(i(e,t)&&!(-1!==eq.call(td,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[td[o]]){if(n)return!1;parseFloat(e[td[o]])!==em(e[td[o]])&&(n=!0)}return!0}(t),this._milliseconds=+f+1e3*d+6e4*l+1e3*s*3600,this._days=+c+7*a,this._months=+r+3*n+12*o,this._data={},this._locale=eZ(),this._bubble()}function tu(e){return e instanceof tf}function tm(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tb(e,t){I(e,0,0,function(){var e=this.utcOffset(),o="+";return e<0&&(e=-e,o="-"),o+O(~~(e/60),2)+t+O(~~e%60,2)})}tb("Z",":"),tb("ZZ",""),ed("Z",ea),ed("ZZ",ea),eh(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=tp(ea,e)});var th=/([\+\-]|\d\d)/gi;function tp(e,t){var o,n,r=(t||"").match(e);return null===r?null:0===(n=+(60*(o=((r[r.length-1]||[])+"").match(th)||["-",0,0])[1])+em(o[2]))?0:"+"===o[0]?n:-n}function tF(e,o){var n,r;return o._isUTC?(n=o.clone(),r=(_(e)||l(e)?e.valueOf():ta(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),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 ty=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tE=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function t_(e,t){var o,n,r,a,c,l,d=e,f=null;return tu(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:s(e)||!isNaN(+e)?(d={},t?d[t]=+e:d.milliseconds=+e):(f=ty.exec(e))?(a="-"===f[1]?-1:1,d={y:0,d:em(f[2])*a,h:em(f[3])*a,m:em(f[4])*a,s:em(f[5])*a,ms:em(tm(1e3*f[6]))*a}):(f=tE.exec(e))?(a="-"===f[1]?-1:1,d={y:tw(f[2],a),M:tw(f[3],a),w:tw(f[4],a),d:tw(f[5],a),h:tw(f[6],a),m:tw(f[7],a),s:tw(f[8],a)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(o=ta(d.from),n=ta(d.to),l=o.isValid()&&n.isValid()?(n=tF(n,o),o.isBefore(n)?r=tA(o,n):((r=tA(n,o)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(d={}).ms=l.milliseconds,d.M=l.months),c=new tf(d),tu(e)&&i(e,"_locale")&&(c._locale=e._locale),tu(e)&&i(e,"_isValid")&&(c._isValid=e._isValid),c}function tw(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function tA(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 r;return null===n||isNaN(+n)||(C(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."),r=o,o=n,n=r),tC(this,t_(o,n),e),this}}function tC(e,o,n,r){var i=o._milliseconds,a=tm(o._days),c=tm(o._months);e.isValid()&&(r=null==r||r,c&&eD(e,eE(e,"Month")+c*n),a&&e_(e,"Date",eE(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&t.updateOffset(e,a||c))}t_.fn=tf.prototype,t_.invalid=function(){return t_(0/0)};var tD=tk(1,"add"),tS=tk(-1,"subtract");function tx(e){return"string"==typeof e||e instanceof String}function tO(e,t){if(e.date()<t.date())return-tO(t,e);var o,n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months");return o=t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r),-(n+o)||0}function tT(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 tB=A("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 tR(){return this._locale}function tN(e,t,o){return e<100&&e>=0?new Date(e+400,t,o)-126227808e5:new Date(e,t,o).valueOf()}function tI(e,t,o){return e<100&&e>=0?Date.UTC(e+400,t,o)-126227808e5:Date.UTC(e,t,o)}function tP(e,t){return t.erasAbbrRegex(e)}function tL(){var e,t,o,n,r,i=[],a=[],c=[],s=[],l=this.eras();for(e=0,t=l.length;e<t;++e)o=ef(l[e].name),n=ef(l[e].abbr),r=ef(l[e].narrow),a.push(o),i.push(n),c.push(r),s.push(o),s.push(n),s.push(r);this._erasRegex=RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+c.join("|")+")","i")}function tM(e,t){I(0,[e,e.length],0,t)}function tU(e,t,o,n,r){var i;return null==e?eN(this,n,r).year:(t>(i=eI(e,n,r))&&(t=i),tj.call(this,e,t,o,n,r))}function tj(e,t,o,n,r){var i=eR(e,t,o,n,r),a=eT(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),ed("N",tP),ed("NN",tP),ed("NNN",tP),ed("NNNN",function(e,t){return t.erasNameRegex(e)}),ed("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eh(["N","NN","NNN","NNNN","NNNNN"],function(e,t,o,n){var r=o._locale.erasParse(e,n,o._strict);r?m(o).era=r:m(o).invalidEra=e}),ed("y",en),ed("yy",en),ed("yyy",en),ed("yyyy",en),ed("yo",function(e,t){return t._eraYearOrdinalRegex||en}),eh(["y","yy","yyy","yyyy"],0),eh(["yo"],function(e,t,o,n){var r;o._locale._eraYearOrdinalRegex&&(r=e.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?t[0]=o._locale.eraYearOrdinalParse(e,r):t[0]=parseInt(e,10)}),I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tM("gggg","weekYear"),tM("ggggg","weekYear"),tM("GGGG","isoWeekYear"),tM("GGGGG","isoWeekYear"),ed("G",er),ed("g",er),ed("GG",X,V),ed("gg",X,V),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)]=em(e)}),ep(["gg","GG"],function(e,o,n,r){o[r]=t.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),ed("Q",W),eh("Q",function(e,t){t[1]=(em(e)-1)*3}),I("D",["DD",2],"Do","date"),ed("D",X,es),ed("DD",X,V),ed("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eh(["D","DD"],2),eh("Do",function(e,t){t[2]=em(e.match(X)[0])});var t$=ey("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),ed("DDD",ee),ed("DDDD",Y),eh(["DDD","DDDD"],function(e,t,o){o._dayOfYear=em(e)}),I("m",["mm",2],0,"minute"),ed("m",X,el),ed("mm",X,V),eh(["m","mm"],4);var tG=ey("Minutes",!1);I("s",["ss",2],0,"second"),ed("s",X,el),ed("ss",X,V),eh(["s","ss"],5);var tq=ey("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ed("S",ee,W),ed("SS",ee,V),ed("SSS",ee,Y),p="SSSS";p.length<=9;p+="S")ed(p,en);function tH(e,t){t[6]=em(("0."+e)*1e3)}for(p="S";p.length<=9;p+="S")eh(p,tH);F=ey("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var tz=E.prototype;function tW(e){return e}tz.add=tD,tz.calendar=function(e,o){if(1==arguments.length)if(arguments[0]){var c,d,f,u;if(c=arguments[0],_(c)||l(c)||tx(c)||s(c)||(f=n(d=c),u=!1,f&&(u=0===d.filter(function(e){return!s(e)&&tx(d)}).length),f&&u)||function(e){var t,o,n=r(e)&&!a(e),c=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(t=0;t<l;t+=1)o=s[t],c=c||i(e,o);return n&&c}(c)||null==c)e=arguments[0],o=void 0;else(function(e){var t,o,n=r(e)&&!a(e),c=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)o=s[t],c=c||i(e,o);return n&&c})(arguments[0])&&(o=arguments[0],e=void 0)}else e=void 0,o=void 0;var m=e||ta(),b=tF(m,this).startOf("day"),h=t.calendarFormat(this,b)||"sameElse",p=o&&(D(o[h])?o[h].call(this,m):o[h]);return this.format(p||this.localeData().calendar(h,this,ta(m)))},tz.clone=function(){return new E(this)},tz.diff=function(e,t,o){var n,r,i;if(!this.isValid()||!(n=tF(e,this)).isValid())return 0/0;switch(r=(n.utcOffset()-this.utcOffset())*6e4,t=U(t)){case"year":i=tO(this,n)/12;break;case"month":i=tO(this,n);break;case"quarter":i=tO(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return o?i:eu(i)},tz.endOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tI:tN,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},tz.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var o=P(this,e);return this.localeData().postformat(o)},tz.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||ta(e).isValid())?t_({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tz.fromNow=function(e){return this.from(ta(),e)},tz.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||ta(e).isValid())?t_({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tz.toNow=function(e){return this.to(ta(),e)},tz.get=function(e){return D(this[e=U(e)])?this[e]():this},tz.invalidAt=function(){return m(this).overflow},tz.isAfter=function(e,t){var o=_(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())},tz.isBefore=function(e,t){var o=_(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())},tz.isBetween=function(e,t,o,n){var r=_(e)?e:ta(e),i=_(t)?t:ta(t);return!!(this.isValid()&&r.isValid()&&i.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,o):!this.isBefore(r,o))&&(")"===n[1]?this.isBefore(i,o):!this.isAfter(i,o))},tz.isSame=function(e,t){var o,n=_(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()))},tz.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tz.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tz.isValid=function(){return b(this)},tz.lang=tB,tz.locale=tT,tz.localeData=tR,tz.max=ts,tz.min=tc,tz.parsingFlags=function(){return f({},m(this))},tz.set=function(e,t){if("object"==typeof e){var o,n=function(e){var t,o=[];for(t in e)i(e,t)&&o.push({unit:t,priority:H[t]});return o.sort(function(e,t){return e.priority-t.priority}),o}(e=j(e)),r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(D(this[e=U(e)]))return this[e](t);return this},tz.startOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tI:tN,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},tz.subtract=tS,tz.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tz.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tz.toDate=function(){return new Date(this.valueOf())},tz.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 P(o,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(D(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(o,"Z"));return P(o,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tz.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,o,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",o=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+o)},"u">typeof Symbol&&null!=Symbol.for&&(tz[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tz.toJSON=function(){return this.isValid()?this.toISOString():null},tz.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tz.unix=function(){return Math.floor(this.valueOf()/1e3)},tz.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tz.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tz.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""},tz.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""},tz.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""},tz.eraYear=function(){var e,o,n,r,i=this.localeData().eras();for(e=0,o=i.length;e<o;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-t(i[e].since).year())*n+i[e].offset;return this.year()},tz.year=ev,tz.isLeapYear=function(){return eF(this.year())},tz.weekYear=function(e){return tU.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tz.isoWeekYear=function(e){return tU.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tz.quarter=tz.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tz.month=eS,tz.daysInMonth=function(){return ew(this.year(),this.month())},tz.week=tz.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tz.isoWeek=tz.isoWeeks=function(e){var t=eN(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tz.weeksInYear=function(){var e=this.localeData()._week;return eI(this.year(),e.dow,e.doy)},tz.weeksInWeekYear=function(){var e=this.localeData()._week;return eI(this.weekYear(),e.dow,e.doy)},tz.isoWeeksInYear=function(){return eI(this.year(),1,4)},tz.isoWeeksInISOWeekYear=function(){return eI(this.isoWeekYear(),1,4)},tz.date=t$,tz.day=tz.days=function(e){if(!this.isValid())return null!=e?this:0/0;var t,o,n=eE(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"))},tz.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")},tz.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)},tz.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")},tz.hour=tz.hours=ez,tz.minute=tz.minutes=tG,tz.second=tz.seconds=tq,tz.millisecond=tz.milliseconds=F,tz.utcOffset=function(e,o,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:0/0;if(null==e)return this._isUTC?i: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&&(r=tg(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!o||this._changeInProgress?tC(this,t_(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tz.utc=function(e){return this.utcOffset(0,e)},tz.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tg(this),"m")),this},tz.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tp(ei,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tz.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ta(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tz.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tz.isLocal=function(){return!!this.isValid()&&!this._isUTC},tz.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tz.isUtc=tv,tz.isUTC=tv,tz.zoneAbbr=function(){return this._isUTC?"UTC":""},tz.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tz.dates=A("dates accessor is deprecated. Use date instead.",t$),tz.months=A("months accessor is deprecated. Use month instead",eS),tz.years=A("years accessor is deprecated. Use year instead",ev),tz.zone=A("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()}),tz.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=tr(t))._a?(e=t._isUTC?u(t._a):ta(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var o,n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(o=0;o<n;o++)em(e[o])!==em(t[o])&&i++;return i+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tV=x.prototype;function tY(e,t,o,n){var r=eZ(),i=u().set(n,t);return r[o](i,e)}function tK(e,t,o){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return tY(e,t,o,"month");var n,r=[];for(n=0;n<12;n++)r[n]=tY(e,n,o,"month");return r}function tJ(e,t,o,n){"boolean"==typeof e||(o=t=e,e=!1),s(t)&&(o=t,t=void 0),t=t||"";var r,i=eZ(),a=e?i._week.dow:0,c=[];if(null!=o)return tY(t,(o+a)%7,n,"day");for(r=0;r<7;r++)c[r]=tY(t,(r+a)%7,n,"day");return c}tV.calendar=function(e,t,o){var n=this._calendar[e]||this._calendar.sameElse;return D(n)?n.call(t,o):n},tV.longDateFormat=function(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.match(T).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tV.invalidDate=function(){return this._invalidDate},tV.ordinal=function(e){return this._ordinal.replace("%d",e)},tV.preparse=tW,tV.postformat=tW,tV.relativeTime=function(e,t,o,n){var r=this._relativeTime[o];return D(r)?r(e,t,o,n):r.replace(/%d/i,e)},tV.pastFuture=function(e,t){var o=this._relativeTime[e>0?"future":"past"];return D(o)?o(t):o.replace(/%s/i,t)},tV.set=function(e){var t,o;for(o in e)i(e,o)&&(D(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)},tV.eras=function(e,o){var n,r,i,a=this._eras||eZ("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(i=t(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=t(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}return a},tV.erasParse=function(e,t,o){var n,r,i,a,c,s=this.eras();for(e=e.toUpperCase(),n=0,r=s.length;n<r;++n)if(i=s[n].name.toUpperCase(),a=s[n].abbr.toUpperCase(),c=s[n].narrow.toUpperCase(),o)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[n];break;case"NNNN":if(i===e)return s[n];break;case"NNNNN":if(c===e)return s[n]}else if([i,a,c].indexOf(e)>=0)return s[n]},tV.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},tV.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tL.call(this),e?this._erasAbbrRegex:this._erasRegex},tV.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tL.call(this),e?this._erasNameRegex:this._erasRegex},tV.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tL.call(this),e?this._erasNarrowRegex:this._erasRegex},tV.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},tV.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},tV.monthsParse=function(e,t,o){var n,r,i;if(this._monthsParseExact)return eC.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=u([2e3,n]),o&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),o||this._monthsParse[n]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=RegExp(i.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}},tV.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ex.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=ec),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tV.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ex.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=ec),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tV.week=function(e){return eN(e,this._week.dow,this._week.doy).week},tV.firstDayOfYear=function(){return this._week.doy},tV.firstDayOfWeek=function(){return this._week.dow},tV.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?eP(o,this._week.dow):e?o[e.day()]:o},tV.weekdaysMin=function(e){return!0===e?eP(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tV.weekdaysShort=function(e){return!0===e?eP(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tV.weekdaysParse=function(e,t,o){var n,r,i;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(r=u([2e3,1]).day(n),o&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=RegExp(i.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}},tV.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ec),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tV.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ec),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tV.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eU.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ec),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tV.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tV.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===em(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+o}}),t.lang=A("moment.lang is deprecated. Use moment.locale instead.",eX),t.langData=A("moment.langData is deprecated. Use moment.localeData instead.",eZ);var tX=Math.abs;function tQ(e,t,o,n){var r=t_(t,o);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._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 t5=t2("ms"),t3=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"),or=oo("seconds"),oi=oo("minutes"),oa=oo("hours"),oc=oo("days"),os=oo("months"),ol=oo("years"),od=Math.round,of={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ou(e,t,o,n,r){return r.relativeTime(t||1,!!o,e,n)}var om=Math.abs;function ob(e){return(e>0)-(e<0)||+e}function oh(){if(!this.isValid())return this.localeData().invalidDate();var e,t,o,n,r,i,a,c,s=om(this._milliseconds)/1e3,l=om(this._days),d=om(this._months),f=this.asSeconds();return f?(e=eu(s/60),t=eu(e/60),s%=60,e%=60,o=eu(d/12),d%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=f<0?"-":"",i=ob(this._months)!==ob(f)?"-":"",a=ob(this._days)!==ob(f)?"-":"",c=ob(this._milliseconds)!==ob(f)?"-":"",r+"P"+(o?i+o+"Y":"")+(d?i+d+"M":"")+(l?a+l+"D":"")+(t||e||s?"T":"")+(t?c+t+"H":"")+(e?c+e+"M":"")+(s?c+n+"S":"")):"P0D"}var op=tf.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=t5,op.asSeconds=t3,op.asMinutes=t4,op.asHours=t6,op.asDays=t8,op.asWeeks=t9,op.asMonths=t7,op.asQuarters=oe,op.asYears=ot,op.valueOf=t5,op._bubble=function(){var e,t,o,n,r,i=this._milliseconds,a=this._days,c=this._months,s=this._data;return i>=0&&a>=0&&c>=0||i<=0&&a<=0&&c<=0||(i+=864e5*tZ(t1(c)+a),a=0,c=0),s.milliseconds=i%1e3,s.seconds=(e=eu(i/1e3))%60,s.minutes=(t=eu(e/60))%60,s.hours=(o=eu(t/60))%24,a+=eu(o/24),c+=r=eu(t0(a)),a-=tZ(t1(r)),n=eu(c/12),c%=12,s.days=a,s.months=c,s.years=n,this},op.clone=function(){return t_(this)},op.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():0/0},op.milliseconds=on,op.seconds=or,op.minutes=oi,op.hours=oa,op.days=oc,op.weeks=function(){return eu(this.days()/7)},op.months=os,op.years=ol,op.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var o,n,r,i,a,c,s,l,d,f,u,m,b,h=!1,p=of;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(h=e),"object"==typeof t&&(p=Object.assign({},of,t),null!=t.s&&null==t.ss&&(p.ss=t.s-1)),m=this.localeData(),o=!h,n=p,r=t_(this).abs(),i=od(r.as("s")),a=od(r.as("m")),c=od(r.as("h")),s=od(r.as("d")),l=od(r.as("M")),d=od(r.as("w")),f=od(r.as("y")),u=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||c<=1&&["h"]||c<n.h&&["hh",c]||s<=1&&["d"]||s<n.d&&["dd",s],null!=n.w&&(u=u||d<=1&&["w"]||d<n.w&&["ww",d]),(u=u||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=o,u[3]=+this>0,u[4]=m,b=ou.apply(null,u),h&&(b=m.pastFuture(+this,b)),m.postformat(b)},op.toISOString=oh,op.toString=oh,op.toJSON=oh,op.locale=tT,op.localeData=tR,op.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oh),op.lang=tB,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ed("x",er),ed("X",/[+-]?\d+(\.\d{1,3})?/),eh("X",function(e,t,o){o._d=new Date(1e3*parseFloat(e))}),eh("x",function(e,t,o){o._d=new Date(em(e))}),t.version="2.30.1",$=ta,t.fn=tz,t.min=function(){var e=[].slice.call(arguments,0);return tl("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tl("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=u,t.unix=function(e){return ta(1e3*e)},t.months=function(e,t){return tK(e,t,"months")},t.isDate=l,t.locale=eX,t.invalid=h,t.duration=t_,t.isMoment=_,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=tu,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,r=eW;null!=eV[e]&&null!=eV[e].parentLocale?eV[e].set(S(eV[e]._config,t)):(null!=(n=eJ(e))&&(r=n._config),t=S(r,t),null==n&&(t.abbr=e),(o=new x(t)).parentLocale=eV[e],eV[e]=o),eX(e)}else null!=eV[e]&&(null!=eV[e].parentLocale?(eV[e]=eV[e].parentLocale,e===eX()&&eX(e)):null!=eV[e]&&delete eV[e]);return eV[e]},t.locales=function(){return z(eV)},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!==of[e]&&(void 0===t?of[e]:(of[e]=t,"s"===e&&(of.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=tz,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,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&r&&"function"==typeof r.get?r.get:null,a=n&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=c&&s&&"function"==typeof s.get?s.get:null,d=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,u="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,h=Object.prototype.toString,p=Function.prototype.toString,F=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,E=String.prototype.toLowerCase,_=RegExp.prototype.test,w=Array.prototype.concat,A=Array.prototype.join,k=Array.prototype.slice,C=Math.floor,D="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O?"object":"symbol")?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(1/0===e||-1/0===e||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-C(-e):C(e);if(n!==e){var r=String(n),i=g.call(t,r.length+1);return v.call(r,o,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,o,"$&_")}var I=o(6550),P=I.custom,L=H(P)?P: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!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function G(e){return"[object Array]"===V(e)&&$(e)}function q(e){return"[object RegExp]"===V(e)&&$(e)}function H(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,c){var s,h,y,_,C,S=n||{};if(W(S,"quoteStyle")&&!W(M,S.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(W(S,"maxStringLength")&&("number"==typeof S.maxStringLength?S.maxStringLength<0&&1/0!==S.maxStringLength:null!==S.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var P=!W(S,"customInspect")||S.customInspect;if("boolean"!=typeof P&&"symbol"!==P)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(S,"indent")&&null!==S.indent&&" "!==S.indent&&!(parseInt(S.indent,10)===S.indent&&S.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(S,"numericSeparator")&&"boolean"!=typeof S.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var z=S.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 r=U[o.quoteStyle||"single"];return r.lastIndex=0,j(v.call(v.call(t,r,"\\$1"),/[\x00-\x1f]/g,K),"single",o)}(t,S);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return z?N(t,et):et}if("bigint"==typeof t){var eo=String(t)+"n";return z?N(t,eo):eo}var en=void 0===S.depth?5:S.depth;if(void 0===r&&(r=0),r>=en&&en>0&&"object"==typeof t)return G(t)?"[Array]":"[Object]";var er=function(e,t){var o;if(" "===e.indent)o=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;o=A.call(Array(e.indent+1)," ")}return{base:o,prev:A.call(Array(t+1),o)}}(S,r);if(void 0===c)c=[];else if(Y(c,t)>=0)return"[Circular]";function ei(t,o,n){if(o&&(c=k.call(c)).push(o),n){var i={depth:S.depth};return W(S,"quoteStyle")&&(i.quoteStyle=S.quoteStyle),e(t,i,r+1,c)}return e(t,S,r+1,c)}if("function"==typeof t&&!q(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),ec=ee(t,ei);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(ec.length>0?" { "+A.call(ec,", ")+" }":"")}if(H(t)){var es=O?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||O?es:J(es)}if((el=t)&&"object"==typeof el&&("u">typeof HTMLElement&&el instanceof HTMLElement||"string"==typeof el.nodeName&&"function"==typeof el.getAttribute)){for(var el,ed,ef="<"+E.call(String(t.nodeName)),eu=t.attributes||[],em=0;em<eu.length;em++){ef+=" "+eu[em].name+"="+j((ed=eu[em].value,v.call(String(ed),/"/g,""")),"double",S)}return ef+=">",t.childNodes&&t.childNodes.length&&(ef+="..."),ef+="</"+E.call(String(t.nodeName))+">"}if(G(t)){if(0===t.length)return"[]";var eb=ee(t,ei);return er&&!function(e){for(var t=0;t<e.length;t++)if(Y(e[t],"\n")>=0)return!1;return!0}(eb)?"["+Z(eb,er)+"]":"[ "+A.call(eb,", ")+" ]"}if("[object Error]"===V(s=t)&&$(s)){var eh=ee(t,ei);return"cause"in Error.prototype||!("cause"in t)||B.call(t,"cause")?0===eh.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(eh,", ")+" }":"{ ["+String(t)+"] "+A.call(w.call("[cause]: "+ei(t.cause),eh),", ")+" }"}if("object"==typeof t&&P){if(L&&"function"==typeof t[L]&&I)return I(t,{depth:en-r});else if("symbol"!==P&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.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(ei(o,t,!0)+" => "+ei(e,t))}),Q("Map",i.call(t),ep,er)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.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(ei(e,t))}),Q("Set",l.call(t),eF,er)}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 WeakMap}catch(e){}return!1}(t))return X("WeakMap");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 WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!m||!e||"object"!=typeof e)return!1;try{return m.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===V(h=t)&&$(h))return J(ei(Number(t)));if(function(e){if(!e||"object"!=typeof e||!D)return!1;try{return D.call(e),!0}catch(e){}return!1}(t))return J(ei(D.call(t)));if("[object Boolean]"===V(y=t)&&$(y))return J(b.call(t));if("[object String]"===V(_=t)&&$(_))return J(ei(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]"===V(C=t)&&$(C))&&!q(t)){var eg=ee(t,ei),ev=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,ey=t instanceof Object?"":"null prototype",eE=!ev&&T&&Object(t)===t&&T in t?g.call(V(t),8,-1):ey?"Object":"",e_=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eE||ey?"["+A.call(w.call([],eE||[],ey||[]),": ")+"] ":"");return 0===eg.length?e_+"{}":er?e_+"{"+Z(eg,er)+"}":e_+"{ "+A.call(eg,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return z.call(e,t)}function V(e){return h.call(e)}function Y(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":"")+y.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):A.call(o,", "))+"}"}function Z(e,t){if(0===e.length)return"";var o="\n"+t.prev+t.base;return o+A.call(e,","+o)+"\n"+t.prev}function ee(e,t){var o,n=G(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):""}var a="function"==typeof S?S(e):[];if(O){o={};for(var c=0;c<a.length;c++)o["$"+a[c]]=a[c]}for(var s in e)if(W(e,s)&&(!n||String(Number(s))!==s||!(s<e.length)))if(O&&o["$"+s]instanceof Symbol)continue;else _.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e));if("function"==typeof S)for(var l=0;l<a.length;l++)B.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}},4461(e,t,o){e=o.nmd(e),(function(){"use strict";var n={function:!0,object:!0},r=n[typeof window]&&window||this,i=n[typeof t]&&t,a=n.object&&e&&!e.nodeType&&e,c=i&&a&&"object"==typeof o.g&&o.g;c&&(c.global===c||c.window===c||c.self===c)&&(r=c);var s=/\bOpera/,l=Object.prototype,d=l.hasOwnProperty,f=l.toString;function u(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function m(e){return e=g(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:u(e)}function b(e,t){for(var o in e)d.call(e,o)&&t(e[o],o,e)}function h(e){return null==e?u(e):f.call(e).slice(8,-1)}function p(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function F(e,t){var o=null,n=function(n,r){o=t(o,n,r,e)},r=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=0x1fffffffffffff)for(;++r<i;)n(e[r],r);else b(e,n);return o}function g(e){return String(e).replace(/^ +| +$/g,"")}function v(e){var t,o,n,i,a,c=r,l=e&&"object"==typeof e&&"String"!=h(e);l&&(c=e,e=null);var d=c.navigator||{},u=d.userAgent||"";e||(e=u);var y=l?!!d.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(f.toString()),E="Object",_=l&&c.java?"JavaPackage":h(c.java),w=/\bJava/.test(_)&&c.java,A=w&&h(c.environment)==(l?E:"Environment"),k=w?"a":"α",C=w?"b":"β",D=c.document||{},S=c.operamini||c.opera,x=s.test(x=l&&S?S["[[Class]]"]:h(S))?x:S=null,O=e,T=[],B=null,R=e==u,N=R&&S&&"function"==typeof S.version&&S.version(),I=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)}),P=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,r,i,a=o.pattern||p(o);return!t&&(t=RegExp("\\b"+a+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(n=t,r=o.label||o,i={"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&&r&&/^Win/i.test(n)&&!/^Windows Phone /i.test(n)&&(i=i[/[\d.]+$/.exec(n)])&&(n="Windows "+i),n=String(n),a&&r&&(n=n.replace(RegExp(a,"i"),r)),t=n=m(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=m(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(I&&(I=[I]),/\bAndroid\b/.test(U)&&!L&&(i=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(e))&&(L=g(i[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")),(i=/\bGoogle TV\b/.exec(L))&&(L=i[0]),/\bSimulator\b/i.test(e)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==P&&/\bOPiOS\b/.test(e)&&T.push("running in Turbo/Uncompressed mode"),"IE"==P&&/\blike iPhone OS\b/.test(e)?(M=(i=v(e.replace(/like iPhone OS/,""))).manufacturer,L=i.product):/^iP/.test(L)?(P||(P="Safari"),U="iOS"+((i=/ OS ([\d_]+)/i.exec(e))?" "+i[1].replace(/_/g,"."):"")):"Konqueror"==P&&/^Linux\b/i.test(U)?U="Kubuntu":M&&"Google"!=M&&(/Chrome/.test(P)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(L))||/\bAndroid\b/.test(U)&&/^Chrome/.test(P)&&/\bVersion\//i.test(e)?(P="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==P?(/\bMobi/i.test(e)||(U="Android",T.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&T.unshift("accelerated")):"UC Browser"==P&&/\bUCWEB\b/.test(e)?T.push("speed mode"):"PaleMoon"==P&&(i=/\bFirefox\/([\d.]+)\b/.exec(e))?T.push("identifying as Firefox "+i[1]):"Firefox"==P&&(i=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(U||(U="Firefox OS"),L||(L=i[1])):!P||(i=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(P))?(P&&!L&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(i+"/")+8))&&(P=null),(i=L||M||U)&&(L||M||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(P=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:i)+" Browser")):"Electron"==P&&(i=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&T.push("Chromium "+i),N||(N=$(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",p(P),"(?:Firefox|Minefield|NetFront)"])),(i="iCab"==I&&parseFloat(N)>3&&"WebKit"||/\bOpera\b/.test(P)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(I)&&"WebKit"||!I&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==I&&/\bPlayStation\b(?! Vita\b)/i.test(P)&&"NetFront")&&(I=[i]),"IE"==P&&(i=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(P+=" Mobile",U="Windows Phone "+(/\+$/.test(i)?i:i+".x"),T.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(P="IE Mobile",U="Windows Phone 8.x",T.unshift("desktop mode"),N||(N=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=P&&"Trident"==I&&(i=/\brv:([\d.]+)/.exec(e))&&(P&&T.push("identifying as "+P+(N?" "+N:"")),P="IE",N=i[1]),R){if(o="global",n=null!=(t=c)?typeof t[o]:"number",/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!t[o])h(i=c.runtime)==(l?E:"ScriptBridgingProxyObject")?(P="Adobe AIR",U=i.flash.system.Capabilities.os):h(i=c.phantom)==(l?E:"RuntimeObject")?(P="PhantomJS",N=(i=i.version||null)&&i.major+"."+i.minor+"."+i.patch):"number"==typeof D.documentMode&&(i=/\bTrident\/(\d+)/i.exec(e))?(N=[N,D.documentMode],(i=+i[1]+4)!=N[1]&&(T.push("IE "+N[1]+" mode"),I&&(I[1]=""),N[1]=i),N="IE"==P?String(N[1].toFixed(1)):N[0]):"number"==typeof D.documentMode&&/^(?:Chrome|Firefox)\b/.test(P)&&(T.push("masking as "+P+" "+N),P="IE",N="11.0",I=["Trident"],U="Windows");else if(w&&(O=(i=w.lang.System).getProperty("os.arch"),U=U||i.getProperty("os.name")+" "+i.getProperty("os.version")),A){try{N=c.require("ringo/engine").version.join("."),P="RingoJS"}catch(e){(i=c.system)&&i.global.system==c.system&&(P="Narwhal",U||(U=i[0].os||null))}P||(P="Rhino")}else"object"==typeof c.process&&!c.process.browser&&(i=c.process)&&("object"==typeof i.versions&&("string"==typeof i.versions.electron?(T.push("Node "+i.versions.node),P="Electron",N=i.versions.electron):"string"==typeof i.versions.nw&&(T.push("Chromium "+N,"Node "+i.versions.node),P="NW.js",N=i.versions.nw)),P||(P="Node.js",O=i.arch,U=i.platform,N=(N=/[\d.]+/.exec(i.version))?N[0]:null));U=U&&m(U)}if(N&&(i=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(N)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(R&&d.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(B=/b/i.test(i)?"beta":"alpha",N=N.replace(RegExp(i+"\\+?$"),"")+("beta"==B?C:k)+(/\d+\+?/.exec(i)||"")),"Fennec"==P||"Firefox"==P&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))P="Firefox Mobile";else if("Maxthon"==P&&N)N=N.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(U=null),"Xbox 360"==L&&/\bIEMobile\b/.test(e)&&T.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(P)||P&&!L&&!/Browser|Mobi/.test(P))&&("Windows CE"==U||/Mobi/i.test(e)))P+=" Mobile";else if("IE"==P&&R)try{null===c.external&&T.unshift("platform preview")}catch(e){T.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(e))&&(i=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||N)?(U=((i=[i,/BB10/.test(e)])[1]?(L=null,M="BlackBerry"):"Device Software")+" "+i[0],N=null):this!=b&&"Wii"!=L&&(R&&S||/Opera/.test(P)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==P&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==P&&(U&&!/^Win/.test(U)&&N>5.5||/\bWindows XP\b/.test(U)&&N>8||8==N&&!/\bTrident\b/.test(e)))&&!s.test(i=v.call(b,e.replace(s,"")+";"))&&i.name&&(i="ing as "+i.name+((i=i.version)?" "+i:""),s.test(P)?(/\bIE\b/.test(i)&&"Mac OS"==U&&(U=null),i="identify"+i):(i="mask"+i,P=x?m(x.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(i)&&(U=null),R||(N=null)),I=["Presto"],T.push(i));(i=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(i=[parseFloat(i.replace(/\.(\d)$/,".0$1")),i],"Safari"==P&&"+"==i[1].slice(-1)?(P="WebKit Nightly",B="alpha",N=i[1].slice(0,-1)):(N==i[1]||N==(i[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1]))&&(N=null),i[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==i[0]&&537.36==i[2]&&parseFloat(i[1])>=28&&"WebKit"==I&&(I=["Blink"]),R&&(y||i[1])?(I&&(I[1]="like Chrome"),i=i[1]||((i=i[0])<530?1:i<532?2:i<532.05?3:i<533?4:i<534.03?5:i<534.07?6:i<534.1?7:i<534.13?8:i<534.16?9:i<534.24?10:i<534.3?11:i<535.01?12:i<535.02?"13+":i<535.07?15:i<535.11?16:i<535.19?17:i<536.05?18:i<536.1?19:i<537.01?20:i<537.11?"21+":i<537.13?23:i<537.18?24:i<537.24?25:i<537.36?26:"Blink"!=I?"27":"28")):(I&&(I[1]="like Safari"),i=(i=i[0])<400?1:i<500?2:i<526?3:i<533?4:i<534?"4+":i<535?5:i<537?6:i<538?7:i<601?8:i<602?9:i<604?10:i<606?11:i<608?12:"12"),I&&(I[1]+=" "+(i+="number"==typeof i?".x":/[.+]/.test(i)?"":"+")),"Safari"==P&&(!N||parseInt(N)>45)?N=i:"Chrome"==P&&/\bHeadlessChrome/i.test(e)&&T.unshift("headless")),"Opera"==P&&(i=/\bzbov|zvav$/.exec(U))?(P+=" ",T.unshift("desktop mode"),"zvav"==i?(P+="Mini",N=null):P+="Mobile",U=U.replace(RegExp(" *"+i+"$"),"")):"Safari"==P&&/\bChrome\b/.exec(I&&I[1])?(T.unshift("desktop mode"),P="Chrome Mobile",N=null,/\bOS X\b/.test(U)?(M="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(P)&&!N&&(N=$("Chrome")),N&&0==N.indexOf(i=/[\d.]+$/.exec(U))&&e.indexOf("/"+i+"-")>-1&&(U=g(U.replace(i,""))),U&&-1!=U.indexOf(P)&&!RegExp(P+" OS").test(U)&&(U=U.replace(RegExp(" *"+p(P)+" *"),"")),I&&!/\b(?:Avant|Nook)\b/.test(P)&&(/Browser|Lunascape|Maxthon/.test(P)||"Safari"!=P&&/^iOS/.test(U)&&/\bSafari\b/.test(I[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(P)&&I[1])&&(i=I[I.length-1])&&T.push(i),T.length&&(T=["("+T.join("; ")+")"]),M&&L&&0>L.indexOf(M)&&T.push("on "+M),L&&T.push((/^on /.test(T[T.length-1])?"":"on ")+L),U&&(a=(i=/ ([\d.+]+)$/.exec(U))&&"/"==U.charAt(U.length-i[0].length-1),U={architecture:32,family:i&&!a?U.replace(i[0],""):U,version:i?i[1]:null,toString:function(){var e=this.version;return this.family+(e&&!a?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(i=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(O))&&!/\bi686\b/i.test(O)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+i),"")),P&&(/\bWOW64\b/i.test(e)||R&&/\w(?:86|32)$/.test(d.cpuClass||d.platform)&&!/\bWin64; x64\b/i.test(e))&&T.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==P&&parseFloat(N)>=39&&(U.architecture=64),e||(e=null);var G={};return G.description=e,G.layout=I&&I[0],G.manufacturer=M,G.name=P,G.prerelease=B,G.product=L,G.ua=e,G.version=P&&N,G.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},G.parse=v,G.toString=function(){return this.description||""},G.version&&T.unshift(N),G.name&&T.unshift(P),U&&P&&!(U==String(U).split(" ")[0]&&(U==P.split(" ")[0]||L))&&T.push(L?"("+U+")":"on "+U),T.length&&(G.description=T.join(" ")),G}var y=v();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(r.platform=y,define(function(){return y})):i&&a?b(y,function(e,t){i[t]=e}):r.platform=y}).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),r=o(4816);e.exports={formats:o(5539),parse:r,stringify:n}},4816(e,t,o){"use strict";var n=o(1954),r=Object.prototype.hasOwnProperty,i=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},c=function(e,t,o){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var n=0,r=e.indexOf(",");r>-1;){if((n+=1)>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");r=e.indexOf(",",r+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},s=function(e,t){var o={__proto__:null},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;s=s.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=1/0===t.parameterLimit?void 0:t.parameterLimit,d=s.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==l?l+1:l);if(t.throwOnLimitExceeded&&void 0!==l&&d.length>l)throw RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var f=-1,u=t.charset;if(t.charsetSentinel)for(m=0;m<d.length;++m)0===d[m].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[m]?u="utf-8":"utf8=%26%2310003%3B"===d[m]&&(u="iso-8859-1"),f=m,m=d.length);for(m=0;m<d.length;++m)if(m!==f){var m,b,h,p=d[m],F=p.indexOf("]="),g=-1===F?p.indexOf("="):F+1;if(-1===g?(b=t.decoder(p,a.decoder,u,"key"),h=t.strictNullHandling?null:""):null!==(b=t.decoder(p.slice(0,g),a.decoder,u,"key"))&&(h=n.maybeMap(c(p.slice(g+1),t,i(o[b])?o[b].length:0),function(e){return t.decoder(e,a.decoder,u,"value")})),h&&t.interpretNumericEntities&&"iso-8859-1"===u&&(h=String(h).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),p.indexOf("[]=")>-1&&(h=i(h)?[h]:h),t.comma&&i(h)&&h.length>t.arrayLimit&&(h=n.combine([],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==b){var v=r.call(o,b);v&&("combine"===t.duplicates||p.indexOf("[]=")>-1)?o[b]=n.combine(o[b],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):v&&"last"!==t.duplicates||(o[b]=h)}}return o},l=function(e,t,o,r){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=r?t:c(t,o,i),l=e.length-1;l>=0;--l){var d,f=e[l];if("[]"===f&&o.parseArrays)d=n.isOverflow(s)?s:o.allowEmptyArrays&&(""===s||o.strictNullHandling&&null===s)?[]:n.combine([],s,o.arrayLimit,o.plainObjects,o.throwOnLimitExceeded);else{d=o.plainObjects?{__proto__:null}:{};var u="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,m=o.decodeDotInKeys?u.replace(/%2E/g,"."):u,b=parseInt(m,10),h=!isNaN(b)&&f!==m&&String(b)===m&&b>=0&&o.parseArrays;if(o.parseArrays||""!==m)if(h&&b<o.arrayLimit)(d=[])[b]=s;else if(h&&o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");else h?(d[b]=s,n.markOverflow(d,b)):"__proto__"!==m&&(d[m]=s);else d={0:s}}s=d}return s},d=function(e,t){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;return[o]}var n=[],i=o.indexOf("["),a=i>=0?o.slice(0,i):o;if(a){if(!t.plainObjects&&r.call(Object.prototype,a)&&!t.allowPrototypes)return;n[n.length]=a}for(var c=o.length,s=i,l=0;s>=0&&l<t.depth;){for(var d=1,f=s+1,u=-1;f<c&&u<0;){var m=o.charCodeAt(f);91===m?d+=1:93===m&&0==(d-=1)&&(u=f),f+=1}if(u<0)return n[n.length]="["+o.slice(s)+"]",n;var b=o.slice(s,u+1),h=b.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,h)&&!t.allowPrototypes)return;n[n.length]=b,l+=1,s=o.indexOf("[",u+1)}if(s>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+o.slice(s)+"]"}return n},f=function(e,t,o,n){if(e){var r=d(e,o);if(r)return l(r,t,o,n)}},u=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=u(t);if(""===e||null==e)return o.plainObjects?{__proto__:null}:{};for(var r="string"==typeof e?s(e,o):e,i=o.plainObjects?{__proto__:null}:{},a=Object.keys(r),c=0;c<a.length;++c){var l=a[c],d=f(l,r[l],o,"string"==typeof e);i=n.merge(i,d,o)}return!0===o.allowSparse?i:n.compact(i)}},6334(e,t,o){"use strict";var n=o(6278),r=o(1954),i=o(5539),a=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,d=function(e,t){l.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,u=i.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:u,formatter:i.formatters[u],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},b={},h=function e(t,o,i,a,c,l,f,u,h,p,F,g,v,y,E,_,w,A,k,C){var D,S,x=t;if(C>k)throw RangeError("Input depth exceeded depth option of "+k);for(var O=A,T=0,B=!1;void 0!==(O=O.get(b))&&!B;){var R=O.get(t);if(T+=1,void 0!==R)if(R===T)throw RangeError("Cyclic object value");else B=!0;void 0===O.get(b)&&(T=0)}if((x="function"==typeof p?p(o,x):x)instanceof Date?x=v(x):"comma"===i&&s(x)&&(x=r.maybeMap(x,function(e){return e instanceof Date?v(e):e})),null===x){if(l)return E(h&&!_?h(o,m.encoder,w,"key",y):o);x=""}if("string"==typeof(D=x)||"number"==typeof D||"boolean"==typeof D||"symbol"==typeof D||"bigint"==typeof D||r.isBuffer(x))return h?[E(_?o:h(o,m.encoder,w,"key",y))+"="+E(h(x,m.encoder,w,"value",y))]:[E(o)+"="+E(String(x))];var N=[];if(void 0===x)return N;if("comma"===i&&s(x))_&&h&&(x=r.maybeMap(x,function(e){return null==e?e:h(e)})),S=[{value:x.length>0?x.join(",")||null:void 0}];else if(s(p))S=p;else{var I=Object.keys(x);S=F?I.sort(F):I}var P=u?String(o).replace(/\./g,"%2E"):String(o),L=a&&s(x)&&1===x.length?P+"[]":P;if(c&&s(x)&&0===x.length&&0===Object.keys(x).length)return L+"[]";for(var M=0;M<S.length;++M){var U=S[M],j="object"==typeof U&&U&&void 0!==U.value?U.value:x[U];if(!f||null!==j){var $=g&&u?String(U).replace(/\./g,"%2E"):String(U),G=s(x)?"function"==typeof i?i(L,$):L:L+(g?"."+$:"["+$+"]");A.set(t,T);var q=n();q.set(b,A),d(N,e(j,G,i,a,c,l,f,u,"comma"===i&&_&&s(x)?null:h,p,F,g,v,y,E,_,w,q,k,C+1))}}return N},p=function(e){if(!e)return m;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||m.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=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],l=m.filter;if(("function"==typeof e.filter||s(e.filter))&&(l=e.filter),t=e.arrayFormat in c?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":m.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||m.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:t,charset:o,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,depth:"number"==typeof e.depth?e.depth:m.depth,encode:"boolean"==typeof e.encode?e.encode:m.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:m.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:l,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}};e.exports=function(e,t){var o,r=e,i=p(t);"function"==typeof i.filter?r=(0,i.filter)("",r):s(i.filter)&&(o=i.filter);var a=[];if("object"!=typeof r||null===r)return"";var l=c[i.arrayFormat],f="comma"===l&&i.commaRoundTrip;o||(o=Object.keys(r)),i.sort&&o.sort(i.sort);for(var u=n(),m=0;m<o.length;++m){var b=o[m];if(null!=b){var F=r[b];i.skipNulls&&null===F||d(a,h(F,i.encodeDotInKeys?String(b).replace(/\./g,"%2E"):String(b),l,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,u,i.depth,0))}}var g=a.join(i.delimiter),v=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?v+="utf8=%26%2310003%3B"+i.delimiter:v+="utf8=%E2%9C%93"+i.delimiter),g.length>0?v+g:""}},1954(e,t,o){"use strict";var n=o(5539),r=o(6278),i=o(9997),a=Object.prototype.hasOwnProperty,c=Array.isArray,s=r(),l=function(e,t){return s.set(e,t),e},d=function(e){return s.has(e)},f=function(e){return s.get(e)},u=function(e,t){s.set(e,t)},m=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),b=function(e){for(;e.length>1;){var t=e.pop(),o=t.obj[t.prop];if(c(o)){for(var n=[],r=0;r<o.length;++r)void 0!==o[r]&&(n[n.length]=o[r]);t.obj[t.prop]=n}}},h=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&&i?i(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o};e.exports={arrayToObject:h,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,r){if(d(e)){if(r)throw RangeError("Array limit exceeded. Only "+o+" element"+(1===o?"":"s")+" allowed in an array.");for(var i=c(t)?t:[t],a=f(e),s=0;s<i.length;++s)e[a+=1]=i[s];return u(e,a),e}var m=[].concat(e,t);if(m.length>o){if(r)throw RangeError("Array limit exceeded. Only "+o+" element"+(1===o?"":"s")+" allowed in an array.");return l(h(m,{plainObjects:n}),m.length-1)}return m},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],o=r(),n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],c=Object.keys(a),s=0;s<c.length;++s){var l=c[s],d=a[l];"object"!=typeof d||null===d||o.has(d)||(t[t.length]={obj:a,prop:l},o.set(d,!0))}return b(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,r,i){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 c="",s=0;s<a.length;s+=1024){var l=a.length>=1024?a.slice(s,s+1024):a;if(s+1024<a.length){var d=l.charCodeAt(l.length-1);d>=55296&&d<=56319&&(l=l.slice(0,-1),s-=1)}for(var f=[],u=0;u<l.length;++u){var b=l.charCodeAt(u);if(45===b||46===b||95===b||126===b||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||i===n.RFC1738&&(40===b||41===b)){f[f.length]=l.charAt(u);continue}if(b<128){f[f.length]=m[b];continue}if(b<2048){f[f.length]=m[192|b>>6]+m[128|63&b];continue}if(b<55296||b>=57344){f[f.length]=m[224|b>>12]+m[128|b>>6&63]+m[128|63&b];continue}u+=1,b=65536+((1023&b)<<10|1023&l.charCodeAt(u)),f[f.length]=m[240|b>>18]+m[128|b>>12&63]+m[128|b>>6&63]+m[128|63&b]}c+=f.join("")}return c},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:l,maybeMap:function(e,t){if(c(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(c(t)){var r=t.length;if(n&&"number"==typeof n.arrayLimit&&r>=n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(h(t.concat(o),n),r)}t[r]=o}else if(!t||"object"!=typeof t)return[t,o];else if(d(t)){var i=f(t)+1;t[i]=o,u(t,i)}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 s=Object.keys(o),m=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},b=0;b<s.length;b++)m[parseInt(s[b],10)+1]=o[s[b]];return l(m,f(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 l(h(F,n),F.length-1)}return F}var g=t;if(c(t)&&!c(o)&&(g=h(t,n)),c(t)&&c(o)){if(o.forEach(function(o,r){if(a.call(t,r)){var i=t[r];i&&"object"==typeof i&&o&&"object"==typeof o?t[r]=e(i,o,n):t[t.length]=o}else t[r]=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 l(h(t,n),t.length-1)}return t}return Object.keys(o).reduce(function(t,r){var i=o[r];if(a.call(t,r)?p(t,r,e(t[r],i,n)):p(t,r,i),d(o)&&!d(t)&&l(t,f(o)),d(t)){var c=parseInt(r,10);String(c)===r&&c>=0&&c>f(t)&&u(t,c)}return t},g)}}},6521(e,t,o){"use strict";var n=o(3109),r=o(6757),i=function(e,t,o){for(var n,r=e;null!=(n=r.next);r=n)if(n.key===t)return r.next=n.next,o||(n.next=e.next,e.next=n),n},a=function(e,t){if(e){var o=i(e,t);return o&&o.value}},c=function(e,t,o){var n=i(e,t);n?n.value=o:e.next={key:t,next:e.next,value:o}},s=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+n(e))},delete:function(t){var o=s(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)&&!!i(o,t)},set:function(t,o){e||(e={next:void 0}),c(e,t,o)}};return t}},3977(e,t,o){"use strict";var n=o(4295),r=o(8682),i=o(3109),a=o(6757),c=n("%Map%",!0),s=r("Map.prototype.get",!0),l=r("Map.prototype.set",!0),d=r("Map.prototype.has",!0),f=r("Map.prototype.delete",!0),u=r("Map.prototype.size",!0);e.exports=!!c&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var o=f(e,t);return 0===u(e)&&(e=void 0),o}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,o){e||(e=new c),l(e,t,o)}};return t}},8965(e,t,o){"use strict";var n=o(4295),r=o(8682),i=o(3109),a=o(3977),c=o(6757),s=n("%WeakMap%",!0),l=r("WeakMap.prototype.get",!0),d=r("WeakMap.prototype.set",!0),f=r("WeakMap.prototype.has",!0),u=r("WeakMap.prototype.delete",!0);e.exports=s?function(){var e,t,o={assert:function(e){if(!o.has(e))throw new c("Side channel does not contain "+i(e))},delete:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return u(e,o)}else if(a&&t)return t.delete(o);return!1},get:function(o){return s&&o&&("object"==typeof o||"function"==typeof o)&&e?l(e,o):t&&t.get(o)},has:function(o){return s&&o&&("object"==typeof o||"function"==typeof o)&&e?f(e,o):!!t&&t.has(o)},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new s),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),r=o(3109),i=o(6521),a=o(3977),c=o(8965)||a||i;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":r(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=c()),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}(),r=n&&"a=1"===new n({a:1}).toString(),i=n&&"+"===new n("s=%2B").get("s"),a=n&&"size"in n.prototype,c="__URLSearchParams__",s=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),l=m.prototype,d=!!(e.Symbol&&e.Symbol.iterator);if(!n||!r||!i||!s||!a){l.append=function(e,t){g(this[c],e,t)},l.delete=function(e){delete this[c][e]},l.get=function(e){var t=this[c];return this.has(e)?t[e][0]:null},l.getAll=function(e){var t=this[c];return this.has(e)?t[e].slice(0):[]},l.has=function(e){return y(this[c],e)},l.set=function(e,t){this[c][e]=[""+t]},l.toString=function(){var e,t,o,n,r=this[c],i=[];for(t in r)for(o=b(t),e=0,n=r[t];e<n.length;e++)i.push(o+"="+b(n[e]));return i.join("&")};var f=e.Proxy&&n&&(!i||!s||!r||!a);f?(o=new Proxy(n,{construct:function(e,t){return new e(new m(t[0]).toString())}})).toString=Function.prototype.toString.bind(m):o=m,Object.defineProperty(e,"URLSearchParams",{value:o});var u=e.URLSearchParams.prototype;u.polyfill=!0,!f&&e.Symbol&&(u[e.Symbol.toStringTag]="URLSearchParams"),"forEach"in u||(u.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 u||(u.sort=function(){var e,t,o,n=F(this.toString()),r=[];for(e in n)r.push(e);for(r.sort(),t=0;t<r.length;t++)this.delete(r[t]);for(t=0;t<r.length;t++){var i=r[t],a=n[i];for(o=0;o<a.length;o++)this.append(i,a[o])}}),"keys"in u||(u.keys=function(){var e=[];return this.forEach(function(t,o){e.push(o)}),p(e)}),"values"in u||(u.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),p(e)}),"entries"in u||(u.entries=function(){var e=[];return this.forEach(function(t,o){e.push([o,t])}),p(e)}),d&&(u[e.Symbol.iterator]=u[e.Symbol.iterator]||u.entries),"size"in u||Object.defineProperty(u,"size",{get:function(){var e=F(this.toString());if(u===this)throw TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(e).reduce(function(t,o){return t+e[o].length},0)}})}function m(e){((e=e||"")instanceof URLSearchParams||e instanceof m)&&(e=e.toString()),this[c]=F(e)}function b(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function h(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 r in e)e.hasOwnProperty(r)&&g(t,r,e[r]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),a=0;a<i.length;a++){var c=i[a],s=c.indexOf("=");-1<s?g(t,h(c.slice(0,s)),h(c.slice(s+1))):c&&g(t,h(c),"")}}return t}function g(e,t,o){var n="string"==typeof o?o:null!=o&&"function"==typeof o.toString?o.toString():JSON.stringify(o);y(e,t)?e[t].push(n):e[t]=[n]}function v(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function y(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 r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.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 r=(t,n)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,[n]:t[r]})};r(t,"get"),r(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,r,i,a,c,s;o.r(n),o.d(n,{OrServices:()=>l9});var l,d,f,u,m,b,h,p,F,g,v,y,E,_,w,A,k,C,D,S,x,O,T,B,R,N,I,P,L,M,U,j,$,G,q,H,z,W,V,Y,K,J,X,Q,Z,ee,et,eo,en,er,ei,ea,ec,es,el,ed,ef,eu,em,eb,eh,ep,eF,eg,ev,ey,eE,e_,ew,eA,ek,eC,eD,eS,ex,eO,eT,eB,eR,eN,eI,eP,eL,eM,eU,ej,e$,eG,eq,eH,ez,eW,eV,eY,eK,eJ,eX,eQ,eZ,e0,e1,e2,e5,e3,e4,e6,e8,e9,e7,te,tt,to,tn,tr,ti,ta,tc,ts,tl,td,tf,tu,tm,tb,th,tp,tF,tg,tv,ty,tE,t_,tw,tA,tk,tC,tD,tS,tx,tO,tT,tB,tR,tN,tI,tP,tL,tM={};o.r(tM),o.d(tM,{hasBrowserEnv:()=>r4,hasStandardBrowserEnv:()=>r8,hasStandardBrowserWebWorkerEnv:()=>r9,navigator:()=>r6,origin:()=>r7});let tU=globalThis,tj=tU.ShadowRoot&&(void 0===tU.ShadyCSS||tU.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,t$=Symbol(),tG=new WeakMap;class tq{constructor(e,t,o){if(this._$cssResult$=!0,o!==t$)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(tj&&void 0===e){let o=void 0!==t&&1===t.length;o&&(e=tG.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&tG.set(t,e))}return e}toString(){return this.cssText}}let tH=e=>new tq("string"==typeof e?e:e+"",void 0,t$),tz=(e,...t)=>new tq(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,t$),tW=(e,t)=>{if(tj)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let o of t){let t=document.createElement("style"),n=tU.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=o.cssText,e.appendChild(t)}},tV=tj?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return tH(t)})(e):e,{is:tY,defineProperty:tK,getOwnPropertyDescriptor:tJ,getOwnPropertyNames:tX,getOwnPropertySymbols:tQ,getPrototypeOf:tZ}=Object,t0=globalThis,t1=t0.trustedTypes,t2=t1?t1.emptyScript:"",t5=t0.reactiveElementPolyfillSupport,t3={toAttribute(e,t){switch(t){case Boolean:e=e?t2: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}},t4=(e,t)=>!tY(e,t),t6={attribute:!0,type:String,converter:t3,reflect:!1,useDefault:!1,hasChanged:t4};Symbol.metadata??=Symbol("metadata"),t0.litPropertyMetadata??=new WeakMap;class t8 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=t6){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&&tK(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:r}=tJ(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){let i=n?.call(this);r?.call(this,t),this.requestUpdate(e,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??t6}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=tZ(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[...tX(e),...tQ(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(tV(o));else void 0!==e&&t.push(tV(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 tW(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 r=(void 0!==o.converter?.toAttribute?o.converter:t3).toAttribute(t,o.type);this._$Em=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),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),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:t3;this._$Em=n;let i=r.fromAttribute(t,e.type);this[n]=i??this._$Ej?.get(n)??i,this._$Em=null}}requestUpdate(e,t,o){if(void 0!==e){let n=this.constructor,r=this[e];if(!(((o??=n.getPropertyOptions(e)).hasChanged??t4)(r,t)||o.useDefault&&o.reflect&&r===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:r},i){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),!0!==r||void 0!==i)||(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){}}t8.elementStyles=[],t8.shadowRootOptions={mode:"open"},t8.elementProperties=new Map,t8.finalized=new Map,t5?.({ReactiveElement:t8}),(t0.reactiveElementVersions??=[]).push("2.1.1");let t9=globalThis,t7=t9.trustedTypes,oe=t7?t7.createPolicy("lit-html",{createHTML:e=>e}):void 0,ot="$lit$",oo=`lit$${Math.random().toFixed(9).slice(2)}$`,on="?"+oo,or=`<${on}>`,oi=document,oa=()=>oi.createComment(""),oc=e=>null===e||"object"!=typeof e&&"function"!=typeof e,os=Array.isArray,ol="[ \n\f\r]",od=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,of=/-->/g,ou=/>/g,om=RegExp(`>|${ol}(?:([^\\s"'>=/]+)(${ol}*=${ol}*(?:[^
|
|
2
2
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),ob=/'/g,oh=/"/g,op=/^(?:script|style|textarea|title)$/i,oF=(e,...t)=>({_$litType$:1,strings:e,values:t}),og=Symbol.for("lit-noChange"),ov=Symbol.for("lit-nothing"),oy=new WeakMap,oE=oi.createTreeWalker(oi,129);function o_(e,t){if(!os(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==oe?oe.createHTML(t):t}class ow{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let r=0,i=0;const a=e.length-1,c=this.parts,[s,l]=((e,t)=>{let o=e.length-1,n=[],r,i=2===t?"<svg>":3===t?"<math>":"",a=od;for(let t=0;t<o;t++){let o=e[t],c,s,l=-1,d=0;for(;d<o.length&&(a.lastIndex=d,null!==(s=a.exec(o)));)d=a.lastIndex,a===od?"!--"===s[1]?a=of:void 0!==s[1]?a=ou:void 0!==s[2]?(op.test(s[2])&&(r=RegExp("</"+s[2],"g")),a=om):void 0!==s[3]&&(a=om):a===om?">"===s[0]?(a=r??od,l=-1):void 0===s[1]?l=-2:(l=a.lastIndex-s[2].length,c=s[1],a=void 0===s[3]?om:'"'===s[3]?oh:ob):a===oh||a===ob?a=om:a===of||a===ou?a=od:(a=om,r=void 0);let f=a===om&&e[t+1].startsWith("/>")?" ":"";i+=a===od?o+or:l>=0?(n.push(c),o.slice(0,l)+ot+o.slice(l)+oo+f):o+oo+(-2===l?t:f)}return[o_(e,i+(e[o]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]})(e,t);if(this.el=ow.createElement(s,o),oE.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=oE.nextNode())&&c.length<a;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(ot)){const t=l[i++],o=n.getAttribute(e).split(oo),a=/([.?@])?(.*)/.exec(t);c.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?oS:"?"===a[1]?ox:"@"===a[1]?oO:oD}),n.removeAttribute(e)}else e.startsWith(oo)&&(c.push({type:6,index:r}),n.removeAttribute(e));if(op.test(n.tagName)){const e=n.textContent.split(oo),t=e.length-1;if(t>0){n.textContent=t7?t7.emptyScript:"";for(let o=0;o<t;o++)n.append(e[o],oa()),oE.nextNode(),c.push({type:2,index:++r});n.append(e[t],oa())}}}else if(8===n.nodeType)if(n.data===on)c.push({type:2,index:r});else{let e=-1;for(;-1!==(e=n.data.indexOf(oo,e+1));)c.push({type:7,index:r}),e+=oo.length-1}r++}}static createElement(e,t){let o=oi.createElement("template");return o.innerHTML=e,o}}function oA(e,t,o=e,n){if(t===og)return t;let r=void 0!==n?o._$Co?.[n]:o._$Cl,i=oc(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),void 0===i?r=void 0:(r=new i(e))._$AT(e,o,n),void 0!==n?(o._$Co??=[])[n]=r:o._$Cl=r),void 0!==r&&(t=oA(e,r._$AS(e,t.values),r,n)),t}class ok{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??oi).importNode(t,!0);oE.currentNode=n;let r=oE.nextNode(),i=0,a=0,c=o[0];for(;void 0!==c;){if(i===c.index){let t;2===c.type?t=new oC(r,r.nextSibling,this,e):1===c.type?t=new c.ctor(r,c.name,c.strings,this,e):6===c.type&&(t=new oT(r,this,e)),this._$AV.push(t),c=o[++a]}i!==c?.index&&(r=oE.nextNode(),i++)}return oE.currentNode=oi,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 oC{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=ov,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){let o;oc(e=oA(this,e,t))?e===ov||null==e||""===e?(this._$AH!==ov&&this._$AR(),this._$AH=ov):e!==this._$AH&&e!==og&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):os(o=e)||"function"==typeof o?.[Symbol.iterator]?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!==ov&&oc(this._$AH)?this._$AA.nextSibling.data=e:this.T(oi.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=ow.createElement(o_(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let e=new ok(n,this),o=e.u(this.options);e.p(t),this.T(o),this._$AH=e}}_$AC(e){let t=oy.get(e.strings);return void 0===t&&oy.set(e.strings,t=new ow(e)),t}k(e){os(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let r of e)n===t.length?t.push(o=new oC(this.O(oa()),this.O(oa()),this,this.options)):o=t[n],o._$AI(r),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 oD{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,r){this.type=1,this._$AH=ov,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ov}_$AI(e,t=this,o,n){let r=this.strings,i=!1;if(void 0===r)(i=!oc(e=oA(this,e,t,0))||e!==this._$AH&&e!==og)&&(this._$AH=e);else{let n,a,c=e;for(e=r[0],n=0;n<r.length-1;n++)(a=oA(this,c[o+n],t,n))===og&&(a=this._$AH[n]),i||=!oc(a)||a!==this._$AH[n],a===ov?e=ov:e!==ov&&(e+=(a??"")+r[n+1]),this._$AH[n]=a}i&&!n&&this.j(e)}j(e){e===ov?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class oS extends oD{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ov?void 0:e}}class ox extends oD{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ov)}}class oO extends oD{constructor(e,t,o,n,r){super(e,t,o,n,r),this.type=5}_$AI(e,t=this){if((e=oA(this,e,t,0)??ov)===og)return;let o=this._$AH,n=e===ov&&o!==ov||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,r=e!==ov&&(o===ov||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 oT{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){oA(this,e)}}let oB=t9.litHtmlPolyfillSupport;oB?.(ow,oC),(t9.litHtmlVersions??=[]).push("3.3.1");let oR=(e,t,o)=>{let n=o?.renderBefore??t,r=n._$litPart$;if(void 0===r){let e=o?.renderBefore??null;n._$litPart$=r=new oC(t.insertBefore(oa(),e),e,void 0,o??{})}return r._$AI(e),r},oN=globalThis;class oI extends t8{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=oR(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return og}}oI._$litElement$=!0,oI.finalized=!0,oN.litElementHydrateSupport?.({LitElement:oI});let oP=oN.litElementPolyfillSupport;oP?.({LitElement:oI}),(oN.litElementVersions??=[]).push("4.2.1");let oL=tz`
|
|
3
3
|
h4 {
|
|
4
4
|
margin: 0;
|
|
@@ -7,7 +7,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
7
7
|
font-weight: 600;
|
|
8
8
|
line-height: 125.303%;
|
|
9
9
|
}
|
|
10
|
-
`;class oM extends oI{static finalizeStyles(e){return[oL,...super.finalizeStyles(e)]}}let oU=e=>(t,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},oj={attribute:!0,type:String,converter:t5,reflect:!1,hasChanged:t4};function o$(e){return(t,o)=>{let n;return"object"==typeof o?((e=oj,t,o)=>{let{kind:n,metadata:r}=o,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),i.set(o.name,e),"accessor"===n){let{name:n}=o;return{set(o){let r=t.get.call(this);t.set.call(this,o),this.requestUpdate(n,r,e)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){let{name:n}=o;return function(o){let r=this[n];t.call(this,o),this.requestUpdate(n,r,e)}}throw Error("Unsupported decorator location: "+n)})(e,t,o):(n=t.hasOwnProperty(o),t.constructor.createProperty(o,e),n?Object.getOwnPropertyDescriptor(t,o):void 0)}}function oG(e){return o$({...e,state:!0,attribute:!1})}let oq=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o);function oH(t){return(o,n)=>oq(o,n,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function oz(e){return(t,o)=>{let{slot:n,selector:r}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return oq(t,o,{get(){let t=this.renderRoot?.querySelector(i),o=t?.assignedElements(e)??[];return void 0===r?o:o.filter(e=>e.matches(r))}})}}o(4532),(m=eO||(eO={})).CREATE="CREATE",m.UPDATE="UPDATE",m.DELETE="DELETE",(b=eT||(eT={})).LOW="LOW",b.MEDIUM="MEDIUM",b.HIGH="HIGH",(h=eB||(eB={})).MANUAL="MANUAL",h.CLIENT="CLIENT",h.GLOBAL_RULESET="GLOBAL_RULESET",h.REALM_RULESET="REALM_RULESET",h.ASSET_RULESET="ASSET_RULESET",h.AGENT="AGENT",(p=eR||(eR={})).OPEN="OPEN",p.ACKNOWLEDGED="ACKNOWLEDGED",p.IN_PROGRESS="IN_PROGRESS",p.RESOLVED="RESOLVED",p.CLOSED="CLOSED",(F=eN||(eN={})).BOTTOM_LEFT="BOTTOM_LEFT",F.BOTTOM_RIGHT="BOTTOM_RIGHT",F.TOP_LEFT="TOP_LEFT",F.TOP_RIGHT="TOP_RIGHT",(g=eI||(eI={})).CREATE="CREATE",g.READ="READ",g.UPDATE="UPDATE",g.DELETE="DELETE",(v=eP||(eP={})).NONE="NONE",v.FORECAST="FORECAST",v.SETPOINT="SETPOINT",(y=eL||(eL={})).DISCONNECTED="DISCONNECTED",y.CONNECTING="CONNECTING",y.DISCONNECTING="DISCONNECTING",y.CONNECTED="CONNECTED",y.DISABLED="DISABLED",y.WAITING="WAITING",y.ERROR="ERROR",y.STOPPED="STOPPED",(E=eM||(eM={})).REQUEST_START="REQUEST_START",E.REQUEST_REPEATING="REQUEST_REPEATING",E.REQUEST_CANCEL="REQUEST_CANCEL",E.READY="READY",E.COMPLETED="COMPLETED",E.RUNNING="RUNNING",E.CANCELLED="CANCELLED",(_=eU||(eU={})).TOGGLE="TOGGLE",_.INCREMENT="INCREMENT",_.DECREMENT="DECREMENT",_.NEGATE="NEGATE",(w=ej||(ej={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",w.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",w.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",w.INVALID_VALUE="INVALID_VALUE",w.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",w.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",w.CANNOT_PROCESS="CANNOT_PROCESS",w.QUEUE_FULL="QUEUE_FULL",w.UNKNOWN="UNKNOWN",w.ASSET_ID_MISSING="ASSET_ID_MISSING",w.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(A=e$||(e$={})).PUBLIC="PUBLIC",A.SHARED="SHARED",A.PRIVATE="PRIVATE",(k=eG||(eG={})).OFF="OFF",k.ONE_MIN="ONE_MIN",k.FIVE_MIN="FIVE_MIN",k.QUARTER="QUARTER",k.ONE_HOUR="ONE_HOUR",(C=eq||(eq={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",C.KEEP_LAYOUT="KEEP_LAYOUT",C.REDIRECT="REDIRECT",C.BLOCK_DEVICE="BLOCK_DEVICE",(D=eH||(eH={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(S=ez||(ez={})).MINUTE="MINUTE",S.HOUR="HOUR",S.DAY="DAY",S.WEEK="WEEK",S.MONTH="MONTH",S.YEAR="YEAR",(x=eW||(eW={})).MIN="MIN",x.AVG="AVG",x.MAX="MAX",x.DIFFERENCE="DIFFERENCE",x.COUNT="COUNT",x.SUM="SUM",x.MODE="MODE",x.MEDIAN="MEDIAN",(O=eV||(eV={})).TERMINATING="TERMINATING",O.DISABLED="DISABLED",O.ALREADY_CONNECTED="ALREADY_CONNECTED",O.UNRECOGNISED="UNRECOGNISED",O.PERMANENT_ERROR="PERMANENT_ERROR",O.SYNC_ERROR="SYNC_ERROR",(T=eY||(eY={})).HTTPS="HTTPS",T.HTTP="HTTP",T.TCP="TCP",(B=eK||(eK={})).GET="GET",B.POST="POST",B.PUT="PUT",B.DELETE="DELETE",B.OPTIONS="OPTIONS",B.PATCH="PATCH",(R=eJ||(eJ={})).KEYCLOAK="KEYCLOAK",R.NONE="NONE",(N=eX||(eX={})).WEBSOCKET="WEBSOCKET",N.POLLING="POLLING",(I=eQ||(eQ={})).INTERNAL="INTERNAL",I.CLIENT="CLIENT",I.GLOBAL_RULESET="GLOBAL_RULESET",I.REALM_RULESET="REALM_RULESET",I.ASSET_RULESET="ASSET_RULESET",(P=eZ||(eZ={})).REALM="REALM",P.USER="USER",P.ASSET="ASSET",P.CUSTOM="CUSTOM",(L=e0||(e0={})).NORMAL="NORMAL",L.HIGH="HIGH",(M=e1||(e1={})).DEVICE="DEVICE",M.TOPIC="TOPIC",M.CONDITION="CONDITION",(U=e2||(e2={})).ALWAYS="ALWAYS",U.ONCE="ONCE",U.HOURLY="HOURLY",U.DAILY="DAILY",U.WEEKLY="WEEKLY",U.MONTHLY="MONTHLY",U.ANNUALLY="ANNUALLY",(j=e3||(e3={})).TITLE="TITLE",j.SOURCE="SOURCE",j.STATUS="STATUS",j.SENT_ON="SENT_ON",j.DELIVERED_ON="DELIVERED_ON",($=e5||(e5={})).MESSAGE_INVALID="MESSAGE_INVALID",$.CERTIFICATE_INVALID="CERTIFICATE_INVALID",$.UNAUTHORIZED="UNAUTHORIZED",$.FORBIDDEN="FORBIDDEN",$.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",$.CONFIG_DISABLED="CONFIG_DISABLED",$.USER_DISABLED="USER_DISABLED",$.SERVER_ERROR="SERVER_ERROR",$.ASSET_ERROR="ASSET_ERROR",$.SERVER_BUSY="SERVER_BUSY",(G=e4||(e4={})).PRIVATE="PRIVATE",G.PROTECTED="PROTECTED",G.PUBLIC="PUBLIC",(q=e6||(e6={})).EXACT="EXACT",q.BEGIN="BEGIN",q.END="END",q.CONTAINS="CONTAINS",(H=e8||(e8={})).EQUALS="EQUALS",H.GREATER_THAN="GREATER_THAN",H.GREATER_EQUALS="GREATER_EQUALS",H.LESS_THAN="LESS_THAN",H.LESS_EQUALS="LESS_EQUALS",H.BETWEEN="BETWEEN",(z=e9||(e9={})).CREATED_ON="CREATED_ON",z.NAME="NAME",z.ASSET_TYPE="ASSET_TYPE",z.PARENT_ID="PARENT_ID",z.REALM="REALM",(W=e7||(e7={})).RESTRICTED="RESTRICTED",W.LINKED="LINKED",W.REALM="REALM",(V=te||(te={})).AT_LEAST_ONE="AT_LEAST_ONE",V.ALL="ALL",V.NONE="NONE",(Y=tt||(tt={})).AND="AND",Y.OR="OR",(K=to||(to={})).CREATED_ON="CREATED_ON",K.FIRST_NAME="FIRST_NAME",K.LAST_NAME="LAST_NAME",K.USERNAME="USERNAME",K.EMAIL="EMAIL",(J=tn||(tn={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.ERROR="ERROR",(X=tr||(tr={})).JAVASCRIPT="JAVASCRIPT",X.GROOVY="GROOVY",X.JSON="JSON",X.FLOW="FLOW",(Q=ti||(ti={})).READY="READY",Q.DEPLOYED="DEPLOYED",Q.COMPILATION_ERROR="COMPILATION_ERROR",Q.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",Q.EXECUTION_ERROR="EXECUTION_ERROR",Q.LOOP_ERROR="LOOP_ERROR",Q.DISABLED="DISABLED",Q.PAUSED="PAUSED",Q.EXPIRED="EXPIRED",Q.REMOVED="REMOVED",Q.EMPTY="EMPTY",(Z=ta||(ta={})).SUNRISE="SUNRISE",Z.SUNSET="SUNSET",Z.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Z.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Z.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Z.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Z.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Z.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Z.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Z.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Z.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Z.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Z.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Z.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Z.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Z.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Z.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Z.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Z.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Z.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(ee=tc||(tc={})).NUMBER="NUMBER",ee.NUMBER_ARRAY="NUMBER_ARRAY",ee.STRING="STRING",ee.BOOLEAN="BOOLEAN",ee.TRIGGER="TRIGGER",ee.COLOR="COLOR",ee.ANY="ANY",(et=ts||(ts={})).NEW_LINE="NEW_LINE",et.SPACER="SPACER",(eo=tl||(tl={})).INPUT="INPUT",eo.PROCESSOR="PROCESSOR",eo.OUTPUT="OUTPUT",eo.THEN="THEN",(en=td||(td={})).TEXT="TEXT",en.MULTILINE="MULTILINE",en.NUMBER="NUMBER",en.DROPDOWN="DROPDOWN",en.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",en.CHECKBOX="CHECKBOX",en.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",en.COLOR="COLOR",en.DATE="DATE",(er=tf||(tf={})).ADD="ADD",er.ADD_OR_REPLACE="ADD_OR_REPLACE",er.REPLACE="REPLACE",er.DELETE="DELETE",er.CLEAR="CLEAR",(ei=tu||(tu={})).PER_ASSET="PER_ASSET",ei.GLOBAL="GLOBAL",(ea=tm||(tm={})).READ_ADMIN="read:admin",ea.READ_LOGS="read:logs",ea.READ_USERS="read:users",ea.READ_MAP="read:map",ea.READ_ASSETS="read:assets",ea.READ_RULES="read:rules",ea.READ_INSIGHTS="read:insights",ea.READ_ALARMS="read:alarms",ea.READ_NOTIFICATIONS="read:notifications",ea.READ_SERVICES="read:services",ea.WRITE_SERVICES="write:services",ea.WRITE_USER="write:user",ea.WRITE_ADMIN="write:admin",ea.WRITE_LOGS="write:logs",ea.WRITE_ASSETS="write:assets",ea.WRITE_ATTRIBUTES="write:attributes",ea.WRITE_RULES="write:rules",ea.WRITE_INSIGHTS="write:insights",ea.WRITE_ALARMS="write:alarms",ea.WRITE_NOTIFICATIONS="write:notifications",ea.READ="read",ea.WRITE="write",(ec=tb||(tb={})).REGISTER="REGISTER",ec.UPDATE="UPDATE",ec.DEREGISTER="DEREGISTER",(es=th||(th={})).AVAILABLE="AVAILABLE",es.UNAVAILABLE="UNAVAILABLE",(el=tp||(tp={})).ASSET="ASSET",el.AGENT="AGENT",el.NOTIFICATION="NOTIFICATION",el.ALARM="ALARM",el.RULES="RULES",el.PROTOCOL="PROTOCOL",el.GATEWAY="GATEWAY",el.MODEL_AND_VALUES="MODEL_AND_VALUES",el.API="API",el.DATA="DATA",(ed=tF||(tF={})).INFO="INFO",ed.WARN="WARN",ed.ERROR="ERROR",(ef=tg||(tg={})).NUMERIC="numeric",ef.DIGIT_2="2-digit",ef.FULL="full",ef.LONG="long",ef.MEDIUM="medium",ef.SHORT="short",ef.NARROW="narrow",(eu=tv||(tv={})).SECONDLY="SECONDLY",eu.MINUTELY="MINUTELY",eu.HOURLY="HOURLY",eu.DAILY="DAILY",eu.WEEKLY="WEEKLY",eu.MONTHLY="MONTHLY",eu.YEARLY="YEARLY",(em=ty||(ty={})).OMIT="OMIT",em.BACKWARD="BACKWARD",em.FORWARD="FORWARD",(eb=tE||(tE={})).JAPANESE="JAPANESE",eb.BUDDHIST="BUDDHIST",eb.ROC="ROC",eb.ISLAMIC="ISLAMIC",eb.ISO8601="ISO8601",eb.CHINESE="CHINESE",eb.ETHIOPIC="ETHIOPIC",eb.HEBREW="HEBREW",eb.GREGORIAN="GREGORIAN",(eh=t_||(t_={})).SU="SU",eh.MO="MO",eh.TU="TU",eh.WE="WE",eh.TH="TH",eh.FR="FR",eh.SA="SA",(ep=tw||(tw={})).PEOPLECOUNTERASSET="PeopleCounterAsset",ep.MAILAGENT="MailAgent",ep.UDPAGENT="UDPAgent",ep.ROOMASSET="RoomAsset",ep.CITYASSET="CityAsset",ep.VENTILATIONASSET="VentilationAsset",ep.TRADFRILIGHTASSET="TradfriLightAsset",ep.CONSOLEASSET="ConsoleAsset",ep.PRESENCESENSORASSET="PresenceSensorAsset",ep.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",ep.LIGHTASSET="LightAsset",ep.KNXAGENT="KNXAgent",ep.THETHINGSSTACKAGENT="TheThingsStackAgent",ep.PLUGASSET="PlugAsset",ep.CHIRPSTACKAGENT="ChirpStackAgent",ep.WEATHERASSET="WeatherAsset",ep.THINGASSET="ThingAsset",ep.WEBSOCKETAGENT="WebsocketAgent",ep.TCPAGENT="TCPAgent",ep.GATEWAYASSET="GatewayAsset",ep.SERIALAGENT="SerialAgent",ep.BLUETOOTHMESHAGENT="BluetoothMeshAgent",ep.PARKINGASSET="ParkingAsset",ep.TRADFRIPLUGASSET="TradfriPlugAsset",ep.SIMULATORAGENT="SimulatorAgent",ep.SNMPAGENT="SNMPAgent",ep.GROUPASSET="GroupAsset",ep.BUILDINGASSET="BuildingAsset",ep.MODBUSSERIALAGENT="ModbusSerialAgent",ep.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",ep.MQTTAGENT="MQTTAgent",ep.VELBUSTCPAGENT="VelbusTCPAgent",ep.ARTNETLIGHTASSET="ArtnetLightAsset",ep.VELBUSSERIALAGENT="VelbusSerialAgent",ep.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",ep.MICROPHONEASSET="MicrophoneAsset",ep.MODBUSTCPAGENT="ModbusTcpAgent",ep.ZWAVEAGENT="ZWaveAgent",ep.HTTPAGENT="HTTPAgent",ep.DOORASSET="DoorAsset",ep.THERMOSTATASSET="ThermostatAsset",ep.SHIPASSET="ShipAsset",(eF=tA||(tA={})).COLOURRGB="colourRGB",eF.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",eF.PRICEHOURLY="priceHourly",eF.MQTTPORT="MQTTPort",eF.PINGDISABLED="pingDisabled",eF.FLOW="flow",eF.CHILDASSETTYPE="childAssetType",eF.LASTACCESS="lastAccess",eF.POSITION="position",eF.NETWORKKEY="networkKey",eF.UNIVERSE="universe",eF.ROUTINGMODE="routingMode",eF.MSSINUMBER="MSSINumber",eF.LASTWILLRETAIN="lastWillRetain",eF.LASTWILLTOPIC="lastWillTopic",eF.SERIALBAUDRATE="serialBaudrate",eF.SUBSCRIBEQOS="subscribeQos",eF.LEDCOUNT="lEDCount",eF.LOCKED="locked",eF.CLOUDCOVERAGE="cloudCoverage",eF.BASEURL="baseURL",eF.PROTOCOL="protocol",eF.REQUIREDVALUES="requiredValues",eF.REGION="region",eF.CONSOLEPLATFORM="consolePlatform",eF.GATEWAYSTATUS="gatewayStatus",eF.NO2LEVEL="NO2Level",eF.ATMOSPHERICPRESSURE="atmosphericPressure",eF.SERIALPORT="serialPort",eF.APPLICATIONID="applicationId",eF.TAGS="tags",eF.UNLOCK="unlock",eF.CHECKINTERVALSECONDS="checkIntervalSeconds",eF.LOCATION="location",eF.CLIENTSECRET="clientSecret",eF.WINDDIRECTION="windDirection",eF.WINDSPEED="windSpeed",eF.PARTICLESPM10="particlesPM10",eF.APPLICATIONKEY="applicationKey",eF.LENGTH="length",eF.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",eF.USERNAMEPASSWORD="usernamePassword",eF.WATERLEVEL="waterLevel",eF.CONNECTHEADERS="connectHeaders",eF.CONSOLENAME="consoleName",eF.WEBSOCKETQUERY="websocketQuery",eF.PREFERHTML="preferHTML",eF.PARITY="parity",eF.COOLING="cooling",eF.POLLINGMILLIS="pollingMillis",eF.SOILTEMPERATURE="soilTemperature",eF.SUNIRRADIANCE="sunIrradiance",eF.MESSAGEMAXLENGTH="messageMaxLength",eF.WINDGUSTSPEED="windGustSpeed",eF.LIGHTID="lightId",eF.PROXYADDRESS="proxyAddress",eF.REQUESTQUERYPARAMETERS="requestQueryParameters",eF.MQTTHOST="MQTTHost",eF.SECUREGRPC="secureGRPC",eF.MODEL="model",eF.STREET="street",eF.MANUFACTURER="manufacturer",eF.DELETEPROCESSEDMAIL="deleteProcessedMail",eF.RESUMESESSION="resumeSession",eF.ONOFF="onOff",eF.APIKEY="ApiKey",eF.CITY="city",eF.PRESENCE="presence",eF.SPACESOCCUPIED="spacesOccupied",eF.STARTTLS="startTLS",eF.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",eF.WEBSOCKETPATH="websocketPath",eF.AGENTSTATUS="agentStatus",eF.PRICEDAILY="priceDaily",eF.COUNTGROWTHMINUTE="countGrowthMinute",eF.IMONUMBER="IMONumber",eF.ATTRIBUTION="Attribution",eF.TENANTID="tenantId",eF.REQUESTHEADERS="requestHeaders",eF.HOST="host",eF.COUNTOUTMINUTE="countOutMinute",eF.MESSAGECHARSET="messageCharset",eF.CERTIFICATEALIAS="certificateAlias",eF.EMAIL="email",eF.BINDPORT="bindPort",eF.CONSOLEVERSION="consoleVersion",eF.PARTICLESPM1="particlesPM1",eF.MTU="mtu",eF.SPEED="speed",eF.MESSAGESTRIPDELIMITER="messageStripDelimiter",eF.AREA="area",eF.COUNTRY="country",eF.SHIPTYPE="shipType",eF.CONNECTSUBSCRIPTIONS="connectSubscriptions",eF.RELATIVEHUMIDITY="relativeHumidity",eF.SOURCEADDRESS="sourceAddress",eF.RAINFALL="rainfall",eF.OAUTHGRANT="oAuthGrant",eF.OZONELEVEL="ozoneLevel",eF.SEQUENCENUMBER="sequenceNumber",eF.COUNTINMINUTE="countInMinute",eF.PORT="port",eF.SUNALTITUDE="sunAltitude",eF.COUNTOUT="countOut",eF.ROOMNUMBER="roomNumber",eF.TUNNELINGSUPPORTED="tunnelingSupported",eF.ENINUMBER="ENINumber",eF.PARTICLESPM2_5="particlesPM2_5",eF.AGENTDISABLED="agentDisabled",eF.DISABLED="disabled",eF.COUNTIN="countIn",eF.MESSAGESOURCEADDRESS="messageSourceAddress",eF.PROVISIONWEATHERASSET="ProvisionWeatherAsset",eF.TIMEINJECTIONINTERVAL="timeInjectionInterval",eF.TEMPERATURESETPOINT="temperatureSetpoint",eF.CONSOLEPROVIDERS="consoleProviders",eF.COUNTTOTAL="countTotal",eF.SPACESBUFFER="spacesBuffer",eF.DEVICECONFIG="deviceConfig",eF.SPACESTOTAL="spacesTotal",eF.BINDHOST="bindHost",eF.FANSPEED="fanSpeed",eF.MESSAGECONVERTBINARY="messageConvertBinary",eF.NOTES="notes",eF.MAILFOLDERNAME="mailFolderName",eF.MESSAGEDELIMITERS="messageDelimiters",eF.TEMPERATURE="temperature",eF.SUNZENITH="sunZenith",eF.SNMPVERSIONVALUE="SNMPVersionValue",eF.BRIGHTNESS="brightness",eF.POSTALCODE="postalCode",eF.SPACESOPEN="spacesOpen",eF.HUMIDITY="humidity",eF.SOUNDLEVEL="soundLevel",eF.SECUREMODE="secureMode",eF.DIRECTION="direction",eF.STOPBITS="stopbits",eF.UVINDEX="uVIndex",eF.CONNECTURL="connectURL",eF.CLIENTID="clientId",eF.NATMODE="NATMode",eF.UPDATEONWRITE="updateOnWrite",eF.LASTWILLPAYLOAD="lastWillPayload",eF.GROUPID="groupId",eF.FOLLOWREDIRECTS="followRedirects",eF.SUNAZIMUTH="sunAzimuth",eF.MESSAGECONVERTHEX="messageConvertHex",eF.WEBSOCKETMODE="websocketMode",eF.COLOURTEMPERATURE="colourTemperature",eF.PUBLISHQOS="publishQos",eF.DATABITS="dataBits",(eg=tk||(tk={})).FORMAT="format",eg.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eg.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eg.SECRET="secret",eg.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eg.ATTRIBUTELINKS="attributeLinks",eg.RULERESETIMMEDIATE="ruleResetImmediate",eg.RULESTATE="ruleState",eg.AGENTLINKCONFIG="agentLinkConfig",eg.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eg.FORECAST="forecast",eg.STOREDATAPOINTS="storeDataPoints",eg.LABEL="label",eg.CONSTRAINTS="constraints",eg.UNITS="units",eg.USERCONNECTED="userConnected",eg.SHOWONDASHBOARD="showOnDashboard",eg.READONLY="readOnly",eg.MULTILINE="multiline",eg.ACCESSPUBLICWRITE="accessPublicWrite",eg.MOMENTARY="momentary",eg.AGENTLINK="agentLink",eg.ACCESSRESTRICTEDREAD="accessRestrictedRead",eg.ACCESSPUBLICREAD="accessPublicRead",(ev=tC||(tC={})).ASSETQUERY="assetQuery",ev.WSURL="WS_URL",ev.COLOURRGB="colourRGB",ev.VALUEFORMAT="valueFormat",ev.TEXT="text",ev.BYTE="byte",ev.USERNAMEANDPASSWORD="usernameAndPassword",ev.HTTPURL="HTTP_URL",ev.ATTRIBUTELINK="attributeLink",ev.ASSETID="assetID",ev.NUMBERMAP="numberMap",ev.HTTPMETHOD="HTTPMethod",ev.ATTRIBUTESTATE="attributeState",ev.POSITIVENUMBER="positiveNumber",ev.POSITIVEINTEGER="positiveInteger",ev.EXECUTIONSTATUS="executionStatus",ev.BIGINTEGER="bigInteger",ev.VALUEDESCRIPTOR="valueDescriptor",ev.PERIODDURATIONISO8601="periodDurationISO8601",ev.LONG="long",ev.DATEANDTIME="dateAndTime",ev.BOOLEANMAP="booleanMap",ev.MQTTQOS="MQTTQos",ev.NEGATIVEINTEGER="negativeInteger",ev.TCPIPPORTNUMBER="TCP_IPPortNumber",ev.GEOJSONPOINT="GEO_JSONPoint",ev.SNMPVERSION="SNMPVersion",ev.ASSETTYPE="assetType",ev.JSONOBJECT="JSONObject",ev.INTEGERMAP="integerMap",ev.BIGNUMBER="bigNumber",ev.IPADDRESS="IPAddress",ev.EMAIL="email",ev.TIMESTAMP="timestamp",ev.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",ev.ATTRIBUTEREFERENCE="attributeReference",ev.UUID="UUID",ev.INTEGER="integer",ev.OAUTHGRANT="oAuthGrant",ev.NUMBER="number",ev.DEVICECONFIGMAP="DeviceConfigMap",ev.TEXTMAP="textMap",ev.WEBSOCKETSUBSCRIPTION="websocketSubscription",ev.BOOLEAN="boolean",ev.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",ev.FORECASTCONFIGURATION="forecastConfiguration",ev.TIMEDURATIONISO8601="timeDurationISO8601",ev.TIMESTAMPISO8601="timestampISO8601",ev.CONSOLEPROVIDERS="consoleProviders",ev.MULTIVALUEDTEXTMAP="multivaluedTextMap",ev.NEGATIVENUMBER="negativeNumber",ev.PARITYBIT="Paritybit",ev.JSON="JSON",ev.CRONEXPRESSION="CRONExpression",ev.INTEGERBYTE="integerByte",ev.AGENTLINK="agentLink",ev.DIRECTION="direction",ev.HOSTORIPADDRESS="hostOrIPAddress",ev.STOPBITS="Stopbits",ev.CALENDAREVENT="calendarEvent",ev.CONNECTIONSTATUS="connectionStatus",ev.VALUECONSTRAINT="valueConstraint",(ey=tD||(tD={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tS||(tS={});class oW{static getAssetDescriptors(){return oW._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let o=this.getAssetTypeInfo(t||"ThingAsset");if(o&&o.attributeDescriptors)return o.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let o=this._valueDescriptors.find(t=>t.name===e);return o&&t&&(o=Object.assign(Object.assign({},o),{arrayDimensions:t})),o}static resolveValueDescriptor(e,t){let o;return t&&("string"==typeof t&&(o=oW.getValueDescriptor(t)),o=t.jsonType?t:oW.getValueDescriptor(t.type)),!o&&e&&(o=oW.getValueDescriptor("JSON")),o}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,o=e.find(e=>null!=e);for(;Array.isArray(o);)o=o.find(e=>null!=e),t++;let n=this.resolveValueTypeFromValue(o);if(!n)return;for(;t>0;)n+="[]",t--;return n}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,o){let n,r;if(t&&"string"!=typeof t)n=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(n=this.getAttributeDescriptor(t,r)),!n&&o&&(n={type:o.type,name:o.name,meta:o.meta})}return n&&(r=this.getValueDescriptor(n.type)),[n,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let o=this.getAssetDescriptor(e);return o&&o.colour?o.colour:t}static getAssetDescriptorIcon(e,t){let o=this.getAssetDescriptor(e);return o&&o.icon?o.icon:t}}function oV(e){return(oV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oY(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function oK(e){var t=function(e,t){if("object"!=oV(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=oV(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oV(t)?t:t+""}function oJ(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oK(n.key),n)}}function oX(e,t,o){return t&&oJ(e.prototype,t),o&&oJ(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function oQ(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oZ(e,t){return(oZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o0(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oZ(e,t)}function o1(e,t){if(t&&("object"==oV(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return oQ(e)}function o2(e){return(o2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o3(e,t,o){return(t=oK(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function o5(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function o4(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function o6(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o4(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o4(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}oW._assetTypeInfos=[],oW._metaItemDescriptors=[],oW._valueDescriptors=[];var o8={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},o9=new(function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oY(this,e),this.init(t,o)}return oX(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||o8,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,o,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(o).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,o6(o6({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),o7=function(){function e(){oY(this,e),this.observers={}}return oX(e,[{key:"on",value:function(e,t){var o=this;return e.split(" ").forEach(function(e){o.observers[e]=o.observers[e]||[],o.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(o))})}}]),e}();function ne(){var e,t,o=new Promise(function(o,n){e=o,t=n});return o.resolve=e,o.reject=t,o}function nt(e){return null==e?"":""+e}function no(e,t,o){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var a=n(i.shift());!e[a]&&o&&(e[a]=new o),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:n(i.shift())}}function nn(e,t,o){var n=no(e,t,Object);n.obj[n.k]=o}function nr(e,t){var o=no(e,t),n=o.obj,r=o.k;if(n)return n[r]}function ni(e,t,o){var n=nr(e,o);return void 0!==n?n:nr(t,o)}function na(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var nc={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ns(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return nc[e]}):e}var nl="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,nd=[" ",",","?","!",";"];function nf(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nu(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nf(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nm=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return oY(this,n),t=o.call(this),nl&&o7.call(oQ(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return oX(n,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];o&&"string"!=typeof o&&(a=a.concat(o)),o&&"string"==typeof o&&(a=a.concat(r?o.split(r):o)),e.indexOf(".")>-1&&(a=e.split("."));var c=nr(this.data,a);return c||!i||"string"!=typeof o?c:function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[o])return t[o];for(var r=o.split(n),i=t,a=0;a<r.length;++a){if(!i||"string"==typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var c=2,s=r.slice(a,a+c).join(n),l=i[s];void 0===l&&r.length>a+c;)c++,l=i[s=r.slice(a,a+c).join(n)];if(void 0===l)return;if(null===l)return null;if(o.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var d=r.slice(a+c).join(n);if(d)return e(l,d,n);return}i=i[r[a]]}return i}}(this.data&&this.data[e]&&this.data[e][t],o,r)}},{key:"addResource",value:function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];o&&(a=a.concat(i?o.split(i):o)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),nn(this.data,a,n),r.silent||this.emit("added",e,t,o,n)}},{key:"addResources",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in o)("string"==typeof o[r]||"[object Array]"===Object.prototype.toString.apply(o[r]))&&this.addResource(e,t,r,o[r],{silent:!0});n.silent||this.emit("added",e,t,o)}},{key:"addResourceBundle",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=o,o=t,t=a[1]),this.addNamespaces(t);var c=nr(this.data,a)||{};n?function e(t,o,n){for(var r in o)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof o[r]||o[r]instanceof String?n&&(t[r]=o[r]):e(t[r],o[r],n):t[r]=o[r]);return t}(c,o,r):c=nu(nu({},c),o),nn(this.data,a,c),i.silent||this.emit("added",e,t,o)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?nu(nu({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(o7),nb={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,o,n,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,o,n,r))}),t}};function nh(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function np(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nh(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nF={},ng=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e){var t,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return oY(this,n),i=o.call(this),nl&&o7.call(oQ(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=oQ(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=a,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=o9.create("translator"),i}return oX(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var o=this.resolve(e,t);return o&&void 0!==o.res}},{key:"extractFromKey",value:function(e,t){var o=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=o&&e.indexOf(o)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,o){t=t||"",o=o||"";var n=nd.filter(function(e){return 0>t.indexOf(e)&&0>o.indexOf(e)});if(0===n.length)return!0;var r=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var a=e.indexOf(o);a>0&&!r.test(e.substring(0,a))&&(i=!0)}return i}(e,o,n);if(i&&!a){var c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:r};var s=e.split(o);(o!==n||o===n&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(n)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,o){var r=this;if("object"!==oV(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],t),s=c.key,l=c.namespaces,d=l[l.length-1],f=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(u){var m=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(d).concat(m).concat(s),b):"".concat(d).concat(m).concat(s)}return i?(b.res=s,b):s}var b=this.resolve(e,t),h=b&&b.res,p=b&&b.usedKey||s,F=b&&b.exactUsedKey||s,g=Object.prototype.toString.apply(h),v=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&E&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&("string"!=typeof v||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,np(np({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=_,b):_}if(a){var w="[object Array]"===g,A=w?[]:{},k=w?F:p;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var D="".concat(k).concat(a).concat(C);A[C]=this.translate(D,np(np({},t),{joinArrays:!1,ns:l})),A[C]===D&&(A[C]=h[C])}h=A}}else if(y&&"string"==typeof v&&"[object Array]"===g)(h=h.join(v))&&(h=this.extendTranslation(h,e,t,o));else{var S=!1,x=!1,O=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),B=O?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(B)]||t.defaultValue;!this.isValidLookup(h)&&T&&(S=!0,h=R),this.isValidLookup(h)||(x=!0,h=s);var N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:h,I=T&&R!==h&&this.options.updateMissing;if(x||S||I){if(this.logger.log(I?"updateKey":"missingKey",f,d,s,I?R:h),a){var P=this.resolve(s,np(np({},t),{},{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var U=0;U<M.length;U++)L.push(M[U]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var j=function(e,o,n){var i=T&&n!==h?n:N;r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,o,i,I,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,o,i,I,t),r.emit("missingKey",e,d,o,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?L.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(o){j([e],s+o,t["defaultValue".concat(o)]||R)})}):j(L,s,R))}h=this.extendTranslation(h,e,t,b,o),x&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(d,":").concat(s)),(x||S)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(s):s,S?h:void 0):this.options.parseMissingKeyHandler(h))}return i?(b.res=h,b):h}},{key:"extendTranslation",value:function(e,t,o,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,np(np({},this.options.interpolation.defaultVariables),o),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(np(np({},o),{interpolation:np(np({},this.options.interpolation),o.interpolation)}));var a,c="string"==typeof e&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(c){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=o.replace&&"string"!=typeof o.replace?o.replace:o;if(this.options.interpolation.defaultVariables&&(l=np(np({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,o.lng||this.language,o),c){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(o.nest=!1)}!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];return r&&r[0]===n[0]&&!o.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))},o)),o.interpolation&&this.interpolator.reset()}var f=o.postProcess||this.options.postProcess,u="string"==typeof f?[f]:f;return null!=e&&u&&u.length&&!1!==o.applyPostProcessor&&(e=nb.handle(u,e,t,this.options&&this.options.postProcessPassResolved?np({i18nResolved:n},o):o,this)),e}},{key:"resolve",value:function(e){var t,o,n,r,i,a=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,c),l=s.key;o=l;var d=s.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var f=void 0!==c.count&&"string"!=typeof c.count,u=f&&!c.ordinal&&0===c.count&&a.pluralResolver.shouldUseIntlApi(),m=void 0!==c.context&&("string"==typeof c.context||"number"==typeof c.context)&&""!==c.context,b=c.lngs?c.lngs:a.languageUtils.toResolveHierarchy(c.lng||a.language,c.fallbackLng);d.forEach(function(e){a.isValidLookup(t)||(i=e,!nF["".concat(b[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(nF["".concat(b[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(o,'" for languages "').concat(b.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(function(o){if(!a.isValidLookup(t)){r=o;var i,s=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(s,l,o,e,c);else{f&&(d=a.pluralResolver.getSuffix(o,c.count,c));var d,b="".concat(a.options.pluralSeparator,"zero");if(f&&(s.push(l+d),u&&s.push(l+b)),m){var h="".concat(l).concat(a.options.contextSeparator).concat(c.context);s.push(h),f&&(s.push(h+d),u&&s.push(h+b))}}for(;i=s.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(o,e,i,c))}}))})}}),{res:t,usedKey:o,exactUsedKey:n,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,o,n):this.resourceStore.getResource(e,t,o,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t===o.substring(0,t.length)&&void 0!==e[o])return!0;return!1}}]),n}(o7);function nv(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ny=function(){function e(t){oY(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o9.create("languageUtils")}return oX(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],o=e.split("-");return this.options.lowerCaseLng?o=o.map(function(e){return e.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nv(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nv(o[1].toLowerCase())),t.indexOf(o[2].toLowerCase())>-1&&(o[2]=nv(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,o=this;return e?(e.forEach(function(e){if(!t){var n=o.formatLanguageCode(e);(!o.options.supportedLngs||o.isSupportedCode(n))&&(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=o.getLanguagePartFromCode(e);if(o.isSupportedCode(n))return t=n;t=o.options.supportedLngs.find(function(e){if(0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}},{key:"toResolveHierarchy",value:function(e,t){var o=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(o.isSupportedCode(e)?r.push(e):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>r.indexOf(e)&&i(o.formatLanguageCode(e))}),r}}]),e}(),nE=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],n_={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},nw=["v1","v2","v3"],nA={zero:0,one:1,two:2,few:3,many:4,other:5},nk=function(){function e(t){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oY(this,e),this.languageUtils=t,this.options=n,this.logger=o9.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(o={},nE.forEach(function(e){e.lngs.forEach(function(t){o[t]={numbers:e.nr,plurals:n_[e.fc]}})}),o)}return oX(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,t);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,o).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return nA[e]-nA[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,o)}):[]}},{key:"getSuffix",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var o=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return o.options.prepend&&r.toString()?o.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!nw.includes(this.options.compatibilityJSON)}}]),e}();function nC(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nD(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nC(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nC(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oY(this,e),this.logger=o9.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return oX(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ns,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?na(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?na(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?na(t.nestingPrefix):t.nestingPrefixEscaped||na("$t("),this.nestingSuffix=t.nestingSuffix?na(t.nestingSuffix):t.nestingSuffixEscaped||na(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(o,"g")}},{key:"interpolate",value:function(e,t,o,n){var r,i,a,c=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(c.formatSeparator)){var r=ni(t,s,e);return c.alwaysFormat?c.format(r,void 0,o,nD(nD(nD({},n),t),{},{interpolationkey:e})):r}var i=e.split(c.formatSeparator),a=i.shift().trim(),l=i.join(c.formatSeparator).trim();return c.format(ni(t,s,a),l,o,nD(nD(nD({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,u=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return c.escapeValue?l(c.escape(e)):l(e)}}].forEach(function(t){for(a=0;r=t.regex.exec(e);){var o=r[1].trim();if(void 0===(i=d(o)))if("function"==typeof f){var s=f(e,r,n);i="string"==typeof s?s:""}else if(n&&n.hasOwnProperty(o))i="";else if(u){i=r[0];continue}else c.logger.warn("missed to pass in variable ".concat(o," for interpolating ").concat(e)),i="";else"string"==typeof i||c.useRawValueToEscape||(i=nt(i));var l=t.safeValue(i);if(e=e.replace(r[0],l),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=c.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var o,n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=nD({},i);function c(e,t){var o=this.nestingOptionsSeparator;if(0>e.indexOf(o))return e;var n=e.split(new RegExp("".concat(o,"[ ]*{"))),r="{".concat(n[1]);e=n[0];var i=(r=this.interpolate(r,a)).match(/'/g),c=r.match(/"/g);(i&&i.length%2==0&&!c||c.length%2!=0)&&(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a=nD(nD({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(o).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;o=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(e){return e.trim()});o[1]=d.shift(),s=d,l=!0}if((n=t(c.call(this,o[1].trim(),a),a))&&o[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=nt(n)),n||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),n=""),l&&(n=s.reduce(function(e,t){return r.format(e,t,i.lng,nD(nD({},i),{},{interpolationkey:o[1].trim()}))},n.trim())),e=e.replace(o[0],n),this.regexp.lastIndex=0}return e}}]),e}();function nx(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nO(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nx(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nx(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nT(e){var t={};return function(o,n,r){var i=n+JSON.stringify(r),a=t[i];return a||(a=e(n,r),t[i]=a),a(o)}}var nB=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oY(this,e),this.logger=o9.create("formatter"),this.options=t,this.formats={number:nT(function(e,t){var o=new Intl.NumberFormat(e,t);return function(e){return o.format(e)}}),currency:nT(function(e,t){var o=new Intl.NumberFormat(e,nO(nO({},t),{},{style:"currency"}));return function(e){return o.format(e)}}),datetime:nT(function(e,t){var o=new Intl.DateTimeFormat(e,nO({},t));return function(e){return o.format(e)}}),relativetime:nT(function(e,t){var o=new Intl.RelativeTimeFormat(e,nO({},t));return function(e){return o.format(e,t.range||"day")}}),list:nT(function(e,t){var o=new Intl.ListFormat(e,nO({},t));return function(e){return o.format(e)}})},this.init(t)}return oX(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=t.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=nT(t)}},{key:"format",value:function(e,t,o,n){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),o={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);"currency"===t&&0>r.indexOf(":")?o.currency||(o.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?o.range||(o.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o5(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o5(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");o[r.trim()]||(o[r.trim()]=i),"false"===i&&(o[r.trim()]=!1),"true"===i&&(o[r.trim()]=!0),isNaN(i)||(o[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:o}}(t),a=i.formatName,c=i.formatOptions;if(r.formats[a]){var s=e;try{var l=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},d=l.locale||l.lng||n.locale||n.lng||o;s=r.formats[a](e,d,nO(nO(nO({},c),n),l))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function nR(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nN(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nR(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nR(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nI=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return oY(this,n),i=o.call(this),nl&&o7.call(oQ(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=o9.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return oX(n,[{key:"queueLoad",value:function(e,t,o,n){var r=this,i={},a={},c={},s={};return e.forEach(function(e){var n=!0;t.forEach(function(t){var c="".concat(e,"|").concat(t);!o.reload&&r.store.hasResourceBundle(e,t)?r.state[c]=2:r.state[c]<0||(1===r.state[c]?void 0===a[c]&&(a[c]=!0):(r.state[c]=1,n=!1,void 0===a[c]&&(a[c]=!0),void 0===i[c]&&(i[c]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(c[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,o){var n=e.split("|"),r=n[0],i=n[1];t&&this.emit("failedLoading",r,i,t),o&&this.store.addResourceBundle(r,i,o),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(o){var n,c,s,l;n=o.loaded,(s=(c=no(n,[r],Object)).obj)[l=c.k]=s[l]||[],s[l].push(i),void 0!==o.pending[e]&&(delete o.pending[e],o.pendingCount--),t&&o.errors.push(t),0!==o.pendingCount||o.done||(Object.keys(o.loaded).forEach(function(e){a[e]||(a[e]={});var t=o.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,o){var n=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:o,tried:r,wait:i,callback:a}):(this.readingCalls++,this.backend[o](e,t,function(c,s){if(n.readingCalls--,n.waitingReads.length>0){var l=n.waitingReads.shift();n.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}c&&s&&r<n.maxRetries?setTimeout(function(){n.read.call(n,e,t,o,r+1,2*i,a)},i):a(c,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){o.loadOne(e)})}},{key:"load",value:function(e,t,o){this.prepareLoading(e,t,{},o)}},{key:"reload",value:function(e,t,o){this.prepareLoading(e,t,{reload:!0},o)}},{key:"loadOne",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,function(n,a){n&&t.logger.warn("".concat(o,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&a&&t.logger.log("".concat(o,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,n,a)})}},{key:"saveMissing",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==o||""===o||(this.backend&&this.backend.create&&this.backend.create(e,t,o,n,null,nN(nN({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,o,n))}}]),n}(o7);function nP(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function nL(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nM(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nL(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nL(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nU(){}var nj=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(oY(this,n),t=o.call(this),nl&&o7.call(oQ(t)),t.options=nP(r),t.services={},t.logger=o9,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=oQ(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),o1(t,oQ(t));setTimeout(function(){t.init(r,i)},0)}return t}return oX(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(o=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var n={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===oV(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===oV(e[2])||"object"===oV(e[3])){var o=e[3]||e[2];Object.keys(o).forEach(function(e){t[e]=o[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,o,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=nM(nM(nM({},n),this.options),nP(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=nM(nM({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?o9.init(r(this.modules.logger),this.options):o9.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=nB);var i,a=new ny(this.options);this.store=new nm(this.options.resources,this.options);var c=this.services;c.logger=o9,c.resourceStore=this.store,c.languageUtils=a,c.pluralResolver=new nk(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(c.formatter=r(i),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new nS(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new nI(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new ng(this.services,this.options),this.translator.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,o||(o=nU),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments),e}});var l=ne(),d=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(n),o(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nU,n=o,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,o){var n=ne();return e||(e=this.languages),t||(t=this.options.ns),o||(o=nU),this.services.backendConnector.reload(e,t,function(e){n.resolve(),o(e)}),n}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&nb.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var o=this.languages[t];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(e,t){var o=this;this.isLanguageChangingTo=e;var n=ne();this.emit("languageChanging",e);var r=function(e){o.language=e,o.languages=o.services.languageUtils.toResolveHierarchy(e),o.resolvedLanguage=void 0,o.setResolvedLanguage(e)},i=function(e,i){i?(r(i),o.translator.changeLanguage(i),o.isLanguageChangingTo=void 0,o.emit("languageChanged",i),o.logger.log("languageChanged",i)):o.isLanguageChangingTo=void 0,n.resolve(function(){return o.t.apply(o,arguments)}),t&&t(e,function(){return o.t.apply(o,arguments)})},a=function(t){e||t||!o.services.languageDetector||(t=[]);var n="string"==typeof t?t:o.services.languageUtils.getBestMatchFromCodes(t);n&&(o.language||r(n),o.translator.language||o.translator.changeLanguage(n),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(n)),o.loadResources(n,function(e){i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,o){var n=this,r=function e(t,r){if("object"!==oV(r)){for(var i,a=arguments.length,c=Array(a>2?a-2:0),s=2;s<a;s++)c[s-2]=arguments[s];i=n.options.overloadTranslationOptionHandler([t,r].concat(c))}else i=nM({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||o||e.keyPrefix;var l=n.options.keySeparator||".",d=i.keyPrefix?"".concat(i.keyPrefix).concat(l).concat(t):t;return n.t(d,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=o,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,o){var n=t.services.backendConnector.state["".concat(e,"|").concat(o)];return -1===n||2===n};if(o.precheck){var c=o.precheck(this,a);if(void 0!==c)return c}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var o=this,n=ne();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>o.options.ns.indexOf(e)&&o.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var o=ne();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter(function(e){return 0>n.indexOf(e)});return r.length?(this.options.preload=n.concat(r),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nU,r=nM(nM(nM({},this.options),t),{isClone:!0}),i=new n(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=nM({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new ng(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];i.emit.apply(i,[e].concat(o))}),i.init(r,o),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(o7);o3(nj,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new nj(e,t)});var n$=nj.createInstance();n$.createInstance=nj.createInstance,n$.createInstance,n$.init,n$.loadResources,n$.reloadResources,n$.use,n$.changeLanguage,n$.getFixedT,n$.t,n$.exists,n$.setDefaultNamespace,n$.hasLoadedNamespace,n$.loadNamespaces,n$.loadLanguages;let nG=n$;var nq=o(4867),nH=o.n(nq);o(3472);class nz{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 nW(e){return(t,o)=>{let n=e(t),r=e(o);return n||r?n&&!r?1:!n&&r?-1:n.localeCompare(r):0}}function nV(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}class nY{constructor(e){e&&Object.assign(this,e)}matches(e){var t,o,n,r,i,a,c;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==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.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==(c=this.names)||!c.length||!!this.names.every(t=>nY._evalValuePredicate(e.name,t)))&&(!this.attributes||nY._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!nY._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?nY._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var o;switch(t.predicateType){case"string":{let n;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(o=t.value)?void 0:o.toLowerCase();switch(t.match){case"BEGIN":n=r.startsWith(i);break;case"END":n=r.endsWith(i);break;case"CONTAINS":n=r.includes(i);break;default:n=r===i}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 r=null==(o=t.name)?void 0:o.value;if(!r)return!0;let i=null==(n=e.attributes)?void 0:n[r];if(!i)return!!t.negated;let a=!t.value||nY._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var o,n,r;let i=null!=(o=t.operator)?o:"AND",a=[...(null!=(n=t.items)?n:[]).map(t=>nY._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>nY._evalGroup(e,t))];return!a.length||("OR"===i?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=>nY._collectNames(e))]}}nY._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var nK=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,c)}s((n=n.apply(e,t||[])).next())})};let nJ=o(4461);class nX{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),r=n.get("consoleName"),i=n.get("consoleVersion"),a=n.get("consolePlatform"),c=n.get("consoleProviders"),s=n.get("consoleAutoEnable"),l=c&&c.length>0?c.split(" "):["push"];this._pendingProviderEnables=l;let d=nX._createConsoleRegistration(),f=window.localStorage.getItem(this._storageKey);if(f)try{let e=JSON.parse(f);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 u=d.providers;for(let e of(d.providers={},l)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let m=cp.getAppName();m.length>0&&0>d.apps.indexOf(m)&&d.apps.push(m),this._registration=d,r&&(d.name=r),i&&(d.version=i),a&&(d.platform=a),s&&(this._autoEnable="TRUE"===s||"true"===s)}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 nK(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 nK(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 nK(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 r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),n})}disableProvider(e){return nK(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 nK(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 nz,r=()=>{delete this._pendingProviderPromises[o],n.reject("No response from provider")};return this._pendingProviderPromises[o]=[n,window.setTimeout(r,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(()=>nK(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 nK(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield cp.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&&nX._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 nK(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,r=this._pendingProviderPromises[o+n];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[o+n],r[0].resolve(t));let i=this._providerMessageListeners[o+n];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:nJ.name,version:nJ.version,platform:nJ.os.toString(),apps:[],model:((nJ.manufacturer?nJ.manufacturer+" ":"")+(nJ.product?nJ.product:"")).trim()}}_initialiseProvider(e){return nK(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 nQ(e,t){return function(){return e.apply(t,arguments)}}let{toString:nZ}=Object.prototype,{getPrototypeOf:n0}=Object,{iterator:n1,toStringTag:n2}=Symbol,n3=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),n5=(e,t)=>{let o=e,n=[];for(;null!=o&&o!==Object.prototype&&-1===n.indexOf(o);){if(n.push(o),n3(o,t))return!0;o=n0(o)}return!1},n4=(i=Object.create(null),e=>{let t=nZ.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),n6=e=>(e=e.toLowerCase(),t=>n4(t)===e),n8=e=>t=>typeof t===e,{isArray:n9}=Array,n7=n8("undefined");function re(e){return null!==e&&!n7(e)&&null!==e.constructor&&!n7(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let rt=n6("ArrayBuffer"),ro=n8("string"),rn=n8("function"),rr=n8("number"),ri=e=>null!==e&&"object"==typeof e,ra=e=>{if(!ri(e))return!1;let t=n0(e);return(null===t||t===Object.prototype||null===n0(t))&&!n5(e,n2)&&!n5(e,n1)},rc=n6("Date"),rs=n6("File"),rl=n6("Blob"),rd=n6("FileList"),rf="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ru=void 0!==rf.FormData?rf.FormData:void 0,rm=n6("URLSearchParams"),[rb,rh,rp,rF]=["ReadableStream","Request","Response","Headers"].map(n6);function rg(e,t,{allOwnKeys:o=!1}={}){let n,r;if(null!=e)if("object"!=typeof e&&(e=[e]),n9(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{let r;if(re(e))return;let i=o?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(n=0;n<a;n++)r=i[n],t.call(null,e[r],r,e)}}function rv(e,t){let o;if(re(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length;for(;r-- >0;)if(t===(o=n[r]).toLowerCase())return o;return null}let ry="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rE=e=>!n7(e)&&e!==ry,r_=(a="u">typeof Uint8Array&&n0(Uint8Array),e=>a&&e instanceof a),rw=n6("HTMLFormElement"),{propertyIsEnumerable:rA}=Object.prototype,rk=n6("RegExp"),rC=(e,t)=>{let o=Object.getOwnPropertyDescriptors(e),n={};rg(o,(o,r)=>{let i;!1!==(i=t(o,r,e))&&(n[r]=i||o)}),Object.defineProperties(e,n)},rD=n6("AsyncFunction"),rS=(l="function"==typeof setImmediate,d=rn(ry.postMessage),l?setImmediate:d?(f=`axios@${Math.random()}`,u=[],ry.addEventListener("message",({source:e,data:t})=>{e===ry&&t===f&&u.length&&u.shift()()},!1),e=>{u.push(e),ry.postMessage(f,"*")}):e=>setTimeout(e)),rx="u">typeof queueMicrotask?queueMicrotask.bind(ry):"u">typeof process&&process.nextTick||rS,rO=e=>null!=e&&rn(e[n1]),rT={isArray:n9,isArrayBuffer:rt,isBuffer:re,isFormData:e=>{if(!e)return!1;if(ru&&e instanceof ru)return!0;let t=n0(e);if(!t||t===Object.prototype||!rn(e.append))return!1;let o=n4(e);return"formdata"===o||"object"===o&&rn(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&rt(e.buffer)},isString:ro,isNumber:rr,isBoolean:e=>!0===e||!1===e,isObject:ri,isPlainObject:ra,isEmptyObject:e=>{if(!ri(e)||re(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:rb,isRequest:rh,isResponse:rp,isHeaders:rF,isUndefined:n7,isDate:rc,isFile:rs,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:rl,isRegExp:rk,isFunction:rn,isStream:e=>ri(e)&&rn(e.pipe),isURLSearchParams:rm,isTypedArray:r_,isFileList:rd,forEach:rg,merge:function e(...t){let{caseless:o,skipUndefined:n}=rE(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=o&&"string"==typeof i&&rv(r,i)||i,c=n3(r,a)?r[a]:void 0;ra(c)&&ra(t)?r[a]=e(c,t):ra(t)?r[a]=e({},t):n9(t)?r[a]=t.slice():n&&n7(t)||(r[a]=t)};for(let e=0,o=t.length;e<o;e++){let o=t[e];if(!o||re(o)||(rg(o,i),"object"!=typeof o||n9(o)))continue;let n=Object.getOwnPropertySymbols(o);for(let e=0;e<n.length;e++){let t=n[e];rA.call(o,t)&&i(o[t],t)}}return r},extend:(e,t,o,{allOwnKeys:n}={})=>(rg(t,(t,n)=>{o&&rn(t)?Object.defineProperty(e,n,{__proto__:null,value:nQ(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 r,i,a,c={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!n||n(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=!1!==o&&n0(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:n4,kindOfTest:n6,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(n9(e))return e;let t=e.length;if(!rr(t))return null;let o=Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{let o,n=(e&&e[n1]).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:rw,hasOwnProperty:n3,hasOwnProp:n3,hasOwnInPrototypeChain:n5,getSafeProp:(e,t)=>null!=e&&n5(e,t)?e[t]:void 0,reduceDescriptors:rC,freezeMethods:e=>{rC(e,(t,o)=>{if(rn(e)&&["arguments","caller","callee"].includes(o))return!1;if(rn(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(n9(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:rv,global:ry,isContextDefined:rE,isSpecCompliantForm:function(e){return!!(e&&rn(e.append)&&"FormData"===e[n2]&&e[n1])},toJSONObject:e=>{let t=new WeakSet,o=e=>{if(ri(e)){if(t.has(e))return;if(re(e))return e;if(!("toJSON"in e)){t.add(e);let n=n9(e)?[]:{};return rg(e,(e,t)=>{let r=o(e);n7(r)||(n[t]=r)}),t.delete(e),n}}return e};return o(e)},isAsyncFn:rD,isThenable:e=>e&&(ri(e)||rn(e))&&rn(e.then)&&rn(e.catch),setImmediate:rS,asap:rx,isIterable:rO,isSafeIterable:e=>null!=e&&n5(e,n1)&&rO(e)},rB=rT.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"]),rR=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rN=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rI(e,t){return rT.isArray(e)?e.map(e=>rI(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 rP(e){let t=Object.create(null);return rT.forEach(e.toJSON(),(e,o)=>{t[o]=rI(e,rN)}),t}let rL=Symbol("internals");function rM(e){return e&&String(e).trim().toLowerCase()}function rU(e){return!1===e||null==e?e:rT.isArray(e)?e.map(rU):rI(String(e),rR)}function rj(e,t,o,n,r){if(rT.isFunction(n))return n.call(this,t,o);if(r&&(t=o),rT.isString(t)){if(rT.isString(n))return -1!==t.indexOf(n);if(rT.isRegExp(n))return n.test(t)}}class r${constructor(e){e&&this.set(e)}set(e,t,o){let n=this;function r(e,t,o){let r=rM(t);if(!r)return;let i=rT.findKey(n,r);i&&void 0!==n[i]&&!0!==o&&(void 0!==o||!1===n[i])||(n[i||t]=rU(e))}let i=(e,t)=>rT.forEach(e,(e,o)=>r(e,o,t));if(rT.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(rT.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var a;let o,n,r,c;i((c={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),o=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!o||c[o]&&rB[o]||("set-cookie"===o?c[o]?c[o].push(n):c[o]=[n]:c[o]=c[o]?c[o]+", "+n:n)}),c),t)}else if(rT.isObject(e)&&rT.isSafeIterable(e)){let o=Object.create(null),n,r;for(let t of e){if(!rT.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rT.hasOwnProp(o,r)?(n=o[r],o[r]=rT.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&r(t,e,o)}return this}get(e,t){if(e=rM(e)){let o=rT.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(rT.isFunction(t))return t.call(this,e,o);if(rT.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rM(e)){let o=rT.findKey(this,e);return!!(o&&void 0!==this[o]&&(!t||rj(this,this[o],o,t)))}return!1}delete(e,t){let o=this,n=!1;function r(e){if(e=rM(e)){let r=rT.findKey(o,e);r&&(!t||rj(o,o[r],r,t))&&(delete o[r],n=!0)}}return rT.isArray(e)?e.forEach(r):r(e),n}clear(e){let t=Object.keys(this),o=t.length,n=!1;for(;o--;){let r=t[o];(!e||rj(this,this[r],r,e,!0))&&(delete this[r],n=!0)}return n}normalize(e){let t=this,o={};return rT.forEach(this,(n,r)=>{let i=rT.findKey(o,r);if(i){t[i]=rU(n),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o):String(r).trim();a!==r&&delete t[r],t[a]=rU(n),o[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rT.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&rT.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[rL]=this[rL]={accessors:{}}).accessors,o=this.prototype;function n(e){let n=rM(e);if(!t[n]){let r;r=rT.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(o,t+r,{__proto__:null,value:function(o,n,r){return this[t].call(this,e,o,n,r)},configurable:!0})}),t[n]=!0}}return rT.isArray(e)?e.forEach(n):n(e),this}}r$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rT.reduceDescriptors(r$.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),rT.freezeMethods(r$);class rG extends Error{static from(e,t,o,n,r,i){let a=new rG(e.message,t||e.code,o,n,r);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),i&&Object.assign(a,i),a}constructor(e,t,o,n,r){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),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,o,n=this.config,r=n&&rT.hasOwnProp(n,"redact")?n.redact:void 0,i=rT.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(o=n=>{let r;if(null===n||"object"!=typeof n||rT.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof r$&&(n=n.toJSON()),t.push(n),rT.isArray(n))r=[],n.forEach((e,t)=>{let n=o(e);rT.isUndefined(n)||(r[t]=n)});else{if(!rT.isPlainObject(n)&&function(e){if(rT.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rT.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,i]of(r=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":o(i);rT.isUndefined(n)||(r[t]=n)}}return t.pop(),r}})(n)):rT.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:i,code:this.code,status:this.status}}}rG.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rG.ERR_BAD_OPTION="ERR_BAD_OPTION",rG.ECONNABORTED="ECONNABORTED",rG.ETIMEDOUT="ETIMEDOUT",rG.ECONNREFUSED="ECONNREFUSED",rG.ERR_NETWORK="ERR_NETWORK",rG.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rG.ERR_DEPRECATED="ERR_DEPRECATED",rG.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rG.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rG.ERR_CANCELED="ERR_CANCELED",rG.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rG.ERR_INVALID_URL="ERR_INVALID_URL",rG.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rq=rG;function rH(e){return rT.isPlainObject(e)||rT.isArray(e)}function rz(e){return rT.endsWith(e,"[]")?e.slice(0,-2):e}function rW(e,t,o){return e?e.concat(t).map(function(e,t){return e=rz(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}let rV=rT.toFlatObject(rT,{},null,function(e){return/^is[A-Z]/.test(e)}),rY=function(e,t,o){if(!rT.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(o=rT.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rT.isUndefined(t[e])})).metaTokens,r=o.visitor||m,i=o.dots,a=o.indexes,c=o.Blob||"u">typeof Blob&&Blob,s=void 0===o.maxDepth?100:o.maxDepth,l=c&&rT.isSpecCompliantForm(t),d=[];if(!rT.isFunction(r))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(rT.isDate(e))return e.toISOString();if(rT.isBoolean(e))return e.toString();if(!l&&rT.isBlob(e))throw new rq("Blob is not supported. Use a Buffer instead.");if(rT.isArrayBuffer(e)||rT.isTypedArray(e)){if(l&&"function"==typeof c)return new c([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rq("Blob is not supported. Use a Buffer instead.",rq.ERR_NOT_SUPPORT)}return e}function u(e){if(e>s)throw new rq("Object is too deeply nested ("+e+" levels). Max depth: "+s,rq.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,o,r){let c=e;if(rT.isReactNative(t)&&rT.isReactNativeBlob(e))return t.append(rW(r,o,i),f(e)),!1;if(e&&!r&&"object"==typeof e)if(rT.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=function(e){if(1/0===s)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,o){if(!rT.isObject(o))return o;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(o),u(1+t.length-1),o})}(e);else{var l;if(rT.isArray(e)&&(l=e,rT.isArray(l)&&!l.some(rH))||(rT.isFileList(e)||rT.endsWith(o,"[]"))&&(c=rT.toArray(e)))return o=rz(o),c.forEach(function(e,n){rT.isUndefined(e)||null===e||t.append(!0===a?rW([o],n,i):null===a?o:o+"[]",f(e))}),!1}return!!rH(e)||(t.append(rW(r,o,i),f(e)),!1)}let b=Object.assign(rV,{defaultVisitor:m,convertValue:f,isVisitable:rH});if(!rT.isObject(e))throw TypeError("data must be an object");return!function e(o,n,i=0){if(!rT.isUndefined(o)){if(u(i),-1!==d.indexOf(o))throw Error("Circular reference detected in "+n.join("."));d.push(o),rT.forEach(o,function(o,a){!0===(!(rT.isUndefined(o)||null===o)&&r.call(t,o,rT.isString(a)?a.trim():a,n,b))&&e(o,n?n.concat(a):[a],i+1)}),d.pop()}}(e),t};function rK(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rJ(e,t){this._pairs=[],e&&rY(e,this,t)}let rX=rJ.prototype;function rQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rZ(e,t,o){let n;if(!t)return e;e=e||"";let r=rT.isFunction(o)?{serialize:o}:o,i=rT.getSafeProp(r,"encode")||rQ,a=rT.getSafeProp(r,"serialize");if(n=a?a(t,r):rT.isURLSearchParams(t)?t.toString():new rJ(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}rX.append=function(e,t){this._pairs.push([e,t])},rX.toString=function(e){let t=e?t=>e.call(this,t,rK):rK;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let r0=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){rT.forEach(this.handlers,function(t){null!==t&&e(t)})}},r1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},r2="u">typeof URLSearchParams?URLSearchParams:rJ,r3="u">typeof FormData?FormData:null,r5="u">typeof Blob?Blob:null,r4="u">typeof window&&"u">typeof document,r6="object"==typeof navigator&&navigator||void 0,r8=r4&&(!r6||0>["ReactNative","NativeScript","NS"].indexOf(r6.product)),r9="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,r7=r4&&window.location.href||"http://localhost",ie={...tM,isBrowser:!0,classes:{URLSearchParams:r2,FormData:r3,Blob:r5},protocols:["http","https","file","blob","url","data"]};function it(e){if(e>100)throw new rq("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rq.ERR_FORM_DATA_DEPTH_EXCEEDED)}let io=function(e){if(rT.isFormData(e)&&rT.isFunction(e.entries)){let t={};return rT.forEachEntry(e,(e,o)=>{!function e(t,o,n,r){it(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),c=r>=t.length;return(i=!i&&rT.isArray(n)?n.length:i,c)?rT.hasOwnProp(n,i)?n[i]=rT.isArray(n[i])?n[i].concat(o):[n[i],o]:n[i]=o:(rT.hasOwnProp(n,i)&&rT.isObject(n[i])||(n[i]=[]),e(t,o,n[i],r)&&rT.isArray(n[i])&&(n[i]=function(e){let t,o,n={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)n[o=r[t]]=e[o];return n}(n[i]))),!a}(function(e){let t,o=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)it(o.length),o.push("[]"===t[0]?"":t[1]||t[0]);return o}(e),o,t,0)}),t}return null},ir=(e,t)=>null!=e&&rT.hasOwnProp(e,t)?e[t]:void 0,ii={transitional:r1,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let o,n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=rT.isObject(e);if(i&&rT.isHTMLForm(e)&&(e=new FormData(e)),rT.isFormData(e))return r?JSON.stringify(io(e)):e;if(rT.isArrayBuffer(e)||rT.isBuffer(e)||rT.isStream(e)||rT.isFile(e)||rT.isBlob(e)||rT.isReadableStream(e))return e;if(rT.isArrayBufferView(e))return e.buffer;if(rT.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=ir(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return rY(e,new ie.classes.URLSearchParams,{visitor:function(e,t,o,n){return ie.isNode&&rT.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((o=rT.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=ir(this,"env"),r=n&&n.FormData;return rY(o?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(rT.isString(a))try{return(0,JSON.parse)(a),rT.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=ir(this,"transitional")||ii.transitional,o=t&&t.forcedJSONParsing,n=ir(this,"responseType"),r="json"===n;if(rT.isResponse(e)||rT.isReadableStream(e))return e;if(e&&rT.isString(e)&&(o&&!n||r)){let o=t&&t.silentJSONParsing;try{return JSON.parse(e,ir(this,"parseReviver"))}catch(e){if(!o&&r){if("SyntaxError"===e.name)throw rq.from(e,rq.ERR_BAD_RESPONSE,this,null,ir(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function ia(e,t){let o=this||ii,n=t||o,r=r$.from(n.headers),i=n.data;return rT.forEach(e,function(e){i=e.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function ic(e){return!!(e&&e.__CANCEL__)}rT.forEach(["delete","get","head","post","put","patch","query"],e=>{ii.headers[e]={}});let is=class extends rq{constructor(e,t,o){super(null==e?"canceled":e,rq.ERR_CANCELED,t,o),this.name="CanceledError",this.__CANCEL__=!0}};function il(e,t,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new rq("Request failed with status code "+o.status,o.status>=400&&o.status<500?rq.ERR_BAD_REQUEST:rq.ERR_BAD_RESPONSE,o.config,o.request,o))}let id=function(e,t){let o,n=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(c){let s=Date.now(),l=r[a];o||(o=s),n[i]=c,r[i]=s;let d=a,f=0;for(;d!==i;)f+=n[d++],d%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),s-o<t)return;let u=l&&s-l;return u?Math.round(1e3*f/u):void 0}},iu=function(e,t){let o,n,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,o=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),c=t-r;c>=i?a(e,t):(o=e,n||(n=setTimeout(()=>{n=null,a(o)},i-c)))},()=>o&&a(o)]},im=(e,t,o=3)=>{let n=0,r=id(50,250);return iu(o=>{if(!o||"number"!=typeof o.loaded)return;let i=o.loaded,a=o.lengthComputable?o.total:void 0,c=null!=a?Math.min(i,a):i,s=Math.max(0,c-n),l=r(s);n=Math.max(n,c),e({loaded:c,total:a,progress:a?c/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a?(a-c)/l:void 0,event:o,lengthComputable:null!=a,[t?"download":"upload"]:!0})},o)},ib=(e,t)=>{let o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},ih=e=>(...t)=>rT.asap(()=>e(...t)),ip=ie.hasStandardBrowserEnv?(c=new URL(ie.origin),s=ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent),e=>(e=new URL(e,ie.origin),c.protocol===e.protocol&&c.host===e.host&&(s||c.port===e.port))):()=>!0,iF=ie.hasStandardBrowserEnv?{write(e,t,o,n,r,i,a){if("u"<typeof document)return;let c=[`${e}=${encodeURIComponent(t)}`];rT.isNumber(o)&&c.push(`expires=${new Date(o).toUTCString()}`),rT.isString(n)&&c.push(`path=${n}`),rT.isString(r)&&c.push(`domain=${r}`),!0===i&&c.push("secure"),rT.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.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+/,""),r=n.indexOf("=");if(-1!==r&&n.slice(0,r)===e)try{return decodeURIComponent(n.slice(r+1))}catch(e){return n.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},ig=/^https?:(?!\/\/)/i,iv=/[\t\n\r]/g;function iy(e,t){if("string"==typeof e&&ig.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(iv,"")))throw new rq('Invalid URL: missing "//" after protocol',rq.ERR_INVALID_URL,t)}function iE(e,t,o,n){iy(t,n);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===o)?(iy(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let i_=e=>e instanceof r$?{...e}:e;function iw(e,t){e=e||{},t=t||{};let o=Object.create(null);function n(e,t,o,n){return rT.isPlainObject(e)&&rT.isPlainObject(t)?rT.merge.call({caseless:n},e,t):rT.isPlainObject(t)?rT.merge({},t):rT.isArray(t)?t.slice():t}function r(e,t,o,r){return rT.isUndefined(t)?rT.isUndefined(e)?void 0:n(void 0,e,o,r):n(e,t,o,r)}function i(e,t){if(!rT.isUndefined(t))return n(void 0,t)}function a(e,t){return rT.isUndefined(t)?rT.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function c(o,r,i){return rT.hasOwnProp(t,i)?n(o,r):rT.hasOwnProp(e,i)?n(void 0,o):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let s={url:i,method:i,data:i,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:c,headers:(e,t,o)=>r(i_(e),i_(t),o,!0)};return rT.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=rT.hasOwnProp(s,n)?s[n]:r,a=i(rT.hasOwnProp(e,n)?e[n]:void 0,rT.hasOwnProp(t,n)?t[n]:void 0,n);rT.isUndefined(a)&&i!==c||(o[n]=a)}),rT.hasOwnProp(t,"validateStatus")&&rT.isUndefined(t.validateStatus)&&!1===function(o){let n=rT.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rT.isUndefined(n)){if(!rT.isPlainObject(n))return;else if(rT.hasOwnProp(n,o))return n[o]}let r=rT.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rT.isPlainObject(r)&&rT.hasOwnProp(r,o))return r[o]}("validateStatusUndefinedResolves")&&(rT.hasOwnProp(e,"validateStatus")?o.validateStatus=n(void 0,e.validateStatus):delete o.validateStatus),o}let iA=["content-type","content-length"],ik=function(e){let t=iw({},e),o=e=>rT.hasOwnProp(t,e)?t[e]:void 0,n=o("data"),r=o("withXSRFToken"),i=o("xsrfHeaderName"),a=o("xsrfCookieName"),c=o("headers"),s=o("auth"),l=o("baseURL"),d=o("allowAbsoluteUrls"),f=o("url");if(t.headers=c=r$.from(c),t.url=rZ(iE(l,f,d,t),o("params"),o("paramsSerializer")),s){let t=rT.getSafeProp(s,"username")||"",o=rT.getSafeProp(s,"password")||"";try{c.set("Authorization","Basic "+btoa(t+":"+(o?encodeURIComponent(o).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rq.from(t,rq.ERR_BAD_OPTION_VALUE,e)}}if(rT.isFormData(n))if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv||rT.isReactNative(n))c.setContentType(void 0);else{var u,m;rT.isFunction(n.getHeaders)&&(u=c,m=n.getHeaders(),"content-only"!==o("formDataHeaderPolicy")?u.set(m):Object.entries(m||{}).forEach(([e,t])=>{iA.includes(e.toLowerCase())&&u.set(e,t)}))}if(ie.hasStandardBrowserEnv&&(rT.isFunction(r)&&(r=r(t)),!0===r||null==r&&ip(t.url))){let e=i&&a&&iF.read(a);e&&c.set(i,e)}return t},iC="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){var n;let r,i,a,c,s,l,d=ik(e),f=d.data,u=r$.from(d.headers).normalize(),{responseType:m,onUploadProgress:b,onDownloadProgress:h}=d;function p(){c&&c(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let F=new XMLHttpRequest;function g(){if(!F)return;let n=r$.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders());il(function(e){t(e),p()},function(e){o(e),p()},{data:m&&"text"!==m&&"json"!==m?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 rq("Request aborted",rq.ECONNABORTED,e,F)),p(),F=null)},F.onerror=function(t){let n=new rq(t&&t.message?t.message:"Network Error",rq.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||r1;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),o(new rq(t,n.clarifyTimeoutError?rq.ETIMEDOUT:rq.ECONNABORTED,e,F)),p(),F=null},void 0===f&&u.setContentType(null),"setRequestHeader"in F&&rT.forEach(rP(u),function(e,t){F.setRequestHeader(t,e)}),rT.isUndefined(d.withCredentials)||(F.withCredentials=!!d.withCredentials),m&&"json"!==m&&(F.responseType=d.responseType),h&&([a,s]=im(h,!0),F.addEventListener("progress",a)),b&&F.upload&&([i,c]=im(b),F.upload.addEventListener("progress",i),F.upload.addEventListener("loadend",c)),(d.cancelToken||d.signal)&&(r=t=>{F&&(o(!t||t.type?new is(null,e,F):t),F.abort(),p(),F=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let v=(n=d.url,(l=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&l[1]||"");if(v&&!ie.protocols.includes(v)){o(new rq("Unsupported protocol "+v+":",rq.ERR_BAD_REQUEST,e)),p();return}F.send(f||null)})},iD=function*(e,t){let o,n=e.byteLength;if(!t||n<t)return void(yield e);let r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},iS=async function*(e,t){for await(let o of ix(e))yield*iD(o,t)},ix=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()}},iO=(e,t,o,n)=>{let r,i=iS(e,t),a=0,c=e=>{!r&&(r=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){c(),e.close();return}let r=n.byteLength;if(o){let e=a+=r;o(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},iT=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iB=(e,t,o)=>t+2<o&&iT(e.charCodeAt(t+1))&&iT(e.charCodeAt(t+2)),{isFunction:iR}=rT,iN=e=>{if(!rT.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},iI=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iP=e=>{let t,o=void 0!==rT.global&&null!==rT.global?rT.global:globalThis,{ReadableStream:n,TextEncoder:r}=o,{fetch:i,Request:a,Response:c}=e=rT.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e),s=i?iR(i):"function"==typeof fetch,l=iR(a),d=iR(c);if(!s)return!1;let f=s&&iR(n),u=s&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),m=l&&f&&iI(()=>{let e=!1,t=new a(ie.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}),b=d&&f&&iI(()=>rT.isReadableStream(new c("").body)),h={stream:b&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,o)=>{let n=t&&t[e];if(n)return n.call(t);throw new rq(`Response type '${e}' is not supported`,rq.ERR_NOT_SUPPORT,o)})});let p=async e=>{if(null==e)return 0;if(rT.isBlob(e))return e.size;if(rT.isSpecCompliantForm(e)){let t=new a(ie.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rT.isArrayBufferView(e)||rT.isArrayBuffer(e)?e.byteLength:(rT.isURLSearchParams(e)&&(e+=""),rT.isString(e))?(await u(e)).byteLength:void 0},F=async(e,t)=>{let o=rT.toFiniteNumber(e.getContentLength());return null==o?p(t):o};return async e=>{let t,{url:o,method:n,data:s,signal:d,cancelToken:u,timeout:g,onDownloadProgress:v,onUploadProgress:y,responseType:E,headers:_,withCredentials:w="same-origin",fetchOptions:A,maxContentLength:k,maxBodyLength:C}=ik(e),D=rT.isNumber(k)&&k>-1,S=rT.isNumber(C)&&C>-1,x=i||fetch;E=E?(E+"").toLowerCase():"text";let O=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let o=new AbortController,n=!1,r=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;o.abort(t instanceof rq?t:new is(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rq(`timeout of ${t}ms exceeded`,rq.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:c}=o;return c.unsubscribe=()=>rT.asap(a),c})([d,u&&u.toAbortSignal()],g),T=null,B=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),R=null,N=()=>new rq("Request body larger than maxBodyLength limit",rq.ERR_BAD_REQUEST,e,T);try{var I;let i,d,u,g,P=(d="auth",rT.hasOwnProp(e,d)?e[d]:void 0);if(P){let e=rT.getSafeProp(P,"username")||"",t=rT.getSafeProp(P,"password")||"";i={username:e,password:t}}if(u=(I=o).indexOf("://"),g=I,-1!==u&&(g=g.slice(u+3)),g.includes("@")||g.includes(":")){let e=new URL(o,ie.origin);if(!i&&(e.username||e.password)){let t=iN(e.username),o=iN(e.password);i={username:t,password:o}}(e.username||e.password)&&(e.username="",e.password="",o=e.href)}if(i){let e;_.delete("authorization"),_.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(D&&"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),r=n.charCodeAt(o+2);iT(t)&&iT(r)&&(e-=2,o+=2)}let o=0,r=t-1,i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));r>=0&&(61===n.charCodeAt(r)?(o++,r--):i(r)&&(o++,r-=3)),1===o&&r>=0&&(61===n.charCodeAt(r)?o++:i(r)&&o++);let a=3*Math.floor(e/4)-(o||0);return a>0?a:0}let r=0;for(let e=0,t=n.length;e<t;e++){let o=n.charCodeAt(e);if(37===o&&iB(n,e,t))r+=1,e+=2;else if(o<128)r+=1;else if(o<2048)r+=2;else if(o>=55296&&o<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(o)>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T);if(S&&"get"!==n&&"head"!==n){let e=await p(s);if("number"==typeof e&&isFinite(e)&&(t=e,e>C))throw N()}let L=S&&(rT.isReadableStream(s)||rT.isStream(s)),M=(e,t,o)=>iO(e,65536,e=>{if(S&&e>C)throw R=N();t&&t(e)},o);if(m&&"get"!==n&&"head"!==n&&(y||L)){if(t=null==t?await F(_,s):t,0!==t||L){let e,n=new a(o,{method:"POST",body:s,duplex:"half"});if(rT.isFormData(s)&&(e=n.headers.get("content-type"))&&_.setContentType(e),n.body){let[e,o]=y&&ib(t,im(ih(y)))||[];s=M(n.body,e,o)}}}else if(L&&!l&&f&&"get"!==n&&"head"!==n)s=M(s);else if(L&&l&&!m&&"get"!==n&&"head"!==n)throw new rq("Stream request bodies are not supported by the current fetch implementation",rq.ERR_NOT_SUPPORT,e,T);rT.isString(w)||(w=w?"include":"omit");let U=l&&"credentials"in a.prototype;if(rT.isFormData(s)){let e=_.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&_.delete("content-type")}_.set("User-Agent","axios/1.18.1",!1);let j={...A,signal:O,method:n.toUpperCase(),headers:rP(_.normalize()),body:s,duplex:"half",credentials:U?w:void 0};T=l&&new a(o,j);let $=await (l?x(T,A):x(o,j)),G=r$.from($.headers);if(D){let t=rT.toFiniteNumber(G.getContentLength());if(null!=t&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T)}let q=b&&("stream"===E||"response"===E);if(b&&$.body&&(v||D||q&&B)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let o=rT.toFiniteNumber(G.getContentLength()),[n,r]=v&&ib(o,im(ih(v),!0))||[];$=new c(iO($.body,65536,t=>{if(D&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T);n&&n(t)},()=>{r&&r(),B&&B()}),t)}E=E||"text";let H=await h[rT.findKey(h,E)||"text"]($,e);if(D&&!b&&!q){let t;if(null!=H&&("number"==typeof H.byteLength?t=H.byteLength:"number"==typeof H.size?t=H.size:"string"==typeof H&&(t="function"==typeof r?new r().encode(H).byteLength:H.length)),"number"==typeof t&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T)}return!q&&B&&B(),await new Promise((t,o)=>{il(t,o,{data:H,headers:r$.from($.headers),status:$.status,statusText:$.statusText,config:e,request:T})})}catch(t){if(B&&B(),O&&O.aborted&&O.reason instanceof rq){let o=O.reason;throw o.config=e,T&&(o.request=T),t!==o&&Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o}if(R)throw T&&!R.request&&(R.request=T),R;if(t instanceof rq)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let o=new rq("Network Error",rq.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(o,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),o}throw rq.from(t,t&&t.code,e,T,t&&t.response)}}},iL=new Map,iM=e=>{let t=e&&e.env||{},{fetch:o,Request:n,Response:r}=t,i=[n,r,o],a=i.length,c,s,l=iL;for(;a--;)c=i[a],void 0===(s=l.get(c))&&l.set(c,s=a?new Map:iP(t)),l=s;return s};iM();let iU={http:null,xhr:iC,fetch:{get:iM}};rT.forEach(iU,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let ij=e=>`- ${e}`,i$=e=>rT.isFunction(e)||null===e||!1===e,iG=function(e,t){let o,n,{length:r}=e=rT.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(n=o=e[a],!i$(o)&&void 0===(n=iU[(r=String(o)).toLowerCase()]))throw new rq(`Unknown adapter '${r}'`);if(n&&(rT.isFunction(n)||(n=n.get(t))))break;i[r||"#"+a]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rq("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(ij).join("\n"):" "+ij(e[0]):"as no adapter specified"),rq.ERR_NOT_SUPPORT)}return n};function iq(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new is(null,e)}function iH(e){return iq(e),e.headers=r$.from(e.headers),e.data=ia.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iG(e.adapter||ii.adapter,e)(e).then(function(t){iq(e),e.response=t;try{t.data=ia.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=r$.from(t.headers),t},function(t){if(!ic(t)&&(iq(e),t&&t.response)){e.response=t.response;try{t.response.data=ia.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=r$.from(t.response.headers)}return Promise.reject(t)})}let iz={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iz[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});let iW={};iz.transitional=function(e,t,o){function n(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,r,i)=>{if(!1===e)throw new rq(n(r," has been removed"+(t?" in "+t:"")),rq.ERR_DEPRECATED);return t&&!iW[r]&&(iW[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,r,i)}},iz.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};let iV=function(e,t,o){if("object"!=typeof e||null===e)throw new rq("options must be an object",rq.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),r=n.length;for(;r-- >0;){let i=n[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],o=void 0===t||a(t,i,e);if(!0!==o)throw new rq("option "+i+" must be "+o,rq.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new rq("Unknown option "+i,rq.ERR_BAD_OPTION)}};class iY{constructor(e){this.defaults=e||{},this.interceptors={request:new r0,response:new r0}}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),r=-1===n?"":o.slice(n+1);String(e.stack).endsWith(r)||(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:r,paramsSerializer:i,headers:a}=t=iw(this.defaults,t);void 0!==r&&iV(r,{silentJSONParsing:iz.transitional(iz.boolean),forcedJSONParsing:iz.transitional(iz.boolean),clarifyTimeoutError:iz.transitional(iz.boolean),legacyInterceptorReqResOrdering:iz.transitional(iz.boolean),advertiseZstdAcceptEncoding:iz.transitional(iz.boolean),validateStatusUndefinedResolves:iz.transitional(iz.boolean)},!1),null!=i&&(rT.isFunction(i)?t.paramsSerializer={serialize:i}:iV(i,{encode:iz.function,serialize:iz.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iV(t,{baseUrl:iz.spelling("baseURL"),withXsrfToken:iz.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=a&&rT.merge(a.common,a[t.method]);a&&rT.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=r$.concat(c,a);let s=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let o=t.transitional||r1;o&&o.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let f=0;if(!l){let e=[iH.bind(this),void 0];for(e.unshift(...s),e.push(...d),n=e.length,o=Promise.resolve(t);f<n;)o=o.then(e[f++],e[f++]);return o}n=s.length;let u=t;for(;f<n;){let e=s[f++],t=s[f++];try{u=e(u)}catch(e){t.call(this,e);break}}try{o=iH.call(this,u)}catch(e){return Promise.reject(e)}for(f=0,n=d.length;f<n;)o=o.then(d[f++],d[f++]);return o}getUri(e){return rZ(iE((e=iw(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rT.forEach(["delete","get","head","options"],function(e){iY.prototype[e]=function(t,o){return this.request(iw(o||{},{method:e,url:t,data:o&&rT.hasOwnProp(o,"data")?o.data:void 0}))}}),rT.forEach(["post","put","patch","query"],function(e){function t(t){return function(o,n,r){return this.request(iw(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:o,data:n}))}}iY.prototype[e]=t(),"query"!==e&&(iY.prototype[e+"Form"]=t(!0))});let iK=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,r){o.reason||(o.reason=new is(e,n,r),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}}},iJ={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(iJ).forEach(([e,t])=>{iJ[t]=e});let iX=function e(t){let o=new iY(t),n=nQ(iY.prototype.request,o);return rT.extend(n,iY.prototype,o,{allOwnKeys:!0}),rT.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(iw(t,o))},n}(ii);iX.Axios=iY,iX.CanceledError=is,iX.CancelToken=iK,iX.isCancel=ic,iX.VERSION="1.18.1",iX.toFormData=rY,iX.AxiosError=rq,iX.Cancel=iX.CanceledError,iX.all=function(e){return Promise.all(e)},iX.spread=function(e){return function(t){return e.apply(null,t)}},iX.isAxiosError=function(e){return rT.isObject(e)&&!0===e.isAxiosError},iX.mergeConfig=iw,iX.AxiosHeaders=r$,iX.formToJSON=e=>io(rT.isHTMLForm(e)?new FormData(e):e),iX.getAdapter=iG,iX.HttpStatusCode=iJ,iX.default=iX;class iQ{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`asset/predicted/${e}/${t}`,data:o,options:n})}writePredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`asset/predicted/${e}/${t}`,data:o,options:n})}}class iZ{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:ad`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:ad`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:ad`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:ad`map/getCustomMapInfo`,options:e})}getTile(e,t,o,n){return this.httpClient.request({method:"GET",url:ad`map/tile/${e}/${t}/${o}`,options:n})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:ad`map/upload`,queryParams:e,options:t})}}class i0{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:ad`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:ad`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ad`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:ad`realm/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`realm/${e}`,data:t,options:o})}}class i1{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:ad`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:ad`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:ad`flow/${e}`,options:t})}}class i2{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:ad`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,o){return this.httpClient.request({method:"GET",url:ad`rules/asset/for/${e}`,queryParams:t,options:o})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/asset/${e}`,data:t,options:o})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:ad`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ad`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:ad`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ad`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,o){return this.httpClient.request({method:"GET",url:ad`rules/realm/for/${e}`,queryParams:t,options:o})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/realm/${e}`,data:t,options:o})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/${e}`,options:t})}updateGlobalRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/${e}`,data:t,options:o})}}class i3{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:ad`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:ad`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:ad`apps/info`,options:e})}}class i5{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:ad`console/register`,data:e,options:t})}}class i4{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:ad`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:ad`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:ad`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:ad`service/global`,data:e,options:t})}deregisterService(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`service/${e}/${t}`,options:o})}getService(e,t,o){return this.httpClient.request({method:"GET",url:ad`service/${e}/${t}`,options:o})}heartbeat(e,t,o){return this.httpClient.request({method:"PUT",url:ad`service/${e}/${t}`,options:o})}}class i6{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:ad`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:ad`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ad`dashboard/query`,data:e,options:t})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`dashboard/${e}/${t}`,options:o})}get(e,t,o){return this.httpClient.request({method:"GET",url:ad`dashboard/${e}/${t}`,options:o})}}class i8{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:ad`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ad`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:ad`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:ad`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:ad`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:ad`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:ad`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:ad`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/disconnect/${t}`,options:o})}requestPasswordReset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/request-password-reset/${t}`,options:o})}updatePassword(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/reset-password/${t}`,data:o,options:n})}resetSecret(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/reset-secret/${t}`,options:o})}updateRoles(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/roles`,data:t,options:o})}getUserRealmRoles(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/userRealmRoles/${t}`,options:o})}updateUserRealmRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/userRealmRoles/${t}`,data:o,options:n})}getUserClientRoles(e,t,o,n){return this.httpClient.request({method:"GET",url:ad`user/${e}/userRoles/${t}/${o}`,options:n})}updateUserClientRoles(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:ad`user/${e}/userRoles/${t}/${o}`,data:n,options:r})}getUserSessions(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/userSessions/${t}`,options:o})}create(e,t,o){return this.httpClient.request({method:"POST",url:ad`user/${e}/users`,data:t,options:o})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/users`,data:t,options:o})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`user/${e}/users/${t}`,options:o})}getClientRoles(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/${t}/roles`,options:o})}updateClientRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/${t}/roles`,data:o,options:n})}get(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/${t}`,options:o})}}class i9{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:ad`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:ad`info`,options:e})}}class i7{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:ad`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/connection/${e}`,options:t})}setConnection(e,t,o){return this.httpClient.request({method:"PUT",url:ad`gateway/connection/${e}`,data:t,options:o})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/status/${e}`,options:t})}}class ae{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:ad`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:ad`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:ad`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:ad`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:ad`notification/${e}`,options:t})}notificationAcknowledged(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`notification/${e}/acknowledged`,queryParams:o,data:t,options:n})}notificationDelivered(e,t,o){return this.httpClient.request({method:"PUT",url:ad`notification/${e}/delivered`,queryParams:t,options:o})}}class at{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ad`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:ad`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:ad`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:ad`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:ad`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:ad`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:ad`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:ad`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:ad`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ad`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:ad`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ad`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`asset/user/link/${e}/${t}`,options:o})}deleteUserAssetLink(e,t,o,n){return this.httpClient.request({method:"DELETE",url:ad`asset/user/link/${e}/${t}/${o}`,options:n})}get(e,t){return this.httpClient.request({method:"GET",url:ad`asset/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`asset/${e}`,data:t,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/attribute/${t}`,data:o,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/attribute/${t}/${o}`,data:n,options:r})}updateParent(e,t,o){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/child`,queryParams:t,options:o})}}class ao{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:ad`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:ad`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`asset/datapoint/${e}/${t}`,data:o,options:n})}}class an{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:ad`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,o){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}/${t}`,options:o})}getActiveTunnelInfo(e,t,o,n,r){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}/${t}/${o}/${n}`,options:r})}}class ar{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,o){return this.httpClient.request({method:"GET",url:ad`model/assetInfo/${e}`,queryParams:t,options:o})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:ad`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:ad`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/valueDescriptors`,queryParams:e,options:t})}}class ai{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:ad`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:ad`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:ad`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:ad`syslog/event`,queryParams:e,options:t})}}class aa{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:ad`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:ad`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:ad`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,o){return this.httpClient.request({method:"PUT",url:ad`provisioning/${e}`,data:t,options:o})}}class ac{constructor(e){this.httpClient=e}createAlarm(e,t,o){return this.httpClient.request({method:"POST",url:ad`alarm`,queryParams:t,data:e,options:o})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:ad`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:ad`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:ad`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:ad`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:ad`alarm/${e}`,options:t})}updateAlarm(e,t,o){return this.httpClient.request({method:"PUT",url:ad`alarm/${e}`,data:t,options:o})}getAssetLinks(e,t,o){return this.httpClient.request({method:"GET",url:ad`alarm/${e}/assets`,queryParams:t,options:o})}}class as{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:ad`agent/assetDiscovery/${e}`,queryParams:t,options:o})}doProtocolAssetImport(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`agent/assetImport/${e}`,queryParams:o,data:t,options:n})}doProtocolInstanceDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:ad`agent/instanceDiscovery/${e}`,queryParams:t,options:o})}}class al{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:ad`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:ad`configuration/manager`,data:e,options:t})}fileUpload(e,t,o){return this.httpClient.request({method:"POST",url:ad`configuration/manager/file`,queryParams:t,data:e,options:o})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:ad`configuration/manager/image/${e}`,options:t})}}function ad(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 af{constructor(e,t=iX.create()){this._assetPredictedDatapointResource=new am(e,t),this._mapResource=new ab(e,t),this._realmResource=new ah(e,t),this._flowResource=new ap(e,t),this._rulesResource=new aF(e,t),this._appResource=new ag(e,t),this._consoleResource=new av(e,t),this._externalServiceResource=new ay(e,t),this._dashboardResource=new aE(e,t),this._userResource=new a_(e,t),this._statusResource=new aw(e,t),this._gatewayClientResource=new aA(e,t),this._notificationResource=new ak(e,t),this._assetResource=new aC(e,t),this._assetDatapointResource=new aD(e,t),this._gatewayServiceResource=new aS(e,t),this._assetModelResource=new ax(e,t),this._syslogResource=new aO(e,t),this._provisioningResource=new aT(e,t),this._alarmResource=new aB(e,t),this._agentResource=new aR(e,t),this._configurationResource=new aN(e,t),this._assetResource=new aC(e,t)}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get MapResource(){return this._mapResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get RulesResource(){return this._rulesResource}get AppResource(){return this._appResource}get ConsoleResource(){return this._consoleResource}get ExternalServiceResource(){return this._externalServiceResource}get DashboardResource(){return this._dashboardResource}get UserResource(){return this._userResource}get StatusResource(){return this._statusResource}get GatewayClientResource(){return this._gatewayClientResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get AssetDatapointResource(){return this._assetDatapointResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}get SyslogResource(){return this._syslogResource}get ProvisioningResource(){return this._provisioningResource}get AlarmResource(){return this._alarmResource}get AgentResource(){return this._agentResource}get ConfigurationResource(){return this._configurationResource}}class au{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 am extends iQ{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ab extends iZ{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ah extends i0{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ap extends i1{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aF extends i2{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ag extends i3{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class av extends i5{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ay extends i4{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aE extends i6{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class a_ extends i8{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aw extends i9{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aA extends i7{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ak extends ae{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aC extends at{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aD extends ao{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aS extends an{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ax extends ar{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aO extends ai{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aT extends aa{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aB extends ac{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aR extends as{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aN extends al{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}var aI=o(8183),aP=o.n(aI);iX.isAxiosError;let aL=new class{get api(){return this._client}constructor(){this._axiosInstance=iX.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>aP().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 af(e,this._axiosInstance)}};var aM=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,c)}s((n=n.apply(e,t||[])).next())})};(eE=tx||(tx={})).DISCONNECTED="DISCONNECTED",eE.CONNECTED="CONNECTED",eE.CONNECTING="CONNECTING";let aU="SUBSCRIBED:",aj="UNAUTHORIZED:",a$="TRIGGERED:",aG="EVENT:";class aq{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aH.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tx.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===tx.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(tx.CONNECTING),this._connectingDeferred=new nz,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aH.MIN_RECONNECT_DELAY,this._onStatusChanged(tx.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!==tx.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let o={eventSubscription:e,callback:t,deferred:new nz};return null!=this._pendingSubscription||this._status!==tx.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 aM(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===tx.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tx.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,o){return aM(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aq._subscriptionCounter++;if(!this._assetEventPromise){let e;cp.authenticated||(e={filterType:"asset",realm:cp.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;n?n.find(e=>t===e)&&o(e):e.asset.realm===cp.displayRealm&&o(e)}),this._assetEventPromise.then(()=>{try{if(n&&t){let e={messageID:"read-assets:"+n.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:n}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&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),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,o){return aM(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0],r=n?e.map(e=>e.id):e,i=n?e:void 0,a="AttributeEvent"+aq._subscriptionCounter++;if(!this._attributeEventPromise){let e;cp.authenticated||(e={filterType:"asset",realm:cp.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let c=t=>{let i=t.ref;n?e.forEach(e=>{i.id===e.id&&i.name===e.name&&o(t)}):r?r.find(e=>i.id===e)&&o(t):t.realm===cp.displayRealm&&o(t)};return this._attributeEventCallbackMap.set(a,c),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,o])=>{(!i||i.find(o=>o.id===e.id&&o.name===t))&&c({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===tx.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===tx.CONNECTED&&this._onStatusChanged(tx.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tx.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<aH.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aH.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aq.MIN_RECONNECT_DELAY=0,aq.MAX_RECONNECT_DELAY=3e4,aq._subscriptionCounter=0;class aH extends aq{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="+cp.config.realm;return this._connectDeferred=new nz,(cp.authenticated?cp.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(aU)){let e=JSON.parse(t.substring(aU.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&o.resolve(e.subscriptionId)}else if(t.startsWith(aj)){let e=JSON.parse(t.substring(aj.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(a$)){let e=JSON.parse(t.substring(a$.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aG)){let e=JSON.parse(t.substring(aG.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 nz,e.subscriptionId||(e.subscriptionId=aH._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=aG+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 nz;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aG+JSON.stringify(e)),t.promise}}aH._subscriptionCounter=1;let az=["__proto__","constructor","prototype"];function aW(e){return!("string"!=typeof e||0===e.length||e.length>128||az.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aV(e){return!(!aW(e)||e.indexOf("/")>-1)}let aY={lng:aV,ns:function(e){return aW(e)}};function aK(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function aJ(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aX=/\{\{(.+?)\}\}/g;function aQ(e,t){let o=!1,n=e.replace(aX,(e,n)=>{let r=n.trim();if(az.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aY[r]||aV,c=String(i).split("+");for(let t of c)if(!a(t))return o=!0,e;return c.join("+")});return o?null:n}let aZ="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:aZ&&"function"==typeof aZ.fetch&&(t=aZ.fetch);let a0=aJ()&&aZ?aZ.XMLHttpRequest:void 0,a1="function"==typeof ActiveXObject&&aZ?aZ.ActiveXObject:void 0,a2=["__proto__","constructor","prototype"],a3=(e,t)=>{if(t&&"object"==typeof t){let o="";for(let e of Object.keys(t))a2.indexOf(e)>-1||(o+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},a5=(e,o,n,r)=>{let i=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(r){let t=r(e,o);if(t instanceof Promise)return void t.then(i).catch(n)}"function"==typeof fetch?fetch(e,o).then(i).catch(n):t(e,o).then(i).catch(n)},a4=(e,o,n,r)=>{if("function"==typeof n&&(r=n,n=void 0),r=r||(()=>{}),t&&0!==o.indexOf("file:")){var i=o,a=n,c=r;e.queryStringParams&&(i=a3(i,e.queryStringParams));let t={..."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&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(t["Content-Type"]="application/json");let s="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,l={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:t,...e._omitFetchOptions?{}:s},d="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{a5(i,l,c,d)}catch(t){if(!s||0===Object.keys(s).length||!t.message||0>t.message.indexOf("not implemented"))return c(t);try{Object.keys(s).forEach(e=>{delete l[e]}),a5(i,l,c,d),e._omitFetchOptions=!0}catch(e){c(e)}}return}if(aJ()||"function"==typeof ActiveXObject){var s=o,l=n,d=r;l&&"object"==typeof l&&(l=a3("",l).slice(1)),e.queryStringParams&&(s=a3(s,e.queryStringParams));try{let t=a0?new a0:new a1("MSXML2.XMLHTTP.3.0");t.open(l?"POST":"GET",s,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,l&&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))a2.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(l)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var a6=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:a4,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,r){var i,a;let c=this.options.loadPath;"function"==typeof this.options.loadPath&&(c=this.options.loadPath(e,o)),(c=(a=i=c)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=aQ(i,{lng:e.join("+"),ns:o.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(aK).join(", ")+"] namespaces=["+o.map(aK).join(", ")+"]"),!1);this.loadUrl(a,r,t,n)})}loadUrl(e,t,o,n){let r=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof n?[n]:n),i=aK(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,r,(e,r)=>{let a,c;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let o=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>o.indexOf(e)>-1))return t("failed loading "+i+": "+aK(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,o,n):r.data}catch(e){c="failed parsing "+i+" to json"}if(c)return t(c,!1);t(null,a)})}create(e,t,o,n,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,o,n),a=0,c=[],s=[];e.forEach(o=>{let n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(o,t));let l=aQ(n,{lng:o,ns:t});if(null==l){a+=1,r&&a===e.length&&r(c,s);return}this.options.request(this.options,l,i,(t,o)=>{a+=1,c.push(t),s.push(o),a===e.length&&"function"==typeof r&&r(c,s)})})}reload(){let{backendConnector:e,languageUtils:t,logger:o}=this.services,n=e.language;if(n&&"cimode"===n.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(n),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(r,i)=>{r&&o.warn(`loading namespace ${n} for language ${t} failed`,r),!r&&i&&o.log(`loaded namespace ${n} for language ${t}`,i),e.loaded(`${t}|${n}`,r,i)})})})}};a6.type="backend";let a8=e=>(...t)=>({_$litDirective$:e,values:t});class a9{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class a7 extends a9{constructor(e){if(super(e),this.it=ov,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ov||null==e)return this._t=void 0,this.it=e;if(e===og)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}a7.directiveName="unsafeHTML",a7.resultType=1,a8(a7);class ce extends a7{}ce.directiveName="unsafeSVG",ce.resultType=2;let ct=a8(ce),co={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var cn=function(e,t,o,n){var r,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};class cr extends CustomEvent{constructor(){super(cr.NAME,{bubbles:!0,composed:!0})}}cr.NAME="or-iconset-added";let ci=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cr)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return oF``;let t=(e||"").split(":"),o=t.pop(),n=t.pop(),r=this._defaultIconSet;return(n&&(r=this.getIconSet(n)),o&&r)?r.getIconTemplate(o):oF``}},ca=class extends oM{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tz`
|
|
10
|
+
`;class oM extends oI{static finalizeStyles(e){return[oL,...super.finalizeStyles(e)]}}let oU=e=>(t,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},oj={attribute:!0,type:String,converter:t3,reflect:!1,hasChanged:t4};function o$(e){return(t,o)=>{let n;return"object"==typeof o?((e=oj,t,o)=>{let{kind:n,metadata:r}=o,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),i.set(o.name,e),"accessor"===n){let{name:n}=o;return{set(o){let r=t.get.call(this);t.set.call(this,o),this.requestUpdate(n,r,e)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){let{name:n}=o;return function(o){let r=this[n];t.call(this,o),this.requestUpdate(n,r,e)}}throw Error("Unsupported decorator location: "+n)})(e,t,o):(n=t.hasOwnProperty(o),t.constructor.createProperty(o,e),n?Object.getOwnPropertyDescriptor(t,o):void 0)}}function oG(e){return o$({...e,state:!0,attribute:!1})}let oq=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o);function oH(t){return(o,n)=>oq(o,n,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function oz(e){return(t,o)=>{let{slot:n,selector:r}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return oq(t,o,{get(){let t=this.renderRoot?.querySelector(i),o=t?.assignedElements(e)??[];return void 0===r?o:o.filter(e=>e.matches(r))}})}}o(4532),(m=eO||(eO={})).CREATE="CREATE",m.UPDATE="UPDATE",m.DELETE="DELETE",(b=eT||(eT={})).LOW="LOW",b.MEDIUM="MEDIUM",b.HIGH="HIGH",(h=eB||(eB={})).MANUAL="MANUAL",h.CLIENT="CLIENT",h.GLOBAL_RULESET="GLOBAL_RULESET",h.REALM_RULESET="REALM_RULESET",h.ASSET_RULESET="ASSET_RULESET",h.AGENT="AGENT",(p=eR||(eR={})).OPEN="OPEN",p.ACKNOWLEDGED="ACKNOWLEDGED",p.IN_PROGRESS="IN_PROGRESS",p.RESOLVED="RESOLVED",p.CLOSED="CLOSED",(F=eN||(eN={})).BOTTOM_LEFT="BOTTOM_LEFT",F.BOTTOM_RIGHT="BOTTOM_RIGHT",F.TOP_LEFT="TOP_LEFT",F.TOP_RIGHT="TOP_RIGHT",(g=eI||(eI={})).CREATE="CREATE",g.READ="READ",g.UPDATE="UPDATE",g.DELETE="DELETE",(v=eP||(eP={})).NONE="NONE",v.FORECAST="FORECAST",v.SETPOINT="SETPOINT",(y=eL||(eL={})).DISCONNECTED="DISCONNECTED",y.CONNECTING="CONNECTING",y.DISCONNECTING="DISCONNECTING",y.CONNECTED="CONNECTED",y.DISABLED="DISABLED",y.WAITING="WAITING",y.ERROR="ERROR",y.STOPPED="STOPPED",(E=eM||(eM={})).REQUEST_START="REQUEST_START",E.REQUEST_REPEATING="REQUEST_REPEATING",E.REQUEST_CANCEL="REQUEST_CANCEL",E.READY="READY",E.COMPLETED="COMPLETED",E.RUNNING="RUNNING",E.CANCELLED="CANCELLED",(_=eU||(eU={})).TOGGLE="TOGGLE",_.INCREMENT="INCREMENT",_.DECREMENT="DECREMENT",_.NEGATE="NEGATE",(w=ej||(ej={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",w.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",w.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",w.INVALID_VALUE="INVALID_VALUE",w.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",w.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",w.CANNOT_PROCESS="CANNOT_PROCESS",w.QUEUE_FULL="QUEUE_FULL",w.UNKNOWN="UNKNOWN",w.ASSET_ID_MISSING="ASSET_ID_MISSING",w.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(A=e$||(e$={})).PUBLIC="PUBLIC",A.SHARED="SHARED",A.PRIVATE="PRIVATE",(k=eG||(eG={})).OFF="OFF",k.ONE_MIN="ONE_MIN",k.FIVE_MIN="FIVE_MIN",k.QUARTER="QUARTER",k.ONE_HOUR="ONE_HOUR",(C=eq||(eq={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",C.KEEP_LAYOUT="KEEP_LAYOUT",C.REDIRECT="REDIRECT",C.BLOCK_DEVICE="BLOCK_DEVICE",(D=eH||(eH={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(S=ez||(ez={})).MINUTE="MINUTE",S.HOUR="HOUR",S.DAY="DAY",S.WEEK="WEEK",S.MONTH="MONTH",S.YEAR="YEAR",(x=eW||(eW={})).MIN="MIN",x.AVG="AVG",x.MAX="MAX",x.DIFFERENCE="DIFFERENCE",x.COUNT="COUNT",x.SUM="SUM",x.MODE="MODE",x.MEDIAN="MEDIAN",(O=eV||(eV={})).TERMINATING="TERMINATING",O.DISABLED="DISABLED",O.ALREADY_CONNECTED="ALREADY_CONNECTED",O.UNRECOGNISED="UNRECOGNISED",O.PERMANENT_ERROR="PERMANENT_ERROR",O.SYNC_ERROR="SYNC_ERROR",(T=eY||(eY={})).HTTPS="HTTPS",T.HTTP="HTTP",T.TCP="TCP",(B=eK||(eK={})).GET="GET",B.POST="POST",B.PUT="PUT",B.DELETE="DELETE",B.OPTIONS="OPTIONS",B.PATCH="PATCH",(R=eJ||(eJ={})).KEYCLOAK="KEYCLOAK",R.NONE="NONE",(N=eX||(eX={})).WEBSOCKET="WEBSOCKET",N.POLLING="POLLING",(I=eQ||(eQ={})).INTERNAL="INTERNAL",I.CLIENT="CLIENT",I.GLOBAL_RULESET="GLOBAL_RULESET",I.REALM_RULESET="REALM_RULESET",I.ASSET_RULESET="ASSET_RULESET",(P=eZ||(eZ={})).REALM="REALM",P.USER="USER",P.ASSET="ASSET",P.CUSTOM="CUSTOM",(L=e0||(e0={})).NORMAL="NORMAL",L.HIGH="HIGH",(M=e1||(e1={})).DEVICE="DEVICE",M.TOPIC="TOPIC",M.CONDITION="CONDITION",(U=e2||(e2={})).ALWAYS="ALWAYS",U.ONCE="ONCE",U.HOURLY="HOURLY",U.DAILY="DAILY",U.WEEKLY="WEEKLY",U.MONTHLY="MONTHLY",U.ANNUALLY="ANNUALLY",(j=e5||(e5={})).TITLE="TITLE",j.SOURCE="SOURCE",j.STATUS="STATUS",j.SENT_ON="SENT_ON",j.DELIVERED_ON="DELIVERED_ON",($=e3||(e3={})).MESSAGE_INVALID="MESSAGE_INVALID",$.CERTIFICATE_INVALID="CERTIFICATE_INVALID",$.UNAUTHORIZED="UNAUTHORIZED",$.FORBIDDEN="FORBIDDEN",$.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",$.CONFIG_DISABLED="CONFIG_DISABLED",$.USER_DISABLED="USER_DISABLED",$.SERVER_ERROR="SERVER_ERROR",$.ASSET_ERROR="ASSET_ERROR",$.SERVER_BUSY="SERVER_BUSY",(G=e4||(e4={})).PRIVATE="PRIVATE",G.PROTECTED="PROTECTED",G.PUBLIC="PUBLIC",(q=e6||(e6={})).EXACT="EXACT",q.BEGIN="BEGIN",q.END="END",q.CONTAINS="CONTAINS",(H=e8||(e8={})).EQUALS="EQUALS",H.GREATER_THAN="GREATER_THAN",H.GREATER_EQUALS="GREATER_EQUALS",H.LESS_THAN="LESS_THAN",H.LESS_EQUALS="LESS_EQUALS",H.BETWEEN="BETWEEN",(z=e9||(e9={})).CREATED_ON="CREATED_ON",z.NAME="NAME",z.ASSET_TYPE="ASSET_TYPE",z.PARENT_ID="PARENT_ID",z.REALM="REALM",(W=e7||(e7={})).RESTRICTED="RESTRICTED",W.LINKED="LINKED",W.REALM="REALM",(V=te||(te={})).AT_LEAST_ONE="AT_LEAST_ONE",V.ALL="ALL",V.NONE="NONE",(Y=tt||(tt={})).AND="AND",Y.OR="OR",(K=to||(to={})).CREATED_ON="CREATED_ON",K.FIRST_NAME="FIRST_NAME",K.LAST_NAME="LAST_NAME",K.USERNAME="USERNAME",K.EMAIL="EMAIL",(J=tn||(tn={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.ERROR="ERROR",(X=tr||(tr={})).JAVASCRIPT="JAVASCRIPT",X.GROOVY="GROOVY",X.JSON="JSON",X.FLOW="FLOW",(Q=ti||(ti={})).READY="READY",Q.DEPLOYED="DEPLOYED",Q.COMPILATION_ERROR="COMPILATION_ERROR",Q.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",Q.EXECUTION_ERROR="EXECUTION_ERROR",Q.LOOP_ERROR="LOOP_ERROR",Q.DISABLED="DISABLED",Q.PAUSED="PAUSED",Q.EXPIRED="EXPIRED",Q.REMOVED="REMOVED",Q.EMPTY="EMPTY",(Z=ta||(ta={})).SUNRISE="SUNRISE",Z.SUNSET="SUNSET",Z.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Z.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Z.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Z.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Z.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Z.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Z.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Z.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Z.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Z.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Z.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Z.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Z.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Z.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Z.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Z.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Z.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Z.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(ee=tc||(tc={})).NUMBER="NUMBER",ee.NUMBER_ARRAY="NUMBER_ARRAY",ee.STRING="STRING",ee.BOOLEAN="BOOLEAN",ee.TRIGGER="TRIGGER",ee.COLOR="COLOR",ee.ANY="ANY",(et=ts||(ts={})).NEW_LINE="NEW_LINE",et.SPACER="SPACER",(eo=tl||(tl={})).INPUT="INPUT",eo.PROCESSOR="PROCESSOR",eo.OUTPUT="OUTPUT",eo.THEN="THEN",(en=td||(td={})).TEXT="TEXT",en.MULTILINE="MULTILINE",en.NUMBER="NUMBER",en.DROPDOWN="DROPDOWN",en.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",en.CHECKBOX="CHECKBOX",en.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",en.COLOR="COLOR",en.DATE="DATE",(er=tf||(tf={})).ADD="ADD",er.ADD_OR_REPLACE="ADD_OR_REPLACE",er.REPLACE="REPLACE",er.DELETE="DELETE",er.CLEAR="CLEAR",(ei=tu||(tu={})).PER_ASSET="PER_ASSET",ei.GLOBAL="GLOBAL",(ea=tm||(tm={})).READ_ADMIN="read:admin",ea.READ_LOGS="read:logs",ea.READ_USERS="read:users",ea.READ_MAP="read:map",ea.READ_ASSETS="read:assets",ea.READ_RULES="read:rules",ea.READ_INSIGHTS="read:insights",ea.READ_ALARMS="read:alarms",ea.READ_NOTIFICATIONS="read:notifications",ea.READ_SERVICES="read:services",ea.WRITE_SERVICES="write:services",ea.WRITE_USER="write:user",ea.WRITE_ADMIN="write:admin",ea.WRITE_LOGS="write:logs",ea.WRITE_ASSETS="write:assets",ea.WRITE_ATTRIBUTES="write:attributes",ea.WRITE_RULES="write:rules",ea.WRITE_INSIGHTS="write:insights",ea.WRITE_ALARMS="write:alarms",ea.WRITE_NOTIFICATIONS="write:notifications",ea.READ="read",ea.WRITE="write",(ec=tb||(tb={})).REGISTER="REGISTER",ec.UPDATE="UPDATE",ec.DEREGISTER="DEREGISTER",(es=th||(th={})).AVAILABLE="AVAILABLE",es.UNAVAILABLE="UNAVAILABLE",(el=tp||(tp={})).ASSET="ASSET",el.AGENT="AGENT",el.NOTIFICATION="NOTIFICATION",el.ALARM="ALARM",el.RULES="RULES",el.PROTOCOL="PROTOCOL",el.GATEWAY="GATEWAY",el.MODEL_AND_VALUES="MODEL_AND_VALUES",el.API="API",el.DATA="DATA",(ed=tF||(tF={})).INFO="INFO",ed.WARN="WARN",ed.ERROR="ERROR",(ef=tg||(tg={})).NUMERIC="numeric",ef.DIGIT_2="2-digit",ef.FULL="full",ef.LONG="long",ef.MEDIUM="medium",ef.SHORT="short",ef.NARROW="narrow",(eu=tv||(tv={})).SECONDLY="SECONDLY",eu.MINUTELY="MINUTELY",eu.HOURLY="HOURLY",eu.DAILY="DAILY",eu.WEEKLY="WEEKLY",eu.MONTHLY="MONTHLY",eu.YEARLY="YEARLY",(em=ty||(ty={})).OMIT="OMIT",em.BACKWARD="BACKWARD",em.FORWARD="FORWARD",(eb=tE||(tE={})).JAPANESE="JAPANESE",eb.BUDDHIST="BUDDHIST",eb.ROC="ROC",eb.ISLAMIC="ISLAMIC",eb.ISO8601="ISO8601",eb.CHINESE="CHINESE",eb.ETHIOPIC="ETHIOPIC",eb.HEBREW="HEBREW",eb.GREGORIAN="GREGORIAN",(eh=t_||(t_={})).SU="SU",eh.MO="MO",eh.TU="TU",eh.WE="WE",eh.TH="TH",eh.FR="FR",eh.SA="SA",(ep=tw||(tw={})).PEOPLECOUNTERASSET="PeopleCounterAsset",ep.MAILAGENT="MailAgent",ep.UDPAGENT="UDPAgent",ep.ROOMASSET="RoomAsset",ep.CITYASSET="CityAsset",ep.VENTILATIONASSET="VentilationAsset",ep.TRADFRILIGHTASSET="TradfriLightAsset",ep.CONSOLEASSET="ConsoleAsset",ep.PRESENCESENSORASSET="PresenceSensorAsset",ep.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",ep.LIGHTASSET="LightAsset",ep.KNXAGENT="KNXAgent",ep.THETHINGSSTACKAGENT="TheThingsStackAgent",ep.PLUGASSET="PlugAsset",ep.CHIRPSTACKAGENT="ChirpStackAgent",ep.WEATHERASSET="WeatherAsset",ep.THINGASSET="ThingAsset",ep.WEBSOCKETAGENT="WebsocketAgent",ep.TCPAGENT="TCPAgent",ep.GATEWAYASSET="GatewayAsset",ep.SERIALAGENT="SerialAgent",ep.BLUETOOTHMESHAGENT="BluetoothMeshAgent",ep.PARKINGASSET="ParkingAsset",ep.TRADFRIPLUGASSET="TradfriPlugAsset",ep.SIMULATORAGENT="SimulatorAgent",ep.SNMPAGENT="SNMPAgent",ep.GROUPASSET="GroupAsset",ep.BUILDINGASSET="BuildingAsset",ep.MODBUSSERIALAGENT="ModbusSerialAgent",ep.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",ep.MQTTAGENT="MQTTAgent",ep.VELBUSTCPAGENT="VelbusTCPAgent",ep.ARTNETLIGHTASSET="ArtnetLightAsset",ep.VELBUSSERIALAGENT="VelbusSerialAgent",ep.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",ep.MICROPHONEASSET="MicrophoneAsset",ep.MODBUSTCPAGENT="ModbusTcpAgent",ep.ZWAVEAGENT="ZWaveAgent",ep.HTTPAGENT="HTTPAgent",ep.DOORASSET="DoorAsset",ep.THERMOSTATASSET="ThermostatAsset",ep.SHIPASSET="ShipAsset",(eF=tA||(tA={})).COLOURRGB="colourRGB",eF.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",eF.PRICEHOURLY="priceHourly",eF.MQTTPORT="MQTTPort",eF.PINGDISABLED="pingDisabled",eF.FLOW="flow",eF.CHILDASSETTYPE="childAssetType",eF.LASTACCESS="lastAccess",eF.POSITION="position",eF.NETWORKKEY="networkKey",eF.UNIVERSE="universe",eF.ROUTINGMODE="routingMode",eF.MSSINUMBER="MSSINumber",eF.LASTWILLRETAIN="lastWillRetain",eF.LASTWILLTOPIC="lastWillTopic",eF.SERIALBAUDRATE="serialBaudrate",eF.SUBSCRIBEQOS="subscribeQos",eF.LEDCOUNT="lEDCount",eF.LOCKED="locked",eF.CLOUDCOVERAGE="cloudCoverage",eF.BASEURL="baseURL",eF.PROTOCOL="protocol",eF.REQUIREDVALUES="requiredValues",eF.REGION="region",eF.CONSOLEPLATFORM="consolePlatform",eF.GATEWAYSTATUS="gatewayStatus",eF.NO2LEVEL="NO2Level",eF.ATMOSPHERICPRESSURE="atmosphericPressure",eF.SERIALPORT="serialPort",eF.APPLICATIONID="applicationId",eF.TAGS="tags",eF.UNLOCK="unlock",eF.CHECKINTERVALSECONDS="checkIntervalSeconds",eF.LOCATION="location",eF.CLIENTSECRET="clientSecret",eF.WINDDIRECTION="windDirection",eF.WINDSPEED="windSpeed",eF.PARTICLESPM10="particlesPM10",eF.APPLICATIONKEY="applicationKey",eF.LENGTH="length",eF.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",eF.USERNAMEPASSWORD="usernamePassword",eF.WATERLEVEL="waterLevel",eF.CONNECTHEADERS="connectHeaders",eF.CONSOLENAME="consoleName",eF.WEBSOCKETQUERY="websocketQuery",eF.PREFERHTML="preferHTML",eF.PARITY="parity",eF.COOLING="cooling",eF.POLLINGMILLIS="pollingMillis",eF.SOILTEMPERATURE="soilTemperature",eF.SUNIRRADIANCE="sunIrradiance",eF.MESSAGEMAXLENGTH="messageMaxLength",eF.WINDGUSTSPEED="windGustSpeed",eF.LIGHTID="lightId",eF.PROXYADDRESS="proxyAddress",eF.REQUESTQUERYPARAMETERS="requestQueryParameters",eF.MQTTHOST="MQTTHost",eF.SECUREGRPC="secureGRPC",eF.MODEL="model",eF.STREET="street",eF.MANUFACTURER="manufacturer",eF.DELETEPROCESSEDMAIL="deleteProcessedMail",eF.RESUMESESSION="resumeSession",eF.ONOFF="onOff",eF.APIKEY="ApiKey",eF.CITY="city",eF.PRESENCE="presence",eF.SPACESOCCUPIED="spacesOccupied",eF.STARTTLS="startTLS",eF.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",eF.WEBSOCKETPATH="websocketPath",eF.AGENTSTATUS="agentStatus",eF.PRICEDAILY="priceDaily",eF.COUNTGROWTHMINUTE="countGrowthMinute",eF.IMONUMBER="IMONumber",eF.ATTRIBUTION="Attribution",eF.TENANTID="tenantId",eF.REQUESTHEADERS="requestHeaders",eF.HOST="host",eF.COUNTOUTMINUTE="countOutMinute",eF.MESSAGECHARSET="messageCharset",eF.CERTIFICATEALIAS="certificateAlias",eF.EMAIL="email",eF.BINDPORT="bindPort",eF.CONSOLEVERSION="consoleVersion",eF.PARTICLESPM1="particlesPM1",eF.MTU="mtu",eF.SPEED="speed",eF.MESSAGESTRIPDELIMITER="messageStripDelimiter",eF.AREA="area",eF.COUNTRY="country",eF.SHIPTYPE="shipType",eF.CONNECTSUBSCRIPTIONS="connectSubscriptions",eF.RELATIVEHUMIDITY="relativeHumidity",eF.SOURCEADDRESS="sourceAddress",eF.RAINFALL="rainfall",eF.OAUTHGRANT="oAuthGrant",eF.OZONELEVEL="ozoneLevel",eF.SEQUENCENUMBER="sequenceNumber",eF.COUNTINMINUTE="countInMinute",eF.PORT="port",eF.SUNALTITUDE="sunAltitude",eF.COUNTOUT="countOut",eF.ROOMNUMBER="roomNumber",eF.TUNNELINGSUPPORTED="tunnelingSupported",eF.ENINUMBER="ENINumber",eF.PARTICLESPM2_5="particlesPM2_5",eF.AGENTDISABLED="agentDisabled",eF.DISABLED="disabled",eF.COUNTIN="countIn",eF.MESSAGESOURCEADDRESS="messageSourceAddress",eF.PROVISIONWEATHERASSET="ProvisionWeatherAsset",eF.TIMEINJECTIONINTERVAL="timeInjectionInterval",eF.TEMPERATURESETPOINT="temperatureSetpoint",eF.CONSOLEPROVIDERS="consoleProviders",eF.COUNTTOTAL="countTotal",eF.SPACESBUFFER="spacesBuffer",eF.DEVICECONFIG="deviceConfig",eF.SPACESTOTAL="spacesTotal",eF.BINDHOST="bindHost",eF.FANSPEED="fanSpeed",eF.MESSAGECONVERTBINARY="messageConvertBinary",eF.NOTES="notes",eF.MAILFOLDERNAME="mailFolderName",eF.MESSAGEDELIMITERS="messageDelimiters",eF.TEMPERATURE="temperature",eF.SUNZENITH="sunZenith",eF.SNMPVERSIONVALUE="SNMPVersionValue",eF.BRIGHTNESS="brightness",eF.POSTALCODE="postalCode",eF.SPACESOPEN="spacesOpen",eF.HUMIDITY="humidity",eF.SOUNDLEVEL="soundLevel",eF.SECUREMODE="secureMode",eF.DIRECTION="direction",eF.STOPBITS="stopbits",eF.UVINDEX="uVIndex",eF.CONNECTURL="connectURL",eF.CLIENTID="clientId",eF.NATMODE="NATMode",eF.UPDATEONWRITE="updateOnWrite",eF.LASTWILLPAYLOAD="lastWillPayload",eF.GROUPID="groupId",eF.FOLLOWREDIRECTS="followRedirects",eF.SUNAZIMUTH="sunAzimuth",eF.MESSAGECONVERTHEX="messageConvertHex",eF.WEBSOCKETMODE="websocketMode",eF.COLOURTEMPERATURE="colourTemperature",eF.PUBLISHQOS="publishQos",eF.DATABITS="dataBits",(eg=tk||(tk={})).FORMAT="format",eg.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eg.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eg.SECRET="secret",eg.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eg.ATTRIBUTELINKS="attributeLinks",eg.RULERESETIMMEDIATE="ruleResetImmediate",eg.RULESTATE="ruleState",eg.AGENTLINKCONFIG="agentLinkConfig",eg.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eg.FORECAST="forecast",eg.STOREDATAPOINTS="storeDataPoints",eg.LABEL="label",eg.CONSTRAINTS="constraints",eg.UNITS="units",eg.USERCONNECTED="userConnected",eg.SHOWONDASHBOARD="showOnDashboard",eg.READONLY="readOnly",eg.MULTILINE="multiline",eg.ACCESSPUBLICWRITE="accessPublicWrite",eg.MOMENTARY="momentary",eg.AGENTLINK="agentLink",eg.ACCESSRESTRICTEDREAD="accessRestrictedRead",eg.ACCESSPUBLICREAD="accessPublicRead",(ev=tC||(tC={})).ASSETQUERY="assetQuery",ev.WSURL="WS_URL",ev.COLOURRGB="colourRGB",ev.VALUEFORMAT="valueFormat",ev.TEXT="text",ev.BYTE="byte",ev.USERNAMEANDPASSWORD="usernameAndPassword",ev.HTTPURL="HTTP_URL",ev.ATTRIBUTELINK="attributeLink",ev.ASSETID="assetID",ev.NUMBERMAP="numberMap",ev.HTTPMETHOD="HTTPMethod",ev.ATTRIBUTESTATE="attributeState",ev.POSITIVENUMBER="positiveNumber",ev.POSITIVEINTEGER="positiveInteger",ev.EXECUTIONSTATUS="executionStatus",ev.BIGINTEGER="bigInteger",ev.VALUEDESCRIPTOR="valueDescriptor",ev.PERIODDURATIONISO8601="periodDurationISO8601",ev.LONG="long",ev.DATEANDTIME="dateAndTime",ev.BOOLEANMAP="booleanMap",ev.MQTTQOS="MQTTQos",ev.NEGATIVEINTEGER="negativeInteger",ev.TCPIPPORTNUMBER="TCP_IPPortNumber",ev.GEOJSONPOINT="GEO_JSONPoint",ev.SNMPVERSION="SNMPVersion",ev.ASSETTYPE="assetType",ev.JSONOBJECT="JSONObject",ev.INTEGERMAP="integerMap",ev.BIGNUMBER="bigNumber",ev.IPADDRESS="IPAddress",ev.EMAIL="email",ev.TIMESTAMP="timestamp",ev.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",ev.ATTRIBUTEREFERENCE="attributeReference",ev.UUID="UUID",ev.INTEGER="integer",ev.OAUTHGRANT="oAuthGrant",ev.NUMBER="number",ev.DEVICECONFIGMAP="DeviceConfigMap",ev.TEXTMAP="textMap",ev.WEBSOCKETSUBSCRIPTION="websocketSubscription",ev.BOOLEAN="boolean",ev.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",ev.FORECASTCONFIGURATION="forecastConfiguration",ev.TIMEDURATIONISO8601="timeDurationISO8601",ev.TIMESTAMPISO8601="timestampISO8601",ev.CONSOLEPROVIDERS="consoleProviders",ev.MULTIVALUEDTEXTMAP="multivaluedTextMap",ev.NEGATIVENUMBER="negativeNumber",ev.PARITYBIT="Paritybit",ev.JSON="JSON",ev.CRONEXPRESSION="CRONExpression",ev.INTEGERBYTE="integerByte",ev.AGENTLINK="agentLink",ev.DIRECTION="direction",ev.HOSTORIPADDRESS="hostOrIPAddress",ev.STOPBITS="Stopbits",ev.CALENDAREVENT="calendarEvent",ev.CONNECTIONSTATUS="connectionStatus",ev.VALUECONSTRAINT="valueConstraint",(ey=tD||(tD={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tS||(tS={});class oW{static getAssetDescriptors(){return oW._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let o=this.getAssetTypeInfo(t||"ThingAsset");if(o&&o.attributeDescriptors)return o.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let o=this._valueDescriptors.find(t=>t.name===e);return o&&t&&(o=Object.assign(Object.assign({},o),{arrayDimensions:t})),o}static resolveValueDescriptor(e,t){let o;return t&&("string"==typeof t&&(o=oW.getValueDescriptor(t)),o=t.jsonType?t:oW.getValueDescriptor(t.type)),!o&&e&&(o=oW.getValueDescriptor("JSON")),o}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,o=e.find(e=>null!=e);for(;Array.isArray(o);)o=o.find(e=>null!=e),t++;let n=this.resolveValueTypeFromValue(o);if(!n)return;for(;t>0;)n+="[]",t--;return n}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,o){let n,r;if(t&&"string"!=typeof t)n=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(n=this.getAttributeDescriptor(t,r)),!n&&o&&(n={type:o.type,name:o.name,meta:o.meta})}return n&&(r=this.getValueDescriptor(n.type)),[n,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let o=this.getAssetDescriptor(e);return o&&o.colour?o.colour:t}static getAssetDescriptorIcon(e,t){let o=this.getAssetDescriptor(e);return o&&o.icon?o.icon:t}}function oV(e){return(oV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oY(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function oK(e){var t=function(e,t){if("object"!=oV(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=oV(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oV(t)?t:t+""}function oJ(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oK(n.key),n)}}function oX(e,t,o){return t&&oJ(e.prototype,t),o&&oJ(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function oQ(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oZ(e,t){return(oZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o0(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oZ(e,t)}function o1(e,t){if(t&&("object"==oV(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return oQ(e)}function o2(e){return(o2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o5(e,t,o){return(t=oK(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function o3(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function o4(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function o6(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o4(Object(o),!0).forEach(function(t){o5(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o4(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}oW._assetTypeInfos=[],oW._metaItemDescriptors=[],oW._valueDescriptors=[];var o8={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},o9=new(function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oY(this,e),this.init(t,o)}return oX(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||o8,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,o,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(o).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,o6(o6({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),o7=function(){function e(){oY(this,e),this.observers={}}return oX(e,[{key:"on",value:function(e,t){var o=this;return e.split(" ").forEach(function(e){o.observers[e]=o.observers[e]||[],o.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(o))})}}]),e}();function ne(){var e,t,o=new Promise(function(o,n){e=o,t=n});return o.resolve=e,o.reject=t,o}function nt(e){return null==e?"":""+e}function no(e,t,o){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var a=n(i.shift());!e[a]&&o&&(e[a]=new o),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:n(i.shift())}}function nn(e,t,o){var n=no(e,t,Object);n.obj[n.k]=o}function nr(e,t){var o=no(e,t),n=o.obj,r=o.k;if(n)return n[r]}function ni(e,t,o){var n=nr(e,o);return void 0!==n?n:nr(t,o)}function na(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var nc={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ns(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return nc[e]}):e}var nl="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,nd=[" ",",","?","!",";"];function nf(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nu(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(o),!0).forEach(function(t){o5(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nf(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nm=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return oY(this,n),t=o.call(this),nl&&o7.call(oQ(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return oX(n,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];o&&"string"!=typeof o&&(a=a.concat(o)),o&&"string"==typeof o&&(a=a.concat(r?o.split(r):o)),e.indexOf(".")>-1&&(a=e.split("."));var c=nr(this.data,a);return c||!i||"string"!=typeof o?c:function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[o])return t[o];for(var r=o.split(n),i=t,a=0;a<r.length;++a){if(!i||"string"==typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var c=2,s=r.slice(a,a+c).join(n),l=i[s];void 0===l&&r.length>a+c;)c++,l=i[s=r.slice(a,a+c).join(n)];if(void 0===l)return;if(null===l)return null;if(o.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var d=r.slice(a+c).join(n);if(d)return e(l,d,n);return}i=i[r[a]]}return i}}(this.data&&this.data[e]&&this.data[e][t],o,r)}},{key:"addResource",value:function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];o&&(a=a.concat(i?o.split(i):o)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),nn(this.data,a,n),r.silent||this.emit("added",e,t,o,n)}},{key:"addResources",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in o)("string"==typeof o[r]||"[object Array]"===Object.prototype.toString.apply(o[r]))&&this.addResource(e,t,r,o[r],{silent:!0});n.silent||this.emit("added",e,t,o)}},{key:"addResourceBundle",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=o,o=t,t=a[1]),this.addNamespaces(t);var c=nr(this.data,a)||{};n?function e(t,o,n){for(var r in o)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof o[r]||o[r]instanceof String?n&&(t[r]=o[r]):e(t[r],o[r],n):t[r]=o[r]);return t}(c,o,r):c=nu(nu({},c),o),nn(this.data,a,c),i.silent||this.emit("added",e,t,o)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?nu(nu({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(o7),nb={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,o,n,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,o,n,r))}),t}};function nh(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function np(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(o),!0).forEach(function(t){o5(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nh(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nF={},ng=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e){var t,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return oY(this,n),i=o.call(this),nl&&o7.call(oQ(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=oQ(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=a,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=o9.create("translator"),i}return oX(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var o=this.resolve(e,t);return o&&void 0!==o.res}},{key:"extractFromKey",value:function(e,t){var o=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=o&&e.indexOf(o)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,o){t=t||"",o=o||"";var n=nd.filter(function(e){return 0>t.indexOf(e)&&0>o.indexOf(e)});if(0===n.length)return!0;var r=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var a=e.indexOf(o);a>0&&!r.test(e.substring(0,a))&&(i=!0)}return i}(e,o,n);if(i&&!a){var c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:r};var s=e.split(o);(o!==n||o===n&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(n)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,o){var r=this;if("object"!==oV(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],t),s=c.key,l=c.namespaces,d=l[l.length-1],f=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(u){var m=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(d).concat(m).concat(s),b):"".concat(d).concat(m).concat(s)}return i?(b.res=s,b):s}var b=this.resolve(e,t),h=b&&b.res,p=b&&b.usedKey||s,F=b&&b.exactUsedKey||s,g=Object.prototype.toString.apply(h),v=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&E&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&("string"!=typeof v||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,np(np({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=_,b):_}if(a){var w="[object Array]"===g,A=w?[]:{},k=w?F:p;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var D="".concat(k).concat(a).concat(C);A[C]=this.translate(D,np(np({},t),{joinArrays:!1,ns:l})),A[C]===D&&(A[C]=h[C])}h=A}}else if(y&&"string"==typeof v&&"[object Array]"===g)(h=h.join(v))&&(h=this.extendTranslation(h,e,t,o));else{var S=!1,x=!1,O=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),B=O?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(B)]||t.defaultValue;!this.isValidLookup(h)&&T&&(S=!0,h=R),this.isValidLookup(h)||(x=!0,h=s);var N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:h,I=T&&R!==h&&this.options.updateMissing;if(x||S||I){if(this.logger.log(I?"updateKey":"missingKey",f,d,s,I?R:h),a){var P=this.resolve(s,np(np({},t),{},{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var U=0;U<M.length;U++)L.push(M[U]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var j=function(e,o,n){var i=T&&n!==h?n:N;r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,o,i,I,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,o,i,I,t),r.emit("missingKey",e,d,o,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?L.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(o){j([e],s+o,t["defaultValue".concat(o)]||R)})}):j(L,s,R))}h=this.extendTranslation(h,e,t,b,o),x&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(d,":").concat(s)),(x||S)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(s):s,S?h:void 0):this.options.parseMissingKeyHandler(h))}return i?(b.res=h,b):h}},{key:"extendTranslation",value:function(e,t,o,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,np(np({},this.options.interpolation.defaultVariables),o),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(np(np({},o),{interpolation:np(np({},this.options.interpolation),o.interpolation)}));var a,c="string"==typeof e&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(c){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=o.replace&&"string"!=typeof o.replace?o.replace:o;if(this.options.interpolation.defaultVariables&&(l=np(np({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,o.lng||this.language,o),c){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(o.nest=!1)}!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];return r&&r[0]===n[0]&&!o.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))},o)),o.interpolation&&this.interpolator.reset()}var f=o.postProcess||this.options.postProcess,u="string"==typeof f?[f]:f;return null!=e&&u&&u.length&&!1!==o.applyPostProcessor&&(e=nb.handle(u,e,t,this.options&&this.options.postProcessPassResolved?np({i18nResolved:n},o):o,this)),e}},{key:"resolve",value:function(e){var t,o,n,r,i,a=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,c),l=s.key;o=l;var d=s.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var f=void 0!==c.count&&"string"!=typeof c.count,u=f&&!c.ordinal&&0===c.count&&a.pluralResolver.shouldUseIntlApi(),m=void 0!==c.context&&("string"==typeof c.context||"number"==typeof c.context)&&""!==c.context,b=c.lngs?c.lngs:a.languageUtils.toResolveHierarchy(c.lng||a.language,c.fallbackLng);d.forEach(function(e){a.isValidLookup(t)||(i=e,!nF["".concat(b[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(nF["".concat(b[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(o,'" for languages "').concat(b.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(function(o){if(!a.isValidLookup(t)){r=o;var i,s=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(s,l,o,e,c);else{f&&(d=a.pluralResolver.getSuffix(o,c.count,c));var d,b="".concat(a.options.pluralSeparator,"zero");if(f&&(s.push(l+d),u&&s.push(l+b)),m){var h="".concat(l).concat(a.options.contextSeparator).concat(c.context);s.push(h),f&&(s.push(h+d),u&&s.push(h+b))}}for(;i=s.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(o,e,i,c))}}))})}}),{res:t,usedKey:o,exactUsedKey:n,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,o,n):this.resourceStore.getResource(e,t,o,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t===o.substring(0,t.length)&&void 0!==e[o])return!0;return!1}}]),n}(o7);function nv(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ny=function(){function e(t){oY(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o9.create("languageUtils")}return oX(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],o=e.split("-");return this.options.lowerCaseLng?o=o.map(function(e){return e.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nv(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nv(o[1].toLowerCase())),t.indexOf(o[2].toLowerCase())>-1&&(o[2]=nv(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,o=this;return e?(e.forEach(function(e){if(!t){var n=o.formatLanguageCode(e);(!o.options.supportedLngs||o.isSupportedCode(n))&&(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=o.getLanguagePartFromCode(e);if(o.isSupportedCode(n))return t=n;t=o.options.supportedLngs.find(function(e){if(0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}},{key:"toResolveHierarchy",value:function(e,t){var o=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(o.isSupportedCode(e)?r.push(e):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>r.indexOf(e)&&i(o.formatLanguageCode(e))}),r}}]),e}(),nE=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],n_={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},nw=["v1","v2","v3"],nA={zero:0,one:1,two:2,few:3,many:4,other:5},nk=function(){function e(t){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oY(this,e),this.languageUtils=t,this.options=n,this.logger=o9.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(o={},nE.forEach(function(e){e.lngs.forEach(function(t){o[t]={numbers:e.nr,plurals:n_[e.fc]}})}),o)}return oX(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,t);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,o).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return nA[e]-nA[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,o)}):[]}},{key:"getSuffix",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var o=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return o.options.prepend&&r.toString()?o.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!nw.includes(this.options.compatibilityJSON)}}]),e}();function nC(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nD(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nC(Object(o),!0).forEach(function(t){o5(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nC(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oY(this,e),this.logger=o9.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return oX(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ns,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?na(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?na(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?na(t.nestingPrefix):t.nestingPrefixEscaped||na("$t("),this.nestingSuffix=t.nestingSuffix?na(t.nestingSuffix):t.nestingSuffixEscaped||na(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(o,"g")}},{key:"interpolate",value:function(e,t,o,n){var r,i,a,c=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(c.formatSeparator)){var r=ni(t,s,e);return c.alwaysFormat?c.format(r,void 0,o,nD(nD(nD({},n),t),{},{interpolationkey:e})):r}var i=e.split(c.formatSeparator),a=i.shift().trim(),l=i.join(c.formatSeparator).trim();return c.format(ni(t,s,a),l,o,nD(nD(nD({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,u=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return c.escapeValue?l(c.escape(e)):l(e)}}].forEach(function(t){for(a=0;r=t.regex.exec(e);){var o=r[1].trim();if(void 0===(i=d(o)))if("function"==typeof f){var s=f(e,r,n);i="string"==typeof s?s:""}else if(n&&n.hasOwnProperty(o))i="";else if(u){i=r[0];continue}else c.logger.warn("missed to pass in variable ".concat(o," for interpolating ").concat(e)),i="";else"string"==typeof i||c.useRawValueToEscape||(i=nt(i));var l=t.safeValue(i);if(e=e.replace(r[0],l),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=c.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var o,n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=nD({},i);function c(e,t){var o=this.nestingOptionsSeparator;if(0>e.indexOf(o))return e;var n=e.split(new RegExp("".concat(o,"[ ]*{"))),r="{".concat(n[1]);e=n[0];var i=(r=this.interpolate(r,a)).match(/'/g),c=r.match(/"/g);(i&&i.length%2==0&&!c||c.length%2!=0)&&(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a=nD(nD({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(o).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;o=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(e){return e.trim()});o[1]=d.shift(),s=d,l=!0}if((n=t(c.call(this,o[1].trim(),a),a))&&o[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=nt(n)),n||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),n=""),l&&(n=s.reduce(function(e,t){return r.format(e,t,i.lng,nD(nD({},i),{},{interpolationkey:o[1].trim()}))},n.trim())),e=e.replace(o[0],n),this.regexp.lastIndex=0}return e}}]),e}();function nx(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nO(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nx(Object(o),!0).forEach(function(t){o5(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nx(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nT(e){var t={};return function(o,n,r){var i=n+JSON.stringify(r),a=t[i];return a||(a=e(n,r),t[i]=a),a(o)}}var nB=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oY(this,e),this.logger=o9.create("formatter"),this.options=t,this.formats={number:nT(function(e,t){var o=new Intl.NumberFormat(e,t);return function(e){return o.format(e)}}),currency:nT(function(e,t){var o=new Intl.NumberFormat(e,nO(nO({},t),{},{style:"currency"}));return function(e){return o.format(e)}}),datetime:nT(function(e,t){var o=new Intl.DateTimeFormat(e,nO({},t));return function(e){return o.format(e)}}),relativetime:nT(function(e,t){var o=new Intl.RelativeTimeFormat(e,nO({},t));return function(e){return o.format(e,t.range||"day")}}),list:nT(function(e,t){var o=new Intl.ListFormat(e,nO({},t));return function(e){return o.format(e)}})},this.init(t)}return oX(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=t.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=nT(t)}},{key:"format",value:function(e,t,o,n){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),o={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);"currency"===t&&0>r.indexOf(":")?o.currency||(o.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?o.range||(o.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o3(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o3(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");o[r.trim()]||(o[r.trim()]=i),"false"===i&&(o[r.trim()]=!1),"true"===i&&(o[r.trim()]=!0),isNaN(i)||(o[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:o}}(t),a=i.formatName,c=i.formatOptions;if(r.formats[a]){var s=e;try{var l=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},d=l.locale||l.lng||n.locale||n.lng||o;s=r.formats[a](e,d,nO(nO(nO({},c),n),l))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function nR(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nN(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nR(Object(o),!0).forEach(function(t){o5(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nR(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nI=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return oY(this,n),i=o.call(this),nl&&o7.call(oQ(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=o9.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return oX(n,[{key:"queueLoad",value:function(e,t,o,n){var r=this,i={},a={},c={},s={};return e.forEach(function(e){var n=!0;t.forEach(function(t){var c="".concat(e,"|").concat(t);!o.reload&&r.store.hasResourceBundle(e,t)?r.state[c]=2:r.state[c]<0||(1===r.state[c]?void 0===a[c]&&(a[c]=!0):(r.state[c]=1,n=!1,void 0===a[c]&&(a[c]=!0),void 0===i[c]&&(i[c]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(c[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,o){var n=e.split("|"),r=n[0],i=n[1];t&&this.emit("failedLoading",r,i,t),o&&this.store.addResourceBundle(r,i,o),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(o){var n,c,s,l;n=o.loaded,(s=(c=no(n,[r],Object)).obj)[l=c.k]=s[l]||[],s[l].push(i),void 0!==o.pending[e]&&(delete o.pending[e],o.pendingCount--),t&&o.errors.push(t),0!==o.pendingCount||o.done||(Object.keys(o.loaded).forEach(function(e){a[e]||(a[e]={});var t=o.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,o){var n=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:o,tried:r,wait:i,callback:a}):(this.readingCalls++,this.backend[o](e,t,function(c,s){if(n.readingCalls--,n.waitingReads.length>0){var l=n.waitingReads.shift();n.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}c&&s&&r<n.maxRetries?setTimeout(function(){n.read.call(n,e,t,o,r+1,2*i,a)},i):a(c,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){o.loadOne(e)})}},{key:"load",value:function(e,t,o){this.prepareLoading(e,t,{},o)}},{key:"reload",value:function(e,t,o){this.prepareLoading(e,t,{reload:!0},o)}},{key:"loadOne",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,function(n,a){n&&t.logger.warn("".concat(o,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&a&&t.logger.log("".concat(o,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,n,a)})}},{key:"saveMissing",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==o||""===o||(this.backend&&this.backend.create&&this.backend.create(e,t,o,n,null,nN(nN({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,o,n))}}]),n}(o7);function nP(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function nL(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nM(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nL(Object(o),!0).forEach(function(t){o5(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nL(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nU(){}var nj=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(oY(this,n),t=o.call(this),nl&&o7.call(oQ(t)),t.options=nP(r),t.services={},t.logger=o9,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=oQ(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),o1(t,oQ(t));setTimeout(function(){t.init(r,i)},0)}return t}return oX(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(o=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var n={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===oV(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===oV(e[2])||"object"===oV(e[3])){var o=e[3]||e[2];Object.keys(o).forEach(function(e){t[e]=o[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,o,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=nM(nM(nM({},n),this.options),nP(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=nM(nM({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?o9.init(r(this.modules.logger),this.options):o9.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=nB);var i,a=new ny(this.options);this.store=new nm(this.options.resources,this.options);var c=this.services;c.logger=o9,c.resourceStore=this.store,c.languageUtils=a,c.pluralResolver=new nk(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(c.formatter=r(i),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new nS(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new nI(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new ng(this.services,this.options),this.translator.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,o||(o=nU),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments),e}});var l=ne(),d=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(n),o(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nU,n=o,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,o){var n=ne();return e||(e=this.languages),t||(t=this.options.ns),o||(o=nU),this.services.backendConnector.reload(e,t,function(e){n.resolve(),o(e)}),n}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&nb.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var o=this.languages[t];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(e,t){var o=this;this.isLanguageChangingTo=e;var n=ne();this.emit("languageChanging",e);var r=function(e){o.language=e,o.languages=o.services.languageUtils.toResolveHierarchy(e),o.resolvedLanguage=void 0,o.setResolvedLanguage(e)},i=function(e,i){i?(r(i),o.translator.changeLanguage(i),o.isLanguageChangingTo=void 0,o.emit("languageChanged",i),o.logger.log("languageChanged",i)):o.isLanguageChangingTo=void 0,n.resolve(function(){return o.t.apply(o,arguments)}),t&&t(e,function(){return o.t.apply(o,arguments)})},a=function(t){e||t||!o.services.languageDetector||(t=[]);var n="string"==typeof t?t:o.services.languageUtils.getBestMatchFromCodes(t);n&&(o.language||r(n),o.translator.language||o.translator.changeLanguage(n),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(n)),o.loadResources(n,function(e){i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,o){var n=this,r=function e(t,r){if("object"!==oV(r)){for(var i,a=arguments.length,c=Array(a>2?a-2:0),s=2;s<a;s++)c[s-2]=arguments[s];i=n.options.overloadTranslationOptionHandler([t,r].concat(c))}else i=nM({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||o||e.keyPrefix;var l=n.options.keySeparator||".",d=i.keyPrefix?"".concat(i.keyPrefix).concat(l).concat(t):t;return n.t(d,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=o,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,o){var n=t.services.backendConnector.state["".concat(e,"|").concat(o)];return -1===n||2===n};if(o.precheck){var c=o.precheck(this,a);if(void 0!==c)return c}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var o=this,n=ne();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>o.options.ns.indexOf(e)&&o.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var o=ne();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter(function(e){return 0>n.indexOf(e)});return r.length?(this.options.preload=n.concat(r),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nU,r=nM(nM(nM({},this.options),t),{isClone:!0}),i=new n(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=nM({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new ng(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];i.emit.apply(i,[e].concat(o))}),i.init(r,o),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(o7);o5(nj,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new nj(e,t)});var n$=nj.createInstance();n$.createInstance=nj.createInstance,n$.createInstance,n$.init,n$.loadResources,n$.reloadResources,n$.use,n$.changeLanguage,n$.getFixedT,n$.t,n$.exists,n$.setDefaultNamespace,n$.hasLoadedNamespace,n$.loadNamespaces,n$.loadLanguages;let nG=n$;var nq=o(4867),nH=o.n(nq);o(3472);class nz{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 nW(e){return(t,o)=>{let n=e(t),r=e(o);return n||r?n&&!r?1:!n&&r?-1:n.localeCompare(r):0}}function nV(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}class nY{constructor(e){e&&Object.assign(this,e)}matches(e){var t,o,n,r,i,a,c;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==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.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==(c=this.names)||!c.length||!!this.names.every(t=>nY._evalValuePredicate(e.name,t)))&&(!this.attributes||nY._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!nY._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?nY._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var o;switch(t.predicateType){case"string":{let n;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(o=t.value)?void 0:o.toLowerCase();switch(t.match){case"BEGIN":n=r.startsWith(i);break;case"END":n=r.endsWith(i);break;case"CONTAINS":n=r.includes(i);break;default:n=r===i}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 r=null==(o=t.name)?void 0:o.value;if(!r)return!0;let i=null==(n=e.attributes)?void 0:n[r];if(!i)return!!t.negated;let a=!t.value||nY._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var o,n,r;let i=null!=(o=t.operator)?o:"AND",a=[...(null!=(n=t.items)?n:[]).map(t=>nY._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>nY._evalGroup(e,t))];return!a.length||("OR"===i?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=>nY._collectNames(e))]}}nY._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var nK=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,c)}s((n=n.apply(e,t||[])).next())})};let nJ=o(4461);class nX{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),r=n.get("consoleName"),i=n.get("consoleVersion"),a=n.get("consolePlatform"),c=n.get("consoleProviders"),s=n.get("consoleAutoEnable"),l=c&&c.length>0?c.split(" "):["push"];this._pendingProviderEnables=l;let d=nX._createConsoleRegistration(),f=window.localStorage.getItem(this._storageKey);if(f)try{let e=JSON.parse(f);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 u=d.providers;for(let e of(d.providers={},l)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let m=cp.getAppName();m.length>0&&0>d.apps.indexOf(m)&&d.apps.push(m),this._registration=d,r&&(d.name=r),i&&(d.version=i),a&&(d.platform=a),s&&(this._autoEnable="TRUE"===s||"true"===s)}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 nK(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 nK(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 nK(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 r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),n})}disableProvider(e){return nK(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 nK(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 nz,r=()=>{delete this._pendingProviderPromises[o],n.reject("No response from provider")};return this._pendingProviderPromises[o]=[n,window.setTimeout(r,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(()=>nK(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 nK(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield cp.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&&nX._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 nK(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,r=this._pendingProviderPromises[o+n];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[o+n],r[0].resolve(t));let i=this._providerMessageListeners[o+n];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:nJ.name,version:nJ.version,platform:nJ.os.toString(),apps:[],model:((nJ.manufacturer?nJ.manufacturer+" ":"")+(nJ.product?nJ.product:"")).trim()}}_initialiseProvider(e){return nK(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 nQ(e,t){return function(){return e.apply(t,arguments)}}let{toString:nZ}=Object.prototype,{getPrototypeOf:n0}=Object,{iterator:n1,toStringTag:n2}=Symbol,n5=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),n3=(e,t)=>{let o=e,n=[];for(;null!=o&&o!==Object.prototype&&-1===n.indexOf(o);){if(n.push(o),n5(o,t))return!0;o=n0(o)}return!1},n4=(i=Object.create(null),e=>{let t=nZ.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),n6=e=>(e=e.toLowerCase(),t=>n4(t)===e),n8=e=>t=>typeof t===e,{isArray:n9}=Array,n7=n8("undefined");function re(e){return null!==e&&!n7(e)&&null!==e.constructor&&!n7(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let rt=n6("ArrayBuffer"),ro=n8("string"),rn=n8("function"),rr=n8("number"),ri=e=>null!==e&&"object"==typeof e,ra=e=>{if(!ri(e))return!1;let t=n0(e);return(null===t||t===Object.prototype||null===n0(t))&&!n3(e,n2)&&!n3(e,n1)},rc=n6("Date"),rs=n6("File"),rl=n6("Blob"),rd=n6("FileList"),rf="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ru=void 0!==rf.FormData?rf.FormData:void 0,rm=n6("URLSearchParams"),[rb,rh,rp,rF]=["ReadableStream","Request","Response","Headers"].map(n6);function rg(e,t,{allOwnKeys:o=!1}={}){let n,r;if(null!=e)if("object"!=typeof e&&(e=[e]),n9(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{let r;if(re(e))return;let i=o?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(n=0;n<a;n++)r=i[n],t.call(null,e[r],r,e)}}function rv(e,t){let o;if(re(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length;for(;r-- >0;)if(t===(o=n[r]).toLowerCase())return o;return null}let ry="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rE=e=>!n7(e)&&e!==ry,r_=(a="u">typeof Uint8Array&&n0(Uint8Array),e=>a&&e instanceof a),rw=n6("HTMLFormElement"),{propertyIsEnumerable:rA}=Object.prototype,rk=n6("RegExp"),rC=(e,t)=>{let o=Object.getOwnPropertyDescriptors(e),n={};rg(o,(o,r)=>{let i;!1!==(i=t(o,r,e))&&(n[r]=i||o)}),Object.defineProperties(e,n)},rD=n6("AsyncFunction"),rS=(l="function"==typeof setImmediate,d=rn(ry.postMessage),l?setImmediate:d?(f=`axios@${Math.random()}`,u=[],ry.addEventListener("message",({source:e,data:t})=>{e===ry&&t===f&&u.length&&u.shift()()},!1),e=>{u.push(e),ry.postMessage(f,"*")}):e=>setTimeout(e)),rx="u">typeof queueMicrotask?queueMicrotask.bind(ry):"u">typeof process&&process.nextTick||rS,rO=e=>null!=e&&rn(e[n1]),rT={isArray:n9,isArrayBuffer:rt,isBuffer:re,isFormData:e=>{if(!e)return!1;if(ru&&e instanceof ru)return!0;let t=n0(e);if(!t||t===Object.prototype||!rn(e.append))return!1;let o=n4(e);return"formdata"===o||"object"===o&&rn(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&rt(e.buffer)},isString:ro,isNumber:rr,isBoolean:e=>!0===e||!1===e,isObject:ri,isPlainObject:ra,isEmptyObject:e=>{if(!ri(e)||re(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:rb,isRequest:rh,isResponse:rp,isHeaders:rF,isUndefined:n7,isDate:rc,isFile:rs,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:rl,isRegExp:rk,isFunction:rn,isStream:e=>ri(e)&&rn(e.pipe),isURLSearchParams:rm,isTypedArray:r_,isFileList:rd,forEach:rg,merge:function e(...t){let{caseless:o,skipUndefined:n}=rE(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=o&&"string"==typeof i&&rv(r,i)||i,c=n5(r,a)?r[a]:void 0;ra(c)&&ra(t)?r[a]=e(c,t):ra(t)?r[a]=e({},t):n9(t)?r[a]=t.slice():n&&n7(t)||(r[a]=t)};for(let e=0,o=t.length;e<o;e++){let o=t[e];if(!o||re(o)||(rg(o,i),"object"!=typeof o||n9(o)))continue;let n=Object.getOwnPropertySymbols(o);for(let e=0;e<n.length;e++){let t=n[e];rA.call(o,t)&&i(o[t],t)}}return r},extend:(e,t,o,{allOwnKeys:n}={})=>(rg(t,(t,n)=>{o&&rn(t)?Object.defineProperty(e,n,{__proto__:null,value:nQ(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 r,i,a,c={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!n||n(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=!1!==o&&n0(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:n4,kindOfTest:n6,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(n9(e))return e;let t=e.length;if(!rr(t))return null;let o=Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{let o,n=(e&&e[n1]).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:rw,hasOwnProperty:n5,hasOwnProp:n5,hasOwnInPrototypeChain:n3,getSafeProp:(e,t)=>null!=e&&n3(e,t)?e[t]:void 0,reduceDescriptors:rC,freezeMethods:e=>{rC(e,(t,o)=>{if(rn(e)&&["arguments","caller","callee"].includes(o))return!1;if(rn(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(n9(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:rv,global:ry,isContextDefined:rE,isSpecCompliantForm:function(e){return!!(e&&rn(e.append)&&"FormData"===e[n2]&&e[n1])},toJSONObject:e=>{let t=new WeakSet,o=e=>{if(ri(e)){if(t.has(e))return;if(re(e))return e;if(!("toJSON"in e)){t.add(e);let n=n9(e)?[]:{};return rg(e,(e,t)=>{let r=o(e);n7(r)||(n[t]=r)}),t.delete(e),n}}return e};return o(e)},isAsyncFn:rD,isThenable:e=>e&&(ri(e)||rn(e))&&rn(e.then)&&rn(e.catch),setImmediate:rS,asap:rx,isIterable:rO,isSafeIterable:e=>null!=e&&n3(e,n1)&&rO(e)},rB=rT.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"]),rR=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rN=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rI(e,t){return rT.isArray(e)?e.map(e=>rI(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 rP(e){let t=Object.create(null);return rT.forEach(e.toJSON(),(e,o)=>{t[o]=rI(e,rN)}),t}let rL=Symbol("internals");function rM(e){return e&&String(e).trim().toLowerCase()}function rU(e){return!1===e||null==e?e:rT.isArray(e)?e.map(rU):rI(String(e),rR)}function rj(e,t,o,n,r){if(rT.isFunction(n))return n.call(this,t,o);if(r&&(t=o),rT.isString(t)){if(rT.isString(n))return -1!==t.indexOf(n);if(rT.isRegExp(n))return n.test(t)}}class r${constructor(e){e&&this.set(e)}set(e,t,o){let n=this;function r(e,t,o){let r=rM(t);if(!r)return;let i=rT.findKey(n,r);i&&void 0!==n[i]&&!0!==o&&(void 0!==o||!1===n[i])||(n[i||t]=rU(e))}let i=(e,t)=>rT.forEach(e,(e,o)=>r(e,o,t));if(rT.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(rT.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var a;let o,n,r,c;i((c={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),o=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!o||c[o]&&rB[o]||("set-cookie"===o?c[o]?c[o].push(n):c[o]=[n]:c[o]=c[o]?c[o]+", "+n:n)}),c),t)}else if(rT.isObject(e)&&rT.isSafeIterable(e)){let o=Object.create(null),n,r;for(let t of e){if(!rT.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rT.hasOwnProp(o,r)?(n=o[r],o[r]=rT.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&r(t,e,o)}return this}get(e,t){if(e=rM(e)){let o=rT.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(rT.isFunction(t))return t.call(this,e,o);if(rT.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rM(e)){let o=rT.findKey(this,e);return!!(o&&void 0!==this[o]&&(!t||rj(this,this[o],o,t)))}return!1}delete(e,t){let o=this,n=!1;function r(e){if(e=rM(e)){let r=rT.findKey(o,e);r&&(!t||rj(o,o[r],r,t))&&(delete o[r],n=!0)}}return rT.isArray(e)?e.forEach(r):r(e),n}clear(e){let t=Object.keys(this),o=t.length,n=!1;for(;o--;){let r=t[o];(!e||rj(this,this[r],r,e,!0))&&(delete this[r],n=!0)}return n}normalize(e){let t=this,o={};return rT.forEach(this,(n,r)=>{let i=rT.findKey(o,r);if(i){t[i]=rU(n),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o):String(r).trim();a!==r&&delete t[r],t[a]=rU(n),o[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rT.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&rT.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[rL]=this[rL]={accessors:{}}).accessors,o=this.prototype;function n(e){let n=rM(e);if(!t[n]){let r;r=rT.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(o,t+r,{__proto__:null,value:function(o,n,r){return this[t].call(this,e,o,n,r)},configurable:!0})}),t[n]=!0}}return rT.isArray(e)?e.forEach(n):n(e),this}}r$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rT.reduceDescriptors(r$.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),rT.freezeMethods(r$);class rG extends Error{static from(e,t,o,n,r,i){let a=new rG(e.message,t||e.code,o,n,r);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),i&&Object.assign(a,i),a}constructor(e,t,o,n,r){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),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,o,n=this.config,r=n&&rT.hasOwnProp(n,"redact")?n.redact:void 0,i=rT.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(o=n=>{let r;if(null===n||"object"!=typeof n||rT.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof r$&&(n=n.toJSON()),t.push(n),rT.isArray(n))r=[],n.forEach((e,t)=>{let n=o(e);rT.isUndefined(n)||(r[t]=n)});else{if(!rT.isPlainObject(n)&&function(e){if(rT.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rT.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,i]of(r=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":o(i);rT.isUndefined(n)||(r[t]=n)}}return t.pop(),r}})(n)):rT.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:i,code:this.code,status:this.status}}}rG.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rG.ERR_BAD_OPTION="ERR_BAD_OPTION",rG.ECONNABORTED="ECONNABORTED",rG.ETIMEDOUT="ETIMEDOUT",rG.ECONNREFUSED="ECONNREFUSED",rG.ERR_NETWORK="ERR_NETWORK",rG.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rG.ERR_DEPRECATED="ERR_DEPRECATED",rG.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rG.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rG.ERR_CANCELED="ERR_CANCELED",rG.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rG.ERR_INVALID_URL="ERR_INVALID_URL",rG.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rq=rG;function rH(e){return rT.isPlainObject(e)||rT.isArray(e)}function rz(e){return rT.endsWith(e,"[]")?e.slice(0,-2):e}function rW(e,t,o){return e?e.concat(t).map(function(e,t){return e=rz(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}let rV=rT.toFlatObject(rT,{},null,function(e){return/^is[A-Z]/.test(e)}),rY=function(e,t,o){if(!rT.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(o=rT.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rT.isUndefined(t[e])})).metaTokens,r=o.visitor||m,i=o.dots,a=o.indexes,c=o.Blob||"u">typeof Blob&&Blob,s=void 0===o.maxDepth?100:o.maxDepth,l=c&&rT.isSpecCompliantForm(t),d=[];if(!rT.isFunction(r))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(rT.isDate(e))return e.toISOString();if(rT.isBoolean(e))return e.toString();if(!l&&rT.isBlob(e))throw new rq("Blob is not supported. Use a Buffer instead.");if(rT.isArrayBuffer(e)||rT.isTypedArray(e)){if(l&&"function"==typeof c)return new c([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rq("Blob is not supported. Use a Buffer instead.",rq.ERR_NOT_SUPPORT)}return e}function u(e){if(e>s)throw new rq("Object is too deeply nested ("+e+" levels). Max depth: "+s,rq.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,o,r){let c=e;if(rT.isReactNative(t)&&rT.isReactNativeBlob(e))return t.append(rW(r,o,i),f(e)),!1;if(e&&!r&&"object"==typeof e)if(rT.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=function(e){if(1/0===s)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,o){if(!rT.isObject(o))return o;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(o),u(1+t.length-1),o})}(e);else{var l;if(rT.isArray(e)&&(l=e,rT.isArray(l)&&!l.some(rH))||(rT.isFileList(e)||rT.endsWith(o,"[]"))&&(c=rT.toArray(e)))return o=rz(o),c.forEach(function(e,n){rT.isUndefined(e)||null===e||t.append(!0===a?rW([o],n,i):null===a?o:o+"[]",f(e))}),!1}return!!rH(e)||(t.append(rW(r,o,i),f(e)),!1)}let b=Object.assign(rV,{defaultVisitor:m,convertValue:f,isVisitable:rH});if(!rT.isObject(e))throw TypeError("data must be an object");return!function e(o,n,i=0){if(!rT.isUndefined(o)){if(u(i),-1!==d.indexOf(o))throw Error("Circular reference detected in "+n.join("."));d.push(o),rT.forEach(o,function(o,a){!0===(!(rT.isUndefined(o)||null===o)&&r.call(t,o,rT.isString(a)?a.trim():a,n,b))&&e(o,n?n.concat(a):[a],i+1)}),d.pop()}}(e),t};function rK(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rJ(e,t){this._pairs=[],e&&rY(e,this,t)}let rX=rJ.prototype;function rQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rZ(e,t,o){let n;if(!t)return e;e=e||"";let r=rT.isFunction(o)?{serialize:o}:o,i=rT.getSafeProp(r,"encode")||rQ,a=rT.getSafeProp(r,"serialize");if(n=a?a(t,r):rT.isURLSearchParams(t)?t.toString():new rJ(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}rX.append=function(e,t){this._pairs.push([e,t])},rX.toString=function(e){let t=e?t=>e.call(this,t,rK):rK;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let r0=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){rT.forEach(this.handlers,function(t){null!==t&&e(t)})}},r1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},r2="u">typeof URLSearchParams?URLSearchParams:rJ,r5="u">typeof FormData?FormData:null,r3="u">typeof Blob?Blob:null,r4="u">typeof window&&"u">typeof document,r6="object"==typeof navigator&&navigator||void 0,r8=r4&&(!r6||0>["ReactNative","NativeScript","NS"].indexOf(r6.product)),r9="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,r7=r4&&window.location.href||"http://localhost",ie={...tM,isBrowser:!0,classes:{URLSearchParams:r2,FormData:r5,Blob:r3},protocols:["http","https","file","blob","url","data"]};function it(e){if(e>100)throw new rq("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rq.ERR_FORM_DATA_DEPTH_EXCEEDED)}let io=function(e){if(rT.isFormData(e)&&rT.isFunction(e.entries)){let t={};return rT.forEachEntry(e,(e,o)=>{!function e(t,o,n,r){it(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),c=r>=t.length;return(i=!i&&rT.isArray(n)?n.length:i,c)?rT.hasOwnProp(n,i)?n[i]=rT.isArray(n[i])?n[i].concat(o):[n[i],o]:n[i]=o:(rT.hasOwnProp(n,i)&&rT.isObject(n[i])||(n[i]=[]),e(t,o,n[i],r)&&rT.isArray(n[i])&&(n[i]=function(e){let t,o,n={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)n[o=r[t]]=e[o];return n}(n[i]))),!a}(function(e){let t,o=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)it(o.length),o.push("[]"===t[0]?"":t[1]||t[0]);return o}(e),o,t,0)}),t}return null},ir=(e,t)=>null!=e&&rT.hasOwnProp(e,t)?e[t]:void 0,ii={transitional:r1,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let o,n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=rT.isObject(e);if(i&&rT.isHTMLForm(e)&&(e=new FormData(e)),rT.isFormData(e))return r?JSON.stringify(io(e)):e;if(rT.isArrayBuffer(e)||rT.isBuffer(e)||rT.isStream(e)||rT.isFile(e)||rT.isBlob(e)||rT.isReadableStream(e))return e;if(rT.isArrayBufferView(e))return e.buffer;if(rT.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=ir(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return rY(e,new ie.classes.URLSearchParams,{visitor:function(e,t,o,n){return ie.isNode&&rT.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((o=rT.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=ir(this,"env"),r=n&&n.FormData;return rY(o?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(rT.isString(a))try{return(0,JSON.parse)(a),rT.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=ir(this,"transitional")||ii.transitional,o=t&&t.forcedJSONParsing,n=ir(this,"responseType"),r="json"===n;if(rT.isResponse(e)||rT.isReadableStream(e))return e;if(e&&rT.isString(e)&&(o&&!n||r)){let o=t&&t.silentJSONParsing;try{return JSON.parse(e,ir(this,"parseReviver"))}catch(e){if(!o&&r){if("SyntaxError"===e.name)throw rq.from(e,rq.ERR_BAD_RESPONSE,this,null,ir(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function ia(e,t){let o=this||ii,n=t||o,r=r$.from(n.headers),i=n.data;return rT.forEach(e,function(e){i=e.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function ic(e){return!!(e&&e.__CANCEL__)}rT.forEach(["delete","get","head","post","put","patch","query"],e=>{ii.headers[e]={}});let is=class extends rq{constructor(e,t,o){super(null==e?"canceled":e,rq.ERR_CANCELED,t,o),this.name="CanceledError",this.__CANCEL__=!0}};function il(e,t,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new rq("Request failed with status code "+o.status,o.status>=400&&o.status<500?rq.ERR_BAD_REQUEST:rq.ERR_BAD_RESPONSE,o.config,o.request,o))}let id=function(e,t){let o,n=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(c){let s=Date.now(),l=r[a];o||(o=s),n[i]=c,r[i]=s;let d=a,f=0;for(;d!==i;)f+=n[d++],d%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),s-o<t)return;let u=l&&s-l;return u?Math.round(1e3*f/u):void 0}},iu=function(e,t){let o,n,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,o=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),c=t-r;c>=i?a(e,t):(o=e,n||(n=setTimeout(()=>{n=null,a(o)},i-c)))},()=>o&&a(o)]},im=(e,t,o=3)=>{let n=0,r=id(50,250);return iu(o=>{if(!o||"number"!=typeof o.loaded)return;let i=o.loaded,a=o.lengthComputable?o.total:void 0,c=null!=a?Math.min(i,a):i,s=Math.max(0,c-n),l=r(s);n=Math.max(n,c),e({loaded:c,total:a,progress:a?c/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a?(a-c)/l:void 0,event:o,lengthComputable:null!=a,[t?"download":"upload"]:!0})},o)},ib=(e,t)=>{let o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},ih=e=>(...t)=>rT.asap(()=>e(...t)),ip=ie.hasStandardBrowserEnv?(c=new URL(ie.origin),s=ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent),e=>(e=new URL(e,ie.origin),c.protocol===e.protocol&&c.host===e.host&&(s||c.port===e.port))):()=>!0,iF=ie.hasStandardBrowserEnv?{write(e,t,o,n,r,i,a){if("u"<typeof document)return;let c=[`${e}=${encodeURIComponent(t)}`];rT.isNumber(o)&&c.push(`expires=${new Date(o).toUTCString()}`),rT.isString(n)&&c.push(`path=${n}`),rT.isString(r)&&c.push(`domain=${r}`),!0===i&&c.push("secure"),rT.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.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+/,""),r=n.indexOf("=");if(-1!==r&&n.slice(0,r)===e)try{return decodeURIComponent(n.slice(r+1))}catch(e){return n.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},ig=/^https?:(?!\/\/)/i,iv=/[\t\n\r]/g;function iy(e,t){if("string"==typeof e&&ig.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(iv,"")))throw new rq('Invalid URL: missing "//" after protocol',rq.ERR_INVALID_URL,t)}function iE(e,t,o,n){iy(t,n);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===o)?(iy(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let i_=e=>e instanceof r$?{...e}:e;function iw(e,t){e=e||{},t=t||{};let o=Object.create(null);function n(e,t,o,n){return rT.isPlainObject(e)&&rT.isPlainObject(t)?rT.merge.call({caseless:n},e,t):rT.isPlainObject(t)?rT.merge({},t):rT.isArray(t)?t.slice():t}function r(e,t,o,r){return rT.isUndefined(t)?rT.isUndefined(e)?void 0:n(void 0,e,o,r):n(e,t,o,r)}function i(e,t){if(!rT.isUndefined(t))return n(void 0,t)}function a(e,t){return rT.isUndefined(t)?rT.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function c(o,r,i){return rT.hasOwnProp(t,i)?n(o,r):rT.hasOwnProp(e,i)?n(void 0,o):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let s={url:i,method:i,data:i,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:c,headers:(e,t,o)=>r(i_(e),i_(t),o,!0)};return rT.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=rT.hasOwnProp(s,n)?s[n]:r,a=i(rT.hasOwnProp(e,n)?e[n]:void 0,rT.hasOwnProp(t,n)?t[n]:void 0,n);rT.isUndefined(a)&&i!==c||(o[n]=a)}),rT.hasOwnProp(t,"validateStatus")&&rT.isUndefined(t.validateStatus)&&!1===function(o){let n=rT.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rT.isUndefined(n)){if(!rT.isPlainObject(n))return;else if(rT.hasOwnProp(n,o))return n[o]}let r=rT.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rT.isPlainObject(r)&&rT.hasOwnProp(r,o))return r[o]}("validateStatusUndefinedResolves")&&(rT.hasOwnProp(e,"validateStatus")?o.validateStatus=n(void 0,e.validateStatus):delete o.validateStatus),o}let iA=["content-type","content-length"],ik=function(e){let t=iw({},e),o=e=>rT.hasOwnProp(t,e)?t[e]:void 0,n=o("data"),r=o("withXSRFToken"),i=o("xsrfHeaderName"),a=o("xsrfCookieName"),c=o("headers"),s=o("auth"),l=o("baseURL"),d=o("allowAbsoluteUrls"),f=o("url");if(t.headers=c=r$.from(c),t.url=rZ(iE(l,f,d,t),o("params"),o("paramsSerializer")),s){let t=rT.getSafeProp(s,"username")||"",o=rT.getSafeProp(s,"password")||"";try{c.set("Authorization","Basic "+btoa(t+":"+(o?encodeURIComponent(o).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rq.from(t,rq.ERR_BAD_OPTION_VALUE,e)}}if(rT.isFormData(n))if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv||rT.isReactNative(n))c.setContentType(void 0);else{var u,m;rT.isFunction(n.getHeaders)&&(u=c,m=n.getHeaders(),"content-only"!==o("formDataHeaderPolicy")?u.set(m):Object.entries(m||{}).forEach(([e,t])=>{iA.includes(e.toLowerCase())&&u.set(e,t)}))}if(ie.hasStandardBrowserEnv&&(rT.isFunction(r)&&(r=r(t)),!0===r||null==r&&ip(t.url))){let e=i&&a&&iF.read(a);e&&c.set(i,e)}return t},iC="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){var n;let r,i,a,c,s,l,d=ik(e),f=d.data,u=r$.from(d.headers).normalize(),{responseType:m,onUploadProgress:b,onDownloadProgress:h}=d;function p(){c&&c(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let F=new XMLHttpRequest;function g(){if(!F)return;let n=r$.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders());il(function(e){t(e),p()},function(e){o(e),p()},{data:m&&"text"!==m&&"json"!==m?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 rq("Request aborted",rq.ECONNABORTED,e,F)),p(),F=null)},F.onerror=function(t){let n=new rq(t&&t.message?t.message:"Network Error",rq.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||r1;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),o(new rq(t,n.clarifyTimeoutError?rq.ETIMEDOUT:rq.ECONNABORTED,e,F)),p(),F=null},void 0===f&&u.setContentType(null),"setRequestHeader"in F&&rT.forEach(rP(u),function(e,t){F.setRequestHeader(t,e)}),rT.isUndefined(d.withCredentials)||(F.withCredentials=!!d.withCredentials),m&&"json"!==m&&(F.responseType=d.responseType),h&&([a,s]=im(h,!0),F.addEventListener("progress",a)),b&&F.upload&&([i,c]=im(b),F.upload.addEventListener("progress",i),F.upload.addEventListener("loadend",c)),(d.cancelToken||d.signal)&&(r=t=>{F&&(o(!t||t.type?new is(null,e,F):t),F.abort(),p(),F=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let v=(n=d.url,(l=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&l[1]||"");if(v&&!ie.protocols.includes(v)){o(new rq("Unsupported protocol "+v+":",rq.ERR_BAD_REQUEST,e)),p();return}F.send(f||null)})},iD=function*(e,t){let o,n=e.byteLength;if(!t||n<t)return void(yield e);let r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},iS=async function*(e,t){for await(let o of ix(e))yield*iD(o,t)},ix=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()}},iO=(e,t,o,n)=>{let r,i=iS(e,t),a=0,c=e=>{!r&&(r=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){c(),e.close();return}let r=n.byteLength;if(o){let e=a+=r;o(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},iT=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iB=(e,t,o)=>t+2<o&&iT(e.charCodeAt(t+1))&&iT(e.charCodeAt(t+2)),{isFunction:iR}=rT,iN=e=>{if(!rT.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},iI=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iP=e=>{let t,o=void 0!==rT.global&&null!==rT.global?rT.global:globalThis,{ReadableStream:n,TextEncoder:r}=o,{fetch:i,Request:a,Response:c}=e=rT.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e),s=i?iR(i):"function"==typeof fetch,l=iR(a),d=iR(c);if(!s)return!1;let f=s&&iR(n),u=s&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),m=l&&f&&iI(()=>{let e=!1,t=new a(ie.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}),b=d&&f&&iI(()=>rT.isReadableStream(new c("").body)),h={stream:b&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,o)=>{let n=t&&t[e];if(n)return n.call(t);throw new rq(`Response type '${e}' is not supported`,rq.ERR_NOT_SUPPORT,o)})});let p=async e=>{if(null==e)return 0;if(rT.isBlob(e))return e.size;if(rT.isSpecCompliantForm(e)){let t=new a(ie.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rT.isArrayBufferView(e)||rT.isArrayBuffer(e)?e.byteLength:(rT.isURLSearchParams(e)&&(e+=""),rT.isString(e))?(await u(e)).byteLength:void 0},F=async(e,t)=>{let o=rT.toFiniteNumber(e.getContentLength());return null==o?p(t):o};return async e=>{let t,{url:o,method:n,data:s,signal:d,cancelToken:u,timeout:g,onDownloadProgress:v,onUploadProgress:y,responseType:E,headers:_,withCredentials:w="same-origin",fetchOptions:A,maxContentLength:k,maxBodyLength:C}=ik(e),D=rT.isNumber(k)&&k>-1,S=rT.isNumber(C)&&C>-1,x=i||fetch;E=E?(E+"").toLowerCase():"text";let O=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let o=new AbortController,n=!1,r=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;o.abort(t instanceof rq?t:new is(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rq(`timeout of ${t}ms exceeded`,rq.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:c}=o;return c.unsubscribe=()=>rT.asap(a),c})([d,u&&u.toAbortSignal()],g),T=null,B=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),R=null,N=()=>new rq("Request body larger than maxBodyLength limit",rq.ERR_BAD_REQUEST,e,T);try{var I;let i,d,u,g,P=(d="auth",rT.hasOwnProp(e,d)?e[d]:void 0);if(P){let e=rT.getSafeProp(P,"username")||"",t=rT.getSafeProp(P,"password")||"";i={username:e,password:t}}if(u=(I=o).indexOf("://"),g=I,-1!==u&&(g=g.slice(u+3)),g.includes("@")||g.includes(":")){let e=new URL(o,ie.origin);if(!i&&(e.username||e.password)){let t=iN(e.username),o=iN(e.password);i={username:t,password:o}}(e.username||e.password)&&(e.username="",e.password="",o=e.href)}if(i){let e;_.delete("authorization"),_.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(D&&"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),r=n.charCodeAt(o+2);iT(t)&&iT(r)&&(e-=2,o+=2)}let o=0,r=t-1,i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));r>=0&&(61===n.charCodeAt(r)?(o++,r--):i(r)&&(o++,r-=3)),1===o&&r>=0&&(61===n.charCodeAt(r)?o++:i(r)&&o++);let a=3*Math.floor(e/4)-(o||0);return a>0?a:0}let r=0;for(let e=0,t=n.length;e<t;e++){let o=n.charCodeAt(e);if(37===o&&iB(n,e,t))r+=1,e+=2;else if(o<128)r+=1;else if(o<2048)r+=2;else if(o>=55296&&o<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(o)>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T);if(S&&"get"!==n&&"head"!==n){let e=await p(s);if("number"==typeof e&&isFinite(e)&&(t=e,e>C))throw N()}let L=S&&(rT.isReadableStream(s)||rT.isStream(s)),M=(e,t,o)=>iO(e,65536,e=>{if(S&&e>C)throw R=N();t&&t(e)},o);if(m&&"get"!==n&&"head"!==n&&(y||L)){if(t=null==t?await F(_,s):t,0!==t||L){let e,n=new a(o,{method:"POST",body:s,duplex:"half"});if(rT.isFormData(s)&&(e=n.headers.get("content-type"))&&_.setContentType(e),n.body){let[e,o]=y&&ib(t,im(ih(y)))||[];s=M(n.body,e,o)}}}else if(L&&!l&&f&&"get"!==n&&"head"!==n)s=M(s);else if(L&&l&&!m&&"get"!==n&&"head"!==n)throw new rq("Stream request bodies are not supported by the current fetch implementation",rq.ERR_NOT_SUPPORT,e,T);rT.isString(w)||(w=w?"include":"omit");let U=l&&"credentials"in a.prototype;if(rT.isFormData(s)){let e=_.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&_.delete("content-type")}_.set("User-Agent","axios/1.18.1",!1);let j={...A,signal:O,method:n.toUpperCase(),headers:rP(_.normalize()),body:s,duplex:"half",credentials:U?w:void 0};T=l&&new a(o,j);let $=await (l?x(T,A):x(o,j)),G=r$.from($.headers);if(D){let t=rT.toFiniteNumber(G.getContentLength());if(null!=t&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T)}let q=b&&("stream"===E||"response"===E);if(b&&$.body&&(v||D||q&&B)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let o=rT.toFiniteNumber(G.getContentLength()),[n,r]=v&&ib(o,im(ih(v),!0))||[];$=new c(iO($.body,65536,t=>{if(D&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T);n&&n(t)},()=>{r&&r(),B&&B()}),t)}E=E||"text";let H=await h[rT.findKey(h,E)||"text"]($,e);if(D&&!b&&!q){let t;if(null!=H&&("number"==typeof H.byteLength?t=H.byteLength:"number"==typeof H.size?t=H.size:"string"==typeof H&&(t="function"==typeof r?new r().encode(H).byteLength:H.length)),"number"==typeof t&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T)}return!q&&B&&B(),await new Promise((t,o)=>{il(t,o,{data:H,headers:r$.from($.headers),status:$.status,statusText:$.statusText,config:e,request:T})})}catch(t){if(B&&B(),O&&O.aborted&&O.reason instanceof rq){let o=O.reason;throw o.config=e,T&&(o.request=T),t!==o&&Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o}if(R)throw T&&!R.request&&(R.request=T),R;if(t instanceof rq)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let o=new rq("Network Error",rq.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(o,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),o}throw rq.from(t,t&&t.code,e,T,t&&t.response)}}},iL=new Map,iM=e=>{let t=e&&e.env||{},{fetch:o,Request:n,Response:r}=t,i=[n,r,o],a=i.length,c,s,l=iL;for(;a--;)c=i[a],void 0===(s=l.get(c))&&l.set(c,s=a?new Map:iP(t)),l=s;return s};iM();let iU={http:null,xhr:iC,fetch:{get:iM}};rT.forEach(iU,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let ij=e=>`- ${e}`,i$=e=>rT.isFunction(e)||null===e||!1===e,iG=function(e,t){let o,n,{length:r}=e=rT.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(n=o=e[a],!i$(o)&&void 0===(n=iU[(r=String(o)).toLowerCase()]))throw new rq(`Unknown adapter '${r}'`);if(n&&(rT.isFunction(n)||(n=n.get(t))))break;i[r||"#"+a]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rq("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(ij).join("\n"):" "+ij(e[0]):"as no adapter specified"),rq.ERR_NOT_SUPPORT)}return n};function iq(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new is(null,e)}function iH(e){return iq(e),e.headers=r$.from(e.headers),e.data=ia.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iG(e.adapter||ii.adapter,e)(e).then(function(t){iq(e),e.response=t;try{t.data=ia.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=r$.from(t.headers),t},function(t){if(!ic(t)&&(iq(e),t&&t.response)){e.response=t.response;try{t.response.data=ia.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=r$.from(t.response.headers)}return Promise.reject(t)})}let iz={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iz[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});let iW={};iz.transitional=function(e,t,o){function n(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,r,i)=>{if(!1===e)throw new rq(n(r," has been removed"+(t?" in "+t:"")),rq.ERR_DEPRECATED);return t&&!iW[r]&&(iW[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,r,i)}},iz.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};let iV=function(e,t,o){if("object"!=typeof e||null===e)throw new rq("options must be an object",rq.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),r=n.length;for(;r-- >0;){let i=n[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],o=void 0===t||a(t,i,e);if(!0!==o)throw new rq("option "+i+" must be "+o,rq.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new rq("Unknown option "+i,rq.ERR_BAD_OPTION)}};class iY{constructor(e){this.defaults=e||{},this.interceptors={request:new r0,response:new r0}}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),r=-1===n?"":o.slice(n+1);String(e.stack).endsWith(r)||(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:r,paramsSerializer:i,headers:a}=t=iw(this.defaults,t);void 0!==r&&iV(r,{silentJSONParsing:iz.transitional(iz.boolean),forcedJSONParsing:iz.transitional(iz.boolean),clarifyTimeoutError:iz.transitional(iz.boolean),legacyInterceptorReqResOrdering:iz.transitional(iz.boolean),advertiseZstdAcceptEncoding:iz.transitional(iz.boolean),validateStatusUndefinedResolves:iz.transitional(iz.boolean)},!1),null!=i&&(rT.isFunction(i)?t.paramsSerializer={serialize:i}:iV(i,{encode:iz.function,serialize:iz.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iV(t,{baseUrl:iz.spelling("baseURL"),withXsrfToken:iz.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=a&&rT.merge(a.common,a[t.method]);a&&rT.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=r$.concat(c,a);let s=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let o=t.transitional||r1;o&&o.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let f=0;if(!l){let e=[iH.bind(this),void 0];for(e.unshift(...s),e.push(...d),n=e.length,o=Promise.resolve(t);f<n;)o=o.then(e[f++],e[f++]);return o}n=s.length;let u=t;for(;f<n;){let e=s[f++],t=s[f++];try{u=e(u)}catch(e){t.call(this,e);break}}try{o=iH.call(this,u)}catch(e){return Promise.reject(e)}for(f=0,n=d.length;f<n;)o=o.then(d[f++],d[f++]);return o}getUri(e){return rZ(iE((e=iw(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rT.forEach(["delete","get","head","options"],function(e){iY.prototype[e]=function(t,o){return this.request(iw(o||{},{method:e,url:t,data:o&&rT.hasOwnProp(o,"data")?o.data:void 0}))}}),rT.forEach(["post","put","patch","query"],function(e){function t(t){return function(o,n,r){return this.request(iw(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:o,data:n}))}}iY.prototype[e]=t(),"query"!==e&&(iY.prototype[e+"Form"]=t(!0))});let iK=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,r){o.reason||(o.reason=new is(e,n,r),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}}},iJ={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(iJ).forEach(([e,t])=>{iJ[t]=e});let iX=function e(t){let o=new iY(t),n=nQ(iY.prototype.request,o);return rT.extend(n,iY.prototype,o,{allOwnKeys:!0}),rT.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(iw(t,o))},n}(ii);iX.Axios=iY,iX.CanceledError=is,iX.CancelToken=iK,iX.isCancel=ic,iX.VERSION="1.18.1",iX.toFormData=rY,iX.AxiosError=rq,iX.Cancel=iX.CanceledError,iX.all=function(e){return Promise.all(e)},iX.spread=function(e){return function(t){return e.apply(null,t)}},iX.isAxiosError=function(e){return rT.isObject(e)&&!0===e.isAxiosError},iX.mergeConfig=iw,iX.AxiosHeaders=r$,iX.formToJSON=e=>io(rT.isHTMLForm(e)?new FormData(e):e),iX.getAdapter=iG,iX.HttpStatusCode=iJ,iX.default=iX;class iQ{constructor(e){this.httpClient=e}createAlarm(e,t,o){return this.httpClient.request({method:"POST",url:ad`alarm`,queryParams:t,data:e,options:o})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:ad`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:ad`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:ad`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:ad`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:ad`alarm/${e}`,options:t})}updateAlarm(e,t,o){return this.httpClient.request({method:"PUT",url:ad`alarm/${e}`,data:t,options:o})}getAssetLinks(e,t,o){return this.httpClient.request({method:"GET",url:ad`alarm/${e}/assets`,queryParams:t,options:o})}}class iZ{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:ad`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,o){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}/${t}`,options:o})}getActiveTunnelInfo(e,t,o,n,r){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}/${t}/${o}/${n}`,options:r})}}class i0{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`asset/predicted/${e}/${t}`,data:o,options:n})}writePredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`asset/predicted/${e}/${t}`,data:o,options:n})}}class i1{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:ad`agent/assetDiscovery/${e}`,queryParams:t,options:o})}doProtocolAssetImport(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`agent/assetImport/${e}`,queryParams:o,data:t,options:n})}doProtocolInstanceDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:ad`agent/instanceDiscovery/${e}`,queryParams:t,options:o})}}class i2{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:ad`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:ad`info`,options:e})}}class i5{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:ad`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:ad`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:ad`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:ad`map/getCustomMapInfo`,options:e})}getTile(e,t,o,n){return this.httpClient.request({method:"GET",url:ad`map/tile/${e}/${t}/${o}`,options:n})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:ad`map/upload`,queryParams:e,options:t})}}class i3{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:ad`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:ad`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:ad`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:ad`syslog/event`,queryParams:e,options:t})}}class i4{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:ad`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:ad`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ad`dashboard/query`,data:e,options:t})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`dashboard/${e}/${t}`,options:o})}get(e,t,o){return this.httpClient.request({method:"GET",url:ad`dashboard/${e}/${t}`,options:o})}}class i6{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:ad`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:ad`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:ad`flow/${e}`,options:t})}}class i8{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:ad`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:ad`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`asset/datapoint/${e}/${t}`,data:o,options:n})}}class i9{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:ad`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ad`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:ad`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:ad`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:ad`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:ad`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:ad`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:ad`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/disconnect/${t}`,options:o})}requestPasswordReset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/request-password-reset/${t}`,options:o})}updatePassword(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/reset-password/${t}`,data:o,options:n})}resetSecret(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/reset-secret/${t}`,options:o})}updateRoles(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/roles`,data:t,options:o})}getUserRealmRoles(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/userRealmRoles/${t}`,options:o})}updateUserRealmRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/userRealmRoles/${t}`,data:o,options:n})}getUserClientRoles(e,t,o,n){return this.httpClient.request({method:"GET",url:ad`user/${e}/userRoles/${t}/${o}`,options:n})}updateUserClientRoles(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:ad`user/${e}/userRoles/${t}/${o}`,data:n,options:r})}getUserSessions(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/userSessions/${t}`,options:o})}create(e,t,o){return this.httpClient.request({method:"POST",url:ad`user/${e}/users`,data:t,options:o})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/users`,data:t,options:o})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`user/${e}/users/${t}`,options:o})}getClientRoles(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/${t}/roles`,options:o})}updateClientRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/${t}/roles`,data:o,options:n})}get(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/${t}`,options:o})}}class i7{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,o){return this.httpClient.request({method:"GET",url:ad`model/assetInfo/${e}`,queryParams:t,options:o})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:ad`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:ad`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/valueDescriptors`,queryParams:e,options:t})}}class ae{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:ad`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:ad`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:ad`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,o){return this.httpClient.request({method:"PUT",url:ad`provisioning/${e}`,data:t,options:o})}}class at{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ad`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:ad`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:ad`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:ad`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:ad`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:ad`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:ad`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:ad`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:ad`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ad`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:ad`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ad`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`asset/user/link/${e}/${t}`,options:o})}deleteUserAssetLink(e,t,o,n){return this.httpClient.request({method:"DELETE",url:ad`asset/user/link/${e}/${t}/${o}`,options:n})}get(e,t){return this.httpClient.request({method:"GET",url:ad`asset/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`asset/${e}`,data:t,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/attribute/${t}`,data:o,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/attribute/${t}/${o}`,data:n,options:r})}updateParent(e,t,o){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/child`,queryParams:t,options:o})}}class ao{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:ad`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:ad`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ad`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:ad`realm/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`realm/${e}`,data:t,options:o})}}class an{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:ad`console/register`,data:e,options:t})}}class ar{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:ad`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,o){return this.httpClient.request({method:"GET",url:ad`rules/asset/for/${e}`,queryParams:t,options:o})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/asset/${e}`,data:t,options:o})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:ad`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ad`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:ad`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ad`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,o){return this.httpClient.request({method:"GET",url:ad`rules/realm/for/${e}`,queryParams:t,options:o})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/realm/${e}`,data:t,options:o})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/${e}`,options:t})}updateGlobalRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/${e}`,data:t,options:o})}}class ai{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:ad`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:ad`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:ad`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:ad`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:ad`notification/${e}`,options:t})}notificationAcknowledged(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`notification/${e}/acknowledged`,queryParams:o,data:t,options:n})}notificationDelivered(e,t,o){return this.httpClient.request({method:"PUT",url:ad`notification/${e}/delivered`,queryParams:t,options:o})}}class aa{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:ad`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:ad`configuration/manager`,data:e,options:t})}fileUpload(e,t,o){return this.httpClient.request({method:"POST",url:ad`configuration/manager/file`,queryParams:t,data:e,options:o})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:ad`configuration/manager/image/${e}`,options:t})}}class ac{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:ad`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/connection/${e}`,options:t})}setConnection(e,t,o){return this.httpClient.request({method:"PUT",url:ad`gateway/connection/${e}`,data:t,options:o})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/status/${e}`,options:t})}}class as{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:ad`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:ad`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:ad`apps/info`,options:e})}}class al{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:ad`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:ad`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:ad`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:ad`service/global`,data:e,options:t})}deregisterService(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`service/${e}/${t}`,options:o})}getService(e,t,o){return this.httpClient.request({method:"GET",url:ad`service/${e}/${t}`,options:o})}heartbeat(e,t,o){return this.httpClient.request({method:"PUT",url:ad`service/${e}/${t}`,options:o})}}function ad(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 af{constructor(e,t=iX.create()){this._alarmResource=new am(e,t),this._gatewayServiceResource=new ab(e,t),this._assetPredictedDatapointResource=new ah(e,t),this._agentResource=new ap(e,t),this._statusResource=new aF(e,t),this._mapResource=new ag(e,t),this._syslogResource=new av(e,t),this._dashboardResource=new ay(e,t),this._flowResource=new aE(e,t),this._assetDatapointResource=new a_(e,t),this._userResource=new aw(e,t),this._assetModelResource=new aA(e,t),this._provisioningResource=new ak(e,t),this._assetResource=new aC(e,t),this._realmResource=new aD(e,t),this._consoleResource=new aS(e,t),this._rulesResource=new ax(e,t),this._notificationResource=new aO(e,t),this._configurationResource=new aT(e,t),this._gatewayClientResource=new aB(e,t),this._appResource=new aR(e,t),this._externalServiceResource=new aN(e,t),this._assetResource=new aC(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 au{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 am extends iQ{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ab extends iZ{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ah extends i0{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ap extends i1{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aF extends i2{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ag extends i5{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class av extends i3{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ay extends i4{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aE extends i6{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class a_ extends i8{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aw extends i9{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aA extends i7{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ak extends ae{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aC extends at{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aD extends ao{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aS extends an{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ax extends ar{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aO extends ai{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aT extends aa{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aB extends ac{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aR extends as{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aN extends al{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}var aI=o(8183),aP=o.n(aI);iX.isAxiosError;let aL=new class{get api(){return this._client}constructor(){this._axiosInstance=iX.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>aP().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 af(e,this._axiosInstance)}};var aM=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,c)}s((n=n.apply(e,t||[])).next())})};(eE=tx||(tx={})).DISCONNECTED="DISCONNECTED",eE.CONNECTED="CONNECTED",eE.CONNECTING="CONNECTING";let aU="SUBSCRIBED:",aj="UNAUTHORIZED:",a$="TRIGGERED:",aG="EVENT:";class aq{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aH.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tx.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===tx.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(tx.CONNECTING),this._connectingDeferred=new nz,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aH.MIN_RECONNECT_DELAY,this._onStatusChanged(tx.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!==tx.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let o={eventSubscription:e,callback:t,deferred:new nz};return null!=this._pendingSubscription||this._status!==tx.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 aM(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===tx.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tx.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,o){return aM(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aq._subscriptionCounter++;if(!this._assetEventPromise){let e;cp.authenticated||(e={filterType:"asset",realm:cp.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;n?n.find(e=>t===e)&&o(e):e.asset.realm===cp.displayRealm&&o(e)}),this._assetEventPromise.then(()=>{try{if(n&&t){let e={messageID:"read-assets:"+n.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:n}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&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),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,o){return aM(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0],r=n?e.map(e=>e.id):e,i=n?e:void 0,a="AttributeEvent"+aq._subscriptionCounter++;if(!this._attributeEventPromise){let e;cp.authenticated||(e={filterType:"asset",realm:cp.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let c=t=>{let i=t.ref;n?e.forEach(e=>{i.id===e.id&&i.name===e.name&&o(t)}):r?r.find(e=>i.id===e)&&o(t):t.realm===cp.displayRealm&&o(t)};return this._attributeEventCallbackMap.set(a,c),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,o])=>{(!i||i.find(o=>o.id===e.id&&o.name===t))&&c({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===tx.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===tx.CONNECTED&&this._onStatusChanged(tx.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tx.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<aH.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aH.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aq.MIN_RECONNECT_DELAY=0,aq.MAX_RECONNECT_DELAY=3e4,aq._subscriptionCounter=0;class aH extends aq{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="+cp.config.realm;return this._connectDeferred=new nz,(cp.authenticated?cp.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(aU)){let e=JSON.parse(t.substring(aU.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&o.resolve(e.subscriptionId)}else if(t.startsWith(aj)){let e=JSON.parse(t.substring(aj.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(a$)){let e=JSON.parse(t.substring(a$.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aG)){let e=JSON.parse(t.substring(aG.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 nz,e.subscriptionId||(e.subscriptionId=aH._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=aG+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 nz;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aG+JSON.stringify(e)),t.promise}}aH._subscriptionCounter=1;let az=["__proto__","constructor","prototype"];function aW(e){return!("string"!=typeof e||0===e.length||e.length>128||az.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aV(e){return!(!aW(e)||e.indexOf("/")>-1)}let aY={lng:aV,ns:function(e){return aW(e)}};function aK(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function aJ(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aX=/\{\{(.+?)\}\}/g;function aQ(e,t){let o=!1,n=e.replace(aX,(e,n)=>{let r=n.trim();if(az.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aY[r]||aV,c=String(i).split("+");for(let t of c)if(!a(t))return o=!0,e;return c.join("+")});return o?null:n}let aZ="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:aZ&&"function"==typeof aZ.fetch&&(t=aZ.fetch);let a0=aJ()&&aZ?aZ.XMLHttpRequest:void 0,a1="function"==typeof ActiveXObject&&aZ?aZ.ActiveXObject:void 0,a2=["__proto__","constructor","prototype"],a5=(e,t)=>{if(t&&"object"==typeof t){let o="";for(let e of Object.keys(t))a2.indexOf(e)>-1||(o+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},a3=(e,o,n,r)=>{let i=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(r){let t=r(e,o);if(t instanceof Promise)return void t.then(i).catch(n)}"function"==typeof fetch?fetch(e,o).then(i).catch(n):t(e,o).then(i).catch(n)},a4=(e,o,n,r)=>{if("function"==typeof n&&(r=n,n=void 0),r=r||(()=>{}),t&&0!==o.indexOf("file:")){var i=o,a=n,c=r;e.queryStringParams&&(i=a5(i,e.queryStringParams));let t={..."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&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(t["Content-Type"]="application/json");let s="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,l={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:t,...e._omitFetchOptions?{}:s},d="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{a3(i,l,c,d)}catch(t){if(!s||0===Object.keys(s).length||!t.message||0>t.message.indexOf("not implemented"))return c(t);try{Object.keys(s).forEach(e=>{delete l[e]}),a3(i,l,c,d),e._omitFetchOptions=!0}catch(e){c(e)}}return}if(aJ()||"function"==typeof ActiveXObject){var s=o,l=n,d=r;l&&"object"==typeof l&&(l=a5("",l).slice(1)),e.queryStringParams&&(s=a5(s,e.queryStringParams));try{let t=a0?new a0:new a1("MSXML2.XMLHTTP.3.0");t.open(l?"POST":"GET",s,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,l&&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))a2.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(l)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var a6=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:a4,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,r){var i,a;let c=this.options.loadPath;"function"==typeof this.options.loadPath&&(c=this.options.loadPath(e,o)),(c=(a=i=c)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=aQ(i,{lng:e.join("+"),ns:o.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(aK).join(", ")+"] namespaces=["+o.map(aK).join(", ")+"]"),!1);this.loadUrl(a,r,t,n)})}loadUrl(e,t,o,n){let r=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof n?[n]:n),i=aK(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,r,(e,r)=>{let a,c;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let o=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>o.indexOf(e)>-1))return t("failed loading "+i+": "+aK(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,o,n):r.data}catch(e){c="failed parsing "+i+" to json"}if(c)return t(c,!1);t(null,a)})}create(e,t,o,n,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,o,n),a=0,c=[],s=[];e.forEach(o=>{let n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(o,t));let l=aQ(n,{lng:o,ns:t});if(null==l){a+=1,r&&a===e.length&&r(c,s);return}this.options.request(this.options,l,i,(t,o)=>{a+=1,c.push(t),s.push(o),a===e.length&&"function"==typeof r&&r(c,s)})})}reload(){let{backendConnector:e,languageUtils:t,logger:o}=this.services,n=e.language;if(n&&"cimode"===n.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(n),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(r,i)=>{r&&o.warn(`loading namespace ${n} for language ${t} failed`,r),!r&&i&&o.log(`loaded namespace ${n} for language ${t}`,i),e.loaded(`${t}|${n}`,r,i)})})})}};a6.type="backend";let a8=e=>(...t)=>({_$litDirective$:e,values:t});class a9{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class a7 extends a9{constructor(e){if(super(e),this.it=ov,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ov||null==e)return this._t=void 0,this.it=e;if(e===og)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}a7.directiveName="unsafeHTML",a7.resultType=1,a8(a7);class ce extends a7{}ce.directiveName="unsafeSVG",ce.resultType=2;let ct=a8(ce),co={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var cn=function(e,t,o,n){var r,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};class cr extends CustomEvent{constructor(){super(cr.NAME,{bubbles:!0,composed:!0})}}cr.NAME="or-iconset-added";let ci=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cr)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return oF``;let t=(e||"").split(":"),o=t.pop(),n=t.pop(),r=this._defaultIconSet;return(n&&(r=this.getIconSet(n)),o&&r)?r.getIconTemplate(o):oF``}},ca=class extends oM{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tz`
|
|
11
11
|
:host {
|
|
12
12
|
--internal-or-icon-width: var(--or-icon-width, 24px);
|
|
13
13
|
--internal-or-icon-height: var(--or-icon-height, 24px);
|
|
@@ -202,7 +202,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
202
202
|
class="${!this.loading?"loaded":""}"
|
|
203
203
|
></iframe>
|
|
204
204
|
</div>
|
|
205
|
-
`}};function*cC(e,t){if(void 0!==e){let o=0;for(let n of e)yield t(n,o++)}}function cD(e,t,o=[]){console.debug(`Moving nodes '${e.map(e=>e.label).join(", ")}' into group '${null==t?void 0:t.label}'. Tree nodes are`,t);let n=function o(n){return n.map(n=>{if(e.some(e=>n.id===e.id))return console.debug("Removed the node from original position."),null;let r=Object.assign({},n);return r.children&&(r.children=o(r.children).filter(e=>null!==e)),t&&n.id===(null==t?void 0:t.id)&&e.forEach(e=>{r.children=r.children?[...r.children,e]:[e]}),r}).filter(e=>null!==e)}(o);return t||n.push(...e),n}c_([o$({type:String})],ck.prototype,"src",void 0),c_([o$({type:Number})],ck.prototype,"timeout",void 0),c_([oG()],ck.prototype,"loading",void 0),c_([oG()],ck.prototype,"error",void 0),c_([o$({type:Boolean})],ck.prototype,"preventCache",void 0),ck=c_([oU("or-iframe")],ck),(ek=tR||(tR={})).LEAF="leaf",ek.SINGLE="single",ek.MULTI="multi",(eC=tN||(tN={})).A_TO_Z="a_to_z",eC.Z_TO_A="z_to_a";class cS extends CustomEvent{constructor(e){super(cS.NAME,{bubbles:!0,composed:!0,detail:e})}}cS.NAME="or-tree-select";class cx extends CustomEvent{constructor(e,t,o=[]){super(cx.NAME,{bubbles:!0,composed:!0,cancelable:!0,detail:{nodes:e,groupNode:t,newNodes:o}})}}cx.NAME="or-tree-drag",window.Vaadin||={},window.Vaadin.featureFlags||={};let cO={};function cT(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]||cO[t]){if(cO[t])return void cO[t].add(e)}else{cO[t]=new Set,cO[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===cO[t].size,set(e){e&&cO[t].size>0&&(cO[t].forEach(e=>{customElements.define(e.is,e)}),cO[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 cB=[];function cR(e,t,o=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=o&&e.removeAttribute("dir")}function cN(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=cN();cB.forEach(t=>{cR(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let cI=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(),cR(this,cN(),null))}attributeChangedCallback(e,t,o){if(super.attributeChangedCallback(e,t,o),"dir"!==e)return;let n=cN(),r=o===n&&-1===cB.indexOf(this),i=!o&&t&&-1===cB.indexOf(this),a=o!==n&&t===n;r||i?(this.__subscribe(),cR(this,n,o)):a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=cB.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(){cB.includes(this)||cB.push(this)}__unsubscribe(){cB.includes(this)&&cB.splice(cB.indexOf(this),1)}},cP=new WeakMap;function cL(e){return t=>{if(function(e,t){let o=t;for(;o;){if(cP.get(o)===e)return!0;o=Object.getPrototypeOf(o)}return!1}(e,t))return t;let o=e(t);return cP.set(o,e),o}}let cM={},cU=/([A-Z])/gu;function cj(e){return cM[e]||(cM[e]=e.replace(cU,"-$1").toLowerCase()),cM[e]}function c$(e){return e[0].toUpperCase()+e.substring(1)}function cG(e){let[t,o]=e.split("(");return{method:t,observerProps:o.replace(")","").split(",").map(e=>e.trim())}}function cq(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let cH=cL(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 cq(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}=cG(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),r=n;if(this.getOrCreateMap("__propKeys").set(e,t),o.sync&&(r={get:n.get,set(n){let r=this[e];t4(n,r)&&(this[t]=n,this.requestUpdate(e,r,o),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),o.readOnly){let t=r.set;this.addCheckedInitializer(o=>{o[`_set${c$(e)}`]=function(e){t.call(o,e)}}),r={get:r.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${c$(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=cG(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=cj(e)),r}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=cq(this,"__dynamicMethodObservers"),{method:o,observerProps:n}=cG(e);t.set(o,n)}_createPropertyObserver(e,t){cq(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(`${cj(o)}-changed`,{detail:{value:this[o]}}))})}_get(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}_set(e,t,o){let n,r;r=(n=e.split(".")).pop(),n.reduce((e,t)=>e[t],o)[r]=t}}),cz=0,cW=0,cV=[],cY=!1,cK={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)}},cJ={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},cX={run(e){cY||(cY=!0,queueMicrotask(()=>(function(){cY=!1;let e=cV.length;for(let t=0;t<e;t++){let e=cV[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}cV.splice(0,e),cW+=e})())),cV.push(e);let t=cz;return cz+=1,t},cancel(e){let t=e-cW;if(t>=0){if(!cV[t])throw Error(`invalid async handle: ${e}`);cV[t]=null}}},cQ="string"==typeof document.head.style.touchAction,cZ="__polymerGestures",c0="__polymerGesturesHandled",c1="__polymerGesturesTouchAction",c2=["mousedown","mousemove","mouseup","click"],c3=[0,1,4,2],c5=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function c4(e){return c2.indexOf(e)>-1}try{let e=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}let c6=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),c8={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function c9(e){let t=e.type;if(!c4(t))return!1;if("mousemove"===t){let t=e.buttons??1;return e instanceof window.MouseEvent&&!c5&&(t=c3[e.which]||0),!!(1&t)}return 0===(e.button??0)}let c7={x:0,y:0,id:-1,scrollDecided:!1};function se(e,t,o){e.movefn=t,e.upfn=o,document.addEventListener("mousemove",t),document.addEventListener("mouseup",o)}function st(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}let so=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],sn={},sr=[];function si(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}function sa(e){let t=so(e);return t.length>0?t[0]:e.target}function sc(e){let t=e.type,o=e.currentTarget[cZ];if(!o)return;let n=o[t];if(!n)return;if(!e[c0]&&(e[c0]={},t.startsWith("touch"))){let o=e.changedTouches[0];if("touchstart"===t&&1===e.touches.length&&(c7.id=o.identifier),c7.id!==o.identifier)return;cQ||"touchstart"!==t&&"touchmove"!==t||function(e){let t=e.changedTouches[0],o=e.type;if("touchstart"===o)c7.x=t.clientX,c7.y=t.clientY,c7.scrollDecided=!1;else if("touchmove"===o){if(c7.scrollDecided)return;c7.scrollDecided=!0;let o=function(e){let t="auto",o=so(e);for(let e=0,n;e<o.length;e++)if((n=o[e])[c1]){t=n[c1];break}return t}(e),n=!1,r=Math.abs(c7.x-t.clientX),i=Math.abs(c7.y-t.clientY);e.cancelable&&("none"===o?n=!0:"pan-x"===o?n=i>r:"pan-y"===o&&(n=r>i)),n?e.preventDefault():sf("track")}}(e)}let r=e[c0];if(!r.skip){for(let t=0,o;t<sr.length;t++)n[(o=sr[t]).name]&&!r[o.name]&&o.flow&&o.flow.start.indexOf(e.type)>-1&&o.reset&&o.reset();for(let o=0,i;o<sr.length;o++)n[(i=sr[o]).name]&&!r[i.name]&&(r[i.name]=!0,i[t](e))}}function ss(e,t,o){return!!sn[t]&&(function(e,t,o){var n,r;let i=sn[t],a=i.deps,c=i.name,s=e[cZ];s||(e[cZ]=s={});for(let t=0,o,n;t<a.length;t++)o=a[t],c6&&c4(o)&&"click"!==o||((n=s[o])||(s[o]=n={_count:0}),0===n._count&&e.addEventListener(o,sc,void c4(o)),n[c]=(n[c]||0)+1,n._count=(n._count||0)+1);e.addEventListener(t,o),i.touchAction&&(n=e,r=i.touchAction,cQ&&n instanceof HTMLElement&&cX.run(()=>{n.style.touchAction=r}),n[c1]=r)}(e,t,o),!0)}function sl(e){sr.push(e),e.emits.forEach(t=>{sn[t]=e})}function sd(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 sf(e){let t=function(e){for(let t=0,o;t<sr.length;t++){o=sr[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 su(e,t,o,n){t&&sd(t,e,{x:o.clientX,y:o.clientY,sourceEvent:o,preventer:n,prevent:e=>sf(e)})}function sm(e,t,o){if(e.prevent)return!1;if(e.started)return!0;let n=Math.abs(e.x-t),r=Math.abs(e.y-o);return n>=5||r>=5}function sb(e,t,o){if(!t)return;let n=e.moves[e.moves.length-2],r=e.moves[e.moves.length-1],i=r.x-e.x,a=r.y-e.y,c,s=0;n&&(c=r.x-n.x,s=r.y-n.y),sd(t,"track",{state:e.state,x:o.clientX,y:o.clientY,dx:i,dy:a,ddx:c,ddy:s,sourceEvent:o,hover:()=>si(o.clientX,o.clientY)})}function sh(e,t,o){let n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y),i=sa(o||t);!(!i||c8[i.localName]&&i.hasAttribute("disabled"))&&(isNaN(n)||isNaN(r)||n<=25&&r<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;let t=sa(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let o=t.getBoundingClientRect(),n=e.pageX,r=e.pageY;return!(n>=o.left&&n<=o.right&&r>=o.top&&r<=o.bottom)}return!1}(t))&&!e.prevent&&sd(i,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:o})}sl({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){st(this.info)},mousedown(e){if(!c9(e))return;let t=sa(e),o=this;se(this.info,e=>{c9(e)||(su("up",t,e),st(o.info))},e=>{c9(e)&&su("up",t,e),st(o.info)}),su("down",t,e)},touchstart(e){su("down",sa(e),e.changedTouches[0],e)},touchend(e){su("up",sa(e),e.changedTouches[0],e)}}),sl({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,st(this.info)},mousedown(e){if(!c9(e))return;let t=sa(e),o=this,n=e=>{let n=e.clientX,r=e.clientY;sm(o.info,n,r)&&(o.info.state=o.info.started?"mouseup"===e.type?"end":"track":"start","start"===o.info.state&&sf("tap"),o.info.addMove({x:n,y:r}),c9(e)||(o.info.state="end",st(o.info)),t&&sb(o.info,t,e),o.info.started=!0)};se(this.info,n,e=>{o.info.started&&n(e),st(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=sa(e),o=e.changedTouches[0],n=o.clientX,r=o.clientY;sm(this.info,n,r)&&("start"===this.info.state&&sf("tap"),this.info.addMove({x:n,y:r}),sb(this.info,t,o),this.info.state="track",this.info.started=!0)},touchend(e){let t=sa(e),o=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:o.clientX,y:o.clientY}),sb(this.info,t,o))}}),sl({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){c9(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){c9(e)&&sh(this.info,e)},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){sh(this.info,e.changedTouches[0],e)}});let sp=cL(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()}}),sF=cL(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){}}),sg=e=>class extends sp(sF(e)){get _activeKeys(){return[" "]}ready(){super.ready(),ss(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ss(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)}},sv=!1;function sy(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function sE(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 s_(e){return e.checkVisibility?!e.checkVisibility({visibilityProperty:!0}):null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||sE(e)}function sw(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 sA(e){return e.getRootNode().activeElement===e}window.addEventListener("keydown",()=>{sv=!0},{capture:!0}),window.addEventListener("mousedown",()=>{sv=!1},{capture:!0});let sk=cL(e=>class extends e{get _keyboardActive(){return sv}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}}),sC=e=>class extends sg(sk(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}};function sD(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 sS extends EventTarget{#e;#t=new Set;#o;#n=!1;constructor(e){super(),this.#e=e,this.#o=new CSSStyleSheet}#r(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(`
|
|
205
|
+
`}};function*cC(e,t){if(void 0!==e){let o=0;for(let n of e)yield t(n,o++)}}function cD(e,t,o=[]){console.debug(`Moving nodes '${e.map(e=>e.label).join(", ")}' into group '${null==t?void 0:t.label}'. Tree nodes are`,t);let n=function o(n){return n.map(n=>{if(e.some(e=>n.id===e.id))return console.debug("Removed the node from original position."),null;let r=Object.assign({},n);return r.children&&(r.children=o(r.children).filter(e=>null!==e)),t&&n.id===(null==t?void 0:t.id)&&e.forEach(e=>{r.children=r.children?[...r.children,e]:[e]}),r}).filter(e=>null!==e)}(o);return t||n.push(...e),n}c_([o$({type:String})],ck.prototype,"src",void 0),c_([o$({type:Number})],ck.prototype,"timeout",void 0),c_([oG()],ck.prototype,"loading",void 0),c_([oG()],ck.prototype,"error",void 0),c_([o$({type:Boolean})],ck.prototype,"preventCache",void 0),ck=c_([oU("or-iframe")],ck),(ek=tR||(tR={})).LEAF="leaf",ek.SINGLE="single",ek.MULTI="multi",(eC=tN||(tN={})).A_TO_Z="a_to_z",eC.Z_TO_A="z_to_a";class cS extends CustomEvent{constructor(e){super(cS.NAME,{bubbles:!0,composed:!0,detail:e})}}cS.NAME="or-tree-select";class cx extends CustomEvent{constructor(e,t,o=[]){super(cx.NAME,{bubbles:!0,composed:!0,cancelable:!0,detail:{nodes:e,groupNode:t,newNodes:o}})}}cx.NAME="or-tree-drag",window.Vaadin||={},window.Vaadin.featureFlags||={};let cO={};function cT(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]||cO[t]){if(cO[t])return void cO[t].add(e)}else{cO[t]=new Set,cO[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===cO[t].size,set(e){e&&cO[t].size>0&&(cO[t].forEach(e=>{customElements.define(e.is,e)}),cO[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 cB=[];function cR(e,t,o=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=o&&e.removeAttribute("dir")}function cN(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=cN();cB.forEach(t=>{cR(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let cI=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(),cR(this,cN(),null))}attributeChangedCallback(e,t,o){if(super.attributeChangedCallback(e,t,o),"dir"!==e)return;let n=cN(),r=o===n&&-1===cB.indexOf(this),i=!o&&t&&-1===cB.indexOf(this),a=o!==n&&t===n;r||i?(this.__subscribe(),cR(this,n,o)):a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=cB.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(){cB.includes(this)||cB.push(this)}__unsubscribe(){cB.includes(this)&&cB.splice(cB.indexOf(this),1)}},cP=new WeakMap;function cL(e){return t=>{if(function(e,t){let o=t;for(;o;){if(cP.get(o)===e)return!0;o=Object.getPrototypeOf(o)}return!1}(e,t))return t;let o=e(t);return cP.set(o,e),o}}let cM={},cU=/([A-Z])/gu;function cj(e){return cM[e]||(cM[e]=e.replace(cU,"-$1").toLowerCase()),cM[e]}function c$(e){return e[0].toUpperCase()+e.substring(1)}function cG(e){let[t,o]=e.split("(");return{method:t,observerProps:o.replace(")","").split(",").map(e=>e.trim())}}function cq(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let cH=cL(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 cq(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}=cG(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),r=n;if(this.getOrCreateMap("__propKeys").set(e,t),o.sync&&(r={get:n.get,set(n){let r=this[e];t4(n,r)&&(this[t]=n,this.requestUpdate(e,r,o),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),o.readOnly){let t=r.set;this.addCheckedInitializer(o=>{o[`_set${c$(e)}`]=function(e){t.call(o,e)}}),r={get:r.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${c$(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=cG(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=cj(e)),r}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=cq(this,"__dynamicMethodObservers"),{method:o,observerProps:n}=cG(e);t.set(o,n)}_createPropertyObserver(e,t){cq(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(`${cj(o)}-changed`,{detail:{value:this[o]}}))})}_get(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}_set(e,t,o){let n,r;r=(n=e.split(".")).pop(),n.reduce((e,t)=>e[t],o)[r]=t}}),cz=0,cW=0,cV=[],cY=!1,cK={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)}},cJ={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},cX={run(e){cY||(cY=!0,queueMicrotask(()=>(function(){cY=!1;let e=cV.length;for(let t=0;t<e;t++){let e=cV[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}cV.splice(0,e),cW+=e})())),cV.push(e);let t=cz;return cz+=1,t},cancel(e){let t=e-cW;if(t>=0){if(!cV[t])throw Error(`invalid async handle: ${e}`);cV[t]=null}}},cQ="string"==typeof document.head.style.touchAction,cZ="__polymerGestures",c0="__polymerGesturesHandled",c1="__polymerGesturesTouchAction",c2=["mousedown","mousemove","mouseup","click"],c5=[0,1,4,2],c3=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function c4(e){return c2.indexOf(e)>-1}try{let e=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}let c6=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),c8={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function c9(e){let t=e.type;if(!c4(t))return!1;if("mousemove"===t){let t=e.buttons??1;return e instanceof window.MouseEvent&&!c3&&(t=c5[e.which]||0),!!(1&t)}return 0===(e.button??0)}let c7={x:0,y:0,id:-1,scrollDecided:!1};function se(e,t,o){e.movefn=t,e.upfn=o,document.addEventListener("mousemove",t),document.addEventListener("mouseup",o)}function st(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}let so=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],sn={},sr=[];function si(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}function sa(e){let t=so(e);return t.length>0?t[0]:e.target}function sc(e){let t=e.type,o=e.currentTarget[cZ];if(!o)return;let n=o[t];if(!n)return;if(!e[c0]&&(e[c0]={},t.startsWith("touch"))){let o=e.changedTouches[0];if("touchstart"===t&&1===e.touches.length&&(c7.id=o.identifier),c7.id!==o.identifier)return;cQ||"touchstart"!==t&&"touchmove"!==t||function(e){let t=e.changedTouches[0],o=e.type;if("touchstart"===o)c7.x=t.clientX,c7.y=t.clientY,c7.scrollDecided=!1;else if("touchmove"===o){if(c7.scrollDecided)return;c7.scrollDecided=!0;let o=function(e){let t="auto",o=so(e);for(let e=0,n;e<o.length;e++)if((n=o[e])[c1]){t=n[c1];break}return t}(e),n=!1,r=Math.abs(c7.x-t.clientX),i=Math.abs(c7.y-t.clientY);e.cancelable&&("none"===o?n=!0:"pan-x"===o?n=i>r:"pan-y"===o&&(n=r>i)),n?e.preventDefault():sf("track")}}(e)}let r=e[c0];if(!r.skip){for(let t=0,o;t<sr.length;t++)n[(o=sr[t]).name]&&!r[o.name]&&o.flow&&o.flow.start.indexOf(e.type)>-1&&o.reset&&o.reset();for(let o=0,i;o<sr.length;o++)n[(i=sr[o]).name]&&!r[i.name]&&(r[i.name]=!0,i[t](e))}}function ss(e,t,o){return!!sn[t]&&(function(e,t,o){var n,r;let i=sn[t],a=i.deps,c=i.name,s=e[cZ];s||(e[cZ]=s={});for(let t=0,o,n;t<a.length;t++)o=a[t],c6&&c4(o)&&"click"!==o||((n=s[o])||(s[o]=n={_count:0}),0===n._count&&e.addEventListener(o,sc,void c4(o)),n[c]=(n[c]||0)+1,n._count=(n._count||0)+1);e.addEventListener(t,o),i.touchAction&&(n=e,r=i.touchAction,cQ&&n instanceof HTMLElement&&cX.run(()=>{n.style.touchAction=r}),n[c1]=r)}(e,t,o),!0)}function sl(e){sr.push(e),e.emits.forEach(t=>{sn[t]=e})}function sd(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 sf(e){let t=function(e){for(let t=0,o;t<sr.length;t++){o=sr[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 su(e,t,o,n){t&&sd(t,e,{x:o.clientX,y:o.clientY,sourceEvent:o,preventer:n,prevent:e=>sf(e)})}function sm(e,t,o){if(e.prevent)return!1;if(e.started)return!0;let n=Math.abs(e.x-t),r=Math.abs(e.y-o);return n>=5||r>=5}function sb(e,t,o){if(!t)return;let n=e.moves[e.moves.length-2],r=e.moves[e.moves.length-1],i=r.x-e.x,a=r.y-e.y,c,s=0;n&&(c=r.x-n.x,s=r.y-n.y),sd(t,"track",{state:e.state,x:o.clientX,y:o.clientY,dx:i,dy:a,ddx:c,ddy:s,sourceEvent:o,hover:()=>si(o.clientX,o.clientY)})}function sh(e,t,o){let n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y),i=sa(o||t);!(!i||c8[i.localName]&&i.hasAttribute("disabled"))&&(isNaN(n)||isNaN(r)||n<=25&&r<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;let t=sa(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let o=t.getBoundingClientRect(),n=e.pageX,r=e.pageY;return!(n>=o.left&&n<=o.right&&r>=o.top&&r<=o.bottom)}return!1}(t))&&!e.prevent&&sd(i,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:o})}sl({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){st(this.info)},mousedown(e){if(!c9(e))return;let t=sa(e),o=this;se(this.info,e=>{c9(e)||(su("up",t,e),st(o.info))},e=>{c9(e)&&su("up",t,e),st(o.info)}),su("down",t,e)},touchstart(e){su("down",sa(e),e.changedTouches[0],e)},touchend(e){su("up",sa(e),e.changedTouches[0],e)}}),sl({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,st(this.info)},mousedown(e){if(!c9(e))return;let t=sa(e),o=this,n=e=>{let n=e.clientX,r=e.clientY;sm(o.info,n,r)&&(o.info.state=o.info.started?"mouseup"===e.type?"end":"track":"start","start"===o.info.state&&sf("tap"),o.info.addMove({x:n,y:r}),c9(e)||(o.info.state="end",st(o.info)),t&&sb(o.info,t,e),o.info.started=!0)};se(this.info,n,e=>{o.info.started&&n(e),st(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=sa(e),o=e.changedTouches[0],n=o.clientX,r=o.clientY;sm(this.info,n,r)&&("start"===this.info.state&&sf("tap"),this.info.addMove({x:n,y:r}),sb(this.info,t,o),this.info.state="track",this.info.started=!0)},touchend(e){let t=sa(e),o=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:o.clientX,y:o.clientY}),sb(this.info,t,o))}}),sl({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){c9(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){c9(e)&&sh(this.info,e)},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){sh(this.info,e.changedTouches[0],e)}});let sp=cL(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()}}),sF=cL(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){}}),sg=e=>class extends sp(sF(e)){get _activeKeys(){return[" "]}ready(){super.ready(),ss(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ss(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)}},sv=!1;function sy(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function sE(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 s_(e){return e.checkVisibility?!e.checkVisibility({visibilityProperty:!0}):null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||sE(e)}function sw(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 sA(e){return e.getRootNode().activeElement===e}window.addEventListener("keydown",()=>{sv=!0},{capture:!0}),window.addEventListener("mousedown",()=>{sv=!1},{capture:!0});let sk=cL(e=>class extends e{get _keyboardActive(){return sv}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}}),sC=e=>class extends sg(sk(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}};function sD(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 sS extends EventTarget{#e;#t=new Set;#o;#n=!1;constructor(e){super(),this.#e=e,this.#o=new CSSStyleSheet}#r(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(`
|
|
206
206
|
:root::before, :host::before {
|
|
207
207
|
content: '' !important;
|
|
208
208
|
position: absolute !important;
|
|
@@ -443,7 +443,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
443
443
|
<div part="items">
|
|
444
444
|
<slot></slot>
|
|
445
445
|
</div>
|
|
446
|
-
`}ready(){super.ready(),this.setAttribute("role","menu")}}cT(sZ);class s0{saveFocus(e){this.focusNode=e||sy()}restoreFocus(e){let t=this.focusNode;if(!t)return;let o={preventScroll:!!e&&e.preventScroll,focusVisible:!!e&&e.focusVisible};sy()===document.body?setTimeout(()=>t.focus(o)):t.focus(o),this.focusNode=null}}let s1=[];class s2{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||sE(t))return!1;let n=sw(t)?Number(t.getAttribute("tabindex")||0):-1,r=n>0;n>=0&&o.push(t);return[..."slot"===t.localName?t.assignedNodes({flatten:!0}):(t.shadowRoot||t).children].forEach(t=>{r=e(t,o)||r}),r}(e,t=[])?t:function e(t){let o=t.length;if(o<2)return t;let n=Math.ceil(o/2),r=e(t.slice(0,n)),i=e(t.slice(n)),a=[];for(;r.length>0&&i.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}(r[0],i[0])?a.push(r.shift()):a.push(i.shift());return a.concat(r,i)}(t)}get __focusedElementIndex(){let e=this.__focusableElements;return e.indexOf(e.filter(sA).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.");s1.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus({focusVisible:sv})}releaseFocus(){this.__trapNode=null,s1.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(s1).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,r=t[n];r.focus({focusVisible:!0}),"input"===r.localName&&r.select()}}let s3=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 s2(this),this.__focusRestorationController=new s0}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=sv;this.__focusRestorationController.restoreFocus({preventScroll:!e,focusVisible:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&!s_(this._focusTrapRoot)&&this.__focusTrapController.trapFocus(this._focusTrapRoot)}_shouldRestoreFocus(){let e=sy();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}};function s5(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 s4={start:"top",end:"bottom"},s6={start:"left",end:"right"},s8=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),s9=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,r=document.documentElement;function i(){o&&clearTimeout(o),n?.disconnect(),n=null}return!function a(c=!1,s=1){i();let{left:l,top:d,width:f,height:u}=e.getBoundingClientRect();if(c||t(),!f||!u)return;let m=Math.floor(d),b=Math.floor(r.clientWidth-(l+f)),h=Math.floor(r.clientHeight-(d+u)),p=Math.floor(l),F=!0;(n=new IntersectionObserver(function(e){let t=e[0].intersectionRatio;if(t!==s){if(!F)return a();t?a(!1,t):o=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1},{rootMargin:`${-m}px ${-b}px ${-h}px ${-p}px`,threshold:Math.max(0,Math.min(1,s))||1})).observe(e)}(!0),i}(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,s8.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,s8.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:""}),s5(this,"bottom-aligned",!1),s5(this,"top-aligned",!1),s5(this,"end-aligned",!1),s5(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),r=!o&&n||o&&!n;this.style.alignItems=r?"flex-start":"flex-end";let i=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,i,this.noVerticalOverlap,s4,this,t),c=this.__calculatePositionInOneDimension(e,i,this.noHorizontalOverlap,s6,this,n);Object.assign(this.style,a,c),s5(this,"bottom-aligned",!t),s5(this,"top-aligned",t),s5(this,"end-aligned",!r),s5(this,"start-aligned",r)}__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),r=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,o,n,this.__margins,r,this.noHorizontalOverlap,s6)}__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,s4)}__shouldAlignStart(e,t,o,n,r,i,a){let c=o-e[i?a.end:a.start]-n[a.end],s=e[i?a.start:a.end]-n[a.start],l=r?c:s;return r===(l>(r?s:c)||l>t)}__adjustBottomProperty(e,t,o){let n;if(e===t.end){if(t.end===s4.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===s6.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,r,i){let a=i?n.start:n.end,c=i?n.end:n.start,s=parseFloat(r.style[a]||getComputedStyle(r)[a]),l=this.__adjustBottomProperty(a,n,s),d=t[i?n.start:n.end]-e[o===i?n.end:n.start];return{[a]:l?`${l}px`:`${s+d*(i?-1:1)}px`,[c]:""}}},s7=e=>class extends s3(s9(e)){static get properties(){return{parentOverlay:{type:Object,readOnly:!0},_theme:{type:String,readOnly:!0,sync:!0}}}static get observers(){return["_themeChanged(_theme)"]}get _contentRoot(){return this._rendererRoot}get _rendererRoot(){if(!this.__savedRoot){let e=document.createElement("div");e.setAttribute("slot","overlay"),e.style.display="contents",this.owner.appendChild(e),this.__savedRoot=e}return this.__savedRoot}ready(){super.ready(),this.restoreFocusOnClose=!0,this.addEventListener("keydown",e=>{if(!e.defaultPrevented&&e.composedPath()[0]===this.$.overlay&&[38,40].indexOf(e.keyCode)>-1){let t=this._contentRoot.firstElementChild;t&&Array.isArray(t.items)&&t.items.length&&(e.preventDefault(),38===e.keyCode?t.items[t.items.length-1].focus():t.focus())}})}_themeChanged(){this.close()}getBoundaries(){let e=this.getBoundingClientRect(),t=this.$.overlay.getBoundingClientRect(),o=e.bottom-t.height,n=this.parentOverlay;if(n?.hasAttribute("bottom-aligned")){let e=getComputedStyle(n);o=o-parseFloat(e.bottom)-parseFloat(e.height)}return{xMax:e.right-t.width,xMin:e.left+t.width,yMax:o}}_updatePosition(){if(super._updatePosition(),this.positionTarget&&this.parentOverlay&&this.opened){let e=getComputedStyle(this.$.content);this.style.left?this.style.left=`${parseFloat(this.style.left)+parseFloat(e.paddingLeft)}px`:this.style.right=`${parseFloat(this.style.right)+parseFloat(e.paddingRight)}px`,this.style.bottom?this.style.bottom=`${parseFloat(this.style.bottom)-parseFloat(e.paddingBottom)}px`:this.style.top=`${parseFloat(this.style.top)-parseFloat(e.paddingTop)}px`}}_shouldRestoreFocus(){return!this.parentOverlay&&super._shouldRestoreFocus()}_deepContains(e){return this.owner.contains(e)}},le=/Android/u.test(navigator.userAgent);/Chrome/u.test(navigator.userAgent)&&/Google Inc/u.test(navigator.vendor),/Firefox/u.test(navigator.userAgent);let lt=/^iPad/u.test(navigator.platform)||/^Mac/u.test(navigator.platform)&&navigator.maxTouchPoints>1,lo=/^iPhone/u.test(navigator.platform)||lt;/^((?!chrome|android).)*safari/iu.test(navigator.userAgent);let ln=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})(),lr=new Set,li=()=>[...lr].filter(e=>!e.hasAttribute("closing")),la=(e,t=e=>!0)=>e===li().filter(t).pop(),lc=e=>class extends e{get _last(){return la(this)}get _isAttached(){return lr.has(this)}bringToFront(){let e,t;if(la(this))return;let o=-1===(t=(e=li()).indexOf(this))?[]:e.slice(t+1),n=o.filter(e=>e._hasOverlayPositionMixin&&this._deepContains(e));n.length!==o.length&&[this,...n].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"),li().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=li();for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}_appendAttachedInstance(){lr.add(this)}_removeAttachedInstance(){this._isAttached&&lr.delete(this)}},ls=e=>class extends s3(lc(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),lo&&(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 r=this._oldOwner!==t||this._oldModel!==o;this._oldModel=o,this._oldOwner=t;let i=this._oldRenderer!==e,a=void 0!==this._oldRenderer;this._oldRenderer=e;let c=this._oldOpened!==n;this._oldOpened=n,i&&a&&(this._rendererRoot.innerHTML="",delete this._rendererRoot._$litPart$),n&&e&&(i||c||r)&&this.requestContentUpdate()}_modelessChanged(e){this.opened&&(this._shouldAddGlobalListeners()?this._addGlobalListeners():this._removeGlobalListeners()),e?this._exitModalState():this.opened&&this._enterModalState(),s5(this,"modeless",e)}_withBackdropChanged(e){s5(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(),s5(this,"opening",!0),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this.matches(":popover-open")||this.showPopover()}_finishOpening(){s5(this,"opening",!1)}_finishClosing(){this._detachOverlay(),this._removeAttachedInstance(),this.$.overlay.style.removeProperty("pointer-events"),s5(this,"closing",!1),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._isAttached&&(this._exitModalState(),s5(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)}}},ll=tz`
|
|
446
|
+
`}ready(){super.ready(),this.setAttribute("role","menu")}}cT(sZ);class s0{saveFocus(e){this.focusNode=e||sy()}restoreFocus(e){let t=this.focusNode;if(!t)return;let o={preventScroll:!!e&&e.preventScroll,focusVisible:!!e&&e.focusVisible};sy()===document.body?setTimeout(()=>t.focus(o)):t.focus(o),this.focusNode=null}}let s1=[];class s2{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||sE(t))return!1;let n=sw(t)?Number(t.getAttribute("tabindex")||0):-1,r=n>0;n>=0&&o.push(t);return[..."slot"===t.localName?t.assignedNodes({flatten:!0}):(t.shadowRoot||t).children].forEach(t=>{r=e(t,o)||r}),r}(e,t=[])?t:function e(t){let o=t.length;if(o<2)return t;let n=Math.ceil(o/2),r=e(t.slice(0,n)),i=e(t.slice(n)),a=[];for(;r.length>0&&i.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}(r[0],i[0])?a.push(r.shift()):a.push(i.shift());return a.concat(r,i)}(t)}get __focusedElementIndex(){let e=this.__focusableElements;return e.indexOf(e.filter(sA).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.");s1.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus({focusVisible:sv})}releaseFocus(){this.__trapNode=null,s1.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(s1).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,r=t[n];r.focus({focusVisible:!0}),"input"===r.localName&&r.select()}}let s5=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 s2(this),this.__focusRestorationController=new s0}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=sv;this.__focusRestorationController.restoreFocus({preventScroll:!e,focusVisible:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&!s_(this._focusTrapRoot)&&this.__focusTrapController.trapFocus(this._focusTrapRoot)}_shouldRestoreFocus(){let e=sy();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}};function s3(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 s4={start:"top",end:"bottom"},s6={start:"left",end:"right"},s8=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),s9=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,r=document.documentElement;function i(){o&&clearTimeout(o),n?.disconnect(),n=null}return!function a(c=!1,s=1){i();let{left:l,top:d,width:f,height:u}=e.getBoundingClientRect();if(c||t(),!f||!u)return;let m=Math.floor(d),b=Math.floor(r.clientWidth-(l+f)),h=Math.floor(r.clientHeight-(d+u)),p=Math.floor(l),F=!0;(n=new IntersectionObserver(function(e){let t=e[0].intersectionRatio;if(t!==s){if(!F)return a();t?a(!1,t):o=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1},{rootMargin:`${-m}px ${-b}px ${-h}px ${-p}px`,threshold:Math.max(0,Math.min(1,s))||1})).observe(e)}(!0),i}(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,s8.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,s8.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:""}),s3(this,"bottom-aligned",!1),s3(this,"top-aligned",!1),s3(this,"end-aligned",!1),s3(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),r=!o&&n||o&&!n;this.style.alignItems=r?"flex-start":"flex-end";let i=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,i,this.noVerticalOverlap,s4,this,t),c=this.__calculatePositionInOneDimension(e,i,this.noHorizontalOverlap,s6,this,n);Object.assign(this.style,a,c),s3(this,"bottom-aligned",!t),s3(this,"top-aligned",t),s3(this,"end-aligned",!r),s3(this,"start-aligned",r)}__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),r=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,o,n,this.__margins,r,this.noHorizontalOverlap,s6)}__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,s4)}__shouldAlignStart(e,t,o,n,r,i,a){let c=o-e[i?a.end:a.start]-n[a.end],s=e[i?a.start:a.end]-n[a.start],l=r?c:s;return r===(l>(r?s:c)||l>t)}__adjustBottomProperty(e,t,o){let n;if(e===t.end){if(t.end===s4.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===s6.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,r,i){let a=i?n.start:n.end,c=i?n.end:n.start,s=parseFloat(r.style[a]||getComputedStyle(r)[a]),l=this.__adjustBottomProperty(a,n,s),d=t[i?n.start:n.end]-e[o===i?n.end:n.start];return{[a]:l?`${l}px`:`${s+d*(i?-1:1)}px`,[c]:""}}},s7=e=>class extends s5(s9(e)){static get properties(){return{parentOverlay:{type:Object,readOnly:!0},_theme:{type:String,readOnly:!0,sync:!0}}}static get observers(){return["_themeChanged(_theme)"]}get _contentRoot(){return this._rendererRoot}get _rendererRoot(){if(!this.__savedRoot){let e=document.createElement("div");e.setAttribute("slot","overlay"),e.style.display="contents",this.owner.appendChild(e),this.__savedRoot=e}return this.__savedRoot}ready(){super.ready(),this.restoreFocusOnClose=!0,this.addEventListener("keydown",e=>{if(!e.defaultPrevented&&e.composedPath()[0]===this.$.overlay&&[38,40].indexOf(e.keyCode)>-1){let t=this._contentRoot.firstElementChild;t&&Array.isArray(t.items)&&t.items.length&&(e.preventDefault(),38===e.keyCode?t.items[t.items.length-1].focus():t.focus())}})}_themeChanged(){this.close()}getBoundaries(){let e=this.getBoundingClientRect(),t=this.$.overlay.getBoundingClientRect(),o=e.bottom-t.height,n=this.parentOverlay;if(n?.hasAttribute("bottom-aligned")){let e=getComputedStyle(n);o=o-parseFloat(e.bottom)-parseFloat(e.height)}return{xMax:e.right-t.width,xMin:e.left+t.width,yMax:o}}_updatePosition(){if(super._updatePosition(),this.positionTarget&&this.parentOverlay&&this.opened){let e=getComputedStyle(this.$.content);this.style.left?this.style.left=`${parseFloat(this.style.left)+parseFloat(e.paddingLeft)}px`:this.style.right=`${parseFloat(this.style.right)+parseFloat(e.paddingRight)}px`,this.style.bottom?this.style.bottom=`${parseFloat(this.style.bottom)-parseFloat(e.paddingBottom)}px`:this.style.top=`${parseFloat(this.style.top)-parseFloat(e.paddingTop)}px`}}_shouldRestoreFocus(){return!this.parentOverlay&&super._shouldRestoreFocus()}_deepContains(e){return this.owner.contains(e)}},le=/Android/u.test(navigator.userAgent);/Chrome/u.test(navigator.userAgent)&&/Google Inc/u.test(navigator.vendor),/Firefox/u.test(navigator.userAgent);let lt=/^iPad/u.test(navigator.platform)||/^Mac/u.test(navigator.platform)&&navigator.maxTouchPoints>1,lo=/^iPhone/u.test(navigator.platform)||lt;/^((?!chrome|android).)*safari/iu.test(navigator.userAgent);let ln=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})(),lr=new Set,li=()=>[...lr].filter(e=>!e.hasAttribute("closing")),la=(e,t=e=>!0)=>e===li().filter(t).pop(),lc=e=>class extends e{get _last(){return la(this)}get _isAttached(){return lr.has(this)}bringToFront(){let e,t;if(la(this))return;let o=-1===(t=(e=li()).indexOf(this))?[]:e.slice(t+1),n=o.filter(e=>e._hasOverlayPositionMixin&&this._deepContains(e));n.length!==o.length&&[this,...n].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"),li().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=li();for(;(e=t.pop())&&(e===this||(e.toggleAttribute("suppressed",!1),e.modeless)););}_appendAttachedInstance(){lr.add(this)}_removeAttachedInstance(){this._isAttached&&lr.delete(this)}},ls=e=>class extends s5(lc(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),lo&&(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 r=this._oldOwner!==t||this._oldModel!==o;this._oldModel=o,this._oldOwner=t;let i=this._oldRenderer!==e,a=void 0!==this._oldRenderer;this._oldRenderer=e;let c=this._oldOpened!==n;this._oldOpened=n,i&&a&&(this._rendererRoot.innerHTML="",delete this._rendererRoot._$litPart$),n&&e&&(i||c||r)&&this.requestContentUpdate()}_modelessChanged(e){this.opened&&(this._shouldAddGlobalListeners()?this._addGlobalListeners():this._removeGlobalListeners()),e?this._exitModalState():this.opened&&this._enterModalState(),s3(this,"modeless",e)}_withBackdropChanged(e){s3(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(),s3(this,"opening",!0),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this.matches(":popover-open")||this.showPopover()}_finishOpening(){s3(this,"opening",!1)}_finishClosing(){this._detachOverlay(),this._removeAttachedInstance(),this.toggleAttribute("suppressed",!1),s3(this,"closing",!1),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._isAttached&&(this._exitModalState(),s3(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)}}},ll=tz`
|
|
447
447
|
:host {
|
|
448
448
|
align-items: flex-start;
|
|
449
449
|
justify-content: flex-start;
|
|
@@ -519,6 +519,11 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
519
519
|
display: none !important;
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
+
:host([suppressed]) [part='overlay'],
|
|
523
|
+
:host([suppressed]) ::slotted(*) {
|
|
524
|
+
pointer-events: none !important;
|
|
525
|
+
}
|
|
526
|
+
|
|
522
527
|
[part='overlay'] {
|
|
523
528
|
color: var(--vaadin-overlay-text-color, var(--vaadin-text-color));
|
|
524
529
|
background: var(--vaadin-overlay-background, var(--vaadin-background-color));
|
|
@@ -700,7 +705,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
700
705
|
}
|
|
701
706
|
}
|
|
702
707
|
`,lx=e=>class extends sp(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}},lO=["mousedown","mouseup","click","dblclick","keypress","keydown","keyup"],lT=e=>class extends sg(lx(sk(e))){constructor(){super(),this.__onInteractionEvent=this.__onInteractionEvent.bind(this),lO.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 lB extends lT(lC(sH(cH(sU(oI))))){static get is(){return"vaadin-button"}static get styles(){return lS}static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}render(){return oF`
|
|
703
|
-
<div class="vaadin-button-container">
|
|
708
|
+
<div class="vaadin-button-container" role="presentation">
|
|
704
709
|
<span part="prefix" aria-hidden="true">
|
|
705
710
|
<slot name="prefix"></slot>
|
|
706
711
|
</span>
|
|
@@ -798,7 +803,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
798
803
|
:host([theme~='end-aligned'][has-single-button]) ::slotted(vaadin-menu-bar-button) {
|
|
799
804
|
margin-inline-start: auto;
|
|
800
805
|
}
|
|
801
|
-
|
|
806
|
+
`,lI=["__proto__","constructor","prototype"],lP=e=>{if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t};function lL(e,...t){return t.forEach(t=>(function e(t,o,n){return lP(t)&&lP(o)&&Object.keys(o).forEach(r=>{if(lI.includes(r))return;let i=o[r];if(lP(i)){if(!Object.hasOwn(t,r)||!lP(t[r])){if(n&&Object.hasOwn(t,r)&&t[r])return;t[r]={}}e(t[r],i,n)}else n&&Array.isArray(i)?t[r]=[...i]:n&&null==i||(t[r]=i)}),t})(e,t,!0)),e}let lM=e=>class extends e{static get properties(){return{i18n:{type:Object},__effectiveI18n:{type:Object,sync:!0}}}static get defaultI18n(){return{}}constructor(){super(),this.i18n=lL({},this.constructor.defaultI18n)}get i18n(){return this.__customI18n}set i18n(e){e!==this.__customI18n&&(this.__customI18n=e,this.__effectiveI18n=lL({},this.constructor.defaultI18n,this.__customI18n))}},lU=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))})})}),lj=cL(e=>class extends e{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),lU.observe(this),this._observeParent){let e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,lU.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),lU.unobserve(this);let e=this.__parent;if(this._observeParent&&e){let t=e.resizables;t&&(t.delete(this),0===t.size&&lU.unobserve(e)),this.__parent=null}}_onResize(e){}});class l$ extends lh{_getItem(e){return"vaadin-menu-bar-button"===e.localName?e.item:super._getItem(e)}_getDefaultPosition(e){return"vaadin-menu-bar-button"===e.localName?"bottom":super._getDefaultPosition(e)}}let lG=a8(class extends a9{update(e,[{component:t,text:o}]){let{parentNode:n,startNode:r}=e,i=t||(o?document.createTextNode(o):null),a=this.getOldNode(e);return a===i||(a&&i?n.replaceChild(i,a):a?n.removeChild(a):i&&r.after(i)),og}getOldNode(e){let{startNode:t,endNode:o}=e;return t.nextSibling===o?null:t.nextSibling}}),lq={moreOptions:"More options"},lH=e=>class extends lM(sJ(lj(sk(sp(e))))){static get properties(){return{items:{type:Array,sync:!0,value:()=>[]},openOnHover:{type:Boolean},reverseCollapse:{type:Boolean,sync:!0},tabNavigation:{type:Boolean,sync:!0}}}static get defaultI18n(){return lq}get i18n(){return super.i18n}set i18n(e){super.i18n=e}constructor(){super(),this.__boundOnContextMenuKeydown=this.__onContextMenuKeydown.bind(this)}get focused(){return(this._getItems()||[]).find(sA)||this._expandedButton}get _vertical(){return!1}get _tabNavigation(){return this.tabNavigation}get _observeParent(){return!0}get _buttons(){return Array.from(this.querySelectorAll("vaadin-menu-bar-button"))}get _hasOverflow(){return this._overflow&&!this._overflow.hasAttribute("hidden")}set _hasOverflow(e){this._overflow&&this._overflow.toggleAttribute("hidden",!e)}ready(){super.ready(),this.setAttribute("role","menubar"),this._subMenuController=new lb(this,"submenu","vaadin-menu-bar-submenu",{initializer:e=>{e.setAttribute("is-root",""),e.addEventListener("item-selected",this.__onItemSelected.bind(this)),e.addEventListener("close-all-menus",this.__onEscapeClose.bind(this)),e._overlayElement._contentRoot.addEventListener("keydown",this.__boundOnContextMenuKeydown),this._subMenu=e}}),this._overflowController=new lb(this,"overflow","vaadin-menu-bar-button",{initializer:e=>{e.setAttribute("hidden","");let t=document.createElement("div");t.setAttribute("aria-hidden","true"),t.innerHTML="·".repeat(3),e.appendChild(t),e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"),e.setAttribute("role",this.tabNavigation?"button":"menuitem"),this._overflow=e}}),this._tooltipController=new l$(this),this.addEventListener("mousedown",()=>this._tooltipController.close(!0)),this.addEventListener("mouseleave",()=>this._tooltipController.close()),this.addController(this._tooltipController),this.addController(this._subMenuController),this.addController(this._overflowController),this._container=this.shadowRoot.querySelector('[part="container"]')}updated(e){super.updated(e),(e.has("items")||e.has("_theme")||e.has("disabled"))&&this.__renderButtons(this.items),(e.has("items")||e.has("_theme")||e.has("reverseCollapse"))&&this.__scheduleOverflow(),e.has("items")&&this.__updateSubMenu(),e.has("_theme")&&this._themeChanged(this._theme),e.has("disabled")&&this._overflow.toggleAttribute("disabled",this.disabled),e.has("tabNavigation")&&this._tabNavigationChanged(this.tabNavigation),e.has("__effectiveI18n")&&this.__i18nChanged(this.__effectiveI18n)}_getItems(){return this._buttons}disconnectedCallback(){super.disconnectedCallback(),this._tooltipController.setTarget(null)}_onResize(){this.__scheduleOverflow()}_themeChanged(e){e?(this._overflow.setAttribute("theme",e),this._subMenu.setAttribute("theme",e)):(this._overflow.removeAttribute("theme"),this._subMenu.removeAttribute("theme"))}_tabNavigationChanged(e){let t=this.querySelector('[tabindex="0"]');this._buttons.forEach(o=>{t?this._setTabindex(o,o===t):this._setTabindex(o,!1),o.setAttribute("role",e?"button":"menuitem")}),this.setAttribute("role",e?"group":"menubar")}__updateSubMenu(){let e=this._subMenu;if(e?.opened){let t=e._positionTarget;t.isConnected&&Array.isArray(t.item.children)&&0!==t.item.children.length||e.close()}}__i18nChanged(e){e?.moreOptions!==void 0&&(e.moreOptions?this._overflow.setAttribute("aria-label",e.moreOptions):this._overflow.removeAttribute("aria-label"))}__getOverflowCount(e){return e.item&&e.item.children&&e.item.children.length||0}__restoreButtons(e){e.forEach(e=>{e.style.visibility="",e.style.position="",e.style.width="";let t=e.item&&e.item.component;t instanceof HTMLElement&&"menuitem"===t.getAttribute("role")&&this.__restoreItem(e,t)}),this.__updateOverflow([])}__restoreItem(e,t){e.appendChild(t),t.removeAttribute("role"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-haspopup"),t.removeAttribute("tabindex")}__updateOverflow(e){this._overflow.item={children:e},this._hasOverflow=e.length>0}__setOverflowItems(e,t){let o=this._container;if(o.style.minWidth=`${o.offsetWidth}px`,o.offsetWidth<o.scrollWidth){this._hasOverflow=!0;let n=this.__isRTL,r=o.offsetLeft,i=[...e];for(;i.length;){let e=i[i.length-1],a=e.offsetLeft-r;if(!n&&a+e.offsetWidth<o.offsetWidth-t.offsetWidth||n&&a>=t.offsetWidth)break;let c=this.reverseCollapse?i.shift():i.pop();c.style.width=getComputedStyle(c).width,c.style.visibility="hidden",c.style.position="absolute"}let a=e.filter(e=>!i.includes(e)).map(e=>e.item);this.__updateOverflow(a)}o.style.minWidth=""}__scheduleOverflow(){this._overflowDebouncer=sY.debounce(this._overflowDebouncer,cX,()=>{this.__detectOverflow()})}__detectOverflow(){let e=this._overflow,t=this._buttons.filter(t=>t!==e),o=this.__getOverflowCount(e);this.__restoreButtons(t),this.__setOverflowItems(t,e);let n=this.__getOverflowCount(e);o!==n&&this._subMenu.opened&&this._subMenu.close();let r=n===t.length||0===n&&1===t.length;this.toggleAttribute("has-single-button",r);let i=t.filter(e=>"hidden"!==e.style.visibility);i.length?i.some(e=>"0"===e.getAttribute("tabindex"))||this._setTabindex(i[i.length-1],!0):this._overflow.setAttribute("tabindex","0"),i.forEach((e,t,o)=>{e.toggleAttribute("first-visible",0===t),e.toggleAttribute("last-visible",!this._hasOverflow&&t===o.length-1)})}__getButtonTheme(e,t){let o=t,n=e?.theme;return null!=n&&(o=Array.isArray(n)?n.join(" "):n),o}__getComponent(e){let t,o=e.component,n=o instanceof HTMLElement;return n&&"vaadin-menu-bar-item"===o.localName?t=o:(t=document.createElement("vaadin-menu-bar-item")).appendChild(n?o:document.createElement(o)),e.text&&((t.firstChild||t).textContent=e.text),t}__renderButtons(e=[]){oR(oF`
|
|
802
807
|
${e.map(e=>{let t={...e},o=!!e?.children;if(t.component){let e=this.__getComponent(t);t.component=e,e.item=t}return oF`
|
|
803
808
|
<vaadin-menu-bar-button
|
|
804
809
|
.item="${t}"
|
|
@@ -809,10 +814,10 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
809
814
|
class="${(e.className||ov)??ov}"
|
|
810
815
|
theme="${(this.__getButtonTheme(e,this._theme)||ov)??ov}"
|
|
811
816
|
@click="${this.__onRootButtonClick}"
|
|
812
|
-
>${
|
|
817
|
+
>${lG(t)}</vaadin-menu-bar-button
|
|
813
818
|
>
|
|
814
819
|
`})}
|
|
815
|
-
`,this,{renderBefore:this._overflow})}__onRootButtonClick(e){let t=e.target;t.item&&t.item.component&&!e.composedPath().includes(t.item.component)&&(e.stopPropagation(),t.item.component.click())}_setExpanded(e,t){e.toggleAttribute("expanded",t),e.toggleAttribute("active",t),e.setAttribute("aria-expanded",t?"true":"false")}_setTabindex(e,t){this.tabNavigation&&this._isItemFocusable(e)?e.setAttribute("tabindex","0"):e.setAttribute("tabindex",t?"0":"-1")}_focusItem(e,t,o){let n=o&&this.focused===this._expandedButton;n&&this._close(),super._focusItem(e,t,o),this._buttons.forEach(t=>{this._setTabindex(t,t===e)}),this._tooltipController.setTarget(e),n&&e.item&&e.item.children?this.__openSubMenu(e,!0,{keepFocus:!0}):this._subMenu.opened||this._tooltipController.open({trigger:"focus"})}_getButtonFromEvent(e){return Array.from(e.composedPath()).find(e=>"vaadin-menu-bar-button"===e.localName)}_shouldSetFocus(e){return!e.composedPath().includes(this._subMenu)&&super._shouldSetFocus(e)}_shouldRemoveFocus(e){return!e.composedPath().includes(this._subMenu)&&super._shouldRemoveFocus(e)}_setFocused(e){let t=e?this.__getFocusTarget():null;t?(this._tooltipController.setTarget(t),this._buttons.forEach(e=>{this._setTabindex(e,e===t)}),!this._subMenu.opened&&sv&&this._tooltipController.open({trigger:"focus"})):this._tooltipController.close(!0)}__getFocusTarget(){let e=this._buttons.find(e=>sA(e));if(!e){let t=this.tabNavigation?"[focused]":'[tabindex="0"]';s_(e=this.querySelector(`vaadin-menu-bar-button${t}`))&&(e=this._buttons[this._getFocusableIndex()])}return e}_onArrowDown(e){e.preventDefault();let t=this._getButtonFromEvent(e);t===this._expandedButton?this._focusFirstItem():this.__openSubMenu(t,!0)}_onArrowUp(e){e.preventDefault();let t=this._getButtonFromEvent(e);t===this._expandedButton?this._focusLastItem():this.__openSubMenu(t,!0,{focusLast:!0})}_onEscape(e){e.composedPath().includes(this._expandedButton)&&this._close(!0),this._tooltipController.close(!0)}_onKeyDown(e){e.composedPath().includes(this._subMenu)||this._handleKeyDown(e)}_handleKeyDown(e){switch(e.key){case"ArrowDown":this._onArrowDown(e);break;case"ArrowUp":this._onArrowUp(e);break;default:super._onKeyDown(e)}}_onMouseOver(e){if(e.composedPath().includes(this._subMenu))return;let t=this._getButtonFromEvent(e);this._tooltipController.setTarget(t),t&&t!==this._expandedButton&&t.item.children&&(this.openOnHover||this._subMenu.opened)&&this.__openSubMenu(t,!1),this._subMenu.opened||this._tooltipController.open({trigger:"hover"})}__onContextMenuKeydown(e){let t=Array.from(e.composedPath()).find(e=>e._item);if(t){let o=t.parentNode;38===e.keyCode&&t===o.items[0]&&this._close(!0),37!==e.keyCode&&(39!==e.keyCode||t._item.children)||(e.stopImmediatePropagation(),this._handleKeyDown(e)),"Tab"===e.key&&this.tabNavigation&&this._handleKeyDown(e)}}__fireItemSelected(e){this.dispatchEvent(new CustomEvent("item-selected",{detail:{value:e}}))}__onButtonClick(e){let t=this._getButtonFromEvent(e);t&&this.__openSubMenu(t,t.__triggeredWithActiveKeys)}__openSubMenu(e,t,o={}){if(e.disabled)return;let n=this._subMenu,r=e.item;if(n.opened&&(this._close(),n.listenOn===e))return;let i=r?.children;if(!i||0===i.length)return void this.__fireItemSelected(r);n.items=i,n.listenOn=e,n._positionTarget=e;let a=n._overlayElement;a.noVerticalOverlap=!0,this._tooltipController.close(!0),this._expandedButton=e,this._setExpanded(e,!0),this.style.pointerEvents="auto",e.dispatchEvent(new CustomEvent("opensubmenu",{detail:{children:i}})),a.addEventListener("vaadin-overlay-open",()=>{if(o.focusLast&&this._focusLastItem(),o.keepFocus){let e={focusVisible:sv};this._focusItem(this._expandedButton,e,!1)}t||a.$.overlay.focus()},{once:!0})}_focusFirstItem(){this._subMenu._overlayElement._contentRoot.firstElementChild.focus()}_focusLastItem(){let e=this._subMenu._overlayElement._contentRoot.firstElementChild,t=e.items[e.items.length-1];t&&t.focus()}__onItemSelected(e){e.stopPropagation(),this.__fireItemSelected(e.detail.value)}__onEscapeClose(){this.__deactivateButton(!0)}__deactivateButton(e){let t=this._expandedButton;if(t?.hasAttribute("expanded")){if(this._setExpanded(t,!1),e){let e={focusVisible:sv};this._focusItem(t,e,!1)}else this._tooltipController.close(!0);this._expandedButton=null}}_close(e=!1){this.style.pointerEvents="",this.__deactivateButton(e),this._subMenu.opened&&this._subMenu.close()}close(){this._close()}_isItemFocusable(e){return e.disabled&&e.__shouldAllowFocusWhenDisabled?e.__shouldAllowFocusWhenDisabled():super._isItemFocusable(e)}};class
|
|
820
|
+
`,this,{renderBefore:this._overflow})}__onRootButtonClick(e){let t=e.target;t.item&&t.item.component&&!e.composedPath().includes(t.item.component)&&(e.stopPropagation(),t.item.component.click())}_setExpanded(e,t){e.toggleAttribute("expanded",t),e.toggleAttribute("active",t),e.setAttribute("aria-expanded",t?"true":"false")}_setTabindex(e,t){this.tabNavigation&&this._isItemFocusable(e)?e.setAttribute("tabindex","0"):e.setAttribute("tabindex",t?"0":"-1")}_focusItem(e,t,o){let n=o&&this.focused===this._expandedButton;n&&this._close(),super._focusItem(e,t,o),this._buttons.forEach(t=>{this._setTabindex(t,t===e)}),this._tooltipController.setTarget(e),n&&e.item&&e.item.children?this.__openSubMenu(e,!0,{keepFocus:!0}):this._subMenu.opened||this._tooltipController.open({trigger:"focus"})}_getButtonFromEvent(e){return Array.from(e.composedPath()).find(e=>"vaadin-menu-bar-button"===e.localName)}_shouldSetFocus(e){return!e.composedPath().includes(this._subMenu)&&super._shouldSetFocus(e)}_shouldRemoveFocus(e){return!e.composedPath().includes(this._subMenu)&&super._shouldRemoveFocus(e)}_setFocused(e){let t=e?this.__getFocusTarget():null;t?(this._tooltipController.setTarget(t),this._buttons.forEach(e=>{this._setTabindex(e,e===t)}),!this._subMenu.opened&&sv&&this._tooltipController.open({trigger:"focus"})):this._tooltipController.close(!0)}__getFocusTarget(){let e=this._buttons.find(e=>sA(e));if(!e){let t=this.tabNavigation?"[focused]":'[tabindex="0"]';s_(e=this.querySelector(`vaadin-menu-bar-button${t}`))&&(e=this._buttons[this._getFocusableIndex()])}return e}_onArrowDown(e){e.preventDefault();let t=this._getButtonFromEvent(e);t===this._expandedButton?this._focusFirstItem():this.__openSubMenu(t,!0)}_onArrowUp(e){e.preventDefault();let t=this._getButtonFromEvent(e);t===this._expandedButton?this._focusLastItem():this.__openSubMenu(t,!0,{focusLast:!0})}_onEscape(e){e.composedPath().includes(this._expandedButton)&&this._close(!0),this._tooltipController.close(!0)}_onKeyDown(e){e.composedPath().includes(this._subMenu)||this._handleKeyDown(e)}_handleKeyDown(e){switch(e.key){case"ArrowDown":this._onArrowDown(e);break;case"ArrowUp":this._onArrowUp(e);break;default:super._onKeyDown(e)}}_onMouseOver(e){if(e.composedPath().includes(this._subMenu))return;let t=this._getButtonFromEvent(e);this._tooltipController.setTarget(t),t&&t!==this._expandedButton&&t.item.children&&(this.openOnHover||this._subMenu.opened)&&this.__openSubMenu(t,!1),this._subMenu.opened||this._tooltipController.open({trigger:"hover"})}__onContextMenuKeydown(e){let t=Array.from(e.composedPath()).find(e=>e._item);if(t){let o=t.parentNode;38===e.keyCode&&t===o.items[0]&&this._close(!0),37!==e.keyCode&&(39!==e.keyCode||t._item.children)||(e.stopImmediatePropagation(),this._handleKeyDown(e)),"Tab"===e.key&&this.tabNavigation&&this._handleKeyDown(e)}}__fireItemSelected(e){this.dispatchEvent(new CustomEvent("item-selected",{detail:{value:e}}))}__onButtonClick(e){let t=this._getButtonFromEvent(e);t&&this.__openSubMenu(t,t.__triggeredWithActiveKeys)}__openSubMenu(e,t,o={}){if(e.disabled)return;let n=this._subMenu,r=e.item;if(n.opened&&(this._close(),n.listenOn===e))return;let i=r?.children;if(!i||0===i.length)return void this.__fireItemSelected(r);n.items=i,n.listenOn=e,n._positionTarget=e;let a=n._overlayElement;a.noVerticalOverlap=!0,this._tooltipController.close(!0),this._expandedButton=e,this._setExpanded(e,!0),this.style.pointerEvents="auto",e.dispatchEvent(new CustomEvent("opensubmenu",{detail:{children:i}})),a.addEventListener("vaadin-overlay-open",()=>{if(o.focusLast&&this._focusLastItem(),o.keepFocus){let e={focusVisible:sv};this._focusItem(this._expandedButton,e,!1)}t||a.$.overlay.focus()},{once:!0})}_focusFirstItem(){this._subMenu._overlayElement._contentRoot.firstElementChild.focus()}_focusLastItem(){let e=this._subMenu._overlayElement._contentRoot.firstElementChild,t=e.items[e.items.length-1];t&&t.focus()}__onItemSelected(e){e.stopPropagation(),this.__fireItemSelected(e.detail.value)}__onEscapeClose(){this.__deactivateButton(!0)}__deactivateButton(e){let t=this._expandedButton;if(t?.hasAttribute("expanded")){if(this._setExpanded(t,!1),e){let e={focusVisible:sv};this._focusItem(t,e,!1)}else this._tooltipController.close(!0);this._expandedButton=null}}_close(e=!1){this.style.pointerEvents="",this.__deactivateButton(e),this._subMenu.opened&&this._subMenu.close()}close(){this._close()}_isItemFocusable(e){return e.disabled&&e.__shouldAllowFocusWhenDisabled?e.__shouldAllowFocusWhenDisabled():super._isItemFocusable(e)}};class lz extends lH(lC(sH(cH(sU(oI))))){static get is(){return"vaadin-menu-bar"}static get styles(){return lN}render(){return oF`
|
|
816
821
|
<div part="container" @click="${this.__onButtonClick}" @mouseover="${this._onMouseOver}">
|
|
817
822
|
<slot></slot>
|
|
818
823
|
<slot name="overflow"></slot>
|
|
@@ -821,7 +826,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
821
826
|
<slot name="submenu"></slot>
|
|
822
827
|
|
|
823
828
|
<slot name="tooltip"></slot>
|
|
824
|
-
`}}function
|
|
829
|
+
`}}function lW(e){let t=document.createElement("vaadin-menu-bar-item");return oR(e,t),t}cT(lz);let lV=class extends lz{};lV=function(e,t,o,n){var r,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([oU("or-vaadin-menu-bar")],lV);var lY=function(e,t,o,n){var r,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};let lK=class extends oM{constructor(){super(...arguments),this.expanded=!1,this.leaf=!1,this.readonly=!1,this._slotClickListener=e=>this.leaf?this._onExpandToggle(e):null,this._chevronClickListener=e=>this._onExpandToggle(e)}static get styles(){return[tz`
|
|
825
830
|
* {
|
|
826
831
|
box-sizing: border-box;
|
|
827
832
|
}
|
|
@@ -872,7 +877,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
872
877
|
icon="${e?"chevron-down":"chevron-right"}"
|
|
873
878
|
@click="${this._chevronClickListener}"
|
|
874
879
|
></or-icon>
|
|
875
|
-
`}_onExpandToggle(e){this.expanded=!this.expanded}_onSlotChange(e){this._applyIndentToChildren()}_applyIndentToChildren(e=this.getChildNodes()){e.forEach(e=>{let t=(e=>{let t=0;for(;e;)"or-tree-group"===e.tagName.toLowerCase()&&t++,e=e.parentElement;return t})(e);"parent"===e.slot&&t--,e.style.setProperty("--or-tree-node-indent",`${24+12*t}px`)})}};
|
|
880
|
+
`}_onExpandToggle(e){this.expanded=!this.expanded}_onSlotChange(e){this._applyIndentToChildren()}_applyIndentToChildren(e=this.getChildNodes()){e.forEach(e=>{let t=(e=>{let t=0;for(;e;)"or-tree-group"===e.tagName.toLowerCase()&&t++,e=e.parentElement;return t})(e);"parent"===e.slot&&t--,e.style.setProperty("--or-tree-node-indent",`${24+12*t}px`)})}};lY([o$({type:Boolean,reflect:!0})],lK.prototype,"expanded",void 0),lY([o$({type:Boolean})],lK.prototype,"leaf",void 0),lY([o$({type:Boolean})],lK.prototype,"readonly",void 0),lY([oz({slot:void 0})],lK.prototype,"_childNodes",void 0),lY([oz({slot:"parent"})],lK.prototype,"_parentNodes",void 0),lK=lY([oU("or-tree-group")],lK);var lJ=function(e,t,o,n){var r,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};let lX=tz`
|
|
876
881
|
* {
|
|
877
882
|
box-sizing: border-box;
|
|
878
883
|
}
|
|
@@ -910,11 +915,11 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
910
915
|
::slotted(*:not([slot])) {
|
|
911
916
|
flex: 1;
|
|
912
917
|
}
|
|
913
|
-
`,
|
|
918
|
+
`,lQ=class extends oM{constructor(){super(...arguments),this.readonly=!1,this.selected=!1}static get styles(){return[lX]}render(){return oF`
|
|
914
919
|
<slot name="prefix"></slot>
|
|
915
920
|
<slot></slot>
|
|
916
921
|
<slot name="suffix"></slot>
|
|
917
|
-
`}};
|
|
922
|
+
`}};lJ([o$({type:Boolean,reflect:!0})],lQ.prototype,"readonly",void 0),lJ([o$({type:Boolean,reflect:!0})],lQ.prototype,"selected",void 0),lQ=lJ([oU("or-tree-node")],lQ);var lZ=function(e,t,o,n){var r,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};let l0=tz`
|
|
918
923
|
* {
|
|
919
924
|
box-sizing: border-box;
|
|
920
925
|
}
|
|
@@ -966,7 +971,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
966
971
|
display: flex;
|
|
967
972
|
align-items: center;
|
|
968
973
|
}
|
|
969
|
-
`,
|
|
974
|
+
`,l1=class extends oM{constructor(){super(...arguments),this.nodes=[],this.selection=tR.LEAF,this.draggable=!1,this.noHeader=!1,this.menuTitle="Tree Menu",this.sortBy=tN.A_TO_Z,this.groupFirst=!1,this._treeNodeCache=new Map}static get styles(){return[l0]}willUpdate(e){return(e.has("nodes")||e.has("sortBy")||e.has("groupFirst"))&&this.nodes&&(this.nodes=this._sortNodes(this.nodes,this.sortBy,this.groupFirst)),e.has("selection")&&e.get("selection")&&this.selection&&this.deselectAllNodes(),super.willUpdate(e)}render(){var e,t;return oF`
|
|
970
975
|
<div id="tree-container">
|
|
971
976
|
${e=!this.noHeader,t=()=>this._getHeaderTemplate(),e?t():void 0} ${this._getTreeTemplate(this.nodes)}
|
|
972
977
|
${this._getErrorTemplate()}
|
|
@@ -1024,13 +1029,13 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
1024
1029
|
</h3>
|
|
1025
1030
|
<div id="tree-header-actions">${this._getSortActionTemplate(this.sortBy,this.sortOptions)}</div>
|
|
1026
1031
|
</div>
|
|
1027
|
-
`}_getSortActionTemplate(e,t){let o=[{component:
|
|
1032
|
+
`}_getSortActionTemplate(e,t){let o=[{component:lW(oF`<or-icon icon="sort-variant"></or-icon>`),children:(null!=t?t:[]).map(t=>({checked:e&&t===e,component:lW(oF`<or-translate value=${t}></or-translate>`),value:t}))}];return oF`
|
|
1028
1033
|
<or-vaadin-menu-bar
|
|
1029
1034
|
theme="icon"
|
|
1030
1035
|
.items=${o}
|
|
1031
1036
|
@item-selected=${e=>this._onSortClick(e.detail.value.value)}
|
|
1032
1037
|
></or-vaadin-menu-bar>
|
|
1033
|
-
`}_getErrorTemplate(){return oF``}_onSortClick(e){this.sortBy=e}_onTreeGroupClick(e){let t=e.currentTarget,o=t.parentElement,n=(e,t)=>{e.select(),this._lastSelectedNode=t,this._notifyNodesSelect()};switch(this.selection){case tR.LEAF:return;case tR.MULTI:if(e.shiftKey&&this._lastSelectedNode){let e=Array.from(this._uiNodes||[]),t=o.getGroupNode();if(t){let o=e.indexOf(t),n=e.indexOf(this._lastSelectedNode);this._selectNodesBetween(e,o,n);return}}else if(e.ctrlKey)return void n(o,t);this.deselectAllNodes(),n(o,t);return;case tR.SINGLE:this.deselectAllNodes(),n(o,t)}}_onTreeNodeClick(e){let t=e.currentTarget;if(t)if(this.selection===tR.MULTI){if(e.shiftKey&&this._lastSelectedNode){let e=Array.from(this._uiNodes||[]),o=e.indexOf(this._lastSelectedNode),n=e.indexOf(t);if(o>-1&&n>-1)return void this._selectNodesBetween(e,o,n)}else if(e.ctrlKey)return void this._selectNode(t);this.deselectAllNodes(),this._selectNode(t);return}else this.deselectAllNodes(),this._selectNode(t)}_onDragStart(e,t){var o;e.target?null==(o=e.dataTransfer)||o.setData("treeNode",JSON.stringify(t)):e.preventDefault()}_onDragOverList(e){this.draggable&&e.preventDefault()}_onDragOverSingleNode(e,t,o){if(this.draggable&&(e.preventDefault(),o)){let e=this._getUiNodeFromTree(o);null==e||e.setAttribute("drophover","true")}}_onDragOverGroup(e,t){this.draggable&&(e.preventDefault(),e.currentTarget.setAttribute("drophover","true"))}_onDragLeaveSingleNode(e,t,o){if(o&&this.draggable){e.preventDefault();let t=this._getUiNodeFromTree(o);null==t||t.removeAttribute("drophover")}}_onDragLeaveGroup(e,t){this.draggable&&e.currentTarget.removeAttribute("drophover")}_onDragDropList(e){this._onDragDropGroup(e)}_onDragDropSingleNode(e,t,o){this._onDragDropGroup(e,o)}_onDragDropGroup(e,t){var o,n;if(this.draggable){e.preventDefault(),e.stopPropagation(),t&&(null==(o=this._getUiNodeFromTree(t))||o.removeAttribute("drophover"));let r=[],i=null==(n=e.dataTransfer)?void 0:n.getData("treeNode");if(i){let e=JSON.parse(i);e&&r.push(e)}if(this.selection===tR.MULTI){let e=this._findSelectedTreeNodes();(e=e.filter(e=>!e.children)).length>0&&(this.deselectAllNodes(),r.push(...e.filter(e=>!r.find(t=>JSON.stringify(t)===JSON.stringify(e)))))}(null==t?void 0:t.children)&&(r=r.filter(e=>{var o;return!(null==(o=t.children)?void 0:o.find(t=>t.id===e.id))})),r.length>0&&this._dispatchCancellableDragEvent(r,t,this.nodes).then(()=>{this.nodes=cD(r,t,this.nodes)}).catch(e=>{})}}_dispatchCancellableDragEvent(e,t,o=[]){return new Promise((n,r)=>{this.dispatchEvent(new cx(e,t,o))?n():r()})}_selectNode(e,t=!0){if(e){if(t){let t=[...this._findSelectedTreeNodes()],o=this._getTreeNodeFromTree(e);if(o&&t.push(o),!this._dispatchSelectEvent(t))return}e.selected=!0,this._lastSelectedNode=e}}_selectNodesBetween(e,t,o,n=!0){let r=[];if(t<o)for(let n=t;n<=o;n++)r.push(e[n]);else if(t>o)for(let n=o;n<=t;n++)r.push(e[n]);if(n){let e=r.map(e=>this._getTreeNodeFromTree(e)).filter(e=>e);if(!this._notifyNodesSelect(e))return}r.forEach(e=>this._selectNode(e))}_notifyNodesSelect(e){var t,o,n,r;return t=this,o=void 0,n=void 0,r=function*(){return yield this.getUpdateComplete(),e||(e=this._findSelectedTreeNodes()),this._dispatchSelectEvent(e)},new(n||(n=Promise))(function(e,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(t){var o;t.done?e(t.value):((o=t.value)instanceof n?o:new n(function(e){e(o)})).then(a,c)}s((r=r.apply(t,o||[])).next())})}_findSelectedTreeNodes(e=Array.from(this._uiNodes||[]),t=this._treeNodeCache){let o=e.filter(e=>e.selected),n=Array.from(t.entries());return o.map(e=>n.find(t=>t[1]===e.id)).map(e=>null==e?void 0:e[0]).filter(e=>void 0!==e)}_getTreeNodeFromTree(e,t=this._treeNodeCache){var o;return null==(o=Array.from(t.entries()).find(t=>t[1]===e.id))?void 0:o[0]}_getUiNodeFromTree(e,t=this._treeNodeCache){var o;let n=Array.from(t.entries()),r=JSON.stringify(e),i=null==(o=n.find(e=>JSON.stringify(e[0])===r))?void 0:o[1];return i?this.shadowRoot.getElementById(i):void 0}_dispatchSelectEvent(e){return this.dispatchEvent(new cS(e||[]))}deselectAllNodes(){(this._uiGroups||[]).forEach(e=>e.deselect()),(this._uiNodes||[]).forEach(e=>e.selected=!1)}_sortNodes(e,t,o=!1){console.debug(`Sorting nodes in the tree menu using '${t}'`);let n=e.filter(e=>void 0!==e.children);if(n.forEach(e=>{var o;return null==(o=e.children)?void 0:o.sort(this._getSortFunction(t))}),o){let o=e.filter(e=>void 0===e.children);return n.sort(this._getSortFunction(t)),o.sort(this._getSortFunction(t)),[...n,...o]}return e.sort(this._getSortFunction(t))}_setTreeNodeId(e,t=nV()){return this._treeNodeCache.get(e)?this._treeNodeCache.get(e):(this._treeNodeCache.set(e,t),t)}_getSortFunction(e){return e===tN.Z_TO_A?(e,t)=>t.label.localeCompare(e.label):nW(e=>e.label)}expandGroup(e){this.updateComplete.then(()=>{let t=this.nodes.find(t=>t.id===e&&t.children);t&&(t.expanded=!0,this.requestUpdate())})}};
|
|
1038
|
+
`}_getErrorTemplate(){return oF``}_onSortClick(e){this.sortBy=e}_onTreeGroupClick(e){let t=e.currentTarget,o=t.parentElement,n=(e,t)=>{e.select(),this._lastSelectedNode=t,this._notifyNodesSelect()};switch(this.selection){case tR.LEAF:return;case tR.MULTI:if(e.shiftKey&&this._lastSelectedNode){let e=Array.from(this._uiNodes||[]),t=o.getGroupNode();if(t){let o=e.indexOf(t),n=e.indexOf(this._lastSelectedNode);this._selectNodesBetween(e,o,n);return}}else if(e.ctrlKey)return void n(o,t);this.deselectAllNodes(),n(o,t);return;case tR.SINGLE:this.deselectAllNodes(),n(o,t)}}_onTreeNodeClick(e){let t=e.currentTarget;if(t)if(this.selection===tR.MULTI){if(e.shiftKey&&this._lastSelectedNode){let e=Array.from(this._uiNodes||[]),o=e.indexOf(this._lastSelectedNode),n=e.indexOf(t);if(o>-1&&n>-1)return void this._selectNodesBetween(e,o,n)}else if(e.ctrlKey)return void this._selectNode(t);this.deselectAllNodes(),this._selectNode(t);return}else this.deselectAllNodes(),this._selectNode(t)}_onDragStart(e,t){var o;e.target?null==(o=e.dataTransfer)||o.setData("treeNode",JSON.stringify(t)):e.preventDefault()}_onDragOverList(e){this.draggable&&e.preventDefault()}_onDragOverSingleNode(e,t,o){if(this.draggable&&(e.preventDefault(),o)){let e=this._getUiNodeFromTree(o);null==e||e.setAttribute("drophover","true")}}_onDragOverGroup(e,t){this.draggable&&(e.preventDefault(),e.currentTarget.setAttribute("drophover","true"))}_onDragLeaveSingleNode(e,t,o){if(o&&this.draggable){e.preventDefault();let t=this._getUiNodeFromTree(o);null==t||t.removeAttribute("drophover")}}_onDragLeaveGroup(e,t){this.draggable&&e.currentTarget.removeAttribute("drophover")}_onDragDropList(e){this._onDragDropGroup(e)}_onDragDropSingleNode(e,t,o){this._onDragDropGroup(e,o)}_onDragDropGroup(e,t){var o,n;if(this.draggable){e.preventDefault(),e.stopPropagation(),t&&(null==(o=this._getUiNodeFromTree(t))||o.removeAttribute("drophover"));let r=[],i=null==(n=e.dataTransfer)?void 0:n.getData("treeNode");if(i){let e=JSON.parse(i);e&&r.push(e)}if(this.selection===tR.MULTI){let e=this._findSelectedTreeNodes();(e=e.filter(e=>!e.children)).length>0&&(this.deselectAllNodes(),r.push(...e.filter(e=>!r.find(t=>JSON.stringify(t)===JSON.stringify(e)))))}(null==t?void 0:t.children)&&(r=r.filter(e=>{var o;return!(null==(o=t.children)?void 0:o.find(t=>t.id===e.id))})),r.length>0&&this._dispatchCancellableDragEvent(r,t,this.nodes).then(()=>{this.nodes=cD(r,t,this.nodes)}).catch(e=>{})}}_dispatchCancellableDragEvent(e,t,o=[]){return new Promise((n,r)=>{this.dispatchEvent(new cx(e,t,o))?n():r()})}_selectNode(e,t=!0){if(e){if(t){let t=[...this._findSelectedTreeNodes()],o=this._getTreeNodeFromTree(e);if(o&&t.push(o),!this._dispatchSelectEvent(t))return}e.selected=!0,this._lastSelectedNode=e}}_selectNodesBetween(e,t,o,n=!0){let r=[];if(t<o)for(let n=t;n<=o;n++)r.push(e[n]);else if(t>o)for(let n=o;n<=t;n++)r.push(e[n]);if(n){let e=r.map(e=>this._getTreeNodeFromTree(e)).filter(e=>e);if(!this._notifyNodesSelect(e))return}r.forEach(e=>this._selectNode(e))}_notifyNodesSelect(e){var t,o,n,r;return t=this,o=void 0,n=void 0,r=function*(){return yield this.getUpdateComplete(),e||(e=this._findSelectedTreeNodes()),this._dispatchSelectEvent(e)},new(n||(n=Promise))(function(e,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(t){var o;t.done?e(t.value):((o=t.value)instanceof n?o:new n(function(e){e(o)})).then(a,c)}s((r=r.apply(t,o||[])).next())})}_findSelectedTreeNodes(e=Array.from(this._uiNodes||[]),t=this._treeNodeCache){let o=e.filter(e=>e.selected),n=Array.from(t.entries());return o.map(e=>n.find(t=>t[1]===e.id)).map(e=>null==e?void 0:e[0]).filter(e=>void 0!==e)}_getTreeNodeFromTree(e,t=this._treeNodeCache){var o;return null==(o=Array.from(t.entries()).find(t=>t[1]===e.id))?void 0:o[0]}_getUiNodeFromTree(e,t=this._treeNodeCache){var o;let n=Array.from(t.entries()),r=JSON.stringify(e),i=null==(o=n.find(e=>JSON.stringify(e[0])===r))?void 0:o[1];return i?this.shadowRoot.getElementById(i):void 0}_dispatchSelectEvent(e){return this.dispatchEvent(new cS(e||[]))}deselectAllNodes(){(this._uiGroups||[]).forEach(e=>e.deselect()),(this._uiNodes||[]).forEach(e=>e.selected=!1)}_sortNodes(e,t,o=!1){console.debug(`Sorting nodes in the tree menu using '${t}'`);let n=e.filter(e=>void 0!==e.children);if(n.forEach(e=>{var o;return null==(o=e.children)?void 0:o.sort(this._getSortFunction(t))}),o){let o=e.filter(e=>void 0===e.children);return n.sort(this._getSortFunction(t)),o.sort(this._getSortFunction(t)),[...n,...o]}return e.sort(this._getSortFunction(t))}_setTreeNodeId(e,t=nV()){return this._treeNodeCache.get(e)?this._treeNodeCache.get(e):(this._treeNodeCache.set(e,t),t)}_getSortFunction(e){return e===tN.Z_TO_A?(e,t)=>t.label.localeCompare(e.label):nW(e=>e.label)}expandGroup(e){this.updateComplete.then(()=>{let t=this.nodes.find(t=>t.id===e&&t.children);t&&(t.expanded=!0,this.requestUpdate())})}};lZ([o$({type:Array})],l1.prototype,"nodes",void 0),lZ([o$({type:String})],l1.prototype,"selection",void 0),lZ([o$({type:Boolean})],l1.prototype,"draggable",void 0),lZ([o$({type:Boolean,attribute:"no-header"})],l1.prototype,"noHeader",void 0),lZ([o$({type:String,attribute:"menu-title"})],l1.prototype,"menuTitle",void 0),lZ([o$({type:Array,attribute:"sort-options"})],l1.prototype,"sortOptions",void 0),lZ([o$({type:String,attribute:"sort-by",reflect:!0})],l1.prototype,"sortBy",void 0),lZ([o$({type:Boolean,attribute:"group-first"})],l1.prototype,"groupFirst",void 0),lZ([oH("or-tree-node")],l1.prototype,"_uiNodes",void 0),lZ([oH("or-tree-group")],l1.prototype,"_uiGroups",void 0),l1=lZ([oU("or-tree-menu")],l1),(eD=tI||(tI={})).AVAILABLE="play",eD.UNAVAILABLE="alert-octagon",(eS=tP||(tP={})).AVAILABLE="iconfill-gray",eS.UNAVAILABLE="iconfill-red";class l2 extends CustomEvent{constructor(e){super(l2.NAME,{bubbles:!0,composed:!0,detail:e})}}l2.NAME="or-service-selected";var l5=function(e,t,o,n){var r,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};(ex=tL||(tL={})).NAME="name",ex.STATUS="status";let l3=tz`
|
|
1034
1039
|
.iconfill-gray {
|
|
1035
1040
|
--or-icon-fill: var(--or-app-color5, ${tH("#CCCCCC")});
|
|
1036
1041
|
}
|
|
@@ -1046,7 +1051,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
1046
1051
|
or-tree-node {
|
|
1047
1052
|
padding-left: 10px;
|
|
1048
1053
|
}
|
|
1049
|
-
`,
|
|
1054
|
+
`,l4=class extends l1{constructor(){super(...arguments),this.readonly=!1,this.nodes=[],this.selection=tR.SINGLE,this.menuTitle="services",this.sortBy=tL.NAME,this.sortOptions=[tL.NAME,tL.STATUS]}static get styles(){return[...super.styles,l3]}willUpdate(e){if(e.has("services")&&this.services&&(this.nodes=this._getServiceNodes(this.services),this.selectedService)){let e=this.nodes.find(e=>{var t;return e.id===(null==(t=this.selectedService)?void 0:t.serviceId)});e&&this._selectNode(e)}if(e.has("selectedService"))if(this.selectedService){let e=this.nodes.find(e=>{var t;return e.id===(null==(t=this.selectedService)?void 0:t.serviceId)});e&&this._selectNode(e)}else this.deselectAllNodes();super.willUpdate(e)}_dispatchSelectEvent(e){let t=!e||e.length>1?void 0:e[0];if(null==t?void 0:t.service){let e=new l2(t.service);this.dispatchEvent(e)}return super._dispatchSelectEvent(e)}_getServiceNodes(e){return e.map(e=>({id:e.serviceId||"",label:e.label||"",service:e,disabled:"UNAVAILABLE"===e.status}))}_getSingleNodeSlotTemplate(e){var t,o;let n=e.service,r=n.status&&tI[n.status]?tI[n.status]:tI.UNAVAILABLE,i=n.status&&tP[n.status]?tP[n.status]:tP.UNAVAILABLE;return oF`
|
|
1050
1055
|
<or-icon class="service-icon" slot="prefix" icon="${null!=(o=null==(t=e.service)?void 0:t.icon)?o:"puzzle"}"></or-icon>
|
|
1051
1056
|
<span>${e.label}</span>
|
|
1052
1057
|
<or-icon slot="suffix" icon="${r}" class="${i}"> </or-icon>
|
|
@@ -1057,7 +1062,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
1057
1062
|
</h3>
|
|
1058
1063
|
<div id="tree-header-actions">${this._getSortActionTemplate(this.sortBy,this.sortOptions)}</div>
|
|
1059
1064
|
</div>
|
|
1060
|
-
`}_getSortFunction(e){switch(e){case tL.STATUS:return nW(e=>{var t;return(null==(t=e.service)?void 0:t.status)||""});case tL.NAME:default:return super._getSortFunction(e)}}};
|
|
1065
|
+
`}_getSortFunction(e){switch(e){case tL.STATUS:return nW(e=>{var t;return(null==(t=e.service)?void 0:t.status)||""});case tL.NAME:default:return super._getSortFunction(e)}}};l5([o$({type:Array})],l4.prototype,"services",void 0),l5([o$({type:Object})],l4.prototype,"selectedService",void 0),l5([o$({type:Boolean})],l4.prototype,"readonly",void 0),l4=l5([oU("or-service-tree")],l4);var l6=function(e,t,o,n){var r,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};let l8=tz`
|
|
1061
1066
|
:host {
|
|
1062
1067
|
flex: 1;
|
|
1063
1068
|
width: 100%;
|
|
@@ -1174,7 +1179,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
1174
1179
|
max-width: calc(100vw - 300px);
|
|
1175
1180
|
}
|
|
1176
1181
|
}
|
|
1177
|
-
`,
|
|
1182
|
+
`,l9=class extends oM{constructor(){super(...arguments),this.realmName=ch.displayRealm,this.services=[],this.selectedService=null,this.loading=!1,this.showServiceTree=!0}static get styles(){return[l8]}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}refreshIframe(){var e;let t=null==(e=this.shadowRoot)?void 0:e.querySelector("#service-iframe");t&&"function"==typeof t.reload?(console.log("Reloading iframe"),t.reload()):console.warn("Unable to reload iframe: iframe not found or reload method not available")}_selectService(e){this.selectedService=e;let t=new l2(e);this.dispatchEvent(t),window.matchMedia("(max-width: 600px)").matches&&(this.showServiceTree=!1)}_toggleServiceTree(){this.showServiceTree=!this.showServiceTree}_getSidebarClass(){return this.selectedService?"hideMobile":""}_onServiceSelected(e){let t=e.detail;t&&this._selectService(t)}_getServiceUrlPath(e){var t;let o=ch.isSuperUser();return t=this.realmName,(e.homepageUrl||"").replace("{realm}",o?t:`?realm=${t}`)}_getServiceContentTemplate(){return this.loading?oF``:0===this.services.length?oF`<div class="msg">
|
|
1178
1183
|
<or-translate value="service.noServices"></or-translate>
|
|
1179
1184
|
</div>`:this.selectedService?oF`<or-iframe id="service-iframe" .src="${this._getServiceUrlPath(this.selectedService)}">
|
|
1180
1185
|
<span slot="onerror">${nG.t("service.iframeLoadError")}</span>
|
|
@@ -1217,4 +1222,4 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
1217
1222
|
<div style="flex: 1;">${this._getServiceContentTemplate()}</div>
|
|
1218
1223
|
</div>
|
|
1219
1224
|
</div>
|
|
1220
|
-
`}};
|
|
1225
|
+
`}};l6([o$({type:String})],l9.prototype,"realmName",void 0),l6([o$({type:Array})],l9.prototype,"services",void 0),l6([o$({type:Object})],l9.prototype,"selectedService",void 0),l6([o$({type:Boolean})],l9.prototype,"loading",void 0),l6([oG()],l9.prototype,"showServiceTree",void 0),l9=l6([oU("or-services")],l9)})(),ORServices=n})();
|