function e(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(e=function(){return!!n})()}function n(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:String(n)}function t(){return t=Object.assign?Object.assign.bind():function(e){for(var n=1;nt||!i&&e===t)return!1}else if(et||!i&&e===t))return!1;return!0}function y(e){return("number"==typeof e||e instanceof Number)&&(e=e.valueOf(),isFinite(e)&&Math.round(e)===e)}function x(e,n,t){if(!y(e)||isNaN(e))return!1;if(v(n)){if(v(t)){if(et)return!1}else if(et)return!1;return!0}function _(e){return("number"==typeof e||e instanceof Number)&&(e=e.valueOf(),isFinite(e)&&Math.round(e)===e&&e>=0)}function w(e){return("number"==typeof e||e instanceof Number)&&(e=e.valueOf(),isFinite(e)&&Math.round(e)===e&&e>=1)}function S(e){return"string"==typeof e||e instanceof String}var I=/^\s*$/;function P(e){return("string"==typeof e||e instanceof String)&&!I.test(e.valueOf())}function V(e,n){return("string"==typeof e||e instanceof String)&&n.test(e.valueOf())}var A=/^[^\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F\u2028\u2029\uFFF9-\uFFFB]*$/;function O(e){return V(e,A)}var k=/^[^\x00-\x1F\x7F-\x9F\u2028\u2029\uFFF9-\uFFFB]*$/;function L(e){return V(e,k)}function E(e){return"function"==typeof e}function N(e){return"function"==typeof e&&(null==e.name||""===e.name)}function M(e){return"function"==typeof e&&null!=e.name&&""!==e.name}function C(e){return"function"==typeof e&&/^function\s*[^(]*\(\)\s*\{\s*\[native code\]\s*\}\s*$/.test(e.toString())}function R(e){return"function"==typeof e&&!/^function\s*[^(]*\(\)\s*\{\s*\[native code\]\s*\}\s*$/.test(e.toString())}function F(e){return null!=e&&"object"==typeof e}function j(e){return null!=e&&"object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype}function z(e){return null!=e&&"object"==typeof e&&!(e instanceof Object)}var B=Array.isArray;function T(e,n,t){if(B(e)){for(var r=0,i=e.length;rt)}return!1}function D(e,n,t,r){if(B(e))try{for(var i=0,o=e.length;ir)}catch(e){}return!1}function U(e){return e instanceof Date}function $(e){return e instanceof Error}function W(e){return null!=e&&"function"==typeof e.then}function H(e){return e instanceof RegExp}function J(e,n){return n.indexOf(e)>=0}function q(e){return S(e)&&(Wt.hasOwnProperty(e)||/^#[a-fA-F0-9]{6}$/.test(e)||/^#[a-fA-F0-9]{8}$/.test(e)||/^rgb\([0-9]+,\s*[0-9]+,\s*[0-9]+\)$/.test(e)||/^rgba\([0-9]+,\s*[0-9]+,\s*[0-9]+,([01]|[0]?[.][0-9]+)\)$/.test(e))}var G=/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/;function Z(e){return V(e,G)}var K=/^[^\s\x00-\x1F\x7F-\x9F\u2028\u2029\uFFF9-\uFFFB]*$/;function Q(e){if(!V(e,K)||""===e)return!1;try{return new URL(e,"file://"),!0}catch(e){return!1}}var X=!1,Y=!0;function ee(e,n,t,r,i){if(null==n){if(r)return n;f("MissingArgument: no ".concat(jt(e)," given"))}else if(t(n))switch(!0){case n instanceof Boolean:case n instanceof Number:case n instanceof String:return n.valueOf();default:return n}else f("InvalidArgument: the given ".concat(jt(e)," is no valid ").concat(jt(i)))}function ne(e,n,t){var r=function(r,i){return ee(r,i,e,n,t)},i=e.name;return null!=i&&/^ValueIs/.test(i)?te(r,i.replace(/^ValueIs/,n?"allow":"expect")):r}function te(e,n){if(null==e&&f("MissingArgument: no function given"),"function"!=typeof e&&f("InvalidArgument: the given 1st Argument is not a JavaScript function"),null==n&&f("MissingArgument: no desired name given"),"string"==typeof n||n instanceof String||f("InvalidArgument: the given desired name is not a string"),e.name===n)return e;try{if(Object.defineProperty(e,"name",{value:n}),e.name===n)return e}catch(e){}return new Function("originalFunction","return function "+n+" () {return originalFunction.apply(this,Array.prototype.slice.apply(arguments))}")(e)}function re(e,n){if(null!=n)return n.valueOf();f("MissingArgument: no ".concat(jt(e)," given"))}var ie=re,oe=/*#__PURE__*/ne(b,Y,"boolean value"),ae=oe,le=/*#__PURE__*/ne(b,X,"boolean value"),ue=le,se=/*#__PURE__*/ne(g,Y,"numeric value"),ce=se,de=/*#__PURE__*/ne(g,X,"numeric value"),pe=de,fe=/*#__PURE__*/ne(v,Y,"finite numeric value"),be=fe,ge=/*#__PURE__*/ne(v,X,"finite numeric value"),ve=ge,he=/*#__PURE__*/ne(h,Y,"NaN value"),me=he,ye=/*#__PURE__*/ne(h,X,"NaN value"),xe=ye;function _e(e,n,t,r,i,o){return null==n?n:Ie(e,n,t,r,i,o)}var we=_e;function Se(e,n,t,r,i,o){if(de(e,n),isNaN(n)&&f("InvalidArgument: the given ".concat(jt(e)," is not-a-number")),null==i&&(i=!0),null==o&&(o=!0),null!=t&&isFinite(t)){if(null!=r&&isFinite(r)){if(nr||!o&&n===r)throw new RangeError("the given ".concat(jt(e)," (").concat(n,") is outside ")+"the allowed range (".concat(t,"...").concat(r,")"))}else if(nr||!o&&n===r))throw new RangeError("the given ".concat(jt(e)," exceeds the allowed ")+"maximum (".concat(n," ").concat(o?">":">="," ").concat(r,")"));return n.valueOf()}var Ie=Se,Pe=/*#__PURE__*/ne(y,Y,"integral numeric value"),Ve=Pe,Ae=/*#__PURE__*/ne(y,X,"integral numeric value"),Oe=Ae;function ke(e,n,t,r){return null==n?n:Ne(e,n,t,r)}var Le=ke;function Ee(e,n,t,r){if(Ae(e,n),isNaN(n)&&f("InvalidArgument: the given ".concat(jt(e)," is not-a-number")),null!=t&&isFinite(t)){if(null!=r&&isFinite(r)){if(nr)throw new RangeError("the given ".concat(jt(e)," (").concat(n,") is outside ")+"the allowed range (".concat(t,"...").concat(r,")"))}else if(nr)throw new RangeError("the given ".concat(jt(e)," exceeds the allowed ")+"maximum (".concat(n," > ").concat(r,")"));return n.valueOf()}var Ne=Ee,Me=/*#__PURE__*/ne(_,Y,"ordinal number"),Ce=Me,Re=/*#__PURE__*/ne(_,X,"ordinal number"),Fe=Re,je=/*#__PURE__*/ne(w,Y,"cardinal number"),ze=je,Be=/*#__PURE__*/ne(w,X,"cardinal number"),Te=Be,De=/*#__PURE__*/ne(S,Y,"literal string"),Ue=De,$e=/*#__PURE__*/ne(S,X,"literal string"),We=$e,He=/*#__PURE__*/ne(P,Y,"non-empty literal string"),Je=He,qe=/*#__PURE__*/ne(P,X,"non-empty literal string"),Ge=qe;function Ze(e,n,t){return null==n?n:Xe(e,n,t)}var Ke=Ze;function Qe(e,n,t){if($e(e,n),t.test(n))return n.valueOf();f("InvalidArgument: the given ".concat(jt(e)," does not match the specified pattern"))}var Xe=Qe,Ye=/*#__PURE__*/ne(O,Y,"literal text"),en=Ye,nn=/*#__PURE__*/ne(O,X,"literal text"),tn=nn,rn=/*#__PURE__*/ne(L,Y,"single line of text"),on=rn,an=/*#__PURE__*/ne(L,X,"single line of text"),ln=an,un=/*#__PURE__*/ne(E,Y,"JavaScript function"),sn=un,cn=/*#__PURE__*/ne(E,X,"JavaScript function"),dn=cn,pn=/*#__PURE__*/ne(N,Y,"anonymous JavaScript function"),fn=pn,bn=/*#__PURE__*/ne(N,X,"anonymous JavaScript function"),gn=bn,vn=/*#__PURE__*/ne(M,Y,"named JavaScript function"),hn=vn,mn=/*#__PURE__*/ne(M,X,"named JavaScript function"),yn=mn,xn=/*#__PURE__*/ne(C,Y,"native JavaScript function"),_n=xn,wn=/*#__PURE__*/ne(C,X,"native JavaScript function"),Sn=wn,In=/*#__PURE__*/ne(R,Y,"scripted JavaScript function"),Pn=In,Vn=/*#__PURE__*/ne(R,X,"scripted JavaScript function"),An=Vn,On=/*#__PURE__*/ne(F,Y,"JavaScript object"),kn=On,Ln=/*#__PURE__*/ne(F,X,"JavaScript object"),En=Ln,Nn=/*#__PURE__*/ne(j,Y,'"plain" JavaScript object'),Mn=Nn,Cn=/*#__PURE__*/ne(j,X,'"plain" JavaScript object'),Rn=Cn,Fn=/*#__PURE__*/ne(z,Y,'"vanilla" JavaScript object'),jn=Fn,zn=/*#__PURE__*/ne(z,X,'"vanilla" JavaScript object'),Bn=zn;function Tn(e,n){return null==n?n:$n(e,n)}var Dn=Tn;function Un(e,n){if(null==n&&f("MissingArgument: no ".concat(jt(e)," given")),B(n))return n;f("InvalidArgument: the given ".concat(jt(e)," is no JavaScript array"))}var $n=Un;function Wn(e,n,t,r,i){return null==n?n:qn(e,n,t,r,i)}var Hn=Wn;function Jn(e,n,t,r,i){if(null==n&&f("MissingArgument: no ".concat(jt(e)," given")),T(n,r,i))return n;f("InvalidArgument: the given ".concat(jt(e)," is ")+(null==t?"either not a list or contains an invalid number of elements":"no "+jt(t)))}var qn=Jn;function Gn(e,n,t,r,i,o){return null==n?n:Qn(e,n,t,r,i,o)}var Zn=Gn;function Kn(e,n,t,r,i,o){if(null==n&&f("MissingArgument: no ".concat(jt(e)," given")),D(n,t,i,o))return n;f("InvalidArgument: the given ".concat(jt(e)," is ")+(null==r?"either not a list or contains invalid elements":"no "+jt(r)))}var Qn=Kn;function Xn(e,n,t,r){return null==n?n:nt(e,n,t,r)}var Yn=Xn;function et(e,n,t,r){return null==n&&f("MissingArgument: no ".concat(jt(e)," given")),n instanceof t||f("InvalidArgument: the given ".concat(jt(e)," is no ").concat(jt(r))),n}var nt=et;function tt(e,n,t,r){return null==n?n:ot(e,n,t,r)}var rt=tt;function it(e,n,t,r){if(null==n&&f("MissingArgument: no ".concat(jt(e)," given")),t.isPrototypeOf(n))return n;f("InvalidArgument: the given ".concat(jt(e)," is no ").concat(jt(r)))}var ot=it,at=/*#__PURE__*/ne(U,Y,"JavaScript Date object"),lt=at,ut=/*#__PURE__*/ne(U,X,"JavaScript Date object"),st=ut,ct=/*#__PURE__*/ne($,Y,"JavaScript Error object"),dt=ct,pt=/*#__PURE__*/ne($,X,"JavaScript Error object"),ft=pt,bt=/*#__PURE__*/ne(W,Y,'JavaScript Promise (or "Thenable") object'),gt=bt,vt=/*#__PURE__*/ne(W,X,'JavaScript Promise (or "Thenable") object'),ht=vt,mt=/*#__PURE__*/ne(H,Y,"JavaScript RegExp object"),yt=mt,xt=/*#__PURE__*/ne(H,X,"JavaScript RegExp object"),_t=xt;function wt(e,n,t){return null==n?n:Pt(e,n,t)}var St=wt;function It(e,n,t){if(null==n&&f("MissingArgument: no ".concat(jt(e)," given")),J(n,t))return null==n||"function"!=typeof n.valueOf?n:n.valueOf();f("InvalidArgument: the given ".concat(jt(e)," is not among the supported values"))}var Pt=It,Vt=/*#__PURE__*/ne(q,Y,"CSS color specification"),At=Vt,Ot=/*#__PURE__*/ne(q,X,"CSS color specification"),kt=Ot,Lt=/*#__PURE__*/ne(Z,Y,"EMail address"),Et=Lt,Nt=/*#__PURE__*/ne(Z,X,"EMail address"),Mt=Nt,Ct=/*#__PURE__*/ne(Q,Y,"URL"),Rt=Ct,Ft=/*#__PURE__*/ne(Q,X,"URL");function jt(e){return e.replace(/\\x[0-9a-zA-Z]{2}|\\u[0-9a-zA-Z]{4}|\\[0bfnrtv'"\\\/]?/g,function(e){return"\\"===e?"\\\\":e}).replace(/[\x00-\x1f\x7f-\x9f]/g,function(e){switch(e){case"\0":return"\\0";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";default:var n=e.charCodeAt(0).toString(16);return"\\x"+"00".slice(n.length)+n}})}function zt(e,n){return void 0===n&&(n='"'),e.replace("'"===n?/\\x[0-9a-zA-Z]{2}|\\u[0-9a-zA-Z]{4}|\\[0bfnrtv'"\\\/]?|'/g:/\\x[0-9a-zA-Z]{2}|\\u[0-9a-zA-Z]{4}|\\[0bfnrtv'"\\\/]?|"/g,function(e){switch(e){case"'":return"\\'";case'"':return'\\"';case"\\":return"\\\\";default:return e}}).replace(/[\x00-\x1f\x7f-\x9f]/g,function(e){switch(e){case"\0":return"\\0";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";default:var n=e.charCodeAt(0).toString(16);return"\\x"+"00".slice(n.length)+n}})}function Bt(e,n){return void 0===n&&(n='"'),n+zt(e,n)+n}function Tt(e,n){return n=(n||"").trim()||"
",e.replace(/[&<>"'\u0000-\u001F\u007F-\u009F\\]/g,function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"\b":return"\b";case"\f":return"\f";case"\n":return n;case"\r":return"\r";case"\t":return"\t";case"\v":return"\v";case"\\":return"\";default:var t=e.charCodeAt(0).toString(16);return"�".substring(3,7-t.length)+t+";"}})}function Dt(e,n,t){if(e===n)return!1;var r=typeof e;if(r!==typeof n)return!0;switch(r){case"undefined":case"boolean":case"string":case"function":default:return!0;case"number":return isNaN(e)!==isNaN(n)||Math.abs(e-n)>Number.EPSILON;case"object":return null==e||null==n||("by-value"===t&&(e instanceof Boolean||e instanceof Number||e instanceof String)?e.valueOf()!==n.valueOf():Array.isArray(e)?function(e,n,t){if(!Array.isArray(n))return!0;if(e.length!==n.length)return!0;for(var r=0,i=e.length;r255&&(e=255),t[Math.trunc(e/16)]+t[e%16]}var i=/^rgb\(([0-9]+),\s*([0-9]+),\s*([0-9]+)\)$/i.exec(e);return null!=i?"#"+r(parseInt(i[1],10))+r(parseInt(i[2],10))+r(parseInt(i[3],10))+"FF":null!=(i=/^rgba\(([(0-9]+),\s*([0-9]+),\s*([0-9]+),\s*([01]?[.][0-9]+|[01])\)$/i.exec(e))?"#"+r(parseInt(i[1],10))+r(parseInt(i[2],10))+r(parseInt(i[3],10))+r(255*parseFloat(i[4])):void f("InvalidArgument: the given Value is not a valid CSS Color specification")}var Jt,qt,Gt,Zt,Kt,Qt,Xt,Yt={__proto__:null,ColorSet:Wt,FunctionWithName:te,HTMLsafe:Tt,HexColor:Ht,MarkDownSafe:function(e,n){return Tt(e,n).replace(/:/g,":")},ObjectIsEmpty:Ut,ObjectIsNotEmpty:function(e){return!Ut(e)},ObjectMergedWith:p,Object_hasOwnProperty:c,Object_isPrototypeOf:d,Object_propertyIsEnumerable:function(e,n){return null==e||"propertyIsEnumerable"in e&&"function"==typeof e.propertyIsEnumerable?e.propertyIsEnumerable(n):Object.prototype.propertyIsEnumerable.call(e,n)},Object_toLocaleString:function(e){return null==e||"toLocaleString"in e&&"function"==typeof e.toLocaleString?e.toLocaleString():Object.prototype.toString.call(e)},Object_toString:function(e){return null==e||"toString"in e&&"function"==typeof e.toString?e.toString():Object.prototype.toString.call(e)},Object_valueOf:function(e){return null==e||"valueOf"in e&&"function"==typeof e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)},RGBAColor:function(e){var n=e.toLowerCase();if(Wt.hasOwnProperty(n))return Wt[n];if(/^#[a-fA-F0-9]{6}$/.test(e))return"rgba("+parseInt(e.slice(1,3),16)+","+parseInt(e.slice(3,5),16)+","+parseInt(e.slice(5,7),16)+", 1)";if(/^#[a-fA-F0-9]{8}$/.test(e))return"rgba("+parseInt(e.slice(1,3),16)+","+parseInt(e.slice(3,5),16)+","+parseInt(e.slice(5,7),16)+","+parseInt(e.slice(7),16)/255+")";var t=/^rgb\(([0-9]+),\s*([0-9]+),\s*([0-9]+)\)$/i.exec(e);return null!=t?e.slice(0,e.length-1)+",1)":null!=(t=/^rgba\(([(0-9]+),\s*([0-9]+),\s*([0-9]+),\s*([0]?[.][0-9]+|[01])\)$/i.exec(e))?e:void f("InvalidArgument: the given Value is not a valid CSS Color specification")},StringIsEmpty:$t,StringIsNotEmpty:function(e){return!$t(e)},ValidatorForClassifier:ne,ValueExists:function(e){return null!=e},ValueInheritsFrom:function(e,n){return d(n,e)},ValueIsAnonymousFunction:N,ValueIsArray:B,ValueIsBoolean:b,ValueIsCardinal:w,ValueIsColor:q,ValueIsDate:U,ValueIsEMailAddress:Z,ValueIsEmptyString:function(e){return("string"==typeof e||e instanceof String)&&I.test(e.valueOf())},ValueIsError:$,ValueIsFiniteNumber:v,ValueIsFunction:E,ValueIsInstanceOf:function(e,n){return e instanceof n},ValueIsInteger:y,ValueIsIntegerInRange:x,ValueIsList:T,ValueIsListSatisfying:D,ValueIsMissing:function(e){return null==e},ValueIsNaN:h,ValueIsNamedFunction:M,ValueIsNativeFunction:C,ValueIsNonEmptyString:P,ValueIsNumber:g,ValueIsNumberInRange:m,ValueIsObject:F,ValueIsOneOf:J,ValueIsOrdinal:_,ValueIsPlainObject:j,ValueIsPromise:W,ValueIsRegExp:H,ValueIsScriptedFunction:R,ValueIsString:S,ValueIsStringMatching:V,ValueIsText:O,ValueIsTextline:L,ValueIsURL:Q,ValueIsVanillaObject:z,ValuesAreEqual:function(e,n,t){return!Dt(e,n,t)},ValuesDiffer:Dt,acceptNil:Y,allowAnonymousFunction:pn,allowArray:Tn,allowBoolean:oe,allowCardinal:je,allowColor:Vt,allowDate:at,allowEMailAddress:Lt,allowError:ct,allowFiniteNumber:fe,allowFunction:un,allowInstanceOf:Xn,allowInteger:Pe,allowIntegerInRange:ke,allowList:Wn,allowListSatisfying:Gn,allowNaN:he,allowNamedFunction:vn,allowNativeFunction:xn,allowNonEmptyString:He,allowNumber:se,allowNumberInRange:_e,allowObject:On,allowOneOf:wt,allowOrdinal:Me,allowPlainObject:Nn,allowPromise:bt,allowRegExp:mt,allowScriptedFunction:In,allowString:De,allowStringMatching:Ze,allowText:Ye,allowTextline:rn,allowURL:Ct,allowValueInheritingFrom:tt,allowVanillaObject:Fn,allowedAnonymousFunction:fn,allowedArray:Dn,allowedBoolean:ae,allowedCardinal:ze,allowedColor:At,allowedDate:lt,allowedEMailAddress:Et,allowedError:dt,allowedFiniteNumber:be,allowedFunction:sn,allowedInstanceOf:Yn,allowedInteger:Ve,allowedIntegerInRange:Le,allowedList:Hn,allowedListSatisfying:Zn,allowedNaN:me,allowedNamedFunction:hn,allowedNativeFunction:_n,allowedNonEmptyString:Je,allowedNumber:ce,allowedNumberInRange:we,allowedObject:kn,allowedOneOf:St,allowedOrdinal:Ce,allowedPlainObject:Mn,allowedPromise:gt,allowedRegExp:yt,allowedScriptedFunction:Pn,allowedString:Ue,allowedStringMatching:Ke,allowedText:en,allowedTextline:on,allowedURL:Rt,allowedValueInheritingFrom:rt,allowedVanillaObject:jn,constrained:function(e,n,t){return void 0===n&&(n=-Infinity),void 0===t&&(t=Infinity),Math.max(n,Math.min(e,t))},escaped:jt,expectAnonymousFunction:bn,expectArray:Un,expectBoolean:le,expectCardinal:Be,expectColor:Ot,expectDate:ut,expectEMailAddress:Nt,expectError:pt,expectFiniteNumber:ge,expectFunction:cn,expectInstanceOf:et,expectInteger:Ae,expectIntegerInRange:Ee,expectList:Jn,expectListSatisfying:Kn,expectNaN:ye,expectNamedFunction:mn,expectNativeFunction:wn,expectNonEmptyString:qe,expectNumber:de,expectNumberInRange:Se,expectObject:Ln,expectOneOf:It,expectOrdinal:Re,expectPlainObject:Cn,expectPromise:vt,expectRegExp:xt,expectScriptedFunction:Vn,expectString:$e,expectStringMatching:Qe,expectText:nn,expectTextline:an,expectURL:Ft,expectValue:re,expectValueInheritingFrom:it,expectVanillaObject:zn,expectedAnonymousFunction:gn,expectedArray:$n,expectedBoolean:ue,expectedCardinal:Te,expectedColor:kt,expectedDate:st,expectedEMailAddress:Mt,expectedError:ft,expectedFiniteNumber:ve,expectedFunction:dn,expectedInstanceOf:nt,expectedInteger:Oe,expectedIntegerInRange:Ne,expectedList:qn,expectedListSatisfying:Qn,expectedNaN:xe,expectedNamedFunction:yn,expectedNativeFunction:Sn,expectedNonEmptyString:Ge,expectedNumber:pe,expectedNumberInRange:Ie,expectedObject:En,expectedOneOf:Pt,expectedOrdinal:Fe,expectedPlainObject:Rn,expectedPromise:ht,expectedRegExp:_t,expectedScriptedFunction:An,expectedString:We,expectedStringMatching:Xe,expectedText:tn,expectedTextline:ln,expectedURL:Ft,expectedValue:ie,expectedValueInheritingFrom:ot,expectedVanillaObject:Bn,global:s,quotable:zt,quoted:Bt,rejectNil:X,shortHexColor:function(e){return Ht(e).slice(0,7)},throwError:f,unescaped:function(e){return e.replace(/\\[0bfnrtv'"\\\/]|\\x[0-9a-zA-Z]{2}|\\u[0-9a-zA-Z]{4}/g,function(e){switch(e){case"\\0":return"\0";case"\\b":return"\b";case"\\f":return"\f";case"\\n":return"\n";case"\\r":return"\r";case"\\t":return"\t";case"\\v":return"\v";case"\\'":return"'";case'\\"':return'"';case"\\\\":return"\\";default:var n=parseInt(e.slice(2),16);return String.fromCharCode(n)}})},validatedArgument:ee},er={},nr=[],tr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,rr=Array.isArray;function ir(e,n){for(var t in n)e[t]=n[t];return e}function or(e){var n=e.parentNode;n&&n.removeChild(e)}function ar(e,n,t){var r,i,o,a={};for(o in n)"key"==o?r=n[o]:"ref"==o?i=n[o]:a[o]=n[o];if(arguments.length>2&&(a.children=arguments.length>3?Jt.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return lr(e,a,r,i,null)}function lr(e,n,t,r,i){var o={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++Gt:i,__i:-1,__u:0};return null==i&&null!=qt.vnode&&qt.vnode(o),o}function ur(e){return e.children}function sr(e,n){this.props=e,this.context=n}function cr(e,n){if(null==n)return e.__?cr(e.__,e.__i+1):null;for(var t;nn&&Zt.sort(Xt));fr.__r=0}function br(e,n,t,r,i,o,a,l,u,s,c){var d,p,f,b,g,v=r&&r.__k||nr,h=n.length;for(t.__d=u,gr(t,n,v),u=t.__d,d=0;d0?lr(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,l=hr(i,t,a=r+d,c),i.__i=l,o=null,-1!==l&&(c--,(o=t[l])&&(o.__u|=131072)),null==o||null===o.__v?(-1==l&&d--,"function"!=typeof i.type&&(i.__u|=65536)):l!==a&&(l===a+1?d++:l>a?c>u-a?d+=l-a:d--:d=l(null!=u&&0==(131072&u.__u)?1:0))for(;a>=0||l=0){if((u=n[a])&&0==(131072&u.__u)&&i==u.key&&o===u.type)return a;a--}if(l=5&&((i||!e&&5===r)&&(a.push(r,0,i,t),r=6),e&&(a.push(r,e,0,t),r=6)),i=""},u=0;u"===n?(r=1,i=""):i=n+i[0]:o?n===o?o="":i+=n:'"'===n||"'"===n?o=n:">"===n?(l(),r=1):r&&("="===n?(r=5,t=i,i=""):"/"===n&&(r<5||">"===e[u][s+1])?(l(),3===r&&(a=a[0]),r=a,(a=a[0]).push(2,0,r),r=0):" "===n||"\t"===n||"\n"===n||"\r"===n?(l(),r=2):i+=n),3===r&&"!--"===i&&(r=4,a=a[0])}return l(),a}(e)),n),arguments,[])).length>1?n:n[0]}.bind(ar);const Nr=["String","Number","Object","Array","Boolean","Date"];function Mr(e){return e&&"object"==typeof e}function Cr(e,n,t){Object.defineProperty(e,n,{value:t,enumerable:!1,configurable:!0})}function Rr(e,n,t){Cr(e,"__key",n),Cr(e,"__parent",t)}const Fr={computedStack:[],trackerSymbol:Symbol("tracker")};let jr=null;const zr=Symbol();function Br(){if(jr){for(const e of jr)e(),e[zr]=!1;jr=null}}function Tr(e,n){e[zr]||(null===jr&&(jr=[],!0===n?queueMicrotask(Br):setTimeout(Br,n)),jr.push(e))}const{computedStack:Dr,trackerSymbol:Ur}=Fr,$r=Symbol("__observed");function Wr(e,n,t){if(e===n)return!1;let r=typeof e;if(r!==typeof n)return!0;switch(r){case"undefined":case"boolean":case"string":case"function":default:return!0;case"number":return isNaN(e)!==isNaN(n)||Math.abs(e-n)>Number.EPSILON;case"object":return null==e||null==n||("by-value"===t&&(e instanceof Boolean||e instanceof Number||e instanceof String)?e.valueOf()!==n.valueOf():Array.isArray(e)?function(e,n,t){if(!Array.isArray(n))return!0;if(e.length!==n.length)return!0;for(let r=0,i=e.length;re!==$r&&(null==r||r instanceof Array&&r.includes(e))&&(null==i||i instanceof Array&&!i.includes(e));a&&Object.entries(n).forEach(function([r,i]){Mr(i)&&s(r)&&(n[r]=e(i,t),l&&Rr(n[r],r,n))});const c=new Map,d=new Proxy(n,{get(e,t){if(t===$r)return!0;if(s(t)&&Dr.length){const e=Dr[0],r=e[Ur];if(r){let e=r.get(n);e||(e=new Set,r.set(n,e)),e.add(t)}let i=c.get(t);i||(i=new Set,c.set(t,i)),i.add(e)}return n[t]},set(r,i,u){if("__handler"===i)Cr(n,"__handler",u);else if(s(i)){if(Array.isArray(n)&&"length"===i||Wr(n[i],u)){const r=a&&Mr(u),s=n[i];n[i]=r?e(u,t):u,r&&l&&Rr(n[i],i,n);const p=[i];let f=n;for(;f&&(!f.__handler||!1!==f.__handler(p,u,s,d));)f.__key&&f.__parent?(p.unshift(f.__key),f=f.__parent):f=null;const b=c.get(i);if(b)for(const e of b){const t=e[Ur],r=t&&t.get(n),a=r&&r.has(i);e.__disposed||t&&!a?b.delete(e):e!==Dr[0]&&(void 0!==o&&!1!==o?(Tr(e,o),e[zr]=!0):e())}}}else n[i]=u;return!0},defineProperty(r,i,o){if("__handler"===i)throw new Error("Don't track bubble handlers");return s(i)?(!Array.isArray(n)||"length"===i)&&("value"in o&&((o={...o}).value=e(value,t)),Reflect.defineProperty(n,i,o)):Reflect.defineProperty(n,i,o)},deleteProperty:(e,t)=>(t in n&&(n[t]=void 0),Reflect.deleteProperty(e,t))});var p;return u&&(p=n,Object.getOwnPropertyNames(p).concat(Object.getPrototypeOf(p)&&Nr.indexOf(Object.getPrototypeOf(p).constructor.name)<0?Object.getOwnPropertyNames(Object.getPrototypeOf(p)):[]).filter(e=>"constructor"!==e&&"function"==typeof p[e])).forEach(e=>n[e]=n[e].bind(d)),d},no=function(e,{autoRun:n=!0,callback:t,bind:r,disableTracking:i=!1}={}){function o(n,o=[]){const u=t||l;i||(u[Jr]=new WeakMap),Hr.unshift(u),o=o.length>0?[...o,a]:[a];const s=n?n():r?e.apply(r,o):e(...o);return Hr.shift(),s}const a={computeAsync:o},l=(...e)=>o(null,e);return n&&l(),l},to=function(e){return e[Fr.trackerSymbol]=null,e.__disposed=!0},ro=document.createElement("style");ro.innerHTML=":not(:defined) { visibility:hidden }",document.head.appendChild(ro),function(e){e.assign=p,e.assign(Yi,{render:Or,html:Er,Component:sr},{observe:eo,computed:no,dispose:to});var i=!1;function o(e){f("ReadOnlyProperty: property "+Bt(e)+" must not be set")}function s(e){return e instanceof Element}function c(e){return e instanceof Je}e.throwReadOnlyError=o,e.ValueIsDOMElement=s,e.allowDOMElement=ne(s,Y,"DOM element"),e.allowedDOMElement=e.allowDOMElement,e.expectDOMElement=ne(s,X,"DOM element"),e.expectedDOMElement=e.expectDOMElement,e.ValueIsVisual=c,e.allowVisual=ne(c,Y,"RSC visual"),e.allowedVisual=e.allowVisual,e.expectVisual=ne(c,X,"RSC visual"),e.expectedVisual=e.expectVisual;var d=/^[a-z$_][a-z$_0-9]*(-[a-z$_0-9]+)*$/i;function v(e){return V(e,d)}function h(e){return F(e)&&L(e.Title)&&O(e.Message)}e.ValueIsName=v,e.allowName=ne(v,Y,"RSC name"),e.allowedName=e.allowName,e.expectName=ne(v,X,"RSC name"),e.expectedName=e.expectName,e.ValueIsErrorInfo=h,e.allowErrorInfo=ne(h,Y,"RSC error information record"),e.allowedErrorInfo=e.allowErrorInfo,e.expectErrorInfo=ne(h,X,"RSC error information record"),e.expectedErrorInfo=e.expectErrorInfo,e.newUUID=function(){var e,n="";return n+=(e=Math.round(4294967295*Math.random()).toString(16))+"00000000".slice(e.length)+"-",n+=(e=Math.round(65535*Math.random()).toString(16))+"0000".slice(e.length)+"-4",n+=(e=Math.round(4095*Math.random()).toString(16))+"000".slice(e.length)+"-",n+=(e=Math.round(16383*Math.random()+32768).toString(16))+"-",(n+=(e=Math.round(0xffffffffffff*Math.random()).toString(16))+"000000000000".slice(e.length)).toLowerCase()};var _=new WeakMap;function w(e){return!0===_.get(e)}function I(n){for(e.expectDOMElement("element",n),n=n.parentElement;null!=n;){if(c(n))return n;n=n.parentElement}}function P(n){e.expectDOMElement("element",n);var t=void 0;for(n=n.parentElement;null!=n;)c(n)&&(t=n),n=n.parentElement;return t}function A(n,t){e.expectDOMElement("element",n),e.expectName("behaviour name",t);for(var r=T(t);null!=n;){if(c(n)&&T(U(n)||"")===r)return n;n=I(n)}}function k(n,t){for(e.expectDOMElement("element",n),an("CSS selector",t);null!=n;){if(c(n)&&n.matches(t))return n;n=I(n)}}function N(e){return Array.from(e.children)}function M(n){return e.expectDOMElement("element",n),Array.from(n.children).filter(function(e){return c(e)})}e.outerVisualOf=I,e.VisualContaining=I,e.outermostVisualOf=P,e.closestVisualWithBehaviour=A,e.closestVisualMatching=k,e.innerVisualsOf=M;var C=Object.create(null);function R(e){return C[T(e)]}function j(n,t,i,o,a){var l;void 0===i&&(i=[]),void 0===o&&(o=""),void 0===a&&(a=""),e.expectName("behaviour name",n),null==t||E(t)||(nn("behaviour script",t),""===t.trim()&&(t=void 0)),Gn("list of observed element attributes",i,v);var u=T(n),s=Object.create(null);if(null!=i&&(i.forEach(function(e){return s[Ce(e)]=e}),i=i.map(function(e){return Ce(e)})),null==t||E(t))C[u]={Name:n,AttributeSet:s,Executable:t};else if(u in C){var c=C[u];null==c.Source&&f("ForbiddenOperation: cannot overwrite intrinsic behaviour "+Bt(n)),c.Source.trim()!==t.trim()&&f("ForbiddenOperation: cannot overwrite existing behaviour "+Bt(n))}else{var d,p=t;try{d=G(p)}catch(e){return console.error("CompilationError: compilation of behaviour "+Bt(n)+" failed. Reason: "+e),void(C[u]={Name:n,AttributeSet:s,Source:p,Error:{Title:"Compilation Failure",Message:"Compilation of behaviour "+Bt(n)+" failed.\n\nReason:"+e}})}C[u]={Name:n,AttributeSet:s,Source:p,Executable:d}}!function(e,n){if(""!==n){var t=T(e);$[t]=n}}(n,o),function(e,n){if(""!==n){var t=T(e);W[t]=n}}(n,a);var b=(l=/*#__PURE__*/function(e){function n(){return e.apply(this,arguments)||this}return r(n,e),n}(Je),l.observedAttributes=i,l);customElements.define("rsc-"+u,b)}function z(n){var t=e.expectedName("behaviour name",n.getAttribute("for-behaviour"));"visual"===T(t)&&f('ReservedName: behaviour name "visual" is reserved for internal use');var r=n.innerHTML,i=(n.getAttribute("observed-attributes")||"").split(/\s*(?:,|$)\s*/).filter(function(e){return""!==(e||"").trim()});D(i,v)||f('Invalidargument: attribute "observed-attributes" does not contain a list of valid RSC attribute names'),console.log("registering behaviour",t),j(t,r,i,n.getAttribute("permitted-contents")||"",n.getAttribute("forbidden-contents")||"")}function T(e){return e.toLowerCase()}function U(e){var n,t=e.tagName.slice(4).toLowerCase();return"visual"===t?v(t=e.getAttribute("behaviour"))?t:"visual":(null==(n=R(t))?void 0:n.Name)||t}e.registerBehaviour=j,C.visual={Name:"Visual",AttributeSet:{value:"Value"}},C.applet={Name:"Applet",AttributeSet:{value:"Value"}};var $=Object.create(null),W=Object.create(null),H=new WeakMap;function G(e){return new Function("my,me, RSC,JIL, onAttributeChange, onAttachment,onDetachment, toRender, html, on,once,off,trigger, reactively, ShadowRoot",e||"")}function Z(e,n){var t=e.onAttributeChange.bind(e),r=e.onAttachment.bind(e),i=e.onDetachment.bind(e),o=e.toRender.bind(e),a=Be.get(e);n.apply(e,[e,e,Yi,Yt,t,r,i,o,Er,function(n,t,r,i){te(e,n,t,r,i)},function(n,t,r,i){te(e,n,t,r,i,"once")},function(n,t,r){var i=Array.prototype.slice.call(arguments,1);if(""!==(n=(n||"").trim().replace(/\s+/g," "))){var o=S(i[0])?i.shift().trim():null===i[0]?i.shift()||"":void 0;null==(r=i.shift())?ie(e,n,o):ie(e,n,o,r)}else ie(e)},function(n,t,r){switch(void 0===t&&(t=[]),void 0===r&&(r=!0),t=B(t)?t.slice():[t],!0){case S(n):n=new CustomEvent(n.toLowerCase(),{bubbles:r,cancelable:!0,detail:{Arguments:t}});break;case n instanceof Event:n=new CustomEvent(n.type,Object.assign({},n,{bubbles:r,cancelable:!0,detail:{Arguments:t}}));break;default:f("InvalidArgument: Event instance or literal event type expected")}e.dispatchEvent(n);var i=n.detail;if(null==(null==i?void 0:i.Error))return null==i?void 0:i.Result;throw null==i?void 0:i.Error},function(n){cn("reactive function",n),function(e,n){var t=ce.get(e);null==t&&ce.set(e,t=[]),t.push(n)}(e,no(n))},a])}var K=/^[a-z$_][a-z$_0-9]*([-.:][a-z$_0-9]+)*@.*$/i;function ee(e){return V(e,K)}function te(e,n,t,r,i,o){var a=Array.prototype.slice.call(arguments,1);if(""!==(n=a.shift().trim().replace(/\s+/g," "))){var l=S(a[0])?a.shift().trim():null==a[0]&&a.shift()||"",u="function"==typeof a[1]?a.shift():void 0;i=a.shift(),function(e,n,t,r,i,o){function a(n){var a;switch(t){case"":break;case"@this":if(n.target!==n.currentTarget)return;break;default:if(!n.target.matches(t))return}null!=r&&(n.data=r),o&&ie(e,n.type,t,i);var l=[n].concat((null==(a=n.detail)?void 0:a.Arguments)||[]);try{var u=i.apply(e,l);void 0!==u&&((n.detail||{}).Result=u,n.stopImmediatePropagation(),n.preventDefault())}catch(e){(n.detail||{}).Error=e,n.stopImmediatePropagation(),n.preventDefault()}}var l;if(a.isFor=i,ee(n)){var u=n.indexOf("@");l=[n.slice(0,u)],"this"===(t=n.slice(u+1))&&(t="@this")}else l=n.split(" ");var s=re.get(e);null==s&&re.set(e,s=Object.create(null)),l.forEach(function(n){n=n.toLowerCase();var r=s[n];null==r&&(r=s[n]=Object.create(null));var i=r[t];null==i&&(i=r[t]=[]),i.push(a),e.addEventListener(n,a)})}(e,n.toLowerCase(),l,u,i,o)}}var re=new WeakMap;function ie(e,n,t,r){var i;if(ee(n)){var o=n.indexOf("@");i=[n.slice(0,o)],t=n.slice(o+1)}else i=null==n?[]:n.split(" ");var a=re.get(e);if(null!=a)if(0===i.length)for(var l in a)ae(e,l,t,r);else i.forEach(function(n){ae(e,n,t,r)})}function ae(e,n,t,r){var i=re.get(e);if(null!=i){var o=i[n];if(null!=o){if(null==t)for(var a in o)ue(e,o,n,a,r);else ue(e,o,n,t,r);Ut(o)&&delete i[n]}}}function ue(e,n,t,r,i){var o=n[r];null!=o&&(null==i?(o.forEach(function(n){e.removeEventListener(t,n)}),o.length=0):o.every(function(n,r){return n.isFor!==i||(e.removeEventListener(t,n),o.splice(r,1),!1)}),0===o.length&&delete n[r])}var ce=new WeakMap,pe=new WeakMap,fe=new WeakMap,be=eo({},{deep:!1,batch:!0}),ge={};e.observed={},e.unobserved={},e.assign(Yi,{get observed(){return be},set observed(e){o("observed")},get unobserved(){return ge},set unobserved(e){o("unobserved")}});var ve=new WeakMap,he=new WeakMap,me=new WeakMap;function ye(e){me.set(e,no(e.render.bind(e)))}function xe(e){return S(e)&&(e.startsWith("$")&&v(e.slice(1))||e.startsWith("$$")&&v(e.slice(2)))}function we(e,n,t){var r=Te.get(e);if(null!=r)try{if(1==r.call(e,n,t))return}catch(n){return console.error("attribute change handler failure",n),void Fe(e,{Title:"Attribute Change Handler Failure",Message:"Running the configured attribute change handler failed\n\nReason: "+n})}var i=U(e);if(null!=i){var o=R(i);if(null!=o){var a=o.AttributeSet;if(n in a){var l=a[n];try{e.observed[l]=t}catch(t){console.error("attribute change failure",t),Fe(e,{Title:"Attribute Change Failure",Message:'could not update observed property "'+Bt(l)+'" upon a change of attribute "'+Bt(n)+'"'})}}}}}function Ie(e){Array.from(e.attributes).forEach(function(n){var r=n.name;if(xe(r)){var i=U(e);if(null==i)return;var o=R(i);if(null==o)return;var a=r.replace(/^[$]{1,2}/,""),l=o.AttributeSet;if(a in l){var u=l[a],s=function(e,n){var t,r=n.indexOf(":observed");r<0&&f("InvalidAccessPath:invalid access path "+Bt(n));var i=n.slice(0,r);if("RSC"===i)t=Yi;else{if(v(i)){var o=i.toLowerCase();i="rsc-"+o+',[behaviour="'+o+'"]'}null==(t=k(e,i))&&f("NoSuchVisual:could not find a close visual matching CSS selector"+Bt(i))}for(var a,l=n.slice(r+9).trim(),u=[];""!==l;)switch(!0){case null!=(a=Ve.exec(l)):case null!=(a=Oe.exec(l)):u.push(a[1].trim()),l=l.slice(a[0].length).trim();break;case null!=(a=Le.exec(l)):case null!=(a=Ne.exec(l)):u.push(a[1]),l=l.slice(a[0].length).trim();break;default:f("InvalidAccessPath:invalid access path "+Bt(n))}return{Base:t,PathList:u}}(e,n.value),c=s.Base,d=s.PathList,p=pe.get(e);if(null==p&&pe.set(e,p=[]),!function(e,n){var t;return n=n.replace(/^[$]{1,2}/,""),1==(null==(t=fe.get(e))?void 0:t[n])}(e,r)){var b=no(function(){e.observed[u]=function(e,n){for(var t=e.observed[n[0]],r=1,i=n.length;r1){var l=e.observed;l[n[0]]=Array.isArray(n[0])?[].concat(l[n[0]]):t({},l[n[0]])}}(c,d,e.observed[u])});p.push(g)}}}})}var Ve=/^\s*[.]([^.\[]+)/,Oe=/^\s*\[([^'"\]]+)\]/,Le=/^\s*\[\s*'(([^'\\]|\\(["'\\\/bfnrt]|x[0-9a-f]{2}|u[0-9a-f]{4}))*)'\s*\]/i,Ne=/^\s*\[\s*"(([^"\\]|\\(["'\\\/bfnrt]|x[0-9a-f]{2}|u[0-9a-f]{4}))*)"\s*\]/i;function Me(e){var n=pe.get(e);null!=n&&n.forEach(function(e){to(e)})}function Ce(e){var n=e.replace(/^[$]{1,2}/,"");return n[0].toLowerCase()+n.slice(1).replace(/[A-Z]+/g,function(e){return 1===e.length?"-"+e.toLowerCase():e.slice(0,-1).toLowerCase()+"-"+e.slice(-1).toLowerCase()})}var Re=new WeakMap;function Fe(n,t){e.expectErrorInfo("RSC error info record",t),null==Re.get(n)&&(Re.set(n,t),n.render())}function je(e){return Re.get(e)}function ze(e){var n=e.visual;return Er(qr||(qr=u(["\n \n
\n "])),function(e){!function(e){var n=je(e);window.alert(n.Title+"\n\n"+n.Message)}(n)})}var Be=new WeakMap,Te=new WeakMap,Ue=new WeakMap,We=new WeakMap,He=new WeakMap,Je=/*#__PURE__*/function(t){function a(){var e,n=(e=t.call(this)||this).attachShadow({mode:"closed"});return Be.set(l(e),n),e}r(a,t);var s,c,d=a.prototype;return d.connectedCallback=function(){i&&on(this)},d.disconnectedCallback=function(){ye(this),Me(this);var e=We.get(this);if(null!=e)try{e.call(this)}catch(e){console.error("detachment handler failure",e),Fe(this,{Title:"Detachment Handler Failure",Message:"Running the configured detachment handler failed\n\nReason: "+e})}},d.attributeChangedCallback=function(e,n,t){w(this)&&!xe(e)&&we(this,e,t)},d.onAttributeChange=function(e){cn("visual attribute change handler",e),Te.set(this,e)},d.onAttachment=function(e){cn("visual attachment handler",e),Ue.set(this,e)},d.onDetachment=function(e){cn("visual detachment handler",e),We.set(this,e)},d.toRender=function(e){cn("visual renderer",e),He.set(this,e)},d.render=function(){if(w(this)){var e;if(!this.hasError){var n=He.get(this);if(null==n)e=Er(Gr||(Gr=u(["\n \n ","\n \n "])),this.observed.Value);else try{e=n.call(this)}catch(e){console.error("rendering failure",e),Fe(this,{Title:"Rendering Failure",Message:"Running the configured renderer failed, reason: "+e})}}var t=Be.get(this);Or(this.hasError?Er(Zr||(Zr=u(["<"," visual=","/>"])),ze,this):Er(Kr||(Kr=u(["",""])),e),t)}},d.closestVisualWithBehaviour=function(e){return A(this,e)},d.closestOuterVisualWithBehaviour=function(e){var n=I(this);return null==n?void 0:A(n,e)},d.closestVisualMatching=function(e){return k(this,e)},d.closestOuterVisualMatching=function(e){var n=I(this);return null==n?void 0:k(n,e)},d.innerVisualsWithBehaviour=function(n){return e.expectName("behaviour name",n),M(this).filter(function(e){return U(e)===n})},d.innerVisualsMatching=function(e){return an("CSS selector",e),M(this).filter(function(n){return n.matches(e)})},d.innerElementsMatching=function(e){return an("CSS selector",e),N(this).filter(function(n){return n.matches(e)})},s=a,(c=[{key:"observed",get:function(){return null==(e=ve.get(this))&&ve.set(this,e=eo({},{deep:!1})),e;var e},set:function(e){o("observed")}},{key:"unobserved",get:function(){return null==(e=he.get(this))&&he.set(this,e={}),e;var e},set:function(e){o("unobserved")}},{key:"hasError",get:function(){return null!=this.Error},set:function(e){o("hasError")}},{key:"Error",get:function(){return je(this)},set:function(e){Fe(this,e)}},{key:"Applet",get:function(){return A(this,"Applet")},set:function(e){o("Applet")}},{key:"Card",get:function(){return A(this,"Card")},set:function(e){o("Card")}},{key:"outerVisual",get:function(){return I(this)},set:function(e){o("outerVisual")}},{key:"outermostVisual",get:function(){return P(this)},set:function(e){o("outermostVisual")}},{key:"innerVisuals",get:function(){return M(this)},set:function(e){o("innerVisuals")}},{key:"innerElements",get:function(){return N(this)},set:function(e){o("innerElements")}}])&&function(e,t){for(var r=0;r\n :host {\n display:inline-block; position:relative;\n background:white; color:black;\n font-family:'Source Sans Pro','Helvetica Neue',Helvetica,Arial,sans-serif;\n font-size:14px; font-weight:normal; line-height:1.4;\n }\n \n \n "])))}),n}return r(n,e),n}(Je);function Ge(e,n,t){var r=t.indexOf("SpellChecking")>=0,i=t.indexOf("Suggestions")>=0;j(e,function(e,t,o,a,l,s,c,d,p,f,b,g,v,h,m){o.assign(e.unobserved,{Value:"",Size:void 0,minLength:0,maxLength:void 0,Pattern:void 0,Placeholder:void 0,readonly:!1,enabled:!0,innerStyle:"",UUID:void 0,renderedValue:""},r?{SpellChecking:"default"}:{},i?{Suggestions:[]}:{}),o.assign(e.observed,o.TextlineProperty(e,"Value","","input value"),o.IntegerPropertyInRange(e,"Size",1,Infinity,null,"number of visible characters"),o.IntegerPropertyInRange(e,"minLength",0,Infinity,null,"minimal input length"),o.IntegerPropertyInRange(e,"maxLength",0,Infinity,null,"maximal input length"),o.TextlineProperty(e,"Pattern",null,"input pattern"),o.TextlineProperty(e,"Placeholder",null,"input placeholder"),o.BooleanProperty(e,"readonly",!1,"read-only setting"),o.BooleanProperty(e,"enabled",!0,"enable setting"),o.TextProperty(e,"innerStyle","","inner CSS style setting")),r&&o.assign(e.observed,o.OneOfProperty(e,"SpellChecking",["default","enabled","disabled"],"default","spell-check setting")),i&&o.assign(e.observed,o.StringListProperty(e,"Suggestions",[],"list of suggestions")),l(function(n,t){return o.handleEventAttribute(n,t,e,"Value-Changed")||o.handleNumericAttribute(n,t,e,"Size")||o.handleNumericAttribute(n,t,e,"minLength")||o.handleNumericAttribute(n,t,e,"maxLength")||o.handleBooleanAttribute(n,t,e,"readonly")||!!i&&o.handleLiteralLinesAttribute(n,t,e,"Suggestions")||o.handleBooleanAttribute(n,t,e,"enabled")}),d(function(){var a,l,s=e.observed,c=s.Value,d=s.Size,f=s.minLength,b=s.maxLength,g=s.Pattern,h=s.Placeholder,m=s.readonly,y=s.SpellChecking,x=s.Suggestions,_=s.innerStyle;return document.activeElement===t?c=e.unobserved.renderedValue:e.unobserved.renderedValue=c,y="default"===y?void 0:"enabled"===y,i&&x.length>0&&(null==(l=e.unobserved.UUID)&&(l=o.newUUID()),a=p(Si||(Si=u(["\n ","\n "])),l,x.map(function(e){return p(Ii||(Ii=u([""])),e)}))),p(Pi||(Pi=u(["\n \n \n ","\n "])),n,l,!e.observed.enabled,c,d,f,b,g,h,r?"spellcheck="+y:"",m,_,function(n){e.unobserved.renderedValue=n.target.value,e.observed.Value=e.unobserved.renderedValue,n.stopImmediatePropagation(),v("value-changed",[e.unobserved.renderedValue])},e.render.bind(t),i?a:"")})},t)}function Ke(e,n,t,r){j(e,function(e,i,o,a,l,s,c,d,p,f,b,g,v,h,m){function y(e){return a.ValueIsStringMatching(e,r)}o.assign(e.unobserved,{Value:"",Minimum:void 0,Maximum:void 0,Stepping:60,Placeholder:void 0,readonly:!1,Suggestions:[],enabled:!0,innerStyle:"",UUID:void 0,renderedValue:""}),o.assign(e.observed,{get Value(){return e.unobserved.Value},set Value(n){a.allowStringMatching("input value",n,r),e.unobserved.Value=n},get Minimum(){return e.unobserved.Minimum},set Minimum(n){a.allowStringMatching("minimal input value",n,r),e.unobserved.Minimum=n},get Maximum(){return e.unobserved.Maximum},set Maximum(n){a.allowStringMatching("maximal input value",n,r),e.unobserved.Maximum=n}},{get Stepping(){return e.unobserved.Stepping},set Stepping(n){"any"!==n&&a.allowNumber("input step value",n),e.unobserved.Stepping=n||60}},o.TextlineProperty(e,"Placeholder",null,"input placeholder"),o.BooleanProperty(e,"readonly",!1,"read-only setting"),{get Suggestions(){return e.unobserved.Suggestions.slice()},set Suggestions(n){a.allowListSatisfying("list of suggestions",n,y),e.unobserved.Suggestions=null==n?[]:n.slice()}},o.BooleanProperty(e,"enabled",!0,"enable setting"),o.TextProperty(e,"innerStyle","","inner CSS style setting")),l(function(n,t){return o.handleEventAttribute(n,t,e,"Value-Changed")||function(){if("stepping"===n){if("any"===t)e.observed.Value=t;else{var r=parseInt(t,10);isNaN(r)&&o.throwError('InvalidAttribute: invalid "stepping" attribute given'),e.observed.Value=r}return!0}return!1}()||o.handleBooleanAttribute(n,t,e,"readonly")||o.handleLiteralListAttribute(n,t,e,"Suggestions")||o.handleBooleanAttribute(n,t,e,"enabled")}),d(function(){var r,a,l=e.observed,s=l.Value,c=l.Minimum,d=l.Maximum,f=l.Stepping,b=l.Placeholder,g=l.readonly,h=l.Suggestions,m=l.innerStyle;return document.activeElement===i?s=e.unobserved.renderedValue:e.unobserved.renderedValue=s,h.length>0&&(null==(a=e.unobserved.UUID)&&(a=o.newUUID()),r=p(Ri||(Ri=u(["\n ","\n "])),a,h.map(function(e){return p(Fi||(Fi=u([""])),e)}))),p(ji||(ji=u(["\n \n\n \n ","\n "])),n,a,!e.observed.enabled,s,c,d,f,t,b,g,m,function(n){e.unobserved.renderedValue=n.target.value,e.observed.Value=e.unobserved.renderedValue,n.stopImmediatePropagation(),v("value-changed",[e.unobserved.renderedValue])},e.render.bind(i),r)})},["Value","Minimum","Maximum","Stepping","Placeholder","readonly","Suggestions","enabled","innerStyle"])}function Xe(e,n,t){var r=!1;return[].slice.call(arguments,3).forEach(function(i){var o=i.toLowerCase();if(e==="on"+o||e==="on-"+o)if(r=!0,null==n)ie(t,i);else{var a=void 0;try{a=new Function("Event",n)}catch(n){f('CompilationFailure: could not compile handler for event "'+i+'" from Attribute "'+e+'", reason: '+n)}te(t,i,a)}}),r}function en(e){var n,t=e.innerHTML;try{n=new Function("RSC,JIL, observe,computed,dispose",t)}catch(e){return void console.error("RSC script compilation failure",e)}try{n(Yi,Yt,eo,no,to)}catch(e){return void console.error("RSC script execution failure",e)}}function tn(e){Array.from(e.children).forEach(function(e){c(e)&&on(e),tn(e)})}function on(e){!function(e){var n=I(e);if(null!=n){var t=U(n);if(null!=t){var r=T(t),i=$[r];null!=i&&(e.matches(i)||f("InacceptableInnerVisual: the given visual is not allowed to become a part of its container"));var o=W[r];null!=o&&e.matches(o)&&f("InacceptableInnerVisual: the given visual is not allowed to become a part of its container")}}}(e),w(e)?(Me(e),Ie(e)):(function(e){N(e).forEach(function(n){n.matches('script[type="rsc-script"][for]')&&function(e,n){!function(e,n,t){var r,i=H.get(e);null==i&&H.set(e,i=Object.create(null)),n in i&&f("ForbiddenOperation: a script for elements matching selector "+Bt(n)+" exists already");try{r=G(t)}catch(e){f("CompilationError: compilation of delegated script for elements matching selector "+Bt(n)+" failed. Reason: "+e)}i[n]={Selector:n,Source:t,Executable:r}}(e,ln("element selector",n.getAttribute("for")),n.innerHTML)}(e,n)})}(e),function(e){var n=U(e);if(null!=n){var t=T(n),r=$[t],i=W[t];null==r&&null==i||M(e).forEach(function(n){(null!=r&&!n.matches(r)||null!=i&&n.matches(i))&&(console.log("removing inner visual",n,"from",e),n.remove())})}}(e),function(e){var n=U(e);if(null!=n){var t=R(n);if(null!=t)if(null==t.Error){var r=t.Executable;if(null!=r)try{Z(e,r)}catch(t){return console.error("behaviour script execution failure",t),void Fe(e,{Title:"Execution Failure",Message:"Script of behaviour "+Bt(n)+" could not be executed.\n\nReason:\n"+t})}}else Fe(e,t.Error);else Fe(e,{Title:"Missing Behaviour",Message:"Behaviour "+Bt(n)+" could not be found"})}}(e),function(e){var n=function(e){var n=e.getAttribute("script")||"";return""===n.trim()?void 0:n}(e)||function(e){for(var n=N(e),t=0,r=n.length;t\n rsc-title { font-size:18px; font-weight:bold; margin-bottom:10px; display:block }\n rsc-label { font-size:14px; font-weight:bold }\n rsc-text { font-size:14px; font-weight:normal }\n rsc-hint { font-size:11px; font-weight:normal }\n\n "),j("Title",void 0,["Value"]),j("Label",void 0,["Value"]),j("Text",void 0,["Value"]),j("Hint",void 0,["Value"]),j("centered",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){l(function(){return s(Xr||(Xr=u(['\n \n\n
\n \n
\n '])))})}),j("horizontal",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){e.unobserved.Alignment="start",t.assign(e.observed,t.OneOfProperty(e,"Alignment",["left","center","right","start","end"])),i(function(n,r){return t.handleLiteralAttribute(n,r,e,"align","Alignment")}),l(function(){var n=e.observed.Alignment;return s(Yr||(Yr=u(['\n \n\n
\n \n
\n '])),n)})},["align"]),j("vertical",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){e.unobserved.Alignment="start",t.assign(e.observed,t.OneOfProperty(e,"Alignment",["top","center","bottom","start","end"])),i(function(n,r){return t.handleLiteralAttribute(n,r,e,"align","Alignment")}),l(function(){var n=e.observed.Alignment;switch(n){case"top":n="start";break;case"bottom":n="end"}return s(ei||(ei=u(['\n \n\n
\n \n
\n '])),n)})},["align"]),j("tabular",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){t.assign(e.unobserved,{Columns:2,ColumnStyles:[],ColumnGap:0,RowGap:0,verticalAlignment:"top"}),t.assign(e.observed,t.IntegerPropertyInRange(e,"Columns",1,Infinity,2),t.BooleanProperty(e,"evenlySpread",!1),t.StringListProperty(e,"ColumnStyles",[]),t.IntegerPropertyInRange(e,"ColumnGap",0,Infinity,0),t.IntegerPropertyInRange(e,"RowGap",0,Infinity,0),t.OneOfProperty(e,"verticalAlignment",["top","middle","bottom","baseline"],"top")),i(function(n,r){return t.handleNumericAttribute(n,r,e,"Columns")||t.handleBooleanAttribute(n,r,e,"envenly-spread","evenlySpread")||t.handleLiteralListAttribute(n,r,e,"column-styles","ColumnStyles")||t.handleNumericAttribute(n,r,e,"column-gap","ColumnGap")||t.handleNumericAttribute(n,r,e,"row-gap","RowGap")||t.handleLiteralAttribute(n,r,e,"valign","verticalAlignment")}),l(function(){var n,t=e.observed,r=t.Columns,i=t.evenlySpread,o=t.ColumnStyles,a=t.ColumnGap,l=t.RowGap,c=t.verticalAlignment,d=Array.from(e.children),p=[],f=0;if(d.length>0)for(p.push([]),n=0;d.length>0;){var b=d.shift();b.setAttribute("slot",""+(f+=1));var g=o[n]||o[o.length-1];if("RSC-COLSPAN"===b.tagName){var v=parseInt(b.getAttribute("columns")||"",10);v=isNaN(v)?1:Math.max(1,v);var h=i?"width:"+Math.round(100*v/r)+"%;":"";p[p.length-1].push(s(ni||(ni=u([''])),v,h,g,f)),n+=v}else{var m=i?"width:"+Math.round(100/r)+"%;":"";p[p.length-1].push(s(ti||(ti=u([''])),m,g,f)),n+=1}n>=r&&d.length>0&&(p.push([]),n=0)}return s(ri||(ri=u(["\n \n\n \n ","\n
\n "])),c,Math.round(l/2),Math.round(a/2),p.map(function(e){return s(ii||(ii=u(["",""])),e)}))})},["Columns","ColumnStyles","ColumnGap","RowGap","valign"]),j("colspan",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){l(function(){return s(oi||(oi=u(["\n \n \n "])))})}),j("gap",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){e.unobserved.Width=10,e.unobserved.Height=10,t.assign(e.observed,t.IntegerPropertyInRange(e,"Width",0,Infinity,10),t.IntegerPropertyInRange(e,"Height",0,Infinity,10)),i(function(n,r){return t.handleNumericAttribute(n,r,e,"Width")||t.handleNumericAttribute(n,r,e,"Height")}),l(function(){return s(ai||(ai=u(['\n
\n '])),e.observed.Width,e.observed.Height)})},["width","height"]),j("deck",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){e.unobserved.activeIndex=0,t.assign(e.observed,t.IntegerPropertyInRange(e,"activeIndex",0,Infinity)),i(function(n,r){return t.handleNumericAttribute(n,r,e,"activeIndex")}),l(function(){var n=Array.from(e.children),t=Math.max(0,Math.min(e.observed.activeIndex,n.length-1));return n.forEach(function(e,n){e.classList.toggle("active",n===t)}),s(li||(li=u(["\n \n \n "])))})},["activeIndex"],"rsc-card"),j("card",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){l(function(){return s(ui||(ui=u(["\n \n \n "])))})}),j("tab-strip",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){e.unobserved.activeIndex=0,t.assign(e.observed,t.IntegerPropertyInRange(e,"activeIndex",0,Infinity)),i(function(n,r){return t.handleNumericAttribute(n,r,e,"activeIndex")}),l(function(){var n=Array.from(e.children),t=Math.max(0,Math.min(e.observed.activeIndex,n.length-1));return n.forEach(function(e,n){e.classList.toggle("active",n===t)}),s(si||(si=u(["\n \n
\n "])),function(t){var r=t.target.closest("rsc-tab");e.contains(r)&&(e.observed.activeIndex=n.indexOf(r))})})},["Value","activeIndex"],"rsc-tab"),j("tab",void 0),j("htmlview",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){e.unobserved.Value="",t.assign(e.observed,t.StringProperty(e,"Value","")),l(function(){return s(ci||(ci=u(['\n \n\n
\n '])),t,"stretch"===r?"fill ":r,i)})},["Value","ImageScaling","ImageAlignment"]),j("webview",function(e,n,t,r,i,o,a,l,s,c,d,p,f,b,g){var v="allow-downloads allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-same-origin allow-scripts";t.assign(e.unobserved,{Value:"",PermissionsPolicy:"",ReferrerPolicy:"",SandboxPermissions:v,allowsFullscreen:!1}),t.assign(e.observed,t.URLProperty(e,"Value",""),t.StringProperty(e,"PermissionsPolicy",""),t.OneOfProperty(e,"ReferrerPolicy",["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],""),t.StringProperty(e,"SandboxPermissions",v),t.BooleanProperty(e,"allowsFullscreen",!1)),i(function(n,r){return t.handleLiteralAttribute(n,r,e,"Value")||t.handleLiteralAttribute(n,r,e,"allow","PermissionsPolicy")||t.handleLiteralAttribute(n,r,e,"referrer","ReferrerPolicy")||t.handleLiteralAttribute(n,r,e,"sandbox","SandboxPermissions")||t.handleBooleanAttribute(n,r,e,"allow-fullscreen","allowsFullscreen")}),l(function(){var n=e.observed,t=n.Value,r=n.PermissionsPolicy,i=n.ReferrerPolicy,o=n.SandboxPermissions,a=n.allowsFullscreen;return s(fi||(fi=u(["\n \n\n