@genesislcap/design-system-configurator 14.167.2 → 14.167.3-alpha-b40d1e5.0
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/200.200.859d068083a9cc9cd714.js +2 -0
- package/dist/200.67dcf7955800040a70abbc9a38bd72b2.js.map +1 -0
- package/dist/{806.806.df6304a6e1227a622b6e.js → 334.334.f675f475e0c2c6b7b8c6.js} +640 -183
- package/dist/334.ee10f8b663bc349d646eca0fb1c76dd1.js.map +1 -0
- package/dist/{849.849.c0960cfc38f4b6b1ed8d.js → 359.359.5d447bf8b0f5b5850973.js} +231 -231
- package/dist/359.b4620b1a2ca374618a8ee7e785697416.js.map +1 -0
- package/dist/{746.746.3d0b78f0bda7fbc60e1b.js → 746.746.5606b16b89a3de377685.js} +1 -1
- package/dist/755.755.b3ad0552e67af5814e32.js +2 -0
- package/dist/{755.9a7aecd6f809d3501c72cb59e24e35af.js.map → 755.a3cac47cc4cd6e213d2b372c956c558b.js.map} +1 -1
- package/dist/{8.8.cabffc3a0348840d5b01.js → 8.8.9a20b281e1115abe2f3c.js} +2 -2
- package/dist/{8.a53ad2394b2581a3c855ecd3bf2ca07f.js.map → 8.ef07388c4d4757fa729f386420e619db.js.map} +1 -1
- package/dist/designSystemConfigurator.208ae175785725f27d674a4a81a1457d.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.ac767adce7809721356e.js +2 -0
- package/dist/main.cb37db2217a550f3b0dd467073e0bb51.js.map +1 -0
- package/dist/npm.bowser.182.250262eaf3aaf0276da8.js +2 -0
- package/dist/npm.bowser.46f4d7a16a0005163663683563c4705e.js.map +1 -0
- package/dist/npm.http-status-codes.998.00c54119a49ada1a4dc5.js +2 -0
- package/dist/npm.http-status-codes.d432e2d15251825dd23629755de93778.js.map +1 -0
- package/dist/{npm.microsoft.127.fb65bada17a525386c80.js → npm.microsoft.127.da24134a36edff825162.js} +147 -147
- package/dist/npm.microsoft.ac462c010931eb8a47c3c6043ba81fa4.js.map +1 -0
- package/dist/npm.rxjs.271.6c76c9650885801e0ba7.js +2 -0
- package/dist/npm.rxjs.76b2e7e0eee0175592e06a61c80186f9.js.map +1 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/200.200.c3035a0394a0f0154665.js +0 -2
- package/dist/200.b969aa21c130d00f304fd17d1f5d7083.js.map +0 -1
- package/dist/755.755.e65d16e701302cc19617.js +0 -2
- package/dist/806.c79e1a261b79702c2079dd3e21c52362.js.map +0 -1
- package/dist/849.08a5ccbc241f730a7a50ef70b1f414e3.js.map +0 -1
- package/dist/designSystemConfigurator.d065b6cabe69e87dbe55e1b47a7154a8.js.map +0 -1
- package/dist/main.213f99ff1fd6c68d8276c4e369b4c185.js.map +0 -1
- package/dist/main.7df0a875506a38195fe4.js +0 -2
- package/dist/npm.microsoft.195d71c3cb4b532ac5f722f5b46f412b.js.map +0 -1
- package/dist/npm.rxjs.271.97c4a50d790b7f988ef3.js +0 -2
- package/dist/npm.rxjs.af0fdd7c6eef2b80c50efc049a01cda7.js.map +0 -1
package/dist/{npm.microsoft.127.fb65bada17a525386c80.js → npm.microsoft.127.da24134a36edff825162.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[127],{20472:(e,t,i)=>{function o(e,t,i){return isNaN(e)||e<=t?t:e>=i?i:e}function s(e,t,i){return isNaN(e)||e<=t?0:e>=i?1:e/(i-t)}function r(e,t,i){return isNaN(e)?t:t+e*(i-t)}function n(e){return e*(Math.PI/180)}function a(e){return e*(180/Math.PI)}function l(e){const t=Math.round(o(e,0,255)).toString(16);return 1===t.length?"0"+t:t}function c(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:t+e*(i-t)}function h(e,t,i){if(e<=0)return t%360;if(e>=1)return i%360;const o=(t-i+360)%360;return o<=(i-t+360)%360?(t-o*e+360)%360:(t+o*e+360)%360}i.r(t),i.d(t,{ColorBlendMode:()=>le,ColorHSL:()=>g,ColorHSV:()=>m,ColorInterpolationSpace:()=>ce,ColorLAB:()=>b,ColorLCH:()=>f,ColorPalette:()=>Pe,ColorRGBA64:()=>v,ColorScale:()=>ye,ColorXYZ:()=>y,ComponentStateColorPalette:()=>Ze,Histogram:()=>qe,ImageDataPixelBlob:()=>it,PixelBox:()=>We,blend:()=>he,blendBurn:()=>K,blendBurnChannel:()=>W,blendColor:()=>X,blendDarken:()=>Q,blendDarkenChannel:()=>Y,blendDodge:()=>J,blendDodgeChannel:()=>Z,blendLighten:()=>te,blendLightenChannel:()=>ee,blendMultiply:()=>oe,blendMultiplyChannel:()=>ie,blendOverlay:()=>re,blendOverlayChannel:()=>se,blendScreen:()=>ae,blendScreenChannel:()=>ne,calculateOverlayColor:()=>S,centeredRescale:()=>je,clamp:()=>o,computeAlphaBlend:()=>de,contrastRatio:()=>C,darkenViaLAB:()=>q,defaultCenteredRescaleConfig:()=>Ne,defaultPaletteExtractionConfig:()=>Je,defaultQuantizeConfig:()=>Xe,degreesToRadians:()=>n,denormalize:()=>r,desaturateViaLCH:()=>G,extractPalette:()=>et,generateOffCenterPalette:()=>Me,generateScaledPalettes:()=>Ge,getHexStringForByte:()=>l,hslToRGB:()=>I,hsvToRGB:()=>O,insertIntoSortedList:()=>Ue,interpolateByColorSpace:()=>ve,interpolateHSL:()=>pe,interpolateHSV:()=>ge,interpolateLAB:()=>be,interpolateLCH:()=>fe,interpolateRGB:()=>ue,interpolateXYZ:()=>me,isColorNamed:()=>Oe,isColorStringHexARGB:()=>Se,isColorStringHexRGB:()=>Te,isColorStringHexRGBA:()=>_e,isColorStringWebRGB:()=>Ie,isColorStringWebRGBA:()=>Fe,labToLCH:()=>D,labToRGB:()=>P,labToXYZ:()=>R,lchToLAB:()=>H,lchToRGB:()=>M,lerp:()=>c,lerpAnglesInDegrees:()=>h,lerpAnglesInRadians:()=>u,lightenViaLAB:()=>U,loadImageData:()=>tt,matchLightnessIndex:()=>Be,normalize:()=>s,parseColor:()=>Ve,parseColorHexARGB:()=>De,parseColorHexRGB:()=>He,parseColorHexRGBA:()=>Re,parseColorNamed:()=>Ae,parseColorWebRGB:()=>Ee,parseColorWebRGBA:()=>Le,quantize:()=>Qe,quantizeHistogram:()=>Ye,radiansToDegrees:()=>a,rescale:()=>ze,rgbToHSL:()=>_,rgbToHSV:()=>F,rgbToLAB:()=>V,rgbToLCH:()=>B,rgbToLinearLuminance:()=>x,rgbToRelativeLuminance:()=>$,rgbToTemperature:()=>N,rgbToXYZ:()=>L,roundToPrecisionSmall:()=>p,saturateViaLCH:()=>j,temperatureToRGB:()=>z,xyzToLAB:()=>E,xyzToRGB:()=>A});const d=2*Math.PI;function u(e,t,i){if(isNaN(e)||e<=0)return t%d;if(e>=1)return i%d;const o=(t-i+d)%d;return o<=(i-t+d)%d?(t-o*e+d)%d:(t+o*e+d)%d}function p(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}class g{constructor(e,t,i){this.h=e,this.s=t,this.l=i}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.l)?null:new g(e.h,e.s,e.l)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new g(p(this.h,e),p(this.s,e),p(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class m{constructor(e,t,i){this.h=e,this.s=t,this.v=i}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.v)?null:new m(e.h,e.s,e.v)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new m(p(this.h,e),p(this.s,e),p(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class b{constructor(e,t,i){this.l=e,this.a=t,this.b=i}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.a)||isNaN(e.b)?null:new b(e.l,e.a,e.b)}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new b(p(this.l,e),p(this.a,e),p(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}b.epsilon=216/24389,b.kappa=24389/27;class f{constructor(e,t,i){this.l=e,this.c=t,this.h=i}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.c)||isNaN(e.h)?null:new f(e.l,e.c,e.h)}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new f(p(this.l,e),p(this.c,e),p(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class v{constructor(e,t,i,o){this.r=e,this.g=t,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(e){return!e||isNaN(e.r)||isNaN(e.g)||isNaN(e.b)?null:new v(e.r,e.g,e.b,e.a)}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(r(this.r,0,255))},${Math.round(r(this.g,0,255))},${Math.round(r(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(r(this.r,0,255))},${Math.round(r(this.g,0,255))},${Math.round(r(this.b,0,255))},${o(this.a,0,1)})`}roundToPrecision(e){return new v(p(this.r,e),p(this.g,e),p(this.b,e),p(this.a,e))}clamp(){return new v(o(this.r,0,1),o(this.g,0,1),o(this.b,0,1),o(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return l(r(e,0,255))}}class y{constructor(e,t,i){this.x=e,this.y=t,this.z=i}static fromObject(e){return!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.z)?null:new y(e.x,e.y,e.z)}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new y(p(this.x,e),p(this.y,e),p(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function x(e){return.2126*e.r+.7152*e.g+.0722*e.b}function $(e){function t(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}return x(new v(t(e.r),t(e.g),t(e.b),1))}y.whitePoint=new y(.95047,1,1.08883);const w=(e,t)=>(e+.05)/(t+.05);function C(e,t){const i=$(e),o=$(t);return i>o?w(i,o):w(o,i)}function k(e,t,i){return i-t==0?0:(e-t)/(i-t)}function T(e,t,i){return(k(e.r,t.r,i.r)+k(e.g,t.g,i.g)+k(e.b,t.b,i.b))/3}function S(e,t,i=null){let o=0,s=i;return null!==s?o=T(e,t,s):(s=new v(0,0,0,1),o=T(e,t,s),o<=0&&(s=new v(1,1,1,1),o=T(e,t,s))),o=Math.round(1e3*o)/1e3,new v(s.r,s.g,s.b,o)}function _(e){const t=Math.max(e.r,e.g,e.b),i=Math.min(e.r,e.g,e.b),o=t-i;let s=0;0!==o&&(s=t===e.r?(e.g-e.b)/o%6*60:t===e.g?60*((e.b-e.r)/o+2):60*((e.r-e.g)/o+4)),s<0&&(s+=360);const r=(t+i)/2;let n=0;return 0!==o&&(n=o/(1-Math.abs(2*r-1))),new g(s,n,r)}function I(e,t=1){const i=(1-Math.abs(2*e.l-1))*e.s,o=i*(1-Math.abs(e.h/60%2-1)),s=e.l-i/2;let r=0,n=0,a=0;return e.h<60?(r=i,n=o,a=0):e.h<120?(r=o,n=i,a=0):e.h<180?(r=0,n=i,a=o):e.h<240?(r=0,n=o,a=i):e.h<300?(r=o,n=0,a=i):e.h<360&&(r=i,n=0,a=o),new v(r+s,n+s,a+s,t)}function F(e){const t=Math.max(e.r,e.g,e.b),i=t-Math.min(e.r,e.g,e.b);let o=0;0!==i&&(o=t===e.r?(e.g-e.b)/i%6*60:t===e.g?60*((e.b-e.r)/i+2):60*((e.r-e.g)/i+4)),o<0&&(o+=360);let s=0;return 0!==t&&(s=i/t),new m(o,s,t)}function O(e,t=1){const i=e.s*e.v,o=i*(1-Math.abs(e.h/60%2-1)),s=e.v-i;let r=0,n=0,a=0;return e.h<60?(r=i,n=o,a=0):e.h<120?(r=o,n=i,a=0):e.h<180?(r=0,n=i,a=o):e.h<240?(r=0,n=o,a=i):e.h<300?(r=o,n=0,a=i):e.h<360&&(r=i,n=0,a=o),new v(r+s,n+s,a+s,t)}function H(e){let t=0,i=0;return 0!==e.h&&(t=Math.cos(n(e.h))*e.c,i=Math.sin(n(e.h))*e.c),new b(e.l,t,i)}function D(e){let t=0;(Math.abs(e.b)>.001||Math.abs(e.a)>.001)&&(t=a(Math.atan2(e.b,e.a))),t<0&&(t+=360);const i=Math.sqrt(e.a*e.a+e.b*e.b);return new f(e.l,i,t)}function R(e){const t=(e.l+16)/116,i=t+e.a/500,o=t-e.b/200,s=Math.pow(i,3),r=Math.pow(t,3),n=Math.pow(o,3);let a=0;a=s>b.epsilon?s:(116*i-16)/b.kappa;let l=0;l=e.l>b.epsilon*b.kappa?r:e.l/b.kappa;let c=0;return c=n>b.epsilon?n:(116*o-16)/b.kappa,a=y.whitePoint.x*a,l=y.whitePoint.y*l,c=y.whitePoint.z*c,new y(a,l,c)}function E(e){function t(e){return e>b.epsilon?Math.pow(e,1/3):(b.kappa*e+16)/116}const i=t(e.x/y.whitePoint.x),o=t(e.y/y.whitePoint.y),s=t(e.z/y.whitePoint.z);return new b(116*o-16,500*(i-o),200*(o-s))}function L(e){function t(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}const i=t(e.r),o=t(e.g),s=t(e.b);return new y(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}function A(e,t=1){function i(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055}const o=i(3.2404542*e.x-1.5371385*e.y-.4985314*e.z),s=i(-.969266*e.x+1.8760108*e.y+.041556*e.z),r=i(.0556434*e.x-.2040259*e.y+1.0572252*e.z);return new v(o,s,r,t)}function V(e){return E(L(e))}function P(e,t=1){return A(R(e),t)}function B(e){return D(V(e))}function M(e,t=1){return P(H(e),t)}function z(e,t=1){let i=0,o=0,s=0;return e<=1e3?e=1e3:e>=4e4&&(e=4e4),e<6600?(i=255,o=e/100-2,o=-155.25485562709179-.44596950469579133*o+104.49216199393888*Math.log(o)):(i=e/100-55,i=351.97690566805693+.114206453784165*i-40.25366309332127*Math.log(i),o=e/100-50,o=325.4494125711974+.07943456536662342*o-28.0852963507957*Math.log(o)),e>=6600?s=255:e<2e3?s=0:(s=e/100-10,s=.8274096064007395*s-254.76935184120902+115.67994401066147*Math.log(s)),new v(i/255,o/255,s/255,t)}function N(e){let t=0,i=1e3,o=4e4;for(;o-i>.4;){t=(o+i)/2;const s=z(t);s.b/s.r>=e.b/e.r?o=t:i=t}return Math.round(t)}function j(e,t,i=18){const o=B(e);let s=o.c+t*i;return s<0&&(s=0),M(new f(o.l,s,o.h))}function G(e,t,i=18){return j(e,-1*t,i)}function q(e,t,i=18){const o=V(e),s=o.l-t*i;return P(new b(s,o.a,o.b))}function U(e,t,i=18){return q(e,-1*t,i)}function W(e,t){return 0===t?0:1-(1-e)/t}function K(e,t){return new v(W(e.r,t.r),W(e.g,t.g),W(e.b,t.b),1)}function X(e,t){const i=_(e),o=_(t);return 0===o.s?new v(i.l,i.l,i.l,1):I(new g(o.h,o.s,i.l))}function Y(e,t){return Math.min(e,t)}function Q(e,t){return new v(Y(e.r,t.r),Y(e.g,t.g),Y(e.b,t.b),1)}function Z(e,t){if(t>=1)return 1;const i=e/(1-t);return i>=1?1:i}function J(e,t){return new v(Z(e.r,t.r),Z(e.g,t.g),Z(e.b,t.b),1)}function ee(e,t){return Math.max(e,t)}function te(e,t){return new v(ee(e.r,t.r),ee(e.g,t.g),ee(e.b,t.b),1)}function ie(e,t){return e*t}function oe(e,t){return new v(ie(e.r,t.r),ie(e.g,t.g),ie(e.b,t.b),1)}function se(e,t){return o(e<.5?2*t*e:1-2*(1-t)*(1-e),0,1)}function re(e,t){return new v(se(e.r,t.r),se(e.g,t.g),se(e.b,t.b),1)}function ne(e,t){return 1-(1-t)*(1-e)}function ae(e,t){return new v(ne(e.r,t.r),ne(e.g,t.g),ne(e.b,t.b),1)}var le,ce;function he(e,t,i){switch(e){case le.Burn:return K(t,i);case le.Color:return X(t,i);case le.Darken:return Q(t,i);case le.Dodge:return J(t,i);case le.Lighten:return te(t,i);case le.Multiply:return oe(t,i);case le.Overlay:return re(t,i);case le.Screen:return ae(t,i);default:throw new Error("Unknown blend mode")}}function de(e,t){if(t.a>=1)return t;if(t.a<=0)return new v(e.r,e.g,e.b,1);const i=t.a*t.r+(1-t.a)*e.r,o=t.a*t.g+(1-t.a)*e.g,s=t.a*t.b+(1-t.a)*e.b;return new v(i,o,s,1)}function ue(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new v(c(e,t.r,i.r),c(e,t.g,i.g),c(e,t.b,i.b),c(e,t.a,i.a))}function pe(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new g(h(e,t.h,i.h),c(e,t.s,i.s),c(e,t.l,i.l))}function ge(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new m(h(e,t.h,i.h),c(e,t.s,i.s),c(e,t.v,i.v))}function me(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new y(c(e,t.x,i.x),c(e,t.y,i.y),c(e,t.z,i.z))}function be(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new b(c(e,t.l,i.l),c(e,t.a,i.a),c(e,t.b,i.b))}function fe(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new f(c(e,t.l,i.l),c(e,t.c,i.c),h(e,t.h,i.h))}function ve(e,t,i,o){if(isNaN(e)||e<=0)return i;if(e>=1)return o;switch(t){case ce.HSL:return I(pe(e,_(i),_(o)));case ce.HSV:return O(ge(e,F(i),F(o)));case ce.XYZ:return A(me(e,L(i),L(o)));case ce.LAB:return P(be(e,V(i),V(o)));case ce.LCH:return M(fe(e,B(i),B(o)));default:return ue(e,i,o)}}!function(e){e[e.Burn=0]="Burn",e[e.Color=1]="Color",e[e.Darken=2]="Darken",e[e.Dodge=3]="Dodge",e[e.Lighten=4]="Lighten",e[e.Multiply=5]="Multiply",e[e.Overlay=6]="Overlay",e[e.Screen=7]="Screen"}(le||(le={})),function(e){e[e.RGB=0]="RGB",e[e.HSL=1]="HSL",e[e.HSV=2]="HSV",e[e.XYZ=3]="XYZ",e[e.LAB=4]="LAB",e[e.LCH=5]="LCH"}(ce||(ce={}));class ye{constructor(e){if(null==e||0===e.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(e)}static createBalancedColorScale(e){if(null==e||0===e.length)throw new Error("The colors argument must be non-empty");const t=new Array(e.length);for(let i=0;i<e.length;i++)0===i?t[i]={color:e[i],position:0}:i===e.length-1?t[i]={color:e[i],position:1}:t[i]={color:e[i],position:i*(1/(e.length-1))};return new ye(t)}getColor(e,t=ce.RGB){if(1===this.stops.length)return this.stops[0].color;if(e<=0)return this.stops[0].color;if(e>=1)return this.stops[this.stops.length-1].color;let i=0;for(let t=0;t<this.stops.length;t++)this.stops[t].position<=e&&(i=t);let o=i+1;o>=this.stops.length&&(o=this.stops.length-1);return ve((e-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),t,this.stops[i].color,this.stops[o].color)}trim(e,t,i=ce.RGB){if(e<0||t>1||t<e)throw new Error("Invalid bounds");if(e===t)return new ye([{color:this.getColor(e,i),position:0}]);const o=[];for(let i=0;i<this.stops.length;i++)this.stops[i].position>=e&&this.stops[i].position<=t&&o.push(this.stops[i]);if(0===o.length)return new ye([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}]);o[0].position!==e&&o.unshift({color:this.getColor(e),position:e}),o[o.length-1].position!==t&&o.push({color:this.getColor(t),position:t});const s=t-e,r=new Array(o.length);for(let t=0;t<o.length;t++)r[t]={color:o[t].color,position:(o[t].position-e)/s};return new ye(r)}findNextColor(e,t,i=!1,o=ce.RGB,s=.005,r=32){isNaN(e)||e<=0?e=0:e>=1&&(e=1);const n=this.getColor(e,o),a=i?0:1;if(C(n,this.getColor(a,o))<=t)return a;let l=i?0:e,c=i?e:0,h=a,d=0;for(;d<=r;){h=Math.abs(c-l)/2+l;const e=C(n,this.getColor(h,o));if(Math.abs(e-t)<=s)return h;e>t?i?l=h:c=h:i?c=h:l=h,d++}return h}clone(){const e=new Array(this.stops.length);for(let t=0;t<e.length;t++)e[t]={color:this.stops[t].color,position:this.stops[t].position};return new ye(e)}sortColorScaleStops(e){return e.sort(((e,t)=>{const i=e.position,o=t.position;return i<o?-1:i>o?1:0}))}}const xe={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}},$e=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,we=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,Ce=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,ke=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i;function Te(e){return Ce.test(e)}function Se(e){return ke.test(e)}function _e(e){return Se(e)}function Ie(e){return $e.test(e)}function Fe(e){return we.test(e)}function Oe(e){return xe.hasOwnProperty(e)}function He(e){const t=Ce.exec(e);if(null===t)return null;let i=t[1];if(3===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2);i=e.concat(e,t,t,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255),1)}function De(e){const t=ke.exec(e);if(null===t)return null;let i=t[1];if(4===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2),s=i.charAt(3);i=e.concat(e,t,t,o,o,s,s)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255),s((4278190080&o)>>>24,0,255))}function Re(e){const t=ke.exec(e);if(null===t)return null;let i=t[1];if(4===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2),s=i.charAt(3);i=e.concat(e,t,t,o,o,s,s)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((4278190080&o)>>>24,0,255),s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255))}function Ee(e){const t=$e.exec(e);if(null===t)return null;const i=t[1].split(",");return new v(s(Number(i[0]),0,255),s(Number(i[1]),0,255),s(Number(i[2]),0,255),1)}function Le(e){const t=we.exec(e);if(null===t)return null;const i=t[1].split(",");return 4===i.length?new v(s(Number(i[0]),0,255),s(Number(i[1]),0,255),s(Number(i[2]),0,255),Number(i[3])):null}function Ae(e){const t=xe[e.toLowerCase()];return t?new v(t.r,t.g,t.b,t.hasOwnProperty("a")?t.a:void 0):null}function Ve(e){const t=e.toLowerCase();return Te(t)?He(t):_e(t)?De(t):Ie(t)?Ee(t):Fe(t)?Le(t):Oe(t)?Ae(t):null}class Pe{constructor(e){this.config=Object.assign({},Pe.defaultPaletteConfig,e),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=!1;for(const i in e)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(e[i])||(this.config[i]=e[i],t=!0):e[i]!==this.config[i]&&(this.config[i]=e[i],t=!0));return t&&this.updatePaletteColors(),t}updatePaletteColors(){const e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++)this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const e=_(this.config.baseColor),t=new ye([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let i=t.getColor(0),o=t.getColor(1);if(e.s>=this.config.saturationAdjustmentCutoff&&(i=j(i,this.config.saturationLight),o=j(o,this.config.saturationDark)),0!==this.config.multiplyLight){const e=oe(this.config.baseColor,i);i=ve(this.config.multiplyLight,this.config.interpolationMode,i,e)}if(0!==this.config.multiplyDark){const e=oe(this.config.baseColor,o);o=ve(this.config.multiplyDark,this.config.interpolationMode,o,e)}if(0!==this.config.overlayLight){const e=re(this.config.baseColor,i);i=ve(this.config.overlayLight,this.config.interpolationMode,i,e)}if(0!==this.config.overlayDark){const e=re(this.config.baseColor,o);o=ve(this.config.overlayDark,this.config.interpolationMode,o,e)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new ye([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new ye([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new ye([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new ye([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}function Be(e,t){const i=_(e);let o=Number.MAX_VALUE,s=0;for(let e=0;e<t.length;e++){const r=_(t[e]),n=Math.abs(r.l-i.l);n<o&&(o=n,s=e)}return s}function Me(e,t,i=Pe.greyscalePaletteConfig,o=Pe.defaultPaletteConfig){const s=Be(e,new Pe(Object.assign(Object.assign({},i),{steps:t})).palette);return new Pe(Object.assign(Object.assign({},o),{steps:t,baseColor:e,baseScalePosition:s/(t-1)}))}function ze(e,t,i){if(e.length<=1||t<=1)throw new Error("The input array and targetSize must both be greater than 1");if(i&&t<=e.length)throw new Error("If preserveInputColors is true then targetSize must be greater than the length of the input array");const o=new Array(e.length);if(i)for(let i=0;i<e.length;i++){const s=i/(e.length-1);let r=2,n=0;for(let e=0;e<t;e++){const i=Math.abs(e/(t-1)-s);if(i<r&&(r=i,n=e),0===i)break}o[i]={color:e[i],position:n/(t-1)}}else for(let t=0;t<o.length;t++)o[t]={color:e[t],position:t/(e.length-1)};const s=new ye(o),r=new Array(t);for(let e=0;e<t;e++)r[e]=s.getColor(e/(t-1));return r}Pe.defaultPaletteConfig={baseColor:He("#808080"),steps:11,interpolationMode:ce.RGB,scaleColorLight:new v(1,1,1,1),scaleColorDark:new v(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},Pe.greyscalePaletteConfig={baseColor:He("#808080"),steps:11,interpolationMode:ce.RGB,scaleColorLight:new v(1,1,1,1),scaleColorDark:new v(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};const Ne={targetSize:63,spacing:4,scaleColorLight:Pe.defaultPaletteConfig.scaleColorLight,scaleColorDark:Pe.defaultPaletteConfig.scaleColorDark};function je(e,t=Ne){if(0===e.length)return[];const i=Math.floor((t.targetSize-((e.length-1)*t.spacing+1))/2);if(i<0)throw new Error("(targetSize - ((input.length - 1) * spacing + 1)) / 2 must be >= 0");const o=new Array(e.length+2);o[0]={position:0,color:t.scaleColorLight},o[o.length-1]={position:1,color:t.scaleColorDark};for(let s=0;s<e.length;s++)o[s+1]={color:e[s],position:(s*t.spacing+i)/(t.targetSize-1)};const s=new ye(o),r=new Array(t.targetSize);for(let e=0;e<t.targetSize;e++)r[e]=s.getColor(e/(t.targetSize-1));return r}function Ge(e,t=11,i=Ne){const o=Me(e,t),s=je(o.palette,i);return{short:o.palette,long:s}}class qe{constructor(e,t=5,i=5,o=null){if(this.getHistogramIndex=(e,t,i)=>{const o=(e<<2*this.significantBits)+(t<<this.significantBits)+i;if(o>=this.data.length)throw new Error("RGB value is outside the bounds of the histogram");return o},this.getHistogramValue=(e,t,i)=>this.data[this.getHistogramIndex(e,t,i)],this.setHistogramValue=(e,t,i,o)=>{this.data[this.getHistogramIndex(t,i,o)]=e},t<1||t>8)throw new Error("significantBits must be in the range [1,8]");if(i<0)throw new Error("pixelSkipping must be >= 0");this.significantBits=t;const s=8-this.significantBits;this.minRed=255>>>s,this.maxRed=0,this.minGreen=255>>>s,this.maxGreen=0,this.minBlue=255>>>s,this.maxBlue=0;const r=1<<3*t;this.data=new Uint32Array(r),this.data.fill(0),this.total=0;let n=0;for(let t=0;t<e.height;t++)for(let r=0;r<e.width;r++){if(i>0&&n++%i!=0)continue;const a=e.getPixelRGBA(r,t);if(null!==o&&!o(a))continue;a[0]=a[0]>>>s,a[1]=a[1]>>>s,a[2]=a[2]>>>s,this.minRed=Math.min(a[0],this.minRed),this.maxRed=Math.max(a[0],this.maxRed),this.minGreen=Math.min(a[1],this.minGreen),this.maxGreen=Math.max(a[1],this.maxGreen),this.minBlue=Math.min(a[2],this.minBlue),this.maxBlue=Math.max(a[2],this.maxBlue);const l=this.getHistogramIndex(a[0],a[1],a[2]);this.data[l]+=1,this.total++}}}function Ue(e,t,i){if(0===e.length)return void e.push(t);const o=i(t);if(o>i(e[0]))return void e.unshift(t);if(o<=i(e[e.length-1]))return void e.push(t);let s=0;for(let t=0;t<e.length;t++)if(o>i(e[t])){s=t;break}e.splice(s,0,t)}class We{constructor(e,t,i,o,s,r,n){this.modifiedMedianCut=()=>{if(1===this.rangeRed&&1===this.rangeGreen&&1===this.rangeBlue)return[this,null];let e,t,i;!function(e){e[e.Red=0]="Red",e[e.Green=1]="Green",e[e.Blue=2]="Blue"}(e||(e={})),this.rangeRed>=this.rangeGreen&&this.rangeRed>=this.rangeBlue?(t=e.Red,i=this.rangeRed):this.rangeGreen>=this.rangeRed&&this.rangeGreen>=this.rangeBlue?(t=e.Green,i=this.rangeGreen):(t=e.Blue,i=this.rangeBlue);const o=new Array(i),s=new Array(i);let r=null,n=null,a=0;if(t===e.Red){for(let e=this.minRed;e<=this.maxRed;e++){let t=0;for(let i=this.minGreen;i<=this.maxGreen;i++)for(let o=this.minBlue;o<=this.maxBlue;o++)t+=this.globalHistogram.getHistogramValue(e,i,o);a+=t,o[e-this.minRed]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minRed;e<=this.maxRed;e++)if(o[e-this.minRed]>=a/2){const t=e-this.minRed,i=this.maxRed-e;let a;for(a=t<=i?Math.min(this.maxRed-1,Math.floor(e+i/2)):Math.max(this.minRed,Math.floor(e-1-t/2));o[a-this.minRed]<=0&&a<this.maxRed-1;)a++;let l=s[a-this.minRed];for(;0===l&&a>this.minRed&&0!==o[a-this.minRed-1];)a--,l=s[a-this.minRed];r=new We(this.globalHistogram,this.minRed,a,this.minGreen,this.maxGreen,this.minBlue,this.maxBlue),n=new We(this.globalHistogram,a+1,this.maxRed,this.minGreen,this.maxGreen,this.minBlue,this.maxBlue);break}}else if(t===e.Green){for(let e=this.minGreen;e<=this.maxGreen;e++){let t=0;for(let i=this.minRed;i<=this.maxRed;i++)for(let o=this.minBlue;o<=this.maxBlue;o++)t+=this.globalHistogram.getHistogramValue(i,e,o);a+=t,o[e-this.minGreen]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minGreen;e<=this.maxGreen;e++)if(o[e-this.minGreen]>=a/2){const t=e-this.minGreen,i=this.maxGreen-e;let a;for(a=t<=i?Math.min(this.maxGreen-1,Math.floor(e+i/2)):Math.max(this.minGreen,Math.floor(e-1-t/2));o[a-this.minGreen]<=0&&a<this.maxGreen-1;)a++;let l=s[a-this.minGreen];for(;0===l&&a>this.minGreen&&0!==o[a-this.minGreen-1];)a--,l=s[a-this.minGreen];r=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,a,this.minBlue,this.maxBlue),n=new We(this.globalHistogram,this.minRed,this.maxRed,a+1,this.maxGreen,this.minBlue,this.maxBlue);break}}else{for(let e=this.minBlue;e<=this.maxBlue;e++){let t=0;for(let i=this.minRed;i<=this.maxRed;i++)for(let o=this.minGreen;o<=this.maxGreen;o++)t+=this.globalHistogram.getHistogramValue(i,o,e);a+=t,o[e-this.minBlue]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minBlue;e<=this.maxBlue;e++)if(o[e-this.minBlue]>=a/2){const t=e-this.minBlue,i=this.maxBlue-e;let a;for(a=t<=i?Math.min(this.maxBlue-1,Math.floor(e+i/2)):Math.max(this.minBlue,Math.floor(e-1-t/2));o[a-this.minBlue]<=0&&a<this.maxBlue-1;)a++;let l=s[a-this.minBlue];for(;0===l&&a>this.minBlue&&0!==o[a-this.minBlue-1];)a--,l=s[a-this.minBlue];r=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,this.maxGreen,this.minBlue,a),n=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,this.maxGreen,a+1,this.maxBlue);break}}return[r,n]},this.pixelCount=0,this.globalHistogram=e,this.minRed=t,this.maxRed=i,this.minGreen=o,this.maxGreen=s,this.minBlue=r,this.maxBlue=n,this.rangeRed=this.maxRed-this.minRed+1,this.rangeGreen=this.maxGreen-this.minGreen+1,this.rangeBlue=this.maxBlue-this.minBlue+1,this.colorVolume=this.rangeRed*this.rangeGreen*this.rangeBlue;let a=0,l=0,c=0;const h=1<<8-this.globalHistogram.significantBits;for(let e=t;e<=i;e++)for(let t=o;t<=s;t++)for(let i=r;i<=n;i++){const o=this.globalHistogram.getHistogramValue(e,t,i);this.pixelCount+=o,a+=o*(e+.5)*h,l+=o*(t+.5)*h,c+=o*(i+.5)*h}0===this.pixelCount?this.averageColor=new v(h*((t+i+1)/2)/255,h*((o+s+1)/2)/255,h*((r+n+1)/2)/255,1):this.averageColor=new v(a/this.pixelCount/255,l/this.pixelCount/255,c/this.pixelCount/255,1)}}function Ke(e,t){if(null===t)return e.length;let i=0;for(let o=0;o<e.length;o++)t(e[o])&&i++;return i}const Xe={significantBits:5,pixelSkipping:5,targetPaletteSize:64,fractionByPopulation:.85,isBoxValid:e=>!(e.pixelCount<5),isHistogramPixelValid:e=>!(e[3]<128),maxIterations:1e3};function Ye(e,t=Xe){const i=[new We(e,e.minRed,e.maxRed,e.minGreen,e.maxGreen,e.minBlue,e.maxBlue)];let o=Ke(i,t.isBoxValid);const s=Math.floor(t.targetPaletteSize*t.fractionByPopulation),r=e=>e.pixelCount;let n=0;for(;n<=t.maxIterations;){if(i.length>0){const e=i.shift().modifiedMedianCut();null!==e[0]&&Ue(i,e[0],r),null!==e[1]&&Ue(i,e[1],r)}if(o=Ke(i,t.isBoxValid),o>=s||i.length<=1)break;n++}if(o<t.targetPaletteSize){const e=e=>e.pixelCount*e.colorVolume;for(i.sort(((t,i)=>{const o=e(t),s=e(i);return o===s?0:o>s?-1:1})),n=0;n<=t.maxIterations;){if(i.length>0){const t=i.shift().modifiedMedianCut();null!==t[0]&&Ue(i,t[0],e),null!==t[1]&&Ue(i,t[1],e)}if(o=Ke(i,t.isBoxValid),o>=t.targetPaletteSize||i.length<=1)break;n++}}const a=new Array(o);let l=0;for(let e=0;e<i.length;e++)t.isBoxValid&&!t.isBoxValid(i[e])||(a[l]={color:i[e].averageColor,pixelCount:i[e].pixelCount,colorVolume:i[e].colorVolume},l++);return a}function Qe(e,t=Xe){return Ye(new qe(e,t.significantBits,t.pixelSkipping,t.isHistogramPixelValid),t)}class Ze{constructor(e){this.palette=[],this.config=Object.assign({},Ze.defaultPaletteConfig,e),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);const t=.14,i=new v(t,t,t,1),o=new Pe(Object.assign(Object.assign({},Pe.greyscalePaletteConfig),{baseColor:i,baseScalePosition:86/94,steps:e})).palette,s=(x(this.config.baseColor)+_(this.config.baseColor).l)/2,r=this.matchRelativeLuminanceIndex(s,o)/(e-1),n=this.matchRelativeLuminanceIndex(t,o)/(e-1),a=_(this.config.baseColor),l=I(g.fromObject({h:a.h,s:a.s,l:t})),c=I(g.fromObject({h:a.h,s:a.s,l:.06})),h=new Array(5);h[0]={position:0,color:new v(1,1,1,1)},h[1]={position:r,color:this.config.baseColor},h[2]={position:n,color:l},h[3]={position:.99,color:c},h[4]={position:1,color:new v(0,0,0,1)};const d=new ye(h);this.palette=new Array(e);for(let t=0;t<e;t++){const i=d.getColor(t/(e-1),ce.RGB);this.palette[t]=i}}matchRelativeLuminanceIndex(e,t){let i=Number.MAX_VALUE,o=0,s=0;const r=t.length;for(;s<r;s++){const r=Math.abs(x(t[s])-e);r<i&&(i=r,o=s)}return o}}Ze.defaultPaletteConfig={baseColor:He("#808080"),steps:94};const Je={saturationWeight:6,luminosityWeight:3,populationWeight:1,volumeWeight:.1,constraints:[{id:"Vibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.5,minLuminosity:.3,maxLuminosity:.7},{id:"LightVibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.74,minLuminosity:.55,maxLuminosity:1},{id:"DarkVibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.26,minLuminosity:0,maxLuminosity:.45},{id:"Muted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.5,minLuminosity:.3,maxLuminosity:.7},{id:"LightMuted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.74,minLuminosity:.55,maxLuminosity:1},{id:"DarkMuted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.26,minLuminosity:0,maxLuminosity:.45}]};function et(e,t=Je){if(0===t.constraints.length)return[];let i=0,o=0;for(let t=0;t<e.length;t++)i+=e[t].pixelCount,o+=e[t].colorVolume;const s=new Array(t.constraints.length),r=new Array(t.constraints.length);for(let e=0;e<s.length;e++)r[e]=0,s[e]={found:!1,constraint:t.constraints[e]};const n=t.saturationWeight+t.luminosityWeight+t.populationWeight+t.volumeWeight;for(let a=0;a<e.length;a++){const l=_(e[a].color);for(let c=0;c<t.constraints.length;c++)if(l.s>=t.constraints[c].minSaturation&&l.s<=t.constraints[c].maxSaturation&&l.l>=t.constraints[c].minLuminosity&&l.l<=t.constraints[c].maxLuminosity){const h=e[a].pixelCount/i,d=e[a].colorVolume/o,u=1-Math.abs(l.s-t.constraints[c].targetSaturation),p=1-Math.abs(l.l-t.constraints[c].targetLuminosity),g=(h*t.populationWeight+d*t.volumeWeight+u*t.saturationWeight+p*t.luminosityWeight)/n;if(g>r[c]){let t=!1;for(let i=0;i<c;i++)if(s[i].found&&s[i].color.color.equalValue(e[a].color)){t=!0;break}t||(r[c]=g,s[c].found=!0,s[c].color=e[a])}}}return s}function tt(e){return new Promise(((t,i)=>{const o=new Image;o?(o.onload=e=>{const s=document.createElement("canvas");if(!s)return void i("Unable to create canvas");s.width=o.naturalWidth,s.height=o.naturalHeight;const r=s.getContext("2d");if(!r)return void i("Unable to create context");r.drawImage(o,0,0,s.width,s.height);const n=r.getImageData(0,0,s.width,s.height);t(n)},o.onerror=e=>{i(e)},o.onabort=e=>{i(e)},o.src=e):i("Unable to create image")}))}class it{constructor(e){this.getPixel=(e,t)=>{const i=this.getPixelRGBA(e,t);return new v(i[0]/255,i[1]/255,i[2]/255,i[3]/255)},this.getPixelRGBA=(e,t)=>{if(e<0||e>=this.width||t<0||t>=this.height)throw new Error("Requested pixel is outside of the image bounds");const i=4*(t*this.width+e);return[this.image.data[i],this.image.data[i+1],this.image.data[i+2],this.image.data[i+3]]},this.image=e,this.width=e.width,this.height=e.height,this.totalPixels=this.width*this.height}}},34619:(e,t,i)=>{i.r(t),i.d(t,{Accordion:()=>o.Accordion,AccordionItem:()=>o.AccordionItem,ActionsStyles:()=>vo,Anchor:()=>mi,AnchoredRegion:()=>o.AnchoredRegion,Avatar:()=>wi,Badge:()=>o.Badge,Breadcrumb:()=>o.Breadcrumb,BreadcrumbItem:()=>o.BreadcrumbItem,Button:()=>Di,Calendar:()=>o.Calendar,CalendarStyles:()=>Ei,Card:()=>Pi,Checkbox:()=>o.Checkbox,Combobox:()=>qi,DataGrid:()=>o.DataGrid,DataGridCell:()=>o.DataGridCell,DataGridRow:()=>o.DataGridRow,DesignSystemProvider:()=>io,Dialog:()=>o.Dialog,DirectionalStyleSheetBehavior:()=>yi,Disclosure:()=>co,Divider:()=>o.Divider,Flipper:()=>o.Flipper,HorizontalScroll:()=>xo,Listbox:()=>ko,ListboxOption:()=>o.ListboxOption,Menu:()=>Fo,MenuItem:()=>o.MenuItem,NumberField:()=>Do,PaletteRGB:()=>g,Picker:()=>o.Picker,PickerMenu:()=>Bo,Progress:()=>o.BaseProgress,ProgressRing:()=>o.BaseProgress,Radio:()=>o.Radio,RadioGroup:()=>o.RadioGroup,Search:()=>ts,Select:()=>ss,Skeleton:()=>o.Skeleton,Slider:()=>o.Slider,SliderLabel:()=>us,StandardLuminance:()=>$,SwatchRGB:()=>l,Switch:()=>o.Switch,Tab:()=>o.Tab,TabPanel:()=>o.TabPanel,Tabs:()=>o.Tabs,TextArea:()=>_s,TextField:()=>Os,Toolbar:()=>Rs,Tooltip:()=>o.Tooltip,TreeItem:()=>o.TreeItem,TreeView:()=>o.TreeView,accentColor:()=>De,accentFillActive:()=>Qe,accentFillActiveDelta:()=>ie,accentFillFocus:()=>Ze,accentFillFocusDelta:()=>oe,accentFillHover:()=>Ye,accentFillHoverDelta:()=>te,accentFillRecipe:()=>Ke,accentFillRest:()=>Xe,accentFillRestDelta:()=>ee,accentForegroundActive:()=>gt,accentForegroundActiveDelta:()=>ne,accentForegroundFocus:()=>mt,accentForegroundFocusDelta:()=>ae,accentForegroundHover:()=>pt,accentForegroundHoverDelta:()=>re,accentForegroundRecipe:()=>dt,accentForegroundRest:()=>ut,accentForegroundRestDelta:()=>se,accentPalette:()=>Re,accordionItemStyles:()=>oi,accordionStyles:()=>ei,allComponents:()=>Us,anchorStyles:()=>gi,anchoredRegionStyles:()=>fi,avatarStyles:()=>$i,badgeStyles:()=>Ti,baseHeightMultiplier:()=>S,baseHorizontalSpacingMultiplier:()=>_,baseLayerLuminance:()=>I,bodyFont:()=>T,breadcrumbItemStyles:()=>_i,breadcrumbStyles:()=>Fi,buttonStyles:()=>Hi,cardStyles:()=>Vi,checkboxStyles:()=>Mi,comboboxStyles:()=>Gi,controlCornerRadius:()=>F,dataGridCellStyles:()=>Xi,dataGridRowStyles:()=>Ki,dataGridStyles:()=>Wi,density:()=>O,designSystemProviderStyles:()=>so,designSystemProviderTemplate:()=>oo,designUnit:()=>H,dialogStyles:()=>no,direction:()=>D,disabledOpacity:()=>R,disclosureStyles:()=>lo,dividerStyles:()=>uo,fastAccordion:()=>ri,fastAccordionItem:()=>si,fastAnchor:()=>bi,fastAnchoredRegion:()=>vi,fastAvatar:()=>ki,fastBadge:()=>Si,fastBreadcrumb:()=>Oi,fastBreadcrumbItem:()=>Ii,fastButton:()=>Ri,fastCalendar:()=>Li,fastCard:()=>Bi,fastCheckbox:()=>zi,fastCombobox:()=>Ui,fastDataGrid:()=>Zi,fastDataGridCell:()=>Yi,fastDataGridRow:()=>Qi,fastDesignSystemProvider:()=>ro,fastDialog:()=>ao,fastDisclosure:()=>ho,fastDivider:()=>po,fastFlipper:()=>mo,fastHorizontalScroll:()=>$o,fastListbox:()=>To,fastMenu:()=>Oo,fastMenuItem:()=>_o,fastNumberField:()=>Ro,fastOption:()=>Co,fastPicker:()=>Po,fastPickerList:()=>No,fastPickerListItem:()=>jo,fastPickerMenu:()=>Mo,fastPickerMenuOption:()=>zo,fastProgress:()=>Wo,fastProgressRing:()=>qo,fastRadio:()=>Qo,fastRadioGroup:()=>Xo,fastSearch:()=>is,fastSelect:()=>rs,fastSkeleton:()=>as,fastSlider:()=>fs,fastSliderLabel:()=>ps,fastSwitch:()=>ys,fastTab:()=>ws,fastTabPanel:()=>ks,fastTabs:()=>Ts,fastTextArea:()=>Is,fastTextField:()=>Hs,fastToolbar:()=>Es,fastTooltip:()=>As,fastTreeItem:()=>js,fastTreeView:()=>qs,fillColor:()=>Ue,flipperStyles:()=>go,focusStrokeInner:()=>zt,focusStrokeInnerRecipe:()=>Mt,focusStrokeOuter:()=>Bt,focusStrokeOuterRecipe:()=>Pt,focusStrokeWidth:()=>L,foregroundOnAccentActive:()=>ot,foregroundOnAccentActiveLarge:()=>lt,foregroundOnAccentFocus:()=>st,foregroundOnAccentFocusLarge:()=>ct,foregroundOnAccentHover:()=>it,foregroundOnAccentHoverLarge:()=>at,foregroundOnAccentLargeRecipe:()=>rt,foregroundOnAccentRecipe:()=>et,foregroundOnAccentRest:()=>tt,foregroundOnAccentRestLarge:()=>nt,heightNumberAsToken:()=>Jt,horizontalScrollStyles:()=>yo,horizontalSliderLabelStyles:()=>cs,imgTemplate:()=>Ci,isDark:()=>u,listboxStyles:()=>Ni,menuItemStyles:()=>So,menuStyles:()=>Io,neutralColor:()=>Oe,neutralFillActive:()=>yt,neutralFillActiveDelta:()=>he,neutralFillFocus:()=>xt,neutralFillFocusDelta:()=>de,neutralFillHover:()=>vt,neutralFillHoverDelta:()=>ce,neutralFillInputActive:()=>kt,neutralFillInputActiveDelta:()=>ge,neutralFillInputFocus:()=>Tt,neutralFillInputFocusDelta:()=>me,neutralFillInputHover:()=>Ct,neutralFillInputHoverDelta:()=>pe,neutralFillInputRecipe:()=>$t,neutralFillInputRest:()=>wt,neutralFillInputRestDelta:()=>ue,neutralFillLayerRecipe:()=>At,neutralFillLayerRest:()=>Vt,neutralFillLayerRestDelta:()=>ke,neutralFillRecipe:()=>bt,neutralFillRest:()=>ft,neutralFillRestDelta:()=>le,neutralFillStealthActive:()=>Ft,neutralFillStealthActiveDelta:()=>ve,neutralFillStealthFocus:()=>Ot,neutralFillStealthFocusDelta:()=>ye,neutralFillStealthHover:()=>It,neutralFillStealthHoverDelta:()=>fe,neutralFillStealthRecipe:()=>St,neutralFillStealthRest:()=>_t,neutralFillStealthRestDelta:()=>be,neutralFillStrongActive:()=>Et,neutralFillStrongActiveDelta:()=>we,neutralFillStrongFocus:()=>Lt,neutralFillStrongFocusDelta:()=>Ce,neutralFillStrongHover:()=>Rt,neutralFillStrongHoverDelta:()=>$e,neutralFillStrongRecipe:()=>Ht,neutralFillStrongRest:()=>Dt,neutralFillStrongRestDelta:()=>xe,neutralForegroundHint:()=>jt,neutralForegroundHintRecipe:()=>Nt,neutralForegroundRecipe:()=>Gt,neutralForegroundRest:()=>qt,neutralLayer1:()=>Be,neutralLayer1Recipe:()=>Pe,neutralLayer2:()=>ze,neutralLayer2Recipe:()=>Me,neutralLayer3:()=>je,neutralLayer3Recipe:()=>Ne,neutralLayer4:()=>qe,neutralLayer4Recipe:()=>Ge,neutralLayerCardContainer:()=>Le,neutralLayerCardContainerRecipe:()=>Ee,neutralLayerFloating:()=>Ve,neutralLayerFloatingRecipe:()=>Ae,neutralPalette:()=>He,neutralStrokeActive:()=>Xt,neutralStrokeActiveDelta:()=>_e,neutralStrokeDividerRecipe:()=>Qt,neutralStrokeDividerRest:()=>Zt,neutralStrokeDividerRestDelta:()=>Fe,neutralStrokeFocus:()=>Yt,neutralStrokeFocusDelta:()=>Ie,neutralStrokeHover:()=>Kt,neutralStrokeHoverDelta:()=>Se,neutralStrokeRecipe:()=>Ut,neutralStrokeRest:()=>Wt,neutralStrokeRestDelta:()=>Te,numberFieldStyles:()=>Ho,optionStyles:()=>wo,pickerListItemStyles:()=>Vo,pickerMenuOptionStyles:()=>Ao,pickerMenuStyles:()=>Lo,pickerStyles:()=>Eo,progressRingStyles:()=>Go,progressStyles:()=>Uo,provideFASTDesignSystem:()=>Ws,radioGroupStyles:()=>Ko,radioStyles:()=>Yo,searchStyles:()=>os,selectStyles:()=>ji,skeletonStyles:()=>ns,sliderLabelStyles:()=>ds,sliderStyles:()=>bs,strokeWidth:()=>E,switchStyles:()=>vs,tabPanelStyles:()=>Cs,tabStyles:()=>$s,tabsStyles:()=>xs,textAreaStyles:()=>Ss,textFieldStyles:()=>Fs,toolbarStyles:()=>Ds,tooltipStyles:()=>Ls,treeItemStyles:()=>Ns,treeViewStyles:()=>Gs,typeRampBaseFontSize:()=>A,typeRampBaseLineHeight:()=>V,typeRampMinus1FontSize:()=>P,typeRampMinus1LineHeight:()=>B,typeRampMinus2FontSize:()=>M,typeRampMinus2LineHeight:()=>z,typeRampPlus1FontSize:()=>N,typeRampPlus1LineHeight:()=>j,typeRampPlus2FontSize:()=>G,typeRampPlus2LineHeight:()=>q,typeRampPlus3FontSize:()=>U,typeRampPlus3LineHeight:()=>W,typeRampPlus4FontSize:()=>K,typeRampPlus4LineHeight:()=>X,typeRampPlus5FontSize:()=>Y,typeRampPlus5LineHeight:()=>Q,typeRampPlus6FontSize:()=>Z,typeRampPlus6LineHeight:()=>J,verticalSliderLabelStyles:()=>hs});var o=i(99667),s=i(79292),r=i(5598),n=i(43556);function a(e,t){const i=e.relativeLuminance>t.relativeLuminance?e:t,o=e.relativeLuminance>t.relativeLuminance?t:e;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const l=Object.freeze({create:(e,t,i)=>new c(e,t,i),from:e=>new c(e.r,e.g,e.b)});class c extends n.ColorRGBA64{constructor(e,t,i){super(e,t,i,1),this.toColorString=this.toStringHexRGB,this.contrast=a.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=(0,n.rgbToRelativeLuminance)(this)}static fromObject(e){return new c(e.r,e.g,e.b)}}function h(e,t,i=0,o=e.length-1){if(o===i)return e[i];const s=Math.floor((o-i)/2)+i;return t(e[s])?h(e,t,i,s):h(e,t,s+1,o)}const d=(-.1+Math.sqrt(.21))/2;function u(e){return e.relativeLuminance<=d}function p(e){return u(e)?-1:1}const g=Object.freeze({create:function(e,t,i){return"number"==typeof e?g.from(l.create(e,t,i)):g.from(e)},from:function(e){return function(e){const t={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in t)if(typeof t[i]!=typeof e[i])return!1;return!0}(e)?m.from(e):m.from(l.create(e.r,e.g,e.b))}});class m{constructor(e,t){this.closestIndexCache=new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,i,o){void 0===i&&(i=this.closestIndexOf(e));let s=this.swatches;const r=this.lastIndex;let n=i;void 0===o&&(o=p(e));return-1===o&&(s=this.reversedSwatches,n=r-n),h(s,(i=>a(e,i)>=t),n,r)}get(e){return this.swatches[e]||this.swatches[(0,n.clamp)(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(-1!==t)return this.closestIndexCache.set(e.relativeLuminance,t),t;const i=this.swatches.reduce(((t,i)=>Math.abs(i.relativeLuminance-e.relativeLuminance)<Math.abs(t.relativeLuminance-e.relativeLuminance)?i:t));return t=this.swatches.indexOf(i),this.closestIndexCache.set(e.relativeLuminance,t),t}static from(e){return new m(e,Object.freeze(new n.ComponentStateColorPalette({baseColor:n.ColorRGBA64.fromObject(e)}).palette.map((e=>{const t=(0,n.parseColorHexRGB)(e.toStringHexRGB());return l.create(t.r,t.g,t.b)}))))}}const b=l.create(1,1,1),f=l.create(0,0,0),v=l.from((0,n.parseColorHexRGB)("#808080")),y=l.from((0,n.parseColorHexRGB)("#DA1A5F"));function x(e){return l.create(e,e,e)}const $={LightMode:1,DarkMode:.23};function w(e,t,i,o,s,r){return Math.max(e.closestIndexOf(x(t))+i,o,s,r)}const{create:C}=o.DesignToken;function k(e){return o.DesignToken.create({name:e,cssCustomPropertyName:null})}const T=C("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),S=C("base-height-multiplier").withDefault(10),_=C("base-horizontal-spacing-multiplier").withDefault(3),I=C("base-layer-luminance").withDefault($.DarkMode),F=C("control-corner-radius").withDefault(4),O=C("density").withDefault(0),H=C("design-unit").withDefault(4),D=C("direction").withDefault(r.N.ltr),R=C("disabled-opacity").withDefault(.3),E=C("stroke-width").withDefault(1),L=C("focus-stroke-width").withDefault(2),A=C("type-ramp-base-font-size").withDefault("14px"),V=C("type-ramp-base-line-height").withDefault("20px"),P=C("type-ramp-minus-1-font-size").withDefault("12px"),B=C("type-ramp-minus-1-line-height").withDefault("16px"),M=C("type-ramp-minus-2-font-size").withDefault("10px"),z=C("type-ramp-minus-2-line-height").withDefault("16px"),N=C("type-ramp-plus-1-font-size").withDefault("16px"),j=C("type-ramp-plus-1-line-height").withDefault("24px"),G=C("type-ramp-plus-2-font-size").withDefault("20px"),q=C("type-ramp-plus-2-line-height").withDefault("28px"),U=C("type-ramp-plus-3-font-size").withDefault("28px"),W=C("type-ramp-plus-3-line-height").withDefault("36px"),K=C("type-ramp-plus-4-font-size").withDefault("34px"),X=C("type-ramp-plus-4-line-height").withDefault("44px"),Y=C("type-ramp-plus-5-font-size").withDefault("46px"),Q=C("type-ramp-plus-5-line-height").withDefault("56px"),Z=C("type-ramp-plus-6-font-size").withDefault("60px"),J=C("type-ramp-plus-6-line-height").withDefault("72px"),ee=k("accent-fill-rest-delta").withDefault(0),te=k("accent-fill-hover-delta").withDefault(4),ie=k("accent-fill-active-delta").withDefault(-5),oe=k("accent-fill-focus-delta").withDefault(0),se=k("accent-foreground-rest-delta").withDefault(0),re=k("accent-foreground-hover-delta").withDefault(6),ne=k("accent-foreground-active-delta").withDefault(-4),ae=k("accent-foreground-focus-delta").withDefault(0),le=k("neutral-fill-rest-delta").withDefault(7),ce=k("neutral-fill-hover-delta").withDefault(10),he=k("neutral-fill-active-delta").withDefault(5),de=k("neutral-fill-focus-delta").withDefault(0),ue=k("neutral-fill-input-rest-delta").withDefault(0),pe=k("neutral-fill-input-hover-delta").withDefault(0),ge=k("neutral-fill-input-active-delta").withDefault(0),me=k("neutral-fill-input-focus-delta").withDefault(0),be=k("neutral-fill-stealth-rest-delta").withDefault(0),fe=k("neutral-fill-stealth-hover-delta").withDefault(5),ve=k("neutral-fill-stealth-active-delta").withDefault(3),ye=k("neutral-fill-stealth-focus-delta").withDefault(0),xe=k("neutral-fill-strong-rest-delta").withDefault(0),$e=k("neutral-fill-strong-hover-delta").withDefault(8),we=k("neutral-fill-strong-active-delta").withDefault(-5),Ce=k("neutral-fill-strong-focus-delta").withDefault(0),ke=k("neutral-fill-layer-rest-delta").withDefault(3),Te=k("neutral-stroke-rest-delta").withDefault(25),Se=k("neutral-stroke-hover-delta").withDefault(40),_e=k("neutral-stroke-active-delta").withDefault(16),Ie=k("neutral-stroke-focus-delta").withDefault(25),Fe=k("neutral-stroke-divider-rest-delta").withDefault(8),Oe=C("neutral-color").withDefault(v),He=k("neutral-palette").withDefault((e=>g.from(Oe.getValueFor(e)))),De=C("accent-color").withDefault(y),Re=k("accent-palette").withDefault((e=>g.from(De.getValueFor(e)))),Ee=k("neutral-layer-card-container-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),t.get(t.closestIndexOf(x(i))+o);var t,i,o}}),Le=C("neutral-layer-card-container").withDefault((e=>Ee.getValueFor(e).evaluate(e))),Ae=k("neutral-layer-floating-recipe").withDefault({evaluate:e=>function(e,t,i){const o=e.closestIndexOf(x(t))-i;return e.get(o-i)}(He.getValueFor(e),I.getValueFor(e),ke.getValueFor(e))}),Ve=C("neutral-layer-floating").withDefault((e=>Ae.getValueFor(e).evaluate(e))),Pe=k("neutral-layer-1-recipe").withDefault({evaluate:e=>function(e,t){return e.get(e.closestIndexOf(x(t)))}(He.getValueFor(e),I.getValueFor(e))}),Be=C("neutral-layer-1").withDefault((e=>Pe.getValueFor(e).evaluate(e))),Me=k("neutral-layer-2-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n));var t,i,o,s,r,n}}),ze=C("neutral-layer-2").withDefault((e=>Me.getValueFor(e).evaluate(e))),Ne=k("neutral-layer-3-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n)+o);var t,i,o,s,r,n}}),je=C("neutral-layer-3").withDefault((e=>Ne.getValueFor(e).evaluate(e))),Ge=k("neutral-layer-4-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n)+2*o);var t,i,o,s,r,n}}),qe=C("neutral-layer-4").withDefault((e=>Ge.getValueFor(e).evaluate(e))),Ue=C("fill-color").withDefault((e=>Be.getValueFor(e)));var We;!function(e){e[e.normal=4.5]="normal",e[e.large=7]="large"}(We||(We={}));const Ke=C({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r,n,a,l){const c=e.source,h=t.closestIndexOf(i)>=Math.max(n,a,l)?-1:1,d=e.closestIndexOf(c),u=d+-1*h*o,p=u+h*s,g=u+h*r;return{rest:e.get(u),hover:e.get(d),active:e.get(p),focus:e.get(g)}}(Re.getValueFor(e),He.getValueFor(e),t||Ue.getValueFor(e),te.getValueFor(e),ie.getValueFor(e),oe.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e))}),Xe=C("accent-fill-rest").withDefault((e=>Ke.getValueFor(e).evaluate(e).rest)),Ye=C("accent-fill-hover").withDefault((e=>Ke.getValueFor(e).evaluate(e).hover)),Qe=C("accent-fill-active").withDefault((e=>Ke.getValueFor(e).evaluate(e).active)),Ze=C("accent-fill-focus").withDefault((e=>Ke.getValueFor(e).evaluate(e).focus)),Je=e=>(t,i)=>function(e,t){return e.contrast(b)>=t?b:f}(i||Xe.getValueFor(t),e),et=k("foreground-on-accent-recipe").withDefault({evaluate:(e,t)=>Je(We.normal)(e,t)}),tt=C("foreground-on-accent-rest").withDefault((e=>et.getValueFor(e).evaluate(e,Xe.getValueFor(e)))),it=C("foreground-on-accent-hover").withDefault((e=>et.getValueFor(e).evaluate(e,Ye.getValueFor(e)))),ot=C("foreground-on-accent-active").withDefault((e=>et.getValueFor(e).evaluate(e,Qe.getValueFor(e)))),st=C("foreground-on-accent-focus").withDefault((e=>et.getValueFor(e).evaluate(e,Ze.getValueFor(e)))),rt=k("foreground-on-accent-large-recipe").withDefault({evaluate:(e,t)=>Je(We.large)(e,t)}),nt=C("foreground-on-accent-rest-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Xe.getValueFor(e)))),at=C("foreground-on-accent-hover-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Ye.getValueFor(e)))),lt=C("foreground-on-accent-active-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Qe.getValueFor(e)))),ct=C("foreground-on-accent-focus-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Ze.getValueFor(e)))),ht=e=>(t,i)=>function(e,t,i,o,s,r,n){const a=e.source,l=e.closestIndexOf(a),c=p(t),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=e.colorContrast(t,i,h,c),u=e.closestIndexOf(d),g=u+c*Math.abs(o-s);let m,b;return(1===c?o<s:c*o>c*s)?(m=u,b=g):(m=g,b=u),{rest:e.get(m),hover:e.get(b),active:e.get(m+c*r),focus:e.get(m+c*n)}}(Re.getValueFor(t),i||Ue.getValueFor(t),e,se.getValueFor(t),re.getValueFor(t),ne.getValueFor(t),ae.getValueFor(t)),dt=C({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ht(We.normal)(e,t)}),ut=C("accent-foreground-rest").withDefault((e=>dt.getValueFor(e).evaluate(e).rest)),pt=C("accent-foreground-hover").withDefault((e=>dt.getValueFor(e).evaluate(e).hover)),gt=C("accent-foreground-active").withDefault((e=>dt.getValueFor(e).evaluate(e).active)),mt=C("accent-foreground-focus").withDefault((e=>dt.getValueFor(e).evaluate(e).focus)),bt=C({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=e.closestIndexOf(t),a=n>=Math.max(i,o,s,r)?-1:1;return{rest:e.get(n+a*i),hover:e.get(n+a*o),active:e.get(n+a*s),focus:e.get(n+a*r)}}(He.getValueFor(e),t||Ue.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e),de.getValueFor(e))}),ft=C("neutral-fill-rest").withDefault((e=>bt.getValueFor(e).evaluate(e).rest)),vt=C("neutral-fill-hover").withDefault((e=>bt.getValueFor(e).evaluate(e).hover)),yt=C("neutral-fill-active").withDefault((e=>bt.getValueFor(e).evaluate(e).active)),xt=C("neutral-fill-focus").withDefault((e=>bt.getValueFor(e).evaluate(e).focus)),$t=C({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=p(t),a=e.closestIndexOf(t);return{rest:e.get(a-n*i),hover:e.get(a-n*o),active:e.get(a-n*s),focus:e.get(a-n*r)}}(He.getValueFor(e),t||Ue.getValueFor(e),ue.getValueFor(e),pe.getValueFor(e),ge.getValueFor(e),me.getValueFor(e))}),wt=C("neutral-fill-input-rest").withDefault((e=>$t.getValueFor(e).evaluate(e).rest)),Ct=C("neutral-fill-input-hover").withDefault((e=>$t.getValueFor(e).evaluate(e).hover)),kt=C("neutral-fill-input-active").withDefault((e=>$t.getValueFor(e).evaluate(e).active)),Tt=C("neutral-fill-input-focus").withDefault((e=>$t.getValueFor(e).evaluate(e).focus)),St=C({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r,n,a,l,c){const h=Math.max(i,o,s,r,n,a,l,c),d=e.closestIndexOf(t),u=d>=h?-1:1;return{rest:e.get(d+u*i),hover:e.get(d+u*o),active:e.get(d+u*s),focus:e.get(d+u*r)}}(He.getValueFor(e),t||Ue.getValueFor(e),be.getValueFor(e),fe.getValueFor(e),ve.getValueFor(e),ye.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e),de.getValueFor(e))}),_t=C("neutral-fill-stealth-rest").withDefault((e=>St.getValueFor(e).evaluate(e).rest)),It=C("neutral-fill-stealth-hover").withDefault((e=>St.getValueFor(e).evaluate(e).hover)),Ft=C("neutral-fill-stealth-active").withDefault((e=>St.getValueFor(e).evaluate(e).active)),Ot=C("neutral-fill-stealth-focus").withDefault((e=>St.getValueFor(e).evaluate(e).focus)),Ht=C({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=p(t),a=e.closestIndexOf(e.colorContrast(t,4.5)),l=a+n*Math.abs(i-o);let c,h;return(1===n?i<o:n*i>n*o)?(c=a,h=l):(c=l,h=a),{rest:e.get(c),hover:e.get(h),active:e.get(c+n*s),focus:e.get(c+n*r)}}(He.getValueFor(e),t||Ue.getValueFor(e),xe.getValueFor(e),$e.getValueFor(e),we.getValueFor(e),Ce.getValueFor(e))}),Dt=C("neutral-fill-strong-rest").withDefault((e=>Ht.getValueFor(e).evaluate(e).rest)),Rt=C("neutral-fill-strong-hover").withDefault((e=>Ht.getValueFor(e).evaluate(e).hover)),Et=C("neutral-fill-strong-active").withDefault((e=>Ht.getValueFor(e).evaluate(e).active)),Lt=C("neutral-fill-strong-focus").withDefault((e=>Ht.getValueFor(e).evaluate(e).focus)),At=k("neutral-fill-layer-recipe").withDefault({evaluate:(e,t)=>function(e,t,i){const o=e.closestIndexOf(t);return e.get(o-(o<i?-1*i:i))}(He.getValueFor(e),t||Ue.getValueFor(e),ke.getValueFor(e))}),Vt=C("neutral-fill-layer-rest").withDefault((e=>At.getValueFor(e).evaluate(e))),Pt=k("focus-stroke-outer-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,3.5);var t,i}}),Bt=C("focus-stroke-outer").withDefault((e=>Pt.getValueFor(e).evaluate(e))),Mt=k("focus-stroke-inner-recipe").withDefault({evaluate:e=>{return t=Re.getValueFor(e),i=Ue.getValueFor(e),o=Bt.getValueFor(e),t.colorContrast(o,3.5,t.closestIndexOf(t.source),-1*p(i));var t,i,o}}),zt=C("focus-stroke-inner").withDefault((e=>Mt.getValueFor(e).evaluate(e))),Nt=k("neutral-foreground-hint-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,4.5);var t,i}}),jt=C("neutral-foreground-hint").withDefault((e=>Nt.getValueFor(e).evaluate(e))),Gt=k("neutral-foreground-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,14);var t,i}}),qt=C("neutral-foreground-rest").withDefault((e=>Gt.getValueFor(e).evaluate(e))),Ut=C({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t,i,o,s,r){const n=e.closestIndexOf(t),a=p(t),l=n+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(r-i);return{rest:e.get(l),hover:e.get(c),active:e.get(h),focus:e.get(d)}}(He.getValueFor(e),Ue.getValueFor(e),Te.getValueFor(e),Se.getValueFor(e),_e.getValueFor(e),Ie.getValueFor(e))}),Wt=C("neutral-stroke-rest").withDefault((e=>Ut.getValueFor(e).evaluate(e).rest)),Kt=C("neutral-stroke-hover").withDefault((e=>Ut.getValueFor(e).evaluate(e).hover)),Xt=C("neutral-stroke-active").withDefault((e=>Ut.getValueFor(e).evaluate(e).active)),Yt=C("neutral-stroke-focus").withDefault((e=>Ut.getValueFor(e).evaluate(e).focus)),Qt=k("neutral-stroke-divider-recipe").withDefault({evaluate:(e,t)=>function(e,t,i){return e.get(e.closestIndexOf(t)+p(t)*i)}(He.getValueFor(e),t||Ue.getValueFor(e),Fe.getValueFor(e))}),Zt=C("neutral-stroke-divider-rest").withDefault((e=>Qt.getValueFor(e).evaluate(e))),Jt=o.DesignToken.create({name:"height-number",cssCustomPropertyName:null}).withDefault((e=>(S.getValueFor(e)+O.getValueFor(e))*H.getValueFor(e))),ei=(e,t)=>s.css`
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[127],{20472:(e,t,i)=>{function o(e,t,i){return isNaN(e)||e<=t?t:e>=i?i:e}function s(e,t,i){return isNaN(e)||e<=t?0:e>=i?1:e/(i-t)}function r(e,t,i){return isNaN(e)?t:t+e*(i-t)}function n(e){return e*(Math.PI/180)}function a(e){return e*(180/Math.PI)}function l(e){const t=Math.round(o(e,0,255)).toString(16);return 1===t.length?"0"+t:t}function c(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:t+e*(i-t)}function h(e,t,i){if(e<=0)return t%360;if(e>=1)return i%360;const o=(t-i+360)%360;return o<=(i-t+360)%360?(t-o*e+360)%360:(t+o*e+360)%360}i.r(t),i.d(t,{ColorBlendMode:()=>le,ColorHSL:()=>g,ColorHSV:()=>m,ColorInterpolationSpace:()=>ce,ColorLAB:()=>b,ColorLCH:()=>f,ColorPalette:()=>Be,ColorRGBA64:()=>v,ColorScale:()=>ye,ColorXYZ:()=>y,ComponentStateColorPalette:()=>Ze,Histogram:()=>qe,ImageDataPixelBlob:()=>it,PixelBox:()=>We,blend:()=>he,blendBurn:()=>K,blendBurnChannel:()=>W,blendColor:()=>X,blendDarken:()=>Q,blendDarkenChannel:()=>Y,blendDodge:()=>J,blendDodgeChannel:()=>Z,blendLighten:()=>te,blendLightenChannel:()=>ee,blendMultiply:()=>oe,blendMultiplyChannel:()=>ie,blendOverlay:()=>re,blendOverlayChannel:()=>se,blendScreen:()=>ae,blendScreenChannel:()=>ne,calculateOverlayColor:()=>S,centeredRescale:()=>je,clamp:()=>o,computeAlphaBlend:()=>de,contrastRatio:()=>C,darkenViaLAB:()=>q,defaultCenteredRescaleConfig:()=>Ne,defaultPaletteExtractionConfig:()=>Je,defaultQuantizeConfig:()=>Xe,degreesToRadians:()=>n,denormalize:()=>r,desaturateViaLCH:()=>G,extractPalette:()=>et,generateOffCenterPalette:()=>Me,generateScaledPalettes:()=>Ge,getHexStringForByte:()=>l,hslToRGB:()=>I,hsvToRGB:()=>O,insertIntoSortedList:()=>Ue,interpolateByColorSpace:()=>ve,interpolateHSL:()=>pe,interpolateHSV:()=>ge,interpolateLAB:()=>be,interpolateLCH:()=>fe,interpolateRGB:()=>ue,interpolateXYZ:()=>me,isColorNamed:()=>Oe,isColorStringHexARGB:()=>Se,isColorStringHexRGB:()=>Te,isColorStringHexRGBA:()=>_e,isColorStringWebRGB:()=>Ie,isColorStringWebRGBA:()=>Fe,labToLCH:()=>D,labToRGB:()=>B,labToXYZ:()=>R,lchToLAB:()=>H,lchToRGB:()=>M,lerp:()=>c,lerpAnglesInDegrees:()=>h,lerpAnglesInRadians:()=>u,lightenViaLAB:()=>U,loadImageData:()=>tt,matchLightnessIndex:()=>Pe,normalize:()=>s,parseColor:()=>Ve,parseColorHexARGB:()=>De,parseColorHexRGB:()=>He,parseColorHexRGBA:()=>Re,parseColorNamed:()=>Ae,parseColorWebRGB:()=>Ee,parseColorWebRGBA:()=>Le,quantize:()=>Qe,quantizeHistogram:()=>Ye,radiansToDegrees:()=>a,rescale:()=>ze,rgbToHSL:()=>_,rgbToHSV:()=>F,rgbToLAB:()=>V,rgbToLCH:()=>P,rgbToLinearLuminance:()=>x,rgbToRelativeLuminance:()=>$,rgbToTemperature:()=>N,rgbToXYZ:()=>L,roundToPrecisionSmall:()=>p,saturateViaLCH:()=>j,temperatureToRGB:()=>z,xyzToLAB:()=>E,xyzToRGB:()=>A});const d=2*Math.PI;function u(e,t,i){if(isNaN(e)||e<=0)return t%d;if(e>=1)return i%d;const o=(t-i+d)%d;return o<=(i-t+d)%d?(t-o*e+d)%d:(t+o*e+d)%d}function p(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}class g{constructor(e,t,i){this.h=e,this.s=t,this.l=i}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.l)?null:new g(e.h,e.s,e.l)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new g(p(this.h,e),p(this.s,e),p(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class m{constructor(e,t,i){this.h=e,this.s=t,this.v=i}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.v)?null:new m(e.h,e.s,e.v)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new m(p(this.h,e),p(this.s,e),p(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class b{constructor(e,t,i){this.l=e,this.a=t,this.b=i}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.a)||isNaN(e.b)?null:new b(e.l,e.a,e.b)}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new b(p(this.l,e),p(this.a,e),p(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}b.epsilon=216/24389,b.kappa=24389/27;class f{constructor(e,t,i){this.l=e,this.c=t,this.h=i}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.c)||isNaN(e.h)?null:new f(e.l,e.c,e.h)}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new f(p(this.l,e),p(this.c,e),p(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class v{constructor(e,t,i,o){this.r=e,this.g=t,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(e){return!e||isNaN(e.r)||isNaN(e.g)||isNaN(e.b)?null:new v(e.r,e.g,e.b,e.a)}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(r(this.r,0,255))},${Math.round(r(this.g,0,255))},${Math.round(r(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(r(this.r,0,255))},${Math.round(r(this.g,0,255))},${Math.round(r(this.b,0,255))},${o(this.a,0,1)})`}roundToPrecision(e){return new v(p(this.r,e),p(this.g,e),p(this.b,e),p(this.a,e))}clamp(){return new v(o(this.r,0,1),o(this.g,0,1),o(this.b,0,1),o(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return l(r(e,0,255))}}class y{constructor(e,t,i){this.x=e,this.y=t,this.z=i}static fromObject(e){return!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.z)?null:new y(e.x,e.y,e.z)}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new y(p(this.x,e),p(this.y,e),p(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function x(e){return.2126*e.r+.7152*e.g+.0722*e.b}function $(e){function t(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}return x(new v(t(e.r),t(e.g),t(e.b),1))}y.whitePoint=new y(.95047,1,1.08883);const w=(e,t)=>(e+.05)/(t+.05);function C(e,t){const i=$(e),o=$(t);return i>o?w(i,o):w(o,i)}function k(e,t,i){return i-t==0?0:(e-t)/(i-t)}function T(e,t,i){return(k(e.r,t.r,i.r)+k(e.g,t.g,i.g)+k(e.b,t.b,i.b))/3}function S(e,t,i=null){let o=0,s=i;return null!==s?o=T(e,t,s):(s=new v(0,0,0,1),o=T(e,t,s),o<=0&&(s=new v(1,1,1,1),o=T(e,t,s))),o=Math.round(1e3*o)/1e3,new v(s.r,s.g,s.b,o)}function _(e){const t=Math.max(e.r,e.g,e.b),i=Math.min(e.r,e.g,e.b),o=t-i;let s=0;0!==o&&(s=t===e.r?(e.g-e.b)/o%6*60:t===e.g?60*((e.b-e.r)/o+2):60*((e.r-e.g)/o+4)),s<0&&(s+=360);const r=(t+i)/2;let n=0;return 0!==o&&(n=o/(1-Math.abs(2*r-1))),new g(s,n,r)}function I(e,t=1){const i=(1-Math.abs(2*e.l-1))*e.s,o=i*(1-Math.abs(e.h/60%2-1)),s=e.l-i/2;let r=0,n=0,a=0;return e.h<60?(r=i,n=o,a=0):e.h<120?(r=o,n=i,a=0):e.h<180?(r=0,n=i,a=o):e.h<240?(r=0,n=o,a=i):e.h<300?(r=o,n=0,a=i):e.h<360&&(r=i,n=0,a=o),new v(r+s,n+s,a+s,t)}function F(e){const t=Math.max(e.r,e.g,e.b),i=t-Math.min(e.r,e.g,e.b);let o=0;0!==i&&(o=t===e.r?(e.g-e.b)/i%6*60:t===e.g?60*((e.b-e.r)/i+2):60*((e.r-e.g)/i+4)),o<0&&(o+=360);let s=0;return 0!==t&&(s=i/t),new m(o,s,t)}function O(e,t=1){const i=e.s*e.v,o=i*(1-Math.abs(e.h/60%2-1)),s=e.v-i;let r=0,n=0,a=0;return e.h<60?(r=i,n=o,a=0):e.h<120?(r=o,n=i,a=0):e.h<180?(r=0,n=i,a=o):e.h<240?(r=0,n=o,a=i):e.h<300?(r=o,n=0,a=i):e.h<360&&(r=i,n=0,a=o),new v(r+s,n+s,a+s,t)}function H(e){let t=0,i=0;return 0!==e.h&&(t=Math.cos(n(e.h))*e.c,i=Math.sin(n(e.h))*e.c),new b(e.l,t,i)}function D(e){let t=0;(Math.abs(e.b)>.001||Math.abs(e.a)>.001)&&(t=a(Math.atan2(e.b,e.a))),t<0&&(t+=360);const i=Math.sqrt(e.a*e.a+e.b*e.b);return new f(e.l,i,t)}function R(e){const t=(e.l+16)/116,i=t+e.a/500,o=t-e.b/200,s=Math.pow(i,3),r=Math.pow(t,3),n=Math.pow(o,3);let a=0;a=s>b.epsilon?s:(116*i-16)/b.kappa;let l=0;l=e.l>b.epsilon*b.kappa?r:e.l/b.kappa;let c=0;return c=n>b.epsilon?n:(116*o-16)/b.kappa,a=y.whitePoint.x*a,l=y.whitePoint.y*l,c=y.whitePoint.z*c,new y(a,l,c)}function E(e){function t(e){return e>b.epsilon?Math.pow(e,1/3):(b.kappa*e+16)/116}const i=t(e.x/y.whitePoint.x),o=t(e.y/y.whitePoint.y),s=t(e.z/y.whitePoint.z);return new b(116*o-16,500*(i-o),200*(o-s))}function L(e){function t(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}const i=t(e.r),o=t(e.g),s=t(e.b);return new y(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}function A(e,t=1){function i(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055}const o=i(3.2404542*e.x-1.5371385*e.y-.4985314*e.z),s=i(-.969266*e.x+1.8760108*e.y+.041556*e.z),r=i(.0556434*e.x-.2040259*e.y+1.0572252*e.z);return new v(o,s,r,t)}function V(e){return E(L(e))}function B(e,t=1){return A(R(e),t)}function P(e){return D(V(e))}function M(e,t=1){return B(H(e),t)}function z(e,t=1){let i=0,o=0,s=0;return e<=1e3?e=1e3:e>=4e4&&(e=4e4),e<6600?(i=255,o=e/100-2,o=-155.25485562709179-.44596950469579133*o+104.49216199393888*Math.log(o)):(i=e/100-55,i=351.97690566805693+.114206453784165*i-40.25366309332127*Math.log(i),o=e/100-50,o=325.4494125711974+.07943456536662342*o-28.0852963507957*Math.log(o)),e>=6600?s=255:e<2e3?s=0:(s=e/100-10,s=.8274096064007395*s-254.76935184120902+115.67994401066147*Math.log(s)),new v(i/255,o/255,s/255,t)}function N(e){let t=0,i=1e3,o=4e4;for(;o-i>.4;){t=(o+i)/2;const s=z(t);s.b/s.r>=e.b/e.r?o=t:i=t}return Math.round(t)}function j(e,t,i=18){const o=P(e);let s=o.c+t*i;return s<0&&(s=0),M(new f(o.l,s,o.h))}function G(e,t,i=18){return j(e,-1*t,i)}function q(e,t,i=18){const o=V(e),s=o.l-t*i;return B(new b(s,o.a,o.b))}function U(e,t,i=18){return q(e,-1*t,i)}function W(e,t){return 0===t?0:1-(1-e)/t}function K(e,t){return new v(W(e.r,t.r),W(e.g,t.g),W(e.b,t.b),1)}function X(e,t){const i=_(e),o=_(t);return 0===o.s?new v(i.l,i.l,i.l,1):I(new g(o.h,o.s,i.l))}function Y(e,t){return Math.min(e,t)}function Q(e,t){return new v(Y(e.r,t.r),Y(e.g,t.g),Y(e.b,t.b),1)}function Z(e,t){if(t>=1)return 1;const i=e/(1-t);return i>=1?1:i}function J(e,t){return new v(Z(e.r,t.r),Z(e.g,t.g),Z(e.b,t.b),1)}function ee(e,t){return Math.max(e,t)}function te(e,t){return new v(ee(e.r,t.r),ee(e.g,t.g),ee(e.b,t.b),1)}function ie(e,t){return e*t}function oe(e,t){return new v(ie(e.r,t.r),ie(e.g,t.g),ie(e.b,t.b),1)}function se(e,t){return o(e<.5?2*t*e:1-2*(1-t)*(1-e),0,1)}function re(e,t){return new v(se(e.r,t.r),se(e.g,t.g),se(e.b,t.b),1)}function ne(e,t){return 1-(1-t)*(1-e)}function ae(e,t){return new v(ne(e.r,t.r),ne(e.g,t.g),ne(e.b,t.b),1)}var le,ce;function he(e,t,i){switch(e){case le.Burn:return K(t,i);case le.Color:return X(t,i);case le.Darken:return Q(t,i);case le.Dodge:return J(t,i);case le.Lighten:return te(t,i);case le.Multiply:return oe(t,i);case le.Overlay:return re(t,i);case le.Screen:return ae(t,i);default:throw new Error("Unknown blend mode")}}function de(e,t){if(t.a>=1)return t;if(t.a<=0)return new v(e.r,e.g,e.b,1);const i=t.a*t.r+(1-t.a)*e.r,o=t.a*t.g+(1-t.a)*e.g,s=t.a*t.b+(1-t.a)*e.b;return new v(i,o,s,1)}function ue(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new v(c(e,t.r,i.r),c(e,t.g,i.g),c(e,t.b,i.b),c(e,t.a,i.a))}function pe(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new g(h(e,t.h,i.h),c(e,t.s,i.s),c(e,t.l,i.l))}function ge(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new m(h(e,t.h,i.h),c(e,t.s,i.s),c(e,t.v,i.v))}function me(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new y(c(e,t.x,i.x),c(e,t.y,i.y),c(e,t.z,i.z))}function be(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new b(c(e,t.l,i.l),c(e,t.a,i.a),c(e,t.b,i.b))}function fe(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new f(c(e,t.l,i.l),c(e,t.c,i.c),h(e,t.h,i.h))}function ve(e,t,i,o){if(isNaN(e)||e<=0)return i;if(e>=1)return o;switch(t){case ce.HSL:return I(pe(e,_(i),_(o)));case ce.HSV:return O(ge(e,F(i),F(o)));case ce.XYZ:return A(me(e,L(i),L(o)));case ce.LAB:return B(be(e,V(i),V(o)));case ce.LCH:return M(fe(e,P(i),P(o)));default:return ue(e,i,o)}}!function(e){e[e.Burn=0]="Burn",e[e.Color=1]="Color",e[e.Darken=2]="Darken",e[e.Dodge=3]="Dodge",e[e.Lighten=4]="Lighten",e[e.Multiply=5]="Multiply",e[e.Overlay=6]="Overlay",e[e.Screen=7]="Screen"}(le||(le={})),function(e){e[e.RGB=0]="RGB",e[e.HSL=1]="HSL",e[e.HSV=2]="HSV",e[e.XYZ=3]="XYZ",e[e.LAB=4]="LAB",e[e.LCH=5]="LCH"}(ce||(ce={}));class ye{constructor(e){if(null==e||0===e.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(e)}static createBalancedColorScale(e){if(null==e||0===e.length)throw new Error("The colors argument must be non-empty");const t=new Array(e.length);for(let i=0;i<e.length;i++)0===i?t[i]={color:e[i],position:0}:i===e.length-1?t[i]={color:e[i],position:1}:t[i]={color:e[i],position:i*(1/(e.length-1))};return new ye(t)}getColor(e,t=ce.RGB){if(1===this.stops.length)return this.stops[0].color;if(e<=0)return this.stops[0].color;if(e>=1)return this.stops[this.stops.length-1].color;let i=0;for(let t=0;t<this.stops.length;t++)this.stops[t].position<=e&&(i=t);let o=i+1;o>=this.stops.length&&(o=this.stops.length-1);return ve((e-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),t,this.stops[i].color,this.stops[o].color)}trim(e,t,i=ce.RGB){if(e<0||t>1||t<e)throw new Error("Invalid bounds");if(e===t)return new ye([{color:this.getColor(e,i),position:0}]);const o=[];for(let i=0;i<this.stops.length;i++)this.stops[i].position>=e&&this.stops[i].position<=t&&o.push(this.stops[i]);if(0===o.length)return new ye([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}]);o[0].position!==e&&o.unshift({color:this.getColor(e),position:e}),o[o.length-1].position!==t&&o.push({color:this.getColor(t),position:t});const s=t-e,r=new Array(o.length);for(let t=0;t<o.length;t++)r[t]={color:o[t].color,position:(o[t].position-e)/s};return new ye(r)}findNextColor(e,t,i=!1,o=ce.RGB,s=.005,r=32){isNaN(e)||e<=0?e=0:e>=1&&(e=1);const n=this.getColor(e,o),a=i?0:1;if(C(n,this.getColor(a,o))<=t)return a;let l=i?0:e,c=i?e:0,h=a,d=0;for(;d<=r;){h=Math.abs(c-l)/2+l;const e=C(n,this.getColor(h,o));if(Math.abs(e-t)<=s)return h;e>t?i?l=h:c=h:i?c=h:l=h,d++}return h}clone(){const e=new Array(this.stops.length);for(let t=0;t<e.length;t++)e[t]={color:this.stops[t].color,position:this.stops[t].position};return new ye(e)}sortColorScaleStops(e){return e.sort(((e,t)=>{const i=e.position,o=t.position;return i<o?-1:i>o?1:0}))}}const xe={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}},$e=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,we=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,Ce=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,ke=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i;function Te(e){return Ce.test(e)}function Se(e){return ke.test(e)}function _e(e){return Se(e)}function Ie(e){return $e.test(e)}function Fe(e){return we.test(e)}function Oe(e){return xe.hasOwnProperty(e)}function He(e){const t=Ce.exec(e);if(null===t)return null;let i=t[1];if(3===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2);i=e.concat(e,t,t,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255),1)}function De(e){const t=ke.exec(e);if(null===t)return null;let i=t[1];if(4===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2),s=i.charAt(3);i=e.concat(e,t,t,o,o,s,s)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255),s((4278190080&o)>>>24,0,255))}function Re(e){const t=ke.exec(e);if(null===t)return null;let i=t[1];if(4===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2),s=i.charAt(3);i=e.concat(e,t,t,o,o,s,s)}const o=parseInt(i,16);return isNaN(o)?null:new v(s((4278190080&o)>>>24,0,255),s((16711680&o)>>>16,0,255),s((65280&o)>>>8,0,255),s(255&o,0,255))}function Ee(e){const t=$e.exec(e);if(null===t)return null;const i=t[1].split(",");return new v(s(Number(i[0]),0,255),s(Number(i[1]),0,255),s(Number(i[2]),0,255),1)}function Le(e){const t=we.exec(e);if(null===t)return null;const i=t[1].split(",");return 4===i.length?new v(s(Number(i[0]),0,255),s(Number(i[1]),0,255),s(Number(i[2]),0,255),Number(i[3])):null}function Ae(e){const t=xe[e.toLowerCase()];return t?new v(t.r,t.g,t.b,t.hasOwnProperty("a")?t.a:void 0):null}function Ve(e){const t=e.toLowerCase();return Te(t)?He(t):_e(t)?De(t):Ie(t)?Ee(t):Fe(t)?Le(t):Oe(t)?Ae(t):null}class Be{constructor(e){this.config=Object.assign({},Be.defaultPaletteConfig,e),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=!1;for(const i in e)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(e[i])||(this.config[i]=e[i],t=!0):e[i]!==this.config[i]&&(this.config[i]=e[i],t=!0));return t&&this.updatePaletteColors(),t}updatePaletteColors(){const e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++)this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const e=_(this.config.baseColor),t=new ye([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let i=t.getColor(0),o=t.getColor(1);if(e.s>=this.config.saturationAdjustmentCutoff&&(i=j(i,this.config.saturationLight),o=j(o,this.config.saturationDark)),0!==this.config.multiplyLight){const e=oe(this.config.baseColor,i);i=ve(this.config.multiplyLight,this.config.interpolationMode,i,e)}if(0!==this.config.multiplyDark){const e=oe(this.config.baseColor,o);o=ve(this.config.multiplyDark,this.config.interpolationMode,o,e)}if(0!==this.config.overlayLight){const e=re(this.config.baseColor,i);i=ve(this.config.overlayLight,this.config.interpolationMode,i,e)}if(0!==this.config.overlayDark){const e=re(this.config.baseColor,o);o=ve(this.config.overlayDark,this.config.interpolationMode,o,e)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new ye([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new ye([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new ye([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new ye([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}function Pe(e,t){const i=_(e);let o=Number.MAX_VALUE,s=0;for(let e=0;e<t.length;e++){const r=_(t[e]),n=Math.abs(r.l-i.l);n<o&&(o=n,s=e)}return s}function Me(e,t,i=Be.greyscalePaletteConfig,o=Be.defaultPaletteConfig){const s=Pe(e,new Be(Object.assign(Object.assign({},i),{steps:t})).palette);return new Be(Object.assign(Object.assign({},o),{steps:t,baseColor:e,baseScalePosition:s/(t-1)}))}function ze(e,t,i){if(e.length<=1||t<=1)throw new Error("The input array and targetSize must both be greater than 1");if(i&&t<=e.length)throw new Error("If preserveInputColors is true then targetSize must be greater than the length of the input array");const o=new Array(e.length);if(i)for(let i=0;i<e.length;i++){const s=i/(e.length-1);let r=2,n=0;for(let e=0;e<t;e++){const i=Math.abs(e/(t-1)-s);if(i<r&&(r=i,n=e),0===i)break}o[i]={color:e[i],position:n/(t-1)}}else for(let t=0;t<o.length;t++)o[t]={color:e[t],position:t/(e.length-1)};const s=new ye(o),r=new Array(t);for(let e=0;e<t;e++)r[e]=s.getColor(e/(t-1));return r}Be.defaultPaletteConfig={baseColor:He("#808080"),steps:11,interpolationMode:ce.RGB,scaleColorLight:new v(1,1,1,1),scaleColorDark:new v(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},Be.greyscalePaletteConfig={baseColor:He("#808080"),steps:11,interpolationMode:ce.RGB,scaleColorLight:new v(1,1,1,1),scaleColorDark:new v(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};const Ne={targetSize:63,spacing:4,scaleColorLight:Be.defaultPaletteConfig.scaleColorLight,scaleColorDark:Be.defaultPaletteConfig.scaleColorDark};function je(e,t=Ne){if(0===e.length)return[];const i=Math.floor((t.targetSize-((e.length-1)*t.spacing+1))/2);if(i<0)throw new Error("(targetSize - ((input.length - 1) * spacing + 1)) / 2 must be >= 0");const o=new Array(e.length+2);o[0]={position:0,color:t.scaleColorLight},o[o.length-1]={position:1,color:t.scaleColorDark};for(let s=0;s<e.length;s++)o[s+1]={color:e[s],position:(s*t.spacing+i)/(t.targetSize-1)};const s=new ye(o),r=new Array(t.targetSize);for(let e=0;e<t.targetSize;e++)r[e]=s.getColor(e/(t.targetSize-1));return r}function Ge(e,t=11,i=Ne){const o=Me(e,t),s=je(o.palette,i);return{short:o.palette,long:s}}class qe{constructor(e,t=5,i=5,o=null){if(this.getHistogramIndex=(e,t,i)=>{const o=(e<<2*this.significantBits)+(t<<this.significantBits)+i;if(o>=this.data.length)throw new Error("RGB value is outside the bounds of the histogram");return o},this.getHistogramValue=(e,t,i)=>this.data[this.getHistogramIndex(e,t,i)],this.setHistogramValue=(e,t,i,o)=>{this.data[this.getHistogramIndex(t,i,o)]=e},t<1||t>8)throw new Error("significantBits must be in the range [1,8]");if(i<0)throw new Error("pixelSkipping must be >= 0");this.significantBits=t;const s=8-this.significantBits;this.minRed=255>>>s,this.maxRed=0,this.minGreen=255>>>s,this.maxGreen=0,this.minBlue=255>>>s,this.maxBlue=0;const r=1<<3*t;this.data=new Uint32Array(r),this.data.fill(0),this.total=0;let n=0;for(let t=0;t<e.height;t++)for(let r=0;r<e.width;r++){if(i>0&&n++%i!=0)continue;const a=e.getPixelRGBA(r,t);if(null!==o&&!o(a))continue;a[0]=a[0]>>>s,a[1]=a[1]>>>s,a[2]=a[2]>>>s,this.minRed=Math.min(a[0],this.minRed),this.maxRed=Math.max(a[0],this.maxRed),this.minGreen=Math.min(a[1],this.minGreen),this.maxGreen=Math.max(a[1],this.maxGreen),this.minBlue=Math.min(a[2],this.minBlue),this.maxBlue=Math.max(a[2],this.maxBlue);const l=this.getHistogramIndex(a[0],a[1],a[2]);this.data[l]+=1,this.total++}}}function Ue(e,t,i){if(0===e.length)return void e.push(t);const o=i(t);if(o>i(e[0]))return void e.unshift(t);if(o<=i(e[e.length-1]))return void e.push(t);let s=0;for(let t=0;t<e.length;t++)if(o>i(e[t])){s=t;break}e.splice(s,0,t)}class We{constructor(e,t,i,o,s,r,n){this.modifiedMedianCut=()=>{if(1===this.rangeRed&&1===this.rangeGreen&&1===this.rangeBlue)return[this,null];let e,t,i;!function(e){e[e.Red=0]="Red",e[e.Green=1]="Green",e[e.Blue=2]="Blue"}(e||(e={})),this.rangeRed>=this.rangeGreen&&this.rangeRed>=this.rangeBlue?(t=e.Red,i=this.rangeRed):this.rangeGreen>=this.rangeRed&&this.rangeGreen>=this.rangeBlue?(t=e.Green,i=this.rangeGreen):(t=e.Blue,i=this.rangeBlue);const o=new Array(i),s=new Array(i);let r=null,n=null,a=0;if(t===e.Red){for(let e=this.minRed;e<=this.maxRed;e++){let t=0;for(let i=this.minGreen;i<=this.maxGreen;i++)for(let o=this.minBlue;o<=this.maxBlue;o++)t+=this.globalHistogram.getHistogramValue(e,i,o);a+=t,o[e-this.minRed]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minRed;e<=this.maxRed;e++)if(o[e-this.minRed]>=a/2){const t=e-this.minRed,i=this.maxRed-e;let a;for(a=t<=i?Math.min(this.maxRed-1,Math.floor(e+i/2)):Math.max(this.minRed,Math.floor(e-1-t/2));o[a-this.minRed]<=0&&a<this.maxRed-1;)a++;let l=s[a-this.minRed];for(;0===l&&a>this.minRed&&0!==o[a-this.minRed-1];)a--,l=s[a-this.minRed];r=new We(this.globalHistogram,this.minRed,a,this.minGreen,this.maxGreen,this.minBlue,this.maxBlue),n=new We(this.globalHistogram,a+1,this.maxRed,this.minGreen,this.maxGreen,this.minBlue,this.maxBlue);break}}else if(t===e.Green){for(let e=this.minGreen;e<=this.maxGreen;e++){let t=0;for(let i=this.minRed;i<=this.maxRed;i++)for(let o=this.minBlue;o<=this.maxBlue;o++)t+=this.globalHistogram.getHistogramValue(i,e,o);a+=t,o[e-this.minGreen]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minGreen;e<=this.maxGreen;e++)if(o[e-this.minGreen]>=a/2){const t=e-this.minGreen,i=this.maxGreen-e;let a;for(a=t<=i?Math.min(this.maxGreen-1,Math.floor(e+i/2)):Math.max(this.minGreen,Math.floor(e-1-t/2));o[a-this.minGreen]<=0&&a<this.maxGreen-1;)a++;let l=s[a-this.minGreen];for(;0===l&&a>this.minGreen&&0!==o[a-this.minGreen-1];)a--,l=s[a-this.minGreen];r=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,a,this.minBlue,this.maxBlue),n=new We(this.globalHistogram,this.minRed,this.maxRed,a+1,this.maxGreen,this.minBlue,this.maxBlue);break}}else{for(let e=this.minBlue;e<=this.maxBlue;e++){let t=0;for(let i=this.minRed;i<=this.maxRed;i++)for(let o=this.minGreen;o<=this.maxGreen;o++)t+=this.globalHistogram.getHistogramValue(i,o,e);a+=t,o[e-this.minBlue]=a}for(let e=0;e<o.length;e++)s[e]=a-o[e];for(let e=this.minBlue;e<=this.maxBlue;e++)if(o[e-this.minBlue]>=a/2){const t=e-this.minBlue,i=this.maxBlue-e;let a;for(a=t<=i?Math.min(this.maxBlue-1,Math.floor(e+i/2)):Math.max(this.minBlue,Math.floor(e-1-t/2));o[a-this.minBlue]<=0&&a<this.maxBlue-1;)a++;let l=s[a-this.minBlue];for(;0===l&&a>this.minBlue&&0!==o[a-this.minBlue-1];)a--,l=s[a-this.minBlue];r=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,this.maxGreen,this.minBlue,a),n=new We(this.globalHistogram,this.minRed,this.maxRed,this.minGreen,this.maxGreen,a+1,this.maxBlue);break}}return[r,n]},this.pixelCount=0,this.globalHistogram=e,this.minRed=t,this.maxRed=i,this.minGreen=o,this.maxGreen=s,this.minBlue=r,this.maxBlue=n,this.rangeRed=this.maxRed-this.minRed+1,this.rangeGreen=this.maxGreen-this.minGreen+1,this.rangeBlue=this.maxBlue-this.minBlue+1,this.colorVolume=this.rangeRed*this.rangeGreen*this.rangeBlue;let a=0,l=0,c=0;const h=1<<8-this.globalHistogram.significantBits;for(let e=t;e<=i;e++)for(let t=o;t<=s;t++)for(let i=r;i<=n;i++){const o=this.globalHistogram.getHistogramValue(e,t,i);this.pixelCount+=o,a+=o*(e+.5)*h,l+=o*(t+.5)*h,c+=o*(i+.5)*h}0===this.pixelCount?this.averageColor=new v(h*((t+i+1)/2)/255,h*((o+s+1)/2)/255,h*((r+n+1)/2)/255,1):this.averageColor=new v(a/this.pixelCount/255,l/this.pixelCount/255,c/this.pixelCount/255,1)}}function Ke(e,t){if(null===t)return e.length;let i=0;for(let o=0;o<e.length;o++)t(e[o])&&i++;return i}const Xe={significantBits:5,pixelSkipping:5,targetPaletteSize:64,fractionByPopulation:.85,isBoxValid:e=>!(e.pixelCount<5),isHistogramPixelValid:e=>!(e[3]<128),maxIterations:1e3};function Ye(e,t=Xe){const i=[new We(e,e.minRed,e.maxRed,e.minGreen,e.maxGreen,e.minBlue,e.maxBlue)];let o=Ke(i,t.isBoxValid);const s=Math.floor(t.targetPaletteSize*t.fractionByPopulation),r=e=>e.pixelCount;let n=0;for(;n<=t.maxIterations;){if(i.length>0){const e=i.shift().modifiedMedianCut();null!==e[0]&&Ue(i,e[0],r),null!==e[1]&&Ue(i,e[1],r)}if(o=Ke(i,t.isBoxValid),o>=s||i.length<=1)break;n++}if(o<t.targetPaletteSize){const e=e=>e.pixelCount*e.colorVolume;for(i.sort(((t,i)=>{const o=e(t),s=e(i);return o===s?0:o>s?-1:1})),n=0;n<=t.maxIterations;){if(i.length>0){const t=i.shift().modifiedMedianCut();null!==t[0]&&Ue(i,t[0],e),null!==t[1]&&Ue(i,t[1],e)}if(o=Ke(i,t.isBoxValid),o>=t.targetPaletteSize||i.length<=1)break;n++}}const a=new Array(o);let l=0;for(let e=0;e<i.length;e++)t.isBoxValid&&!t.isBoxValid(i[e])||(a[l]={color:i[e].averageColor,pixelCount:i[e].pixelCount,colorVolume:i[e].colorVolume},l++);return a}function Qe(e,t=Xe){return Ye(new qe(e,t.significantBits,t.pixelSkipping,t.isHistogramPixelValid),t)}class Ze{constructor(e){this.palette=[],this.config=Object.assign({},Ze.defaultPaletteConfig,e),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);const t=.14,i=new v(t,t,t,1),o=new Be(Object.assign(Object.assign({},Be.greyscalePaletteConfig),{baseColor:i,baseScalePosition:86/94,steps:e})).palette,s=(x(this.config.baseColor)+_(this.config.baseColor).l)/2,r=this.matchRelativeLuminanceIndex(s,o)/(e-1),n=this.matchRelativeLuminanceIndex(t,o)/(e-1),a=_(this.config.baseColor),l=I(g.fromObject({h:a.h,s:a.s,l:t})),c=I(g.fromObject({h:a.h,s:a.s,l:.06})),h=new Array(5);h[0]={position:0,color:new v(1,1,1,1)},h[1]={position:r,color:this.config.baseColor},h[2]={position:n,color:l},h[3]={position:.99,color:c},h[4]={position:1,color:new v(0,0,0,1)};const d=new ye(h);this.palette=new Array(e);for(let t=0;t<e;t++){const i=d.getColor(t/(e-1),ce.RGB);this.palette[t]=i}}matchRelativeLuminanceIndex(e,t){let i=Number.MAX_VALUE,o=0,s=0;const r=t.length;for(;s<r;s++){const r=Math.abs(x(t[s])-e);r<i&&(i=r,o=s)}return o}}Ze.defaultPaletteConfig={baseColor:He("#808080"),steps:94};const Je={saturationWeight:6,luminosityWeight:3,populationWeight:1,volumeWeight:.1,constraints:[{id:"Vibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.5,minLuminosity:.3,maxLuminosity:.7},{id:"LightVibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.74,minLuminosity:.55,maxLuminosity:1},{id:"DarkVibrant",targetSaturation:1,minSaturation:.35,maxSaturation:1,targetLuminosity:.26,minLuminosity:0,maxLuminosity:.45},{id:"Muted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.5,minLuminosity:.3,maxLuminosity:.7},{id:"LightMuted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.74,minLuminosity:.55,maxLuminosity:1},{id:"DarkMuted",targetSaturation:.3,minSaturation:0,maxSaturation:.4,targetLuminosity:.26,minLuminosity:0,maxLuminosity:.45}]};function et(e,t=Je){if(0===t.constraints.length)return[];let i=0,o=0;for(let t=0;t<e.length;t++)i+=e[t].pixelCount,o+=e[t].colorVolume;const s=new Array(t.constraints.length),r=new Array(t.constraints.length);for(let e=0;e<s.length;e++)r[e]=0,s[e]={found:!1,constraint:t.constraints[e]};const n=t.saturationWeight+t.luminosityWeight+t.populationWeight+t.volumeWeight;for(let a=0;a<e.length;a++){const l=_(e[a].color);for(let c=0;c<t.constraints.length;c++)if(l.s>=t.constraints[c].minSaturation&&l.s<=t.constraints[c].maxSaturation&&l.l>=t.constraints[c].minLuminosity&&l.l<=t.constraints[c].maxLuminosity){const h=e[a].pixelCount/i,d=e[a].colorVolume/o,u=1-Math.abs(l.s-t.constraints[c].targetSaturation),p=1-Math.abs(l.l-t.constraints[c].targetLuminosity),g=(h*t.populationWeight+d*t.volumeWeight+u*t.saturationWeight+p*t.luminosityWeight)/n;if(g>r[c]){let t=!1;for(let i=0;i<c;i++)if(s[i].found&&s[i].color.color.equalValue(e[a].color)){t=!0;break}t||(r[c]=g,s[c].found=!0,s[c].color=e[a])}}}return s}function tt(e){return new Promise(((t,i)=>{const o=new Image;o?(o.onload=e=>{const s=document.createElement("canvas");if(!s)return void i("Unable to create canvas");s.width=o.naturalWidth,s.height=o.naturalHeight;const r=s.getContext("2d");if(!r)return void i("Unable to create context");r.drawImage(o,0,0,s.width,s.height);const n=r.getImageData(0,0,s.width,s.height);t(n)},o.onerror=e=>{i(e)},o.onabort=e=>{i(e)},o.src=e):i("Unable to create image")}))}class it{constructor(e){this.getPixel=(e,t)=>{const i=this.getPixelRGBA(e,t);return new v(i[0]/255,i[1]/255,i[2]/255,i[3]/255)},this.getPixelRGBA=(e,t)=>{if(e<0||e>=this.width||t<0||t>=this.height)throw new Error("Requested pixel is outside of the image bounds");const i=4*(t*this.width+e);return[this.image.data[i],this.image.data[i+1],this.image.data[i+2],this.image.data[i+3]]},this.image=e,this.width=e.width,this.height=e.height,this.totalPixels=this.width*this.height}}},34619:(e,t,i)=>{i.r(t),i.d(t,{Accordion:()=>o.Accordion,AccordionItem:()=>o.AccordionItem,ActionsStyles:()=>vo,Anchor:()=>mi,AnchoredRegion:()=>o.AnchoredRegion,Avatar:()=>wi,Badge:()=>o.Badge,Breadcrumb:()=>o.Breadcrumb,BreadcrumbItem:()=>o.BreadcrumbItem,Button:()=>Di,Calendar:()=>o.Calendar,CalendarStyles:()=>Ei,Card:()=>Bi,Checkbox:()=>o.Checkbox,Combobox:()=>qi,DataGrid:()=>o.DataGrid,DataGridCell:()=>o.DataGridCell,DataGridRow:()=>o.DataGridRow,DesignSystemProvider:()=>io,Dialog:()=>o.Dialog,DirectionalStyleSheetBehavior:()=>yi,Disclosure:()=>co,Divider:()=>o.Divider,Flipper:()=>o.Flipper,HorizontalScroll:()=>xo,Listbox:()=>ko,ListboxOption:()=>o.ListboxOption,Menu:()=>Fo,MenuItem:()=>o.MenuItem,NumberField:()=>Do,PaletteRGB:()=>g,Picker:()=>o.Picker,PickerMenu:()=>Po,Progress:()=>o.BaseProgress,ProgressRing:()=>o.BaseProgress,Radio:()=>o.Radio,RadioGroup:()=>o.RadioGroup,Search:()=>ts,Select:()=>ss,Skeleton:()=>o.Skeleton,Slider:()=>o.Slider,SliderLabel:()=>us,StandardLuminance:()=>$,SwatchRGB:()=>l,Switch:()=>o.Switch,Tab:()=>o.Tab,TabPanel:()=>o.TabPanel,Tabs:()=>o.Tabs,TextArea:()=>_s,TextField:()=>Os,Toolbar:()=>Rs,Tooltip:()=>o.Tooltip,TreeItem:()=>o.TreeItem,TreeView:()=>o.TreeView,accentColor:()=>De,accentFillActive:()=>Qe,accentFillActiveDelta:()=>ie,accentFillFocus:()=>Ze,accentFillFocusDelta:()=>oe,accentFillHover:()=>Ye,accentFillHoverDelta:()=>te,accentFillRecipe:()=>Ke,accentFillRest:()=>Xe,accentFillRestDelta:()=>ee,accentForegroundActive:()=>gt,accentForegroundActiveDelta:()=>ne,accentForegroundFocus:()=>mt,accentForegroundFocusDelta:()=>ae,accentForegroundHover:()=>pt,accentForegroundHoverDelta:()=>re,accentForegroundRecipe:()=>dt,accentForegroundRest:()=>ut,accentForegroundRestDelta:()=>se,accentPalette:()=>Re,accordionItemStyles:()=>oi,accordionStyles:()=>ei,allComponents:()=>Us,anchorStyles:()=>gi,anchoredRegionStyles:()=>fi,avatarStyles:()=>$i,badgeStyles:()=>Ti,baseHeightMultiplier:()=>S,baseHorizontalSpacingMultiplier:()=>_,baseLayerLuminance:()=>I,bodyFont:()=>T,breadcrumbItemStyles:()=>_i,breadcrumbStyles:()=>Fi,buttonStyles:()=>Hi,cardStyles:()=>Vi,checkboxStyles:()=>Mi,comboboxStyles:()=>Gi,controlCornerRadius:()=>F,dataGridCellStyles:()=>Xi,dataGridRowStyles:()=>Ki,dataGridStyles:()=>Wi,density:()=>O,designSystemProviderStyles:()=>so,designSystemProviderTemplate:()=>oo,designUnit:()=>H,dialogStyles:()=>no,direction:()=>D,disabledOpacity:()=>R,disclosureStyles:()=>lo,dividerStyles:()=>uo,fastAccordion:()=>ri,fastAccordionItem:()=>si,fastAnchor:()=>bi,fastAnchoredRegion:()=>vi,fastAvatar:()=>ki,fastBadge:()=>Si,fastBreadcrumb:()=>Oi,fastBreadcrumbItem:()=>Ii,fastButton:()=>Ri,fastCalendar:()=>Li,fastCard:()=>Pi,fastCheckbox:()=>zi,fastCombobox:()=>Ui,fastDataGrid:()=>Zi,fastDataGridCell:()=>Yi,fastDataGridRow:()=>Qi,fastDesignSystemProvider:()=>ro,fastDialog:()=>ao,fastDisclosure:()=>ho,fastDivider:()=>po,fastFlipper:()=>mo,fastHorizontalScroll:()=>$o,fastListbox:()=>To,fastMenu:()=>Oo,fastMenuItem:()=>_o,fastNumberField:()=>Ro,fastOption:()=>Co,fastPicker:()=>Bo,fastPickerList:()=>No,fastPickerListItem:()=>jo,fastPickerMenu:()=>Mo,fastPickerMenuOption:()=>zo,fastProgress:()=>Wo,fastProgressRing:()=>qo,fastRadio:()=>Qo,fastRadioGroup:()=>Xo,fastSearch:()=>is,fastSelect:()=>rs,fastSkeleton:()=>as,fastSlider:()=>fs,fastSliderLabel:()=>ps,fastSwitch:()=>ys,fastTab:()=>ws,fastTabPanel:()=>ks,fastTabs:()=>Ts,fastTextArea:()=>Is,fastTextField:()=>Hs,fastToolbar:()=>Es,fastTooltip:()=>As,fastTreeItem:()=>js,fastTreeView:()=>qs,fillColor:()=>Ue,flipperStyles:()=>go,focusStrokeInner:()=>zt,focusStrokeInnerRecipe:()=>Mt,focusStrokeOuter:()=>Pt,focusStrokeOuterRecipe:()=>Bt,focusStrokeWidth:()=>L,foregroundOnAccentActive:()=>ot,foregroundOnAccentActiveLarge:()=>lt,foregroundOnAccentFocus:()=>st,foregroundOnAccentFocusLarge:()=>ct,foregroundOnAccentHover:()=>it,foregroundOnAccentHoverLarge:()=>at,foregroundOnAccentLargeRecipe:()=>rt,foregroundOnAccentRecipe:()=>et,foregroundOnAccentRest:()=>tt,foregroundOnAccentRestLarge:()=>nt,heightNumberAsToken:()=>Jt,horizontalScrollStyles:()=>yo,horizontalSliderLabelStyles:()=>cs,imgTemplate:()=>Ci,isDark:()=>u,listboxStyles:()=>Ni,menuItemStyles:()=>So,menuStyles:()=>Io,neutralColor:()=>Oe,neutralFillActive:()=>yt,neutralFillActiveDelta:()=>he,neutralFillFocus:()=>xt,neutralFillFocusDelta:()=>de,neutralFillHover:()=>vt,neutralFillHoverDelta:()=>ce,neutralFillInputActive:()=>kt,neutralFillInputActiveDelta:()=>ge,neutralFillInputFocus:()=>Tt,neutralFillInputFocusDelta:()=>me,neutralFillInputHover:()=>Ct,neutralFillInputHoverDelta:()=>pe,neutralFillInputRecipe:()=>$t,neutralFillInputRest:()=>wt,neutralFillInputRestDelta:()=>ue,neutralFillLayerRecipe:()=>At,neutralFillLayerRest:()=>Vt,neutralFillLayerRestDelta:()=>ke,neutralFillRecipe:()=>bt,neutralFillRest:()=>ft,neutralFillRestDelta:()=>le,neutralFillStealthActive:()=>Ft,neutralFillStealthActiveDelta:()=>ve,neutralFillStealthFocus:()=>Ot,neutralFillStealthFocusDelta:()=>ye,neutralFillStealthHover:()=>It,neutralFillStealthHoverDelta:()=>fe,neutralFillStealthRecipe:()=>St,neutralFillStealthRest:()=>_t,neutralFillStealthRestDelta:()=>be,neutralFillStrongActive:()=>Et,neutralFillStrongActiveDelta:()=>we,neutralFillStrongFocus:()=>Lt,neutralFillStrongFocusDelta:()=>Ce,neutralFillStrongHover:()=>Rt,neutralFillStrongHoverDelta:()=>$e,neutralFillStrongRecipe:()=>Ht,neutralFillStrongRest:()=>Dt,neutralFillStrongRestDelta:()=>xe,neutralForegroundHint:()=>jt,neutralForegroundHintRecipe:()=>Nt,neutralForegroundRecipe:()=>Gt,neutralForegroundRest:()=>qt,neutralLayer1:()=>Pe,neutralLayer1Recipe:()=>Be,neutralLayer2:()=>ze,neutralLayer2Recipe:()=>Me,neutralLayer3:()=>je,neutralLayer3Recipe:()=>Ne,neutralLayer4:()=>qe,neutralLayer4Recipe:()=>Ge,neutralLayerCardContainer:()=>Le,neutralLayerCardContainerRecipe:()=>Ee,neutralLayerFloating:()=>Ve,neutralLayerFloatingRecipe:()=>Ae,neutralPalette:()=>He,neutralStrokeActive:()=>Xt,neutralStrokeActiveDelta:()=>_e,neutralStrokeDividerRecipe:()=>Qt,neutralStrokeDividerRest:()=>Zt,neutralStrokeDividerRestDelta:()=>Fe,neutralStrokeFocus:()=>Yt,neutralStrokeFocusDelta:()=>Ie,neutralStrokeHover:()=>Kt,neutralStrokeHoverDelta:()=>Se,neutralStrokeRecipe:()=>Ut,neutralStrokeRest:()=>Wt,neutralStrokeRestDelta:()=>Te,numberFieldStyles:()=>Ho,optionStyles:()=>wo,pickerListItemStyles:()=>Vo,pickerMenuOptionStyles:()=>Ao,pickerMenuStyles:()=>Lo,pickerStyles:()=>Eo,progressRingStyles:()=>Go,progressStyles:()=>Uo,provideFASTDesignSystem:()=>Ws,radioGroupStyles:()=>Ko,radioStyles:()=>Yo,searchStyles:()=>os,selectStyles:()=>ji,skeletonStyles:()=>ns,sliderLabelStyles:()=>ds,sliderStyles:()=>bs,strokeWidth:()=>E,switchStyles:()=>vs,tabPanelStyles:()=>Cs,tabStyles:()=>$s,tabsStyles:()=>xs,textAreaStyles:()=>Ss,textFieldStyles:()=>Fs,toolbarStyles:()=>Ds,tooltipStyles:()=>Ls,treeItemStyles:()=>Ns,treeViewStyles:()=>Gs,typeRampBaseFontSize:()=>A,typeRampBaseLineHeight:()=>V,typeRampMinus1FontSize:()=>B,typeRampMinus1LineHeight:()=>P,typeRampMinus2FontSize:()=>M,typeRampMinus2LineHeight:()=>z,typeRampPlus1FontSize:()=>N,typeRampPlus1LineHeight:()=>j,typeRampPlus2FontSize:()=>G,typeRampPlus2LineHeight:()=>q,typeRampPlus3FontSize:()=>U,typeRampPlus3LineHeight:()=>W,typeRampPlus4FontSize:()=>K,typeRampPlus4LineHeight:()=>X,typeRampPlus5FontSize:()=>Y,typeRampPlus5LineHeight:()=>Q,typeRampPlus6FontSize:()=>Z,typeRampPlus6LineHeight:()=>J,verticalSliderLabelStyles:()=>hs});var o=i(99667),s=i(79292),r=i(5598),n=i(43556);function a(e,t){const i=e.relativeLuminance>t.relativeLuminance?e:t,o=e.relativeLuminance>t.relativeLuminance?t:e;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const l=Object.freeze({create:(e,t,i)=>new c(e,t,i),from:e=>new c(e.r,e.g,e.b)});class c extends n.ColorRGBA64{constructor(e,t,i){super(e,t,i,1),this.toColorString=this.toStringHexRGB,this.contrast=a.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=(0,n.rgbToRelativeLuminance)(this)}static fromObject(e){return new c(e.r,e.g,e.b)}}function h(e,t,i=0,o=e.length-1){if(o===i)return e[i];const s=Math.floor((o-i)/2)+i;return t(e[s])?h(e,t,i,s):h(e,t,s+1,o)}const d=(-.1+Math.sqrt(.21))/2;function u(e){return e.relativeLuminance<=d}function p(e){return u(e)?-1:1}const g=Object.freeze({create:function(e,t,i){return"number"==typeof e?g.from(l.create(e,t,i)):g.from(e)},from:function(e){return function(e){const t={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in t)if(typeof t[i]!=typeof e[i])return!1;return!0}(e)?m.from(e):m.from(l.create(e.r,e.g,e.b))}});class m{constructor(e,t){this.closestIndexCache=new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,i,o){void 0===i&&(i=this.closestIndexOf(e));let s=this.swatches;const r=this.lastIndex;let n=i;void 0===o&&(o=p(e));return-1===o&&(s=this.reversedSwatches,n=r-n),h(s,(i=>a(e,i)>=t),n,r)}get(e){return this.swatches[e]||this.swatches[(0,n.clamp)(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(-1!==t)return this.closestIndexCache.set(e.relativeLuminance,t),t;const i=this.swatches.reduce(((t,i)=>Math.abs(i.relativeLuminance-e.relativeLuminance)<Math.abs(t.relativeLuminance-e.relativeLuminance)?i:t));return t=this.swatches.indexOf(i),this.closestIndexCache.set(e.relativeLuminance,t),t}static from(e){return new m(e,Object.freeze(new n.ComponentStateColorPalette({baseColor:n.ColorRGBA64.fromObject(e)}).palette.map((e=>{const t=(0,n.parseColorHexRGB)(e.toStringHexRGB());return l.create(t.r,t.g,t.b)}))))}}const b=l.create(1,1,1),f=l.create(0,0,0),v=l.from((0,n.parseColorHexRGB)("#808080")),y=l.from((0,n.parseColorHexRGB)("#DA1A5F"));function x(e){return l.create(e,e,e)}const $={LightMode:1,DarkMode:.23};function w(e,t,i,o,s,r){return Math.max(e.closestIndexOf(x(t))+i,o,s,r)}const{create:C}=o.DesignToken;function k(e){return o.DesignToken.create({name:e,cssCustomPropertyName:null})}const T=C("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),S=C("base-height-multiplier").withDefault(10),_=C("base-horizontal-spacing-multiplier").withDefault(3),I=C("base-layer-luminance").withDefault($.DarkMode),F=C("control-corner-radius").withDefault(4),O=C("density").withDefault(0),H=C("design-unit").withDefault(4),D=C("direction").withDefault(r.N.ltr),R=C("disabled-opacity").withDefault(.3),E=C("stroke-width").withDefault(1),L=C("focus-stroke-width").withDefault(2),A=C("type-ramp-base-font-size").withDefault("14px"),V=C("type-ramp-base-line-height").withDefault("20px"),B=C("type-ramp-minus-1-font-size").withDefault("12px"),P=C("type-ramp-minus-1-line-height").withDefault("16px"),M=C("type-ramp-minus-2-font-size").withDefault("10px"),z=C("type-ramp-minus-2-line-height").withDefault("16px"),N=C("type-ramp-plus-1-font-size").withDefault("16px"),j=C("type-ramp-plus-1-line-height").withDefault("24px"),G=C("type-ramp-plus-2-font-size").withDefault("20px"),q=C("type-ramp-plus-2-line-height").withDefault("28px"),U=C("type-ramp-plus-3-font-size").withDefault("28px"),W=C("type-ramp-plus-3-line-height").withDefault("36px"),K=C("type-ramp-plus-4-font-size").withDefault("34px"),X=C("type-ramp-plus-4-line-height").withDefault("44px"),Y=C("type-ramp-plus-5-font-size").withDefault("46px"),Q=C("type-ramp-plus-5-line-height").withDefault("56px"),Z=C("type-ramp-plus-6-font-size").withDefault("60px"),J=C("type-ramp-plus-6-line-height").withDefault("72px"),ee=k("accent-fill-rest-delta").withDefault(0),te=k("accent-fill-hover-delta").withDefault(4),ie=k("accent-fill-active-delta").withDefault(-5),oe=k("accent-fill-focus-delta").withDefault(0),se=k("accent-foreground-rest-delta").withDefault(0),re=k("accent-foreground-hover-delta").withDefault(6),ne=k("accent-foreground-active-delta").withDefault(-4),ae=k("accent-foreground-focus-delta").withDefault(0),le=k("neutral-fill-rest-delta").withDefault(7),ce=k("neutral-fill-hover-delta").withDefault(10),he=k("neutral-fill-active-delta").withDefault(5),de=k("neutral-fill-focus-delta").withDefault(0),ue=k("neutral-fill-input-rest-delta").withDefault(0),pe=k("neutral-fill-input-hover-delta").withDefault(0),ge=k("neutral-fill-input-active-delta").withDefault(0),me=k("neutral-fill-input-focus-delta").withDefault(0),be=k("neutral-fill-stealth-rest-delta").withDefault(0),fe=k("neutral-fill-stealth-hover-delta").withDefault(5),ve=k("neutral-fill-stealth-active-delta").withDefault(3),ye=k("neutral-fill-stealth-focus-delta").withDefault(0),xe=k("neutral-fill-strong-rest-delta").withDefault(0),$e=k("neutral-fill-strong-hover-delta").withDefault(8),we=k("neutral-fill-strong-active-delta").withDefault(-5),Ce=k("neutral-fill-strong-focus-delta").withDefault(0),ke=k("neutral-fill-layer-rest-delta").withDefault(3),Te=k("neutral-stroke-rest-delta").withDefault(25),Se=k("neutral-stroke-hover-delta").withDefault(40),_e=k("neutral-stroke-active-delta").withDefault(16),Ie=k("neutral-stroke-focus-delta").withDefault(25),Fe=k("neutral-stroke-divider-rest-delta").withDefault(8),Oe=C("neutral-color").withDefault(v),He=k("neutral-palette").withDefault((e=>g.from(Oe.getValueFor(e)))),De=C("accent-color").withDefault(y),Re=k("accent-palette").withDefault((e=>g.from(De.getValueFor(e)))),Ee=k("neutral-layer-card-container-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),t.get(t.closestIndexOf(x(i))+o);var t,i,o}}),Le=C("neutral-layer-card-container").withDefault((e=>Ee.getValueFor(e).evaluate(e))),Ae=k("neutral-layer-floating-recipe").withDefault({evaluate:e=>function(e,t,i){const o=e.closestIndexOf(x(t))-i;return e.get(o-i)}(He.getValueFor(e),I.getValueFor(e),ke.getValueFor(e))}),Ve=C("neutral-layer-floating").withDefault((e=>Ae.getValueFor(e).evaluate(e))),Be=k("neutral-layer-1-recipe").withDefault({evaluate:e=>function(e,t){return e.get(e.closestIndexOf(x(t)))}(He.getValueFor(e),I.getValueFor(e))}),Pe=C("neutral-layer-1").withDefault((e=>Be.getValueFor(e).evaluate(e))),Me=k("neutral-layer-2-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n));var t,i,o,s,r,n}}),ze=C("neutral-layer-2").withDefault((e=>Me.getValueFor(e).evaluate(e))),Ne=k("neutral-layer-3-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n)+o);var t,i,o,s,r,n}}),je=C("neutral-layer-3").withDefault((e=>Ne.getValueFor(e).evaluate(e))),Ge=k("neutral-layer-4-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=I.getValueFor(e),o=ke.getValueFor(e),s=le.getValueFor(e),r=ce.getValueFor(e),n=he.getValueFor(e),t.get(w(t,i,o,s,r,n)+2*o);var t,i,o,s,r,n}}),qe=C("neutral-layer-4").withDefault((e=>Ge.getValueFor(e).evaluate(e))),Ue=C("fill-color").withDefault((e=>Pe.getValueFor(e)));var We;!function(e){e[e.normal=4.5]="normal",e[e.large=7]="large"}(We||(We={}));const Ke=C({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r,n,a,l){const c=e.source,h=t.closestIndexOf(i)>=Math.max(n,a,l)?-1:1,d=e.closestIndexOf(c),u=d+-1*h*o,p=u+h*s,g=u+h*r;return{rest:e.get(u),hover:e.get(d),active:e.get(p),focus:e.get(g)}}(Re.getValueFor(e),He.getValueFor(e),t||Ue.getValueFor(e),te.getValueFor(e),ie.getValueFor(e),oe.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e))}),Xe=C("accent-fill-rest").withDefault((e=>Ke.getValueFor(e).evaluate(e).rest)),Ye=C("accent-fill-hover").withDefault((e=>Ke.getValueFor(e).evaluate(e).hover)),Qe=C("accent-fill-active").withDefault((e=>Ke.getValueFor(e).evaluate(e).active)),Ze=C("accent-fill-focus").withDefault((e=>Ke.getValueFor(e).evaluate(e).focus)),Je=e=>(t,i)=>function(e,t){return e.contrast(b)>=t?b:f}(i||Xe.getValueFor(t),e),et=k("foreground-on-accent-recipe").withDefault({evaluate:(e,t)=>Je(We.normal)(e,t)}),tt=C("foreground-on-accent-rest").withDefault((e=>et.getValueFor(e).evaluate(e,Xe.getValueFor(e)))),it=C("foreground-on-accent-hover").withDefault((e=>et.getValueFor(e).evaluate(e,Ye.getValueFor(e)))),ot=C("foreground-on-accent-active").withDefault((e=>et.getValueFor(e).evaluate(e,Qe.getValueFor(e)))),st=C("foreground-on-accent-focus").withDefault((e=>et.getValueFor(e).evaluate(e,Ze.getValueFor(e)))),rt=k("foreground-on-accent-large-recipe").withDefault({evaluate:(e,t)=>Je(We.large)(e,t)}),nt=C("foreground-on-accent-rest-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Xe.getValueFor(e)))),at=C("foreground-on-accent-hover-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Ye.getValueFor(e)))),lt=C("foreground-on-accent-active-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Qe.getValueFor(e)))),ct=C("foreground-on-accent-focus-large").withDefault((e=>rt.getValueFor(e).evaluate(e,Ze.getValueFor(e)))),ht=e=>(t,i)=>function(e,t,i,o,s,r,n){const a=e.source,l=e.closestIndexOf(a),c=p(t),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=e.colorContrast(t,i,h,c),u=e.closestIndexOf(d),g=u+c*Math.abs(o-s);let m,b;return(1===c?o<s:c*o>c*s)?(m=u,b=g):(m=g,b=u),{rest:e.get(m),hover:e.get(b),active:e.get(m+c*r),focus:e.get(m+c*n)}}(Re.getValueFor(t),i||Ue.getValueFor(t),e,se.getValueFor(t),re.getValueFor(t),ne.getValueFor(t),ae.getValueFor(t)),dt=C({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ht(We.normal)(e,t)}),ut=C("accent-foreground-rest").withDefault((e=>dt.getValueFor(e).evaluate(e).rest)),pt=C("accent-foreground-hover").withDefault((e=>dt.getValueFor(e).evaluate(e).hover)),gt=C("accent-foreground-active").withDefault((e=>dt.getValueFor(e).evaluate(e).active)),mt=C("accent-foreground-focus").withDefault((e=>dt.getValueFor(e).evaluate(e).focus)),bt=C({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=e.closestIndexOf(t),a=n>=Math.max(i,o,s,r)?-1:1;return{rest:e.get(n+a*i),hover:e.get(n+a*o),active:e.get(n+a*s),focus:e.get(n+a*r)}}(He.getValueFor(e),t||Ue.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e),de.getValueFor(e))}),ft=C("neutral-fill-rest").withDefault((e=>bt.getValueFor(e).evaluate(e).rest)),vt=C("neutral-fill-hover").withDefault((e=>bt.getValueFor(e).evaluate(e).hover)),yt=C("neutral-fill-active").withDefault((e=>bt.getValueFor(e).evaluate(e).active)),xt=C("neutral-fill-focus").withDefault((e=>bt.getValueFor(e).evaluate(e).focus)),$t=C({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=p(t),a=e.closestIndexOf(t);return{rest:e.get(a-n*i),hover:e.get(a-n*o),active:e.get(a-n*s),focus:e.get(a-n*r)}}(He.getValueFor(e),t||Ue.getValueFor(e),ue.getValueFor(e),pe.getValueFor(e),ge.getValueFor(e),me.getValueFor(e))}),wt=C("neutral-fill-input-rest").withDefault((e=>$t.getValueFor(e).evaluate(e).rest)),Ct=C("neutral-fill-input-hover").withDefault((e=>$t.getValueFor(e).evaluate(e).hover)),kt=C("neutral-fill-input-active").withDefault((e=>$t.getValueFor(e).evaluate(e).active)),Tt=C("neutral-fill-input-focus").withDefault((e=>$t.getValueFor(e).evaluate(e).focus)),St=C({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r,n,a,l,c){const h=Math.max(i,o,s,r,n,a,l,c),d=e.closestIndexOf(t),u=d>=h?-1:1;return{rest:e.get(d+u*i),hover:e.get(d+u*o),active:e.get(d+u*s),focus:e.get(d+u*r)}}(He.getValueFor(e),t||Ue.getValueFor(e),be.getValueFor(e),fe.getValueFor(e),ve.getValueFor(e),ye.getValueFor(e),le.getValueFor(e),ce.getValueFor(e),he.getValueFor(e),de.getValueFor(e))}),_t=C("neutral-fill-stealth-rest").withDefault((e=>St.getValueFor(e).evaluate(e).rest)),It=C("neutral-fill-stealth-hover").withDefault((e=>St.getValueFor(e).evaluate(e).hover)),Ft=C("neutral-fill-stealth-active").withDefault((e=>St.getValueFor(e).evaluate(e).active)),Ot=C("neutral-fill-stealth-focus").withDefault((e=>St.getValueFor(e).evaluate(e).focus)),Ht=C({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,s,r){const n=p(t),a=e.closestIndexOf(e.colorContrast(t,4.5)),l=a+n*Math.abs(i-o);let c,h;return(1===n?i<o:n*i>n*o)?(c=a,h=l):(c=l,h=a),{rest:e.get(c),hover:e.get(h),active:e.get(c+n*s),focus:e.get(c+n*r)}}(He.getValueFor(e),t||Ue.getValueFor(e),xe.getValueFor(e),$e.getValueFor(e),we.getValueFor(e),Ce.getValueFor(e))}),Dt=C("neutral-fill-strong-rest").withDefault((e=>Ht.getValueFor(e).evaluate(e).rest)),Rt=C("neutral-fill-strong-hover").withDefault((e=>Ht.getValueFor(e).evaluate(e).hover)),Et=C("neutral-fill-strong-active").withDefault((e=>Ht.getValueFor(e).evaluate(e).active)),Lt=C("neutral-fill-strong-focus").withDefault((e=>Ht.getValueFor(e).evaluate(e).focus)),At=k("neutral-fill-layer-recipe").withDefault({evaluate:(e,t)=>function(e,t,i){const o=e.closestIndexOf(t);return e.get(o-(o<i?-1*i:i))}(He.getValueFor(e),t||Ue.getValueFor(e),ke.getValueFor(e))}),Vt=C("neutral-fill-layer-rest").withDefault((e=>At.getValueFor(e).evaluate(e))),Bt=k("focus-stroke-outer-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,3.5);var t,i}}),Pt=C("focus-stroke-outer").withDefault((e=>Bt.getValueFor(e).evaluate(e))),Mt=k("focus-stroke-inner-recipe").withDefault({evaluate:e=>{return t=Re.getValueFor(e),i=Ue.getValueFor(e),o=Pt.getValueFor(e),t.colorContrast(o,3.5,t.closestIndexOf(t.source),-1*p(i));var t,i,o}}),zt=C("focus-stroke-inner").withDefault((e=>Mt.getValueFor(e).evaluate(e))),Nt=k("neutral-foreground-hint-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,4.5);var t,i}}),jt=C("neutral-foreground-hint").withDefault((e=>Nt.getValueFor(e).evaluate(e))),Gt=k("neutral-foreground-recipe").withDefault({evaluate:e=>{return t=He.getValueFor(e),i=Ue.getValueFor(e),t.colorContrast(i,14);var t,i}}),qt=C("neutral-foreground-rest").withDefault((e=>Gt.getValueFor(e).evaluate(e))),Ut=C({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t,i,o,s,r){const n=e.closestIndexOf(t),a=p(t),l=n+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(r-i);return{rest:e.get(l),hover:e.get(c),active:e.get(h),focus:e.get(d)}}(He.getValueFor(e),Ue.getValueFor(e),Te.getValueFor(e),Se.getValueFor(e),_e.getValueFor(e),Ie.getValueFor(e))}),Wt=C("neutral-stroke-rest").withDefault((e=>Ut.getValueFor(e).evaluate(e).rest)),Kt=C("neutral-stroke-hover").withDefault((e=>Ut.getValueFor(e).evaluate(e).hover)),Xt=C("neutral-stroke-active").withDefault((e=>Ut.getValueFor(e).evaluate(e).active)),Yt=C("neutral-stroke-focus").withDefault((e=>Ut.getValueFor(e).evaluate(e).focus)),Qt=k("neutral-stroke-divider-recipe").withDefault({evaluate:(e,t)=>function(e,t,i){return e.get(e.closestIndexOf(t)+p(t)*i)}(He.getValueFor(e),t||Ue.getValueFor(e),Fe.getValueFor(e))}),Zt=C("neutral-stroke-divider-rest").withDefault((e=>Qt.getValueFor(e).evaluate(e))),Jt=o.DesignToken.create({name:"height-number",cssCustomPropertyName:null}).withDefault((e=>(S.getValueFor(e)+O.getValueFor(e))*H.getValueFor(e))),ei=(e,t)=>s.css`
|
|
2
2
|
${(0,o.display)("flex")} :host {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
font-family: ${T};
|
|
6
|
-
font-size: ${
|
|
7
|
-
line-height: ${
|
|
6
|
+
font-size: ${B};
|
|
7
|
+
line-height: ${P};
|
|
8
8
|
color: ${qt};
|
|
9
9
|
border-top: calc(${E} * 1px) solid ${Zt};
|
|
10
10
|
}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
font-family: ${T};
|
|
15
15
|
flex-direction: column;
|
|
16
|
-
font-size: ${
|
|
17
|
-
line-height: ${
|
|
16
|
+
font-size: ${B};
|
|
17
|
+
line-height: ${P};
|
|
18
18
|
border-bottom: calc(${E} * 1px) solid ${Zt};
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
.button:${o.focusVisible}::before {
|
|
66
66
|
outline: none;
|
|
67
|
-
border: calc(${L} * 1px) solid ${
|
|
67
|
+
border: calc(${L} * 1px) solid ${Pt};
|
|
68
68
|
border-radius: calc(${F} * 1px);
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.control:${o.focusVisible} {
|
|
176
|
-
border-color: ${
|
|
177
|
-
box-shadow: 0 0 0 calc((${L} - ${E}) * 1px) ${
|
|
176
|
+
border-color: ${Pt};
|
|
177
|
+
box-shadow: 0 0 0 calc((${L} - ${E}) * 1px) ${Pt} inset;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.control::-moz-focus-inner {
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
:host([appearance="accent"]) .control:${o.focusVisible} {
|
|
271
|
-
box-shadow: 0 0 0 calc((${L} - ${E}) * 1px) ${
|
|
271
|
+
box-shadow: 0 0 0 calc((${L} - ${E}) * 1px) ${Pt} inset,
|
|
272
272
|
0 0 0 calc((${L} + ${E}) * 1px) ${zt} inset;
|
|
273
273
|
}
|
|
274
274
|
`.withBehaviors((0,o.forcedColorsStylesheetBehavior)(s.css`
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
:host([appearance="hypertext"]) .control:${o.focusVisible} {
|
|
352
|
-
border-bottom: calc(${L} * 1px) solid ${
|
|
352
|
+
border-bottom: calc(${L} * 1px) solid ${Pt};
|
|
353
353
|
margin-bottom: calc(calc(${E} - ${L}) * 1px);
|
|
354
354
|
}
|
|
355
355
|
`.withBehaviors((0,o.forcedColorsStylesheetBehavior)(s.css`
|
|
@@ -455,8 +455,8 @@
|
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
:host([appearance="outline"]) .control:${o.focusVisible} {
|
|
458
|
-
box-shadow: 0 0 0 calc((${L} - ${E}) * 1px) ${
|
|
459
|
-
border-color: ${
|
|
458
|
+
box-shadow: 0 0 0 calc((${L} - ${E}) * 1px) ${Pt} inset;
|
|
459
|
+
border-color: ${Pt};
|
|
460
460
|
}
|
|
461
461
|
`.withBehaviors((0,o.forcedColorsStylesheetBehavior)(s.css`
|
|
462
462
|
:host([appearance="outline"]) .control {
|
|
@@ -626,8 +626,8 @@
|
|
|
626
626
|
${(0,o.display)("inline-block")} :host {
|
|
627
627
|
box-sizing: border-box;
|
|
628
628
|
font-family: ${T};
|
|
629
|
-
font-size: ${
|
|
630
|
-
line-height: ${
|
|
629
|
+
font-size: ${B};
|
|
630
|
+
line-height: ${P};
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
.control {
|
|
@@ -1004,7 +1004,7 @@
|
|
|
1004
1004
|
background: ${ti.H.Canvas};
|
|
1005
1005
|
box-shadow: 0 0 0 1px ${ti.H.CanvasText};
|
|
1006
1006
|
}
|
|
1007
|
-
`));class
|
|
1007
|
+
`));class Bi extends o.Card{connectedCallback(){super.connectedCallback();const e=(0,o.composedParent)(this);e&&Ue.setValueFor(this,(t=>At.getValueFor(t).evaluate(t,Ue.getValueFor(e))))}}const Pi=Bi.compose({baseName:"card",baseClass:o.Card,template:o.cardTemplate,styles:Vi}),Mi=(e,t)=>s.css`
|
|
1008
1008
|
${(0,o.display)("inline-flex")} :host {
|
|
1009
1009
|
align-items: center;
|
|
1010
1010
|
outline: none;
|
|
@@ -1073,7 +1073,7 @@
|
|
|
1073
1073
|
}
|
|
1074
1074
|
|
|
1075
1075
|
:host(:${o.focusVisible}) .control {
|
|
1076
|
-
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${
|
|
1076
|
+
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${Pt};
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
1079
|
:host([aria-checked="true"]) .control {
|
|
@@ -1108,7 +1108,7 @@
|
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
1110
1110
|
:host([aria-checked="true"]:${o.focusVisible}:not([disabled])) .control {
|
|
1111
|
-
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${
|
|
1111
|
+
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${Pt};
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
1114
|
|
|
@@ -1201,10 +1201,10 @@
|
|
|
1201
1201
|
|
|
1202
1202
|
${r?"":s.css`
|
|
1203
1203
|
:host(:focus-within:not([disabled])) {
|
|
1204
|
-
border-color: ${
|
|
1204
|
+
border-color: ${Pt};
|
|
1205
1205
|
box-shadow: 0 0 0
|
|
1206
1206
|
calc((${L} - ${E}) * 1px)
|
|
1207
|
-
${
|
|
1207
|
+
${Pt} inset;
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
:host([disabled]) ::slotted(*) {
|
|
@@ -1320,18 +1320,18 @@
|
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
:host(:${o.focusVisible}) {
|
|
1323
|
-
border-color: ${
|
|
1323
|
+
border-color: ${Pt};
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
1326
|
:host(:not([size]):not([multiple]):not([open]):${o.focusVisible}),
|
|
1327
1327
|
:host([multiple]:${o.focusVisible}),
|
|
1328
1328
|
:host([size]:${o.focusVisible}) {
|
|
1329
|
-
box-shadow: 0 0 0 calc(${L} * 1px) ${
|
|
1329
|
+
box-shadow: 0 0 0 calc(${L} * 1px) ${Pt};
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
1332
|
:host(:not([multiple]):not([size]):${o.focusVisible}) ::slotted(${e.tagFor(o.ListboxOption)}[aria-selected="true"]:not([disabled])) {
|
|
1333
1333
|
box-shadow: 0 0 0 calc(${L} * 1px) inset ${zt};
|
|
1334
|
-
border-color: ${
|
|
1334
|
+
border-color: ${Pt};
|
|
1335
1335
|
background: ${Ze};
|
|
1336
1336
|
color: ${st};
|
|
1337
1337
|
}
|
|
@@ -1555,7 +1555,7 @@
|
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
1557
|
:host(:${o.focusVisible}) {
|
|
1558
|
-
border: ${
|
|
1558
|
+
border: ${Pt} calc(${L} * 1px) solid;
|
|
1559
1559
|
outline: none;
|
|
1560
1560
|
color: ${qt};
|
|
1561
1561
|
}
|
|
@@ -1583,7 +1583,7 @@
|
|
|
1583
1583
|
box-shadow: 0 0 0 1px ${ti.H.CanvasText};
|
|
1584
1584
|
color: ${ti.H.ButtonText};
|
|
1585
1585
|
}
|
|
1586
|
-
`));function to(e){return(t,i)=>{t[i+"Changed"]=function(t,i){null!=i?e.setValueFor(this,i):e.deleteValueFor(this)}}}class io extends o.FoundationElement{constructor(){super(),this.noPaint=!1;const e={handleChange:this.noPaintChanged.bind(this)};s.Observable.getNotifier(this).subscribe(e,"fillColor"),s.Observable.getNotifier(this).subscribe(e,"baseLayerLuminance")}noPaintChanged(){this.noPaint||void 0===this.fillColor&&!this.baseLayerLuminance?this.$fastController.removeStyles(eo):this.$fastController.addStyles(eo)}}(0,ni.__decorate)([(0,s.attr)({attribute:"no-paint",mode:"boolean"})],io.prototype,"noPaint",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"fill-color",converter:Ji}),to(Ue)],io.prototype,"fillColor",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"accent-color",converter:Ji,mode:"fromView"}),to(De)],io.prototype,"accentColor",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-color",converter:Ji,mode:"fromView"}),to(Oe)],io.prototype,"neutralColor",void 0),(0,ni.__decorate)([(0,s.attr)({converter:s.nullableNumberConverter}),to(O)],io.prototype,"density",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"design-unit",converter:s.nullableNumberConverter}),to(H)],io.prototype,"designUnit",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"direction"}),to(D)],io.prototype,"direction",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"base-height-multiplier",converter:s.nullableNumberConverter}),to(S)],io.prototype,"baseHeightMultiplier",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"base-horizontal-spacing-multiplier",converter:s.nullableNumberConverter}),to(_)],io.prototype,"baseHorizontalSpacingMultiplier",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"control-corner-radius",converter:s.nullableNumberConverter}),to(F)],io.prototype,"controlCornerRadius",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"stroke-width",converter:s.nullableNumberConverter}),to(E)],io.prototype,"strokeWidth",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"focus-stroke-width",converter:s.nullableNumberConverter}),to(L)],io.prototype,"focusStrokeWidth",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"disabled-opacity",converter:s.nullableNumberConverter}),to(R)],io.prototype,"disabledOpacity",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-minus-2-font-size"}),to(M)],io.prototype,"typeRampMinus2FontSize",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-minus-2-line-height"}),to(z)],io.prototype,"typeRampMinus2LineHeight",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-minus-1-font-size"}),to(
|
|
1586
|
+
`));function to(e){return(t,i)=>{t[i+"Changed"]=function(t,i){null!=i?e.setValueFor(this,i):e.deleteValueFor(this)}}}class io extends o.FoundationElement{constructor(){super(),this.noPaint=!1;const e={handleChange:this.noPaintChanged.bind(this)};s.Observable.getNotifier(this).subscribe(e,"fillColor"),s.Observable.getNotifier(this).subscribe(e,"baseLayerLuminance")}noPaintChanged(){this.noPaint||void 0===this.fillColor&&!this.baseLayerLuminance?this.$fastController.removeStyles(eo):this.$fastController.addStyles(eo)}}(0,ni.__decorate)([(0,s.attr)({attribute:"no-paint",mode:"boolean"})],io.prototype,"noPaint",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"fill-color",converter:Ji}),to(Ue)],io.prototype,"fillColor",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"accent-color",converter:Ji,mode:"fromView"}),to(De)],io.prototype,"accentColor",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-color",converter:Ji,mode:"fromView"}),to(Oe)],io.prototype,"neutralColor",void 0),(0,ni.__decorate)([(0,s.attr)({converter:s.nullableNumberConverter}),to(O)],io.prototype,"density",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"design-unit",converter:s.nullableNumberConverter}),to(H)],io.prototype,"designUnit",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"direction"}),to(D)],io.prototype,"direction",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"base-height-multiplier",converter:s.nullableNumberConverter}),to(S)],io.prototype,"baseHeightMultiplier",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"base-horizontal-spacing-multiplier",converter:s.nullableNumberConverter}),to(_)],io.prototype,"baseHorizontalSpacingMultiplier",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"control-corner-radius",converter:s.nullableNumberConverter}),to(F)],io.prototype,"controlCornerRadius",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"stroke-width",converter:s.nullableNumberConverter}),to(E)],io.prototype,"strokeWidth",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"focus-stroke-width",converter:s.nullableNumberConverter}),to(L)],io.prototype,"focusStrokeWidth",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"disabled-opacity",converter:s.nullableNumberConverter}),to(R)],io.prototype,"disabledOpacity",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-minus-2-font-size"}),to(M)],io.prototype,"typeRampMinus2FontSize",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-minus-2-line-height"}),to(z)],io.prototype,"typeRampMinus2LineHeight",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-minus-1-font-size"}),to(B)],io.prototype,"typeRampMinus1FontSize",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-minus-1-line-height"}),to(P)],io.prototype,"typeRampMinus1LineHeight",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-base-font-size"}),to(A)],io.prototype,"typeRampBaseFontSize",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-base-line-height"}),to(V)],io.prototype,"typeRampBaseLineHeight",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-1-font-size"}),to(N)],io.prototype,"typeRampPlus1FontSize",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-1-line-height"}),to(j)],io.prototype,"typeRampPlus1LineHeight",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-2-font-size"}),to(G)],io.prototype,"typeRampPlus2FontSize",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-2-line-height"}),to(q)],io.prototype,"typeRampPlus2LineHeight",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-3-font-size"}),to(U)],io.prototype,"typeRampPlus3FontSize",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-3-line-height"}),to(W)],io.prototype,"typeRampPlus3LineHeight",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-4-font-size"}),to(K)],io.prototype,"typeRampPlus4FontSize",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-4-line-height"}),to(X)],io.prototype,"typeRampPlus4LineHeight",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-5-font-size"}),to(Y)],io.prototype,"typeRampPlus5FontSize",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-5-line-height"}),to(Q)],io.prototype,"typeRampPlus5LineHeight",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-6-font-size"}),to(Z)],io.prototype,"typeRampPlus6FontSize",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"type-ramp-plus-6-line-height"}),to(J)],io.prototype,"typeRampPlus6LineHeight",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"accent-fill-rest-delta",converter:s.nullableNumberConverter}),to(ee)],io.prototype,"accentFillRestDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"accent-fill-hover-delta",converter:s.nullableNumberConverter}),to(te)],io.prototype,"accentFillHoverDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"accent-fill-active-delta",converter:s.nullableNumberConverter}),to(ie)],io.prototype,"accentFillActiveDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"accent-fill-focus-delta",converter:s.nullableNumberConverter}),to(oe)],io.prototype,"accentFillFocusDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"accent-foreground-rest-delta",converter:s.nullableNumberConverter}),to(se)],io.prototype,"accentForegroundRestDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"accent-foreground-hover-delta",converter:s.nullableNumberConverter}),to(re)],io.prototype,"accentForegroundHoverDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"accent-foreground-active-delta",converter:s.nullableNumberConverter}),to(ne)],io.prototype,"accentForegroundActiveDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"accent-foreground-focus-delta",converter:s.nullableNumberConverter}),to(ae)],io.prototype,"accentForegroundFocusDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-rest-delta",converter:s.nullableNumberConverter}),to(le)],io.prototype,"neutralFillRestDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-hover-delta",converter:s.nullableNumberConverter}),to(ce)],io.prototype,"neutralFillHoverDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-active-delta",converter:s.nullableNumberConverter}),to(he)],io.prototype,"neutralFillActiveDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-focus-delta",converter:s.nullableNumberConverter}),to(de)],io.prototype,"neutralFillFocusDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-input-rest-delta",converter:s.nullableNumberConverter}),to(ue)],io.prototype,"neutralFillInputRestDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-input-hover-delta",converter:s.nullableNumberConverter}),to(pe)],io.prototype,"neutralFillInputHoverDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-input-active-delta",converter:s.nullableNumberConverter}),to(ge)],io.prototype,"neutralFillInputActiveDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-input-focus-delta",converter:s.nullableNumberConverter}),to(me)],io.prototype,"neutralFillInputFocusDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-stealth-rest-delta",converter:s.nullableNumberConverter}),to(be)],io.prototype,"neutralFillStealthRestDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-stealth-hover-delta",converter:s.nullableNumberConverter}),to(fe)],io.prototype,"neutralFillStealthHoverDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-stealth-active-delta",converter:s.nullableNumberConverter}),to(ve)],io.prototype,"neutralFillStealthActiveDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-stealth-focus-delta",converter:s.nullableNumberConverter}),to(ye)],io.prototype,"neutralFillStealthFocusDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-strong-hover-delta",converter:s.nullableNumberConverter}),to($e)],io.prototype,"neutralFillStrongHoverDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-strong-active-delta",converter:s.nullableNumberConverter}),to(we)],io.prototype,"neutralFillStrongActiveDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-strong-focus-delta",converter:s.nullableNumberConverter}),to(Ce)],io.prototype,"neutralFillStrongFocusDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"base-layer-luminance",converter:s.nullableNumberConverter}),to(I)],io.prototype,"baseLayerLuminance",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-fill-layer-rest-delta",converter:s.nullableNumberConverter}),to(ke)],io.prototype,"neutralFillLayerRestDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-stroke-divider-rest-delta",converter:s.nullableNumberConverter}),to(Fe)],io.prototype,"neutralStrokeDividerRestDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-stroke-rest-delta",converter:s.nullableNumberConverter}),to(Te)],io.prototype,"neutralStrokeRestDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-stroke-hover-delta",converter:s.nullableNumberConverter}),to(Se)],io.prototype,"neutralStrokeHoverDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-stroke-active-delta",converter:s.nullableNumberConverter}),to(_e)],io.prototype,"neutralStrokeActiveDelta",void 0),(0,ni.__decorate)([(0,s.attr)({attribute:"neutral-stroke-focus-delta",converter:s.nullableNumberConverter}),to(Ie)],io.prototype,"neutralStrokeFocusDelta",void 0);const oo=(e,t)=>s.html`
|
|
1587
1587
|
<slot></slot>
|
|
1588
1588
|
`,so=(e,t)=>s.css`
|
|
1589
1589
|
${(0,o.display)("block")}
|
|
@@ -1787,9 +1787,9 @@
|
|
|
1787
1787
|
}
|
|
1788
1788
|
|
|
1789
1789
|
:host(:${o.focusVisible})::before {
|
|
1790
|
-
box-shadow: 0 0 0 calc((${L} - ${E}) * 1px) ${
|
|
1790
|
+
box-shadow: 0 0 0 calc((${L} - ${E}) * 1px) ${Pt} inset,
|
|
1791
1791
|
0 0 0 calc((${L} + ${E}) * 1px) ${zt} inset;
|
|
1792
|
-
border-color: ${
|
|
1792
|
+
border-color: ${Pt};
|
|
1793
1793
|
}
|
|
1794
1794
|
|
|
1795
1795
|
:host::-moz-focus-inner {
|
|
@@ -2042,11 +2042,11 @@
|
|
|
2042
2042
|
}
|
|
2043
2043
|
|
|
2044
2044
|
:host([aria-checked="true"][aria-selected="false"]) {
|
|
2045
|
-
border-color: ${
|
|
2045
|
+
border-color: ${Pt};
|
|
2046
2046
|
}
|
|
2047
2047
|
|
|
2048
2048
|
:host([aria-checked="true"][aria-selected="true"]) {
|
|
2049
|
-
border-color: ${
|
|
2049
|
+
border-color: ${Pt};
|
|
2050
2050
|
box-shadow: 0 0 0 calc(${L} * 2 * 1px) inset
|
|
2051
2051
|
${zt};
|
|
2052
2052
|
}
|
|
@@ -2150,7 +2150,7 @@
|
|
|
2150
2150
|
}
|
|
2151
2151
|
|
|
2152
2152
|
:host(:${o.focusVisible}) {
|
|
2153
|
-
border-color: ${
|
|
2153
|
+
border-color: ${Pt};
|
|
2154
2154
|
background: ${Ot};
|
|
2155
2155
|
color: ${qt};
|
|
2156
2156
|
}
|
|
@@ -2596,8 +2596,8 @@
|
|
|
2596
2596
|
}
|
|
2597
2597
|
|
|
2598
2598
|
:host(:focus-within:not([disabled])) .root {
|
|
2599
|
-
border-color: ${
|
|
2600
|
-
box-shadow: 0 0 0 calc(${L} * 1px) ${
|
|
2599
|
+
border-color: ${Pt};
|
|
2600
|
+
box-shadow: 0 0 0 calc(${L} * 1px) ${Pt} inset;
|
|
2601
2601
|
}
|
|
2602
2602
|
|
|
2603
2603
|
:host(:hover:not([disabled])) .controls,
|
|
@@ -2754,7 +2754,7 @@
|
|
|
2754
2754
|
}
|
|
2755
2755
|
|
|
2756
2756
|
:host(:${o.focusVisible}[role="listitem"]) {
|
|
2757
|
-
border-color: ${
|
|
2757
|
+
border-color: ${Pt};
|
|
2758
2758
|
background: ${Ot};
|
|
2759
2759
|
}
|
|
2760
2760
|
|
|
@@ -2834,7 +2834,7 @@
|
|
|
2834
2834
|
|
|
2835
2835
|
:host(:${o.focusVisible}) {
|
|
2836
2836
|
background: ${Ot};
|
|
2837
|
-
border-color: ${
|
|
2837
|
+
border-color: ${Pt};
|
|
2838
2838
|
}
|
|
2839
2839
|
|
|
2840
2840
|
:host([aria-selected="true"]) {
|
|
@@ -2862,7 +2862,7 @@
|
|
|
2862
2862
|
fill: currentcolor;
|
|
2863
2863
|
opacity: 1;
|
|
2864
2864
|
}
|
|
2865
|
-
`)),
|
|
2865
|
+
`)),Bo=o.Picker.compose({baseName:"picker",template:o.pickerTemplate,styles:Eo,shadowOptions:{}});class Po extends o.PickerMenu{connectedCallback(){Ue.setValueFor(this,Ve),super.connectedCallback()}}const Mo=Po.compose({baseName:"picker-menu",baseClass:o.PickerMenu,template:o.pickerMenuTemplate,styles:Lo}),zo=o.PickerMenuOption.compose({baseName:"picker-menu-option",template:o.pickerMenuOptionTemplate,styles:Ao}),No=o.PickerList.compose({baseName:"picker-list",template:o.pickerListTemplate,styles:(e,t)=>s.css`
|
|
2866
2866
|
:host {
|
|
2867
2867
|
display: flex;
|
|
2868
2868
|
flex-direction: row;
|
|
@@ -2894,8 +2894,8 @@
|
|
|
2894
2894
|
}
|
|
2895
2895
|
|
|
2896
2896
|
::slotted([role="combobox"]:focus-within) {
|
|
2897
|
-
border-color: ${
|
|
2898
|
-
box-shadow: 0 0 0 1px ${
|
|
2897
|
+
border-color: ${Pt};
|
|
2898
|
+
box-shadow: 0 0 0 1px ${Pt} inset;
|
|
2899
2899
|
}
|
|
2900
2900
|
`.withBehaviors((0,o.forcedColorsStylesheetBehavior)(s.css`
|
|
2901
2901
|
::slotted([role="combobox"]:active) {
|
|
@@ -3192,7 +3192,7 @@
|
|
|
3192
3192
|
}
|
|
3193
3193
|
|
|
3194
3194
|
:host(:${o.focusVisible}) .control {
|
|
3195
|
-
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${
|
|
3195
|
+
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${Pt};
|
|
3196
3196
|
}
|
|
3197
3197
|
|
|
3198
3198
|
:host([aria-checked="true"]) .control {
|
|
@@ -3221,7 +3221,7 @@
|
|
|
3221
3221
|
}
|
|
3222
3222
|
|
|
3223
3223
|
:host([aria-checked="true"]:${o.focusVisible}:not([disabled])) .control {
|
|
3224
|
-
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${
|
|
3224
|
+
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${Pt};
|
|
3225
3225
|
}
|
|
3226
3226
|
|
|
3227
3227
|
:host([disabled]) .label,
|
|
@@ -3432,8 +3432,8 @@
|
|
|
3432
3432
|
}
|
|
3433
3433
|
|
|
3434
3434
|
:host(:focus-within:not([disabled])) .root {
|
|
3435
|
-
border-color: ${
|
|
3436
|
-
box-shadow: 0 0 0 1px ${
|
|
3435
|
+
border-color: ${Pt};
|
|
3436
|
+
box-shadow: 0 0 0 1px ${Pt} inset;
|
|
3437
3437
|
}
|
|
3438
3438
|
|
|
3439
3439
|
.clear-button__hidden {
|
|
@@ -3720,7 +3720,7 @@
|
|
|
3720
3720
|
}
|
|
3721
3721
|
|
|
3722
3722
|
:host(:${o.focusVisible}) .thumb-cursor {
|
|
3723
|
-
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${
|
|
3723
|
+
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${Pt};
|
|
3724
3724
|
}
|
|
3725
3725
|
|
|
3726
3726
|
.thumb-container {
|
|
@@ -3879,7 +3879,7 @@
|
|
|
3879
3879
|
}
|
|
3880
3880
|
|
|
3881
3881
|
:host(:${o.focusVisible}) .switch {
|
|
3882
|
-
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${
|
|
3882
|
+
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${Pt};
|
|
3883
3883
|
}
|
|
3884
3884
|
|
|
3885
3885
|
.checked-indicator {
|
|
@@ -3949,7 +3949,7 @@
|
|
|
3949
3949
|
}
|
|
3950
3950
|
|
|
3951
3951
|
:host([aria-checked="true"]:${o.focusVisible}:not([disabled])) .switch {
|
|
3952
|
-
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${
|
|
3952
|
+
box-shadow: 0 0 0 2px ${Ue}, 0 0 0 4px ${Pt};
|
|
3953
3953
|
}
|
|
3954
3954
|
|
|
3955
3955
|
.unchecked-message {
|
|
@@ -4194,9 +4194,9 @@
|
|
|
4194
4194
|
|
|
4195
4195
|
:host(:${o.focusVisible}) {
|
|
4196
4196
|
outline: none;
|
|
4197
|
-
border: calc(${E} * 1px) solid ${
|
|
4197
|
+
border: calc(${E} * 1px) solid ${Pt};
|
|
4198
4198
|
box-shadow: 0 0 0 calc((${L} - ${E}) * 1px)
|
|
4199
|
-
${
|
|
4199
|
+
${Pt};
|
|
4200
4200
|
}
|
|
4201
4201
|
|
|
4202
4202
|
:host(:focus) {
|
|
@@ -4299,8 +4299,8 @@
|
|
|
4299
4299
|
}
|
|
4300
4300
|
|
|
4301
4301
|
:host(:focus-within) .control {
|
|
4302
|
-
border-color: ${
|
|
4303
|
-
box-shadow: 0 0 0 1px ${
|
|
4302
|
+
border-color: ${Pt};
|
|
4303
|
+
box-shadow: 0 0 0 1px ${Pt} inset;
|
|
4304
4304
|
}
|
|
4305
4305
|
|
|
4306
4306
|
:host([appearance="filled"]) .control {
|
|
@@ -4456,8 +4456,8 @@
|
|
|
4456
4456
|
}
|
|
4457
4457
|
|
|
4458
4458
|
:host(:focus-within:not([disabled])) .root {
|
|
4459
|
-
border-color: ${
|
|
4460
|
-
box-shadow: 0 0 0 calc(${L} * 1px) ${
|
|
4459
|
+
border-color: ${Pt};
|
|
4460
|
+
box-shadow: 0 0 0 calc(${L} * 1px) ${Pt} inset;
|
|
4461
4461
|
}
|
|
4462
4462
|
|
|
4463
4463
|
:host([appearance="filled"]) .root {
|
|
@@ -4578,8 +4578,8 @@
|
|
|
4578
4578
|
.tooltip {
|
|
4579
4579
|
box-sizing: border-box;
|
|
4580
4580
|
border-radius: calc(${F} * 1px);
|
|
4581
|
-
border: calc(${E} * 1px) solid ${
|
|
4582
|
-
box-shadow: 0 0 0 1px ${
|
|
4581
|
+
border: calc(${E} * 1px) solid ${Pt};
|
|
4582
|
+
box-shadow: 0 0 0 1px ${Pt} inset;
|
|
4583
4583
|
background: ${ft};
|
|
4584
4584
|
color: ${qt};
|
|
4585
4585
|
padding: 4px;
|
|
@@ -4660,7 +4660,7 @@
|
|
|
4660
4660
|
:host([expanded]) > .positioning-region .expand-collapse-glyph {
|
|
4661
4661
|
transform: rotate(45deg);
|
|
4662
4662
|
}
|
|
4663
|
-
`,
|
|
4663
|
+
`,Bs=s.css`
|
|
4664
4664
|
.expand-collapse-glyph {
|
|
4665
4665
|
transform: rotate(180deg);
|
|
4666
4666
|
}
|
|
@@ -4673,7 +4673,7 @@
|
|
|
4673
4673
|
:host([expanded]) > .positioning-region .expand-collapse-glyph {
|
|
4674
4674
|
transform: rotate(135deg);
|
|
4675
4675
|
}
|
|
4676
|
-
`,
|
|
4676
|
+
`,Ps=s.cssPartial`((${S} / 2) * ${H}) + ((${H} * ${O}) / 2)`,Ms=o.DesignToken.create("tree-item-expand-collapse-hover").withDefault((e=>{const t=St.getValueFor(e);return t.evaluate(e,t.evaluate(e).hover).hover})),zs=o.DesignToken.create("tree-item-expand-collapse-selected-hover").withDefault((e=>{const t=bt.getValueFor(e);return St.getValueFor(e).evaluate(e,t.evaluate(e).rest).hover})),Ns=(e,t)=>s.css`
|
|
4677
4677
|
/**
|
|
4678
4678
|
* This animation exists because when tree item children are conditionally loaded
|
|
4679
4679
|
* there is a visual bug where the DOM exists but styles have not yet been applied (essentially FOUC).
|
|
@@ -4709,7 +4709,7 @@
|
|
|
4709
4709
|
}
|
|
4710
4710
|
|
|
4711
4711
|
:host(:${o.focusVisible}) .positioning-region {
|
|
4712
|
-
border: ${
|
|
4712
|
+
border: ${Pt} calc(${E} * 1px) solid;
|
|
4713
4713
|
border-radius: calc(${F} * 1px);
|
|
4714
4714
|
color: ${qt};
|
|
4715
4715
|
}
|
|
@@ -4760,8 +4760,8 @@
|
|
|
4760
4760
|
border: none;
|
|
4761
4761
|
outline: none;
|
|
4762
4762
|
/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
|
|
4763
|
-
width: calc((${
|
|
4764
|
-
height: calc((${
|
|
4763
|
+
width: calc((${Ps} + (${H} * 2)) * 1px);
|
|
4764
|
+
height: calc((${Ps} + (${H} * 2)) * 1px);
|
|
4765
4765
|
padding: 0;
|
|
4766
4766
|
display: flex;
|
|
4767
4767
|
justify-content: center;
|
|
@@ -4861,7 +4861,7 @@
|
|
|
4861
4861
|
--tree-item-nested-width: 1em;
|
|
4862
4862
|
--expand-collapse-button-nested-width: calc(${ii} * -1px);
|
|
4863
4863
|
}
|
|
4864
|
-
`.withBehaviors(new yi(Vs,
|
|
4864
|
+
`.withBehaviors(new yi(Vs,Bs),(0,o.forcedColorsStylesheetBehavior)(s.css`
|
|
4865
4865
|
:host {
|
|
4866
4866
|
forced-color-adjust: none;
|
|
4867
4867
|
border-color: transparent;
|
|
@@ -4933,7 +4933,7 @@
|
|
|
4933
4933
|
:host:focus-visible {
|
|
4934
4934
|
outline: none;
|
|
4935
4935
|
}
|
|
4936
|
-
`,qs=o.TreeView.compose({baseName:"tree-view",template:o.treeViewTemplate,styles:Gs}),Us={fastAccordion:ri,fastAccordionItem:si,fastAnchor:bi,fastAnchoredRegion:vi,fastAvatar:ki,fastBadge:Si,fastBreadcrumb:Oi,fastBreadcrumbItem:Ii,fastButton:Ri,fastCalendar:Li,fastCard:Bi,fastCheckbox:zi,fastCombobox:Ui,fastDataGrid:Zi,fastDataGridCell:Yi,fastDataGridRow:Qi,fastDesignSystemProvider:ro,fastDialog:ao,fastDisclosure:ho,fastDivider:po,fastFlipper:mo,fastHorizontalScroll:$o,fastListbox:To,fastOption:Co,fastMenu:Oo,fastMenuItem:_o,fastNumberField:Ro,fastPicker:Po,fastPickerList:No,fastPickerListItem:jo,fastPickerMenu:Mo,fastPickerMenuOption:zo,fastProgress:Wo,fastProgressRing:qo,fastRadio:Qo,fastRadioGroup:Xo,fastSearch:is,fastSelect:rs,fastSkeleton:as,fastSlider:fs,fastSliderLabel:ps,fastSwitch:ys,fastTabs:Ts,fastTab:ws,fastTabPanel:ks,fastTextArea:Is,fastTextField:Hs,fastTooltip:As,fastToolbar:Es,fastTreeView:qs,fastTreeItem:js,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};function Ws(e){return o.DesignSystem.getOrCreate(e).withPrefix("fast")}},12122:(e,t,i)=>{i.r(t),i.d(t,{$global:()=>o,AttachedBehaviorHTMLDirective:()=>T,AttributeConfiguration:()=>re,AttributeDefinition:()=>le,BindingBehavior:()=>V,CSSDirective:()=>$e,ChildrenBehavior:()=>tt,Controller:()=>fe,DOM:()=>g,ElementStyles:()=>Q,ExecutionContext:()=>$,FAST:()=>r,FASTElement:()=>ye,FASTElementDefinition:()=>pe,HTMLBindingDirective:()=>A,HTMLDirective:()=>C,HTMLView:()=>W,Observable:()=>f,PropertyChangeNotifier:()=>b,RefBehavior:()=>Be,RepeatBehavior:()=>Ke,RepeatDirective:()=>Xe,SlottedBehavior:()=>Je,SubscriberSet:()=>m,TargetedHTMLDirective:()=>k,ViewTemplate:()=>K,attr:()=>ce,booleanConverter:()=>ne,children:()=>it,compileTemplate:()=>q,createMetadataLocator:()=>a,css:()=>Ce,cssPartial:()=>Te,customElement:()=>xe,defaultExecutionContext:()=>w,elements:()=>Qe,emptyArray:()=>n,enableArrayObservation:()=>Pe,html:()=>Y,nullableNumberConverter:()=>ae,observable:()=>v,ref:()=>Me,repeat:()=>Ye,slotted:()=>et,volatile:()=>y,when:()=>Ge});const o=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===o.trustedTypes&&(o.trustedTypes={createPolicy:(e,t)=>t});const s={configurable:!1,enumerable:!1,writable:!1};void 0===o.FAST&&Reflect.defineProperty(o,"FAST",Object.assign({value:Object.create(null)},s));const r=o.FAST;if(void 0===r.getById){const e=Object.create(null);Reflect.defineProperty(r,"getById",Object.assign({value(t,i){let o=e[t];return void 0===o&&(o=i?e[t]=i():null),o}},s))}const n=Object.freeze([]);function a(){const e=new WeakMap;return function(t){let i=e.get(t);if(void 0===i){let o=Reflect.getPrototypeOf(t);for(;void 0===i&&null!==o;)i=e.get(o),o=Reflect.getPrototypeOf(o);i=void 0===i?[]:i.slice(0),e.set(t,i)}return i}}const l=o.FAST.getById(1,(()=>{const e=[],t=[];function i(){if(t.length)throw t.shift()}function s(e){try{e.call()}catch(e){t.push(e),setTimeout(i,0)}}function r(){let t=0;for(;t<e.length;)if(s(e[t]),t++,t>1024){for(let i=0,o=e.length-t;i<o;i++)e[i]=e[i+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&o.requestAnimationFrame(r),e.push(t)},process:r})})),c=o.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let h=c;const d=`fast-${Math.random().toString(36).substring(2,8)}`,u=`${d}{`,p=`}${d}`,g=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(h!==c)throw new Error("The HTML policy can only be set once.");h=e},createHTML:e=>h.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(d),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${d}:`,"")),createInterpolationPlaceholder:e=>`${u}${e}${p}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${d}:${e}--\x3e`,queueUpdate:l.enqueue,processUpdates:l.process,nextUpdate:()=>new Promise(l.enqueue),setAttribute(e,t,i){null==i?e.removeAttribute(t):e.setAttribute(t,i)},setBooleanAttribute(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});class m{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.source;if(void 0===t){const t=this.sub1,o=this.sub2;void 0!==t&&t.handleChange(i,e),void 0!==o&&o.handleChange(i,e)}else for(let o=0,s=t.length;o<s;++o)t[o].handleChange(i,e)}}class b{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;const i=this.subscribers[e];void 0!==i&&i.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}subscribe(e,t){var i;if(t){let i=this.subscribers[t];void 0===i&&(this.subscribers[t]=i=new m(this.source)),i.subscribe(e)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new m(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var i;if(t){const i=this.subscribers[t];void 0!==i&&i.unsubscribe(e)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(e)}}const f=r.getById(2,(()=>{const e=/(:|&&|\|\||if)/,t=new WeakMap,i=g.queueUpdate;let o,s=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(e){let i=e.$fastController||t.get(e);return void 0===i&&(Array.isArray(e)?i=s(e):t.set(e,i=new b(e))),i}const n=a();class l{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==o&&o.watch(e,this.name),e[this.field]}setValue(e,t){const i=this.field,o=e[i];if(o!==t){e[i]=t;const s=e[this.callback];"function"==typeof s&&s.call(e,o,t),r(e).notify(this.name)}}}class c extends m{constructor(e,t,i=!1){super(e,t),this.binding=e,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const i=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const s=this.binding(e,t);return o=i,s}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const i=this.last,s=r(e),n=null===i?this.first:{};if(n.propertySource=e,n.propertyName=t,n.notifier=s,s.subscribe(this,t),null!==i){if(!this.needsRefresh){let t;o=void 0,t=i.propertySource[i.propertyName],o=this,e===t&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,i(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){s=e},getNotifier:r,track(e,t){void 0!==o&&o.watch(e,t)},trackVolatile(){void 0!==o&&(o.needsRefresh=!0)},notify(e,t){r(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new l(t)),n(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:n,binding(e,t,i=this.isVolatileBinding(e)){return new c(e,t,i)},isVolatileBinding:t=>e.test(t.toString())})}));function v(e,t){f.defineProperty(e,t)}function y(e,t,i){return Object.assign({},i,{get:function(){return f.trackVolatile(),i.get.apply(this)}})}const x=r.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class ${constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return x.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){x.set(e)}}f.defineProperty($.prototype,"index"),f.defineProperty($.prototype,"length");const w=Object.seal(new $);class C{constructor(){this.targetIndex=0}}class k extends C{constructor(){super(...arguments),this.createPlaceholder=g.createInterpolationPlaceholder}}class T extends C{constructor(e,t,i){super(),this.name=e,this.behavior=t,this.options=i}createPlaceholder(e){return g.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function S(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=f.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function _(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function I(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function F(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function O(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function H(e){g.setAttribute(this.target,this.targetName,e)}function D(e){g.setBooleanAttribute(this.target,this.targetName,e)}function R(e){if(null==e&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function E(e){this.target[this.targetName]=e}function L(e){const t=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=e&&e.length){const s=e.split(/\s+/);for(let e=0,r=s.length;e<r;++e){const r=s[e];""!==r&&(t[r]=o,i.classList.add(r))}}if(this.classVersions=t,this.version=o+1,0!==o){o-=1;for(const e in t)t[e]===o&&i.classList.remove(e)}}class A extends k{constructor(e){super(),this.binding=e,this.bind=S,this.unbind=I,this.updateTarget=H,this.isBindingVolatile=f.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=E,"innerHTML"===this.cleanedTargetName){const e=this.binding;this.binding=(t,i)=>g.createHTML(e(t,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=D;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=_,this.unbind=O;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=L)}}targetAtContent(){this.updateTarget=R,this.unbind=F}createBehavior(e){return new V(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class V{constructor(e,t,i,o,s,r,n){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=r,this.targetName=n}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){$.setEvent(e);const t=this.binding(this.source,this.context);$.setEvent(null),!0!==t&&e.preventDefault()}}let P=null;class B{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){P=this}static borrow(e){const t=P||new B;return t.directives=e,t.reset(),P=null,t}}function M(e){if(1===e.length)return e[0];let t;const i=e.length,o=e.map((e=>"string"==typeof e?()=>e:(t=e.targetName||t,e.binding))),s=new A(((e,t)=>{let s="";for(let r=0;r<i;++r)s+=o[r](e,t);return s}));return s.targetName=t,s}const z=p.length;function N(e,t){const i=t.split(u);if(1===i.length)return null;const o=[];for(let t=0,s=i.length;t<s;++t){const s=i[t],r=s.indexOf(p);let n;if(-1===r)n=s;else{const t=parseInt(s.substring(0,r));o.push(e.directives[t]),n=s.substring(r+z)}""!==n&&o.push(n)}return o}function j(e,t,i=!1){const o=t.attributes;for(let s=0,r=o.length;s<r;++s){const n=o[s],a=n.value,l=N(e,a);let c=null;null===l?i&&(c=new A((()=>a)),c.targetName=n.name):c=M(l),null!==c&&(t.removeAttributeNode(n),s--,r--,e.addFactory(c))}}function G(e,t,i){const o=N(e,t.textContent);if(null!==o){let s=t;for(let r=0,n=o.length;r<n;++r){const n=o[r],a=0===r?t:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof n?a.textContent=n:(a.textContent=" ",e.captureContentBinding(n)),s=a,e.targetIndex++,a!==t&&i.nextNode()}e.targetIndex--}}function q(e,t){const i=e.content;document.adoptNode(i);const o=B.borrow(t);j(o,e,!0);const s=o.behaviorFactories;o.reset();const r=g.createTemplateWalker(i);let n;for(;n=r.nextNode();)switch(o.targetIndex++,n.nodeType){case 1:j(o,n);break;case 3:G(o,n,r);break;case 8:g.isMarker(n)&&o.addFactory(t[g.extractDirectiveIndexFromMarker(n)])}let a=0;(g.isMarker(i.firstChild)||1===i.childNodes.length&&t.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}const U=document.createRange();class W{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let o,s=this.firstChild;for(;s!==t;)o=s.nextSibling,i.insertBefore(s,e),s=o;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i,o=this.firstChild;for(;o!==t;)i=o.nextSibling,e.appendChild(o),o=i;e.appendChild(t)}dispose(){const e=this.firstChild.parentNode,t=this.lastChild;let i,o=this.firstChild;for(;o!==t;)i=o.nextSibling,e.removeChild(o),o=i;e.removeChild(t);const s=this.behaviors,r=this.source;for(let e=0,t=s.length;e<t;++e)s[e].unbind(r)}bind(e,t){const i=this.behaviors;if(this.source!==e)if(null!==this.source){const o=this.source;this.source=e,this.context=t;for(let s=0,r=i.length;s<r;++s){const r=i[s];r.unbind(o),r.bind(e,t)}}else{this.source=e,this.context=t;for(let o=0,s=i.length;o<s;++o)i[o].bind(e,t)}}unbind(){if(null===this.source)return;const e=this.behaviors,t=this.source;for(let i=0,o=e.length;i<o;++i)e[i].unbind(t);this.source=null}static disposeContiguousBatch(e){if(0!==e.length){U.setStartBefore(e[0].firstChild),U.setEndAfter(e[e.length-1].lastChild),U.deleteContents();for(let t=0,i=e.length;t<i;++t){const i=e[t],o=i.behaviors,s=i.source;for(let e=0,t=o.length;e<t;++e)o[e].unbind(s)}}}}class K{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(null===this.fragment){let e;const t=this.html;if("string"==typeof t){e=document.createElement("template"),e.innerHTML=g.createHTML(t);const i=e.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(e=i)}else e=t;const i=q(e,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const t=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=g.createTemplateWalker(t);let r=0,n=this.targetOffset,a=s.nextNode();for(let e=i.length;r<e;++r){const e=i[r],t=e.targetIndex;for(;null!==a;){if(n===t){o[r]=e.createBehavior(a);break}a=s.nextNode(),n++}}if(this.hasHostBehaviors){const t=this.hostBehaviorFactories;for(let i=0,s=t.length;i<s;++i,++r)o[r]=t[i].createBehavior(e)}return new W(t,o)}render(e,t,i){"string"==typeof t&&(t=document.getElementById(t)),void 0===i&&(i=t);const o=this.create(i);return o.bind(e,w),o.appendTo(t),o}}const X=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function Y(e,...t){const i=[];let o="";for(let s=0,r=e.length-1;s<r;++s){const r=e[s];let n=t[s];if(o+=r,n instanceof K){const e=n;n=()=>e}if("function"==typeof n&&(n=new A(n)),n instanceof k){const e=X.exec(r);null!==e&&(n.targetName=e[2])}n instanceof C?(o+=n.createPlaceholder(i.length),i.push(n)):o+=n}return o+=e[e.length-1],new K(o,i)}class Q{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function Z(e){return e.map((e=>e instanceof Q?Z(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function J(e){return e.map((e=>e instanceof Q?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}Q.create=(()=>{if(g.supportsAdoptedStyleSheets){const e=new Map;return t=>new ie(t,e)}return e=>new se(e)})();let ee=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},te=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e)))};if(g.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ee=(e,t)=>{e.adoptedStyleSheets.push(...t)},te=(e,t)=>{for(const i of t){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}class ie extends Q{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=J(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=Z(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let i=t.get(e);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(e),t.set(e,i)),i}))}return this._styleSheets}addStylesTo(e){ee(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){te(e,this.styleSheets),super.removeStylesFrom(e)}}let oe=0;class se extends Q{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=J(e),this.styleSheets=Z(e),this.styleClass="fast-style-class-"+ ++oe}addStylesTo(e){const t=this.styleSheets,i=this.styleClass;e=this.normalizeTarget(e);for(let o=0;o<t.length;o++){const s=document.createElement("style");s.innerHTML=t[o],s.className=i,e.append(s)}super.addStylesTo(e)}removeStylesFrom(e){const t=(e=this.normalizeTarget(e)).querySelectorAll(`.${this.styleClass}`);for(let i=0,o=t.length;i<o;++i)e.removeChild(t[i]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}const re=Object.freeze({locate:a()}),ne={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},ae={toView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t.toString()},fromView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}};class le{constructor(e,t,i=t.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=o,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===o&&void 0===s&&(this.converter=ne)}setValue(e,t){const i=e[this.fieldName],o=this.converter;void 0!==o&&(t=o.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return f.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||"fromView"===t||g.queueUpdate((()=>{i.add(e);const o=e[this.fieldName];switch(t){case"reflect":const t=this.converter;g.setAttribute(e,this.attribute,void 0!==t?t.toView(o):o);break;case"boolean":g.setBooleanAttribute(e,this.attribute,o)}i.delete(e)}))}static collect(e,...t){const i=[];t.push(re.locate(e));for(let o=0,s=t.length;o<s;++o){const s=t[o];if(void 0!==s)for(let t=0,o=s.length;t<o;++t){const o=s[t];"string"==typeof o?i.push(new le(e,o)):i.push(new le(e,o.property,o.attribute,o.mode,o.converter))}}return i}}function ce(e,t){let i;function o(e,t){arguments.length>1&&(i.property=t),re.locate(e.constructor).push(i)}return arguments.length>1?(i={},void o(e,t)):(i=void 0===e?{}:e,o)}const he={mode:"open"},de={},ue=r.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class pe{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const i=le.collect(e,t.attributes),o=new Array(i.length),s={},r={};for(let e=0,t=i.length;e<t;++e){const t=i[e];o[e]=t.attribute,s[t.name]=t,r[t.attribute]=t}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=r,this.shadowOptions=void 0===t.shadowOptions?he:null===t.shadowOptions?void 0:Object.assign(Object.assign({},he),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?de:Object.assign(Object.assign({},de),t.elementOptions),this.styles=void 0===t.styles?void 0:Array.isArray(t.styles)?Q.create(t.styles):t.styles instanceof Q?t.styles:Q.create([t.styles])}get isDefined(){return!!ue.getByType(this.type)}define(e=customElements){const t=this.type;if(ue.register(this)){const e=this.attributes,i=t.prototype;for(let t=0,o=e.length;t<o;++t)f.defineProperty(i,e[t]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}pe.forType=ue.getByType;const ge=new WeakMap,me={bubbles:!0,composed:!0,cancelable:!0};function be(e){return e.shadowRoot||ge.get(e)||null}class fe extends b{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;const i=t.shadowOptions;if(void 0!==i){const t=e.attachShadow(i);"closed"===i.mode&&ge.set(e,t)}const o=f.getAccessors(e);if(o.length>0){const t=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,r=e[s];void 0!==r&&(delete e[s],t[s]=r)}}}get isConnected(){return f.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,f.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}addStyles(e){const t=be(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){const i=e.behaviors;e.addStylesTo(t),null!==i&&this.addBehaviors(i)}}removeStyles(e){const t=be(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){const i=e.behaviors;e.removeStylesFrom(t),null!==i&&this.removeBehaviors(i)}}addBehaviors(e){const t=this.behaviors||(this.behaviors=new Map),i=e.length,o=[];for(let s=0;s<i;++s){const i=e[s];t.has(i)?t.set(i,t.get(i)+1):(t.set(i,1),o.push(i))}if(this._isConnected){const e=this.element;for(let t=0;t<o.length;++t)o[t].bind(e,w)}}removeBehaviors(e,t=!1){const i=this.behaviors;if(null===i)return;const o=e.length,s=[];for(let r=0;r<o;++r){const o=e[r];if(i.has(o)){const e=i.get(o)-1;0===e||t?i.delete(o)&&s.push(o):i.set(o,e)}}if(this._isConnected){const e=this.element;for(let t=0;t<s.length;++t)s[t].unbind(e)}}onConnectedCallback(){if(this._isConnected)return;const e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,w);const t=this.behaviors;if(null!==t)for(const[i]of t)i.bind(e,w);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const e=this.view;null!==e&&e.unbind();const t=this.behaviors;if(null!==t){const e=this.element;for(const[i]of t)i.unbind(e)}}onAttributeChangedCallback(e,t,i){const o=this.definition.attributeLookup[e];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(e,t,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},me),i)))}finishInitialization(){const e=this.element,t=this.boundObservables;if(null!==t){const i=Object.keys(t);for(let o=0,s=i.length;o<s;++o){const s=i[o];e[s]=t[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){const t=this.element,i=be(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||g.removeChildNodes(i),e&&(this.view=e.render(t,i,t))}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const i=pe.forType(e.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return e.$fastController=new fe(e,i)}}function ve(e){return class extends e{constructor(){super(),fe.forCustomElement(this)}$emit(e,t,i){return this.$fastController.emit(e,t,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,i){this.$fastController.onAttributeChangedCallback(e,t,i)}}}const ye=Object.assign(ve(HTMLElement),{from:e=>ve(e),define:(e,t)=>new pe(e,t).define().type});function xe(e){return function(t){new pe(t,e).define()}}class $e{createCSS(){return""}createBehavior(){}}function we(e,t){const i=[];let o="";const s=[];for(let r=0,n=e.length-1;r<n;++r){o+=e[r];let n=t[r];if(n instanceof $e){const e=n.createBehavior();n=n.createCSS(),e&&s.push(e)}n instanceof Q||n instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(n)):o+=n}return o+=e[e.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function Ce(e,...t){const{styles:i,behaviors:o}=we(e,t),s=Q.create(i);return o.length&&s.withBehaviors(...o),s}class ke extends $e{constructor(e,t){super(),this.behaviors=t,this.css="";const i=e.reduce(((e,t)=>("string"==typeof t?this.css+=t:e.push(t),e)),[]);i.length&&(this.styles=Q.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(e){this.styles&&e.$fastController.addStyles(this.styles),this.behaviors.length&&e.$fastController.addBehaviors(this.behaviors)}unbind(e){this.styles&&e.$fastController.removeStyles(this.styles),this.behaviors.length&&e.$fastController.removeBehaviors(this.behaviors)}}function Te(e,...t){const{styles:i,behaviors:o}=we(e,t);return new ke(i,o)}function Se(e,t,i){return{index:e,removed:t,addedCount:i}}const _e=0,Ie=1,Fe=2,Oe=3;function He(e,t,i,o,s,r){let a=0,l=0;const c=Math.min(i-t,r-s);if(0===t&&0===s&&(a=function(e,t,i){for(let o=0;o<i;++o)if(e[o]!==t[o])return o;return i}(e,o,c)),i===e.length&&r===o.length&&(l=function(e,t,i){let o=e.length,s=t.length,r=0;for(;r<i&&e[--o]===t[--s];)r++;return r}(e,o,c-a)),s+=a,r-=l,(i-=l)-(t+=a)==0&&r-s==0)return n;if(t===i){const e=Se(t,[],0);for(;s<r;)e.removed.push(o[s++]);return[e]}if(s===r)return[Se(t,[],i-t)];const h=function(e){let t=e.length-1,i=e[0].length-1,o=e[t][i];const s=[];for(;t>0||i>0;){if(0===t){s.push(Fe),i--;continue}if(0===i){s.push(Oe),t--;continue}const r=e[t-1][i-1],n=e[t-1][i],a=e[t][i-1];let l;l=n<a?n<r?n:r:a<r?a:r,l===r?(r===o?s.push(_e):(s.push(Ie),o=r),t--,i--):l===n?(s.push(Oe),t--,o=n):(s.push(Fe),i--,o=a)}return s.reverse(),s}(function(e,t,i,o,s,r){const n=r-s+1,a=i-t+1,l=new Array(n);let c,h;for(let e=0;e<n;++e)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;++e)l[0][e]=e;for(let i=1;i<n;++i)for(let r=1;r<a;++r)e[t+r-1]===o[s+i-1]?l[i][r]=l[i-1][r-1]:(c=l[i-1][r]+1,h=l[i][r-1]+1,l[i][r]=c<h?c:h);return l}(e,t,i,o,s,r)),d=[];let u,p=t,g=s;for(let e=0;e<h.length;++e)switch(h[e]){case _e:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case Ie:void 0===u&&(u=Se(p,[],0)),u.addedCount++,p++,u.removed.push(o[g]),g++;break;case Fe:void 0===u&&(u=Se(p,[],0)),u.addedCount++,p++;break;case Oe:void 0===u&&(u=Se(p,[],0)),u.removed.push(o[g]),g++}return void 0!==u&&d.push(u),d}const De=Array.prototype.push;function Re(e,t,i,o){const s=Se(t,i,o);let r=!1,n=0;for(let t=0;t<e.length;t++){const i=e[t];if(i.index+=n,r)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){e.splice(t,1),t--,n-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let e=i.removed;if(s.index<i.index){const t=s.removed.slice(0,i.index-s.index);De.apply(t,e),e=t}if(s.index+s.removed.length>i.index+i.addedCount){const t=s.removed.slice(i.index+i.addedCount-s.index);De.apply(e,t)}s.removed=e,i.index<s.index&&(s.index=i.index)}else r=!0}else if(s.index<i.index){r=!0,e.splice(t,0,s),t++;const o=s.addedCount-s.removed.length;i.index+=o,n+=o}}var a,l,c,h;r||e.push(s)}function Ee(e,t){let i=[];const o=function(e){const t=[];for(let i=0,o=e.length;i<o;i++){const o=e[i];Re(t,o.index,o.removed,o.addedCount)}return t}(t);for(let t=0,s=o.length;t<s;++t){const s=o[t];1!==s.addedCount||1!==s.removed.length?i=i.concat(He(e,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==e[s.index]&&i.push(s)}return i}let Le=!1;function Ae(e,t){let i=e.index;const o=t.length;return i>o?i=o-e.addedCount:i<0&&(i=o+e.removed.length+i-e.addedCount),i<0&&(i=0),e.index=i,e}class Ve extends m{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,g.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,g.queueUpdate(this))}flush(){const e=this.splices,t=this.oldCollection;if(void 0===e&&void 0===t)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===t?Ee(this.source,e):He(this.source,0,this.source.length,t,0,t.length);this.notify(i)}}function Pe(){if(Le)return;Le=!0,f.setArrayObserverFactory((e=>new Ve(e)));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,i=e.push,o=e.reverse,s=e.shift,r=e.sort,n=e.splice,a=e.unshift;e.pop=function(){const e=this.length>0,i=t.apply(this,arguments),o=this.$fastController;return void 0!==o&&e&&o.addSplice(Se(this.length,[i],0)),i},e.push=function(){const e=i.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ae(Se(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=o.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.shift=function(){const e=this.length>0,t=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&e&&i.addSplice(Se(0,[t],0)),t},e.sort=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=r.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.splice=function(){const e=n.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ae(Se(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){const e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ae(Se(0,[],arguments.length),this)),e}}class Be{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Me(e){return new T("fast-ref",Be,e)}const ze=e=>"function"==typeof e,Ne=()=>null;function je(e){return void 0===e?Ne:ze(e)?e:()=>e}function Ge(e,t,i){const o=ze(e)?e:()=>e,s=je(t),r=je(i);return(e,t)=>o(e,t)?s(e,t):r(e,t)}const qe=Object.freeze({positioning:!1,recycle:!0});function Ue(e,t,i,o){e.bind(t[i],o)}function We(e,t,i,o){const s=Object.create(o);s.index=i,s.length=t.length,e.bind(t[i],s)}class Ke{constructor(e,t,i,o,s,r){this.location=e,this.itemsBinding=t,this.templateBinding=o,this.options=r,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Ue,this.itemsBindingObserver=f.binding(t,this,i),this.templateBindingObserver=f.binding(o,this,s),r.positioning&&(this.bindView=We)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items)return void(this.items=n);const t=this.itemsObserver,i=this.itemsObserver=f.getNotifier(this.items),o=t!==i;o&&null!==t&&t.unsubscribe(this),(o||e)&&i.subscribe(this)}updateViews(e){const t=this.childContext,i=this.views,o=this.bindView,s=this.items,r=this.template,n=this.options.recycle,a=[];let l=0,c=0;for(let h=0,d=e.length;h<d;++h){const d=e[h],u=d.removed;let p=0,g=d.index;const m=g+d.addedCount,b=i.splice(d.index,u.length),f=c=a.length+b.length;for(;g<m;++g){const e=i[g],h=e?e.firstChild:this.location;let d;n&&c>0?(p<=f&&b.length>0?(d=b[p],p++):(d=a[l],l++),c--):d=r.create(),i.splice(g,0,d),o(d,s,g,t),d.insertBefore(h)}b[p]&&a.push(...b.slice(p))}for(let e=l,t=a.length;e<t;++e)a[e].dispose();if(this.options.positioning)for(let e=0,t=i.length;e<t;++e){const o=i[e].context;o.length=t,o.index=e}}refreshAllViews(e=!1){const t=this.items,i=this.childContext,o=this.template,s=this.location,r=this.bindView;let n=t.length,a=this.views,l=a.length;if(0!==n&&!e&&this.options.recycle||(W.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(n);for(let e=0;e<n;++e){const n=o.create();r(n,t,e,i),a[e]=n,n.insertBefore(s)}}else{let e=0;for(;e<n;++e)if(e<l){r(a[e],t,e,i)}else{const n=o.create();r(n,t,e,i),a.push(n),n.insertBefore(s)}const c=a.splice(e,l-e);for(e=0,n=c.length;e<n;++e)c[e].dispose()}}unbindAllViews(){const e=this.views;for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}class Xe extends C{constructor(e,t,i){super(),this.itemsBinding=e,this.templateBinding=t,this.options=i,this.createPlaceholder=g.createBlockPlaceholder,Pe(),this.isItemsBindingVolatile=f.isVolatileBinding(e),this.isTemplateBindingVolatile=f.isVolatileBinding(t)}createBehavior(e){return new Ke(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Ye(e,t,i=qe){return new Xe(e,"function"==typeof t?t:()=>t,Object.assign(Object.assign({},qe),i))}function Qe(e){return e?function(t,i,o){return 1===t.nodeType&&t.matches(e)}:function(e,t,i){return 1===e.nodeType}}class Ze{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=f.getAccessors(e).some((e=>e.name===t)),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(n),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}class Je extends Ze{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function et(e){return"string"==typeof e&&(e={property:e}),new T("fast-slotted",Je,e)}class tt extends Ze{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function it(e){return"string"==typeof e&&(e={property:e}),new T("fast-children",tt,e)}},45550:(e,t,i)=>{i.r(t),i.d(t,{ARIAGlobalStatesAndProperties:()=>Fe,Accordion:()=>_e,AccordionExpandMode:()=>Se,AccordionItem:()=>de,Anchor:()=>Oe,AnchoredRegion:()=>ze,Avatar:()=>Ye,Badge:()=>Ze,BaseProgress:()=>So,Breadcrumb:()=>it,BreadcrumbItem:()=>et,Button:()=>ut,Calendar:()=>mt,CalendarTitleTemplate:()=>kt,Card:()=>Dt,CheckableFormAssociated:()=>ct,Checkbox:()=>At,Combobox:()=>Yt,ComboboxAutocomplete:()=>Xt,ComponentPresentation:()=>re,Container:()=>x,ContainerConfiguration:()=>m,ContainerImpl:()=>U,DI:()=>y,DataGrid:()=>Ct,DataGridCell:()=>$t,DataGridCellTypes:()=>ft,DataGridRow:()=>wt,DataGridRowTypes:()=>vt,DateFormatter:()=>gt,DefaultComponentPresentation:()=>ne,DefaultResolver:()=>g,DelegatesARIAButton:()=>pt,DelegatesARIACombobox:()=>Qt,DelegatesARIALink:()=>He,DelegatesARIAListbox:()=>qt,DelegatesARIAListboxOption:()=>jt,DelegatesARIASearch:()=>zo,DelegatesARIASelect:()=>qo,DelegatesARIATextbox:()=>$o,DelegatesARIAToolbar:()=>ks,DesignSystem:()=>Si,DesignToken:()=>xi,Dialog:()=>Hi,Disclosure:()=>Vi,Divider:()=>zi,DividerRole:()=>Mi,ElementDisambiguation:()=>$i,FactoryImpl:()=>B,Flipper:()=>Gi,FlipperDirection:()=>Ni,FlyoutPosBottom:()=>Ge,FlyoutPosBottomFill:()=>We,FlyoutPosTallest:()=>qe,FlyoutPosTallestFill:()=>Ke,FlyoutPosTop:()=>je,FlyoutPosTopFill:()=>Ue,FormAssociated:()=>lt,FoundationElement:()=>ae,FoundationElementRegistry:()=>ce,GenerateHeaderOptions:()=>bt,HorizontalScroll:()=>Eo,Listbox:()=>Gt,ListboxElement:()=>Ui,ListboxOption:()=>Nt,MatchMediaBehavior:()=>Rs,MatchMediaStyleSheetBehavior:()=>Es,Menu:()=>mo,MenuItem:()=>po,MenuItemRole:()=>co,NumberField:()=>ko,Picker:()=>so,PickerList:()=>Qi,PickerListItem:()=>Ji,PickerMenu:()=>Ki,PickerMenuOption:()=>Yi,PropertyStyleSheetBehavior:()=>Ps,Radio:()=>Ro,RadioGroup:()=>Fo,Registration:()=>X,ResolverBuilder:()=>u,ResolverImpl:()=>A,Search:()=>Mo,Select:()=>Go,SelectPosition:()=>Ut,ServiceLocator:()=>$,Skeleton:()=>Ko,Slider:()=>os,SliderLabel:()=>Zo,SliderMode:()=>is,StartEnd:()=>s,Switch:()=>as,Tab:()=>ds,TabPanel:()=>cs,Tabs:()=>gs,TabsOrientation:()=>ps,TextArea:()=>ys,TextAreaResize:()=>ms,TextField:()=>xo,TextFieldType:()=>yo,Toolbar:()=>Cs,Tooltip:()=>_s,TooltipPosition:()=>Ss,TreeItem:()=>Os,TreeView:()=>Ds,accordionItemTemplate:()=>c,accordionTemplate:()=>ue,all:()=>I,anchorTemplate:()=>Ie,anchoredRegionTemplate:()=>De,applyMixins:()=>he,avatarTemplate:()=>Xe,badgeTemplate:()=>Qe,breadcrumbItemTemplate:()=>Je,breadcrumbTemplate:()=>tt,buttonTemplate:()=>ot,calendarCellTemplate:()=>St,calendarRowTemplate:()=>_t,calendarTemplate:()=>Ot,calendarWeekdayTemplate:()=>Tt,cardTemplate:()=>Ht,checkboxTemplate:()=>Rt,comboboxTemplate:()=>Zt,composedContains:()=>oi,composedParent:()=>ii,darkModeStylesheetBehavior:()=>As,dataGridCellTemplate:()=>ti,dataGridRowTemplate:()=>ei,dataGridTemplate:()=>Jt,dialogTemplate:()=>Fi,disabledCursor:()=>Bs,disclosureTemplate:()=>Ai,display:()=>zs,dividerTemplate:()=>Pi,endSlotTemplate:()=>r,endTemplate:()=>a,flipperTemplate:()=>ji,focusVisible:()=>Ns,forcedColorsStylesheetBehavior:()=>Ls,getDirection:()=>Me,hidden:()=>Ms,horizontalScrollTemplate:()=>Lo,ignore:()=>D,inject:()=>C,interactiveCalendarGridTemplate:()=>It,isListboxOption:()=>zt,isTreeItemElement:()=>Fs,lazy:()=>O,lightModeStylesheetBehavior:()=>Vs,listboxOptionTemplate:()=>qi,listboxTemplate:()=>Wi,menuItemTemplate:()=>uo,menuTemplate:()=>go,newInstanceForScope:()=>R,newInstanceOf:()=>E,noninteractiveCalendarTemplate:()=>Ft,numberFieldTemplate:()=>bo,optional:()=>H,pickerListItemTemplate:()=>lo,pickerListTemplate:()=>ao,pickerMenuOptionTemplate:()=>no,pickerMenuTemplate:()=>ro,pickerTemplate:()=>eo,progressRingTemplate:()=>To,progressTemplate:()=>_o,radioGroupTemplate:()=>Io,radioTemplate:()=>Oo,reflectAttributes:()=>Li,roleForMenuItem:()=>ho,searchTemplate:()=>Vo,selectTemplate:()=>Uo,singleton:()=>_,skeletonTemplate:()=>Wo,sliderLabelTemplate:()=>Xo,sliderTemplate:()=>Jo,startSlotTemplate:()=>n,startTemplate:()=>l,supportsElementInternals:()=>nt,switchTemplate:()=>ss,tabPanelTemplate:()=>ls,tabTemplate:()=>hs,tabsTemplate:()=>us,textAreaTemplate:()=>bs,textFieldTemplate:()=>xs,toolbarTemplate:()=>$s,tooltipTemplate:()=>Ts,transient:()=>T,treeItemTemplate:()=>Is,treeViewTemplate:()=>Hs,validateKey:()=>Y,whitespaceFilter:()=>Ao});var o=i(79292);class s{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const r=(e,t)=>o.html`
|
|
4936
|
+
`,qs=o.TreeView.compose({baseName:"tree-view",template:o.treeViewTemplate,styles:Gs}),Us={fastAccordion:ri,fastAccordionItem:si,fastAnchor:bi,fastAnchoredRegion:vi,fastAvatar:ki,fastBadge:Si,fastBreadcrumb:Oi,fastBreadcrumbItem:Ii,fastButton:Ri,fastCalendar:Li,fastCard:Pi,fastCheckbox:zi,fastCombobox:Ui,fastDataGrid:Zi,fastDataGridCell:Yi,fastDataGridRow:Qi,fastDesignSystemProvider:ro,fastDialog:ao,fastDisclosure:ho,fastDivider:po,fastFlipper:mo,fastHorizontalScroll:$o,fastListbox:To,fastOption:Co,fastMenu:Oo,fastMenuItem:_o,fastNumberField:Ro,fastPicker:Bo,fastPickerList:No,fastPickerListItem:jo,fastPickerMenu:Mo,fastPickerMenuOption:zo,fastProgress:Wo,fastProgressRing:qo,fastRadio:Qo,fastRadioGroup:Xo,fastSearch:is,fastSelect:rs,fastSkeleton:as,fastSlider:fs,fastSliderLabel:ps,fastSwitch:ys,fastTabs:Ts,fastTab:ws,fastTabPanel:ks,fastTextArea:Is,fastTextField:Hs,fastTooltip:As,fastToolbar:Es,fastTreeView:qs,fastTreeItem:js,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};function Ws(e){return o.DesignSystem.getOrCreate(e).withPrefix("fast")}},12122:(e,t,i)=>{i.r(t),i.d(t,{$global:()=>o,AttachedBehaviorHTMLDirective:()=>T,AttributeConfiguration:()=>re,AttributeDefinition:()=>le,BindingBehavior:()=>V,CSSDirective:()=>$e,ChildrenBehavior:()=>tt,Controller:()=>fe,DOM:()=>g,ElementStyles:()=>Q,ExecutionContext:()=>$,FAST:()=>r,FASTElement:()=>ye,FASTElementDefinition:()=>pe,HTMLBindingDirective:()=>A,HTMLDirective:()=>C,HTMLView:()=>W,Observable:()=>f,PropertyChangeNotifier:()=>b,RefBehavior:()=>Pe,RepeatBehavior:()=>Ke,RepeatDirective:()=>Xe,SlottedBehavior:()=>Je,SubscriberSet:()=>m,TargetedHTMLDirective:()=>k,ViewTemplate:()=>K,attr:()=>ce,booleanConverter:()=>ne,children:()=>it,compileTemplate:()=>q,createMetadataLocator:()=>a,css:()=>Ce,cssPartial:()=>Te,customElement:()=>xe,defaultExecutionContext:()=>w,elements:()=>Qe,emptyArray:()=>n,enableArrayObservation:()=>Be,html:()=>Y,nullableNumberConverter:()=>ae,observable:()=>v,ref:()=>Me,repeat:()=>Ye,slotted:()=>et,volatile:()=>y,when:()=>Ge});const o=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===o.trustedTypes&&(o.trustedTypes={createPolicy:(e,t)=>t});const s={configurable:!1,enumerable:!1,writable:!1};void 0===o.FAST&&Reflect.defineProperty(o,"FAST",Object.assign({value:Object.create(null)},s));const r=o.FAST;if(void 0===r.getById){const e=Object.create(null);Reflect.defineProperty(r,"getById",Object.assign({value(t,i){let o=e[t];return void 0===o&&(o=i?e[t]=i():null),o}},s))}const n=Object.freeze([]);function a(){const e=new WeakMap;return function(t){let i=e.get(t);if(void 0===i){let o=Reflect.getPrototypeOf(t);for(;void 0===i&&null!==o;)i=e.get(o),o=Reflect.getPrototypeOf(o);i=void 0===i?[]:i.slice(0),e.set(t,i)}return i}}const l=o.FAST.getById(1,(()=>{const e=[],t=[];function i(){if(t.length)throw t.shift()}function s(e){try{e.call()}catch(e){t.push(e),setTimeout(i,0)}}function r(){let t=0;for(;t<e.length;)if(s(e[t]),t++,t>1024){for(let i=0,o=e.length-t;i<o;i++)e[i]=e[i+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&o.requestAnimationFrame(r),e.push(t)},process:r})})),c=o.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let h=c;const d=`fast-${Math.random().toString(36).substring(2,8)}`,u=`${d}{`,p=`}${d}`,g=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(h!==c)throw new Error("The HTML policy can only be set once.");h=e},createHTML:e=>h.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(d),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${d}:`,"")),createInterpolationPlaceholder:e=>`${u}${e}${p}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${d}:${e}--\x3e`,queueUpdate:l.enqueue,processUpdates:l.process,nextUpdate:()=>new Promise(l.enqueue),setAttribute(e,t,i){null==i?e.removeAttribute(t):e.setAttribute(t,i)},setBooleanAttribute(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});class m{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.source;if(void 0===t){const t=this.sub1,o=this.sub2;void 0!==t&&t.handleChange(i,e),void 0!==o&&o.handleChange(i,e)}else for(let o=0,s=t.length;o<s;++o)t[o].handleChange(i,e)}}class b{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;const i=this.subscribers[e];void 0!==i&&i.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}subscribe(e,t){var i;if(t){let i=this.subscribers[t];void 0===i&&(this.subscribers[t]=i=new m(this.source)),i.subscribe(e)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new m(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var i;if(t){const i=this.subscribers[t];void 0!==i&&i.unsubscribe(e)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(e)}}const f=r.getById(2,(()=>{const e=/(:|&&|\|\||if)/,t=new WeakMap,i=g.queueUpdate;let o,s=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(e){let i=e.$fastController||t.get(e);return void 0===i&&(Array.isArray(e)?i=s(e):t.set(e,i=new b(e))),i}const n=a();class l{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==o&&o.watch(e,this.name),e[this.field]}setValue(e,t){const i=this.field,o=e[i];if(o!==t){e[i]=t;const s=e[this.callback];"function"==typeof s&&s.call(e,o,t),r(e).notify(this.name)}}}class c extends m{constructor(e,t,i=!1){super(e,t),this.binding=e,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const i=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const s=this.binding(e,t);return o=i,s}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const i=this.last,s=r(e),n=null===i?this.first:{};if(n.propertySource=e,n.propertyName=t,n.notifier=s,s.subscribe(this,t),null!==i){if(!this.needsRefresh){let t;o=void 0,t=i.propertySource[i.propertyName],o=this,e===t&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,i(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){s=e},getNotifier:r,track(e,t){void 0!==o&&o.watch(e,t)},trackVolatile(){void 0!==o&&(o.needsRefresh=!0)},notify(e,t){r(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new l(t)),n(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:n,binding(e,t,i=this.isVolatileBinding(e)){return new c(e,t,i)},isVolatileBinding:t=>e.test(t.toString())})}));function v(e,t){f.defineProperty(e,t)}function y(e,t,i){return Object.assign({},i,{get:function(){return f.trackVolatile(),i.get.apply(this)}})}const x=r.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class ${constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return x.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){x.set(e)}}f.defineProperty($.prototype,"index"),f.defineProperty($.prototype,"length");const w=Object.seal(new $);class C{constructor(){this.targetIndex=0}}class k extends C{constructor(){super(...arguments),this.createPlaceholder=g.createInterpolationPlaceholder}}class T extends C{constructor(e,t,i){super(),this.name=e,this.behavior=t,this.options=i}createPlaceholder(e){return g.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function S(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=f.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function _(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function I(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function F(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function O(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function H(e){g.setAttribute(this.target,this.targetName,e)}function D(e){g.setBooleanAttribute(this.target,this.targetName,e)}function R(e){if(null==e&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function E(e){this.target[this.targetName]=e}function L(e){const t=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=e&&e.length){const s=e.split(/\s+/);for(let e=0,r=s.length;e<r;++e){const r=s[e];""!==r&&(t[r]=o,i.classList.add(r))}}if(this.classVersions=t,this.version=o+1,0!==o){o-=1;for(const e in t)t[e]===o&&i.classList.remove(e)}}class A extends k{constructor(e){super(),this.binding=e,this.bind=S,this.unbind=I,this.updateTarget=H,this.isBindingVolatile=f.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=E,"innerHTML"===this.cleanedTargetName){const e=this.binding;this.binding=(t,i)=>g.createHTML(e(t,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=D;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=_,this.unbind=O;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=L)}}targetAtContent(){this.updateTarget=R,this.unbind=F}createBehavior(e){return new V(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class V{constructor(e,t,i,o,s,r,n){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=r,this.targetName=n}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){$.setEvent(e);const t=this.binding(this.source,this.context);$.setEvent(null),!0!==t&&e.preventDefault()}}let B=null;class P{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){B=this}static borrow(e){const t=B||new P;return t.directives=e,t.reset(),B=null,t}}function M(e){if(1===e.length)return e[0];let t;const i=e.length,o=e.map((e=>"string"==typeof e?()=>e:(t=e.targetName||t,e.binding))),s=new A(((e,t)=>{let s="";for(let r=0;r<i;++r)s+=o[r](e,t);return s}));return s.targetName=t,s}const z=p.length;function N(e,t){const i=t.split(u);if(1===i.length)return null;const o=[];for(let t=0,s=i.length;t<s;++t){const s=i[t],r=s.indexOf(p);let n;if(-1===r)n=s;else{const t=parseInt(s.substring(0,r));o.push(e.directives[t]),n=s.substring(r+z)}""!==n&&o.push(n)}return o}function j(e,t,i=!1){const o=t.attributes;for(let s=0,r=o.length;s<r;++s){const n=o[s],a=n.value,l=N(e,a);let c=null;null===l?i&&(c=new A((()=>a)),c.targetName=n.name):c=M(l),null!==c&&(t.removeAttributeNode(n),s--,r--,e.addFactory(c))}}function G(e,t,i){const o=N(e,t.textContent);if(null!==o){let s=t;for(let r=0,n=o.length;r<n;++r){const n=o[r],a=0===r?t:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof n?a.textContent=n:(a.textContent=" ",e.captureContentBinding(n)),s=a,e.targetIndex++,a!==t&&i.nextNode()}e.targetIndex--}}function q(e,t){const i=e.content;document.adoptNode(i);const o=P.borrow(t);j(o,e,!0);const s=o.behaviorFactories;o.reset();const r=g.createTemplateWalker(i);let n;for(;n=r.nextNode();)switch(o.targetIndex++,n.nodeType){case 1:j(o,n);break;case 3:G(o,n,r);break;case 8:g.isMarker(n)&&o.addFactory(t[g.extractDirectiveIndexFromMarker(n)])}let a=0;(g.isMarker(i.firstChild)||1===i.childNodes.length&&t.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}const U=document.createRange();class W{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let o,s=this.firstChild;for(;s!==t;)o=s.nextSibling,i.insertBefore(s,e),s=o;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i,o=this.firstChild;for(;o!==t;)i=o.nextSibling,e.appendChild(o),o=i;e.appendChild(t)}dispose(){const e=this.firstChild.parentNode,t=this.lastChild;let i,o=this.firstChild;for(;o!==t;)i=o.nextSibling,e.removeChild(o),o=i;e.removeChild(t);const s=this.behaviors,r=this.source;for(let e=0,t=s.length;e<t;++e)s[e].unbind(r)}bind(e,t){const i=this.behaviors;if(this.source!==e)if(null!==this.source){const o=this.source;this.source=e,this.context=t;for(let s=0,r=i.length;s<r;++s){const r=i[s];r.unbind(o),r.bind(e,t)}}else{this.source=e,this.context=t;for(let o=0,s=i.length;o<s;++o)i[o].bind(e,t)}}unbind(){if(null===this.source)return;const e=this.behaviors,t=this.source;for(let i=0,o=e.length;i<o;++i)e[i].unbind(t);this.source=null}static disposeContiguousBatch(e){if(0!==e.length){U.setStartBefore(e[0].firstChild),U.setEndAfter(e[e.length-1].lastChild),U.deleteContents();for(let t=0,i=e.length;t<i;++t){const i=e[t],o=i.behaviors,s=i.source;for(let e=0,t=o.length;e<t;++e)o[e].unbind(s)}}}}class K{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(null===this.fragment){let e;const t=this.html;if("string"==typeof t){e=document.createElement("template"),e.innerHTML=g.createHTML(t);const i=e.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(e=i)}else e=t;const i=q(e,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const t=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=g.createTemplateWalker(t);let r=0,n=this.targetOffset,a=s.nextNode();for(let e=i.length;r<e;++r){const e=i[r],t=e.targetIndex;for(;null!==a;){if(n===t){o[r]=e.createBehavior(a);break}a=s.nextNode(),n++}}if(this.hasHostBehaviors){const t=this.hostBehaviorFactories;for(let i=0,s=t.length;i<s;++i,++r)o[r]=t[i].createBehavior(e)}return new W(t,o)}render(e,t,i){"string"==typeof t&&(t=document.getElementById(t)),void 0===i&&(i=t);const o=this.create(i);return o.bind(e,w),o.appendTo(t),o}}const X=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function Y(e,...t){const i=[];let o="";for(let s=0,r=e.length-1;s<r;++s){const r=e[s];let n=t[s];if(o+=r,n instanceof K){const e=n;n=()=>e}if("function"==typeof n&&(n=new A(n)),n instanceof k){const e=X.exec(r);null!==e&&(n.targetName=e[2])}n instanceof C?(o+=n.createPlaceholder(i.length),i.push(n)):o+=n}return o+=e[e.length-1],new K(o,i)}class Q{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function Z(e){return e.map((e=>e instanceof Q?Z(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function J(e){return e.map((e=>e instanceof Q?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}Q.create=(()=>{if(g.supportsAdoptedStyleSheets){const e=new Map;return t=>new ie(t,e)}return e=>new se(e)})();let ee=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},te=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e)))};if(g.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ee=(e,t)=>{e.adoptedStyleSheets.push(...t)},te=(e,t)=>{for(const i of t){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}class ie extends Q{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=J(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=Z(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let i=t.get(e);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(e),t.set(e,i)),i}))}return this._styleSheets}addStylesTo(e){ee(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){te(e,this.styleSheets),super.removeStylesFrom(e)}}let oe=0;class se extends Q{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=J(e),this.styleSheets=Z(e),this.styleClass="fast-style-class-"+ ++oe}addStylesTo(e){const t=this.styleSheets,i=this.styleClass;e=this.normalizeTarget(e);for(let o=0;o<t.length;o++){const s=document.createElement("style");s.innerHTML=t[o],s.className=i,e.append(s)}super.addStylesTo(e)}removeStylesFrom(e){const t=(e=this.normalizeTarget(e)).querySelectorAll(`.${this.styleClass}`);for(let i=0,o=t.length;i<o;++i)e.removeChild(t[i]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}const re=Object.freeze({locate:a()}),ne={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},ae={toView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t.toString()},fromView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}};class le{constructor(e,t,i=t.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=o,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===o&&void 0===s&&(this.converter=ne)}setValue(e,t){const i=e[this.fieldName],o=this.converter;void 0!==o&&(t=o.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return f.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||"fromView"===t||g.queueUpdate((()=>{i.add(e);const o=e[this.fieldName];switch(t){case"reflect":const t=this.converter;g.setAttribute(e,this.attribute,void 0!==t?t.toView(o):o);break;case"boolean":g.setBooleanAttribute(e,this.attribute,o)}i.delete(e)}))}static collect(e,...t){const i=[];t.push(re.locate(e));for(let o=0,s=t.length;o<s;++o){const s=t[o];if(void 0!==s)for(let t=0,o=s.length;t<o;++t){const o=s[t];"string"==typeof o?i.push(new le(e,o)):i.push(new le(e,o.property,o.attribute,o.mode,o.converter))}}return i}}function ce(e,t){let i;function o(e,t){arguments.length>1&&(i.property=t),re.locate(e.constructor).push(i)}return arguments.length>1?(i={},void o(e,t)):(i=void 0===e?{}:e,o)}const he={mode:"open"},de={},ue=r.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class pe{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const i=le.collect(e,t.attributes),o=new Array(i.length),s={},r={};for(let e=0,t=i.length;e<t;++e){const t=i[e];o[e]=t.attribute,s[t.name]=t,r[t.attribute]=t}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=r,this.shadowOptions=void 0===t.shadowOptions?he:null===t.shadowOptions?void 0:Object.assign(Object.assign({},he),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?de:Object.assign(Object.assign({},de),t.elementOptions),this.styles=void 0===t.styles?void 0:Array.isArray(t.styles)?Q.create(t.styles):t.styles instanceof Q?t.styles:Q.create([t.styles])}get isDefined(){return!!ue.getByType(this.type)}define(e=customElements){const t=this.type;if(ue.register(this)){const e=this.attributes,i=t.prototype;for(let t=0,o=e.length;t<o;++t)f.defineProperty(i,e[t]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}pe.forType=ue.getByType;const ge=new WeakMap,me={bubbles:!0,composed:!0,cancelable:!0};function be(e){return e.shadowRoot||ge.get(e)||null}class fe extends b{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;const i=t.shadowOptions;if(void 0!==i){const t=e.attachShadow(i);"closed"===i.mode&&ge.set(e,t)}const o=f.getAccessors(e);if(o.length>0){const t=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,r=e[s];void 0!==r&&(delete e[s],t[s]=r)}}}get isConnected(){return f.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,f.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}addStyles(e){const t=be(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){const i=e.behaviors;e.addStylesTo(t),null!==i&&this.addBehaviors(i)}}removeStyles(e){const t=be(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){const i=e.behaviors;e.removeStylesFrom(t),null!==i&&this.removeBehaviors(i)}}addBehaviors(e){const t=this.behaviors||(this.behaviors=new Map),i=e.length,o=[];for(let s=0;s<i;++s){const i=e[s];t.has(i)?t.set(i,t.get(i)+1):(t.set(i,1),o.push(i))}if(this._isConnected){const e=this.element;for(let t=0;t<o.length;++t)o[t].bind(e,w)}}removeBehaviors(e,t=!1){const i=this.behaviors;if(null===i)return;const o=e.length,s=[];for(let r=0;r<o;++r){const o=e[r];if(i.has(o)){const e=i.get(o)-1;0===e||t?i.delete(o)&&s.push(o):i.set(o,e)}}if(this._isConnected){const e=this.element;for(let t=0;t<s.length;++t)s[t].unbind(e)}}onConnectedCallback(){if(this._isConnected)return;const e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,w);const t=this.behaviors;if(null!==t)for(const[i]of t)i.bind(e,w);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const e=this.view;null!==e&&e.unbind();const t=this.behaviors;if(null!==t){const e=this.element;for(const[i]of t)i.unbind(e)}}onAttributeChangedCallback(e,t,i){const o=this.definition.attributeLookup[e];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(e,t,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},me),i)))}finishInitialization(){const e=this.element,t=this.boundObservables;if(null!==t){const i=Object.keys(t);for(let o=0,s=i.length;o<s;++o){const s=i[o];e[s]=t[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){const t=this.element,i=be(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||g.removeChildNodes(i),e&&(this.view=e.render(t,i,t))}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const i=pe.forType(e.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return e.$fastController=new fe(e,i)}}function ve(e){return class extends e{constructor(){super(),fe.forCustomElement(this)}$emit(e,t,i){return this.$fastController.emit(e,t,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,i){this.$fastController.onAttributeChangedCallback(e,t,i)}}}const ye=Object.assign(ve(HTMLElement),{from:e=>ve(e),define:(e,t)=>new pe(e,t).define().type});function xe(e){return function(t){new pe(t,e).define()}}class $e{createCSS(){return""}createBehavior(){}}function we(e,t){const i=[];let o="";const s=[];for(let r=0,n=e.length-1;r<n;++r){o+=e[r];let n=t[r];if(n instanceof $e){const e=n.createBehavior();n=n.createCSS(),e&&s.push(e)}n instanceof Q||n instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(n)):o+=n}return o+=e[e.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function Ce(e,...t){const{styles:i,behaviors:o}=we(e,t),s=Q.create(i);return o.length&&s.withBehaviors(...o),s}class ke extends $e{constructor(e,t){super(),this.behaviors=t,this.css="";const i=e.reduce(((e,t)=>("string"==typeof t?this.css+=t:e.push(t),e)),[]);i.length&&(this.styles=Q.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(e){this.styles&&e.$fastController.addStyles(this.styles),this.behaviors.length&&e.$fastController.addBehaviors(this.behaviors)}unbind(e){this.styles&&e.$fastController.removeStyles(this.styles),this.behaviors.length&&e.$fastController.removeBehaviors(this.behaviors)}}function Te(e,...t){const{styles:i,behaviors:o}=we(e,t);return new ke(i,o)}function Se(e,t,i){return{index:e,removed:t,addedCount:i}}const _e=0,Ie=1,Fe=2,Oe=3;function He(e,t,i,o,s,r){let a=0,l=0;const c=Math.min(i-t,r-s);if(0===t&&0===s&&(a=function(e,t,i){for(let o=0;o<i;++o)if(e[o]!==t[o])return o;return i}(e,o,c)),i===e.length&&r===o.length&&(l=function(e,t,i){let o=e.length,s=t.length,r=0;for(;r<i&&e[--o]===t[--s];)r++;return r}(e,o,c-a)),s+=a,r-=l,(i-=l)-(t+=a)==0&&r-s==0)return n;if(t===i){const e=Se(t,[],0);for(;s<r;)e.removed.push(o[s++]);return[e]}if(s===r)return[Se(t,[],i-t)];const h=function(e){let t=e.length-1,i=e[0].length-1,o=e[t][i];const s=[];for(;t>0||i>0;){if(0===t){s.push(Fe),i--;continue}if(0===i){s.push(Oe),t--;continue}const r=e[t-1][i-1],n=e[t-1][i],a=e[t][i-1];let l;l=n<a?n<r?n:r:a<r?a:r,l===r?(r===o?s.push(_e):(s.push(Ie),o=r),t--,i--):l===n?(s.push(Oe),t--,o=n):(s.push(Fe),i--,o=a)}return s.reverse(),s}(function(e,t,i,o,s,r){const n=r-s+1,a=i-t+1,l=new Array(n);let c,h;for(let e=0;e<n;++e)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;++e)l[0][e]=e;for(let i=1;i<n;++i)for(let r=1;r<a;++r)e[t+r-1]===o[s+i-1]?l[i][r]=l[i-1][r-1]:(c=l[i-1][r]+1,h=l[i][r-1]+1,l[i][r]=c<h?c:h);return l}(e,t,i,o,s,r)),d=[];let u,p=t,g=s;for(let e=0;e<h.length;++e)switch(h[e]){case _e:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case Ie:void 0===u&&(u=Se(p,[],0)),u.addedCount++,p++,u.removed.push(o[g]),g++;break;case Fe:void 0===u&&(u=Se(p,[],0)),u.addedCount++,p++;break;case Oe:void 0===u&&(u=Se(p,[],0)),u.removed.push(o[g]),g++}return void 0!==u&&d.push(u),d}const De=Array.prototype.push;function Re(e,t,i,o){const s=Se(t,i,o);let r=!1,n=0;for(let t=0;t<e.length;t++){const i=e[t];if(i.index+=n,r)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){e.splice(t,1),t--,n-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let e=i.removed;if(s.index<i.index){const t=s.removed.slice(0,i.index-s.index);De.apply(t,e),e=t}if(s.index+s.removed.length>i.index+i.addedCount){const t=s.removed.slice(i.index+i.addedCount-s.index);De.apply(e,t)}s.removed=e,i.index<s.index&&(s.index=i.index)}else r=!0}else if(s.index<i.index){r=!0,e.splice(t,0,s),t++;const o=s.addedCount-s.removed.length;i.index+=o,n+=o}}var a,l,c,h;r||e.push(s)}function Ee(e,t){let i=[];const o=function(e){const t=[];for(let i=0,o=e.length;i<o;i++){const o=e[i];Re(t,o.index,o.removed,o.addedCount)}return t}(t);for(let t=0,s=o.length;t<s;++t){const s=o[t];1!==s.addedCount||1!==s.removed.length?i=i.concat(He(e,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==e[s.index]&&i.push(s)}return i}let Le=!1;function Ae(e,t){let i=e.index;const o=t.length;return i>o?i=o-e.addedCount:i<0&&(i=o+e.removed.length+i-e.addedCount),i<0&&(i=0),e.index=i,e}class Ve extends m{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,g.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,g.queueUpdate(this))}flush(){const e=this.splices,t=this.oldCollection;if(void 0===e&&void 0===t)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===t?Ee(this.source,e):He(this.source,0,this.source.length,t,0,t.length);this.notify(i)}}function Be(){if(Le)return;Le=!0,f.setArrayObserverFactory((e=>new Ve(e)));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,i=e.push,o=e.reverse,s=e.shift,r=e.sort,n=e.splice,a=e.unshift;e.pop=function(){const e=this.length>0,i=t.apply(this,arguments),o=this.$fastController;return void 0!==o&&e&&o.addSplice(Se(this.length,[i],0)),i},e.push=function(){const e=i.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ae(Se(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=o.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.shift=function(){const e=this.length>0,t=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&e&&i.addSplice(Se(0,[t],0)),t},e.sort=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=r.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.splice=function(){const e=n.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ae(Se(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){const e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Ae(Se(0,[],arguments.length),this)),e}}class Pe{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Me(e){return new T("fast-ref",Pe,e)}const ze=e=>"function"==typeof e,Ne=()=>null;function je(e){return void 0===e?Ne:ze(e)?e:()=>e}function Ge(e,t,i){const o=ze(e)?e:()=>e,s=je(t),r=je(i);return(e,t)=>o(e,t)?s(e,t):r(e,t)}const qe=Object.freeze({positioning:!1,recycle:!0});function Ue(e,t,i,o){e.bind(t[i],o)}function We(e,t,i,o){const s=Object.create(o);s.index=i,s.length=t.length,e.bind(t[i],s)}class Ke{constructor(e,t,i,o,s,r){this.location=e,this.itemsBinding=t,this.templateBinding=o,this.options=r,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Ue,this.itemsBindingObserver=f.binding(t,this,i),this.templateBindingObserver=f.binding(o,this,s),r.positioning&&(this.bindView=We)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items)return void(this.items=n);const t=this.itemsObserver,i=this.itemsObserver=f.getNotifier(this.items),o=t!==i;o&&null!==t&&t.unsubscribe(this),(o||e)&&i.subscribe(this)}updateViews(e){const t=this.childContext,i=this.views,o=this.bindView,s=this.items,r=this.template,n=this.options.recycle,a=[];let l=0,c=0;for(let h=0,d=e.length;h<d;++h){const d=e[h],u=d.removed;let p=0,g=d.index;const m=g+d.addedCount,b=i.splice(d.index,u.length),f=c=a.length+b.length;for(;g<m;++g){const e=i[g],h=e?e.firstChild:this.location;let d;n&&c>0?(p<=f&&b.length>0?(d=b[p],p++):(d=a[l],l++),c--):d=r.create(),i.splice(g,0,d),o(d,s,g,t),d.insertBefore(h)}b[p]&&a.push(...b.slice(p))}for(let e=l,t=a.length;e<t;++e)a[e].dispose();if(this.options.positioning)for(let e=0,t=i.length;e<t;++e){const o=i[e].context;o.length=t,o.index=e}}refreshAllViews(e=!1){const t=this.items,i=this.childContext,o=this.template,s=this.location,r=this.bindView;let n=t.length,a=this.views,l=a.length;if(0!==n&&!e&&this.options.recycle||(W.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(n);for(let e=0;e<n;++e){const n=o.create();r(n,t,e,i),a[e]=n,n.insertBefore(s)}}else{let e=0;for(;e<n;++e)if(e<l){r(a[e],t,e,i)}else{const n=o.create();r(n,t,e,i),a.push(n),n.insertBefore(s)}const c=a.splice(e,l-e);for(e=0,n=c.length;e<n;++e)c[e].dispose()}}unbindAllViews(){const e=this.views;for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}class Xe extends C{constructor(e,t,i){super(),this.itemsBinding=e,this.templateBinding=t,this.options=i,this.createPlaceholder=g.createBlockPlaceholder,Be(),this.isItemsBindingVolatile=f.isVolatileBinding(e),this.isTemplateBindingVolatile=f.isVolatileBinding(t)}createBehavior(e){return new Ke(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Ye(e,t,i=qe){return new Xe(e,"function"==typeof t?t:()=>t,Object.assign(Object.assign({},qe),i))}function Qe(e){return e?function(t,i,o){return 1===t.nodeType&&t.matches(e)}:function(e,t,i){return 1===e.nodeType}}class Ze{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=f.getAccessors(e).some((e=>e.name===t)),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(n),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}class Je extends Ze{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function et(e){return"string"==typeof e&&(e={property:e}),new T("fast-slotted",Je,e)}class tt extends Ze{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function it(e){return"string"==typeof e&&(e={property:e}),new T("fast-children",tt,e)}},69763:(e,t,i)=>{i.r(t),i.d(t,{ARIAGlobalStatesAndProperties:()=>ve,Accordion:()=>be,AccordionExpandMode:()=>me,AccordionItem:()=>de,Anchor:()=>ye,AnchoredRegion:()=>Oe,Avatar:()=>Pe,Badge:()=>ze,BaseProgress:()=>mo,Breadcrumb:()=>qe,BreadcrumbItem:()=>je,Button:()=>tt,Calendar:()=>st,CalendarTitleTemplate:()=>pt,Card:()=>$t,CheckableFormAssociated:()=>Ze,Checkbox:()=>Tt,Combobox:()=>Pt,ComboboxAutocomplete:()=>Bt,ComponentPresentation:()=>re,Container:()=>x,ContainerConfiguration:()=>m,ContainerImpl:()=>U,DI:()=>y,DataGrid:()=>ut,DataGridCell:()=>ht,DataGridCellTypes:()=>nt,DataGridRow:()=>dt,DataGridRowTypes:()=>at,DateFormatter:()=>ot,DefaultComponentPresentation:()=>ne,DefaultResolver:()=>g,DelegatesARIAButton:()=>it,DelegatesARIACombobox:()=>Mt,DelegatesARIALink:()=>xe,DelegatesARIAListbox:()=>Et,DelegatesARIAListboxOption:()=>Dt,DelegatesARIASearch:()=>Oo,DelegatesARIASelect:()=>Eo,DelegatesARIATextbox:()=>co,DelegatesARIAToolbar:()=>ps,DesignSystem:()=>mi,DesignToken:()=>ci,Dialog:()=>xi,Disclosure:()=>Si,Divider:()=>Oi,DividerRole:()=>Fi,ElementDisambiguation:()=>hi,FactoryImpl:()=>P,Flipper:()=>Ri,FlipperDirection:()=>Hi,FlyoutPosBottom:()=>Re,FlyoutPosBottomFill:()=>Ae,FlyoutPosTallest:()=>Ee,FlyoutPosTallestFill:()=>Ve,FlyoutPosTop:()=>De,FlyoutPosTopFill:()=>Le,FormAssociated:()=>Qe,FoundationElement:()=>ae,FoundationElementRegistry:()=>ce,GenerateHeaderOptions:()=>rt,HorizontalScroll:()=>Co,Listbox:()=>Rt,ListboxElement:()=>Li,ListboxOption:()=>Ht,MatchMediaBehavior:()=>ws,MatchMediaStyleSheetBehavior:()=>Cs,Menu:()=>oo,MenuItem:()=>to,MenuItemRole:()=>Zi,NumberField:()=>po,Picker:()=>Wi,PickerList:()=>Mi,PickerListItem:()=>Ni,PickerMenu:()=>Vi,PickerMenuOption:()=>Pi,PropertyStyleSheetBehavior:()=>_s,Radio:()=>wo,RadioGroup:()=>vo,Registration:()=>X,ResolverBuilder:()=>u,ResolverImpl:()=>A,Search:()=>Fo,Select:()=>Ro,SelectPosition:()=>Lt,ServiceLocator:()=>$,Skeleton:()=>Vo,Slider:()=>Uo,SliderLabel:()=>zo,SliderMode:()=>qo,StartEnd:()=>s,Switch:()=>Yo,Tab:()=>es,TabPanel:()=>Zo,Tabs:()=>os,TabsOrientation:()=>is,TextArea:()=>ls,TextAreaResize:()=>ss,TextField:()=>lo,TextFieldType:()=>ao,Toolbar:()=>us,Tooltip:()=>bs,TooltipPosition:()=>ms,TreeItem:()=>ys,TreeView:()=>$s,accordionItemTemplate:()=>c,accordionTemplate:()=>ue,all:()=>I,anchorTemplate:()=>fe,anchoredRegionTemplate:()=>$e,applyMixins:()=>he,avatarTemplate:()=>Be,badgeTemplate:()=>Me,breadcrumbItemTemplate:()=>Ne,breadcrumbTemplate:()=>Ge,buttonTemplate:()=>Ue,calendarCellTemplate:()=>mt,calendarRowTemplate:()=>bt,calendarTemplate:()=>yt,calendarWeekdayTemplate:()=>gt,cardTemplate:()=>xt,checkboxTemplate:()=>wt,comboboxTemplate:()=>zt,composedContains:()=>Ut,composedParent:()=>qt,darkModeStylesheetBehavior:()=>Ts,dataGridCellTemplate:()=>Gt,dataGridRowTemplate:()=>jt,dataGridTemplate:()=>Nt,dialogTemplate:()=>vi,disabledCursor:()=>Is,disclosureTemplate:()=>Ti,display:()=>Os,dividerTemplate:()=>_i,endSlotTemplate:()=>r,endTemplate:()=>a,flipperTemplate:()=>Di,focusVisible:()=>Hs,forcedColorsStylesheetBehavior:()=>ks,getDirection:()=>Fe,hidden:()=>Fs,horizontalScrollTemplate:()=>ko,ignore:()=>D,inject:()=>C,interactiveCalendarGridTemplate:()=>ft,isListboxOption:()=>Ot,isTreeItemElement:()=>vs,lazy:()=>O,lightModeStylesheetBehavior:()=>Ss,listboxOptionTemplate:()=>Ei,listboxTemplate:()=>Ai,menuItemTemplate:()=>eo,menuTemplate:()=>io,newInstanceForScope:()=>R,newInstanceOf:()=>E,noninteractiveCalendarTemplate:()=>vt,numberFieldTemplate:()=>so,optional:()=>H,pickerListItemTemplate:()=>Qi,pickerListTemplate:()=>Yi,pickerMenuOptionTemplate:()=>Xi,pickerMenuTemplate:()=>Ki,pickerTemplate:()=>ji,progressRingTemplate:()=>go,progressTemplate:()=>bo,radioGroupTemplate:()=>fo,radioTemplate:()=>yo,reflectAttributes:()=>ki,roleForMenuItem:()=>Ji,searchTemplate:()=>So,selectTemplate:()=>Lo,singleton:()=>_,skeletonTemplate:()=>Ao,sliderLabelTemplate:()=>Bo,sliderTemplate:()=>No,startSlotTemplate:()=>n,startTemplate:()=>l,supportsElementInternals:()=>Xe,switchTemplate:()=>Wo,tabPanelTemplate:()=>Qo,tabTemplate:()=>Jo,tabsTemplate:()=>ts,textAreaTemplate:()=>rs,textFieldTemplate:()=>cs,toolbarTemplate:()=>hs,tooltipTemplate:()=>gs,transient:()=>T,treeItemTemplate:()=>fs,treeViewTemplate:()=>xs,validateKey:()=>Y,whitespaceFilter:()=>To});var o=i(79292);class s{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const r=(e,t)=>o.html`
|
|
4937
4937
|
<span
|
|
4938
4938
|
part="end"
|
|
4939
4939
|
${(0,o.ref)("endContainer")}
|
|
@@ -5015,12 +5015,12 @@
|
|
|
5015
5015
|
<slot></slot>
|
|
5016
5016
|
</div>
|
|
5017
5017
|
</template>
|
|
5018
|
-
`;var h=i(90779);const d=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(i){Reflect.defineMetadata(e,t,i)}},Reflect.defineMetadata=function(e,t,i){let o=d.get(i);void 0===o&&d.set(i,o=new Map),o.set(e,t)},Reflect.getOwnMetadata=function(e,t){const i=d.get(t);if(void 0!==i)return i.get(e)});class u{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,K(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new A(o,e,t))}}function p(e){const t=e.slice(),i=Object.keys(e),o=i.length;let s;for(let r=0;r<o;++r)s=i[r],ie(s)||(t[s]=e[s]);return t}const g=Object.freeze({none(e){throw Error(`${e.toString()} not registered, did you forget to add @singleton()?`)},singleton:e=>new A(e,1,e),transient:e=>new A(e,2,e)}),m=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:g.singleton})}),b=new Map;function f(e){return t=>Reflect.getOwnMetadata(e,t)}let v=null;const y=Object.freeze({createContainer:e=>new U(null,Object.assign({},m.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:y.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(G,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||y.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new U(e,Object.assign({},m.default,t,{parentLocator:y.findParentContainer})):v||(v=new U(null,Object.assign({},m.default,t,{parentLocator:()=>null}))),getDesignParamtypes:f("design:paramtypes"),getAnnotationParamtypes:f("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=b.get(e);if(void 0===t){const i=e.inject;if(void 0===i){const i=y.getDesignParamtypes(e),o=y.getAnnotationParamtypes(e);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(e);t="function"==typeof i&&i!==Function.prototype?p(y.getDependencies(i)):[]}else t=p(o);else if(void 0===o)t=p(i);else{t=p(i);let e,s=o.length;for(let i=0;i<s;++i)e=o[i],void 0!==e&&(t[i]=e);const r=Object.keys(o);let n;s=r.length;for(let e=0;e<s;++e)n=r[e],ie(n)||(t[n]=o[n])}}else t=p(i);b.set(e,t)}return t},defineProperty(e,t,i,s=!1){const r=`$di_${t}`;Reflect.defineProperty(e,t,{get:function(){let e=this[r];if(void 0===e){const n=this instanceof HTMLElement?y.findResponsibleContainer(this):y.getOrCreateDOMContainer();if(e=n.get(i),this[r]=e,s&&this instanceof o.FASTElement){const o=this.$fastController,s=()=>{y.findResponsibleContainer(this).get(i)!==this[r]&&(this[r]=e,o.notify(t))};o.subscribe({handleChange:s},"isConnected")}}return e}})},createInterface(e,t){const i="function"==typeof e?e:t,o="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||Z,s="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),r=function(e,t,i){if(null==e||void 0!==new.target)throw new Error(`No registration for interface: '${r.friendlyName}'`);if(t)y.defineProperty(e,t,r,s);else{y.getOrCreateAnnotationParamTypes(e)[i]=r}};return r.$isInterface=!0,r.friendlyName=null==o?"(anonymous)":o,null!=i&&(r.register=function(e,t){return i(new u(e,null!=t?t:r))}),r.toString=function(){return`InterfaceSymbol<${r.friendlyName}>`},r},inject:(...e)=>function(t,i,o){if("number"==typeof o){const i=y.getOrCreateAnnotationParamTypes(t),s=e[0];void 0!==s&&(i[o]=s)}else if(i)y.defineProperty(t,i,e[0]);else{const i=o?y.getOrCreateAnnotationParamTypes(o.value):y.getOrCreateAnnotationParamTypes(t);let s;for(let t=0;t<e.length;++t)s=e[t],void 0!==s&&(i[t]=s)}},transient:e=>(e.register=function(t){return X.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton:(e,t=S)=>(e.register=function(t){return X.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e)}),x=y.createInterface("Container"),$=x;function w(e){return function(t){const i=function(e,t,o){y.inject(i)(e,t,o)};return i.$isResolver=!0,i.resolve=function(i,o){return e(t,i,o)},i}}const C=y.inject;function k(e){return y.transient(e)}function T(e){return null==e?k:k(e)}const S={scoped:!1};function _(e){return"function"==typeof e?y.singleton(e):function(t){return y.singleton(t,e)}}const I=(F=(e,t,i,o)=>i.getAll(e,o),function(e,t){t=!!t;const i=function(e,t,o){y.inject(i)(e,t,o)};return i.$isResolver=!0,i.resolve=function(i,o){return F(e,i,o,t)},i});var F;const O=w(((e,t,i)=>()=>i.get(e))),H=w(((e,t,i)=>i.has(e,!0)?i.get(e):void 0));function D(e,t,i){y.inject(D)(e,t,i)}D.$isResolver=!0,D.resolve=()=>{};const R=w(((e,t,i)=>{const o=L(e,t),s=new A(e,0,o);return i.registerResolver(e,s),o})),E=w(((e,t,i)=>L(e,t)));function L(e,t){return t.getFactory(e).construct(t)}class A{constructor(e,t,i){this.key=e,this.strategy=t,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=e.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,i,o;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(o=null===(i=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===i?void 0:i.call(t,e))&&void 0!==o?o:null;default:return null}}}function V(e){return this.get(e)}function P(e,t){return t(e)}class B{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let i;return i=void 0===t?new this.Type(...this.dependencies.map(V,e)):new this.Type(...this.dependencies.map(V,e),...t),null==this.transformers?i:this.transformers.reduce(P,i)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const M={$isResolver:!0,resolve:(e,t)=>t};function z(e){return"function"==typeof e.register}function N(e){return function(e){return z(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const j=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),G="__DI_LOCATE_PARENT__",q=new Map;class U{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,null!==e&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(x,M),e instanceof Node&&e.addEventListener(G,(e=>{e.composedPath()[0]!==this.owner&&(e.detail.container=this,e.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let t,i,o,s,r;const n=this.context;for(let a=0,l=e.length;a<l;++a)if(t=e[a],J(t))if(z(t))t.register(this,n);else if(void 0!==t.prototype)X.singleton(t,t).register(this);else for(i=Object.keys(t),s=0,r=i.length;s<r;++s)o=t[i[s]],J(o)&&(z(o)?o.register(this,n):this.register(o));return--this.registerDepth,this}registerResolver(e,t){Y(e);const i=this.resolvers,o=i.get(e);return null==o?i.set(e,t):o instanceof A&&4===o.strategy?o.state.push(t):i.set(e,new A(e,4,[o,t])),t}registerTransformer(e,t){const i=this.getResolver(e);if(null==i)return!1;if(i.getFactory){const e=i.getFactory(this);return null!=e&&(e.registerTransformer(t),!0)}return!1}getResolver(e,t=!0){if(Y(e),void 0!==e.resolve)return e;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(e),null!=i)return i;if(null==o.parent){const i=N(e)?this:o;return t?this.jitRegister(e,i):null}o=o.parent}return null}has(e,t=!1){return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}get(e){if(Y(e),e.$isResolver)return e.resolve(this,this);let t,i=this;for(;null!=i;){if(t=i.resolvers.get(e),null!=t)return t.resolve(i,this);if(null==i.parent){const o=N(e)?this:i;return t=this.jitRegister(e,o),t.resolve(i,this)}i=i.parent}throw new Error(`Unable to resolve key: ${String(e)}`)}getAll(e,t=!1){Y(e);const i=this;let s,r=i;if(t){let t=o.emptyArray;for(;null!=r;)s=r.resolvers.get(e),null!=s&&(t=t.concat(Q(s,r,i))),r=r.parent;return t}for(;null!=r;){if(s=r.resolvers.get(e),null!=s)return Q(s,r,i);if(r=r.parent,null==r)return o.emptyArray}return o.emptyArray}getFactory(e){let t=q.get(e);if(void 0===t){if(ee(e))throw new Error(`${e.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);q.set(e,t=new B(e,y.getDependencies(e)))}return t}registerFactory(e,t){q.set(e,t)}createChild(e){return new U(null,Object.assign({},this.config,e,{parentLocator:()=>this}))}jitRegister(e,t){if("function"!=typeof e)throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(j.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(z(e)){const i=e.register(t);if(!(i instanceof Object)||null==i.resolve){const i=t.resolvers.get(e);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}}const W=new WeakMap;function K(e){return function(t,i,o){if(W.has(o))return W.get(o);const s=e(t,i,o);return W.set(o,s),s}}const X=Object.freeze({instance:(e,t)=>new A(e,0,t),singleton:(e,t)=>new A(e,1,t),transient:(e,t)=>new A(e,2,t),callback:(e,t)=>new A(e,3,t),cachedCallback:(e,t)=>new A(e,3,K(t)),aliasTo:(e,t)=>new A(t,5,e)});function Y(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Q(e,t,i){if(e instanceof A&&4===e.strategy){const o=e.state;let s=o.length;const r=new Array(s);for(;s--;)r[s]=o[s].resolve(t,i);return r}return[e.resolve(t,i)]}const Z="(anonymous)";function J(e){return"object"==typeof e&&null!==e||"function"==typeof e}const ee=function(){const e=new WeakMap;let t=!1,i="",o=0;return function(s){return t=e.get(s),void 0===t&&(i=s.toString(),o=i.length,t=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),e.set(s,t)),t}}(),te={};function ie(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=te[e];if(void 0!==t)return t;const i=e.length;if(0===i)return te[e]=!1;let o=0;for(let t=0;t<i;++t)if(o=e.charCodeAt(t),0===t&&48===o&&i>1||o<48||o>57)return te[e]=!1;return te[e]=!0}default:return!1}}function oe(e){return`${e.toLowerCase()}:presentation`}const se=new Map,re=Object.freeze({define(e,t,i){const o=oe(e);void 0===se.get(o)?se.set(o,t):se.set(o,!1),i.register(X.instance(o,t))},forTag(e,t){const i=oe(e),o=se.get(i);if(!1===o){return y.findResponsibleContainer(t).get(i)}return o||null}});class ne{constructor(e,t){this.template=e||null,this.styles=void 0===t?null:Array.isArray(t)?o.ElementStyles.create(t):t instanceof o.ElementStyles?t:o.ElementStyles.create([t])}applyTo(e){const t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}class ae extends o.FASTElement{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=re.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new ce(this===ae?class extends ae{}:this,e,t)}}function le(e,t,i){return"function"==typeof e?e(t,i):e}(0,h.__decorate)([o.observable],ae.prototype,"template",void 0),(0,h.__decorate)([o.observable],ae.prototype,"styles",void 0);class ce{constructor(e,t,i){this.type=e,this.elementDefinition=t,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||t.elementPrefix}-${i.baseName}`;t.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:e=>{const t=new ne(le(i.template,e,i),le(i.styles,e,i));e.definePresentation(t);let s=le(i.shadowOptions,e,i);e.shadowRootMode&&(s?o.shadowOptions||(s.mode=e.shadowRootMode):null!==s&&(s={mode:e.shadowRootMode})),e.defineElement({elementOptions:le(i.elementOptions,e,i),shadowOptions:s,attributes:le(i.attributes,e,i)})}})}}function he(e,...t){const i=o.AttributeConfiguration.locate(e);t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{"constructor"!==i&&Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i))}));o.AttributeConfiguration.locate(t).forEach((e=>i.push(e)))}))}class de extends ae{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=e=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}(0,h.__decorate)([(0,o.attr)({attribute:"heading-level",mode:"fromView",converter:o.nullableNumberConverter})],de.prototype,"headinglevel",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],de.prototype,"expanded",void 0),(0,h.__decorate)([o.attr],de.prototype,"id",void 0),he(de,s);const ue=(e,t)=>o.html`
|
|
5018
|
+
`;var h=i(90779);const d=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(i){Reflect.defineMetadata(e,t,i)}},Reflect.defineMetadata=function(e,t,i){let o=d.get(i);void 0===o&&d.set(i,o=new Map),o.set(e,t)},Reflect.getOwnMetadata=function(e,t){const i=d.get(t);if(void 0!==i)return i.get(e)});class u{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,K(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new A(o,e,t))}}function p(e){const t=e.slice(),i=Object.keys(e),o=i.length;let s;for(let r=0;r<o;++r)s=i[r],ie(s)||(t[s]=e[s]);return t}const g=Object.freeze({none(e){throw Error(`${e.toString()} not registered, did you forget to add @singleton()?`)},singleton:e=>new A(e,1,e),transient:e=>new A(e,2,e)}),m=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:g.singleton})}),b=new Map;function f(e){return t=>Reflect.getOwnMetadata(e,t)}let v=null;const y=Object.freeze({createContainer:e=>new U(null,Object.assign({},m.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:y.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(G,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||y.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new U(e,Object.assign({},m.default,t,{parentLocator:y.findParentContainer})):v||(v=new U(null,Object.assign({},m.default,t,{parentLocator:()=>null}))),getDesignParamtypes:f("design:paramtypes"),getAnnotationParamtypes:f("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=b.get(e);if(void 0===t){const i=e.inject;if(void 0===i){const i=y.getDesignParamtypes(e),o=y.getAnnotationParamtypes(e);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(e);t="function"==typeof i&&i!==Function.prototype?p(y.getDependencies(i)):[]}else t=p(o);else if(void 0===o)t=p(i);else{t=p(i);let e,s=o.length;for(let i=0;i<s;++i)e=o[i],void 0!==e&&(t[i]=e);const r=Object.keys(o);let n;s=r.length;for(let e=0;e<s;++e)n=r[e],ie(n)||(t[n]=o[n])}}else t=p(i);b.set(e,t)}return t},defineProperty(e,t,i,s=!1){const r=`$di_${t}`;Reflect.defineProperty(e,t,{get:function(){let e=this[r];if(void 0===e){const n=this instanceof HTMLElement?y.findResponsibleContainer(this):y.getOrCreateDOMContainer();if(e=n.get(i),this[r]=e,s&&this instanceof o.FASTElement){const o=this.$fastController,s=()=>{y.findResponsibleContainer(this).get(i)!==this[r]&&(this[r]=e,o.notify(t))};o.subscribe({handleChange:s},"isConnected")}}return e}})},createInterface(e,t){const i="function"==typeof e?e:t,o="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||Z,s="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),r=function(e,t,i){if(null==e||void 0!==new.target)throw new Error(`No registration for interface: '${r.friendlyName}'`);if(t)y.defineProperty(e,t,r,s);else{y.getOrCreateAnnotationParamTypes(e)[i]=r}};return r.$isInterface=!0,r.friendlyName=null==o?"(anonymous)":o,null!=i&&(r.register=function(e,t){return i(new u(e,null!=t?t:r))}),r.toString=function(){return`InterfaceSymbol<${r.friendlyName}>`},r},inject:(...e)=>function(t,i,o){if("number"==typeof o){const i=y.getOrCreateAnnotationParamTypes(t),s=e[0];void 0!==s&&(i[o]=s)}else if(i)y.defineProperty(t,i,e[0]);else{const i=o?y.getOrCreateAnnotationParamTypes(o.value):y.getOrCreateAnnotationParamTypes(t);let s;for(let t=0;t<e.length;++t)s=e[t],void 0!==s&&(i[t]=s)}},transient:e=>(e.register=function(t){return X.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton:(e,t=S)=>(e.register=function(t){return X.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e)}),x=y.createInterface("Container"),$=x;function w(e){return function(t){const i=function(e,t,o){y.inject(i)(e,t,o)};return i.$isResolver=!0,i.resolve=function(i,o){return e(t,i,o)},i}}const C=y.inject;function k(e){return y.transient(e)}function T(e){return null==e?k:k(e)}const S={scoped:!1};function _(e){return"function"==typeof e?y.singleton(e):function(t){return y.singleton(t,e)}}const I=(F=(e,t,i,o)=>i.getAll(e,o),function(e,t){t=!!t;const i=function(e,t,o){y.inject(i)(e,t,o)};return i.$isResolver=!0,i.resolve=function(i,o){return F(e,i,o,t)},i});var F;const O=w(((e,t,i)=>()=>i.get(e))),H=w(((e,t,i)=>i.has(e,!0)?i.get(e):void 0));function D(e,t,i){y.inject(D)(e,t,i)}D.$isResolver=!0,D.resolve=()=>{};const R=w(((e,t,i)=>{const o=L(e,t),s=new A(e,0,o);return i.registerResolver(e,s),o})),E=w(((e,t,i)=>L(e,t)));function L(e,t){return t.getFactory(e).construct(t)}class A{constructor(e,t,i){this.key=e,this.strategy=t,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=e.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,i,o;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(o=null===(i=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===i?void 0:i.call(t,e))&&void 0!==o?o:null;default:return null}}}function V(e){return this.get(e)}function B(e,t){return t(e)}class P{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let i;return i=void 0===t?new this.Type(...this.dependencies.map(V,e)):new this.Type(...this.dependencies.map(V,e),...t),null==this.transformers?i:this.transformers.reduce(B,i)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const M={$isResolver:!0,resolve:(e,t)=>t};function z(e){return"function"==typeof e.register}function N(e){return function(e){return z(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const j=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),G="__DI_LOCATE_PARENT__",q=new Map;class U{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,null!==e&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(x,M),e instanceof Node&&e.addEventListener(G,(e=>{e.composedPath()[0]!==this.owner&&(e.detail.container=this,e.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let t,i,o,s,r;const n=this.context;for(let a=0,l=e.length;a<l;++a)if(t=e[a],J(t))if(z(t))t.register(this,n);else if(void 0!==t.prototype)X.singleton(t,t).register(this);else for(i=Object.keys(t),s=0,r=i.length;s<r;++s)o=t[i[s]],J(o)&&(z(o)?o.register(this,n):this.register(o));return--this.registerDepth,this}registerResolver(e,t){Y(e);const i=this.resolvers,o=i.get(e);return null==o?i.set(e,t):o instanceof A&&4===o.strategy?o.state.push(t):i.set(e,new A(e,4,[o,t])),t}registerTransformer(e,t){const i=this.getResolver(e);if(null==i)return!1;if(i.getFactory){const e=i.getFactory(this);return null!=e&&(e.registerTransformer(t),!0)}return!1}getResolver(e,t=!0){if(Y(e),void 0!==e.resolve)return e;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(e),null!=i)return i;if(null==o.parent){const i=N(e)?this:o;return t?this.jitRegister(e,i):null}o=o.parent}return null}has(e,t=!1){return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}get(e){if(Y(e),e.$isResolver)return e.resolve(this,this);let t,i=this;for(;null!=i;){if(t=i.resolvers.get(e),null!=t)return t.resolve(i,this);if(null==i.parent){const o=N(e)?this:i;return t=this.jitRegister(e,o),t.resolve(i,this)}i=i.parent}throw new Error(`Unable to resolve key: ${String(e)}`)}getAll(e,t=!1){Y(e);const i=this;let s,r=i;if(t){let t=o.emptyArray;for(;null!=r;)s=r.resolvers.get(e),null!=s&&(t=t.concat(Q(s,r,i))),r=r.parent;return t}for(;null!=r;){if(s=r.resolvers.get(e),null!=s)return Q(s,r,i);if(r=r.parent,null==r)return o.emptyArray}return o.emptyArray}getFactory(e){let t=q.get(e);if(void 0===t){if(ee(e))throw new Error(`${e.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);q.set(e,t=new P(e,y.getDependencies(e)))}return t}registerFactory(e,t){q.set(e,t)}createChild(e){return new U(null,Object.assign({},this.config,e,{parentLocator:()=>this}))}jitRegister(e,t){if("function"!=typeof e)throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(j.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(z(e)){const i=e.register(t);if(!(i instanceof Object)||null==i.resolve){const i=t.resolvers.get(e);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}}const W=new WeakMap;function K(e){return function(t,i,o){if(W.has(o))return W.get(o);const s=e(t,i,o);return W.set(o,s),s}}const X=Object.freeze({instance:(e,t)=>new A(e,0,t),singleton:(e,t)=>new A(e,1,t),transient:(e,t)=>new A(e,2,t),callback:(e,t)=>new A(e,3,t),cachedCallback:(e,t)=>new A(e,3,K(t)),aliasTo:(e,t)=>new A(t,5,e)});function Y(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Q(e,t,i){if(e instanceof A&&4===e.strategy){const o=e.state;let s=o.length;const r=new Array(s);for(;s--;)r[s]=o[s].resolve(t,i);return r}return[e.resolve(t,i)]}const Z="(anonymous)";function J(e){return"object"==typeof e&&null!==e||"function"==typeof e}const ee=function(){const e=new WeakMap;let t=!1,i="",o=0;return function(s){return t=e.get(s),void 0===t&&(i=s.toString(),o=i.length,t=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),e.set(s,t)),t}}(),te={};function ie(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=te[e];if(void 0!==t)return t;const i=e.length;if(0===i)return te[e]=!1;let o=0;for(let t=0;t<i;++t)if(o=e.charCodeAt(t),0===t&&48===o&&i>1||o<48||o>57)return te[e]=!1;return te[e]=!0}default:return!1}}function oe(e){return`${e.toLowerCase()}:presentation`}const se=new Map,re=Object.freeze({define(e,t,i){const o=oe(e);void 0===se.get(o)?se.set(o,t):se.set(o,!1),i.register(X.instance(o,t))},forTag(e,t){const i=oe(e),o=se.get(i);if(!1===o){return y.findResponsibleContainer(t).get(i)}return o||null}});class ne{constructor(e,t){this.template=e||null,this.styles=void 0===t?null:Array.isArray(t)?o.ElementStyles.create(t):t instanceof o.ElementStyles?t:o.ElementStyles.create([t])}applyTo(e){const t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}class ae extends o.FASTElement{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=re.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new ce(this===ae?class extends ae{}:this,e,t)}}function le(e,t,i){return"function"==typeof e?e(t,i):e}(0,h.__decorate)([o.observable],ae.prototype,"template",void 0),(0,h.__decorate)([o.observable],ae.prototype,"styles",void 0);class ce{constructor(e,t,i){this.type=e,this.elementDefinition=t,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||t.elementPrefix}-${i.baseName}`;t.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:e=>{const t=new ne(le(i.template,e,i),le(i.styles,e,i));e.definePresentation(t);let s=le(i.shadowOptions,e,i);e.shadowRootMode&&(s?o.shadowOptions||(s.mode=e.shadowRootMode):null!==s&&(s={mode:e.shadowRootMode})),e.defineElement({elementOptions:le(i.elementOptions,e,i),shadowOptions:s,attributes:le(i.attributes,e,i)})}})}}function he(e,...t){const i=o.AttributeConfiguration.locate(e);t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{"constructor"!==i&&Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i))}));o.AttributeConfiguration.locate(t).forEach((e=>i.push(e)))}))}class de extends ae{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=e=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}(0,h.__decorate)([(0,o.attr)({attribute:"heading-level",mode:"fromView",converter:o.nullableNumberConverter})],de.prototype,"headinglevel",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],de.prototype,"expanded",void 0),(0,h.__decorate)([o.attr],de.prototype,"id",void 0),he(de,s);const ue=(e,t)=>o.html`
|
|
5019
5019
|
<template>
|
|
5020
5020
|
<slot ${(0,o.slotted)({property:"accordionItems",filter:(0,o.elements)()})}></slot>
|
|
5021
5021
|
<slot name="item" part="item" ${(0,o.slotted)("accordionItems")}></slot>
|
|
5022
5022
|
</template>
|
|
5023
|
-
`;var pe
|
|
5023
|
+
`;var pe=i(31596),ge=i(62515);const me={single:"single",multi:"multi"};class be extends ae{constructor(){super(...arguments),this.expandmode=me.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{var e;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach(((e,t)=>{e instanceof de&&(e.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==t?e.expanded=!1:e.expanded=!0));const i=this.accordionIds[t];e.setAttribute("id","string"!=typeof i?`accordion-${t+1}`:i),this.activeid=this.accordionIds[this.activeItemIndex],e.addEventListener("keydown",this.handleItemKeyDown),e.addEventListener("focus",this.handleItemFocus)})),this.isSingleExpandMode())){(null!==(e=this.findExpandedItem())&&void 0!==e?e:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=e=>{e.forEach(((e,t)=>{e.removeEventListener("change",this.activeItemChange),e.removeEventListener("keydown",this.handleItemKeyDown),e.removeEventListener("focus",this.handleItemFocus)}))},this.activeItemChange=e=>{if(e.defaultPrevented||e.target!==e.currentTarget)return;e.preventDefault();const t=e.target;this.activeid=t.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),t.expanded=!0,t.setAttribute("aria-disabled","true"),this.accordionItems.forEach((e=>{e.hasAttribute("disabled")||e.id===this.activeid||e.removeAttribute("aria-disabled")}))),this.activeItemIndex=Array.from(this.accordionItems).indexOf(t),this.change()},this.handleItemKeyDown=e=>{if(e.target===e.currentTarget)switch(this.accordionIds=this.getItemIds(),e.key){case pe.SB:e.preventDefault(),this.adjust(-1);break;case pe.iF:e.preventDefault(),this.adjust(1);break;case pe.tU:this.activeItemIndex=0,this.focusItem();break;case pe.Kh:this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){const t=e.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(e,t){this.$fastController.isConnected&&(this.removeItemListeners(e),this.setItems())}findExpandedItem(){for(let e=0;e<this.accordionItems.length;e++)if("true"===this.accordionItems[e].getAttribute("expanded"))return this.accordionItems[e];return null}resetItems(){this.accordionItems.forEach(((e,t)=>{e.expanded=!1}))}getItemIds(){return this.accordionItems.map((e=>e.getAttribute("id")))}isSingleExpandMode(){return this.expandmode===me.single}adjust(e){this.activeItemIndex=(0,ge.wt)(0,this.accordionItems.length-1,this.activeItemIndex+e),this.focusItem()}focusItem(){const e=this.accordionItems[this.activeItemIndex];e instanceof de&&e.expandbutton.focus()}}(0,h.__decorate)([(0,o.attr)({attribute:"expand-mode"})],be.prototype,"expandmode",void 0),(0,h.__decorate)([o.observable],be.prototype,"accordionItems",void 0);const fe=(e,t)=>o.html`
|
|
5024
5024
|
<a
|
|
5025
5025
|
class="control"
|
|
5026
5026
|
part="control"
|
|
@@ -5060,13 +5060,13 @@
|
|
|
5060
5060
|
</span>
|
|
5061
5061
|
${r(e,t)}
|
|
5062
5062
|
</a>
|
|
5063
|
-
`;class
|
|
5063
|
+
`;class ve{}(0,h.__decorate)([(0,o.attr)({attribute:"aria-atomic"})],ve.prototype,"ariaAtomic",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-busy"})],ve.prototype,"ariaBusy",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-controls"})],ve.prototype,"ariaControls",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-current"})],ve.prototype,"ariaCurrent",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-describedby"})],ve.prototype,"ariaDescribedby",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-details"})],ve.prototype,"ariaDetails",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-disabled"})],ve.prototype,"ariaDisabled",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-errormessage"})],ve.prototype,"ariaErrormessage",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-flowto"})],ve.prototype,"ariaFlowto",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-haspopup"})],ve.prototype,"ariaHaspopup",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-hidden"})],ve.prototype,"ariaHidden",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-invalid"})],ve.prototype,"ariaInvalid",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-keyshortcuts"})],ve.prototype,"ariaKeyshortcuts",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-label"})],ve.prototype,"ariaLabel",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-labelledby"})],ve.prototype,"ariaLabelledby",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-live"})],ve.prototype,"ariaLive",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-owns"})],ve.prototype,"ariaOwns",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-relevant"})],ve.prototype,"ariaRelevant",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-roledescription"})],ve.prototype,"ariaRoledescription",void 0);class ye extends ae{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{var e;null===(e=this.control)||void 0===e||e.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}(0,h.__decorate)([o.attr],ye.prototype,"download",void 0),(0,h.__decorate)([o.attr],ye.prototype,"href",void 0),(0,h.__decorate)([o.attr],ye.prototype,"hreflang",void 0),(0,h.__decorate)([o.attr],ye.prototype,"ping",void 0),(0,h.__decorate)([o.attr],ye.prototype,"referrerpolicy",void 0),(0,h.__decorate)([o.attr],ye.prototype,"rel",void 0),(0,h.__decorate)([o.attr],ye.prototype,"target",void 0),(0,h.__decorate)([o.attr],ye.prototype,"type",void 0),(0,h.__decorate)([o.observable],ye.prototype,"defaultSlottedContent",void 0);class xe{}(0,h.__decorate)([(0,o.attr)({attribute:"aria-expanded"})],xe.prototype,"ariaExpanded",void 0),he(xe,ve),he(ye,s,xe);const $e=(e,t)=>o.html`
|
|
5064
5064
|
<template class="${e=>e.initialLayoutComplete?"loaded":""}">
|
|
5065
5065
|
${(0,o.when)((e=>e.initialLayoutComplete),o.html`
|
|
5066
5066
|
<slot></slot>
|
|
5067
5067
|
`)}
|
|
5068
5068
|
</template>
|
|
5069
|
-
`;var Re=i(5598);const Ee="focus",Le="focusin",Ae="focusout",Ve="keydown",Pe="resize",Be="scroll",Me=e=>{const t=e.closest("[dir]");return null!==t&&"rtl"===t.dir?Re.N.rtl:Re.N.ltr};class ze extends ae{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=Re.N.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(ze.intersectionService.requestPosition(this,this.handleIntersection),ze.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&ze.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,ze.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&ze.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&ze.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=e=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(e)&&this.updateLayout())},this.applyIntersectionEntries=e=>{const t=e.find((e=>e.target===this)),i=e.find((e=>e.target===this.anchorElement)),o=e.find((e=>e.target===this.viewportElement));return void 0!==t&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,t.boundingClientRect))&&(this.regionRect=t.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(e,t)=>Math.abs(e.top-t.top)>this.updateThreshold||Math.abs(e.right-t.right)>this.updateThreshold||Math.abs(e.bottom-t.bottom)>this.updateThreshold||Math.abs(e.left-t.left)>this.updateThreshold,this.handleResize=e=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=Me(this),this.startObservers())},this.updateLayout=()=>{let e,t;if("uncontrolled"!==this.horizontalPositioningMode){const e=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)t="center";else if("unset"!==this.horizontalDefaultPosition){let e=this.horizontalDefaultPosition;if("start"===e||"end"===e){const t=Me(this);if(t!==this.currentDirection)return this.currentDirection=t,void this.initialize();e=this.currentDirection===Re.N.ltr?"start"===e?"left":"right":"start"===e?"right":"left"}switch(e){case"left":t=this.horizontalInset?"insetStart":"start";break;case"right":t=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,r=void 0!==this.anchorRect?this.anchorRect.width:0,n=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===t||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(t,o,s,r,n,a)<i)&&(t=this.getAvailableSpace(e[0],o,s,r,n,a)>this.getAvailableSpace(e[1],o,s,r,n,a)?e[0]:e[1])}if("uncontrolled"!==this.verticalPositioningMode){const t=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)e="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":e=this.verticalInset?"insetStart":"start";break;case"bottom":e=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,r=void 0!==this.anchorRect?this.anchorRect.height:0,n=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===e||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(e,o,s,r,n,a)<i)&&(e=this.getAvailableSpace(t[0],o,s,r,n,a)>this.getAvailableSpace(t[1],o,s,r,n,a)?t[0]:t[1])}const i=this.getNextRegionDimension(t,e),o=this.horizontalPosition!==t||this.verticalPosition!==e;if(this.setHorizontalPosition(t,i),this.setVerticalPosition(e,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(e,t)=>{if(void 0===e||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:t.width,this.regionWidth=`${i}px`;break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(e){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(o=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+o,this.horizontalViewportLock){const e=this.anchorRect.left+o,t=this.anchorRect.right-o;e<this.viewportRect.left&&!(t>this.viewportRect.right)?this.translateX=this.translateX-(e-this.viewportRect.left):t>this.viewportRect.right&&!(e<this.viewportRect.left)&&(this.translateX=this.translateX-(t-this.viewportRect.right))}}this.horizontalPosition=e},this.setVerticalPosition=(e,t)=>{if(void 0===e||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:t.height,this.regionHeight=`${i}px`;break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(e){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(o=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+o,this.verticalViewportLock){const e=this.anchorRect.top+o,t=this.anchorRect.bottom-o;e<this.viewportRect.top&&!(t>this.viewportRect.bottom)?this.translateY=this.translateY-(e-this.viewportRect.top):t>this.viewportRect.bottom&&!(e<this.viewportRect.top)&&(this.translateY=this.translateY-(t-this.viewportRect.bottom))}}this.verticalPosition=e},this.getPositioningOptions=e=>e?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(e,t,i,o,s,r)=>{const n=t-s,a=r-(t+o);switch(e){case"start":return n;case"insetStart":return n+o;case"insetEnd":return a+o;case"end":return a;case"center":return 2*Math.min(n,a)+o}},this.getNextRegionDimension=(e,t)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==e&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==t&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener(Pe,this.update,{passive:!0}),window.addEventListener(Be,this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(Pe,this.update),window.removeEventListener(Be,this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(e,t){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===e&&this.stopAutoUpdateEventListeners(),"auto"===t&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),o.DOM.queueUpdate((()=>this.reset())),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}ze.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(e,t)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(e)?null===(i=this.observedElements.get(e))||void 0===i||i.push(t):(this.observedElements.set(e,[t]),this.intersectionDetector.observe(e)))},this.cancelRequestPosition=(e,t)=>{const i=this.observedElements.get(e);if(void 0!==i){const e=i.indexOf(t);-1!==e&&i.splice(e,1)}},this.initializeIntersectionDetector=()=>{o.$global.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=e=>{if(null===this.intersectionDetector)return;const t=[],i=[];e.forEach((e=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(e.target);const s=this.observedElements.get(e.target);void 0!==s&&(s.forEach((o=>{let s=t.indexOf(o);-1===s&&(s=t.length,t.push(o),i.push([])),i[s].push(e)})),this.observedElements.delete(e.target))})),t.forEach(((e,t)=>{e(i[t])}))},this.initializeIntersectionDetector()}},(0,h.__decorate)([o.attr],ze.prototype,"anchor",void 0),(0,h.__decorate)([o.attr],ze.prototype,"viewport",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-positioning-mode"})],ze.prototype,"horizontalPositioningMode",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-default-position"})],ze.prototype,"horizontalDefaultPosition",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-viewport-lock",mode:"boolean"})],ze.prototype,"horizontalViewportLock",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-inset",mode:"boolean"})],ze.prototype,"horizontalInset",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-threshold"})],ze.prototype,"horizontalThreshold",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-scaling"})],ze.prototype,"horizontalScaling",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-positioning-mode"})],ze.prototype,"verticalPositioningMode",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-default-position"})],ze.prototype,"verticalDefaultPosition",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-viewport-lock",mode:"boolean"})],ze.prototype,"verticalViewportLock",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-inset",mode:"boolean"})],ze.prototype,"verticalInset",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-threshold"})],ze.prototype,"verticalThreshold",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-scaling"})],ze.prototype,"verticalScaling",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"fixed-placement",mode:"boolean"})],ze.prototype,"fixedPlacement",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"auto-update-mode"})],ze.prototype,"autoUpdateMode",void 0),(0,h.__decorate)([o.observable],ze.prototype,"anchorElement",void 0),(0,h.__decorate)([o.observable],ze.prototype,"viewportElement",void 0),(0,h.__decorate)([o.observable],ze.prototype,"initialLayoutComplete",void 0);const Ne={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},je=Object.assign(Object.assign({},Ne),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),Ge=Object.assign(Object.assign({},Ne),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),qe=Object.assign(Object.assign({},Ne),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),Ue=Object.assign(Object.assign({},je),{verticalScaling:"fill"}),We=Object.assign(Object.assign({},Ge),{verticalScaling:"fill"}),Ke=Object.assign(Object.assign({},qe),{verticalScaling:"fill"}),Xe=(e,t)=>o.html`
|
|
5069
|
+
`;var we=i(5598);const Ce="focus",ke="focusin",Te="focusout",Se="keydown",_e="resize",Ie="scroll",Fe=e=>{const t=e.closest("[dir]");return null!==t&&"rtl"===t.dir?we.N.rtl:we.N.ltr};class Oe extends ae{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=we.N.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(Oe.intersectionService.requestPosition(this,this.handleIntersection),Oe.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&Oe.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,Oe.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&Oe.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&Oe.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=e=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(e)&&this.updateLayout())},this.applyIntersectionEntries=e=>{const t=e.find((e=>e.target===this)),i=e.find((e=>e.target===this.anchorElement)),o=e.find((e=>e.target===this.viewportElement));return void 0!==t&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,t.boundingClientRect))&&(this.regionRect=t.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(e,t)=>Math.abs(e.top-t.top)>this.updateThreshold||Math.abs(e.right-t.right)>this.updateThreshold||Math.abs(e.bottom-t.bottom)>this.updateThreshold||Math.abs(e.left-t.left)>this.updateThreshold,this.handleResize=e=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=Fe(this),this.startObservers())},this.updateLayout=()=>{let e,t;if("uncontrolled"!==this.horizontalPositioningMode){const e=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)t="center";else if("unset"!==this.horizontalDefaultPosition){let e=this.horizontalDefaultPosition;if("start"===e||"end"===e){const t=Fe(this);if(t!==this.currentDirection)return this.currentDirection=t,void this.initialize();e=this.currentDirection===we.N.ltr?"start"===e?"left":"right":"start"===e?"right":"left"}switch(e){case"left":t=this.horizontalInset?"insetStart":"start";break;case"right":t=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,r=void 0!==this.anchorRect?this.anchorRect.width:0,n=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===t||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(t,o,s,r,n,a)<i)&&(t=this.getAvailableSpace(e[0],o,s,r,n,a)>this.getAvailableSpace(e[1],o,s,r,n,a)?e[0]:e[1])}if("uncontrolled"!==this.verticalPositioningMode){const t=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)e="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":e=this.verticalInset?"insetStart":"start";break;case"bottom":e=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,r=void 0!==this.anchorRect?this.anchorRect.height:0,n=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===e||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(e,o,s,r,n,a)<i)&&(e=this.getAvailableSpace(t[0],o,s,r,n,a)>this.getAvailableSpace(t[1],o,s,r,n,a)?t[0]:t[1])}const i=this.getNextRegionDimension(t,e),o=this.horizontalPosition!==t||this.verticalPosition!==e;if(this.setHorizontalPosition(t,i),this.setVerticalPosition(e,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(e,t)=>{if(void 0===e||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:t.width,this.regionWidth=`${i}px`;break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(e){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(o=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+o,this.horizontalViewportLock){const e=this.anchorRect.left+o,t=this.anchorRect.right-o;e<this.viewportRect.left&&!(t>this.viewportRect.right)?this.translateX=this.translateX-(e-this.viewportRect.left):t>this.viewportRect.right&&!(e<this.viewportRect.left)&&(this.translateX=this.translateX-(t-this.viewportRect.right))}}this.horizontalPosition=e},this.setVerticalPosition=(e,t)=>{if(void 0===e||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:t.height,this.regionHeight=`${i}px`;break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(e){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(o=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+o,this.verticalViewportLock){const e=this.anchorRect.top+o,t=this.anchorRect.bottom-o;e<this.viewportRect.top&&!(t>this.viewportRect.bottom)?this.translateY=this.translateY-(e-this.viewportRect.top):t>this.viewportRect.bottom&&!(e<this.viewportRect.top)&&(this.translateY=this.translateY-(t-this.viewportRect.bottom))}}this.verticalPosition=e},this.getPositioningOptions=e=>e?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(e,t,i,o,s,r)=>{const n=t-s,a=r-(t+o);switch(e){case"start":return n;case"insetStart":return n+o;case"insetEnd":return a+o;case"end":return a;case"center":return 2*Math.min(n,a)+o}},this.getNextRegionDimension=(e,t)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==e&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==t&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener(_e,this.update,{passive:!0}),window.addEventListener(Ie,this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(_e,this.update),window.removeEventListener(Ie,this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(e,t){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===e&&this.stopAutoUpdateEventListeners(),"auto"===t&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),o.DOM.queueUpdate((()=>this.reset())),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}Oe.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(e,t)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(e)?null===(i=this.observedElements.get(e))||void 0===i||i.push(t):(this.observedElements.set(e,[t]),this.intersectionDetector.observe(e)))},this.cancelRequestPosition=(e,t)=>{const i=this.observedElements.get(e);if(void 0!==i){const e=i.indexOf(t);-1!==e&&i.splice(e,1)}},this.initializeIntersectionDetector=()=>{o.$global.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=e=>{if(null===this.intersectionDetector)return;const t=[],i=[];e.forEach((e=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(e.target);const s=this.observedElements.get(e.target);void 0!==s&&(s.forEach((o=>{let s=t.indexOf(o);-1===s&&(s=t.length,t.push(o),i.push([])),i[s].push(e)})),this.observedElements.delete(e.target))})),t.forEach(((e,t)=>{e(i[t])}))},this.initializeIntersectionDetector()}},(0,h.__decorate)([o.attr],Oe.prototype,"anchor",void 0),(0,h.__decorate)([o.attr],Oe.prototype,"viewport",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-positioning-mode"})],Oe.prototype,"horizontalPositioningMode",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-default-position"})],Oe.prototype,"horizontalDefaultPosition",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-viewport-lock",mode:"boolean"})],Oe.prototype,"horizontalViewportLock",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-inset",mode:"boolean"})],Oe.prototype,"horizontalInset",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-threshold"})],Oe.prototype,"horizontalThreshold",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-scaling"})],Oe.prototype,"horizontalScaling",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-positioning-mode"})],Oe.prototype,"verticalPositioningMode",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-default-position"})],Oe.prototype,"verticalDefaultPosition",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-viewport-lock",mode:"boolean"})],Oe.prototype,"verticalViewportLock",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-inset",mode:"boolean"})],Oe.prototype,"verticalInset",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-threshold"})],Oe.prototype,"verticalThreshold",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-scaling"})],Oe.prototype,"verticalScaling",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"fixed-placement",mode:"boolean"})],Oe.prototype,"fixedPlacement",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"auto-update-mode"})],Oe.prototype,"autoUpdateMode",void 0),(0,h.__decorate)([o.observable],Oe.prototype,"anchorElement",void 0),(0,h.__decorate)([o.observable],Oe.prototype,"viewportElement",void 0),(0,h.__decorate)([o.observable],Oe.prototype,"initialLayoutComplete",void 0);const He={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},De=Object.assign(Object.assign({},He),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),Re=Object.assign(Object.assign({},He),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),Ee=Object.assign(Object.assign({},He),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),Le=Object.assign(Object.assign({},De),{verticalScaling:"fill"}),Ae=Object.assign(Object.assign({},Re),{verticalScaling:"fill"}),Ve=Object.assign(Object.assign({},Ee),{verticalScaling:"fill"}),Be=(e,t)=>o.html`
|
|
5070
5070
|
<div
|
|
5071
5071
|
class="backplate ${e=>e.shape}"
|
|
5072
5072
|
part="backplate"
|
|
@@ -5083,16 +5083,16 @@
|
|
|
5083
5083
|
</a>
|
|
5084
5084
|
</div>
|
|
5085
5085
|
<slot name="badge" part="badge"></slot>
|
|
5086
|
-
`;class
|
|
5086
|
+
`;class Pe extends ae{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}}(0,h.__decorate)([o.attr],Pe.prototype,"fill",void 0),(0,h.__decorate)([o.attr],Pe.prototype,"color",void 0),(0,h.__decorate)([o.attr],Pe.prototype,"link",void 0),(0,h.__decorate)([o.attr],Pe.prototype,"shape",void 0);const Me=(e,t)=>o.html`
|
|
5087
5087
|
<template class="${e=>e.circular?"circular":""}">
|
|
5088
5088
|
<div class="control" part="control" style="${e=>e.generateBadgeStyle()}">
|
|
5089
5089
|
<slot></slot>
|
|
5090
5090
|
</div>
|
|
5091
5091
|
</template>
|
|
5092
|
-
`;class
|
|
5092
|
+
`;class ze extends ae{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const e=`background-color: var(--badge-fill-${this.fill});`,t=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?e:this.color&&!this.fill?t:`${t} ${e}`}}}(0,h.__decorate)([(0,o.attr)({attribute:"fill"})],ze.prototype,"fill",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"color"})],ze.prototype,"color",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],ze.prototype,"circular",void 0);const Ne=(e,t)=>o.html`
|
|
5093
5093
|
<div role="listitem" class="listitem" part="listitem">
|
|
5094
5094
|
${(0,o.when)((e=>e.href&&e.href.length>0),o.html`
|
|
5095
|
-
${
|
|
5095
|
+
${fe(e,t)}
|
|
5096
5096
|
`)}
|
|
5097
5097
|
${(0,o.when)((e=>!e.href),o.html`
|
|
5098
5098
|
${n(e,t)}
|
|
@@ -5105,7 +5105,7 @@
|
|
|
5105
5105
|
</span>
|
|
5106
5106
|
`)}
|
|
5107
5107
|
</div>
|
|
5108
|
-
`;class
|
|
5108
|
+
`;class je extends ye{constructor(){super(...arguments),this.separator=!0}}(0,h.__decorate)([o.observable],je.prototype,"separator",void 0),he(je,s,xe);const Ge=(e,t)=>o.html`
|
|
5109
5109
|
<template role="navigation">
|
|
5110
5110
|
<div role="list" class="list" part="list">
|
|
5111
5111
|
<slot
|
|
@@ -5113,7 +5113,7 @@
|
|
|
5113
5113
|
></slot>
|
|
5114
5114
|
</div>
|
|
5115
5115
|
</template>
|
|
5116
|
-
`;class
|
|
5116
|
+
`;class qe extends ae{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const e=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach((t=>{const i=t===e;this.setItemSeparator(t,i),this.setAriaCurrent(t,i)}))}}setItemSeparator(e,t){e instanceof je&&(e.separator=!t)}findChildWithHref(e){var t,i;return e.childElementCount>0?e.querySelector("a[href]"):(null===(t=e.shadowRoot)||void 0===t?void 0:t.childElementCount)?null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setAriaCurrent(e,t){const i=this.findChildWithHref(e);null===i&&e.hasAttribute("href")&&e instanceof je?t?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current"):null!==i&&(t?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current"))}}(0,h.__decorate)([o.observable],qe.prototype,"slottedBreadcrumbItems",void 0);const Ue=(e,t)=>o.html`
|
|
5117
5117
|
<button
|
|
5118
5118
|
class="control"
|
|
5119
5119
|
part="control"
|
|
@@ -5157,15 +5157,15 @@
|
|
|
5157
5157
|
</span>
|
|
5158
5158
|
${r(e,t)}
|
|
5159
5159
|
</button>
|
|
5160
|
-
`,st="form-associated-proxy",rt="ElementInternals",nt=rt in window&&"setFormValue"in window[rt].prototype,at=new WeakMap;function lt(e){const t=class extends e{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return nt}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=e?t.concat(Array.from(e)):t;return Object.freeze(i)}return o.emptyArray}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),o.DOM.queueUpdate((()=>this.classList.toggle("disabled",this.disabled)))}nameChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),o.DOM.queueUpdate((()=>this.classList.toggle("required",this.required))),this.validate()}get elementInternals(){if(!nt)return null;let e=at.get(this);return e||(e=this.attachInternals(),at.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach((e=>this.proxy.removeEventListener(e,this.stopPropagation))),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,i){this.elementInternals?this.elementInternals.setValidity(e,t,i):"string"==typeof t&&this.proxy.setCustomValidity(t)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((e=>this.proxy.addEventListener(e,this.stopPropagation))),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",st),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",st)),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}_keypressHandler(e){if(e.key===ve)if(this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");null==e||e.click()}}stopPropagation(e){e.stopPropagation()}};return(0,o.attr)({mode:"boolean"})(t.prototype,"disabled"),(0,o.attr)({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),(0,o.attr)({attribute:"current-value"})(t.prototype,"currentValue"),(0,o.attr)(t.prototype,"name"),(0,o.attr)({mode:"boolean"})(t.prototype,"required"),(0,o.observable)(t.prototype,"value"),t}function ct(e){class t extends(lt(e)){}class i extends t{constructor(...e){super(e),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==e&&this.$emit("change"),this.validate()}currentCheckedChanged(e,t){this.checked=this.currentChecked}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return(0,o.attr)({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),(0,o.attr)({attribute:"current-checked",converter:o.booleanConverter})(i.prototype,"currentChecked"),(0,o.observable)(i.prototype,"defaultChecked"),(0,o.observable)(i.prototype,"checked"),i}class ht extends ae{}class dt extends(lt(ht)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ut extends dt{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&(null===(t=this.defaultSlottedContent)||void 0===t?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;null===(e=this.form)||void 0===e||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.addEventListener("click",this.handleClick)}))}disconnectedCallback(){var e;super.disconnectedCallback();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.removeEventListener("click",this.handleClick)}))}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],ut.prototype,"autofocus",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"form"})],ut.prototype,"formId",void 0),(0,h.__decorate)([o.attr],ut.prototype,"formaction",void 0),(0,h.__decorate)([o.attr],ut.prototype,"formenctype",void 0),(0,h.__decorate)([o.attr],ut.prototype,"formmethod",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],ut.prototype,"formnovalidate",void 0),(0,h.__decorate)([o.attr],ut.prototype,"formtarget",void 0),(0,h.__decorate)([o.attr],ut.prototype,"type",void 0),(0,h.__decorate)([o.observable],ut.prototype,"defaultSlottedContent",void 0);class pt{}(0,h.__decorate)([(0,o.attr)({attribute:"aria-expanded"})],pt.prototype,"ariaExpanded",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-pressed"})],pt.prototype,"ariaPressed",void 0),he(pt,Fe),he(ut,s,pt);class gt{constructor(e){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,e)for(const t in e){const i=e[t];"date"===t?this.date=this.getDateObject(i):this[t]=i}}getDateObject(e){if("string"==typeof e){const t=e.split(/[/-]/);return t.length<3?new Date:new Date(parseInt(t[2],10),parseInt(t[0],10)-1,parseInt(t[1],10))}if("day"in e&&"month"in e&&"year"in e){const{day:t,month:i,year:o}=e;return new Date(o,i-1,t)}return e}getDate(e=this.date,t={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const o=this.getDateObject(e);if(!o.getTime())return"";const s=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},t);return new Intl.DateTimeFormat(i,s).format(o)}getDay(e=this.date.getDate(),t=this.dayFormat,i=this.locale){return this.getDate({month:1,day:e,year:2020},{day:t},i)}getMonth(e=this.date.getMonth()+1,t=this.monthFormat,i=this.locale){return this.getDate({month:e,day:2,year:2020},{month:t},i)}getYear(e=this.date.getFullYear(),t=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:e},{year:t},i)}getWeekday(e=0,t=this.weekdayFormat,i=this.locale){const o=`1-${e+1}-2017`;return this.getDate(o,{weekday:t},i)}getWeekdays(e=this.weekdayFormat,t=this.locale){return Array(7).fill(null).map(((i,o)=>this.getWeekday(o,e,t)))}}class mt extends ae{constructor(){super(...arguments),this.dateFormatter=new gt,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(e=this.month,t=this.year){const i=e=>new Date(e.getFullYear(),e.getMonth(),1).getDay(),o=e=>{const t=new Date(e.getFullYear(),e.getMonth()+1,1);return new Date(t.getTime()-this.oneDayInMs).getDate()},s=new Date(t,e-1),r=new Date(t,e),n=new Date(t,e-2);return{length:o(s),month:e,start:i(s),year:t,previous:{length:o(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()},next:{length:o(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()}}}getDays(e=this.getMonthInfo(),t=this.minWeeks){t=t>10?10:t;const{start:i,length:o,previous:s,next:r}=e,n=[];let a=1-i;for(;a<o+1||n.length<t||n[n.length-1].length%7!=0;){const{month:t,year:i}=a<1?s:a>o?r:e,l=a<1?s.length+a:a>o?a-o:a,c=`${t}-${l}-${i}`,h={day:l,month:t,year:i,disabled:this.dateInString(c,this.disabledDates),selected:this.dateInString(c,this.selectedDates)},d=n[n.length-1];0===n.length||d.length%7==0?n.push([h]):d.push(h),a++}return n}dateInString(e,t){const i=t.split(",").map((e=>e.trim()));return e="string"==typeof e?e:`${e.getMonth()+1}-${e.getDate()}-${e.getFullYear()}`,i.some((t=>t===e))}getDayClassNames(e,t){const{day:i,month:o,year:s,disabled:r,selected:n}=e;return["day",t===`${o}-${i}-${s}`&&"today",this.month!==o&&"inactive",r&&"disabled",n&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const e=this.dateFormatter.getWeekdays().map((e=>({text:e})));if("long"!==this.weekdayFormat){const t=this.dateFormatter.getWeekdays("long");e.forEach(((e,i)=>{e.abbr=t[i]}))}return e}handleDateSelect(e,t){e.preventDefault,this.$emit("dateselected",t)}handleKeydown(e,t){return e.key===ve&&this.handleDateSelect(e,t),!0}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],mt.prototype,"readonly",void 0),(0,h.__decorate)([o.attr],mt.prototype,"locale",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],mt.prototype,"month",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],mt.prototype,"year",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"day-format",mode:"fromView"})],mt.prototype,"dayFormat",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"weekday-format",mode:"fromView"})],mt.prototype,"weekdayFormat",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"month-format",mode:"fromView"})],mt.prototype,"monthFormat",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"year-format",mode:"fromView"})],mt.prototype,"yearFormat",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"min-weeks",converter:o.nullableNumberConverter})],mt.prototype,"minWeeks",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"disabled-dates"})],mt.prototype,"disabledDates",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"selected-dates"})],mt.prototype,"selectedDates",void 0);const bt={none:"none",default:"default",sticky:"sticky"},ft={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},vt={default:"default",header:"header",stickyHeader:"sticky-header"},yt=o.html`
|
|
5160
|
+
`,We="form-associated-proxy",Ke="ElementInternals",Xe=Ke in window&&"setFormValue"in window[Ke].prototype,Ye=new WeakMap;function Qe(e){const t=class extends e{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return Xe}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=e?t.concat(Array.from(e)):t;return Object.freeze(i)}return o.emptyArray}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),o.DOM.queueUpdate((()=>this.classList.toggle("disabled",this.disabled)))}nameChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),o.DOM.queueUpdate((()=>this.classList.toggle("required",this.required))),this.validate()}get elementInternals(){if(!Xe)return null;let e=Ye.get(this);return e||(e=this.attachInternals(),Ye.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach((e=>this.proxy.removeEventListener(e,this.stopPropagation))),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,i){this.elementInternals?this.elementInternals.setValidity(e,t,i):"string"==typeof t&&this.proxy.setCustomValidity(t)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((e=>this.proxy.addEventListener(e,this.stopPropagation))),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",We),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",We)),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}_keypressHandler(e){if(e.key===pe.kL)if(this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");null==e||e.click()}}stopPropagation(e){e.stopPropagation()}};return(0,o.attr)({mode:"boolean"})(t.prototype,"disabled"),(0,o.attr)({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),(0,o.attr)({attribute:"current-value"})(t.prototype,"currentValue"),(0,o.attr)(t.prototype,"name"),(0,o.attr)({mode:"boolean"})(t.prototype,"required"),(0,o.observable)(t.prototype,"value"),t}function Ze(e){class t extends(Qe(e)){}class i extends t{constructor(...e){super(e),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==e&&this.$emit("change"),this.validate()}currentCheckedChanged(e,t){this.checked=this.currentChecked}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return(0,o.attr)({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),(0,o.attr)({attribute:"current-checked",converter:o.booleanConverter})(i.prototype,"currentChecked"),(0,o.observable)(i.prototype,"defaultChecked"),(0,o.observable)(i.prototype,"checked"),i}class Je extends ae{}class et extends(Qe(Je)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class tt extends et{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&(null===(t=this.defaultSlottedContent)||void 0===t?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;null===(e=this.form)||void 0===e||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.addEventListener("click",this.handleClick)}))}disconnectedCallback(){var e;super.disconnectedCallback();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.removeEventListener("click",this.handleClick)}))}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],tt.prototype,"autofocus",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"form"})],tt.prototype,"formId",void 0),(0,h.__decorate)([o.attr],tt.prototype,"formaction",void 0),(0,h.__decorate)([o.attr],tt.prototype,"formenctype",void 0),(0,h.__decorate)([o.attr],tt.prototype,"formmethod",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],tt.prototype,"formnovalidate",void 0),(0,h.__decorate)([o.attr],tt.prototype,"formtarget",void 0),(0,h.__decorate)([o.attr],tt.prototype,"type",void 0),(0,h.__decorate)([o.observable],tt.prototype,"defaultSlottedContent",void 0);class it{}(0,h.__decorate)([(0,o.attr)({attribute:"aria-expanded"})],it.prototype,"ariaExpanded",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-pressed"})],it.prototype,"ariaPressed",void 0),he(it,ve),he(tt,s,it);class ot{constructor(e){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,e)for(const t in e){const i=e[t];"date"===t?this.date=this.getDateObject(i):this[t]=i}}getDateObject(e){if("string"==typeof e){const t=e.split(/[/-]/);return t.length<3?new Date:new Date(parseInt(t[2],10),parseInt(t[0],10)-1,parseInt(t[1],10))}if("day"in e&&"month"in e&&"year"in e){const{day:t,month:i,year:o}=e;return new Date(o,i-1,t)}return e}getDate(e=this.date,t={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const o=this.getDateObject(e);if(!o.getTime())return"";const s=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},t);return new Intl.DateTimeFormat(i,s).format(o)}getDay(e=this.date.getDate(),t=this.dayFormat,i=this.locale){return this.getDate({month:1,day:e,year:2020},{day:t},i)}getMonth(e=this.date.getMonth()+1,t=this.monthFormat,i=this.locale){return this.getDate({month:e,day:2,year:2020},{month:t},i)}getYear(e=this.date.getFullYear(),t=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:e},{year:t},i)}getWeekday(e=0,t=this.weekdayFormat,i=this.locale){const o=`1-${e+1}-2017`;return this.getDate(o,{weekday:t},i)}getWeekdays(e=this.weekdayFormat,t=this.locale){return Array(7).fill(null).map(((i,o)=>this.getWeekday(o,e,t)))}}class st extends ae{constructor(){super(...arguments),this.dateFormatter=new ot,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(e=this.month,t=this.year){const i=e=>new Date(e.getFullYear(),e.getMonth(),1).getDay(),o=e=>{const t=new Date(e.getFullYear(),e.getMonth()+1,1);return new Date(t.getTime()-this.oneDayInMs).getDate()},s=new Date(t,e-1),r=new Date(t,e),n=new Date(t,e-2);return{length:o(s),month:e,start:i(s),year:t,previous:{length:o(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()},next:{length:o(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()}}}getDays(e=this.getMonthInfo(),t=this.minWeeks){t=t>10?10:t;const{start:i,length:o,previous:s,next:r}=e,n=[];let a=1-i;for(;a<o+1||n.length<t||n[n.length-1].length%7!=0;){const{month:t,year:i}=a<1?s:a>o?r:e,l=a<1?s.length+a:a>o?a-o:a,c=`${t}-${l}-${i}`,h={day:l,month:t,year:i,disabled:this.dateInString(c,this.disabledDates),selected:this.dateInString(c,this.selectedDates)},d=n[n.length-1];0===n.length||d.length%7==0?n.push([h]):d.push(h),a++}return n}dateInString(e,t){const i=t.split(",").map((e=>e.trim()));return e="string"==typeof e?e:`${e.getMonth()+1}-${e.getDate()}-${e.getFullYear()}`,i.some((t=>t===e))}getDayClassNames(e,t){const{day:i,month:o,year:s,disabled:r,selected:n}=e;return["day",t===`${o}-${i}-${s}`&&"today",this.month!==o&&"inactive",r&&"disabled",n&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const e=this.dateFormatter.getWeekdays().map((e=>({text:e})));if("long"!==this.weekdayFormat){const t=this.dateFormatter.getWeekdays("long");e.forEach(((e,i)=>{e.abbr=t[i]}))}return e}handleDateSelect(e,t){e.preventDefault,this.$emit("dateselected",t)}handleKeydown(e,t){return e.key===pe.kL&&this.handleDateSelect(e,t),!0}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],st.prototype,"readonly",void 0),(0,h.__decorate)([o.attr],st.prototype,"locale",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],st.prototype,"month",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],st.prototype,"year",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"day-format",mode:"fromView"})],st.prototype,"dayFormat",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"weekday-format",mode:"fromView"})],st.prototype,"weekdayFormat",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"month-format",mode:"fromView"})],st.prototype,"monthFormat",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"year-format",mode:"fromView"})],st.prototype,"yearFormat",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"min-weeks",converter:o.nullableNumberConverter})],st.prototype,"minWeeks",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"disabled-dates"})],st.prototype,"disabledDates",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"selected-dates"})],st.prototype,"selectedDates",void 0);const rt={none:"none",default:"default",sticky:"sticky"},nt={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},at={default:"default",header:"header",stickyHeader:"sticky-header"},lt=o.html`
|
|
5161
5161
|
<template>
|
|
5162
5162
|
${e=>null===e.rowData||null===e.columnDefinition||null===e.columnDefinition.columnDataKey?null:e.rowData[e.columnDefinition.columnDataKey]}
|
|
5163
5163
|
</template>
|
|
5164
|
-
`,
|
|
5164
|
+
`,ct=o.html`
|
|
5165
5165
|
<template>
|
|
5166
5166
|
${e=>null===e.columnDefinition?null:void 0===e.columnDefinition.title?e.columnDefinition.columnDataKey:e.columnDefinition.title}
|
|
5167
5167
|
</template>
|
|
5168
|
-
`;class $t extends ae{constructor(){super(...arguments),this.cellType=ft.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(e,t){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var e;super.connectedCallback(),this.addEventListener(Le,this.handleFocusin),this.addEventListener(Ae,this.handleFocusout),this.addEventListener(Ve,this.handleKeydown),this.style.gridColumn=`${void 0===(null===(e=this.columnDefinition)||void 0===e?void 0:e.gridColumn)?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Le,this.handleFocusin),this.removeEventListener(Ae,this.handleFocusout),this.removeEventListener(Ve,this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===ft.columnHeader){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus()}}else if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus()}this.$emit("cell-focused",this)}}handleFocusout(e){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}handleKeydown(e){if(!(e.defaultPrevented||null===this.columnDefinition||this.cellType===ft.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===ft.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case ve:case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===ft.columnHeader){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}break;case ye:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case ft.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=xt.render(this,this);break;case void 0:case ft.rowHeader:case ft.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=yt.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}(0,h.__decorate)([(0,o.attr)({attribute:"cell-type"})],$t.prototype,"cellType",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"grid-column"})],$t.prototype,"gridColumn",void 0),(0,h.__decorate)([o.observable],$t.prototype,"rowData",void 0),(0,h.__decorate)([o.observable],$t.prototype,"columnDefinition",void 0);class wt extends ae{constructor(){super(...arguments),this.rowType=vt.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new o.RepeatDirective((e=>e.columnDefinitions),(e=>e.activeCellItemTemplate),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(Ae,this.handleFocusout),this.addEventListener(Ve,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(Ae,this.handleFocusout),this.removeEventListener(Ve,this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case me:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case be:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case xe:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case $e:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===vt.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===vt.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}(0,h.__decorate)([(0,o.attr)({attribute:"grid-template-columns"})],wt.prototype,"gridTemplateColumns",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"row-type"})],wt.prototype,"rowType",void 0),(0,h.__decorate)([o.observable],wt.prototype,"rowData",void 0),(0,h.__decorate)([o.observable],wt.prototype,"columnDefinitions",void 0),(0,h.__decorate)([o.observable],wt.prototype,"cellItemTemplate",void 0),(0,h.__decorate)([o.observable],wt.prototype,"headerCellItemTemplate",void 0),(0,h.__decorate)([o.observable],wt.prototype,"rowIndex",void 0),(0,h.__decorate)([o.observable],wt.prototype,"isActiveRow",void 0),(0,h.__decorate)([o.observable],wt.prototype,"activeCellItemTemplate",void 0),(0,h.__decorate)([o.observable],wt.prototype,"defaultCellItemTemplate",void 0),(0,h.__decorate)([o.observable],wt.prototype,"defaultHeaderCellItemTemplate",void 0),(0,h.__decorate)([o.observable],wt.prototype,"cellElements",void 0);class Ct extends ae{constructor(){super(),this.noTabbing=!1,this.generateHeader=bt.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(e,t,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,e)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),r=s[Math.max(0,Math.min(s.length-1,t))];i&&this.scrollHeight!==this.clientHeight&&(o<this.focusRowIndex&&this.scrollTop>0||o>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&r.scrollIntoView({block:"center",inline:"center"}),r.focus()},this.onChildListChange=(e,t)=>{e&&e.length&&(e.forEach((e=>{e.addedNodes.forEach((e=>{1===e.nodeType&&"row"===e.getAttribute("role")&&(e.columnDefinitions=this.columnDefinitions)}))})),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,o.DOM.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(void 0===e){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const e=this.rowElements[0];this.generatedGridTemplateColumns=new Array(e.cellElements.length).fill("1fr").join(" ")}e=this.generatedGridTemplateColumns}this.rowElements.forEach(((t,i)=>{const o=t;o.rowIndex=i,o.gridTemplateColumns=e,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)})),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(e){let t="";return e.forEach((e=>{t=`${t}${""===t?"":" "}1fr`})),t}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=Ct.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=Ct.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new o.RepeatDirective((e=>e.rowsData),(e=>e.rowItemTemplate),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(Ee,this.handleFocus),this.addEventListener(Ve,this.handleKeydown),this.addEventListener(Ae,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),o.DOM.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(Ee,this.handleFocus),this.removeEventListener(Ve,this.handleKeydown),this.removeEventListener(Ae,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=!0;const t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){null!==e.relatedTarget&&this.contains(e.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(e){if(e.defaultPrevented)return;let t;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(e.key){case fe:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case ge:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(t=this.focusRowIndex-1;t>=0;t--){const e=this.rowElements[t];if(e.offsetTop<this.scrollTop){this.scrollTop=e.offsetTop+e.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case"PageDown":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(t=this.focusRowIndex+1;t<=i;t++){const e=this.rowElements[t];if(e.offsetTop+e.offsetHeight>o){let t=0;this.generateHeader===bt.sticky&&null!==this.generatedHeader&&(t=this.generatedHeader.clientHeight),this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case xe:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case $e:e.ctrlKey&&null!==this.columnDefinitions&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,o.DOM.queueUpdate((()=>this.updateFocus())))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==bt.none&&this.rowsData.length>0){const e=document.createElement(this.rowElementTag);return this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===bt.sticky?vt.stickyHeader:vt.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}Ct.generateColumns=e=>Object.getOwnPropertyNames(e).map(((e,t)=>({columnDataKey:e,gridColumn:`${t}`}))),(0,h.__decorate)([(0,o.attr)({attribute:"no-tabbing",mode:"boolean"})],Ct.prototype,"noTabbing",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"generate-header"})],Ct.prototype,"generateHeader",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"grid-template-columns"})],Ct.prototype,"gridTemplateColumns",void 0),(0,h.__decorate)([o.observable],Ct.prototype,"rowsData",void 0),(0,h.__decorate)([o.observable],Ct.prototype,"columnDefinitions",void 0),(0,h.__decorate)([o.observable],Ct.prototype,"rowItemTemplate",void 0),(0,h.__decorate)([o.observable],Ct.prototype,"cellItemTemplate",void 0),(0,h.__decorate)([o.observable],Ct.prototype,"headerCellItemTemplate",void 0),(0,h.__decorate)([o.observable],Ct.prototype,"focusRowIndex",void 0),(0,h.__decorate)([o.observable],Ct.prototype,"focusColumnIndex",void 0),(0,h.__decorate)([o.observable],Ct.prototype,"defaultRowItemTemplate",void 0),(0,h.__decorate)([o.observable],Ct.prototype,"rowElementTag",void 0),(0,h.__decorate)([o.observable],Ct.prototype,"rowElements",void 0);const kt=o.html`
|
|
5168
|
+
`;class ht extends ae{constructor(){super(...arguments),this.cellType=nt.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(e,t){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var e;super.connectedCallback(),this.addEventListener(ke,this.handleFocusin),this.addEventListener(Te,this.handleFocusout),this.addEventListener(Se,this.handleKeydown),this.style.gridColumn=`${void 0===(null===(e=this.columnDefinition)||void 0===e?void 0:e.gridColumn)?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(ke,this.handleFocusin),this.removeEventListener(Te,this.handleFocusout),this.removeEventListener(Se,this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===nt.columnHeader){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus()}}else if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus()}this.$emit("cell-focused",this)}}handleFocusout(e){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}handleKeydown(e){if(!(e.defaultPrevented||null===this.columnDefinition||this.cellType===nt.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===nt.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case pe.kL:case pe.ny:if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===nt.columnHeader){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}break;case pe.CX:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case nt.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=ct.render(this,this);break;case void 0:case nt.rowHeader:case nt.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=lt.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}(0,h.__decorate)([(0,o.attr)({attribute:"cell-type"})],ht.prototype,"cellType",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"grid-column"})],ht.prototype,"gridColumn",void 0),(0,h.__decorate)([o.observable],ht.prototype,"rowData",void 0),(0,h.__decorate)([o.observable],ht.prototype,"columnDefinition",void 0);class dt extends ae{constructor(){super(...arguments),this.rowType=at.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new o.RepeatDirective((e=>e.columnDefinitions),(e=>e.activeCellItemTemplate),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(Te,this.handleFocusout),this.addEventListener(Se,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(Te,this.handleFocusout),this.removeEventListener(Se,this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case pe.BE:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case pe.mr:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case pe.tU:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case pe.Kh:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===at.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===at.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}(0,h.__decorate)([(0,o.attr)({attribute:"grid-template-columns"})],dt.prototype,"gridTemplateColumns",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"row-type"})],dt.prototype,"rowType",void 0),(0,h.__decorate)([o.observable],dt.prototype,"rowData",void 0),(0,h.__decorate)([o.observable],dt.prototype,"columnDefinitions",void 0),(0,h.__decorate)([o.observable],dt.prototype,"cellItemTemplate",void 0),(0,h.__decorate)([o.observable],dt.prototype,"headerCellItemTemplate",void 0),(0,h.__decorate)([o.observable],dt.prototype,"rowIndex",void 0),(0,h.__decorate)([o.observable],dt.prototype,"isActiveRow",void 0),(0,h.__decorate)([o.observable],dt.prototype,"activeCellItemTemplate",void 0),(0,h.__decorate)([o.observable],dt.prototype,"defaultCellItemTemplate",void 0),(0,h.__decorate)([o.observable],dt.prototype,"defaultHeaderCellItemTemplate",void 0),(0,h.__decorate)([o.observable],dt.prototype,"cellElements",void 0);class ut extends ae{constructor(){super(),this.noTabbing=!1,this.generateHeader=rt.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(e,t,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,e)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),r=s[Math.max(0,Math.min(s.length-1,t))];i&&this.scrollHeight!==this.clientHeight&&(o<this.focusRowIndex&&this.scrollTop>0||o>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&r.scrollIntoView({block:"center",inline:"center"}),r.focus()},this.onChildListChange=(e,t)=>{e&&e.length&&(e.forEach((e=>{e.addedNodes.forEach((e=>{1===e.nodeType&&"row"===e.getAttribute("role")&&(e.columnDefinitions=this.columnDefinitions)}))})),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,o.DOM.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(void 0===e){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const e=this.rowElements[0];this.generatedGridTemplateColumns=new Array(e.cellElements.length).fill("1fr").join(" ")}e=this.generatedGridTemplateColumns}this.rowElements.forEach(((t,i)=>{const o=t;o.rowIndex=i,o.gridTemplateColumns=e,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)})),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(e){let t="";return e.forEach((e=>{t=`${t}${""===t?"":" "}1fr`})),t}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=ut.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=ut.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new o.RepeatDirective((e=>e.rowsData),(e=>e.rowItemTemplate),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(Ce,this.handleFocus),this.addEventListener(Se,this.handleKeydown),this.addEventListener(Te,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),o.DOM.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(Ce,this.handleFocus),this.removeEventListener(Se,this.handleKeydown),this.removeEventListener(Te,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=!0;const t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){null!==e.relatedTarget&&this.contains(e.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(e){if(e.defaultPrevented)return;let t;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(e.key){case pe.SB:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case pe.iF:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case pe.Op:if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(t=this.focusRowIndex-1;t>=0;t--){const e=this.rowElements[t];if(e.offsetTop<this.scrollTop){this.scrollTop=e.offsetTop+e.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case pe.hi:if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(t=this.focusRowIndex+1;t<=i;t++){const e=this.rowElements[t];if(e.offsetTop+e.offsetHeight>o){let t=0;this.generateHeader===rt.sticky&&null!==this.generatedHeader&&(t=this.generatedHeader.clientHeight),this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case pe.tU:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case pe.Kh:e.ctrlKey&&null!==this.columnDefinitions&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,o.DOM.queueUpdate((()=>this.updateFocus())))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==rt.none&&this.rowsData.length>0){const e=document.createElement(this.rowElementTag);return this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===rt.sticky?at.stickyHeader:at.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}ut.generateColumns=e=>Object.getOwnPropertyNames(e).map(((e,t)=>({columnDataKey:e,gridColumn:`${t}`}))),(0,h.__decorate)([(0,o.attr)({attribute:"no-tabbing",mode:"boolean"})],ut.prototype,"noTabbing",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"generate-header"})],ut.prototype,"generateHeader",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"grid-template-columns"})],ut.prototype,"gridTemplateColumns",void 0),(0,h.__decorate)([o.observable],ut.prototype,"rowsData",void 0),(0,h.__decorate)([o.observable],ut.prototype,"columnDefinitions",void 0),(0,h.__decorate)([o.observable],ut.prototype,"rowItemTemplate",void 0),(0,h.__decorate)([o.observable],ut.prototype,"cellItemTemplate",void 0),(0,h.__decorate)([o.observable],ut.prototype,"headerCellItemTemplate",void 0),(0,h.__decorate)([o.observable],ut.prototype,"focusRowIndex",void 0),(0,h.__decorate)([o.observable],ut.prototype,"focusColumnIndex",void 0),(0,h.__decorate)([o.observable],ut.prototype,"defaultRowItemTemplate",void 0),(0,h.__decorate)([o.observable],ut.prototype,"rowElementTag",void 0),(0,h.__decorate)([o.observable],ut.prototype,"rowElements",void 0);const pt=o.html`
|
|
5169
5169
|
<div
|
|
5170
5170
|
class="title"
|
|
5171
5171
|
part="title"
|
|
@@ -5176,7 +5176,7 @@
|
|
|
5176
5176
|
</span>
|
|
5177
5177
|
<span part="year">${e=>e.dateFormatter.getYear(e.year)}</span>
|
|
5178
5178
|
</div>
|
|
5179
|
-
`,
|
|
5179
|
+
`,gt=e=>{const t=e.tagFor(ht);return o.html`
|
|
5180
5180
|
<${t}
|
|
5181
5181
|
class="week-day"
|
|
5182
5182
|
part="week-day"
|
|
@@ -5186,7 +5186,7 @@
|
|
|
5186
5186
|
>
|
|
5187
5187
|
${e=>e.text}
|
|
5188
5188
|
</${t}>
|
|
5189
|
-
`},
|
|
5189
|
+
`},mt=(e,t)=>{const i=e.tagFor(ht);return o.html`
|
|
5190
5190
|
<${i}
|
|
5191
5191
|
class="${(e,i)=>i.parentContext.parent.getDayClassNames(e,t)}"
|
|
5192
5192
|
part="day"
|
|
@@ -5205,7 +5205,7 @@
|
|
|
5205
5205
|
</div>
|
|
5206
5206
|
<slot name="${e=>e.month}-${e=>e.day}-${e=>e.year}"></slot>
|
|
5207
5207
|
</${i}>
|
|
5208
|
-
`},
|
|
5208
|
+
`},bt=(e,t)=>{const i=e.tagFor(dt);return o.html`
|
|
5209
5209
|
<${i}
|
|
5210
5210
|
class="week"
|
|
5211
5211
|
part="week"
|
|
@@ -5213,9 +5213,9 @@
|
|
|
5213
5213
|
role-type="default"
|
|
5214
5214
|
grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr"
|
|
5215
5215
|
>
|
|
5216
|
-
${(0,o.repeat)((e=>e),
|
|
5216
|
+
${(0,o.repeat)((e=>e),mt(e,t),{positioning:!0})}
|
|
5217
5217
|
</${i}>
|
|
5218
|
-
`},
|
|
5218
|
+
`},ft=(e,t)=>{const i=e.tagFor(ut),s=e.tagFor(dt);return o.html`
|
|
5219
5219
|
<${i} class="days interact" part="days" generate-header="none">
|
|
5220
5220
|
<${s}
|
|
5221
5221
|
class="week-days"
|
|
@@ -5224,11 +5224,11 @@
|
|
|
5224
5224
|
row-type="header"
|
|
5225
5225
|
grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr"
|
|
5226
5226
|
>
|
|
5227
|
-
${(0,o.repeat)((e=>e.getWeekdayText()),
|
|
5227
|
+
${(0,o.repeat)((e=>e.getWeekdayText()),gt(e),{positioning:!0})}
|
|
5228
5228
|
</${s}>
|
|
5229
|
-
${(0,o.repeat)((e=>e.getDays()),
|
|
5229
|
+
${(0,o.repeat)((e=>e.getDays()),bt(e,t))}
|
|
5230
5230
|
</${i}>
|
|
5231
|
-
`},
|
|
5231
|
+
`},vt=e=>o.html`
|
|
5232
5232
|
<div class="days" part="days">
|
|
5233
5233
|
<div class="week-days" part="week-days">
|
|
5234
5234
|
${(0,o.repeat)((e=>e.getWeekdayText()),o.html`
|
|
@@ -5259,17 +5259,17 @@
|
|
|
5259
5259
|
</div>
|
|
5260
5260
|
`)}
|
|
5261
5261
|
</div>
|
|
5262
|
-
`,
|
|
5262
|
+
`,yt=(e,t)=>{var i;const s=new Date,r=`${s.getMonth()+1}-${s.getDate()}-${s.getFullYear()}`;return o.html`
|
|
5263
5263
|
<template>
|
|
5264
5264
|
${l}
|
|
5265
5265
|
${t.title instanceof Function?t.title(e,t):null!==(i=t.title)&&void 0!==i?i:""}
|
|
5266
5266
|
<slot></slot>
|
|
5267
|
-
${(0,o.when)((e=>e.readonly),
|
|
5267
|
+
${(0,o.when)((e=>e.readonly),vt(r),ft(e,r))}
|
|
5268
5268
|
${a}
|
|
5269
5269
|
</template>
|
|
5270
|
-
`},
|
|
5270
|
+
`},xt=(e,t)=>o.html`
|
|
5271
5271
|
<slot></slot>
|
|
5272
|
-
`;class
|
|
5272
|
+
`;class $t extends ae{}const wt=(e,t)=>o.html`
|
|
5273
5273
|
<template
|
|
5274
5274
|
role="checkbox"
|
|
5275
5275
|
aria-checked="${e=>e.checked}"
|
|
@@ -5296,7 +5296,7 @@
|
|
|
5296
5296
|
<slot ${(0,o.slotted)("defaultSlottedNodes")}></slot>
|
|
5297
5297
|
</label>
|
|
5298
5298
|
</template>
|
|
5299
|
-
`;class Et extends ae{}class Lt extends(ct(Et)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class At extends Lt{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.readOnly&&e.key===we)this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked},this.clickHandler=e=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}(0,h.__decorate)([(0,o.attr)({attribute:"readonly",mode:"boolean"})],At.prototype,"readOnly",void 0),(0,h.__decorate)([o.observable],At.prototype,"defaultSlottedNodes",void 0),(0,h.__decorate)([o.observable],At.prototype,"indeterminate",void 0);var Vt=i(41353);var Pt=i(53763);function Bt(...e){return e.every((e=>e instanceof HTMLElement))}let Mt;function zt(e){return Bt(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}class Nt extends ae{constructor(e,t,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,e&&(this.textContent=e),t&&(this.initialValue=t),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(e,t){this.ariaChecked="boolean"!=typeof t?null:t?"true":"false"}contentChanged(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var e;return null!==(e=this.value)&&void 0!==e?e:this.text}get text(){var e,t;return null!==(t=null===(e=this.textContent)||void 0===e?void 0:e.replace(/\s+/g," ").trim())&&void 0!==t?t:""}set value(e){const t=`${null!=e?e:""}`;this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),o.Observable.notify(this,"value")}get value(){var e;return o.Observable.track(this,"value"),null!==(e=this._value)&&void 0!==e?e:this.text}get form(){return this.proxy?this.proxy.form:null}}(0,h.__decorate)([o.observable],Nt.prototype,"checked",void 0),(0,h.__decorate)([o.observable],Nt.prototype,"content",void 0),(0,h.__decorate)([o.observable],Nt.prototype,"defaultSelected",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],Nt.prototype,"disabled",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"selected",mode:"boolean"})],Nt.prototype,"selectedAttribute",void 0),(0,h.__decorate)([o.observable],Nt.prototype,"selected",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"value",mode:"fromView"})],Nt.prototype,"initialValue",void 0);class jt{}(0,h.__decorate)([o.observable],jt.prototype,"ariaChecked",void 0),(0,h.__decorate)([o.observable],jt.prototype,"ariaPosInSet",void 0),(0,h.__decorate)([o.observable],jt.prototype,"ariaSelected",void 0),(0,h.__decorate)([o.observable],jt.prototype,"ariaSetSize",void 0),he(jt,Fe),he(Nt,s,jt);class Gt extends ae{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return null!==(e=this.selectedOptions[0])&&void 0!==e?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((e=>e.disabled))}get length(){var e,t;return null!==(t=null===(e=this.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0}get options(){return o.Observable.track(this,"options"),this._options}set options(e){this._options=e,o.Observable.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){const t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&null!==e&&(e.focus(),requestAnimationFrame((()=>{e.scrollIntoView({block:"nearest"})})))}focusinHandler(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi");return this.options.filter((e=>e.text.trim().match(t)))}getSelectableIndex(e=this.selectedIndex,t){const i=e>t?-1:e<t?1:0,o=e+i;let s=null;switch(i){case-1:s=this.options.reduceRight(((e,t,i)=>!e&&!t.disabled&&i<o?t:e),s);break;case 1:s=this.options.reduce(((e,t,i)=>!e&&!t.disabled&&i>o?t:e),s)}return this.options.indexOf(s)}handleChange(e,t){if("selected"===t)Gt.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions()}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=!0),Gt.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`)}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;const t=e.key;switch(t){case xe:e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case ge:e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case fe:e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case $e:e.preventDefault(),this.selectLastOption();break;case Ce:return this.focusAndScrollOptionIntoView(),!0;case ve:case ye:return!0;case we:if(this.typeaheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":null}selectedIndexChanged(e,t){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof e){const i=this.getSelectableIndex(e,t),o=i>-1?i:e;return this.selectedIndex=o,void(t===o&&this.selectedIndexChanged(t,o))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(e,t){var i;const s=t.filter(Gt.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach((e=>{const t=o.Observable.getNotifier(e);t.unsubscribe(this,"selected"),e.selected=s.includes(e),t.subscribe(this,"selected")}))}selectFirstOption(){var e,t;this.disabled||(this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>!e.disabled)))&&void 0!==t?t:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(e,t){let i=e.length;for(;i--;)if(t(e[i],i,e))return i;return-1}(this.options,(e=>!e.disabled)))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var e,t;this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>e.defaultSelected)))&&void 0!==t?t:-1}setSelectedOptions(){var e,t,i;(null===(e=this.options)||void 0===e?void 0:e.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(e,t){this.options=t.reduce(((e,t)=>(zt(t)&&e.push(t),e)),[]);const i=`${this.options.length}`;this.options.forEach(((e,t)=>{e.id||(e.id=(0,Vt.EL)("option-")),e.ariaPosInSet=`${t+1}`,e.ariaSetSize=i})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches();if(e.length){const t=this.options.indexOf(e[0]);t>-1&&(this.selectedIndex=t)}this.typeaheadExpired=!1}}}Gt.slottedOptionFilter=e=>zt(e)&&!e.hidden,Gt.TYPE_AHEAD_TIMEOUT_MS=1e3,(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],Gt.prototype,"disabled",void 0),(0,h.__decorate)([o.observable],Gt.prototype,"selectedIndex",void 0),(0,h.__decorate)([o.observable],Gt.prototype,"selectedOptions",void 0),(0,h.__decorate)([o.observable],Gt.prototype,"slottedOptions",void 0),(0,h.__decorate)([o.observable],Gt.prototype,"typeaheadBuffer",void 0);class qt{}(0,h.__decorate)([o.observable],qt.prototype,"ariaActiveDescendant",void 0),(0,h.__decorate)([o.observable],qt.prototype,"ariaDisabled",void 0),(0,h.__decorate)([o.observable],qt.prototype,"ariaExpanded",void 0),(0,h.__decorate)([o.observable],qt.prototype,"ariaMultiSelectable",void 0),he(qt,Fe),he(Gt,qt);const Ut={above:"above",below:"below"};class Wt extends Gt{}class Kt extends(lt(Wt)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Xt={inline:"inline",list:"list",both:"both",none:"none"};class Yt extends Kt{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=(0,Vt.EL)("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Xt.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Xt.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Xt.both}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void o.DOM.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}get options(){return o.Observable.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(e){this._options=e,o.Observable.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}get value(){return o.Observable.track(this,"value"),this._value}set value(e){var t,i,s;const r=`${this._value}`;if(this.$fastController.isConnected&&this.options){const o=this.options.findIndex((t=>t.text.toLowerCase()===e.toLowerCase())),r=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,n=null===(i=this.options[o])||void 0===i?void 0:i.text;this.selectedIndex=r!==n?o:this.selectedIndex,e=(null===(s=this.firstSelectedOption)||void 0===s?void 0:s.text)||e}r!==e&&(this._value=e,super.valueChanged(r,e),o.Observable.notify(this,"value"))}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Xt.none||(this.filter="");const e=this.filter.toLowerCase();this.filteredOptions=this._options.filter((e=>e.text.toLowerCase().startsWith(this.filter.toLowerCase()))),this.isAutocompleteList&&(this.filteredOptions.length||e||(this.filteredOptions=this._options),this._options.forEach((e=>{e.hidden=!this.filteredOptions.includes(e)})))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame((()=>{var e;null===(e=this.firstSelectedOption)||void 0===e||e.scrollIntoView({block:"nearest"})})))}focusoutHandler(e){if(this.syncValue(),!this.open)return!0;const t=e.relatedTarget;this.isSameNode(t)?this.focus():this.options&&this.options.includes(t)||(this.open=!1)}inputHandler(e){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map((e=>e.text)).indexOf(this.control.value)),e.inputType.includes("deleteContent")||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break;case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.setInputToSelection(),!this.open)return!0;e.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(e),this.isAutocompleteInline&&this.setInlineSelection();break;default:return!0}}keyupHandler(e){switch(e.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(e,t){if(this.$fastController.isConnected){if((t=(0,Te.b9)(-1,this.options.length-1,t))!==this.selectedIndex)return void(this.selectedIndex=t);super.selectedIndexChanged(e,t)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex((e=>null!==e.getAttribute("selected")||e.selected));this.selectedIndex=e,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var e;const t=this.selectedIndex>-1?null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text:this.control.value;this.updateValue(this.value!==t)}setPositioning(){const e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?Ut.above:Ut.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ut.above?~~e.top:~~t}selectedOptionsChanged(e,t){this.$fastController.isConnected&&this._options.forEach((e=>{e.selected=t.includes(e)}))}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.updateValue()}updateValue(e){var t;this.$fastController.isConnected&&(this.value=(null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)||this.control.value,this.control.value=this.value),e&&this.$emit("change")}clearSelectionRange(){const e=this.control.value.length;this.control.setSelectionRange(e,e)}}(0,h.__decorate)([(0,o.attr)({attribute:"autocomplete",mode:"fromView"})],Yt.prototype,"autocomplete",void 0),(0,h.__decorate)([o.observable],Yt.prototype,"maxHeight",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"open",mode:"boolean"})],Yt.prototype,"open",void 0),(0,h.__decorate)([o.attr],Yt.prototype,"placeholder",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"position"})],Yt.prototype,"positionAttribute",void 0),(0,h.__decorate)([o.observable],Yt.prototype,"position",void 0);class Qt{}(0,h.__decorate)([o.observable],Qt.prototype,"ariaAutoComplete",void 0),(0,h.__decorate)([o.observable],Qt.prototype,"ariaControls",void 0),he(Qt,qt),he(Yt,s,Qt);const Zt=(e,t)=>o.html`
|
|
5299
|
+
`;class Ct extends ae{}class kt extends(Ze(Ct)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Tt extends kt{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.readOnly&&e.key===pe.BI)this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked},this.clickHandler=e=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}(0,h.__decorate)([(0,o.attr)({attribute:"readonly",mode:"boolean"})],Tt.prototype,"readOnly",void 0),(0,h.__decorate)([o.observable],Tt.prototype,"defaultSlottedNodes",void 0),(0,h.__decorate)([o.observable],Tt.prototype,"indeterminate",void 0);var St=i(41353);var _t=i(53763);function It(...e){return e.every((e=>e instanceof HTMLElement))}let Ft;function Ot(e){return It(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}class Ht extends ae{constructor(e,t,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,e&&(this.textContent=e),t&&(this.initialValue=t),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(e,t){this.ariaChecked="boolean"!=typeof t?null:t?"true":"false"}contentChanged(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var e;return null!==(e=this.value)&&void 0!==e?e:this.text}get text(){var e,t;return null!==(t=null===(e=this.textContent)||void 0===e?void 0:e.replace(/\s+/g," ").trim())&&void 0!==t?t:""}set value(e){const t=`${null!=e?e:""}`;this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),o.Observable.notify(this,"value")}get value(){var e;return o.Observable.track(this,"value"),null!==(e=this._value)&&void 0!==e?e:this.text}get form(){return this.proxy?this.proxy.form:null}}(0,h.__decorate)([o.observable],Ht.prototype,"checked",void 0),(0,h.__decorate)([o.observable],Ht.prototype,"content",void 0),(0,h.__decorate)([o.observable],Ht.prototype,"defaultSelected",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],Ht.prototype,"disabled",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"selected",mode:"boolean"})],Ht.prototype,"selectedAttribute",void 0),(0,h.__decorate)([o.observable],Ht.prototype,"selected",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"value",mode:"fromView"})],Ht.prototype,"initialValue",void 0);class Dt{}(0,h.__decorate)([o.observable],Dt.prototype,"ariaChecked",void 0),(0,h.__decorate)([o.observable],Dt.prototype,"ariaPosInSet",void 0),(0,h.__decorate)([o.observable],Dt.prototype,"ariaSelected",void 0),(0,h.__decorate)([o.observable],Dt.prototype,"ariaSetSize",void 0),he(Dt,ve),he(Ht,s,Dt);class Rt extends ae{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return null!==(e=this.selectedOptions[0])&&void 0!==e?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((e=>e.disabled))}get length(){var e,t;return null!==(t=null===(e=this.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0}get options(){return o.Observable.track(this,"options"),this._options}set options(e){this._options=e,o.Observable.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){const t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&null!==e&&(e.focus(),requestAnimationFrame((()=>{e.scrollIntoView({block:"nearest"})})))}focusinHandler(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi");return this.options.filter((e=>e.text.trim().match(t)))}getSelectableIndex(e=this.selectedIndex,t){const i=e>t?-1:e<t?1:0,o=e+i;let s=null;switch(i){case-1:s=this.options.reduceRight(((e,t,i)=>!e&&!t.disabled&&i<o?t:e),s);break;case 1:s=this.options.reduce(((e,t,i)=>!e&&!t.disabled&&i>o?t:e),s)}return this.options.indexOf(s)}handleChange(e,t){if("selected"===t)Rt.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions()}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=!0),Rt.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`)}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;const t=e.key;switch(t){case pe.tU:e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case pe.iF:e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case pe.SB:e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case pe.Kh:e.preventDefault(),this.selectLastOption();break;case pe.oM:return this.focusAndScrollOptionIntoView(),!0;case pe.kL:case pe.CX:return!0;case pe.BI:if(this.typeaheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":null}selectedIndexChanged(e,t){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof e){const i=this.getSelectableIndex(e,t),o=i>-1?i:e;return this.selectedIndex=o,void(t===o&&this.selectedIndexChanged(t,o))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(e,t){var i;const s=t.filter(Rt.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach((e=>{const t=o.Observable.getNotifier(e);t.unsubscribe(this,"selected"),e.selected=s.includes(e),t.subscribe(this,"selected")}))}selectFirstOption(){var e,t;this.disabled||(this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>!e.disabled)))&&void 0!==t?t:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(e,t){let i=e.length;for(;i--;)if(t(e[i],i,e))return i;return-1}(this.options,(e=>!e.disabled)))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var e,t;this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>e.defaultSelected)))&&void 0!==t?t:-1}setSelectedOptions(){var e,t,i;(null===(e=this.options)||void 0===e?void 0:e.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(e,t){this.options=t.reduce(((e,t)=>(Ot(t)&&e.push(t),e)),[]);const i=`${this.options.length}`;this.options.forEach(((e,t)=>{e.id||(e.id=(0,St.EL)("option-")),e.ariaPosInSet=`${t+1}`,e.ariaSetSize=i})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches();if(e.length){const t=this.options.indexOf(e[0]);t>-1&&(this.selectedIndex=t)}this.typeaheadExpired=!1}}}Rt.slottedOptionFilter=e=>Ot(e)&&!e.hidden,Rt.TYPE_AHEAD_TIMEOUT_MS=1e3,(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],Rt.prototype,"disabled",void 0),(0,h.__decorate)([o.observable],Rt.prototype,"selectedIndex",void 0),(0,h.__decorate)([o.observable],Rt.prototype,"selectedOptions",void 0),(0,h.__decorate)([o.observable],Rt.prototype,"slottedOptions",void 0),(0,h.__decorate)([o.observable],Rt.prototype,"typeaheadBuffer",void 0);class Et{}(0,h.__decorate)([o.observable],Et.prototype,"ariaActiveDescendant",void 0),(0,h.__decorate)([o.observable],Et.prototype,"ariaDisabled",void 0),(0,h.__decorate)([o.observable],Et.prototype,"ariaExpanded",void 0),(0,h.__decorate)([o.observable],Et.prototype,"ariaMultiSelectable",void 0),he(Et,ve),he(Rt,Et);const Lt={above:"above",below:"below"};class At extends Rt{}class Vt extends(Qe(At)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Bt={inline:"inline",list:"list",both:"both",none:"none"};class Pt extends Vt{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=(0,St.EL)("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Bt.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Bt.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Bt.both}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void o.DOM.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}get options(){return o.Observable.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(e){this._options=e,o.Observable.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}get value(){return o.Observable.track(this,"value"),this._value}set value(e){var t,i,s;const r=`${this._value}`;if(this.$fastController.isConnected&&this.options){const o=this.options.findIndex((t=>t.text.toLowerCase()===e.toLowerCase())),r=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,n=null===(i=this.options[o])||void 0===i?void 0:i.text;this.selectedIndex=r!==n?o:this.selectedIndex,e=(null===(s=this.firstSelectedOption)||void 0===s?void 0:s.text)||e}r!==e&&(this._value=e,super.valueChanged(r,e),o.Observable.notify(this,"value"))}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Bt.none||(this.filter="");const e=this.filter.toLowerCase();this.filteredOptions=this._options.filter((e=>e.text.toLowerCase().startsWith(this.filter.toLowerCase()))),this.isAutocompleteList&&(this.filteredOptions.length||e||(this.filteredOptions=this._options),this._options.forEach((e=>{e.hidden=!this.filteredOptions.includes(e)})))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame((()=>{var e;null===(e=this.firstSelectedOption)||void 0===e||e.scrollIntoView({block:"nearest"})})))}focusoutHandler(e){if(this.syncValue(),!this.open)return!0;const t=e.relatedTarget;this.isSameNode(t)?this.focus():this.options&&this.options.includes(t)||(this.open=!1)}inputHandler(e){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map((e=>e.text)).indexOf(this.control.value)),e.inputType.includes("deleteContent")||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break;case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.setInputToSelection(),!this.open)return!0;e.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(e),this.isAutocompleteInline&&this.setInlineSelection();break;default:return!0}}keyupHandler(e){switch(e.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(e,t){if(this.$fastController.isConnected){if((t=(0,ge.b9)(-1,this.options.length-1,t))!==this.selectedIndex)return void(this.selectedIndex=t);super.selectedIndexChanged(e,t)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex((e=>null!==e.getAttribute("selected")||e.selected));this.selectedIndex=e,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var e;const t=this.selectedIndex>-1?null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text:this.control.value;this.updateValue(this.value!==t)}setPositioning(){const e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?Lt.above:Lt.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Lt.above?~~e.top:~~t}selectedOptionsChanged(e,t){this.$fastController.isConnected&&this._options.forEach((e=>{e.selected=t.includes(e)}))}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.updateValue()}updateValue(e){var t;this.$fastController.isConnected&&(this.value=(null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)||this.control.value,this.control.value=this.value),e&&this.$emit("change")}clearSelectionRange(){const e=this.control.value.length;this.control.setSelectionRange(e,e)}}(0,h.__decorate)([(0,o.attr)({attribute:"autocomplete",mode:"fromView"})],Pt.prototype,"autocomplete",void 0),(0,h.__decorate)([o.observable],Pt.prototype,"maxHeight",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"open",mode:"boolean"})],Pt.prototype,"open",void 0),(0,h.__decorate)([o.attr],Pt.prototype,"placeholder",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"position"})],Pt.prototype,"positionAttribute",void 0),(0,h.__decorate)([o.observable],Pt.prototype,"position",void 0);class Mt{}(0,h.__decorate)([o.observable],Mt.prototype,"ariaAutoComplete",void 0),(0,h.__decorate)([o.observable],Mt.prototype,"ariaControls",void 0),he(Mt,Et),he(Pt,s,Mt);const zt=(e,t)=>o.html`
|
|
5300
5300
|
<template
|
|
5301
5301
|
aria-disabled="${e=>e.ariaDisabled}"
|
|
5302
5302
|
autocomplete="${e=>e.autocomplete}"
|
|
@@ -5346,17 +5346,17 @@
|
|
|
5346
5346
|
${(0,o.ref)("listbox")}
|
|
5347
5347
|
>
|
|
5348
5348
|
<slot
|
|
5349
|
-
${(0,o.slotted)({filter:
|
|
5349
|
+
${(0,o.slotted)({filter:Rt.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
|
|
5350
5350
|
></slot>
|
|
5351
5351
|
</div>
|
|
5352
5352
|
</template>
|
|
5353
|
-
`;const
|
|
5353
|
+
`;const Nt=(e,t)=>{const i=function(e){const t=e.tagFor(dt);return o.html`
|
|
5354
5354
|
<${t}
|
|
5355
5355
|
:rowData="${e=>e}"
|
|
5356
5356
|
:cellItemTemplate="${(e,t)=>t.parent.cellItemTemplate}"
|
|
5357
5357
|
:headerCellItemTemplate="${(e,t)=>t.parent.headerCellItemTemplate}"
|
|
5358
5358
|
></${t}>
|
|
5359
|
-
`}(e),s=e.tagFor(
|
|
5359
|
+
`}(e),s=e.tagFor(dt);return o.html`
|
|
5360
5360
|
<template
|
|
5361
5361
|
role="grid"
|
|
5362
5362
|
tabindex="0"
|
|
@@ -5366,14 +5366,14 @@
|
|
|
5366
5366
|
>
|
|
5367
5367
|
<slot></slot>
|
|
5368
5368
|
</template>
|
|
5369
|
-
`};const
|
|
5369
|
+
`};const jt=(e,t)=>{const i=function(e){const t=e.tagFor(ht);return o.html`
|
|
5370
5370
|
<${t}
|
|
5371
5371
|
cell-type="${e=>e.isRowHeader?"rowheader":void 0}"
|
|
5372
5372
|
grid-column="${(e,t)=>t.index+1}"
|
|
5373
5373
|
:rowData="${(e,t)=>t.parent.rowData}"
|
|
5374
5374
|
:columnDefinition="${e=>e}"
|
|
5375
5375
|
></${t}>
|
|
5376
|
-
`}(e),s=function(e){const t=e.tagFor(
|
|
5376
|
+
`}(e),s=function(e){const t=e.tagFor(ht);return o.html`
|
|
5377
5377
|
<${t}
|
|
5378
5378
|
cell-type="columnheader"
|
|
5379
5379
|
grid-column="${(e,t)=>t.index+1}"
|
|
@@ -5389,7 +5389,7 @@
|
|
|
5389
5389
|
>
|
|
5390
5390
|
<slot ${(0,o.slotted)("slottedCellElements")}></slot>
|
|
5391
5391
|
</template>
|
|
5392
|
-
`},
|
|
5392
|
+
`},Gt=(e,t)=>o.html`
|
|
5393
5393
|
<template
|
|
5394
5394
|
tabindex="-1"
|
|
5395
5395
|
role="${e=>e.cellType&&"default"!==e.cellType?e.cellType:"gridcell"}"
|
|
@@ -5399,7 +5399,7 @@
|
|
|
5399
5399
|
>
|
|
5400
5400
|
<slot></slot>
|
|
5401
5401
|
</template>
|
|
5402
|
-
`;function ii(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}function oi(e,t){let i=t;for(;null!==i;){if(i===e)return!0;i=ii(i)}return!1}const si=document.createElement("div");class ri{setProperty(e,t){o.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){o.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class ni extends ri{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class ai extends ri{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class li{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),o.Observable.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),o.DOM.queueUpdate((()=>{null!==this.target&&this.target.setProperty(e,t)}))}removeProperty(e){this.store.delete(e),o.DOM.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(e)}))}handleChange(e,t){const{sheet:i}=this.style;if(i){const e=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[e].style}else this.target=null}}(0,h.__decorate)([o.observable],li.prototype,"target",void 0);class ci{constructor(e){this.target=e.style}setProperty(e,t){o.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){o.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class hi{setProperty(e,t){hi.properties[e]=t;for(const i of hi.roots.values())pi.getOrCreate(hi.normalizeRoot(i)).setProperty(e,t)}removeProperty(e){delete hi.properties[e];for(const t of hi.roots.values())pi.getOrCreate(hi.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=hi;if(!t.has(e)){t.add(e);const i=pi.getOrCreate(this.normalizeRoot(e));for(const e in hi.properties)i.setProperty(e,hi.properties[e])}}static unregisterRoot(e){const{roots:t}=hi;if(t.has(e)){t.delete(e);const i=pi.getOrCreate(hi.normalizeRoot(e));for(const e in hi.properties)i.removeProperty(e)}}static normalizeRoot(e){return e===si?document:e}}hi.roots=new Set,hi.properties={};const di=new WeakMap,ui=o.DOM.supportsAdoptedStyleSheets?class extends ri{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(o.ElementStyles.create([t]))}}:li,pi=Object.freeze({getOrCreate(e){if(di.has(e))return di.get(e);let t;return e===si?t=new hi:e instanceof Document?t=o.DOM.supportsAdoptedStyleSheets?new ni:new ai:t=e instanceof o.FASTElement?new ui(e):new ci(e),di.set(e,t),t}});class gi extends o.CSSDirective{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,null!==e.cssCustomPropertyName&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=gi.uniqueId(),gi.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new gi({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return"string"==typeof e.cssCustomProperty}static isDerivedDesignTokenValue(e){return"function"==typeof e}static getTokenById(e){return gi.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=yi.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof gi&&(t=this.alias(t)),yi.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),yi.existsFor(e)&&yi.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(si,e),this}subscribe(e,t){const i=this.getOrCreateSubscriberSet(t);t&&!yi.existsFor(t)&&yi.getOrCreate(t),i.has(e)||i.add(e)}unsubscribe(e,t){const i=this.subscribers.get(t||this);i&&i.has(e)&&i.delete(e)}notify(e){const t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((e=>e.handleChange(t))),this.subscribers.has(e)&&this.subscribers.get(e).forEach((e=>e.handleChange(t)))}alias(e){return t=>e.getValueFor(t)}}gi.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),gi.tokensById=new Map;class mi{constructor(e,t,i){this.source=e,this.token=t,this.node=i,this.dependencies=new Set,this.observer=o.Observable.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,o.defaultExecutionContext))}}class bi{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),o.Observable.getNotifier(this).notify(e.id))}get(e){return o.Observable.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const fi=new WeakMap,vi=new WeakMap;class yi{constructor(e){this.target=e,this.store=new bi,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const i=gi.getTokenById(t);if(i&&(i.notify(this.target),gi.isCSSDesignToken(i))){const t=this.parent,o=this.isReflecting(i);if(t){const s=t.get(i),r=e.get(i);s===r||o?s===r&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},fi.set(e,this),o.Observable.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof o.FASTElement?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return fi.get(e)||new yi(e)}static existsFor(e){return fi.has(e)}static findParent(e){if(si!==e.target){let t=ii(e.target);for(;null!==t;){if(fi.has(t))return fi.get(t);t=ii(t)}return yi.getOrCreate(si)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e))return i;i=i.parent?i.parent:i.target!==si?yi.getOrCreate(si):null}while(null!==i);return null}get parent(){return vi.get(this)||null}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(void 0!==t)return t;const i=this.getRaw(e);return void 0!==i?(this.hydrate(e,i),this.get(e)):void 0}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):null===(t=yi.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){gi.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),gi.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){const e=yi.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){if(this.parent){vi.get(this).removeChild(this)}}appendChild(e){e.parent&&vi.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));vi.set(e,this),this.children.push(e),t.forEach((t=>e.appendChild(t))),o.Observable.getNotifier(this.store).subscribe(e);for(const[t,i]of this.store.all())e.hydrate(t,this.bindingObservers.has(t)?this.getRaw(t):i)}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),o.Observable.getNotifier(this.store).unsubscribe(e),e.parent===this&&vi.delete(e)}contains(e){return oi(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),yi.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),yi.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const i=gi.getTokenById(t);i&&this.hydrate(i,this.getRaw(i))}hydrate(e,t){if(!this.has(e)){const i=this.bindingObservers.get(e);gi.isDerivedDesignTokenValue(t)?i?i.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(i&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){const i=new mi(t,e,this);return this.bindingObservers.set(e,i),i}tearDownBindingObserver(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}yi.cssCustomPropertyReflector=new class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){const{token:t,target:i}=e;this.add(t,i)}add(e,t){pi.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(yi.getOrCreate(t).get(e)))}remove(e,t){pi.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},(0,h.__decorate)([o.observable],yi.prototype,"children",void 0);const xi=Object.freeze({create:function(e){return gi.from(e)},notifyConnection:e=>!(!e.isConnected||!yi.existsFor(e))&&(yi.getOrCreate(e).bind(),!0),notifyDisconnection:e=>!(e.isConnected||!yi.existsFor(e))&&(yi.getOrCreate(e).unbind(),!0),registerRoot(e=si){hi.registerRoot(e)},unregisterRoot(e=si){hi.unregisterRoot(e)}}),$i=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),wi=new Map,Ci=new Map;let ki=null;const Ti=y.createInterface((e=>e.cachedCallback((e=>(null===ki&&(ki=new _i(null,e)),ki))))),Si=Object.freeze({tagFor:e=>Ci.get(e),responsibleFor(e){const t=e.$$designSystem$$;if(t)return t;return y.findResponsibleContainer(e).get(Ti)},getOrCreate(e){if(!e)return null===ki&&(ki=y.getOrCreateDOMContainer().get(Ti)),ki;const t=e.$$designSystem$$;if(t)return t;const i=y.getOrCreateDOMContainer(e);if(i.has(Ti,!1))return i.get(Ti);{const t=new _i(e,i);return i.register(X.instance(Ti,t)),t}}});class _i{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>$i.definitionCallbackOnly,null!==e&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const t=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,r={elementPrefix:this.prefix,tryDefineElement(e,r,n){const a=function(e,t,i){return"string"==typeof e?{name:e,type:t,callback:i}:e}(e,r,n),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=wi.get(u),g=!0;for(;p;){const e=o(u,d,p);switch(e){case $i.ignoreDuplicate:return;case $i.definitionCallbackOnly:g=!1,p=void 0;break;default:u=e,p=wi.get(u)}}g&&((Ci.has(d)||d===ae)&&(d=class extends d{}),wi.set(u,d),Ci.set(d,u),h&&Ci.set(h,u)),i.push(new Ii(t,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&xi.registerRoot(this.designTokenRoot)),t.registerWithContext(r,...e);for(const e of i)e.callback(e),e.willDefine&&null!==e.definition&&e.definition.define();return this}}class Ii{constructor(e,t,i,o,s,r){this.container=e,this.name=t,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=r,this.definition=null}definePresentation(e){re.define(this.name,e,this.container)}defineElement(e){this.definition=new o.FASTElementDefinition(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return Si.tagFor(e)}}const Fi=(e,t)=>o.html`
|
|
5402
|
+
`;function qt(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}function Ut(e,t){let i=t;for(;null!==i;){if(i===e)return!0;i=qt(i)}return!1}const Wt=document.createElement("div");class Kt{setProperty(e,t){o.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){o.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class Xt extends Kt{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class Yt extends Kt{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class Qt{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),o.Observable.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),o.DOM.queueUpdate((()=>{null!==this.target&&this.target.setProperty(e,t)}))}removeProperty(e){this.store.delete(e),o.DOM.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(e)}))}handleChange(e,t){const{sheet:i}=this.style;if(i){const e=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[e].style}else this.target=null}}(0,h.__decorate)([o.observable],Qt.prototype,"target",void 0);class Zt{constructor(e){this.target=e.style}setProperty(e,t){o.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){o.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class Jt{setProperty(e,t){Jt.properties[e]=t;for(const i of Jt.roots.values())ii.getOrCreate(Jt.normalizeRoot(i)).setProperty(e,t)}removeProperty(e){delete Jt.properties[e];for(const t of Jt.roots.values())ii.getOrCreate(Jt.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=Jt;if(!t.has(e)){t.add(e);const i=ii.getOrCreate(this.normalizeRoot(e));for(const e in Jt.properties)i.setProperty(e,Jt.properties[e])}}static unregisterRoot(e){const{roots:t}=Jt;if(t.has(e)){t.delete(e);const i=ii.getOrCreate(Jt.normalizeRoot(e));for(const e in Jt.properties)i.removeProperty(e)}}static normalizeRoot(e){return e===Wt?document:e}}Jt.roots=new Set,Jt.properties={};const ei=new WeakMap,ti=o.DOM.supportsAdoptedStyleSheets?class extends Kt{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(o.ElementStyles.create([t]))}}:Qt,ii=Object.freeze({getOrCreate(e){if(ei.has(e))return ei.get(e);let t;return e===Wt?t=new Jt:e instanceof Document?t=o.DOM.supportsAdoptedStyleSheets?new Xt:new Yt:t=e instanceof o.FASTElement?new ti(e):new Zt(e),ei.set(e,t),t}});class oi extends o.CSSDirective{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,null!==e.cssCustomPropertyName&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=oi.uniqueId(),oi.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new oi({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return"string"==typeof e.cssCustomProperty}static isDerivedDesignTokenValue(e){return"function"==typeof e}static getTokenById(e){return oi.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=li.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof oi&&(t=this.alias(t)),li.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),li.existsFor(e)&&li.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(Wt,e),this}subscribe(e,t){const i=this.getOrCreateSubscriberSet(t);t&&!li.existsFor(t)&&li.getOrCreate(t),i.has(e)||i.add(e)}unsubscribe(e,t){const i=this.subscribers.get(t||this);i&&i.has(e)&&i.delete(e)}notify(e){const t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((e=>e.handleChange(t))),this.subscribers.has(e)&&this.subscribers.get(e).forEach((e=>e.handleChange(t)))}alias(e){return t=>e.getValueFor(t)}}oi.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),oi.tokensById=new Map;class si{constructor(e,t,i){this.source=e,this.token=t,this.node=i,this.dependencies=new Set,this.observer=o.Observable.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,o.defaultExecutionContext))}}class ri{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),o.Observable.getNotifier(this).notify(e.id))}get(e){return o.Observable.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const ni=new WeakMap,ai=new WeakMap;class li{constructor(e){this.target=e,this.store=new ri,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const i=oi.getTokenById(t);if(i&&(i.notify(this.target),oi.isCSSDesignToken(i))){const t=this.parent,o=this.isReflecting(i);if(t){const s=t.get(i),r=e.get(i);s===r||o?s===r&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},ni.set(e,this),o.Observable.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof o.FASTElement?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return ni.get(e)||new li(e)}static existsFor(e){return ni.has(e)}static findParent(e){if(Wt!==e.target){let t=qt(e.target);for(;null!==t;){if(ni.has(t))return ni.get(t);t=qt(t)}return li.getOrCreate(Wt)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e))return i;i=i.parent?i.parent:i.target!==Wt?li.getOrCreate(Wt):null}while(null!==i);return null}get parent(){return ai.get(this)||null}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(void 0!==t)return t;const i=this.getRaw(e);return void 0!==i?(this.hydrate(e,i),this.get(e)):void 0}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):null===(t=li.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){oi.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),oi.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){const e=li.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){if(this.parent){ai.get(this).removeChild(this)}}appendChild(e){e.parent&&ai.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));ai.set(e,this),this.children.push(e),t.forEach((t=>e.appendChild(t))),o.Observable.getNotifier(this.store).subscribe(e);for(const[t,i]of this.store.all())e.hydrate(t,this.bindingObservers.has(t)?this.getRaw(t):i)}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),o.Observable.getNotifier(this.store).unsubscribe(e),e.parent===this&&ai.delete(e)}contains(e){return Ut(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),li.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),li.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const i=oi.getTokenById(t);i&&this.hydrate(i,this.getRaw(i))}hydrate(e,t){if(!this.has(e)){const i=this.bindingObservers.get(e);oi.isDerivedDesignTokenValue(t)?i?i.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(i&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){const i=new si(t,e,this);return this.bindingObservers.set(e,i),i}tearDownBindingObserver(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}li.cssCustomPropertyReflector=new class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){const{token:t,target:i}=e;this.add(t,i)}add(e,t){ii.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(li.getOrCreate(t).get(e)))}remove(e,t){ii.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},(0,h.__decorate)([o.observable],li.prototype,"children",void 0);const ci=Object.freeze({create:function(e){return oi.from(e)},notifyConnection:e=>!(!e.isConnected||!li.existsFor(e))&&(li.getOrCreate(e).bind(),!0),notifyDisconnection:e=>!(e.isConnected||!li.existsFor(e))&&(li.getOrCreate(e).unbind(),!0),registerRoot(e=Wt){Jt.registerRoot(e)},unregisterRoot(e=Wt){Jt.unregisterRoot(e)}}),hi=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),di=new Map,ui=new Map;let pi=null;const gi=y.createInterface((e=>e.cachedCallback((e=>(null===pi&&(pi=new bi(null,e)),pi))))),mi=Object.freeze({tagFor:e=>ui.get(e),responsibleFor(e){const t=e.$$designSystem$$;if(t)return t;return y.findResponsibleContainer(e).get(gi)},getOrCreate(e){if(!e)return null===pi&&(pi=y.getOrCreateDOMContainer().get(gi)),pi;const t=e.$$designSystem$$;if(t)return t;const i=y.getOrCreateDOMContainer(e);if(i.has(gi,!1))return i.get(gi);{const t=new bi(e,i);return i.register(X.instance(gi,t)),t}}});class bi{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>hi.definitionCallbackOnly,null!==e&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const t=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,r={elementPrefix:this.prefix,tryDefineElement(e,r,n){const a=function(e,t,i){return"string"==typeof e?{name:e,type:t,callback:i}:e}(e,r,n),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=di.get(u),g=!0;for(;p;){const e=o(u,d,p);switch(e){case hi.ignoreDuplicate:return;case hi.definitionCallbackOnly:g=!1,p=void 0;break;default:u=e,p=di.get(u)}}g&&((ui.has(d)||d===ae)&&(d=class extends d{}),di.set(u,d),ui.set(d,u),h&&ui.set(h,u)),i.push(new fi(t,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&ci.registerRoot(this.designTokenRoot)),t.registerWithContext(r,...e);for(const e of i)e.callback(e),e.willDefine&&null!==e.definition&&e.definition.define();return this}}class fi{constructor(e,t,i,o,s,r){this.container=e,this.name=t,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=r,this.definition=null}definePresentation(e){re.define(this.name,e,this.container)}defineElement(e){this.definition=new o.FASTElementDefinition(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return mi.tagFor(e)}}const vi=(e,t)=>o.html`
|
|
5403
5403
|
<div class="positioning-region" part="positioning-region">
|
|
5404
5404
|
${(0,o.when)((e=>e.modal),o.html`
|
|
5405
5405
|
<div
|
|
@@ -5423,7 +5423,7 @@
|
|
|
5423
5423
|
<slot></slot>
|
|
5424
5424
|
</div>
|
|
5425
5425
|
</div>
|
|
5426
|
-
`;var
|
|
5426
|
+
`;var yi=i(61642);class xi extends ae{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden)switch(e.key){case pe.CX:this.dismiss(),e.preventDefault();break;case pe.oM:this.handleTabKeyDown(e)}},this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden)return;const t=this.getTabQueueBounds();return 0!==t.length?1===t.length?(t[0].focus(),void e.preventDefault()):void(e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||e.target!==t[t.length-1]||(t[0].focus(),e.preventDefault())):void 0},this.getTabQueueBounds=()=>xi.reduceTabbableItems([],this),this.focusFirstElement=()=>{const e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=e=>{const t=void 0===e?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),o.DOM.queueUpdate((()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()}))):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=o.Observable.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(e,t){if("hidden"===t)this.updateTrapFocus()}static reduceTabbableItems(e,t){return"-1"===t.getAttribute("tabindex")?e:(0,yi.Wq)(t)||xi.isFocusableFastElement(t)&&xi.hasTabbableShadow(t)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(xi.reduceTabbableItems,[])):e}static isFocusableFastElement(e){var t,i;return!!(null===(i=null===(t=e.$fastController)||void 0===t?void 0:t.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(e){var t,i;return Array.from(null!==(i=null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelectorAll("*"))&&void 0!==i?i:[]).some((e=>(0,yi.Wq)(e)))}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],xi.prototype,"modal",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],xi.prototype,"hidden",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"trap-focus",mode:"boolean"})],xi.prototype,"trapFocus",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-describedby"})],xi.prototype,"ariaDescribedby",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-labelledby"})],xi.prototype,"ariaLabelledby",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-label"})],xi.prototype,"ariaLabel",void 0);const $i=new MutationObserver((e=>{for(const t of e)wi.getOrCreateFor(t.target).notify(t.attributeName)}));class wi extends o.SubscriberSet{constructor(e){super(e),this.watchedAttributes=new Set,wi.subscriberCache.set(e,this)}subscribe(e){super.subscribe(e),this.watchedAttributes.has(e.attributes)||(this.watchedAttributes.add(e.attributes),this.observe())}unsubscribe(e){super.unsubscribe(e),this.watchedAttributes.has(e.attributes)&&(this.watchedAttributes.delete(e.attributes),this.observe())}static getOrCreateFor(e){return this.subscriberCache.get(e)||new wi(e)}observe(){const e=[];for(const t of this.watchedAttributes.values())for(let i=0;i<t.length;i++)e.push(t[i]);$i.observe(this.source,{attributeFilter:e})}}wi.subscriberCache=new WeakMap;class Ci{constructor(e,t){this.target=e,this.attributes=Object.freeze(t)}bind(e){if(wi.getOrCreateFor(e).subscribe(this),e.hasAttributes())for(let t=0;t<e.attributes.length;t++)this.handleChange(e,e.attributes[t].name)}unbind(e){wi.getOrCreateFor(e).unsubscribe(this)}handleChange(e,t){this.attributes.includes(t)&&o.DOM.setAttribute(this.target,t,e.getAttribute(t))}}function ki(...e){return new o.AttachedBehaviorHTMLDirective("fast-reflect-attr",Ci,e)}const Ti=(e,t)=>o.html`
|
|
5427
5427
|
<details class="disclosure" ${(0,o.ref)("details")}>
|
|
5428
5428
|
<summary
|
|
5429
5429
|
class="invoker"
|
|
@@ -5437,9 +5437,9 @@
|
|
|
5437
5437
|
</summary>
|
|
5438
5438
|
<div id="disclosure-content"><slot></slot></div>
|
|
5439
5439
|
</details>
|
|
5440
|
-
`;class
|
|
5440
|
+
`;class Si extends ae{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener("toggle",this.onToggle),this.expanded&&this.show()}onToggle(){this.expanded=this.details.open,this.$emit("toggle")}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],Si.prototype,"expanded",void 0),(0,h.__decorate)([o.attr],Si.prototype,"title",void 0);const _i=(e,t)=>o.html`
|
|
5441
5441
|
<template role="${e=>e.role}" aria-orientation="${e=>e.orientation}"></template>
|
|
5442
|
-
`;var
|
|
5442
|
+
`;var Ii=i(75511);const Fi={separator:"separator",presentation:"presentation"};class Oi extends ae{constructor(){super(...arguments),this.role=Fi.separator,this.orientation=Ii.i.horizontal}}(0,h.__decorate)([o.attr],Oi.prototype,"role",void 0),(0,h.__decorate)([o.attr],Oi.prototype,"orientation",void 0);const Hi={next:"next",previous:"previous"},Di=(e,t)=>o.html`
|
|
5443
5443
|
<template
|
|
5444
5444
|
role="button"
|
|
5445
5445
|
aria-disabled="${e=>!!e.disabled||void 0}"
|
|
@@ -5447,14 +5447,14 @@
|
|
|
5447
5447
|
class="${e=>e.direction} ${e=>e.disabled?"disabled":""}"
|
|
5448
5448
|
@keyup="${(e,t)=>e.keyupHandler(t.event)}"
|
|
5449
5449
|
>
|
|
5450
|
-
${(0,o.when)((e=>e.direction===
|
|
5450
|
+
${(0,o.when)((e=>e.direction===Hi.next),o.html`
|
|
5451
5451
|
<span part="next" class="next">
|
|
5452
5452
|
<slot name="next">
|
|
5453
5453
|
${t.next||""}
|
|
5454
5454
|
</slot>
|
|
5455
5455
|
</span>
|
|
5456
5456
|
`)}
|
|
5457
|
-
${(0,o.when)((e=>e.direction===
|
|
5457
|
+
${(0,o.when)((e=>e.direction===Hi.previous),o.html`
|
|
5458
5458
|
<span part="previous" class="previous">
|
|
5459
5459
|
<slot name="previous">
|
|
5460
5460
|
${t.previous||""}
|
|
@@ -5462,7 +5462,7 @@
|
|
|
5462
5462
|
</span>
|
|
5463
5463
|
`)}
|
|
5464
5464
|
</template>
|
|
5465
|
-
`;class
|
|
5465
|
+
`;class Ri extends ae{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Hi.next}keyupHandler(e){if(!this.hiddenFromAT){const t=e.key;"Enter"!==t&&"Space"!==t||this.$emit("click",e),"Escape"===t&&this.blur()}}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],Ri.prototype,"disabled",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-hidden",converter:o.booleanConverter})],Ri.prototype,"hiddenFromAT",void 0),(0,h.__decorate)([o.attr],Ri.prototype,"direction",void 0);const Ei=(e,t)=>o.html`
|
|
5466
5466
|
<template
|
|
5467
5467
|
aria-checked="${e=>e.ariaChecked}"
|
|
5468
5468
|
aria-disabled="${e=>e.ariaDisabled}"
|
|
@@ -5478,7 +5478,7 @@
|
|
|
5478
5478
|
</span>
|
|
5479
5479
|
${r(e,t)}
|
|
5480
5480
|
</template>
|
|
5481
|
-
`;class
|
|
5481
|
+
`;class Li extends Rt{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var e;return null===(e=this.options)||void 0===e?void 0:e.filter((e=>e.checked))}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(e,t){var i,o;this.ariaActiveDescendant=null!==(o=null===(i=this.options[t])||void 0===i?void 0:i.id)&&void 0!==o?o:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const e=this.activeOption;e&&(e.checked=!0)}checkFirstOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach(((e,t)=>{e.checked=(0,ge.Z2)(t,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((e,t)=>{e.checked=(0,ge.Z2)(t,this.rangeStartIndex,this.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((e,t)=>{e.checked=(0,ge.Z2)(t,this.rangeStartIndex,this.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach(((e,t)=>{e.checked=(0,ge.Z2)(t,this.activeIndex,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(e){var t;if(!this.multiple)return super.clickHandler(e);const i=null===(t=e.target)||void 0===t?void 0:t.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(e){if(!this.multiple)return super.focusinHandler(e);this.shouldSkipFocus||e.target!==e.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(e){this.multiple&&this.uncheckAllOptions()}keydownHandler(e){if(!this.multiple)return super.keydownHandler(e);if(this.disabled)return!0;const{key:t,shiftKey:i}=e;switch(this.shouldSkipFocus=!1,t){case pe.tU:return void this.checkFirstOption(i);case pe.iF:return void this.checkNextOption(i);case pe.SB:return void this.checkPreviousOption(i);case pe.Kh:return void this.checkLastOption(i);case pe.oM:return this.focusAndScrollOptionIntoView(),!0;case pe.CX:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case pe.BI:if(e.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===t.length&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return super.mousedownHandler(e)}multipleChanged(e,t){var i;this.ariaMultiSelectable=t?"true":null,null===(i=this.options)||void 0===i||i.forEach((e=>{e.checked=!t&&void 0})),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((e=>e.selected)),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(e,t){var i;const s=Math.max(0,parseInt(null!==(i=null==t?void 0:t.toFixed())&&void 0!==i?i:"",10));s!==t&&o.DOM.queueUpdate((()=>{this.size=s}))}toggleSelectedForAllCheckedOptions(){const e=this.checkedOptions.filter((e=>!e.disabled)),t=!e.every((e=>e.selected));e.forEach((e=>e.selected=t)),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(this.multiple){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches(),t=this.options.indexOf(e[0]);t>-1&&(this.activeIndex=t,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(e,t)}uncheckAllOptions(e=!1){this.options.forEach((e=>e.checked=!this.multiple&&void 0)),e||(this.rangeStartIndex=-1)}}(0,h.__decorate)([o.observable],Li.prototype,"activeIndex",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],Li.prototype,"multiple",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],Li.prototype,"size",void 0);const Ai=(e,t)=>o.html`
|
|
5482
5482
|
<template
|
|
5483
5483
|
aria-activedescendant="${e=>e.ariaActiveDescendant}"
|
|
5484
5484
|
aria-multiselectable="${e=>e.ariaMultiSelectable}"
|
|
@@ -5491,24 +5491,24 @@
|
|
|
5491
5491
|
@mousedown="${(e,t)=>e.mousedownHandler(t.event)}"
|
|
5492
5492
|
>
|
|
5493
5493
|
<slot
|
|
5494
|
-
${(0,o.slotted)({filter:
|
|
5494
|
+
${(0,o.slotted)({filter:Li.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
|
|
5495
5495
|
></slot>
|
|
5496
5496
|
</template>
|
|
5497
|
-
`;class
|
|
5497
|
+
`;class Vi extends ae{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit("optionsupdated",{bubbles:!1})}addSlottedListItems(e){void 0!==e&&e.forEach((e=>{1===e.nodeType&&"listitem"===e.getAttribute("role")&&(e.id=e.id||(0,St.EL)("option-"),this.optionElements.push(e))}))}}(0,h.__decorate)([o.observable],Vi.prototype,"menuElements",void 0),(0,h.__decorate)([o.observable],Vi.prototype,"headerElements",void 0),(0,h.__decorate)([o.observable],Vi.prototype,"footerElements",void 0),(0,h.__decorate)([o.observable],Vi.prototype,"suggestionsAvailableText",void 0);const Bi=o.html`
|
|
5498
5498
|
<template>
|
|
5499
5499
|
${e=>e.value}
|
|
5500
5500
|
</template>
|
|
5501
|
-
`;class
|
|
5501
|
+
`;class Pi extends ae{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(e){return e.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var e,t;this.disconnectView(),this.customView=null!==(t=null===(e=this.contentsTemplate)||void 0===e?void 0:e.render(this,this))&&void 0!==t?t:Bi.render(this,this)}disconnectView(){var e;null===(e=this.customView)||void 0===e||e.dispose(),this.customView=void 0}}(0,h.__decorate)([(0,o.attr)({attribute:"value"})],Pi.prototype,"value",void 0),(0,h.__decorate)([o.observable],Pi.prototype,"contentsTemplate",void 0);class Mi extends ae{}const zi=o.html`
|
|
5502
5502
|
<template>
|
|
5503
5503
|
${e=>e.value}
|
|
5504
5504
|
</template>
|
|
5505
|
-
`;class
|
|
5505
|
+
`;class Ni extends ae{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){this.disconnectView(),super.disconnectedCallback()}handleKeyDown(e){return!e.defaultPrevented&&(e.key!==pe.kL||(this.handleInvoke(),!1))}handleClick(e){return e.defaultPrevented||this.handleInvoke(),!1}handleInvoke(){this.$emit("pickeriteminvoked")}updateView(){var e,t;this.disconnectView(),this.customView=null!==(t=null===(e=this.contentsTemplate)||void 0===e?void 0:e.render(this,this))&&void 0!==t?t:zi.render(this,this)}disconnectView(){var e;null===(e=this.customView)||void 0===e||e.dispose(),this.customView=void 0}}(0,h.__decorate)([(0,o.attr)({attribute:"value"})],Ni.prototype,"value",void 0),(0,h.__decorate)([o.observable],Ni.prototype,"contentsTemplate",void 0);const ji=(e,t)=>{const i=e.tagFor(Oe),s=e.tagFor(Vi),r=e.tagFor(Mi),n=e.tagFor(Mi),a=function(e){const t=e.tagFor(Ni);return o.html`
|
|
5506
5506
|
<${t}
|
|
5507
5507
|
value="${e=>e}"
|
|
5508
5508
|
:contentsTemplate="${(e,t)=>t.parent.listItemContentsTemplate}"
|
|
5509
5509
|
>
|
|
5510
5510
|
</${t}>
|
|
5511
|
-
`}(e),l=function(e){const t=e.tagFor(
|
|
5511
|
+
`}(e),l=function(e){const t=e.tagFor(Pi);return o.html`
|
|
5512
5512
|
<${t}
|
|
5513
5513
|
value="${e=>e}"
|
|
5514
5514
|
:contentsTemplate="${(e,t)=>t.parent.menuOptionContentsTemplate}"
|
|
@@ -5572,7 +5572,7 @@
|
|
|
5572
5572
|
</${i}>
|
|
5573
5573
|
`)}
|
|
5574
5574
|
</template>
|
|
5575
|
-
`};class
|
|
5575
|
+
`};class Gi extends ae{}class qi extends(Qe(Gi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Ui=o.html`
|
|
5576
5576
|
<input
|
|
5577
5577
|
slot="input-region"
|
|
5578
5578
|
role="combobox"
|
|
@@ -5585,7 +5585,7 @@
|
|
|
5585
5585
|
placeholder="${e=>e.placeholder}"
|
|
5586
5586
|
${(0,o.ref)("inputElement")}
|
|
5587
5587
|
></input>
|
|
5588
|
-
`;class so extends io{constructor(){super(...arguments),this.selection="",this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText="No suggestions available",this.suggestionsAvailableText="Suggestions available",this.loadingText="Loading suggestions",this.menuPlacement="bottom-fill",this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=e=>{this.query=this.inputElement.value},this.handleInputClick=e=>{e.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{this.flyoutOpen&&(null!==this.region&&void 0!==this.region?this.region.anchorElement=this.inputElement:o.DOM.queueUpdate(this.setRegionProps))},this.configLookup={top:je,bottom:Ge,tallest:qe,"top-fill":Ue,"bottom-fill":We,"tallest-fill":Ke}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map((e=>e.trim())).filter((e=>""!==e))}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&o.DOM.queueUpdate((()=>{this.setFocusedOption(0)}))}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit("querychange",{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=0===this.filteredOptionsList.length&&0===this.menuElement.querySelectorAll('[role="listitem"]').length,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(o.DOM.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&o.DOM.queueUpdate((()=>{this.setFocusedOption(0)}))}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(""),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=oo.render(this,this.listElement);const e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find((t=>t.tagName===e)),void 0===this.menuElement&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),""===this.menuElement.id&&(this.menuElement.id=(0,Vt.EL)("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),o.DOM.queueUpdate((()=>this.initialize()))}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener("input",this.handleTextInput),this.inputElement.removeEventListener("click",this.handleInputClick),null!==this.inputElementView&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new o.RepeatDirective((e=>e.selectedItems),(e=>e.activeListItemTemplate),{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener("input",this.handleTextInput),this.inputElement.addEventListener("click",this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new o.RepeatDirective((e=>e.filteredOptionsList),(e=>e.activeMenuOptionTemplate),{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen!==e){if(e&&document.activeElement===this.inputElement)return this.flyoutOpen=e,void o.DOM.queueUpdate((()=>{void 0!==this.menuElement?this.setFocusedOption(0):this.disableMenu()}));this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(e){e.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(e){if(e.defaultPrevented)return!1;switch(e.key){case ge:if(this.flyoutOpen){const e=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(e)}else this.toggleFlyout(!0);return!1;case fe:if(this.flyoutOpen){const e=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(e)}else this.toggleFlyout(!0);return!1;case ye:return this.toggleFlyout(!1),!1;case ve:return-1!==this.menuFocusIndex&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case be:return document.activeElement===this.inputElement||(this.incrementFocusedItem(1),!1);case me:return 0!==this.inputElement.selectionStart||(this.incrementFocusedItem(-1),!1);case"Delete":case"Backspace":{if(null===document.activeElement)return!0;if(document.activeElement===this.inputElement)return 0!==this.inputElement.selectionStart||(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1);const e=Array.from(this.listElement.children),t=e.indexOf(document.activeElement);return!(t>-1)||(this.selection=this.selectedItems.splice(t,1).toString(),o.DOM.queueUpdate((()=>{e[Math.min(e.length,t)].focus()})),!1)}}return this.toggleFlyout(!0),!0}handleFocusIn(e){return!1}handleFocusOut(e){return void 0!==this.menuElement&&this.menuElement.contains(e.relatedTarget)||this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=""===this.selection?[]:this.selection.split(","),this.updateFilteredOptions(),o.DOM.queueUpdate((()=>{this.checkMaxItems()})),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(e){o.DOM.queueUpdate((()=>{this.setFocusedOption(0),this.$emit("menuloaded",{bubbles:!1})}))}checkMaxItems(){if(void 0!==this.inputElement)if(void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){const e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));e[e.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(e){if(e.defaultPrevented)return!1;if(e.target instanceof Ji){const t=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(e.target);if(-1!==t){const e=this.selectedItems.slice();e.splice(t,1),this.selection=e.toString(),o.DOM.queueUpdate((()=>this.incrementFocusedItem(0)))}return!1}return!0}handleOptionInvoke(e){return!e.defaultPrevented&&(!(e.target instanceof Yi)||(void 0!==e.target.value&&(this.selection=`${this.selection}${""===this.selection?"":","}${e.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1))}incrementFocusedItem(e){if(0===this.selectedItems.length)return void this.inputElement.focus();const t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(null!==document.activeElement){let i=t.indexOf(document.activeElement);-1===i&&(i=t.length);const o=Math.min(t.length,Math.max(0,i+e));o===t.length?void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected?t[o-1].focus():this.inputElement.focus():t[o].focus()}}disableMenu(){var e,t,i;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,null===(e=this.inputElement)||void 0===e||e.removeAttribute("aria-activedescendant"),null===(t=this.inputElement)||void 0===t||t.removeAttribute("aria-owns"),null===(i=this.inputElement)||void 0===i||i.removeAttribute("aria-expanded")}setFocusedOption(e){if(!this.flyoutOpen||-1===e||this.showNoOptions||this.showLoading)return void this.disableMenu();if(0===this.menuElement.optionElements.length)return;this.menuElement.optionElements.forEach((e=>{e.setAttribute("aria-selected","false")})),this.menuFocusIndex=e,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute("aria-owns",this.menuId),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);const t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){var e;this.activeListItemTemplate=null!==(e=this.listItemTemplate)&&void 0!==e?e:this.defaultListItemTemplate}updateOptionTemplate(){var e;this.activeMenuOptionTemplate=null!==(e=this.menuOptionTemplate)&&void 0!==e?e:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter((e=>-1===this.selectedItems.indexOf(e)))),this.filterQuery&&""!==this.query&&void 0!==this.query&&(this.filteredOptionsList=this.filteredOptionsList.filter((e=>-1!==e.indexOf(this.query))))}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];null===e&&(e=We),this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}}(0,h.__decorate)([(0,o.attr)({attribute:"selection"})],so.prototype,"selection",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"options"})],so.prototype,"options",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"filter-selected",mode:"boolean"})],so.prototype,"filterSelected",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"filter-query",mode:"boolean"})],so.prototype,"filterQuery",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"max-selected"})],so.prototype,"maxSelected",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"no-suggestions-text"})],so.prototype,"noSuggestionsText",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"suggestions-available-text"})],so.prototype,"suggestionsAvailableText",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"loading-text"})],so.prototype,"loadingText",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"label"})],so.prototype,"label",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"labelledby"})],so.prototype,"labelledBy",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"placeholder"})],so.prototype,"placeholder",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"menu-placement"})],so.prototype,"menuPlacement",void 0),(0,h.__decorate)([o.observable],so.prototype,"showLoading",void 0),(0,h.__decorate)([o.observable],so.prototype,"listItemTemplate",void 0),(0,h.__decorate)([o.observable],so.prototype,"defaultListItemTemplate",void 0),(0,h.__decorate)([o.observable],so.prototype,"activeListItemTemplate",void 0),(0,h.__decorate)([o.observable],so.prototype,"menuOptionTemplate",void 0),(0,h.__decorate)([o.observable],so.prototype,"defaultMenuOptionTemplate",void 0),(0,h.__decorate)([o.observable],so.prototype,"activeMenuOptionTemplate",void 0),(0,h.__decorate)([o.observable],so.prototype,"listItemContentsTemplate",void 0),(0,h.__decorate)([o.observable],so.prototype,"menuOptionContentsTemplate",void 0),(0,h.__decorate)([o.observable],so.prototype,"optionsList",void 0),(0,h.__decorate)([o.observable],so.prototype,"query",void 0),(0,h.__decorate)([o.observable],so.prototype,"filteredOptionsList",void 0),(0,h.__decorate)([o.observable],so.prototype,"flyoutOpen",void 0),(0,h.__decorate)([o.observable],so.prototype,"menuId",void 0),(0,h.__decorate)([o.observable],so.prototype,"selectedListTag",void 0),(0,h.__decorate)([o.observable],so.prototype,"menuTag",void 0),(0,h.__decorate)([o.observable],so.prototype,"menuFocusIndex",void 0),(0,h.__decorate)([o.observable],so.prototype,"menuFocusOptionId",void 0),(0,h.__decorate)([o.observable],so.prototype,"showNoOptions",void 0),(0,h.__decorate)([o.observable],so.prototype,"menuConfig",void 0),(0,h.__decorate)([o.observable],so.prototype,"selectedItems",void 0);const ro=(e,t)=>o.html`
|
|
5588
|
+
`;class Wi extends qi{constructor(){super(...arguments),this.selection="",this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText="No suggestions available",this.suggestionsAvailableText="Suggestions available",this.loadingText="Loading suggestions",this.menuPlacement="bottom-fill",this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=e=>{this.query=this.inputElement.value},this.handleInputClick=e=>{e.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{this.flyoutOpen&&(null!==this.region&&void 0!==this.region?this.region.anchorElement=this.inputElement:o.DOM.queueUpdate(this.setRegionProps))},this.configLookup={top:De,bottom:Re,tallest:Ee,"top-fill":Le,"bottom-fill":Ae,"tallest-fill":Ve}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map((e=>e.trim())).filter((e=>""!==e))}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&o.DOM.queueUpdate((()=>{this.setFocusedOption(0)}))}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit("querychange",{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=0===this.filteredOptionsList.length&&0===this.menuElement.querySelectorAll('[role="listitem"]').length,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(o.DOM.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&o.DOM.queueUpdate((()=>{this.setFocusedOption(0)}))}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(""),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=Ui.render(this,this.listElement);const e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find((t=>t.tagName===e)),void 0===this.menuElement&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),""===this.menuElement.id&&(this.menuElement.id=(0,St.EL)("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),o.DOM.queueUpdate((()=>this.initialize()))}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener("input",this.handleTextInput),this.inputElement.removeEventListener("click",this.handleInputClick),null!==this.inputElementView&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new o.RepeatDirective((e=>e.selectedItems),(e=>e.activeListItemTemplate),{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener("input",this.handleTextInput),this.inputElement.addEventListener("click",this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new o.RepeatDirective((e=>e.filteredOptionsList),(e=>e.activeMenuOptionTemplate),{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen!==e){if(e&&document.activeElement===this.inputElement)return this.flyoutOpen=e,void o.DOM.queueUpdate((()=>{void 0!==this.menuElement?this.setFocusedOption(0):this.disableMenu()}));this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(e){e.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(e){if(e.defaultPrevented)return!1;switch(e.key){case pe.iF:if(this.flyoutOpen){const e=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(e)}else this.toggleFlyout(!0);return!1;case pe.SB:if(this.flyoutOpen){const e=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(e)}else this.toggleFlyout(!0);return!1;case pe.CX:return this.toggleFlyout(!1),!1;case pe.kL:return-1!==this.menuFocusIndex&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case pe.mr:return document.activeElement===this.inputElement||(this.incrementFocusedItem(1),!1);case pe.BE:return 0!==this.inputElement.selectionStart||(this.incrementFocusedItem(-1),!1);case pe.O4:case pe.bI:{if(null===document.activeElement)return!0;if(document.activeElement===this.inputElement)return 0!==this.inputElement.selectionStart||(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1);const e=Array.from(this.listElement.children),t=e.indexOf(document.activeElement);return!(t>-1)||(this.selection=this.selectedItems.splice(t,1).toString(),o.DOM.queueUpdate((()=>{e[Math.min(e.length,t)].focus()})),!1)}}return this.toggleFlyout(!0),!0}handleFocusIn(e){return!1}handleFocusOut(e){return void 0!==this.menuElement&&this.menuElement.contains(e.relatedTarget)||this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=""===this.selection?[]:this.selection.split(","),this.updateFilteredOptions(),o.DOM.queueUpdate((()=>{this.checkMaxItems()})),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(e){o.DOM.queueUpdate((()=>{this.setFocusedOption(0),this.$emit("menuloaded",{bubbles:!1})}))}checkMaxItems(){if(void 0!==this.inputElement)if(void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){const e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));e[e.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(e){if(e.defaultPrevented)return!1;if(e.target instanceof Ni){const t=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(e.target);if(-1!==t){const e=this.selectedItems.slice();e.splice(t,1),this.selection=e.toString(),o.DOM.queueUpdate((()=>this.incrementFocusedItem(0)))}return!1}return!0}handleOptionInvoke(e){return!e.defaultPrevented&&(!(e.target instanceof Pi)||(void 0!==e.target.value&&(this.selection=`${this.selection}${""===this.selection?"":","}${e.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1))}incrementFocusedItem(e){if(0===this.selectedItems.length)return void this.inputElement.focus();const t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(null!==document.activeElement){let i=t.indexOf(document.activeElement);-1===i&&(i=t.length);const o=Math.min(t.length,Math.max(0,i+e));o===t.length?void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected?t[o-1].focus():this.inputElement.focus():t[o].focus()}}disableMenu(){var e,t,i;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,null===(e=this.inputElement)||void 0===e||e.removeAttribute("aria-activedescendant"),null===(t=this.inputElement)||void 0===t||t.removeAttribute("aria-owns"),null===(i=this.inputElement)||void 0===i||i.removeAttribute("aria-expanded")}setFocusedOption(e){if(!this.flyoutOpen||-1===e||this.showNoOptions||this.showLoading)return void this.disableMenu();if(0===this.menuElement.optionElements.length)return;this.menuElement.optionElements.forEach((e=>{e.setAttribute("aria-selected","false")})),this.menuFocusIndex=e,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute("aria-owns",this.menuId),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);const t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){var e;this.activeListItemTemplate=null!==(e=this.listItemTemplate)&&void 0!==e?e:this.defaultListItemTemplate}updateOptionTemplate(){var e;this.activeMenuOptionTemplate=null!==(e=this.menuOptionTemplate)&&void 0!==e?e:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter((e=>-1===this.selectedItems.indexOf(e)))),this.filterQuery&&""!==this.query&&void 0!==this.query&&(this.filteredOptionsList=this.filteredOptionsList.filter((e=>-1!==e.indexOf(this.query))))}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];null===e&&(e=Ae),this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}}(0,h.__decorate)([(0,o.attr)({attribute:"selection"})],Wi.prototype,"selection",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"options"})],Wi.prototype,"options",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"filter-selected",mode:"boolean"})],Wi.prototype,"filterSelected",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"filter-query",mode:"boolean"})],Wi.prototype,"filterQuery",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"max-selected"})],Wi.prototype,"maxSelected",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"no-suggestions-text"})],Wi.prototype,"noSuggestionsText",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"suggestions-available-text"})],Wi.prototype,"suggestionsAvailableText",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"loading-text"})],Wi.prototype,"loadingText",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"label"})],Wi.prototype,"label",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"labelledby"})],Wi.prototype,"labelledBy",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"placeholder"})],Wi.prototype,"placeholder",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"menu-placement"})],Wi.prototype,"menuPlacement",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"showLoading",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"listItemTemplate",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"defaultListItemTemplate",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"activeListItemTemplate",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"menuOptionTemplate",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"defaultMenuOptionTemplate",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"activeMenuOptionTemplate",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"listItemContentsTemplate",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"menuOptionContentsTemplate",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"optionsList",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"query",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"filteredOptionsList",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"flyoutOpen",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"menuId",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"selectedListTag",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"menuTag",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"menuFocusIndex",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"menuFocusOptionId",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"showNoOptions",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"menuConfig",void 0),(0,h.__decorate)([o.observable],Wi.prototype,"selectedItems",void 0);const Ki=(e,t)=>o.html`
|
|
5589
5589
|
<template role="list" slot="menu-region">
|
|
5590
5590
|
<div class="options-display" part="options-display">
|
|
5591
5591
|
<div class="header-region" part="header-region">
|
|
@@ -5606,7 +5606,7 @@
|
|
|
5606
5606
|
</div>
|
|
5607
5607
|
</div>
|
|
5608
5608
|
</template>
|
|
5609
|
-
`,
|
|
5609
|
+
`,Xi=(e,t)=>o.html`
|
|
5610
5610
|
<template
|
|
5611
5611
|
role="listitem"
|
|
5612
5612
|
tabindex="-1"
|
|
@@ -5614,12 +5614,12 @@
|
|
|
5614
5614
|
>
|
|
5615
5615
|
<slot></slot>
|
|
5616
5616
|
</template>
|
|
5617
|
-
`,
|
|
5617
|
+
`,Yi=(e,t)=>o.html`
|
|
5618
5618
|
<template slot="list-region" role="list" class="picker-list">
|
|
5619
5619
|
<slot></slot>
|
|
5620
5620
|
<slot name="input-region"></slot>
|
|
5621
5621
|
</template>
|
|
5622
|
-
`,
|
|
5622
|
+
`,Qi=(e,t)=>o.html`
|
|
5623
5623
|
<template
|
|
5624
5624
|
role="listitem"
|
|
5625
5625
|
tabindex="0"
|
|
@@ -5628,11 +5628,11 @@
|
|
|
5628
5628
|
>
|
|
5629
5629
|
<slot></slot>
|
|
5630
5630
|
</template>
|
|
5631
|
-
`,
|
|
5631
|
+
`,Zi={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},Ji={[Zi.menuitem]:"menuitem",[Zi.menuitemcheckbox]:"menuitemcheckbox",[Zi.menuitemradio]:"menuitemradio"},eo=(e,t)=>o.html`
|
|
5632
5632
|
<template
|
|
5633
5633
|
role="${e=>e.role}"
|
|
5634
5634
|
aria-haspopup="${e=>e.hasSubmenu?"menu":void 0}"
|
|
5635
|
-
aria-checked="${e=>e.role!==
|
|
5635
|
+
aria-checked="${e=>e.role!==Zi.menuitem?e.checked:void 0}"
|
|
5636
5636
|
aria-disabled="${e=>e.disabled}"
|
|
5637
5637
|
aria-expanded="${e=>e.expanded}"
|
|
5638
5638
|
@keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}"
|
|
@@ -5641,7 +5641,7 @@
|
|
|
5641
5641
|
@mouseout="${(e,t)=>e.handleMouseOut(t.event)}"
|
|
5642
5642
|
class="${e=>e.disabled?"disabled":""} ${e=>e.expanded?"expanded":""} ${e=>`indent-${e.startColumnCount}`}"
|
|
5643
5643
|
>
|
|
5644
|
-
${(0,o.when)((e=>e.role===
|
|
5644
|
+
${(0,o.when)((e=>e.role===Zi.menuitemcheckbox),o.html`
|
|
5645
5645
|
<div part="input-container" class="input-container">
|
|
5646
5646
|
<span part="checkbox" class="checkbox">
|
|
5647
5647
|
<slot name="checkbox-indicator">
|
|
@@ -5650,7 +5650,7 @@
|
|
|
5650
5650
|
</span>
|
|
5651
5651
|
</div>
|
|
5652
5652
|
`)}
|
|
5653
|
-
${(0,o.when)((e=>e.role===
|
|
5653
|
+
${(0,o.when)((e=>e.role===Zi.menuitemradio),o.html`
|
|
5654
5654
|
<div part="input-container" class="input-container">
|
|
5655
5655
|
<span part="radio" class="radio">
|
|
5656
5656
|
<slot name="radio-indicator">
|
|
@@ -5678,7 +5678,7 @@
|
|
|
5678
5678
|
</div>
|
|
5679
5679
|
`)}
|
|
5680
5680
|
${(0,o.when)((e=>e.expanded),o.html`
|
|
5681
|
-
<${e.tagFor(
|
|
5681
|
+
<${e.tagFor(Oe)}
|
|
5682
5682
|
:anchorElement="${e=>e}"
|
|
5683
5683
|
vertical-positioning-mode="dynamic"
|
|
5684
5684
|
vertical-default-position="bottom"
|
|
@@ -5692,10 +5692,10 @@
|
|
|
5692
5692
|
part="submenu-region"
|
|
5693
5693
|
>
|
|
5694
5694
|
<slot name="submenu"></slot>
|
|
5695
|
-
</${e.tagFor(
|
|
5695
|
+
</${e.tagFor(Oe)}>
|
|
5696
5696
|
`)}
|
|
5697
5697
|
</template>
|
|
5698
|
-
`;class
|
|
5698
|
+
`;class to extends ae{constructor(){super(...arguments),this.role=Zi.menuitem,this.hasSubmenu=!1,this.currentDirection=we.N.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case pe.kL:case pe.BI:return this.invoke(),!1;case pe.mr:return this.expandAndFocus(),!1;case pe.BE:if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Zi.menuitemcheckbox:this.checked=!this.checked;break;case Zi.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Zi.menuitemradio:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find((e=>"menu"===e.getAttribute("role"))),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(e){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=Fe(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),o.DOM.queueUpdate((()=>{this.updateSubmenu()})),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter((e=>!e.hasAttribute("hidden")))}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],to.prototype,"disabled",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],to.prototype,"expanded",void 0),(0,h.__decorate)([o.observable],to.prototype,"startColumnCount",void 0),(0,h.__decorate)([o.attr],to.prototype,"role",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],to.prototype,"checked",void 0),(0,h.__decorate)([o.observable],to.prototype,"submenuRegion",void 0),(0,h.__decorate)([o.observable],to.prototype,"hasSubmenu",void 0),(0,h.__decorate)([o.observable],to.prototype,"currentDirection",void 0),(0,h.__decorate)([o.observable],to.prototype,"submenu",void 0),he(to,s);const io=(e,t)=>o.html`
|
|
5699
5699
|
<template
|
|
5700
5700
|
slot="${e=>e.slot?e.slot:e.isNestedMenu()?"submenu":void 0}"
|
|
5701
5701
|
role="menu"
|
|
@@ -5704,7 +5704,7 @@
|
|
|
5704
5704
|
>
|
|
5705
5705
|
<slot ${(0,o.slotted)("items")}></slot>
|
|
5706
5706
|
</template>
|
|
5707
|
-
`;class
|
|
5707
|
+
`;class oo extends ae{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&It(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem();const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=e=>{const t=e.target;void 0!==this.menuItems&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||null===e.target||void 0===this.menuItems||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();const t=e.target;null===this.expandedItem||t!==this.expandedItem||!1!==t.expanded?t.expanded&&(null!==this.expandedItem&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach((e=>{e.removeEventListener("expanded-change",this.handleExpandedChanged),e.removeEventListener("focus",this.handleItemFocus)}))},this.setItems=()=>{const e=this.domChildren();this.removeItemListeners(),this.menuItems=e;const t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);const i=t.reduce(((e,t)=>{const i=function(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t!==Zi.menuitem&&null===i||t===Zi.menuitem&&null!==i?1:t!==Zi.menuitem&&null!==i?2:0}(t);return e>i?e:i}),0);t.forEach(((e,t)=>{e.setAttribute("tabindex",0===t?"0":"-1"),e.addEventListener("expanded-change",this.handleExpandedChanged),e.addEventListener("focus",this.handleItemFocus),e instanceof to&&(e.startColumnCount=i)}))},this.changeHandler=e=>{if(void 0===this.menuItems)return;const t=e.target,i=this.menuItems.indexOf(t);if(-1!==i&&"menuitemradio"===t.role&&!0===t.checked){for(let e=i-1;e>=0;--e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===Zi.menuitemradio&&(t.checked=!1),"separator"===i)break}const e=this.menuItems.length-1;for(let t=i+1;t<=e;++t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===Zi.menuitemradio&&(e.checked=!1),"separator"===i)break}}},this.isMenuItemElement=e=>It(e)&&oo.focusableElementRoles.hasOwnProperty(e.getAttribute("role")),this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),o.DOM.queueUpdate((()=>{this.setItems()})),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!e.defaultPrevented&&void 0!==this.menuItems)switch(e.key){case pe.iF:return void this.setFocus(this.focusIndex+1,1);case pe.SB:return void this.setFocus(this.focusIndex-1,-1);case pe.Kh:return void this.setFocus(this.menuItems.length-1,-1);case pe.tU:return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter((e=>!e.hasAttribute("hidden")))}setFocus(e,t){if(void 0!==this.menuItems)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}}oo.focusableElementRoles=Ji,(0,h.__decorate)([o.observable],oo.prototype,"items",void 0);const so=(e,t)=>o.html`
|
|
5708
5708
|
<template class="${e=>e.readOnly?"readonly":""}">
|
|
5709
5709
|
<label
|
|
5710
5710
|
part="label"
|
|
@@ -5779,7 +5779,7 @@
|
|
|
5779
5779
|
${r(e,t)}
|
|
5780
5780
|
</div>
|
|
5781
5781
|
</template>
|
|
5782
|
-
`;class
|
|
5782
|
+
`;class ro extends ae{}class no extends(Qe(ro)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const ao={email:"email",password:"password",tel:"tel",text:"text",url:"url"};class lo extends no{constructor(){super(...arguments),this.type=ao.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&o.DOM.queueUpdate((()=>{this.focus()}))}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}(0,h.__decorate)([(0,o.attr)({attribute:"readonly",mode:"boolean"})],lo.prototype,"readOnly",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],lo.prototype,"autofocus",void 0),(0,h.__decorate)([o.attr],lo.prototype,"placeholder",void 0),(0,h.__decorate)([o.attr],lo.prototype,"type",void 0),(0,h.__decorate)([o.attr],lo.prototype,"list",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],lo.prototype,"maxlength",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],lo.prototype,"minlength",void 0),(0,h.__decorate)([o.attr],lo.prototype,"pattern",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],lo.prototype,"size",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],lo.prototype,"spellcheck",void 0),(0,h.__decorate)([o.observable],lo.prototype,"defaultSlottedNodes",void 0);class co{}he(co,ve),he(lo,s,co);class ho extends ae{}class uo extends(Qe(ho)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class po extends uo{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(e,t){var i;this.max=Math.max(t,null!==(i=this.min)&&void 0!==i?i:t);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.value=this.getValidValue(this.value)}minChanged(e,t){var i;this.min=Math.min(t,null!==(i=this.max)&&void 0!==i?i:t);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t),t===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(e,this.value),void 0===e||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}validate(){super.validate(this.control)}getValidValue(e){var t,i;let o=parseFloat(parseFloat(e).toPrecision(12));return isNaN(o)?o="":(o=Math.min(o,null!==(t=this.max)&&void 0!==t?t:o),o=Math.max(o,null!==(i=this.min)&&void 0!==i?i:o).toString()),o}stepUp(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString()}stepDown(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&o.DOM.queueUpdate((()=>{this.focus()}))}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){switch(e.key){case pe.SB:return this.stepUp(),!1;case pe.iF:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}(0,h.__decorate)([(0,o.attr)({attribute:"readonly",mode:"boolean"})],po.prototype,"readOnly",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],po.prototype,"autofocus",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"hide-step",mode:"boolean"})],po.prototype,"hideStep",void 0),(0,h.__decorate)([o.attr],po.prototype,"placeholder",void 0),(0,h.__decorate)([o.attr],po.prototype,"list",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],po.prototype,"maxlength",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],po.prototype,"minlength",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],po.prototype,"size",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],po.prototype,"step",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],po.prototype,"max",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],po.prototype,"min",void 0),(0,h.__decorate)([o.observable],po.prototype,"defaultSlottedNodes",void 0),he(po,s,co);const go=(e,t)=>o.html`
|
|
5783
5783
|
<template
|
|
5784
5784
|
role="progressbar"
|
|
5785
5785
|
aria-valuenow="${e=>e.value}"
|
|
@@ -5816,7 +5816,7 @@
|
|
|
5816
5816
|
</slot>
|
|
5817
5817
|
`)}
|
|
5818
5818
|
</template>
|
|
5819
|
-
`;class
|
|
5819
|
+
`;class mo extends ae{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const e="number"==typeof this.min?this.min:0,t="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=t-e;this.percentComplete=0===o?0:Math.fround((i-e)/o*100)}}(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],mo.prototype,"value",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],mo.prototype,"min",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],mo.prototype,"max",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],mo.prototype,"paused",void 0),(0,h.__decorate)([o.observable],mo.prototype,"percentComplete",void 0);const bo=(e,t)=>o.html`
|
|
5820
5820
|
<template
|
|
5821
5821
|
role="progressbar"
|
|
5822
5822
|
aria-valuenow="${e=>e.value}"
|
|
@@ -5841,7 +5841,7 @@
|
|
|
5841
5841
|
</div>
|
|
5842
5842
|
`)}
|
|
5843
5843
|
</template>
|
|
5844
|
-
`,
|
|
5844
|
+
`,fo=(e,t)=>o.html`
|
|
5845
5845
|
<template
|
|
5846
5846
|
role="radiogroup"
|
|
5847
5847
|
aria-disabled="${e=>e.disabled}"
|
|
@@ -5852,7 +5852,7 @@
|
|
|
5852
5852
|
>
|
|
5853
5853
|
<slot name="label"></slot>
|
|
5854
5854
|
<div
|
|
5855
|
-
class="positioning-region ${e=>e.orientation===
|
|
5855
|
+
class="positioning-region ${e=>e.orientation===Ii.i.horizontal?"horizontal":"vertical"}"
|
|
5856
5856
|
part="positioning-region"
|
|
5857
5857
|
>
|
|
5858
5858
|
<slot
|
|
@@ -5860,7 +5860,7 @@
|
|
|
5860
5860
|
></slot>
|
|
5861
5861
|
</div>
|
|
5862
5862
|
</template>
|
|
5863
|
-
`;class
|
|
5863
|
+
`;class vo extends ae{constructor(){super(...arguments),this.orientation=Ii.i.horizontal,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach((e=>{e!==t&&(e.checked=!1,this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"))})),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const i=e[t];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach((e=>{e!==i&&e.setAttribute("tabindex","-1")})):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var e;null===(e=this.nextElementSibling)||void 0===e||e.focus()},this.moveLeftOffGroup=()=>{var e;null===(e=this.previousElementSibling)||void 0===e||e.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,i=e.target,o=null!==i?t.indexOf(i):0,s=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===t.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.selectedRadio&&e.setAttribute("tabindex","-1")})))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.focusedRadio&&e.setAttribute("tabindex","-1")})))),!0},this.clickHandler=e=>{const t=e.target;if(t){const e=this.slottedRadioButtons;t.checked||0===e.indexOf(t)?(t.setAttribute("tabindex","0"),this.selectedRadio=t):(t.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,i)=>e===t.length&&this.isInsideToolbar&&i===pe.mr,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===pe.BE,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,t,e.key))this.moveRightOffGroup();else for(i===t.length&&(i=0);i<t.length&&t.length>1;){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;if(i+1>=t.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,i=i<0?t.length-1:i,this.shouldMoveOffGroupToTheLeft(t,e.key))this.moveLeftOffGroup();else for(;i>=0&&t.length>1;){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;i-1<0?i=t.length-1:i-=1}},this.keydownHandler=e=>{const t=e.key;if(t in pe.uf&&this.isInsideFoundationToolbar)return!0;switch(t){case pe.kL:this.checkFocusedRadio();break;case pe.mr:case pe.iF:this.direction===we.N.ltr?this.moveRight(e):this.moveLeft(e);break;case pe.BE:case pe.SB:this.direction===we.N.ltr?this.moveLeft(e):this.moveRight(e);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.readOnly?e.readOnly=!0:e.readOnly=!1}))}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.disabled?e.disabled=!0:e.disabled=!1}))}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.setAttribute("name",this.name)}))}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.value===this.value&&(e.checked=!0,this.selectedRadio=e)})),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return null!==(e=this.parentToolbar)&&void 0!==e&&e}get isInsideFoundationToolbar(){var e;return!!(null===(e=this.parentToolbar)||void 0===e?void 0:e.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=Fe(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach((e=>{e.removeEventListener("change",this.radioChangeHandler)}))}setupRadioButtons(){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=e?e.length:0;if(t>1){e[t-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach((e=>{void 0!==this.name&&e.setAttribute("name",this.name),this.disabled&&(e.disabled=!0),this.readOnly&&(e.readOnly=!0),this.value&&this.value===e.value?(this.selectedRadio=e,this.focusedRadio=e,e.checked=!0,e.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"),e.checked=!1),e.addEventListener("change",this.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=null!==e?e.length:0;if(t>0&&!i){const i=e[t-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}(0,h.__decorate)([(0,o.attr)({attribute:"readonly",mode:"boolean"})],vo.prototype,"readOnly",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"disabled",mode:"boolean"})],vo.prototype,"disabled",void 0),(0,h.__decorate)([o.attr],vo.prototype,"name",void 0),(0,h.__decorate)([o.attr],vo.prototype,"value",void 0),(0,h.__decorate)([o.attr],vo.prototype,"orientation",void 0),(0,h.__decorate)([o.observable],vo.prototype,"childItems",void 0),(0,h.__decorate)([o.observable],vo.prototype,"slottedRadioButtons",void 0);const yo=(e,t)=>o.html`
|
|
5864
5864
|
<template
|
|
5865
5865
|
role="radio"
|
|
5866
5866
|
class="${e=>e.checked?"checked":""} ${e=>e.readOnly?"readonly":""}"
|
|
@@ -5883,7 +5883,7 @@
|
|
|
5883
5883
|
<slot ${(0,o.slotted)("defaultSlottedNodes")}></slot>
|
|
5884
5884
|
</label>
|
|
5885
5885
|
</template>
|
|
5886
|
-
`;class
|
|
5886
|
+
`;class xo extends ae{}class $o extends(Ze(xo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class wo extends $o{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(e.key!==pe.BI)return!0;this.checked||this.readOnly||(this.checked=!0)},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}connectedCallback(){var e,t;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(e=this.parentElement)||void 0===e?void 0:e.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(e){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}(0,h.__decorate)([(0,o.attr)({attribute:"readonly",mode:"boolean"})],wo.prototype,"readOnly",void 0),(0,h.__decorate)([o.observable],wo.prototype,"name",void 0),(0,h.__decorate)([o.observable],wo.prototype,"defaultSlottedNodes",void 0);class Co extends ae{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(e,t){if(this.scrollContainer){const e=1==this.scrolling?"scrollstart":"scrollend";this.$emit(e,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(e,t){t&&!this.updatingItems&&o.DOM.queueUpdate((()=>this.setStops()))}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const e=this.scrollItems.reduce(((e,t)=>t instanceof HTMLSlotElement?e.concat(t.assignedElements()):(e.push(t),e)),[]);this.scrollItems=e,this.updatingItems=!1}setStops(){this.updateScrollStops();const{scrollContainer:e}=this,{scrollLeft:t}=e,{width:i,left:o}=e.getBoundingClientRect();this.width=i;let s=0,r=this.scrollItems.map(((e,i)=>{const{left:r,width:n}=e.getBoundingClientRect(),a=Math.round(r+t-o),l=Math.round(a+n);return this.isRtl?-l:(s=l,0===i?0:a)})).concat(s);r=this.fixScrollMisalign(r),r.sort(((e,t)=>Math.abs(e)-Math.abs(t))),this.scrollStops=r,this.setFlippers()}validateStops(e=!0){const t=()=>!!this.scrollStops.find((e=>e>0));return!t()&&e&&this.setStops(),t()}fixScrollMisalign(e){if(this.isRtl&&e.some((e=>e>0))){e.sort(((e,t)=>t-e));const t=e[0];e=e.map((e=>e-t))}return e}setFlippers(){var e,t;const i=this.scrollContainer.scrollLeft;if(null===(e=this.previousFlipperContainer)||void 0===e||e.classList.toggle("disabled",0===i),this.scrollStops){const e=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(t=this.nextFlipperContainer)||void 0===t||t.classList.toggle("disabled",this.validateStops(!1)&&Math.abs(i)+this.width>=e)}}scrollInView(e,t=0,i){var o;if("number"!=typeof e&&e&&(e=this.scrollItems.findIndex((t=>t===e||t.contains(e)))),void 0!==e){i=null!=i?i:t;const{scrollContainer:s,scrollStops:r,scrollItems:n}=this,{scrollLeft:a}=this.scrollContainer,{width:l}=s.getBoundingClientRect(),c=r[e],{width:h}=n[e].getBoundingClientRect(),d=c+h,u=a+t>c;if(u||a+l-i<d){const e=null!==(o=[...r].sort(((e,t)=>u?t-e:e-t)).find((e=>u?e+t<c:e+l-(null!=i?i:0)>d)))&&void 0!==o?o:0;this.scrollToPosition(e)}}}keyupHandler(e){switch(e.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){this.validateStops();const e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex(((t,i)=>t>=e&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>e))),i=Math.abs(this.scrollStops[t+1]);let o=this.scrollStops.findIndex((e=>Math.abs(e)+this.width>i));(o>=t||-1===o)&&(o=t>0?t-1:0),this.scrollToPosition(this.scrollStops[o],e)}scrollToNext(){this.validateStops();const e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex((t=>Math.abs(t)>=Math.abs(e))),i=this.scrollStops.findIndex((t=>Math.abs(e)+this.width<=Math.abs(t)));let o=t;i>t+2?o=i-2:t<this.scrollStops.length-2&&(o=t+1),this.scrollToPosition(this.scrollStops[o],e)}scrollToPosition(e,t=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(e-t)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),r=t=>{t&&t.target!==t.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=e,this.setFlippers(),this.content.removeEventListener("transitionend",r),this.scrolling=!1)};if(0===s)return void r();this.content.addEventListener("transitionend",r);const n=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(e,n);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(e),n)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout((()=>{this.width=this.scrollContainer.offsetWidth,this.setFlippers()}),this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout((()=>{this.setFlippers()}),this.frameTime)}}(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],Co.prototype,"speed",void 0),(0,h.__decorate)([o.attr],Co.prototype,"duration",void 0),(0,h.__decorate)([o.attr],Co.prototype,"easing",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"flippers-hidden-from-at",converter:o.booleanConverter})],Co.prototype,"flippersHiddenFromAT",void 0),(0,h.__decorate)([o.observable],Co.prototype,"scrolling",void 0),(0,h.__decorate)([o.observable],Co.prototype,"scrollItems",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"view"})],Co.prototype,"view",void 0);const ko=(e,t)=>{var i,s;return o.html`
|
|
5887
5887
|
<template
|
|
5888
5888
|
class="horizontal-scroll"
|
|
5889
5889
|
@keyup="${(e,t)=>e.keyupHandler(t.event)}"
|
|
@@ -5929,7 +5929,7 @@
|
|
|
5929
5929
|
</div>
|
|
5930
5930
|
${r(e,t)}
|
|
5931
5931
|
</template>
|
|
5932
|
-
`};function
|
|
5932
|
+
`};function To(e,t,i){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&!!e.nodeValue.trim().length}const So=(e,t)=>o.html`
|
|
5933
5933
|
<template
|
|
5934
5934
|
class="
|
|
5935
5935
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -5941,7 +5941,7 @@
|
|
|
5941
5941
|
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
5942
5942
|
>
|
|
5943
5943
|
<slot
|
|
5944
|
-
${(0,o.slotted)({property:"defaultSlottedNodes",filter:
|
|
5944
|
+
${(0,o.slotted)({property:"defaultSlottedNodes",filter:To})}
|
|
5945
5945
|
></slot>
|
|
5946
5946
|
</label>
|
|
5947
5947
|
<div class="root" part="root" ${(0,o.ref)("root")}>
|
|
@@ -6012,7 +6012,7 @@
|
|
|
6012
6012
|
${r(e,t)}
|
|
6013
6013
|
</div>
|
|
6014
6014
|
</template>
|
|
6015
|
-
`;class
|
|
6015
|
+
`;class _o extends ae{}class Io extends(Qe(_o)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Fo extends Io{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&o.DOM.queueUpdate((()=>{this.focus()}))}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus(),this.handleChange()}handleChange(){this.$emit("change")}}(0,h.__decorate)([(0,o.attr)({attribute:"readonly",mode:"boolean"})],Fo.prototype,"readOnly",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],Fo.prototype,"autofocus",void 0),(0,h.__decorate)([o.attr],Fo.prototype,"placeholder",void 0),(0,h.__decorate)([o.attr],Fo.prototype,"list",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],Fo.prototype,"maxlength",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],Fo.prototype,"minlength",void 0),(0,h.__decorate)([o.attr],Fo.prototype,"pattern",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],Fo.prototype,"size",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],Fo.prototype,"spellcheck",void 0),(0,h.__decorate)([o.observable],Fo.prototype,"defaultSlottedNodes",void 0);class Oo{}he(Oo,ve),he(Fo,s,Oo);class Ho extends Li{}class Do extends(Qe(Ho)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Ro extends Do{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=(0,St.EL)("listbox-"),this.maxHeight=0}openChanged(e,t){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void o.DOM.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return o.Observable.track(this,"value"),this._value}set value(e){var t,i,s,r,n,a,l;const c=`${this._value}`;if(null===(t=this._options)||void 0===t?void 0:t.length){const t=this._options.findIndex((t=>t.value===e)),o=null!==(s=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==s?s:null,c=null!==(n=null===(r=this._options[t])||void 0===r?void 0:r.value)&&void 0!==n?n:null;-1!==t&&o===c||(e="",this.selectedIndex=t),e=null!==(l=null===(a=this.firstSelectedOption)||void 0===a?void 0:a.value)&&void 0!==l?l:e}c!==e&&(this._value=e,super.valueChanged(c,e),o.Observable.notify(this,"value"),this.updateDisplayValue())}updateValue(e){var t,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value)&&void 0!==i?i:""),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t),this.updateValue()}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}setPositioning(){const e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?Lt.above:Lt.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Lt.above?~~e.top:~~t}get displayValue(){var e,t;return o.Observable.track(this,"displayValue"),null!==(t=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)&&void 0!==t?t:""}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return super.clickHandler(e),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(e){var t;if(super.focusoutHandler(e),!this.open)return!0;const i=e.relatedTarget;this.isSameNode(i)?this.focus():(null===(t=this.options)||void 0===t?void 0:t.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(e,t){super.handleChange(e,t),"value"===t&&this.updateValue()}slottedOptionsChanged(e,t){this.options.forEach((e=>{o.Observable.getNotifier(e).unsubscribe(this,"value")})),super.slottedOptionsChanged(e,t),this.options.forEach((e=>{o.Observable.getNotifier(e).subscribe(this,"value")})),this.setProxyOptions(),this.updateValue()}mousedownHandler(e){var t;return e.offsetX>=0&&e.offsetX<=(null===(t=this.listbox)||void 0===t?void 0:t.scrollWidth)?super.mousedownHandler(e):this.collapsible}multipleChanged(e,t){super.multipleChanged(e,t),this.proxy&&(this.proxy.multiple=t)}selectedOptionsChanged(e,t){var i;super.selectedOptionsChanged(e,t),null===(i=this.options)||void 0===i||i.forEach(((e,t)=>{var i;const o=null===(i=this.proxy)||void 0===i?void 0:i.options.item(t);o&&(o.selected=e.selected)}))}setDefaultSelectedOption(){var e;const t=null!==(e=this.options)&&void 0!==e?e:Array.from(this.children).filter(Rt.slottedOptionFilter),i=null==t?void 0:t.findIndex((e=>e.hasAttribute("selected")||e.selected||e.value===this.value));this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((e=>{const t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);t&&this.proxy.options.add(t)})))}keydownHandler(e){super.keydownHandler(e);const t=e.key||e.key.charCodeAt(0);switch(t){case pe.BI:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case pe.tU:case pe.Kh:e.preventDefault();break;case pe.kL:e.preventDefault(),this.open=!this.open;break;case pe.CX:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case pe.oM:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(t===pe.iF||t===pe.SB)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(e,t){super.sizeChanged(e,t),this.proxy&&(this.proxy.size=t)}updateDisplayValue(){this.collapsible&&o.Observable.notify(this,"displayValue")}}(0,h.__decorate)([(0,o.attr)({attribute:"open",mode:"boolean"})],Ro.prototype,"open",void 0),(0,h.__decorate)([o.volatile],Ro.prototype,"collapsible",null),(0,h.__decorate)([o.observable],Ro.prototype,"control",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"position"})],Ro.prototype,"positionAttribute",void 0),(0,h.__decorate)([o.observable],Ro.prototype,"position",void 0),(0,h.__decorate)([o.observable],Ro.prototype,"maxHeight",void 0);class Eo{}(0,h.__decorate)([o.observable],Eo.prototype,"ariaControls",void 0),he(Eo,Et),he(Ro,s,Eo);const Lo=(e,t)=>o.html`
|
|
6016
6016
|
<template
|
|
6017
6017
|
class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
|
|
6018
6018
|
aria-activedescendant="${e=>e.ariaActiveDescendant}"
|
|
@@ -6061,11 +6061,11 @@
|
|
|
6061
6061
|
${(0,o.ref)("listbox")}
|
|
6062
6062
|
>
|
|
6063
6063
|
<slot
|
|
6064
|
-
${(0,o.slotted)({filter:
|
|
6064
|
+
${(0,o.slotted)({filter:Rt.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
|
|
6065
6065
|
></slot>
|
|
6066
6066
|
</div>
|
|
6067
6067
|
</template>
|
|
6068
|
-
`,
|
|
6068
|
+
`,Ao=(e,t)=>o.html`
|
|
6069
6069
|
<template
|
|
6070
6070
|
class="${e=>"circle"===e.shape?"circle":"rect"}"
|
|
6071
6071
|
pattern="${e=>e.pattern}"
|
|
@@ -6079,10 +6079,10 @@
|
|
|
6079
6079
|
</object>
|
|
6080
6080
|
<slot></slot>
|
|
6081
6081
|
</template>
|
|
6082
|
-
`;class
|
|
6082
|
+
`;class Vo extends ae{constructor(){super(...arguments),this.shape="rect"}}(0,h.__decorate)([o.attr],Vo.prototype,"fill",void 0),(0,h.__decorate)([o.attr],Vo.prototype,"shape",void 0),(0,h.__decorate)([o.attr],Vo.prototype,"pattern",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],Vo.prototype,"shimmer",void 0);const Bo=(e,t)=>o.html`
|
|
6083
6083
|
<template
|
|
6084
6084
|
aria-disabled="${e=>e.disabled}"
|
|
6085
|
-
class="${e=>e.sliderOrientation||
|
|
6085
|
+
class="${e=>e.sliderOrientation||Ii.i.horizontal}
|
|
6086
6086
|
${e=>e.disabled?"disabled":""}"
|
|
6087
6087
|
>
|
|
6088
6088
|
<div ${(0,o.ref)("root")} part="root" class="root" style="${e=>e.positionStyle}">
|
|
@@ -6096,11 +6096,11 @@
|
|
|
6096
6096
|
</div>
|
|
6097
6097
|
</div>
|
|
6098
6098
|
</template>
|
|
6099
|
-
`;function
|
|
6099
|
+
`;function Po(e,t,i,o){let s=(0,ge.b9)(0,1,(e-t)/(i-t));return o===we.N.rtl&&(s=1-s),s}const Mo={min:0,max:0,direction:we.N.ltr,orientation:Ii.i.horizontal,disabled:!1};class zo extends ae{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=we.N.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const e=this.parentNode,{min:t,max:i,direction:o,orientation:s,disabled:r}=e;void 0!==r&&(this.disabled=r),this.sliderDirection=o||we.N.ltr,this.sliderOrientation=s||Ii.i.horizontal,this.sliderMaxPosition=i,this.sliderMinPosition=t}else this.sliderDirection=Mo.direction||we.N.ltr,this.sliderOrientation=Mo.orientation||Ii.i.horizontal,this.sliderMaxPosition=Mo.max,this.sliderMinPosition=Mo.min},this.positionAsStyle=()=>{const e=this.sliderDirection?this.sliderDirection:we.N.ltr,t=Po(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-t)),o=Math.round(100*t);return Number.isNaN(o)&&Number.isNaN(i)&&(i=50,o=50),this.sliderOrientation===Ii.i.horizontal?e===we.N.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=o.Observable.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(e,t){switch(t){case"direction":this.sliderDirection=e.direction;break;case"orientation":this.sliderOrientation=e.orientation;break;case"max":this.sliderMaxPosition=e.max;break;case"min":this.sliderMinPosition=e.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(e){return void 0!==e.max&&void 0!==e.min}}(0,h.__decorate)([o.observable],zo.prototype,"positionStyle",void 0),(0,h.__decorate)([o.attr],zo.prototype,"position",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"hide-mark",mode:"boolean"})],zo.prototype,"hideMark",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"disabled",mode:"boolean"})],zo.prototype,"disabled",void 0),(0,h.__decorate)([o.observable],zo.prototype,"sliderOrientation",void 0),(0,h.__decorate)([o.observable],zo.prototype,"sliderMinPosition",void 0),(0,h.__decorate)([o.observable],zo.prototype,"sliderMaxPosition",void 0),(0,h.__decorate)([o.observable],zo.prototype,"sliderDirection",void 0);const No=(e,t)=>o.html`
|
|
6100
6100
|
<template
|
|
6101
6101
|
role="slider"
|
|
6102
6102
|
class="${e=>e.readOnly?"readonly":""}
|
|
6103
|
-
${e=>e.orientation||
|
|
6103
|
+
${e=>e.orientation||Ii.i.horizontal}"
|
|
6104
6104
|
tabindex="${e=>e.disabled?null:0}"
|
|
6105
6105
|
aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
|
|
6106
6106
|
aria-valuenow="${e=>e.value}"
|
|
@@ -6129,7 +6129,7 @@
|
|
|
6129
6129
|
</div>
|
|
6130
6130
|
</div>
|
|
6131
6131
|
</template>
|
|
6132
|
-
`;class
|
|
6132
|
+
`;class jo extends ae{}class Go extends(Qe(jo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const qo={singleValue:"single-value"};class Uo extends Go{constructor(){super(...arguments),this.direction=we.N.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=Ii.i.horizontal,this.mode=qo.singleValue,this.keypressHandler=e=>{if(!this.readOnly)if(e.key===pe.tU)e.preventDefault(),this.value=`${this.min}`;else if(e.key===pe.Kh)e.preventDefault(),this.value=`${this.max}`;else if(!e.shiftKey)switch(e.key){case pe.mr:case pe.SB:e.preventDefault(),this.increment();break;case pe.BE:case pe.iF:e.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.bottom,this.trackMinHeight=e.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{const t=(e?"remove":"add")+"EventListener";this[t]("keydown",this.keypressHandler),this[t]("mousedown",this.handleMouseDown),this.thumb[t]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[t]("touchstart",this.handleThumbMouseDown,{passive:!0}),e&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented)return;e.target.focus()}const t=(null!==e?"add":"remove")+"EventListener";window[t]("mouseup",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove,{passive:!0}),window[t]("touchmove",this.handleMouseMove,{passive:!0}),window[t]("touchend",this.handleWindowMouseUp),this.isDragging=null!==e},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.orientation===Ii.i.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`},this.calculateNewValue=e=>{const t=Po(e,this.orientation===Ii.i.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Ii.i.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{const t=(null!==e?"add":"remove")+"EventListener";if((null===e||!this.disabled&&!this.readOnly)&&(window[t]("mouseup",this.handleWindowMouseUp),window.document[t]("mouseleave",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove),e)){e.preventDefault(),this.setupTrackConstraints(),e.target.focus();const t=this.orientation===Ii.i.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(t)}`}},this.convertToConstrainedValue=e=>{isNaN(e)&&(e=this.min);let t=e-this.min;const i=t-Math.round(t/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return t=i>=Number(this.step)/2?t-i+Number(this.step):t-i,t+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){super.valueChanged(e,t),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=Fe(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const e=this.direction!==we.N.rtl&&this.orientation!==Ii.i.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),t=this.convertToConstrainedValue(e),i=t<Number(this.max)?`${t}`:`${this.max}`;this.value=i}decrement(){const e=this.direction!==we.N.rtl&&this.orientation!==Ii.i.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),t=this.convertToConstrainedValue(e),i=t>Number(this.min)?`${t}`:`${this.min}`;this.value=i}setThumbPositionForOrientation(e){const t=100*(1-Po(Number(this.value),Number(this.min),Number(this.max),e));this.orientation===Ii.i.horizontal?this.position=this.isDragging?`right: ${t}%; transition: none;`:`right: ${t}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${t}%; transition: none;`:`bottom: ${t}%; transition: all 0.2s ease;`}updateStepMultiplier(){const e=this.step+"",t=this.step%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}}(0,h.__decorate)([(0,o.attr)({attribute:"readonly",mode:"boolean"})],Uo.prototype,"readOnly",void 0),(0,h.__decorate)([o.observable],Uo.prototype,"direction",void 0),(0,h.__decorate)([o.observable],Uo.prototype,"isDragging",void 0),(0,h.__decorate)([o.observable],Uo.prototype,"position",void 0),(0,h.__decorate)([o.observable],Uo.prototype,"trackWidth",void 0),(0,h.__decorate)([o.observable],Uo.prototype,"trackMinWidth",void 0),(0,h.__decorate)([o.observable],Uo.prototype,"trackHeight",void 0),(0,h.__decorate)([o.observable],Uo.prototype,"trackLeft",void 0),(0,h.__decorate)([o.observable],Uo.prototype,"trackMinHeight",void 0),(0,h.__decorate)([o.observable],Uo.prototype,"valueTextFormatter",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],Uo.prototype,"min",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],Uo.prototype,"max",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],Uo.prototype,"step",void 0),(0,h.__decorate)([o.attr],Uo.prototype,"orientation",void 0),(0,h.__decorate)([o.attr],Uo.prototype,"mode",void 0);const Wo=(e,t)=>o.html`
|
|
6133
6133
|
<template
|
|
6134
6134
|
role="switch"
|
|
6135
6135
|
aria-checked="${e=>e.checked}"
|
|
@@ -6158,15 +6158,15 @@
|
|
|
6158
6158
|
</span>
|
|
6159
6159
|
</span>
|
|
6160
6160
|
</template>
|
|
6161
|
-
`;class
|
|
6161
|
+
`;class Ko extends ae{}class Xo extends(Ze(Ko)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Yo extends Xo{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case pe.kL:case pe.BI:this.checked=!this.checked}},this.clickHandler=e=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(e,t){super.checkedChanged(e,t),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}(0,h.__decorate)([(0,o.attr)({attribute:"readonly",mode:"boolean"})],Yo.prototype,"readOnly",void 0),(0,h.__decorate)([o.observable],Yo.prototype,"defaultSlottedNodes",void 0);const Qo=(e,t)=>o.html`
|
|
6162
6162
|
<template slot="tabpanel" role="tabpanel">
|
|
6163
6163
|
<slot></slot>
|
|
6164
6164
|
</template>
|
|
6165
|
-
`;class
|
|
6165
|
+
`;class Zo extends ae{}const Jo=(e,t)=>o.html`
|
|
6166
6166
|
<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
|
|
6167
6167
|
<slot></slot>
|
|
6168
6168
|
</template>
|
|
6169
|
-
`;class
|
|
6169
|
+
`;class es extends ae{}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],es.prototype,"disabled",void 0);const ts=(e,t)=>o.html`
|
|
6170
6170
|
<template class="${e=>e.orientation}">
|
|
6171
6171
|
${n(e,t)}
|
|
6172
6172
|
<div class="tablist" part="tablist" role="tablist">
|
|
@@ -6185,11 +6185,11 @@
|
|
|
6185
6185
|
<slot name="tabpanel" ${(0,o.slotted)("tabpanels")}></slot>
|
|
6186
6186
|
</div>
|
|
6187
6187
|
</template>
|
|
6188
|
-
`,
|
|
6188
|
+
`,is={vertical:"vertical",horizontal:"horizontal"};class os extends ae{constructor(){super(...arguments),this.orientation=is.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>"true"===e.getAttribute("aria-disabled"),this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.setTabs=()=>{const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach(((o,s)=>{if("tab"===o.slot){const e=this.activeTabIndex===s&&this.isFocusableElement(o);this.activeindicator&&this.isFocusableElement(o)&&(this.showActiveIndicator=!0);const t=this.tabIds[s],i=this.tabpanelIds[s];o.setAttribute("id",t),o.setAttribute("aria-selected",e?"true":"false"),o.setAttribute("aria-controls",i),o.addEventListener("click",this.handleTabClick),o.addEventListener("keydown",this.handleTabKeyDown),o.setAttribute("tabindex",e?"0":"-1"),e&&(this.activetab=o,this.activeid=t)}o.style[e]="",o.style[t]="",o.style[i]=`${s+1}`,this.isHorizontal()?o.classList.remove("vertical"):o.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const i=this.tabIds[t],o=this.tabpanelIds[t];e.setAttribute("id",o),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))},this.handleTabClick=e=>{const t=e.currentTarget;1===t.nodeType&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case pe.BE:e.preventDefault(),this.adjustBackward(e);break;case pe.mr:e.preventDefault(),this.adjustForward(e)}else switch(e.key){case pe.SB:e.preventDefault(),this.adjustBackward(e);break;case pe.iF:e.preventDefault(),this.adjustForward(e)}switch(e.key){case pe.tU:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case pe.Kh:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=e=>{const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}},this.adjustBackward=e=>{const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}i-1<0?i=t.length-1:i-=1}},this.moveToTabByIndex=(e,t)=>{const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex((t=>t.id===e)),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,St.EL)()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,St.EL)()}`}))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===is.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const e=this.isHorizontal()?"gridColumn":"gridRow",t=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;const r=s-o;this.activeIndicatorRef.style.transform=`${t}(${r}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${t}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(e){const t=this.tabs.filter((e=>this.isFocusableElement(e))),i=t.indexOf(this.activetab),o=(0,ge.b9)(0,t.length-1,i+e),s=this.tabs.indexOf(t[o]);s>-1&&this.moveToTabByIndex(this.tabs,s)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}(0,h.__decorate)([o.attr],os.prototype,"orientation",void 0),(0,h.__decorate)([o.attr],os.prototype,"activeid",void 0),(0,h.__decorate)([o.observable],os.prototype,"tabs",void 0),(0,h.__decorate)([o.observable],os.prototype,"tabpanels",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],os.prototype,"activeindicator",void 0),(0,h.__decorate)([o.observable],os.prototype,"activeIndicatorRef",void 0),(0,h.__decorate)([o.observable],os.prototype,"showActiveIndicator",void 0),he(os,s);const ss={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},rs=(e,t)=>o.html`
|
|
6189
6189
|
<template
|
|
6190
6190
|
class="
|
|
6191
6191
|
${e=>e.readOnly?"readonly":""}
|
|
6192
|
-
${e=>e.resize!==
|
|
6192
|
+
${e=>e.resize!==ss.none?`resize-${e.resize}`:""}"
|
|
6193
6193
|
>
|
|
6194
6194
|
<label
|
|
6195
6195
|
part="label"
|
|
@@ -6240,7 +6240,7 @@
|
|
|
6240
6240
|
${(0,o.ref)("control")}
|
|
6241
6241
|
></textarea>
|
|
6242
6242
|
</template>
|
|
6243
|
-
`;class
|
|
6243
|
+
`;class ns extends ae{}class as extends(Qe(ns)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}class ls extends as{constructor(){super(...arguments),this.resize=ss.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],ls.prototype,"readOnly",void 0),(0,h.__decorate)([o.attr],ls.prototype,"resize",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],ls.prototype,"autofocus",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"form"})],ls.prototype,"formId",void 0),(0,h.__decorate)([o.attr],ls.prototype,"list",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],ls.prototype,"maxlength",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter})],ls.prototype,"minlength",void 0),(0,h.__decorate)([o.attr],ls.prototype,"name",void 0),(0,h.__decorate)([o.attr],ls.prototype,"placeholder",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter,mode:"fromView"})],ls.prototype,"cols",void 0),(0,h.__decorate)([(0,o.attr)({converter:o.nullableNumberConverter,mode:"fromView"})],ls.prototype,"rows",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],ls.prototype,"spellcheck",void 0),(0,h.__decorate)([o.observable],ls.prototype,"defaultSlottedNodes",void 0),he(ls,co);const cs=(e,t)=>o.html`
|
|
6244
6244
|
<template
|
|
6245
6245
|
class="
|
|
6246
6246
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -6252,7 +6252,7 @@
|
|
|
6252
6252
|
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
6253
6253
|
>
|
|
6254
6254
|
<slot
|
|
6255
|
-
${(0,o.slotted)({property:"defaultSlottedNodes",filter:
|
|
6255
|
+
${(0,o.slotted)({property:"defaultSlottedNodes",filter:To})}
|
|
6256
6256
|
></slot>
|
|
6257
6257
|
</label>
|
|
6258
6258
|
<div class="root" part="root">
|
|
@@ -6300,7 +6300,7 @@
|
|
|
6300
6300
|
${r(e,t)}
|
|
6301
6301
|
</div>
|
|
6302
6302
|
</template>
|
|
6303
|
-
|
|
6303
|
+
`,hs=(e,t)=>o.html`
|
|
6304
6304
|
<template
|
|
6305
6305
|
aria-label="${e=>e.ariaLabel}"
|
|
6306
6306
|
aria-labelledby="${e=>e.ariaLabelledby}"
|
|
@@ -6321,9 +6321,9 @@
|
|
|
6321
6321
|
${r(e,t)}
|
|
6322
6322
|
</div>
|
|
6323
6323
|
</template>
|
|
6324
|
-
`,
|
|
6324
|
+
`,ds=Object.freeze({[pe.uf.ArrowUp]:{[Ii.i.vertical]:-1},[pe.uf.ArrowDown]:{[Ii.i.vertical]:1},[pe.uf.ArrowLeft]:{[Ii.i.horizontal]:{[we.N.ltr]:-1,[we.N.rtl]:1}},[pe.uf.ArrowRight]:{[Ii.i.horizontal]:{[we.N.ltr]:1,[we.N.rtl]:-1}}});class us extends ae{constructor(){super(...arguments),this._activeIndex=0,this.direction=we.N.ltr,this.orientation=Ii.i.horizontal}get activeIndex(){return o.Observable.track(this,"activeIndex"),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=(0,ge.b9)(0,this.focusableElements.length-1,e),o.Observable.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(e){var t;const i=null===(t=this.focusableElements)||void 0===t?void 0:t.findIndex((t=>t.contains(e.target)));return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}childItemsChanged(e,t){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=Fe(this)}focusinHandler(e){const t=e.relatedTarget;t&&!this.contains(t)&&this.setFocusedElement()}getDirectionalIncrementer(e){var t,i,o,s,r;return null!==(r=null!==(o=null===(i=null===(t=ds[e])||void 0===t?void 0:t[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=ds[e])||void 0===s?void 0:s[this.orientation])&&void 0!==r?r:0}keydownHandler(e){const t=e.key;if(!(t in pe.uf)||e.defaultPrevented||e.shiftKey)return!0;const i=this.getDirectionalIncrementer(t);if(!i)return!e.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&e.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;const t=null===(e=this.focusableElements)||void 0===e?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(us.reduceFocusableItems,[]);const i=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,i),this.setFocusableElements()}setFocusedElement(e=this.activeIndex){var t;this.activeIndex=e,this.setFocusableElements(),null===(t=this.focusableElements[this.activeIndex])||void 0===t||t.focus()}static reduceFocusableItems(e,t){var i,o,s,r;const n="radio"===t.getAttribute("role"),a=null===(o=null===(i=t.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(r=null===(s=t.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==r?r:[]).some((e=>(0,yi.EB)(e)));return t.hasAttribute("disabled")||t.hasAttribute("hidden")||!((0,yi.EB)(t)||n||a||l)?t.childElementCount?e.concat(Array.from(t.children).reduce(us.reduceFocusableItems,[])):e:(e.push(t),e)}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach(((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1}))}}(0,h.__decorate)([o.observable],us.prototype,"direction",void 0),(0,h.__decorate)([o.attr],us.prototype,"orientation",void 0),(0,h.__decorate)([o.observable],us.prototype,"slottedItems",void 0),(0,h.__decorate)([o.observable],us.prototype,"slottedLabel",void 0),(0,h.__decorate)([o.observable],us.prototype,"childItems",void 0);class ps{}(0,h.__decorate)([(0,o.attr)({attribute:"aria-labelledby"})],ps.prototype,"ariaLabelledby",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"aria-label"})],ps.prototype,"ariaLabel",void 0),he(ps,ve),he(us,s,ps);const gs=(e,t)=>o.html`
|
|
6325
6325
|
${(0,o.when)((e=>e.tooltipVisible),o.html`
|
|
6326
|
-
<${e.tagFor(
|
|
6326
|
+
<${e.tagFor(Oe)}
|
|
6327
6327
|
fixed-placement="true"
|
|
6328
6328
|
auto-update-mode="${e=>e.autoUpdateMode}"
|
|
6329
6329
|
vertical-positioning-mode="${e=>e.verticalPositioningMode}"
|
|
@@ -6342,9 +6342,9 @@
|
|
|
6342
6342
|
<div class="tooltip" part="tooltip" role="tooltip">
|
|
6343
6343
|
<slot></slot>
|
|
6344
6344
|
</div>
|
|
6345
|
-
</${e.tagFor(
|
|
6345
|
+
</${e.tagFor(Oe)}>
|
|
6346
6346
|
`)}
|
|
6347
|
-
`,
|
|
6347
|
+
`,ms={top:"top",right:"right",bottom:"bottom",left:"left",start:"start",end:"end",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",topStart:"top-start",topEnd:"top-end",bottomStart:"bottom-start",bottomEnd:"bottom-end"};class bs extends ae{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=we.N.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=e=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleRegionMouseOver=e=>{this.isRegionHovered=!0},this.handleRegionMouseOut=e=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=e=>{this.tooltipVisible?this.isAnchorHoveredFocused=!0:this.startShowDelayTimer()},this.handleAnchorMouseOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=e=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout((()=>{this.updateTooltipVisibility()}),60))},this.clearHideDelayTimer=()=>{null!==this.hideDelayTimer&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.showDelayTimer&&(this.showDelayTimer=window.setTimeout((()=>{this.startHover()}),this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{null!==this.showDelayTimer&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{const e=this.getRootNode();return e instanceof ShadowRoot?e.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.tooltipVisible&&e.key===pe.CX)this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused||this.isRegionHovered)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=Fe(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),o.DOM.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(e){if(this.$fastController.isConnected){if(null!=e&&(e.removeEventListener("mouseover",this.handleAnchorMouseOver),e.removeEventListener("mouseout",this.handleAnchorMouseOut),e.removeEventListener("focusin",this.handleAnchorFocusIn),e.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const e=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach((t=>{t.id===e&&this.startShowDelayTimer()}))}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case ms.top:case ms.bottom:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case ms.right:case ms.left:case ms.start:case ms.end:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case ms.topLeft:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case ms.topRight:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case ms.bottomLeft:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case ms.bottomRight:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case ms.topStart:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case ms.topEnd:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case ms.bottomStart:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case ms.bottomEnd:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],bs.prototype,"visible",void 0),(0,h.__decorate)([o.attr],bs.prototype,"anchor",void 0),(0,h.__decorate)([o.attr],bs.prototype,"delay",void 0),(0,h.__decorate)([o.attr],bs.prototype,"position",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"auto-update-mode"})],bs.prototype,"autoUpdateMode",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"horizontal-viewport-lock"})],bs.prototype,"horizontalViewportLock",void 0),(0,h.__decorate)([(0,o.attr)({attribute:"vertical-viewport-lock"})],bs.prototype,"verticalViewportLock",void 0),(0,h.__decorate)([o.observable],bs.prototype,"anchorElement",void 0),(0,h.__decorate)([o.observable],bs.prototype,"viewportElement",void 0),(0,h.__decorate)([o.observable],bs.prototype,"verticalPositioningMode",void 0),(0,h.__decorate)([o.observable],bs.prototype,"horizontalPositioningMode",void 0),(0,h.__decorate)([o.observable],bs.prototype,"horizontalInset",void 0),(0,h.__decorate)([o.observable],bs.prototype,"verticalInset",void 0),(0,h.__decorate)([o.observable],bs.prototype,"horizontalScaling",void 0),(0,h.__decorate)([o.observable],bs.prototype,"verticalScaling",void 0),(0,h.__decorate)([o.observable],bs.prototype,"verticalDefaultPosition",void 0),(0,h.__decorate)([o.observable],bs.prototype,"horizontalDefaultPosition",void 0),(0,h.__decorate)([o.observable],bs.prototype,"tooltipVisible",void 0),(0,h.__decorate)([o.observable],bs.prototype,"currentDirection",void 0);const fs=(e,t)=>o.html`
|
|
6348
6348
|
<template
|
|
6349
6349
|
role="treeitem"
|
|
6350
6350
|
slot="${e=>e.isNestedItem()?"item":void 0}"
|
|
@@ -6384,7 +6384,7 @@
|
|
|
6384
6384
|
</div>
|
|
6385
6385
|
`)}
|
|
6386
6386
|
</template>
|
|
6387
|
-
`;function
|
|
6387
|
+
`;function vs(e){return It(e)&&"treeitem"===e.getAttribute("role")}class ys extends ae{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>vs(this.parentElement),this.handleExpandCollapseButtonClick=e=>{this.disabled||e.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=e=>{this.setAttribute("tabindex","0")},this.handleBlur=e=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(e,t){this.$fastController.isConnected&&this.items.forEach((e=>{vs(e)&&(e.nested=!0)}))}static focusItem(e){e.focusable=!0,e.focus()}childItemLength(){const e=this.childItems.filter((e=>vs(e)));return e?e.length:0}}(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],ys.prototype,"expanded",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],ys.prototype,"selected",void 0),(0,h.__decorate)([(0,o.attr)({mode:"boolean"})],ys.prototype,"disabled",void 0),(0,h.__decorate)([o.observable],ys.prototype,"focusable",void 0),(0,h.__decorate)([o.observable],ys.prototype,"childItems",void 0),(0,h.__decorate)([o.observable],ys.prototype,"items",void 0),(0,h.__decorate)([o.observable],ys.prototype,"nested",void 0),(0,h.__decorate)([o.observable],ys.prototype,"renderCollapsedChildren",void 0),he(ys,s);const xs=(e,t)=>o.html`
|
|
6388
6388
|
<template
|
|
6389
6389
|
role="tree"
|
|
6390
6390
|
${(0,o.ref)("treeView")}
|
|
@@ -6396,7 +6396,7 @@
|
|
|
6396
6396
|
>
|
|
6397
6397
|
<slot ${(0,o.slotted)("slottedTreeItems")}></slot>
|
|
6398
6398
|
</template>
|
|
6399
|
-
`;class Ds extends ae{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=e=>{if(!(this.slottedTreeItems.length<1))return e.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&Os.focusItem(this.currentFocused))):void(this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target))},this.handleBlur=e=>{e.target instanceof HTMLElement&&(null===e.relatedTarget||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=e=>{if(e.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const t=this.getVisibleNodes();switch(e.key){case xe:return void(t.length&&Os.focusItem(t[0]));case $e:return void(t.length&&Os.focusItem(t[t.length-1]));case me:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;t instanceof Os&&t.childItemLength()>0&&t.expanded?t.expanded=!1:t instanceof Os&&t.parentElement instanceof Os&&Os.focusItem(t.parentElement)}return!1;case be:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;t instanceof Os&&t.childItemLength()>0&&!t.expanded?t.expanded=!0:t instanceof Os&&t.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case ge:return void(e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target));case fe:return void(e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target));case ve:return void this.handleClick(e)}return!0},this.handleSelectedChange=e=>{if(e.defaultPrevented)return;if(!(e.target instanceof Element&&Fs(e.target)))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&(this.currentSelected.selected=!1),this.currentSelected=t):t.selected||this.currentSelected!==t||(this.currentSelected=null)},this.setItems=()=>{const e=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=e,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach((e=>{Fs(e)&&(e.nested=this.nested)}))},this.isFocusableElement=e=>Fs(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),o.DOM.queueUpdate((()=>{this.setItems()}))}handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element&&Fs(e.target)))return!0;const t=e.target;t.disabled||(t.selected=!t.selected)}focusNextNode(e,t){const i=this.getVisibleNodes();if(!i)return;const o=i[i.indexOf(t)+e];Bt(o)&&Os.focusItem(o)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(this.isSelectedElement);return-1===t&&(t=e.findIndex(this.isFocusableElement)),-1!==t?e[t]:null}checkForNestedItems(){return this.slottedTreeItems.some((e=>Fs(e)&&e.querySelector("[role='treeitem']")))}getVisibleNodes(){return function(e,t){if(!e||!t||!Bt(e))return;return Array.from(e.querySelectorAll(t)).filter((e=>null!==e.offsetParent))}(this,"[role='treeitem']")||[]}}(0,h.__decorate)([(0,o.attr)({attribute:"render-collapsed-nodes"})],Ds.prototype,"renderCollapsedNodes",void 0),(0,h.__decorate)([o.observable],Ds.prototype,"currentSelected",void 0),(0,h.__decorate)([o.observable],Ds.prototype,"slottedTreeItems",void 0);class Rs{constructor(e){this.listenerCache=new WeakMap,this.query=e}bind(e){const{query:t}=this,i=this.constructListener(e);i.bind(t)(),t.addListener(i),this.listenerCache.set(e,i)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeListener(t),this.listenerCache.delete(e))}}class Es extends Rs{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Es(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!t?(e.$fastController.addStyles(i),t=o):!o&&t&&(e.$fastController.removeStyles(i),t=o)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}}const Ls=Es.with(window.matchMedia("(forced-colors)")),As=Es.with(window.matchMedia("(prefers-color-scheme: dark)")),Vs=Es.with(window.matchMedia("(prefers-color-scheme: light)"));class Ps{constructor(e,t,i){this.propertyName=e,this.value=t,this.styles=i}bind(e){o.Observable.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){o.Observable.getNotifier(e).unsubscribe(this,this.propertyName),e.$fastController.removeStyles(this.styles)}handleChange(e,t){e[t]===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}}const Bs="not-allowed",Ms=":host([hidden]){display:none}";function zs(e){return`${Ms}:host{display:${e}}`}const Ns=function(){if("boolean"==typeof Mt)return Mt;if(!(0,Pt.N)())return Mt=!1,Mt;const e=document.createElement("style"),t=function(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Mt=!0}catch(e){Mt=!1}finally{document.head.removeChild(e)}return Mt}()?"focus-visible":"focus"},15878:(e,t,i)=>{i.d(t,{A:()=>g});var o=i(90779),s=i(1154),r=i(95986),n=i(68228);class a{constructor(){this.handler=e=>{const{shouldHandleEvent:t,href:i}=this.getEventInfo(e);t&&(e.preventDefault(),s.AW.path.push(i))}}connect(){window.addEventListener("click",this.handler,!0)}disconnect(){window.removeEventListener("click",this.handler)}getEventInfo(e){const t={shouldHandleEvent:!1,href:null,anchor:null},i=this.findClosestAnchor(e);if(!i||!this.targetIsThisWindow(i))return t;if(i.hasAttribute("download")||i.hasAttribute("router-ignore")||i.hasAttribute("data-router-ignore"))return t;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return t;const o=i.getAttribute("href");t.anchor=i,t.href=o;const s=1===e.which,r=o&&!("#"===o.charAt(0)||/^[a-z]+:/i.test(o));return t.shouldHandleEvent=s&&!!r,t}findClosestAnchor(e){const t=e.composedPath();for(let e=0,i=t.length;e<i;++e){const i=t[e];if("A"===i.tagName)return i}return e.target}targetIsThisWindow(e){const t=e.getAttribute("target");return!t||t===window.name||"_self"===t}}var l=i(22964);class c{constructor(e,t,i,o,s){this.name=e,this.commitActions=o,this.cancelActions=s,this.routes=[],this.routers=[],this.canceled=!1,this.titles=[],this.routes.push(t),this.routers.push(i)}get route(){return this.routes[this.routes.length-1]}get router(){return this.routers[this.routers.length-1]}cancel(e){this.canceled=!0,e&&this.cancelActions.push(e)}onCommit(e){this.commitActions.push(e)}onCancel(e){this.cancelActions.push(e)}setTitle(e){const t=this.router.level;for(;this.titles.length<t+1;)this.titles.push([]);this.titles[t].push(e)}evaluateContributor(e,t=this.route,i=this.router){return(0,o.__awaiter)(this,void 0,void 0,(function*(){(0,l.u)(e,this.name)&&(this.routes.push(t),this.routers.push(i),yield e[this.name](this),this.routes.pop(),this.routers.pop())}))}}class h{constructor(){this.phases=["navigate","leave","construct","enter","commit"]}run(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const i=e.config.createEventSink(),o=yield e.config.recognizeRoute(t.path);if(null===o)return void i.onUnhandledNavigationMessage(e,t);const s=o.route,r=o.command;i.onNavigationBegin(e,s,r);const n=[],a=[];let l=n;const h=[yield r.createContributor(e,s),e,this];for(const t of this.phases){const o=new c(t,s,e,n,a);if(i.onPhaseBegin(o),o.canceled)l=a;else for(const e of h)if(yield o.evaluateContributor(e),o.canceled){l=a;break}if(i.onPhaseEnd(o),o.canceled)break}yield Promise.all(l.map((e=>e()))).then((()=>i.onNavigationEnd(e,s,r)))}))}commit(e){const t=e.router.config.createTitleBuilder();document.title=t.buildTitle(e.router.config.title,e.titles)}}class d{constructor(e=" - ",t=":"){this.segmentSeparator=e,this.fragmentSeparator=t}joinTitles(e,t){return""===e?t:""===t?e:`${e}${this.segmentSeparator}${t}`}buildTitle(e,t){let i=e;for(const e of t){i&&(i+=this.segmentSeparator);let t="";for(const i of e)t&&(t+=this.fragmentSeparator),t+=i;i+=t}return i}}class u{onUnhandledNavigationMessage(e,t){}onNavigationBegin(e,t,i){}onPhaseBegin(e){}onPhaseEnd(e){}onNavigationEnd(e,t,i){}}var p=i(25810);class g{constructor(){this.isConfigured=!1,this.routes=new n.R(this),this.contributors=[],this.defaultLayout=r.Ar.default,this.defaultTransition=r.uT.default,this.title="",this.parent=null}createNavigationQueue(){return this.construct(s.p2)}createLinkHandler(){return this.construct(a)}createNavigationProcess(){return new h}createEventSink(){return this.construct(u)}createTitleBuilder(){return this.construct(d)}createRouteRecognizer(){return this.construct(p.mA)}construct(e){return null!==this.parent?this.parent.construct(e):new e}recognizeRoute(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.recognize(e)}))}generateRouteFromName(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.generateFromName(e,t)}))}generateRouteFromPath(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.generateFromPath(e,t)}))}findContributors(e){return this.contributors.filter((t=>(0,l.u)(t,e)))}cached(e){let t=null;return()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){return null===t&&(t=new e),t}))}ensureConfigured(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.isConfigured||(yield this.configure(),this.isConfigured=!0)}))}}},22964:(e,t,i)=>{i.d(t,{F:()=>c,u:()=>r});var o=i(79292),s=i(37002);function r(e,t){return t in e}const n={lifecycle:!0,parameters:!0};class a extends o.HTMLDirective{constructor(e){super(),this.options=e}createPlaceholder(e){return o.DOM.createCustomAttributePlaceholder("fast-navigation-contributor",e)}createBehavior(e){return new l(e,this.options)}}class l{constructor(e,t){this.contributor=e,this.options=t,this.router=null}bind(e,t){if(this.options.lifecycle&&(this.router=t.router||s.F0.find(this.contributor),this.router.addContributor(this.contributor)),this.options.parameters){const t=this.contributor,i=e;for(const e in i)t[e]=i[e]}}unbind(e){null!==this.router&&this.router.removeContributor(this.contributor)}}function c(e){return new a(Object.assign({},n,e))}},1154:(e,t,i)=>{i.d(t,{AW:()=>c,p2:()=>h,y:()=>r});var o=i(90779),s=i(37002);class r{constructor(e){this.path=e}}const n=new Set,a=Object.freeze({register(e){n.add(e)},unregister(e){n.delete(e)}}),l=/^([a-z][a-z0-9+\-.]*:)?\/\//i,c=Object.freeze({path:Object.freeze({get current(){return location.pathname+location.search},generateRoute(e,t,i={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let o="config"in e?e:s.F0.find(e);for(;null!==o;){const e=yield o.config.generateRouteFromPath(t,i);if(null!==e)return e;o=o.parent}return null}))},push(e,t=!0){e&&l.test(e)?location.href=e:(history.pushState({},document.title,e),t&&c.path.trigger(e))},replace(e,t=!0){e&&l.test(e)?location.href=e:(history.replaceState({},document.title,e),t&&c.path.trigger(e))},trigger(e){const t=new r(e);for(const e of n)e.enqueue(t)}}),name:Object.freeze({generateRoute(e,t,i={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let o="config"in e?e:s.F0.find(e);for(;null!==o;){const e=yield o.config.generateRouteFromName(t,i);if(null!==e)return e;o=o.parent}return null}))},push(e,t,i={},s=!0){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(e,t,i);null!==o&&c.path.push(o,s)}))},replace(e,t,i={},s=!0){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(e,t,i);null!==o&&c.path.replace(o,s)}))},trigger(e,t,i={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(e,t,i);null!==o&&c.path.trigger(o)}))}})});class h{constructor(){this.queue=[],this.promise=null,this.resolve=null}connect(){this.enqueue(new r(c.path.current)),window.addEventListener("popstate",this),a.register(this)}disconnect(){this.queue=[],this.promise=null,this.resolve=null,window.removeEventListener("popstate",this),a.unregister(this)}receive(){return null!==this.promise||(this.promise=new Promise((e=>this.resolve=e)),Promise.resolve().then((()=>this.tryDequeue()))),this.promise}enqueue(e){this.queue.push(e),this.tryDequeue()}tryDequeue(){if(null===this.resolve||0===this.queue.length)return;const e=this.queue[this.queue.length-1],t=this.resolve;this.queue.length=0,this.promise=null,this.resolve=null,t(e)}handleEvent(e){this.enqueue(new r(c.path.current))}}},53476:(e,t,i)=>{i.d(t,{L:()=>l});const o=encodeURIComponent,s=e=>o(e).replace("%24","$");function r(e,t,i){let n=[];if(null==t)return n;if(Array.isArray(t))for(let a=0,l=t.length;a<l;a++)if(i)n.push(`${s(e)}=${o(t[a])}`);else{const i=e+"["+("object"==typeof t[a]&&null!==t[a]?a:"")+"]";n=n.concat(r(i,t[a]))}else if("object"!=typeof t||i)n.push(`${s(e)}=${o(t)}`);else for(const i in t)n=n.concat(r(e+"["+i+"]",t[i]));return n}function n(e,t){return Array.isArray(e)?(e.push(t),e):void 0!==e?[e,t]:t}function a(e,t,i){let o=e;const s=t.length-1;for(let e=0;e<=s;e++){const r=""===t[e]?o.length:t[e];if(e<s){const i=o[r]&&"object"!=typeof o[r]?[o[r]]:o[r];o=o[r]=i||(isNaN(t[e+1])?{}:[])}else o=o[r]=i}}const l=Object.freeze({get current(){return location.search},build(e,t){let i=[];const o=Object.keys(e||{}).sort();for(let s=0,n=o.length;s<n;s++){const n=o[s];i=i.concat(r(n,e[n],t))}return 0===i.length?"":i.join("&")},separate(e){const t=e.indexOf("?");let i="";return-1!==t&&(i=e.substr(t+1,e.length),e=e.substr(0,t)),{path:e,queryString:i}},parse(e){const t={};if(!e||"string"!=typeof e)return t;let i=e;"?"===i.charAt(0)&&(i=i.substr(1));const o=i.replace(/\+/g," ").split("&");for(let e=0;e<o.length;e++){const i=o[e].split("="),s=decodeURIComponent(i[0]);if(!s)continue;let r=s.split("]["),l=r.length-1;if(/\[/.test(r[0])&&/\]$/.test(r[l])?(r[l]=r[l].replace(/\]$/,""),r=r.shift().split("[").concat(r),l=r.length-1):l=0,i.length>=2){const e=i[1]?decodeURIComponent(i[1]):"";l?a(t,r,e):t[s]=n(t[s],e)}else t[s]=!0}return t}})},25810:(e,t,i)=>{i.d(t,{Bw:()=>n,Ek:()=>l,F5:()=>a,mA:()=>p});var o=i(90779),s=i(53476);const r=e=>e;class n{constructor(e,t,i){this.path=e,this.name=t,this.caseSensitive=i}}class a{constructor(e,t,i,o){this.route=e,this.paramNames=t,this.paramTypes=i,this.settings=o}get path(){return this.route.path}}class l{constructor(e,t,i,o){this.endpoint=e,this.params=t,this.typedParams=i,this.queryParams=o,this.allParams=Object.assign(Object.assign({},t),o),this.allTypedParams=Object.assign(Object.assign({},i),o)}get settings(){return this.endpoint.settings}}class c{constructor(e,t,i,o){var s;this.chars=e,this.states=t,this.skippedStates=i,this.result=o,this.head=t[t.length-1],this.endpoint=null===(s=this.head)||void 0===s?void 0:s.endpoint}advance(e){const{chars:t,states:i,skippedStates:o,result:s}=this;let r=null,n=0;const a=i[i.length-1];function l(h,d){if(h.isMatch(e)&&(1==++n?r=h:s.add(new c(t.concat(e),i.concat(h),null===d?o:o.concat(d),s))),null===a.segment&&h.isOptional&&null!==h.nextStates){if(h.nextStates.length>1)throw new Error(`${h.nextStates.length} nextStates`);const e=h.nextStates[0];if(!e.isSeparator)throw new Error("Not a separator");if(null!==e.nextStates)for(const t of e.nextStates)l(t,h)}}if(a.isDynamic&&l(a,null),null!==a.nextStates)for(const e of a.nextStates)l(e,null);null!==r&&(i.push(this.head=r),t.push(e),null!==r.endpoint&&(this.endpoint=r.endpoint)),0===n&&s.remove(this)}finalize(){!function e(t,i){const o=i.nextStates;if(null!==o)if(1===o.length&&null===o[0].segment)e(t,o[0]);else for(const i of o)if(i.isOptional&&null!==i.endpoint){if(t.push(i),null!==i.nextStates)for(const o of i.nextStates)e(t,o);break}}(this.skippedStates,this.head)}getParams(){const{states:e,chars:t,endpoint:i}=this,o={};for(const e of i.paramNames)o[e]=void 0;for(let i=0,s=e.length;i<s;++i){const s=e[i];if(s.isDynamic){const e=s.segment.name;void 0===o[e]?o[e]=t[i]:o[e]+=t[i]}}return o}compareTo(e){const t=this.states,i=e.states;for(let e=0,o=0,s=Math.max(t.length,i.length);e<s;++e){let s=t[e];if(void 0===s)return 1;let r=i[o];if(void 0===r)return-1;let n=s.segment,a=r.segment;if(null===n){if(null===a){++o;continue}if(void 0===(s=t[++e]))return 1;n=s.segment}else if(null===a){if(void 0===(r=i[++o]))return-1;a=r.segment}if(n.kind<a.kind)return 1;if(n.kind>a.kind)return-1;++o}const o=this.skippedStates,s=e.skippedStates,r=o.length,n=s.length;if(r<n)return 1;if(r>n)return-1;for(let e=0;e<r;++e){const t=o[e],i=s[e];if(t.length<i.length)return 1;if(t.length>i.length)return-1}return 0}}function h(e){return null!==e.head.endpoint}function d(e,t){return e.compareTo(t)}class u{constructor(e){this.candidates=[],this.candidates=[new c([""],[e],[],this)]}get isEmpty(){return 0===this.candidates.length}getSolution(){const e=this.candidates.filter(h);if(0===e.length)return null;for(const t of e)t.finalize();return e.sort(d),e[0]}add(e){this.candidates.push(e)}remove(e){this.candidates.splice(this.candidates.indexOf(e),1)}advance(e){const t=this.candidates.slice();for(const i of t)i.advance(e)}}class p{constructor(){this.names=new Map,this.paths=new Map,this.rootState=new g(null,null,"")}add(e,t){if(e instanceof Array)for(const i of e)this.$add(i,t);else this.$add(e,t)}$add(e,t){const i=e.path,o=new n(e.path,e.name||"",!0===e.caseSensitive),s=""===i?[""]:i.split("/").filter(m),r=[],l=[];let c=this.rootState;const h=[];for(const e of s)switch(c=c.append(null,"/"),e.charAt(0)){case"{":{const t=e.slice(1,-1).split(":").map((e=>e.trim()));2===t.length?l.push(t[1]):l.push("string");const i=t[0].endsWith("?"),o=i?t[0].slice(0,-1):t[0];r.push(o);const s=new f(o,i);h.push(s),c=s.appendTo(c);break}case"*":{const t=e.slice(1);r.push(t),l.push("string");const i=new v(t);h.push(i),c=i.appendTo(c);break}default:{const t=new b(e,o.caseSensitive);h.push(t),c=t.appendTo(c);break}}const d=new a(o,r,l,t||null);c.setEndpoint(d),this.paths.set(i,h),e.name&&this.names.set(e.name,h)}recognize(e,t={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const i=s.L.separate(e),o=s.L.parse(i.queryString);(e=decodeURI(i.path)).startsWith("/")||(e=`/${e}`),e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1));const n=new u(this.rootState);for(let t=0,i=e.length;t<i;++t){const i=e.charAt(t);if(n.advance(i),n.isEmpty)return null}const a=n.getSolution();if(null===a)return null;const{endpoint:c}=a,h=c.paramNames,d=c.paramTypes,p=a.getParams(),g={};for(let e=0,i=h.length;e<i;++e){const i=h[e],o=t[d[e]]||r,s=p[i],n=yield o(s);g[i]=n}return new l(c,p,g,o)}))}generateFromName(e,t){return this.generate(this.names.get(e),t)}generateFromPath(e,t){return this.generate(this.paths.get(e),t)}generate(e,t){if(!e)return null;const i=Object.assign({},t),o={};let r="";for(let t=0,s=e.length;t<s;t++){const s=e[t],n=s.generate(i,o);if(null==n){if(s instanceof f&&!s.optional)throw new Error(`A value is required for route parameter '${s.name}'.`)}else r+="/",r+=n}"/"!==r.charAt(0)&&(r="/"+r);for(const e in o)delete i[e];const n=s.L.build(i);return r+=n?`?${n}`:"",r}}class g{constructor(e,t,i){switch(this.prevState=e,this.segment=t,this.value=i,this.nextStates=null,this.endpoint=null,null==t?void 0:t.kind){case 2:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!0,this.isOptional=t.optional;break;case 1:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!0,this.isOptional=!1;break;case 3:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!1,this.isOptional=!1;break;case void 0:this.length=null===e?0:e.length,this.isSeparator=!0,this.isDynamic=!1,this.isOptional=!1}}append(e,t){let i,o=this.nextStates;return null===o?(i=void 0,o=this.nextStates=[]):i=null===e?o.find((e=>e.value===t)):o.find((t=>{var i;return null===(i=t.segment)||void 0===i?void 0:i.equals(e)})),void 0===i&&o.push(i=new g(this,e,t)),i}setEndpoint(e){if(null!==this.endpoint)throw new Error(`Cannot add ambiguous route. The pattern '${e.route.path}' clashes with '${this.endpoint.route.path}'`);this.endpoint=e,this.isOptional&&(this.prevState.setEndpoint(e),this.prevState.isSeparator&&null!==this.prevState.prevState&&this.prevState.prevState.setEndpoint(e))}isMatch(e){const t=this.segment;switch(null==t?void 0:t.kind){case 2:return!this.value.includes(e);case 1:return!0;case 3:case void 0:return this.value.includes(e)}}}function m(e){return e.length>0}class b{constructor(e,t){this.value=e,this.caseSensitive=t}get kind(){return 3}appendTo(e){const{value:t,value:{length:i}}=this;if(this.caseSensitive)for(let o=0;o<i;++o)e=e.append(this,t.charAt(o));else for(let o=0;o<i;++o){const i=t.charAt(o);e=e.append(this,i.toUpperCase()+i.toLowerCase())}return e}generate(){return this.value}equals(e){return 3===e.kind&&e.caseSensitive===this.caseSensitive&&e.value===this.value}}class f{constructor(e,t){this.name=e,this.optional=t}get kind(){return 2}appendTo(e){return e=e.append(this,"/")}generate(e,t){return t[this.name]=!0,e[this.name]}equals(e){return 2===e.kind&&e.optional===this.optional&&e.name===this.name}}class v{constructor(e){this.name=e}get kind(){return 1}appendTo(e){return e=e.append(this,"")}generate(e,t){return t[this.name]=!0,e[this.name]}equals(e){return 1===e.kind&&e.name===this.name}}},37002:(e,t,i)=>{i.d(t,{F0:()=>d,ep:()=>u});var o=i(90779),s=i(79292),r=i(1154),n=i(68228),a=i(95986);const l="$router";function c(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}function h(e){let t=e;for(;t=c(t);)if(l in t)return t[l];return null}const d=Object.freeze({getOrCreateFor(e){const t=e[l];return void 0!==t?t:e[l]=new p(e)},find:e=>e[l]||h(e),from(e){class t extends e{constructor(){super(),d.getOrCreateFor(this)}get config(){return this[l].config}set config(e){this[l].config=e}}const i=t.prototype;if("connectedCallback"in i){const e=i.connectedCallback;i.connectedCallback=function(){e.call(this),this[l].connect()}}else i.connectedCallback=function(){this[l].connect()};if("disconnectedCallback"in i){const e=i.disconnectedCallback;i.disconnectedCallback=function(){e.call(this),this[l].disconnect()}}else i.disconnectedCallback=function(){this[l].disconnect()};return t}});function u(e){return e instanceof s.FASTElement}class p{constructor(e){this.host=e,this.parentRouter=void 0,this.contributors=new Set,this.navigationQueue=null,this.linkHandler=null,this.newView=null,this.newRoute=null,this.childCommandContributor=null,this.childRoute=null,this.isConnected=!1,this.routerConfig=null,this.view=null,this.route=null,this.onNavigationMessage=e=>(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.config.createNavigationProcess();yield t.run(this,e),this.navigationQueue.receive().then(this.onNavigationMessage)})),e[l]=this}get config(){return this.routerConfig}set config(e){this.routerConfig=e,this.tryConnect()}get parent(){if(void 0===this.parentRouter){if(!this.isConnected)return null;this.parentRouter=h(this.host)}return this.parentRouter||null}get level(){return null===this.parent?0:this.parent.level+1}shouldRender(e){var t;if(this.route&&this.route.endpoint.path===e.endpoint.path){const i=null==e?void 0:e.allParams,o=null===(t=this.route)||void 0===t?void 0:t.allParams;if(JSON.stringify(o)===JSON.stringify(i))return!1}return!0}beginRender(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return this.newRoute=e,this.newView=yield t.createView(),this.newView.bind(e.allTypedParams,a.GC.create(this)),this.newView.appendTo(this.host),yield t.transition.begin(this.host,this.view,this.newView),{commit:this.renderOperationCommit.bind(this,t.layout,t.transition),rollback:this.renderOperationRollback.bind(this,t.transition)}}))}connect(){this.isConnected=!0,this.tryConnect()}disconnect(){null===this.parent?(null!==this.navigationQueue&&(this.navigationQueue.disconnect(),this.navigationQueue=null),null!==this.linkHandler&&(this.linkHandler.disconnect(),this.linkHandler=null)):this.parent.removeContributor(this),this.isConnected=!1,this.parentRouter=void 0}addContributor(e){this.contributors.add(e)}removeContributor(e){this.contributors.delete(e)}tryConnect(){null!==this.config&&this.isConnected&&(null===this.parent?(null!==this.navigationQueue&&this.navigationQueue.disconnect(),this.navigationQueue=this.config.createNavigationQueue(),this.navigationQueue.connect(),this.navigationQueue.receive().then(this.onNavigationMessage),null!==this.linkHandler&&this.linkHandler.disconnect(),this.linkHandler=this.config.createLinkHandler(),this.linkHandler.connect()):(this.config.parent=this.parent.config,this.parent.addContributor(this)))}renderOperationCommit(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield e.beforeCommit(this.host),yield t.commit(this.host,this.view,this.newView),yield e.afterCommit(this.host),null!==this.view&&this.view.dispose(),this.route=this.newRoute,this.view=this.newView,this.newRoute=null,this.newView=null}))}renderOperationRollback(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){null!==this.newView&&(yield e.rollback(this.host,this.view,this.newView),this.newView.dispose(),this.newRoute=null,this.newView=null)}))}navigate(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.tunnel(e)}))}leave(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(yield this.tunnel(e),!e.canceled){const t=this.contributors;this.contributors=new Set,e.onCancel((()=>this.contributors=t))}}))}construct(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(null!==this.parent){const t=e.route.allParams[n.X]||"",i=yield this.config.recognizeRoute(t);if(null===i){return this.config.createEventSink().onUnhandledNavigationMessage(this,new r.y(t)),void e.cancel()}this.childRoute=i.route,this.childCommandContributor=yield i.command.createContributor(this,i.route)}yield this.tunnel(e)}))}enter(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.tunnel(e)}))}commit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.tunnel(e)}))}tunnel(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.childRoute,i=this.childCommandContributor;if(t&&i&&(yield e.evaluateContributor(i,t,this)),e.canceled)return;const o=[...this.config.findContributors(e.name),...Array.from(this.contributors)];for(const t of o)if(yield e.evaluateContributor(t,void 0,this),e.canceled)return}))}}},68228:(e,t,i)=>{i.d(t,{R:()=>x,X:()=>b});var o=i(90779),s=i(25810),r=i(79292),n=i(95986),a=i(1154),l=i(22964);class c{createContributor(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return{navigate(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){e.cancel()}))}}}))}}class h{constructor(e){this.redirect=e}createContributor(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const e=this.redirect;return{navigate(t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const i=t.router.config,s=(yield i.generateRouteFromName(e,t.route.allParams))||(yield i.generateRouteFromPath(e,t.route.allParams));if(null===s)throw new Error(`Invalid redirect. Name or path not found: ${e}`);t.cancel((()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){return a.AW.path.replace(s)}))))}))}}}))}}function d(e){return r.html`<${e} ${(0,l.F)()}></${e}>`}function u(e){const t=document.createDocumentFragment();t.appendChild(e);const i=new r.HTMLView(t,[(0,l.F)().createBehavior(e)]);return{create:()=>i}}class p{constructor(e,t,i){this.router=e,this.route=t,this.command=i}construct(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.router.shouldRender(this.route)?(this.operation=yield this.router.beginRender(this.route,this.command),e.onCancel((()=>this.operation.rollback()))):e.cancel()}))}commit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.operation.commit(),this.command.title&&e.setTitle(this.command.title)}))}}class g{constructor(e,t){this.owner=e,this.createView=t,this._layout=null,this._transition=null,this.title=""}get transition(){return this._transition||this.owner.defaultTransition}set transition(e){this._transition=e}get layout(){return this._layout||this.owner.defaultLayout}set layout(e){this._layout=e}createContributor(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return new p(e,t,this)}))}static fromDefinition(e,t){let i;i="template"in t?()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){let e=t.template;return"function"==typeof e&&(e=yield e()),e.create()})):()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){let e=t.element,i=null;if(t.factory)i=t.factory;else if("function"==typeof e){let t=r.FASTElementDefinition.forType(e);if(t)i=d(t.name);else if(e=yield e(),"string"==typeof e)i=d(e);else if(e instanceof HTMLElement)i=u(e);else{if(t=r.FASTElementDefinition.forType(e),!t)throw new Error("Invalid value for element in route config.");i=d(t.name)}}else e instanceof HTMLElement?t.factory=i=u(e):t.factory=i=d(e);return i.create()}));const s=new g(e,i);return t.layout&&(t.layout instanceof r.ViewTemplate?s.layout=new n.u3(t.layout):s.layout=t.layout),t.transition&&(s.transition=t.transition),t.title&&(s.title=t.title),s}}var m=i(53476);const b="fast-child-route";function f(e,t){return"command"in t?t.command:"redirect"in t?new h(t.redirect):g.fromDefinition(e,t)}const v=e=>{if(null==e)return!1;switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;default:return!1}},y={number:e=>void 0===e?NaN:parseFloat(e),float:e=>void 0===e?NaN:parseFloat(e),int:e=>void 0===e?NaN:parseInt(e),integer:e=>void 0===e?NaN:parseInt(e),Date:e=>void 0===e?new Date(Date.now()):new Date(e),boolean:v,bool:v};class x{constructor(e){this.owner=e,this._recognizer=null,this.pathToCommand=new Map,this.fallbackCommand=null,this.fallbackSettings=null,this.converters={}}get recognizer(){return null===this._recognizer&&(this._recognizer=this.owner.createRouteRecognizer()),this._recognizer}ignore(e){"string"==typeof e&&(e={path:e}),this.pathToCommand.set(e.path,new c),this.recognizer.add(e,e.settings)}map(...e){for(const t of e){if("children"in t){const e=this.owner.createTitleBuilder(),i=t.children.map((i=>{const o=Object.assign(Object.assign(Object.assign({},t),i),{path:`${t.path}/${i.path}`});if("title"in t||"title"in i){const s=t.title||"",r=i.title||"";o.title=e.joinTitles(s,r)}if("name"in i){const e=t.name?t.name+"/":"";o.name=e+i.name}return o.children===t.children&&delete o.children,o}));this.map(...i);continue}let e;if(e="command"in t?t.command:"redirect"in t?new h(t.redirect):g.fromDefinition(this.owner,t),this.pathToCommand.set(t.path,e),this.recognizer.add(t,t.settings),"childRouters"in t&&t.childRouters){const i=Object.assign(Object.assign({},t),{path:t.path+`/*${b}`});this.pathToCommand.set(i.path,e),this.recognizer.add(i,i.settings)}}}fallback(e){const t=this.owner;this.fallbackCommand="function"==typeof e?{createContributor(i,s){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield e();return f(t,o).createContributor(i,s)}))}}:f(t,e)}converter(e,t){let i;i="convert"in t?t.convert.bind(t):t.prototype&&"convert"in t.prototype?e=>this.owner.construct(t).convert(e):t,this.converters[e]=i}recognize(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.recognizer.recognize(e,this.aggregateConverters());if(null!==t)return{route:t,command:this.pathToCommand.get(t.endpoint.path)};if(null!==this.fallbackCommand){const t=m.L.separate(e),i=m.L.parse(t.queryString);return{route:new s.Ek(new s.F5(new s.Bw("*","",!1),[],[],this.fallbackSettings),{},{},i),command:this.fallbackCommand}}return null}))}generateFromName(e,t){return this.recognizer.generateFromName(e,t)}generateFromPath(e,t){return this.recognizer.generateFromPath(e,t)}aggregateConverters(){return null===this.owner.parent?Object.assign(Object.assign({},y),this.converters):Object.assign(Object.assign({},this.owner.parent.routes.aggregateConverters()),this.converters)}}},95986:(e,t,i)=>{i.d(t,{Ar:()=>c,GC:()=>n,u3:()=>l,uT:()=>a});var o=i(90779),s=i(79292),r=i(37002);const n=Object.freeze({create:e=>Object.create(s.defaultExecutionContext,{router:{value:e}})}),a=Object.freeze({default:Object.freeze({begin(e,t,i){return(0,o.__awaiter)(this,void 0,void 0,(function*(){}))},rollback(e,t,i){return(0,o.__awaiter)(this,void 0,void 0,(function*(){}))},commit(e,t,i){return(0,o.__awaiter)(this,void 0,void 0,(function*(){}))}})});class l{constructor(e=null,t=null,i=!0){this.template=e,this.runBeforeCommit=i,this.styles=null==t?null:Array.isArray(t)?s.ElementStyles.create(t):t instanceof s.ElementStyles?t:s.ElementStyles.create([t])}beforeCommit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.runBeforeCommit&&this.apply(e)}))}afterCommit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.runBeforeCommit||this.apply(e)}))}apply(e){(0,r.ep)(e)&&(e.$fastController.template!==this.template&&(e.$fastController.template=this.template),e.$fastController.styles!==this.styles&&(e.$fastController.styles=this.styles))}}const c=Object.freeze({default:new l(s.html`
|
|
6399
|
+
`;class $s extends ae{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=e=>{if(!(this.slottedTreeItems.length<1))return e.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&ys.focusItem(this.currentFocused))):void(this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target))},this.handleBlur=e=>{e.target instanceof HTMLElement&&(null===e.relatedTarget||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=e=>{if(e.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const t=this.getVisibleNodes();switch(e.key){case pe.tU:return void(t.length&&ys.focusItem(t[0]));case pe.Kh:return void(t.length&&ys.focusItem(t[t.length-1]));case pe.BE:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;t instanceof ys&&t.childItemLength()>0&&t.expanded?t.expanded=!1:t instanceof ys&&t.parentElement instanceof ys&&ys.focusItem(t.parentElement)}return!1;case pe.mr:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;t instanceof ys&&t.childItemLength()>0&&!t.expanded?t.expanded=!0:t instanceof ys&&t.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case pe.iF:return void(e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target));case pe.SB:return void(e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target));case pe.kL:return void this.handleClick(e)}return!0},this.handleSelectedChange=e=>{if(e.defaultPrevented)return;if(!(e.target instanceof Element&&vs(e.target)))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&(this.currentSelected.selected=!1),this.currentSelected=t):t.selected||this.currentSelected!==t||(this.currentSelected=null)},this.setItems=()=>{const e=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=e,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach((e=>{vs(e)&&(e.nested=this.nested)}))},this.isFocusableElement=e=>vs(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),o.DOM.queueUpdate((()=>{this.setItems()}))}handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element&&vs(e.target)))return!0;const t=e.target;t.disabled||(t.selected=!t.selected)}focusNextNode(e,t){const i=this.getVisibleNodes();if(!i)return;const o=i[i.indexOf(t)+e];It(o)&&ys.focusItem(o)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(this.isSelectedElement);return-1===t&&(t=e.findIndex(this.isFocusableElement)),-1!==t?e[t]:null}checkForNestedItems(){return this.slottedTreeItems.some((e=>vs(e)&&e.querySelector("[role='treeitem']")))}getVisibleNodes(){return function(e,t){if(!e||!t||!It(e))return;return Array.from(e.querySelectorAll(t)).filter((e=>null!==e.offsetParent))}(this,"[role='treeitem']")||[]}}(0,h.__decorate)([(0,o.attr)({attribute:"render-collapsed-nodes"})],$s.prototype,"renderCollapsedNodes",void 0),(0,h.__decorate)([o.observable],$s.prototype,"currentSelected",void 0),(0,h.__decorate)([o.observable],$s.prototype,"slottedTreeItems",void 0);class ws{constructor(e){this.listenerCache=new WeakMap,this.query=e}bind(e){const{query:t}=this,i=this.constructListener(e);i.bind(t)(),t.addListener(i),this.listenerCache.set(e,i)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeListener(t),this.listenerCache.delete(e))}}class Cs extends ws{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Cs(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!t?(e.$fastController.addStyles(i),t=o):!o&&t&&(e.$fastController.removeStyles(i),t=o)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}}const ks=Cs.with(window.matchMedia("(forced-colors)")),Ts=Cs.with(window.matchMedia("(prefers-color-scheme: dark)")),Ss=Cs.with(window.matchMedia("(prefers-color-scheme: light)"));class _s{constructor(e,t,i){this.propertyName=e,this.value=t,this.styles=i}bind(e){o.Observable.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){o.Observable.getNotifier(e).unsubscribe(this,this.propertyName),e.$fastController.removeStyles(this.styles)}handleChange(e,t){e[t]===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}}const Is="not-allowed",Fs=":host([hidden]){display:none}";function Os(e){return`${Fs}:host{display:${e}}`}const Hs=function(){if("boolean"==typeof Ft)return Ft;if(!(0,_t.N)())return Ft=!1,Ft;const e=document.createElement("style"),t=function(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Ft=!0}catch(e){Ft=!1}finally{document.head.removeChild(e)}return Ft}()?"focus-visible":"focus"},15878:(e,t,i)=>{i.d(t,{A:()=>g});var o=i(90779),s=i(1154),r=i(95986),n=i(68228);class a{constructor(){this.handler=e=>{const{shouldHandleEvent:t,href:i}=this.getEventInfo(e);t&&(e.preventDefault(),s.AW.path.push(i))}}connect(){window.addEventListener("click",this.handler,!0)}disconnect(){window.removeEventListener("click",this.handler)}getEventInfo(e){const t={shouldHandleEvent:!1,href:null,anchor:null},i=this.findClosestAnchor(e);if(!i||!this.targetIsThisWindow(i))return t;if(i.hasAttribute("download")||i.hasAttribute("router-ignore")||i.hasAttribute("data-router-ignore"))return t;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return t;const o=i.getAttribute("href");t.anchor=i,t.href=o;const s=1===e.which,r=o&&!("#"===o.charAt(0)||/^[a-z]+:/i.test(o));return t.shouldHandleEvent=s&&!!r,t}findClosestAnchor(e){const t=e.composedPath();for(let e=0,i=t.length;e<i;++e){const i=t[e];if("A"===i.tagName)return i}return e.target}targetIsThisWindow(e){const t=e.getAttribute("target");return!t||t===window.name||"_self"===t}}var l=i(22964);class c{constructor(e,t,i,o,s){this.name=e,this.commitActions=o,this.cancelActions=s,this.routes=[],this.routers=[],this.canceled=!1,this.titles=[],this.routes.push(t),this.routers.push(i)}get route(){return this.routes[this.routes.length-1]}get router(){return this.routers[this.routers.length-1]}cancel(e){this.canceled=!0,e&&this.cancelActions.push(e)}onCommit(e){this.commitActions.push(e)}onCancel(e){this.cancelActions.push(e)}setTitle(e){const t=this.router.level;for(;this.titles.length<t+1;)this.titles.push([]);this.titles[t].push(e)}evaluateContributor(e,t=this.route,i=this.router){return(0,o.__awaiter)(this,void 0,void 0,(function*(){(0,l.u)(e,this.name)&&(this.routes.push(t),this.routers.push(i),yield e[this.name](this),this.routes.pop(),this.routers.pop())}))}}class h{constructor(){this.phases=["navigate","leave","construct","enter","commit"]}run(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const i=e.config.createEventSink(),o=yield e.config.recognizeRoute(t.path);if(null===o)return void i.onUnhandledNavigationMessage(e,t);const s=o.route,r=o.command;i.onNavigationBegin(e,s,r);const n=[],a=[];let l=n;const h=[yield r.createContributor(e,s),e,this];for(const t of this.phases){const o=new c(t,s,e,n,a);if(i.onPhaseBegin(o),o.canceled)l=a;else for(const e of h)if(yield o.evaluateContributor(e),o.canceled){l=a;break}if(i.onPhaseEnd(o),o.canceled)break}yield Promise.all(l.map((e=>e()))).then((()=>i.onNavigationEnd(e,s,r)))}))}commit(e){const t=e.router.config.createTitleBuilder();document.title=t.buildTitle(e.router.config.title,e.titles)}}class d{constructor(e=" - ",t=":"){this.segmentSeparator=e,this.fragmentSeparator=t}joinTitles(e,t){return""===e?t:""===t?e:`${e}${this.segmentSeparator}${t}`}buildTitle(e,t){let i=e;for(const e of t){i&&(i+=this.segmentSeparator);let t="";for(const i of e)t&&(t+=this.fragmentSeparator),t+=i;i+=t}return i}}class u{onUnhandledNavigationMessage(e,t){}onNavigationBegin(e,t,i){}onPhaseBegin(e){}onPhaseEnd(e){}onNavigationEnd(e,t,i){}}var p=i(25810);class g{constructor(){this.isConfigured=!1,this.routes=new n.R(this),this.contributors=[],this.defaultLayout=r.Ar.default,this.defaultTransition=r.uT.default,this.title="",this.parent=null}createNavigationQueue(){return this.construct(s.p2)}createLinkHandler(){return this.construct(a)}createNavigationProcess(){return new h}createEventSink(){return this.construct(u)}createTitleBuilder(){return this.construct(d)}createRouteRecognizer(){return this.construct(p.mA)}construct(e){return null!==this.parent?this.parent.construct(e):new e}recognizeRoute(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.recognize(e)}))}generateRouteFromName(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.generateFromName(e,t)}))}generateRouteFromPath(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.generateFromPath(e,t)}))}findContributors(e){return this.contributors.filter((t=>(0,l.u)(t,e)))}cached(e){let t=null;return()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){return null===t&&(t=new e),t}))}ensureConfigured(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.isConfigured||(yield this.configure(),this.isConfigured=!0)}))}}},22964:(e,t,i)=>{i.d(t,{F:()=>c,u:()=>r});var o=i(79292),s=i(37002);function r(e,t){return t in e}const n={lifecycle:!0,parameters:!0};class a extends o.HTMLDirective{constructor(e){super(),this.options=e}createPlaceholder(e){return o.DOM.createCustomAttributePlaceholder("fast-navigation-contributor",e)}createBehavior(e){return new l(e,this.options)}}class l{constructor(e,t){this.contributor=e,this.options=t,this.router=null}bind(e,t){if(this.options.lifecycle&&(this.router=t.router||s.F0.find(this.contributor),this.router.addContributor(this.contributor)),this.options.parameters){const t=this.contributor,i=e;for(const e in i)t[e]=i[e]}}unbind(e){null!==this.router&&this.router.removeContributor(this.contributor)}}function c(e){return new a(Object.assign({},n,e))}},1154:(e,t,i)=>{i.d(t,{AW:()=>c,p2:()=>h,y:()=>r});var o=i(90779),s=i(37002);class r{constructor(e){this.path=e}}const n=new Set,a=Object.freeze({register(e){n.add(e)},unregister(e){n.delete(e)}}),l=/^([a-z][a-z0-9+\-.]*:)?\/\//i,c=Object.freeze({path:Object.freeze({get current(){return location.pathname+location.search},generateRoute(e,t,i={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let o="config"in e?e:s.F0.find(e);for(;null!==o;){const e=yield o.config.generateRouteFromPath(t,i);if(null!==e)return e;o=o.parent}return null}))},push(e,t=!0){e&&l.test(e)?location.href=e:(history.pushState({},document.title,e),t&&c.path.trigger(e))},replace(e,t=!0){e&&l.test(e)?location.href=e:(history.replaceState({},document.title,e),t&&c.path.trigger(e))},trigger(e){const t=new r(e);for(const e of n)e.enqueue(t)}}),name:Object.freeze({generateRoute(e,t,i={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){let o="config"in e?e:s.F0.find(e);for(;null!==o;){const e=yield o.config.generateRouteFromName(t,i);if(null!==e)return e;o=o.parent}return null}))},push(e,t,i={},s=!0){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(e,t,i);null!==o&&c.path.push(o,s)}))},replace(e,t,i={},s=!0){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(e,t,i);null!==o&&c.path.replace(o,s)}))},trigger(e,t,i={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(e,t,i);null!==o&&c.path.trigger(o)}))}})});class h{constructor(){this.queue=[],this.promise=null,this.resolve=null}connect(){this.enqueue(new r(c.path.current)),window.addEventListener("popstate",this),a.register(this)}disconnect(){this.queue=[],this.promise=null,this.resolve=null,window.removeEventListener("popstate",this),a.unregister(this)}receive(){return null!==this.promise||(this.promise=new Promise((e=>this.resolve=e)),Promise.resolve().then((()=>this.tryDequeue()))),this.promise}enqueue(e){this.queue.push(e),this.tryDequeue()}tryDequeue(){if(null===this.resolve||0===this.queue.length)return;const e=this.queue[this.queue.length-1],t=this.resolve;this.queue.length=0,this.promise=null,this.resolve=null,t(e)}handleEvent(e){this.enqueue(new r(c.path.current))}}},53476:(e,t,i)=>{i.d(t,{L:()=>l});const o=encodeURIComponent,s=e=>o(e).replace("%24","$");function r(e,t,i){let n=[];if(null==t)return n;if(Array.isArray(t))for(let a=0,l=t.length;a<l;a++)if(i)n.push(`${s(e)}=${o(t[a])}`);else{const i=e+"["+("object"==typeof t[a]&&null!==t[a]?a:"")+"]";n=n.concat(r(i,t[a]))}else if("object"!=typeof t||i)n.push(`${s(e)}=${o(t)}`);else for(const i in t)n=n.concat(r(e+"["+i+"]",t[i]));return n}function n(e,t){return Array.isArray(e)?(e.push(t),e):void 0!==e?[e,t]:t}function a(e,t,i){let o=e;const s=t.length-1;for(let e=0;e<=s;e++){const r=""===t[e]?o.length:t[e];if(e<s){const i=o[r]&&"object"!=typeof o[r]?[o[r]]:o[r];o=o[r]=i||(isNaN(t[e+1])?{}:[])}else o=o[r]=i}}const l=Object.freeze({get current(){return location.search},build(e,t){let i=[];const o=Object.keys(e||{}).sort();for(let s=0,n=o.length;s<n;s++){const n=o[s];i=i.concat(r(n,e[n],t))}return 0===i.length?"":i.join("&")},separate(e){const t=e.indexOf("?");let i="";return-1!==t&&(i=e.substr(t+1,e.length),e=e.substr(0,t)),{path:e,queryString:i}},parse(e){const t={};if(!e||"string"!=typeof e)return t;let i=e;"?"===i.charAt(0)&&(i=i.substr(1));const o=i.replace(/\+/g," ").split("&");for(let e=0;e<o.length;e++){const i=o[e].split("="),s=decodeURIComponent(i[0]);if(!s)continue;let r=s.split("]["),l=r.length-1;if(/\[/.test(r[0])&&/\]$/.test(r[l])?(r[l]=r[l].replace(/\]$/,""),r=r.shift().split("[").concat(r),l=r.length-1):l=0,i.length>=2){const e=i[1]?decodeURIComponent(i[1]):"";l?a(t,r,e):t[s]=n(t[s],e)}else t[s]=!0}return t}})},25810:(e,t,i)=>{i.d(t,{Bw:()=>n,Ek:()=>l,F5:()=>a,mA:()=>p});var o=i(90779),s=i(53476);const r=e=>e;class n{constructor(e,t,i){this.path=e,this.name=t,this.caseSensitive=i}}class a{constructor(e,t,i,o){this.route=e,this.paramNames=t,this.paramTypes=i,this.settings=o}get path(){return this.route.path}}class l{constructor(e,t,i,o){this.endpoint=e,this.params=t,this.typedParams=i,this.queryParams=o,this.allParams=Object.assign(Object.assign({},t),o),this.allTypedParams=Object.assign(Object.assign({},i),o)}get settings(){return this.endpoint.settings}}class c{constructor(e,t,i,o){var s;this.chars=e,this.states=t,this.skippedStates=i,this.result=o,this.head=t[t.length-1],this.endpoint=null===(s=this.head)||void 0===s?void 0:s.endpoint}advance(e){const{chars:t,states:i,skippedStates:o,result:s}=this;let r=null,n=0;const a=i[i.length-1];function l(h,d){if(h.isMatch(e)&&(1==++n?r=h:s.add(new c(t.concat(e),i.concat(h),null===d?o:o.concat(d),s))),null===a.segment&&h.isOptional&&null!==h.nextStates){if(h.nextStates.length>1)throw new Error(`${h.nextStates.length} nextStates`);const e=h.nextStates[0];if(!e.isSeparator)throw new Error("Not a separator");if(null!==e.nextStates)for(const t of e.nextStates)l(t,h)}}if(a.isDynamic&&l(a,null),null!==a.nextStates)for(const e of a.nextStates)l(e,null);null!==r&&(i.push(this.head=r),t.push(e),null!==r.endpoint&&(this.endpoint=r.endpoint)),0===n&&s.remove(this)}finalize(){!function e(t,i){const o=i.nextStates;if(null!==o)if(1===o.length&&null===o[0].segment)e(t,o[0]);else for(const i of o)if(i.isOptional&&null!==i.endpoint){if(t.push(i),null!==i.nextStates)for(const o of i.nextStates)e(t,o);break}}(this.skippedStates,this.head)}getParams(){const{states:e,chars:t,endpoint:i}=this,o={};for(const e of i.paramNames)o[e]=void 0;for(let i=0,s=e.length;i<s;++i){const s=e[i];if(s.isDynamic){const e=s.segment.name;void 0===o[e]?o[e]=t[i]:o[e]+=t[i]}}return o}compareTo(e){const t=this.states,i=e.states;for(let e=0,o=0,s=Math.max(t.length,i.length);e<s;++e){let s=t[e];if(void 0===s)return 1;let r=i[o];if(void 0===r)return-1;let n=s.segment,a=r.segment;if(null===n){if(null===a){++o;continue}if(void 0===(s=t[++e]))return 1;n=s.segment}else if(null===a){if(void 0===(r=i[++o]))return-1;a=r.segment}if(n.kind<a.kind)return 1;if(n.kind>a.kind)return-1;++o}const o=this.skippedStates,s=e.skippedStates,r=o.length,n=s.length;if(r<n)return 1;if(r>n)return-1;for(let e=0;e<r;++e){const t=o[e],i=s[e];if(t.length<i.length)return 1;if(t.length>i.length)return-1}return 0}}function h(e){return null!==e.head.endpoint}function d(e,t){return e.compareTo(t)}class u{constructor(e){this.candidates=[],this.candidates=[new c([""],[e],[],this)]}get isEmpty(){return 0===this.candidates.length}getSolution(){const e=this.candidates.filter(h);if(0===e.length)return null;for(const t of e)t.finalize();return e.sort(d),e[0]}add(e){this.candidates.push(e)}remove(e){this.candidates.splice(this.candidates.indexOf(e),1)}advance(e){const t=this.candidates.slice();for(const i of t)i.advance(e)}}class p{constructor(){this.names=new Map,this.paths=new Map,this.rootState=new g(null,null,"")}add(e,t){if(e instanceof Array)for(const i of e)this.$add(i,t);else this.$add(e,t)}$add(e,t){const i=e.path,o=new n(e.path,e.name||"",!0===e.caseSensitive),s=""===i?[""]:i.split("/").filter(m),r=[],l=[];let c=this.rootState;const h=[];for(const e of s)switch(c=c.append(null,"/"),e.charAt(0)){case"{":{const t=e.slice(1,-1).split(":").map((e=>e.trim()));2===t.length?l.push(t[1]):l.push("string");const i=t[0].endsWith("?"),o=i?t[0].slice(0,-1):t[0];r.push(o);const s=new f(o,i);h.push(s),c=s.appendTo(c);break}case"*":{const t=e.slice(1);r.push(t),l.push("string");const i=new v(t);h.push(i),c=i.appendTo(c);break}default:{const t=new b(e,o.caseSensitive);h.push(t),c=t.appendTo(c);break}}const d=new a(o,r,l,t||null);c.setEndpoint(d),this.paths.set(i,h),e.name&&this.names.set(e.name,h)}recognize(e,t={}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const i=s.L.separate(e),o=s.L.parse(i.queryString);(e=decodeURI(i.path)).startsWith("/")||(e=`/${e}`),e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1));const n=new u(this.rootState);for(let t=0,i=e.length;t<i;++t){const i=e.charAt(t);if(n.advance(i),n.isEmpty)return null}const a=n.getSolution();if(null===a)return null;const{endpoint:c}=a,h=c.paramNames,d=c.paramTypes,p=a.getParams(),g={};for(let e=0,i=h.length;e<i;++e){const i=h[e],o=t[d[e]]||r,s=p[i],n=yield o(s);g[i]=n}return new l(c,p,g,o)}))}generateFromName(e,t){return this.generate(this.names.get(e),t)}generateFromPath(e,t){return this.generate(this.paths.get(e),t)}generate(e,t){if(!e)return null;const i=Object.assign({},t),o={};let r="";for(let t=0,s=e.length;t<s;t++){const s=e[t],n=s.generate(i,o);if(null==n){if(s instanceof f&&!s.optional)throw new Error(`A value is required for route parameter '${s.name}'.`)}else r+="/",r+=n}"/"!==r.charAt(0)&&(r="/"+r);for(const e in o)delete i[e];const n=s.L.build(i);return r+=n?`?${n}`:"",r}}class g{constructor(e,t,i){switch(this.prevState=e,this.segment=t,this.value=i,this.nextStates=null,this.endpoint=null,null==t?void 0:t.kind){case 2:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!0,this.isOptional=t.optional;break;case 1:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!0,this.isOptional=!1;break;case 3:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!1,this.isOptional=!1;break;case void 0:this.length=null===e?0:e.length,this.isSeparator=!0,this.isDynamic=!1,this.isOptional=!1}}append(e,t){let i,o=this.nextStates;return null===o?(i=void 0,o=this.nextStates=[]):i=null===e?o.find((e=>e.value===t)):o.find((t=>{var i;return null===(i=t.segment)||void 0===i?void 0:i.equals(e)})),void 0===i&&o.push(i=new g(this,e,t)),i}setEndpoint(e){if(null!==this.endpoint)throw new Error(`Cannot add ambiguous route. The pattern '${e.route.path}' clashes with '${this.endpoint.route.path}'`);this.endpoint=e,this.isOptional&&(this.prevState.setEndpoint(e),this.prevState.isSeparator&&null!==this.prevState.prevState&&this.prevState.prevState.setEndpoint(e))}isMatch(e){const t=this.segment;switch(null==t?void 0:t.kind){case 2:return!this.value.includes(e);case 1:return!0;case 3:case void 0:return this.value.includes(e)}}}function m(e){return e.length>0}class b{constructor(e,t){this.value=e,this.caseSensitive=t}get kind(){return 3}appendTo(e){const{value:t,value:{length:i}}=this;if(this.caseSensitive)for(let o=0;o<i;++o)e=e.append(this,t.charAt(o));else for(let o=0;o<i;++o){const i=t.charAt(o);e=e.append(this,i.toUpperCase()+i.toLowerCase())}return e}generate(){return this.value}equals(e){return 3===e.kind&&e.caseSensitive===this.caseSensitive&&e.value===this.value}}class f{constructor(e,t){this.name=e,this.optional=t}get kind(){return 2}appendTo(e){return e=e.append(this,"/")}generate(e,t){return t[this.name]=!0,e[this.name]}equals(e){return 2===e.kind&&e.optional===this.optional&&e.name===this.name}}class v{constructor(e){this.name=e}get kind(){return 1}appendTo(e){return e=e.append(this,"")}generate(e,t){return t[this.name]=!0,e[this.name]}equals(e){return 1===e.kind&&e.name===this.name}}},37002:(e,t,i)=>{i.d(t,{F0:()=>d,ep:()=>u});var o=i(90779),s=i(79292),r=i(1154),n=i(68228),a=i(95986);const l="$router";function c(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}function h(e){let t=e;for(;t=c(t);)if(l in t)return t[l];return null}const d=Object.freeze({getOrCreateFor(e){const t=e[l];return void 0!==t?t:e[l]=new p(e)},find:e=>e[l]||h(e),from(e){class t extends e{constructor(){super(),d.getOrCreateFor(this)}get config(){return this[l].config}set config(e){this[l].config=e}}const i=t.prototype;if("connectedCallback"in i){const e=i.connectedCallback;i.connectedCallback=function(){e.call(this),this[l].connect()}}else i.connectedCallback=function(){this[l].connect()};if("disconnectedCallback"in i){const e=i.disconnectedCallback;i.disconnectedCallback=function(){e.call(this),this[l].disconnect()}}else i.disconnectedCallback=function(){this[l].disconnect()};return t}});function u(e){return e instanceof s.FASTElement}class p{constructor(e){this.host=e,this.parentRouter=void 0,this.contributors=new Set,this.navigationQueue=null,this.linkHandler=null,this.newView=null,this.newRoute=null,this.childCommandContributor=null,this.childRoute=null,this.isConnected=!1,this.routerConfig=null,this.view=null,this.route=null,this.onNavigationMessage=e=>(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.config.createNavigationProcess();yield t.run(this,e),this.navigationQueue.receive().then(this.onNavigationMessage)})),e[l]=this}get config(){return this.routerConfig}set config(e){this.routerConfig=e,this.tryConnect()}get parent(){if(void 0===this.parentRouter){if(!this.isConnected)return null;this.parentRouter=h(this.host)}return this.parentRouter||null}get level(){return null===this.parent?0:this.parent.level+1}shouldRender(e){var t;if(this.route&&this.route.endpoint.path===e.endpoint.path){const i=null==e?void 0:e.allParams,o=null===(t=this.route)||void 0===t?void 0:t.allParams;if(JSON.stringify(o)===JSON.stringify(i))return!1}return!0}beginRender(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return this.newRoute=e,this.newView=yield t.createView(),this.newView.bind(e.allTypedParams,a.GC.create(this)),this.newView.appendTo(this.host),yield t.transition.begin(this.host,this.view,this.newView),{commit:this.renderOperationCommit.bind(this,t.layout,t.transition),rollback:this.renderOperationRollback.bind(this,t.transition)}}))}connect(){this.isConnected=!0,this.tryConnect()}disconnect(){null===this.parent?(null!==this.navigationQueue&&(this.navigationQueue.disconnect(),this.navigationQueue=null),null!==this.linkHandler&&(this.linkHandler.disconnect(),this.linkHandler=null)):this.parent.removeContributor(this),this.isConnected=!1,this.parentRouter=void 0}addContributor(e){this.contributors.add(e)}removeContributor(e){this.contributors.delete(e)}tryConnect(){null!==this.config&&this.isConnected&&(null===this.parent?(null!==this.navigationQueue&&this.navigationQueue.disconnect(),this.navigationQueue=this.config.createNavigationQueue(),this.navigationQueue.connect(),this.navigationQueue.receive().then(this.onNavigationMessage),null!==this.linkHandler&&this.linkHandler.disconnect(),this.linkHandler=this.config.createLinkHandler(),this.linkHandler.connect()):(this.config.parent=this.parent.config,this.parent.addContributor(this)))}renderOperationCommit(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield e.beforeCommit(this.host),yield t.commit(this.host,this.view,this.newView),yield e.afterCommit(this.host),null!==this.view&&this.view.dispose(),this.route=this.newRoute,this.view=this.newView,this.newRoute=null,this.newView=null}))}renderOperationRollback(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){null!==this.newView&&(yield e.rollback(this.host,this.view,this.newView),this.newView.dispose(),this.newRoute=null,this.newView=null)}))}navigate(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.tunnel(e)}))}leave(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(yield this.tunnel(e),!e.canceled){const t=this.contributors;this.contributors=new Set,e.onCancel((()=>this.contributors=t))}}))}construct(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(null!==this.parent){const t=e.route.allParams[n.X]||"",i=yield this.config.recognizeRoute(t);if(null===i){return this.config.createEventSink().onUnhandledNavigationMessage(this,new r.y(t)),void e.cancel()}this.childRoute=i.route,this.childCommandContributor=yield i.command.createContributor(this,i.route)}yield this.tunnel(e)}))}enter(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.tunnel(e)}))}commit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.tunnel(e)}))}tunnel(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=this.childRoute,i=this.childCommandContributor;if(t&&i&&(yield e.evaluateContributor(i,t,this)),e.canceled)return;const o=[...this.config.findContributors(e.name),...Array.from(this.contributors)];for(const t of o)if(yield e.evaluateContributor(t,void 0,this),e.canceled)return}))}}},68228:(e,t,i)=>{i.d(t,{R:()=>x,X:()=>b});var o=i(90779),s=i(25810),r=i(79292),n=i(95986),a=i(1154),l=i(22964);class c{createContributor(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return{navigate(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){e.cancel()}))}}}))}}class h{constructor(e){this.redirect=e}createContributor(){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const e=this.redirect;return{navigate(t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const i=t.router.config,s=(yield i.generateRouteFromName(e,t.route.allParams))||(yield i.generateRouteFromPath(e,t.route.allParams));if(null===s)throw new Error(`Invalid redirect. Name or path not found: ${e}`);t.cancel((()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){return a.AW.path.replace(s)}))))}))}}}))}}function d(e){return r.html`<${e} ${(0,l.F)()}></${e}>`}function u(e){const t=document.createDocumentFragment();t.appendChild(e);const i=new r.HTMLView(t,[(0,l.F)().createBehavior(e)]);return{create:()=>i}}class p{constructor(e,t,i){this.router=e,this.route=t,this.command=i}construct(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.router.shouldRender(this.route)?(this.operation=yield this.router.beginRender(this.route,this.command),e.onCancel((()=>this.operation.rollback()))):e.cancel()}))}commit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){yield this.operation.commit(),this.command.title&&e.setTitle(this.command.title)}))}}class g{constructor(e,t){this.owner=e,this.createView=t,this._layout=null,this._transition=null,this.title=""}get transition(){return this._transition||this.owner.defaultTransition}set transition(e){this._transition=e}get layout(){return this._layout||this.owner.defaultLayout}set layout(e){this._layout=e}createContributor(e,t){return(0,o.__awaiter)(this,void 0,void 0,(function*(){return new p(e,t,this)}))}static fromDefinition(e,t){let i;i="template"in t?()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){let e=t.template;return"function"==typeof e&&(e=yield e()),e.create()})):()=>(0,o.__awaiter)(this,void 0,void 0,(function*(){let e=t.element,i=null;if(t.factory)i=t.factory;else if("function"==typeof e){let t=r.FASTElementDefinition.forType(e);if(t)i=d(t.name);else if(e=yield e(),"string"==typeof e)i=d(e);else if(e instanceof HTMLElement)i=u(e);else{if(t=r.FASTElementDefinition.forType(e),!t)throw new Error("Invalid value for element in route config.");i=d(t.name)}}else e instanceof HTMLElement?t.factory=i=u(e):t.factory=i=d(e);return i.create()}));const s=new g(e,i);return t.layout&&(t.layout instanceof r.ViewTemplate?s.layout=new n.u3(t.layout):s.layout=t.layout),t.transition&&(s.transition=t.transition),t.title&&(s.title=t.title),s}}var m=i(53476);const b="fast-child-route";function f(e,t){return"command"in t?t.command:"redirect"in t?new h(t.redirect):g.fromDefinition(e,t)}const v=e=>{if(null==e)return!1;switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;default:return!1}},y={number:e=>void 0===e?NaN:parseFloat(e),float:e=>void 0===e?NaN:parseFloat(e),int:e=>void 0===e?NaN:parseInt(e),integer:e=>void 0===e?NaN:parseInt(e),Date:e=>void 0===e?new Date(Date.now()):new Date(e),boolean:v,bool:v};class x{constructor(e){this.owner=e,this._recognizer=null,this.pathToCommand=new Map,this.fallbackCommand=null,this.fallbackSettings=null,this.converters={}}get recognizer(){return null===this._recognizer&&(this._recognizer=this.owner.createRouteRecognizer()),this._recognizer}ignore(e){"string"==typeof e&&(e={path:e}),this.pathToCommand.set(e.path,new c),this.recognizer.add(e,e.settings)}map(...e){for(const t of e){if("children"in t){const e=this.owner.createTitleBuilder(),i=t.children.map((i=>{const o=Object.assign(Object.assign(Object.assign({},t),i),{path:`${t.path}/${i.path}`});if("title"in t||"title"in i){const s=t.title||"",r=i.title||"";o.title=e.joinTitles(s,r)}if("name"in i){const e=t.name?t.name+"/":"";o.name=e+i.name}return o.children===t.children&&delete o.children,o}));this.map(...i);continue}let e;if(e="command"in t?t.command:"redirect"in t?new h(t.redirect):g.fromDefinition(this.owner,t),this.pathToCommand.set(t.path,e),this.recognizer.add(t,t.settings),"childRouters"in t&&t.childRouters){const i=Object.assign(Object.assign({},t),{path:t.path+`/*${b}`});this.pathToCommand.set(i.path,e),this.recognizer.add(i,i.settings)}}}fallback(e){const t=this.owner;this.fallbackCommand="function"==typeof e?{createContributor(i,s){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield e();return f(t,o).createContributor(i,s)}))}}:f(t,e)}converter(e,t){let i;i="convert"in t?t.convert.bind(t):t.prototype&&"convert"in t.prototype?e=>this.owner.construct(t).convert(e):t,this.converters[e]=i}recognize(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.recognizer.recognize(e,this.aggregateConverters());if(null!==t)return{route:t,command:this.pathToCommand.get(t.endpoint.path)};if(null!==this.fallbackCommand){const t=m.L.separate(e),i=m.L.parse(t.queryString);return{route:new s.Ek(new s.F5(new s.Bw("*","",!1),[],[],this.fallbackSettings),{},{},i),command:this.fallbackCommand}}return null}))}generateFromName(e,t){return this.recognizer.generateFromName(e,t)}generateFromPath(e,t){return this.recognizer.generateFromPath(e,t)}aggregateConverters(){return null===this.owner.parent?Object.assign(Object.assign({},y),this.converters):Object.assign(Object.assign({},this.owner.parent.routes.aggregateConverters()),this.converters)}}},95986:(e,t,i)=>{i.d(t,{Ar:()=>c,GC:()=>n,u3:()=>l,uT:()=>a});var o=i(90779),s=i(79292),r=i(37002);const n=Object.freeze({create:e=>Object.create(s.defaultExecutionContext,{router:{value:e}})}),a=Object.freeze({default:Object.freeze({begin(e,t,i){return(0,o.__awaiter)(this,void 0,void 0,(function*(){}))},rollback(e,t,i){return(0,o.__awaiter)(this,void 0,void 0,(function*(){}))},commit(e,t,i){return(0,o.__awaiter)(this,void 0,void 0,(function*(){}))}})});class l{constructor(e=null,t=null,i=!0){this.template=e,this.runBeforeCommit=i,this.styles=null==t?null:Array.isArray(t)?s.ElementStyles.create(t):t instanceof s.ElementStyles?t:s.ElementStyles.create([t])}beforeCommit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.runBeforeCommit&&this.apply(e)}))}afterCommit(e){return(0,o.__awaiter)(this,void 0,void 0,(function*(){this.runBeforeCommit||this.apply(e)}))}apply(e){(0,r.ep)(e)&&(e.$fastController.template!==this.template&&(e.$fastController.template=this.template),e.$fastController.styles!==this.styles&&(e.$fastController.styles=this.styles))}}const c=Object.freeze({default:new l(s.html`
|
|
6400
6400
|
<slot></slot>
|
|
6401
|
-
`)})},75511:(e,t,i)=>{i.d(t,{i:()=>o});const o={horizontal:"horizontal",vertical:"vertical"}},9770:(e,t,i)=>{function o(...e){return e.reduce(((e,t)=>{const i=e.length?" ":"",s=Array.isArray(t)&&t[1]?o.call(null,t[0]):"function"==typeof t?t():"string"==typeof t?t:"";return s.length?e+i+s:e}),"")}i.d(t,{A:()=>o})},5598:(e,t,i)=>{var o;i.d(t,{N:()=>o}),function(e){e.ltr="ltr",e.rtl="rtl"}(o||(o={}))},62515:(e,t,i)=>{function o(e,t,i){return i<e?t:i>t?e:i}function s(e,t,i){return Math.min(Math.max(i,e),t)}function r(e,t,i=0){return[t,i]=[t,i].sort(((e,t)=>e-t)),t<=e&&e<i}i.d(t,{Z2:()=>r,b9:()=>s,wt:()=>o})},41353:(e,t,i)=>{i.d(t,{EL:()=>s,Ho:()=>r});let o=0;function s(e=""){return`${e}${o++}`}function r(e){let t=`${e}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(/^\s+|\s+$|\s+(?=\s)/g,"").replace(new RegExp(/\s+(.)(\w*)/,"g"),((e,t,i)=>`${t.toUpperCase()+i.toLowerCase()}`)).replace(new RegExp(/\w/),(e=>e.toUpperCase())),i=0;for(let e=0;e<t.length;e++){const o=t.charAt(e);if(o==o.toLowerCase()){i=e;break}}return i>1&&(t=`${t.charAt(0).toUpperCase()}${t.slice(1,i-1).toLowerCase()}`+t.slice(i-1)),t}},67973:(e,t,i)=>{var o;i.d(t,{H:()=>o}),function(e){e.Canvas="Canvas",e.CanvasText="CanvasText",e.LinkText="LinkText",e.VisitedText="VisitedText",e.ActiveText="ActiveText",e.ButtonFace="ButtonFace",e.ButtonText="ButtonText",e.Field="Field",e.FieldText="FieldText",e.Highlight="Highlight",e.HighlightText="HighlightText",e.GrayText="GrayText"}(o||(o={}))}}]);
|
|
6402
|
-
//# sourceMappingURL=npm.microsoft.
|
|
6401
|
+
`)})},75511:(e,t,i)=>{i.d(t,{i:()=>o});const o={horizontal:"horizontal",vertical:"vertical"}},9770:(e,t,i)=>{function o(...e){return e.reduce(((e,t)=>{const i=e.length?" ":"",s=Array.isArray(t)&&t[1]?o.call(null,t[0]):"function"==typeof t?t():"string"==typeof t?t:"";return s.length?e+i+s:e}),"")}i.d(t,{A:()=>o})},31596:(e,t,i)=>{var o;i.d(t,{BE:()=>r,BI:()=>m,CX:()=>c,Kh:()=>d,O4:()=>v,Op:()=>g,SB:()=>a,bI:()=>f,hi:()=>p,iF:()=>s,kL:()=>l,mr:()=>n,ny:()=>u,oM:()=>b,tU:()=>h,uf:()=>y}),function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"}(o||(o={}));const s="ArrowDown",r="ArrowLeft",n="ArrowRight",a="ArrowUp",l="Enter",c="Escape",h="Home",d="End",u="F2",p="PageDown",g="PageUp",m=" ",b="Tab",f="Backspace",v="Delete",y={ArrowDown:s,ArrowLeft:r,ArrowRight:n,ArrowUp:a}},5598:(e,t,i)=>{var o;i.d(t,{N:()=>o}),function(e){e.ltr="ltr",e.rtl="rtl"}(o||(o={}))},62515:(e,t,i)=>{function o(e,t,i){return i<e?t:i>t?e:i}function s(e,t,i){return Math.min(Math.max(i,e),t)}function r(e,t,i=0){return[t,i]=[t,i].sort(((e,t)=>e-t)),t<=e&&e<i}i.d(t,{Z2:()=>r,b9:()=>s,wt:()=>o})},41353:(e,t,i)=>{i.d(t,{EL:()=>s,Ho:()=>r});let o=0;function s(e=""){return`${e}${o++}`}function r(e){let t=`${e}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(/^\s+|\s+$|\s+(?=\s)/g,"").replace(new RegExp(/\s+(.)(\w*)/,"g"),((e,t,i)=>`${t.toUpperCase()+i.toLowerCase()}`)).replace(new RegExp(/\w/),(e=>e.toUpperCase())),i=0;for(let e=0;e<t.length;e++){const o=t.charAt(e);if(o==o.toLowerCase()){i=e;break}}return i>1&&(t=`${t.charAt(0).toUpperCase()}${t.slice(1,i-1).toLowerCase()}`+t.slice(i-1)),t}},67973:(e,t,i)=>{var o;i.d(t,{H:()=>o}),function(e){e.Canvas="Canvas",e.CanvasText="CanvasText",e.LinkText="LinkText",e.VisitedText="VisitedText",e.ActiveText="ActiveText",e.ButtonFace="ButtonFace",e.ButtonText="ButtonText",e.Field="Field",e.FieldText="FieldText",e.Highlight="Highlight",e.HighlightText="HighlightText",e.GrayText="GrayText"}(o||(o={}))}}]);
|
|
6402
|
+
//# sourceMappingURL=npm.microsoft.ac462c010931eb8a47c3c6043ba81fa4.js.map
|