@genesislcap/foundation-shell 14.223.0 → 14.223.1-alpha-600a8b9.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/{11.11.971e68b381ba25a07516.js → 11.11.93ecc7ebd8b71e4db0b6.js} +2 -2
- package/dist/{529.529.44ad6ede076d548f77d2.js → 529.529.34eda4fa18ce18d9dc6d.js} +2 -2
- package/dist/{705.705.1e80b756c54a06885543.js → 705.705.7a5a496b959baab0cb6b.js} +2 -2
- package/dist/{foundationShell.36323d72e5da151e71f6088db14a34f4.js.map → foundationShell.4c0417ddc24bc64d065f8f2a23abdf41.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.9def642fb4e4ddf67535.js → main.2aba3dfbaf22485bdf2e.js} +2 -2
- package/dist/{main.13e61d086d1583fab2a1ea48313a6d6e.js.map → main.c5ffb3c310d7e862b188f473afc0954a.js.map} +1 -1
- package/dist/{npm.microsoft.544.0cabb2a7bfa63636a21d.js → npm.microsoft.544.3b07caa5d983038fc5ca.js} +42 -42
- package/dist/npm.microsoft.87df0a2f395112d761de532d857ae98c.js.map +1 -0
- package/dist/remoteEntry.js +2 -2
- package/dist/sw.js +1 -1
- package/dist/{swRegistration.0597ced4679e207f2478.js → swRegistration.3eb3cc2baa9fb9a74aff.js} +2 -2
- package/dist/{swRegistration.a262bd73d2ea771878df3c28f4c31ad4.js.map → swRegistration.b27981694cbfde5466d8292994a5f816.js.map} +1 -1
- package/package.json +14 -14
- package/dist/npm.microsoft.5cf9715145fa020755ee92937eaa3763.js.map +0 -1
- /package/dist/{11.11.971e68b381ba25a07516.js.LICENSE.txt → 11.11.93ecc7ebd8b71e4db0b6.js.LICENSE.txt} +0 -0
- /package/dist/{529.529.44ad6ede076d548f77d2.js.LICENSE.txt → 529.529.34eda4fa18ce18d9dc6d.js.LICENSE.txt} +0 -0
package/dist/{npm.microsoft.544.0cabb2a7bfa63636a21d.js → npm.microsoft.544.3b07caa5d983038fc5ca.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_foundation_shell=self.webpackChunk_genesislcap_foundation_shell||[]).push([[544],{1776:(t,e,i)=>{i.d(e,{Eq:()=>v,Es:()=>f,Gy:()=>C,Mx:()=>b,QX:()=>m,SU:()=>g,Z8:()=>d,eK:()=>$,k5:()=>w,mi:()=>x,s8:()=>h,yN:()=>p,ym:()=>y});var o=i(9770),s=i(824),n=i(7506),r=i(594),a=i(3378),l=i(742),c=i(9900);function h(t){return.2126*t.r+.7152*t.g+.0722*t.b}function d(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return h(new a.M(e(t.r),e(t.g),e(t.b),1))}const u=(t,e)=>(t+.05)/(e+.05);function p(t,e){const i=d(t),o=d(e);return i>o?u(i,o):u(o,i)}function g(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),s=e-i;let n=0;0!==s&&(n=e===t.r?(t.g-t.b)/s%6*60:e===t.g?60*((t.b-t.r)/s+2):60*((t.r-t.g)/s+4)),n<0&&(n+=360);const r=(e+i)/2;let a=0;return 0!==s&&(a=s/(1-Math.abs(2*r-1))),new o.D(n,a,r)}function m(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,l=0;return t.h<60?(n=i,r=o,l=0):t.h<120?(n=o,r=i,l=0):t.h<180?(n=0,r=i,l=o):t.h<240?(n=0,r=o,l=i):t.h<300?(n=o,r=0,l=i):t.h<360&&(n=i,r=0,l=o),new a.M(n+s,r+s,l+s,e)}function f(t){const e=Math.max(t.r,t.g,t.b),i=e-Math.min(t.r,t.g,t.b);let o=0;0!==i&&(o=e===t.r?(t.g-t.b)/i%6*60:e===t.g?60*((t.b-t.r)/i+2):60*((t.r-t.g)/i+4)),o<0&&(o+=360);let n=0;return 0!==e&&(n=i/e),new s.D(o,n,e)}function v(t,e=1){const i=t.s*t.v,o=i*(1-Math.abs(t.h/60%2-1)),s=t.v-i;let n=0,r=0,l=0;return t.h<60?(n=i,r=o,l=0):t.h<120?(n=o,r=i,l=0):t.h<180?(n=0,r=i,l=o):t.h<240?(n=0,r=o,l=i):t.h<300?(n=o,r=0,l=i):t.h<360&&(n=i,r=0,l=o),new a.M(n+s,r+s,l+s,e)}function b(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b),n=.4124564*i+.3575761*o+.1804375*s,r=.2126729*i+.7151522*o+.072175*s,a=.0193339*i+.119192*o+.9503041*s;return new l.P(n,r,a)}function y(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new a.M(o,s,n,e)}function x(t){return function(t){function e(t){return t>n.h.epsilon?Math.pow(t,1/3):(n.h.kappa*t+16)/116}const i=e(t.x/l.P.whitePoint.x),o=e(t.y/l.P.whitePoint.y),s=116*o-16,r=500*(i-o),a=200*(o-e(t.z/l.P.whitePoint.z));return new n.h(s,r,a)}(b(t))}function $(t,e=1){return y(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),r=Math.pow(e,3),a=Math.pow(o,3);let c=0;c=s>n.h.epsilon?s:(116*i-16)/n.h.kappa;let h=0;h=t.l>n.h.epsilon*n.h.kappa?r:t.l/n.h.kappa;let d=0;return d=a>n.h.epsilon?a:(116*o-16)/n.h.kappa,c=l.P.whitePoint.x*c,h=l.P.whitePoint.y*h,d=l.P.whitePoint.z*d,new l.P(c,h,d)}(t),e)}function C(t){return function(t){let e=0;(Math.abs(t.b)>.001||Math.abs(t.a)>.001)&&(e=(0,c.nv)(Math.atan2(t.b,t.a))),e<0&&(e+=360);const i=Math.sqrt(t.a*t.a+t.b*t.b);return new r.b(t.l,i,e)}(x(t))}function w(t,e=1){return $(function(t){let e=0,i=0;return 0!==t.h&&(e=Math.cos((0,c.tR)(t.h))*t.c,i=Math.sin((0,c.tR)(t.h))*t.c),new n.h(t.l,e,i)}(t),e)}},9770:(t,e,i)=>{i.d(e,{D:()=>s});var o=i(9900);class s{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new s(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new s((0,o.l)(this.h,t),(0,o.l)(this.s,t),(0,o.l)(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}},824:(t,e,i)=>{i.d(e,{D:()=>s});var o=i(9900);class s{constructor(t,e,i){this.h=t,this.s=e,this.v=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.v)?null:new s(t.h,t.s,t.v)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.v===t.v}roundToPrecision(t){return new s((0,o.l)(this.h,t),(0,o.l)(this.s,t),(0,o.l)(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}}},7506:(t,e,i)=>{i.d(e,{h:()=>s});var o=i(9900);class s{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new s(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new s((0,o.l)(this.l,t),(0,o.l)(this.a,t),(0,o.l)(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}s.epsilon=216/24389,s.kappa=24389/27},594:(t,e,i)=>{i.d(e,{b:()=>s});var o=i(9900);class s{constructor(t,e,i){this.l=t,this.c=e,this.h=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.c)||isNaN(t.h)?null:new s(t.l,t.c,t.h)}equalValue(t){return this.l===t.l&&this.c===t.c&&this.h===t.h}roundToPrecision(t){return new s((0,o.l)(this.l,t),(0,o.l)(this.c,t),(0,o.l)(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}}},3378:(t,e,i)=>{i.d(e,{M:()=>s});var o=i(9900);class s{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new s(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.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((0,o.NU)(this.r,0,255))},${Math.round((0,o.NU)(this.g,0,255))},${Math.round((0,o.NU)(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round((0,o.NU)(this.r,0,255))},${Math.round((0,o.NU)(this.g,0,255))},${Math.round((0,o.NU)(this.b,0,255))},${(0,o.qE)(this.a,0,1)})`}roundToPrecision(t){return new s((0,o.l)(this.r,t),(0,o.l)(this.g,t),(0,o.l)(this.b,t),(0,o.l)(this.a,t))}clamp(){return new s((0,o.qE)(this.r,0,1),(0,o.qE)(this.g,0,1),(0,o.qE)(this.b,0,1),(0,o.qE)(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return(0,o.IG)((0,o.NU)(t,0,255))}}},742:(t,e,i)=>{i.d(e,{P:()=>s});var o=i(9900);class s{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new s(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new s((0,o.l)(this.x,t),(0,o.l)(this.y,t),(0,o.l)(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}s.whitePoint=new s(.95047,1,1.08883)},4526:(t,e,i)=>{i.d(e,{h:()=>C});var o,s=i(3378),n=i(1776),r=i(594),a=i(9900);function l(t,e,i=18){const o=(0,n.Gy)(t);let s=o.c+e*i;return s<0&&(s=0),(0,n.k5)(new r.b(o.l,s,o.h))}function c(t,e){return t*e}function h(t,e){return new s.M(c(t.r,e.r),c(t.g,e.g),c(t.b,e.b),1)}function d(t,e){return t<.5?(0,a.qE)(2*e*t,0,1):(0,a.qE)(1-2*(1-e)*(1-t),0,1)}function u(t,e){return new s.M(d(t.r,e.r),d(t.g,e.g),d(t.b,e.b),1)}!function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(o||(o={}));var p,g=i(9770),m=i(824),f=i(7506),v=i(742);function b(t,e,i,o){if(isNaN(t)||t<=0)return i;if(t>=1)return o;switch(e){case p.HSL:return(0,n.QX)(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new g.D((0,a.c5)(t,e.h,i.h),(0,a.Cc)(t,e.s,i.s),(0,a.Cc)(t,e.l,i.l))}(t,(0,n.SU)(i),(0,n.SU)(o)));case p.HSV:return(0,n.Eq)(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new m.D((0,a.c5)(t,e.h,i.h),(0,a.Cc)(t,e.s,i.s),(0,a.Cc)(t,e.v,i.v))}(t,(0,n.Es)(i),(0,n.Es)(o)));case p.XYZ:return(0,n.ym)(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new v.P((0,a.Cc)(t,e.x,i.x),(0,a.Cc)(t,e.y,i.y),(0,a.Cc)(t,e.z,i.z))}(t,(0,n.Mx)(i),(0,n.Mx)(o)));case p.LAB:return(0,n.eK)(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new f.h((0,a.Cc)(t,e.l,i.l),(0,a.Cc)(t,e.a,i.a),(0,a.Cc)(t,e.b,i.b))}(t,(0,n.mi)(i),(0,n.mi)(o)));case p.LCH:return(0,n.k5)(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new r.b((0,a.Cc)(t,e.l,i.l),(0,a.Cc)(t,e.c,i.c),(0,a.c5)(t,e.h,i.h))}(t,(0,n.Gy)(i),(0,n.Gy)(o)));default:return function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new s.M((0,a.Cc)(t,e.r,i.r),(0,a.Cc)(t,e.g,i.g),(0,a.Cc)(t,e.b,i.b),(0,a.Cc)(t,e.a,i.a))}(t,i,o)}}!function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(p||(p={}));class y{constructor(t){if(null==t||0===t.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(t)}static createBalancedColorScale(t){if(null==t||0===t.length)throw new Error("The colors argument must be non-empty");const e=new Array(t.length);for(let i=0;i<t.length;i++)0===i?e[i]={color:t[i],position:0}:i===t.length-1?e[i]={color:t[i],position:1}:e[i]={color:t[i],position:i*(1/(t.length-1))};return new y(e)}getColor(t,e=p.RGB){if(1===this.stops.length)return this.stops[0].color;if(t<=0)return this.stops[0].color;if(t>=1)return this.stops[this.stops.length-1].color;let i=0;for(let e=0;e<this.stops.length;e++)this.stops[e].position<=t&&(i=e);let o=i+1;o>=this.stops.length&&(o=this.stops.length-1);return b((t-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),e,this.stops[i].color,this.stops[o].color)}trim(t,e,i=p.RGB){if(t<0||e>1||e<t)throw new Error("Invalid bounds");if(t===e)return new y([{color:this.getColor(t,i),position:0}]);const o=[];for(let i=0;i<this.stops.length;i++)this.stops[i].position>=t&&this.stops[i].position<=e&&o.push(this.stops[i]);if(0===o.length)return new y([{color:this.getColor(t),position:t},{color:this.getColor(e),position:e}]);o[0].position!==t&&o.unshift({color:this.getColor(t),position:t}),o[o.length-1].position!==e&&o.push({color:this.getColor(e),position:e});const s=e-t,n=new Array(o.length);for(let e=0;e<o.length;e++)n[e]={color:o[e].color,position:(o[e].position-t)/s};return new y(n)}findNextColor(t,e,i=!1,o=p.RGB,s=.005,r=32){isNaN(t)||t<=0?t=0:t>=1&&(t=1);const a=this.getColor(t,o),l=i?0:1,c=this.getColor(l,o);if((0,n.yN)(a,c)<=e)return l;let h=i?0:t,d=i?t:0,u=l,g=0;for(;g<=r;){u=Math.abs(d-h)/2+h;const t=this.getColor(u,o),r=(0,n.yN)(a,t);if(Math.abs(r-e)<=s)return u;r>e?i?h=u:d=u:i?d=u:h=u,g++}return u}clone(){const t=new Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new y(t)}sortColorScaleStops(t){return t.sort(((t,e)=>{const i=t.position,o=e.position;return i<o?-1:i>o?1:0}))}}var x=i(6302);class ${constructor(t){this.config=Object.assign({},$.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(t){let e=!1;for(const i in t)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(t[i])||(this.config[i]=t[i],e=!0):t[i]!==this.config[i]&&(this.config[i]=t[i],e=!0));return e&&this.updatePaletteColors(),e}updatePaletteColors(){const t=this.generatePaletteColorScale();for(let e=0;e<this.config.steps;e++)this.palette[e]=t.getColor(e/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const t=(0,n.SU)(this.config.baseColor),e=new y([{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=e.getColor(0),o=e.getColor(1);if(t.s>=this.config.saturationAdjustmentCutoff&&(i=l(i,this.config.saturationLight),o=l(o,this.config.saturationDark)),0!==this.config.multiplyLight){const t=h(this.config.baseColor,i);i=b(this.config.multiplyLight,this.config.interpolationMode,i,t)}if(0!==this.config.multiplyDark){const t=h(this.config.baseColor,o);o=b(this.config.multiplyDark,this.config.interpolationMode,o,t)}if(0!==this.config.overlayLight){const t=u(this.config.baseColor,i);i=b(this.config.overlayLight,this.config.interpolationMode,i,t)}if(0!==this.config.overlayDark){const t=u(this.config.baseColor,o);o=b(this.config.overlayDark,this.config.interpolationMode,o,t)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new y([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new y([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new y([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new y([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}$.defaultPaletteConfig={baseColor:(0,x.Hs)("#808080"),steps:11,interpolationMode:p.RGB,scaleColorLight:new s.M(1,1,1,1),scaleColorDark:new s.M(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},$.greyscalePaletteConfig={baseColor:(0,x.Hs)("#808080"),steps:11,interpolationMode:p.RGB,scaleColorLight:new s.M(1,1,1,1),scaleColorDark:new s.M(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};$.defaultPaletteConfig.scaleColorLight,$.defaultPaletteConfig.scaleColorDark;class C{constructor(t){this.palette=[],this.config=Object.assign({},C.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let t=this.config.steps;(isNaN(t)||t<3)&&(t=3);const e=.14,i=new s.M(e,e,e,1),o=new $(Object.assign(Object.assign({},$.greyscalePaletteConfig),{baseColor:i,baseScalePosition:86/94,steps:t})).palette,r=((0,n.s8)(this.config.baseColor)+(0,n.SU)(this.config.baseColor).l)/2,a=this.matchRelativeLuminanceIndex(r,o)/(t-1),l=this.matchRelativeLuminanceIndex(e,o)/(t-1),c=(0,n.SU)(this.config.baseColor),h=(0,n.QX)(g.D.fromObject({h:c.h,s:c.s,l:e})),d=(0,n.QX)(g.D.fromObject({h:c.h,s:c.s,l:.06})),u=new Array(5);u[0]={position:0,color:new s.M(1,1,1,1)},u[1]={position:a,color:this.config.baseColor},u[2]={position:l,color:h},u[3]={position:.99,color:d},u[4]={position:1,color:new s.M(0,0,0,1)};const m=new y(u);this.palette=new Array(t);for(let e=0;e<t;e++){const i=m.getColor(e/(t-1),p.RGB);this.palette[e]=i}}matchRelativeLuminanceIndex(t,e){let i=Number.MAX_VALUE,o=0,s=0;const r=e.length;for(;s<r;s++){const r=Math.abs((0,n.s8)(e[s])-t);r<i&&(i=r,o=s)}return o}}C.defaultPaletteConfig={baseColor:(0,x.Hs)("#808080"),steps:94}},9900:(t,e,i)=>{function o(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function s(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function n(t,e,i){return isNaN(t)?e:e+t*(i-e)}function r(t){return t*(Math.PI/180)}function a(t){return t*(180/Math.PI)}function l(t){const e=Math.round(o(t,0,255)).toString(16);return 1===e.length?"0"+e:e}function c(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function h(t,e,i){if(t<=0)return e%360;if(t>=1)return i%360;const o=(e-i+360)%360;return o<=(i-e+360)%360?(e-o*t+360)%360:(e+o*t+360)%360}i.d(e,{Cc:()=>c,IG:()=>l,NU:()=>n,S8:()=>s,c5:()=>h,l:()=>d,nv:()=>a,qE:()=>o,tR:()=>r});Math.PI;function d(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}},6302:(t,e,i)=>{i.d(e,{Hs:()=>r});var o=i(3378),s=i(9900);const n=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function r(t){const e=n.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const r=parseInt(i,16);return isNaN(r)?null:new o.M((0,s.S8)((16711680&r)>>>16,0,255),(0,s.S8)((65280&r)>>>8,0,255),(0,s.S8)(255&r,0,255),1)}},2732:(t,e,i)=>{i.d(e,{nD3:()=>g,AsP:()=>d,gUV:()=>on,MzZ:()=>Bi,NiS:()=>ji.N,euF:()=>eo,Exy:()=>Yi,QpV:()=>uo,J53:()=>ao,$nd:()=>ko,VvS:()=>Io,tCZ:()=>Oo,ZpM:()=>zo,Sc0:()=>No,G3_:()=>ds,zhn:()=>vs.zh,NEp:()=>ps.N,r6F:()=>ms.r,bWg:()=>Ts,lGe:()=>Rs,toe:()=>Zi,EN$:()=>Ms,cGx:()=>js,ZIV:()=>Ws,ox2:()=>nn,WFm:()=>dn,h7k:()=>as.h7,W1t:()=>Cn,Drp:()=>mn,ozX:()=>Rn,pFT:()=>D,LCI:()=>Qn,Gys:()=>sr,kej:()=>cr,C8A:()=>cr,sxL:()=>Cr,z6M:()=>fr,vji:()=>Hr,l6P:()=>Vr,EAD:()=>Nr,Apm:()=>ia,KVr:()=>Yr,yp6:()=>M,q4b:()=>A,dOG:()=>ca,ozo:()=>fa,KpK:()=>xa,tUM:()=>pa.t,fs1:()=>Ea,A_L:()=>Ha,M7E:()=>Ba,m_M:()=>Ua,yhE:()=>Xa,GST:()=>sl,WB3:()=>Qt,amQ:()=>me,uPj:()=>xt,KJd:()=>fe,_SK:()=>$t,OS0:()=>ge,MAo:()=>yt,c7L:()=>ue,IRh:()=>pe,yzC:()=>bt,QL0:()=>De,mDN:()=>kt,iLG:()=>Re,eme:()=>Ft,YLI:()=>Ee,CX6:()=>wt,yYz:()=>Oe,W_m:()=>Se,kw4:()=>Ct,ceu:()=>Yt,sd7:()=>Fi,FRc:()=>bi,QHc:()=>ll,ePw:()=>Ni,zsO:()=>_i,mvy:()=>to,oOk:()=>no,Sss:()=>U,a9C:()=>_,li_:()=>G,OCo:()=>j,JIp:()=>co,Ugz:()=>go,VVw:()=>wo,de_:()=>Lo,o4Q:()=>qo,gNH:()=>hs,PbG:()=>K,FJj:()=>$s,pAd:()=>xs,l1N:()=>ys,Brd:()=>W,Bsp:()=>Ss,hMh:()=>Os,vR1:()=>X,xhW:()=>Hs,oWd:()=>Q,qB4:()=>Y,aD6:()=>Vs,knM:()=>_s,zQD:()=>Ii,_A3:()=>Ai,G7x:()=>qi,DG$:()=>Gi,qZL:()=>oo,oAs:()=>ro,KZI:()=>mo,JeX:()=>ho,Jxp:()=>Fo,j1l:()=>So,nfZ:()=>Po,QOv:()=>jo,SQJ:()=>us,XW0:()=>ks,neU:()=>Cs,Fgu:()=>ws,zpP:()=>Es,bOf:()=>Ls,Sj3:()=>Ns,Erd:()=>Gs,$Mi:()=>Ys,KPn:()=>rn,Avu:()=>un,WGh:()=>wn,Z3W:()=>bn,EWl:()=>Hn,Q_W:()=>cn,R_m:()=>or,XJS:()=>ar,qnd:()=>lr,csH:()=>nr,$mx:()=>rr,Oei:()=>mr,oGn:()=>ur,SRm:()=>Fr,FCb:()=>yr,$St:()=>Lr,ZFr:()=>Mr,Uxm:()=>jr,e9K:()=>ra,wD8:()=>Zr,FLx:()=>ua,caM:()=>ya,KSz:()=>wa,pnC:()=>ka,vTq:()=>Da,oDQ:()=>La,_Lz:()=>qa,YCz:()=>Ka,wHQ:()=>ol,unx:()=>al,pfK:()=>he,NPv:()=>Qs,fFd:()=>ni,$08:()=>si,WNM:()=>oi,CCH:()=>ii,vdx:()=>J,J_F:()=>$e,OI0:()=>Ae,BgV:()=>Ce,uSu:()=>Ie,XKp:()=>xe,w_T:()=>Fe,Gog:()=>we,LJJ:()=>be,l_5:()=>ye,K0W:()=>ke,Mlt:()=>vi,gCI:()=>sn,G80:()=>Wr,C9p:()=>io,HDn:()=>S,S_m:()=>ls,Los:()=>vn,E1V:()=>$n,jwZ:()=>Wt,X4G:()=>Pe,L6U:()=>Tt,rME:()=>Ve,tNZ:()=>Ot,XtK:()=>ze,l2S:()=>It,RSh:()=>qe,xKz:()=>Dt,F_x:()=>je,dcP:()=>Rt,jMl:()=>Be,nK4:()=>Et,VYG:()=>Me,leE:()=>Ne,DZu:()=>St,M3E:()=>ti,m_h:()=>ei,EUV:()=>qt,jOI:()=>He,F7s:()=>Le,DEZ:()=>At,wOW:()=>Ke,WsU:()=>zt,UBo:()=>We,McK:()=>Pt,oO8:()=>Ge,oju:()=>Lt,EE_:()=>Ue,WlO:()=>_e,qaq:()=>Ht,amN:()=>Ze,Did:()=>Nt,cMF:()=>Je,k7$:()=>Bt,gVq:()=>Ye,YOP:()=>Mt,c7I:()=>Xe,ykg:()=>Qe,a9E:()=>Vt,cRz:()=>ai,g8A:()=>ri,$_3:()=>li,lHw:()=>ci,EfF:()=>oe,OvE:()=>ie,xif:()=>ne,p5M:()=>se,q1d:()=>ae,uUr:()=>re,xxn:()=>ce,BoM:()=>le,k6y:()=>Jt,m_L:()=>Zt,Tkp:()=>ee,p8g:()=>te,roJ:()=>Xt,MYG:()=>pi,C27:()=>_t,FrS:()=>mi,hb6:()=>fi,Xwl:()=>Kt,u4A:()=>gi,Q2w:()=>Gt,mbK:()=>ui,iSB:()=>Ut,KRS:()=>hi,I21:()=>di,uCh:()=>jt,e1P:()=>Dn,QWu:()=>ln,Uer:()=>ir,fYt:()=>er,abW:()=>tr,fzV:()=>Jn,ixG:()=>dr,gdK:()=>gr,LIK:()=>hl,d4v:()=>br,c8M:()=>kr,dTf:()=>zr,p5X:()=>cs,mEI:()=>qr,ovt:()=>Qr,_vS:()=>na,XAH:()=>Z,BT$:()=>da,spl:()=>Ca,qJj:()=>ba,Hov:()=>ma,Xjb:()=>Sa,uS8:()=>Ra,I6s:()=>Na,qrs:()=>Ga,s5$:()=>il,Wn$:()=>rl,Kgr:()=>tt,Z69:()=>et,kSN:()=>it,FrF:()=>ot,tDF:()=>st,e9J:()=>nt,YVy:()=>rt,vrI:()=>at,TFp:()=>lt,Oc7:()=>ct,aVA:()=>ht,bcZ:()=>dt,FrW:()=>ut,weJ:()=>pt,_UC:()=>gt,Z67:()=>mt,X7g:()=>ft,uwi:()=>vt,mNb:()=>Xr});var o=i(7545),s=i(8527),n=i(6453),r=i(6526),a=i(4120),l=i(301),c=i(7010),h=i(2858);class d extends l.g{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}(0,o.Cg)([(0,s.CF)({attribute:"heading-level",mode:"fromView",converter:s.R$})],d.prototype,"headinglevel",void 0),(0,o.Cg)([(0,s.CF)({mode:"boolean"})],d.prototype,"expanded",void 0),(0,o.Cg)([s.CF],d.prototype,"id",void 0),(0,h.X)(d,c.qw);const u="single",p="multi";class g extends l.g{constructor(){super(...arguments),this.expandmode=p,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach(((t,e)=>{t instanceof d&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?`accordion-${e+1}`:i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)})),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach(((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)}))},this.activeItemChange=t=>{if(t.defaultPrevented||t.target!==t.currentTarget)return;t.preventDefault();const e=t.target;this.activeid=e.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach((t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")}))),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case r.I5:t.preventDefault(),this.adjust(-1);break;case r.HX:t.preventDefault(),this.adjust(1);break;case r.Tg:this.activeItemIndex=0,this.focusItem();break;case r.FM:this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t<this.accordionItems.length;t++)if("true"===this.accordionItems[t].getAttribute("expanded"))return this.accordionItems[t];return null}resetItems(){this.accordionItems.forEach(((t,e)=>{t.expanded=!1}))}getItemIds(){return this.accordionItems.map((t=>t.getAttribute("id")))}isSingleExpandMode(){return this.expandmode===u}adjust(t){this.activeItemIndex=(0,a.Vf)(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof d&&t.expandbutton.focus()}}(0,o.Cg)([(0,s.CF)({attribute:"expand-mode"})],g.prototype,"expandmode",void 0),(0,o.Cg)([n.sH],g.prototype,"accordionItems",void 0);var m=i(171),f=i(7029),v=i(7787),b=i(1698),y=i(5109),x=i(9900),$=i(4526),C=i(3378),w=i(6302),k=i(1776);function F(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const A=Object.freeze({create:(t,e,i)=>new I(t,e,i),from:t=>new I(t.r,t.g,t.b)});class I extends C.M{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=F.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=(0,k.Z8)(this)}static fromObject(t){return new I(t.r,t.g,t.b)}}function T(t,e,i=0,o=t.length-1){if(o===i)return t[i];const s=Math.floor((o-i)/2)+i;return e(t[s])?T(t,e,i,s):T(t,e,s+1,o)}const O=(-.1+Math.sqrt(.21))/2;function S(t){return t.relativeLuminance<=O}function E(t){return S(t)?-1:1}const D=Object.freeze({create:function(t,e,i){return"number"==typeof t?D.from(A.create(t,e,i)):D.from(t)},from:function(t){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?R.from(t):R.from(A.create(t.r,t.g,t.b))}});class R{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=E(t));return-1===o&&(s=this.reversedSwatches,r=n-r),T(s,(i=>F(t,i)>=e),r,n)}get(t){return this.swatches[t]||this.swatches[(0,x.qE)(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce(((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e));return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static from(t){return new R(t,Object.freeze(new $.h({baseColor:C.M.fromObject(t)}).palette.map((t=>{const e=(0,w.Hs)(t.toStringHexRGB());return A.create(e.r,e.g,e.b)}))))}}const H=A.create(1,1,1),L=A.create(0,0,0),z=A.from((0,w.Hs)("#808080")),P=A.from((0,w.Hs)("#DA1A5F"));function V(t){return A.create(t,t,t)}const M={LightMode:1,DarkMode:.23};function N(t,e,i,o,s,n){return Math.max(t.closestIndexOf(V(e))+i,o,s,n)}const{create:B}=b.G;function q(t){return b.G.create({name:t,cssCustomPropertyName:null})}const j=B("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),U=B("base-height-multiplier").withDefault(10),_=B("base-horizontal-spacing-multiplier").withDefault(3),G=B("base-layer-luminance").withDefault(M.DarkMode),K=B("control-corner-radius").withDefault(4),W=B("density").withDefault(0),X=B("design-unit").withDefault(4),Q=B("direction").withDefault(y.O.ltr),Y=B("disabled-opacity").withDefault(.3),Z=B("stroke-width").withDefault(1),J=B("focus-stroke-width").withDefault(2),tt=B("type-ramp-base-font-size").withDefault("14px"),et=B("type-ramp-base-line-height").withDefault("20px"),it=B("type-ramp-minus-1-font-size").withDefault("12px"),ot=B("type-ramp-minus-1-line-height").withDefault("16px"),st=B("type-ramp-minus-2-font-size").withDefault("10px"),nt=B("type-ramp-minus-2-line-height").withDefault("16px"),rt=B("type-ramp-plus-1-font-size").withDefault("16px"),at=B("type-ramp-plus-1-line-height").withDefault("24px"),lt=B("type-ramp-plus-2-font-size").withDefault("20px"),ct=B("type-ramp-plus-2-line-height").withDefault("28px"),ht=B("type-ramp-plus-3-font-size").withDefault("28px"),dt=B("type-ramp-plus-3-line-height").withDefault("36px"),ut=B("type-ramp-plus-4-font-size").withDefault("34px"),pt=B("type-ramp-plus-4-line-height").withDefault("44px"),gt=B("type-ramp-plus-5-font-size").withDefault("46px"),mt=B("type-ramp-plus-5-line-height").withDefault("56px"),ft=B("type-ramp-plus-6-font-size").withDefault("60px"),vt=B("type-ramp-plus-6-line-height").withDefault("72px"),bt=q("accent-fill-rest-delta").withDefault(0),yt=q("accent-fill-hover-delta").withDefault(4),xt=q("accent-fill-active-delta").withDefault(-5),$t=q("accent-fill-focus-delta").withDefault(0),Ct=q("accent-foreground-rest-delta").withDefault(0),wt=q("accent-foreground-hover-delta").withDefault(6),kt=q("accent-foreground-active-delta").withDefault(-4),Ft=q("accent-foreground-focus-delta").withDefault(0),At=q("neutral-fill-rest-delta").withDefault(7),It=q("neutral-fill-hover-delta").withDefault(10),Tt=q("neutral-fill-active-delta").withDefault(5),Ot=q("neutral-fill-focus-delta").withDefault(0),St=q("neutral-fill-input-rest-delta").withDefault(0),Et=q("neutral-fill-input-hover-delta").withDefault(0),Dt=q("neutral-fill-input-active-delta").withDefault(0),Rt=q("neutral-fill-input-focus-delta").withDefault(0),Ht=q("neutral-fill-stealth-rest-delta").withDefault(0),Lt=q("neutral-fill-stealth-hover-delta").withDefault(5),zt=q("neutral-fill-stealth-active-delta").withDefault(3),Pt=q("neutral-fill-stealth-focus-delta").withDefault(0),Vt=q("neutral-fill-strong-rest-delta").withDefault(0),Mt=q("neutral-fill-strong-hover-delta").withDefault(8),Nt=q("neutral-fill-strong-active-delta").withDefault(-5),Bt=q("neutral-fill-strong-focus-delta").withDefault(0),qt=q("neutral-fill-layer-rest-delta").withDefault(3),jt=q("neutral-stroke-rest-delta").withDefault(25),Ut=q("neutral-stroke-hover-delta").withDefault(40),_t=q("neutral-stroke-active-delta").withDefault(16),Gt=q("neutral-stroke-focus-delta").withDefault(25),Kt=q("neutral-stroke-divider-rest-delta").withDefault(8),Wt=B("neutral-color").withDefault(z),Xt=q("neutral-palette").withDefault((t=>D.from(Wt.getValueFor(t)))),Qt=B("accent-color").withDefault(P),Yt=q("accent-palette").withDefault((t=>D.from(Qt.getValueFor(t)))),Zt=q("neutral-layer-card-container-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=G.getValueFor(t),o=qt.getValueFor(t),e.get(e.closestIndexOf(V(i))+o);var e,i,o}}),Jt=B("neutral-layer-card-container").withDefault((t=>Zt.getValueFor(t).evaluate(t))),te=q("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){const o=t.closestIndexOf(V(e))-i;return t.get(o-i)}(Xt.getValueFor(t),G.getValueFor(t),qt.getValueFor(t))}),ee=B("neutral-layer-floating").withDefault((t=>te.getValueFor(t).evaluate(t))),ie=q("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(t.closestIndexOf(V(e)))}(Xt.getValueFor(t),G.getValueFor(t))}),oe=B("neutral-layer-1").withDefault((t=>ie.getValueFor(t).evaluate(t))),se=q("neutral-layer-2-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=G.getValueFor(t),o=qt.getValueFor(t),s=At.getValueFor(t),n=It.getValueFor(t),r=Tt.getValueFor(t),e.get(N(e,i,o,s,n,r));var e,i,o,s,n,r}}),ne=B("neutral-layer-2").withDefault((t=>se.getValueFor(t).evaluate(t))),re=q("neutral-layer-3-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=G.getValueFor(t),o=qt.getValueFor(t),s=At.getValueFor(t),n=It.getValueFor(t),r=Tt.getValueFor(t),e.get(N(e,i,o,s,n,r)+o);var e,i,o,s,n,r}}),ae=B("neutral-layer-3").withDefault((t=>re.getValueFor(t).evaluate(t))),le=q("neutral-layer-4-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=G.getValueFor(t),o=qt.getValueFor(t),s=At.getValueFor(t),n=It.getValueFor(t),r=Tt.getValueFor(t),e.get(N(e,i,o,s,n,r)+2*o);var e,i,o,s,n,r}}),ce=B("neutral-layer-4").withDefault((t=>le.getValueFor(t).evaluate(t))),he=B("fill-color").withDefault((t=>oe.getValueFor(t)));var de;!function(t){t[t.normal=4.5]="normal",t[t.large=7]="large"}(de||(de={}));const ue=B({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l){const c=t.source,h=e.closestIndexOf(i)>=Math.max(r,a,l)?-1:1,d=t.closestIndexOf(c),u=d+-1*h*o,p=u+h*s,g=u+h*n;return{rest:t.get(u),hover:t.get(d),active:t.get(p),focus:t.get(g)}}(Yt.getValueFor(t),Xt.getValueFor(t),e||he.getValueFor(t),yt.getValueFor(t),xt.getValueFor(t),$t.getValueFor(t),At.getValueFor(t),It.getValueFor(t),Tt.getValueFor(t))}),pe=B("accent-fill-rest").withDefault((t=>ue.getValueFor(t).evaluate(t).rest)),ge=B("accent-fill-hover").withDefault((t=>ue.getValueFor(t).evaluate(t).hover)),me=B("accent-fill-active").withDefault((t=>ue.getValueFor(t).evaluate(t).active)),fe=B("accent-fill-focus").withDefault((t=>ue.getValueFor(t).evaluate(t).focus)),ve=t=>(e,i)=>function(t,e){return t.contrast(H)>=e?H:L}(i||pe.getValueFor(e),t),be=q("foreground-on-accent-recipe").withDefault({evaluate:(t,e)=>ve(de.normal)(t,e)}),ye=B("foreground-on-accent-rest").withDefault((t=>be.getValueFor(t).evaluate(t,pe.getValueFor(t)))),xe=B("foreground-on-accent-hover").withDefault((t=>be.getValueFor(t).evaluate(t,ge.getValueFor(t)))),$e=B("foreground-on-accent-active").withDefault((t=>be.getValueFor(t).evaluate(t,me.getValueFor(t)))),Ce=B("foreground-on-accent-focus").withDefault((t=>be.getValueFor(t).evaluate(t,fe.getValueFor(t)))),we=q("foreground-on-accent-large-recipe").withDefault({evaluate:(t,e)=>ve(de.large)(t,e)}),ke=B("foreground-on-accent-rest-large").withDefault((t=>we.getValueFor(t).evaluate(t,pe.getValueFor(t)))),Fe=B("foreground-on-accent-hover-large").withDefault((t=>we.getValueFor(t).evaluate(t,ge.getValueFor(t)))),Ae=B("foreground-on-accent-active-large").withDefault((t=>we.getValueFor(t).evaluate(t,me.getValueFor(t)))),Ie=B("foreground-on-accent-focus-large").withDefault((t=>we.getValueFor(t).evaluate(t,fe.getValueFor(t)))),Te=t=>(e,i)=>function(t,e,i,o,s,n,r){const a=t.source,l=t.closestIndexOf(a),c=E(e),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=t.colorContrast(e,i,h,c),u=t.closestIndexOf(d),p=u+c*Math.abs(o-s);let g,m;return(1===c?o<s:c*o>c*s)?(g=u,m=p):(g=p,m=u),{rest:t.get(g),hover:t.get(m),active:t.get(g+c*n),focus:t.get(g+c*r)}}(Yt.getValueFor(e),i||he.getValueFor(e),t,Ct.getValueFor(e),wt.getValueFor(e),kt.getValueFor(e),Ft.getValueFor(e)),Oe=B({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>Te(de.normal)(t,e)}),Se=B("accent-foreground-rest").withDefault((t=>Oe.getValueFor(t).evaluate(t).rest)),Ee=B("accent-foreground-hover").withDefault((t=>Oe.getValueFor(t).evaluate(t).hover)),De=B("accent-foreground-active").withDefault((t=>Oe.getValueFor(t).evaluate(t).active)),Re=B("accent-foreground-focus").withDefault((t=>Oe.getValueFor(t).evaluate(t).focus)),He=B({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=r>=Math.max(i,o,s,n)?-1:1;return{rest:t.get(r+a*i),hover:t.get(r+a*o),active:t.get(r+a*s),focus:t.get(r+a*n)}}(Xt.getValueFor(t),e||he.getValueFor(t),At.getValueFor(t),It.getValueFor(t),Tt.getValueFor(t),Ot.getValueFor(t))}),Le=B("neutral-fill-rest").withDefault((t=>He.getValueFor(t).evaluate(t).rest)),ze=B("neutral-fill-hover").withDefault((t=>He.getValueFor(t).evaluate(t).hover)),Pe=B("neutral-fill-active").withDefault((t=>He.getValueFor(t).evaluate(t).active)),Ve=B("neutral-fill-focus").withDefault((t=>He.getValueFor(t).evaluate(t).focus)),Me=B({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=E(e),a=t.closestIndexOf(e);return{rest:t.get(a-r*i),hover:t.get(a-r*o),active:t.get(a-r*s),focus:t.get(a-r*n)}}(Xt.getValueFor(t),e||he.getValueFor(t),St.getValueFor(t),Et.getValueFor(t),Dt.getValueFor(t),Rt.getValueFor(t))}),Ne=B("neutral-fill-input-rest").withDefault((t=>Me.getValueFor(t).evaluate(t).rest)),Be=B("neutral-fill-input-hover").withDefault((t=>Me.getValueFor(t).evaluate(t).hover)),qe=B("neutral-fill-input-active").withDefault((t=>Me.getValueFor(t).evaluate(t).active)),je=B("neutral-fill-input-focus").withDefault((t=>Me.getValueFor(t).evaluate(t).focus)),Ue=B({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c){const h=Math.max(i,o,s,n,r,a,l,c),d=t.closestIndexOf(e),u=d>=h?-1:1;return{rest:t.get(d+u*i),hover:t.get(d+u*o),active:t.get(d+u*s),focus:t.get(d+u*n)}}(Xt.getValueFor(t),e||he.getValueFor(t),Ht.getValueFor(t),Lt.getValueFor(t),zt.getValueFor(t),Pt.getValueFor(t),At.getValueFor(t),It.getValueFor(t),Tt.getValueFor(t),Ot.getValueFor(t))}),_e=B("neutral-fill-stealth-rest").withDefault((t=>Ue.getValueFor(t).evaluate(t).rest)),Ge=B("neutral-fill-stealth-hover").withDefault((t=>Ue.getValueFor(t).evaluate(t).hover)),Ke=B("neutral-fill-stealth-active").withDefault((t=>Ue.getValueFor(t).evaluate(t).active)),We=B("neutral-fill-stealth-focus").withDefault((t=>Ue.getValueFor(t).evaluate(t).focus)),Xe=B({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=E(e),a=t.closestIndexOf(t.colorContrast(e,4.5)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(Xt.getValueFor(t),e||he.getValueFor(t),Vt.getValueFor(t),Mt.getValueFor(t),Nt.getValueFor(t),Bt.getValueFor(t))}),Qe=B("neutral-fill-strong-rest").withDefault((t=>Xe.getValueFor(t).evaluate(t).rest)),Ye=B("neutral-fill-strong-hover").withDefault((t=>Xe.getValueFor(t).evaluate(t).hover)),Ze=B("neutral-fill-strong-active").withDefault((t=>Xe.getValueFor(t).evaluate(t).active)),Je=B("neutral-fill-strong-focus").withDefault((t=>Xe.getValueFor(t).evaluate(t).focus)),ti=q("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){const o=t.closestIndexOf(e);return t.get(o-(o<i?-1*i:i))}(Xt.getValueFor(t),e||he.getValueFor(t),qt.getValueFor(t))}),ei=B("neutral-fill-layer-rest").withDefault((t=>ti.getValueFor(t).evaluate(t))),ii=q("focus-stroke-outer-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=he.getValueFor(t),e.colorContrast(i,3.5);var e,i}}),oi=B("focus-stroke-outer").withDefault((t=>ii.getValueFor(t).evaluate(t))),si=q("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return e=Yt.getValueFor(t),i=he.getValueFor(t),o=oi.getValueFor(t),e.colorContrast(o,3.5,e.closestIndexOf(e.source),-1*E(i));var e,i,o}}),ni=B("focus-stroke-inner").withDefault((t=>si.getValueFor(t).evaluate(t))),ri=q("neutral-foreground-hint-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=he.getValueFor(t),e.colorContrast(i,4.5);var e,i}}),ai=B("neutral-foreground-hint").withDefault((t=>ri.getValueFor(t).evaluate(t))),li=q("neutral-foreground-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=he.getValueFor(t),e.colorContrast(i,14);var e,i}}),ci=B("neutral-foreground-rest").withDefault((t=>li.getValueFor(t).evaluate(t))),hi=B({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=E(e),l=r+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(n-i);return{rest:t.get(l),hover:t.get(c),active:t.get(h),focus:t.get(d)}}(Xt.getValueFor(t),he.getValueFor(t),jt.getValueFor(t),Ut.getValueFor(t),_t.getValueFor(t),Gt.getValueFor(t))}),di=B("neutral-stroke-rest").withDefault((t=>hi.getValueFor(t).evaluate(t).rest)),ui=B("neutral-stroke-hover").withDefault((t=>hi.getValueFor(t).evaluate(t).hover)),pi=B("neutral-stroke-active").withDefault((t=>hi.getValueFor(t).evaluate(t).active)),gi=B("neutral-stroke-focus").withDefault((t=>hi.getValueFor(t).evaluate(t).focus)),mi=q("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+E(e)*i)}(Xt.getValueFor(t),e||he.getValueFor(t),Kt.getValueFor(t))}),fi=B("neutral-stroke-divider-rest").withDefault((t=>mi.getValueFor(t).evaluate(t))),vi=b.G.create({name:"height-number",cssCustomPropertyName:null}).withDefault((t=>(U.getValueFor(t)+W.getValueFor(t))*X.getValueFor(t))),bi=(t,e)=>f.A`
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_foundation_shell=self.webpackChunk_genesislcap_foundation_shell||[]).push([[544],{1776:(t,e,i)=>{i.d(e,{Eq:()=>v,Es:()=>f,Gy:()=>C,Mx:()=>b,QX:()=>m,SU:()=>g,Z8:()=>d,eK:()=>$,k5:()=>w,mi:()=>x,s8:()=>h,yN:()=>p,ym:()=>y});var o=i(9770),s=i(824),n=i(7506),r=i(594),a=i(3378),l=i(742),c=i(9900);function h(t){return.2126*t.r+.7152*t.g+.0722*t.b}function d(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return h(new a.M(e(t.r),e(t.g),e(t.b),1))}const u=(t,e)=>(t+.05)/(e+.05);function p(t,e){const i=d(t),o=d(e);return i>o?u(i,o):u(o,i)}function g(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),s=e-i;let n=0;0!==s&&(n=e===t.r?(t.g-t.b)/s%6*60:e===t.g?60*((t.b-t.r)/s+2):60*((t.r-t.g)/s+4)),n<0&&(n+=360);const r=(e+i)/2;let a=0;return 0!==s&&(a=s/(1-Math.abs(2*r-1))),new o.D(n,a,r)}function m(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,l=0;return t.h<60?(n=i,r=o,l=0):t.h<120?(n=o,r=i,l=0):t.h<180?(n=0,r=i,l=o):t.h<240?(n=0,r=o,l=i):t.h<300?(n=o,r=0,l=i):t.h<360&&(n=i,r=0,l=o),new a.M(n+s,r+s,l+s,e)}function f(t){const e=Math.max(t.r,t.g,t.b),i=e-Math.min(t.r,t.g,t.b);let o=0;0!==i&&(o=e===t.r?(t.g-t.b)/i%6*60:e===t.g?60*((t.b-t.r)/i+2):60*((t.r-t.g)/i+4)),o<0&&(o+=360);let n=0;return 0!==e&&(n=i/e),new s.D(o,n,e)}function v(t,e=1){const i=t.s*t.v,o=i*(1-Math.abs(t.h/60%2-1)),s=t.v-i;let n=0,r=0,l=0;return t.h<60?(n=i,r=o,l=0):t.h<120?(n=o,r=i,l=0):t.h<180?(n=0,r=i,l=o):t.h<240?(n=0,r=o,l=i):t.h<300?(n=o,r=0,l=i):t.h<360&&(n=i,r=0,l=o),new a.M(n+s,r+s,l+s,e)}function b(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b),n=.4124564*i+.3575761*o+.1804375*s,r=.2126729*i+.7151522*o+.072175*s,a=.0193339*i+.119192*o+.9503041*s;return new l.P(n,r,a)}function y(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new a.M(o,s,n,e)}function x(t){return function(t){function e(t){return t>n.h.epsilon?Math.pow(t,1/3):(n.h.kappa*t+16)/116}const i=e(t.x/l.P.whitePoint.x),o=e(t.y/l.P.whitePoint.y),s=116*o-16,r=500*(i-o),a=200*(o-e(t.z/l.P.whitePoint.z));return new n.h(s,r,a)}(b(t))}function $(t,e=1){return y(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),r=Math.pow(e,3),a=Math.pow(o,3);let c=0;c=s>n.h.epsilon?s:(116*i-16)/n.h.kappa;let h=0;h=t.l>n.h.epsilon*n.h.kappa?r:t.l/n.h.kappa;let d=0;return d=a>n.h.epsilon?a:(116*o-16)/n.h.kappa,c=l.P.whitePoint.x*c,h=l.P.whitePoint.y*h,d=l.P.whitePoint.z*d,new l.P(c,h,d)}(t),e)}function C(t){return function(t){let e=0;(Math.abs(t.b)>.001||Math.abs(t.a)>.001)&&(e=(0,c.nv)(Math.atan2(t.b,t.a))),e<0&&(e+=360);const i=Math.sqrt(t.a*t.a+t.b*t.b);return new r.b(t.l,i,e)}(x(t))}function w(t,e=1){return $(function(t){let e=0,i=0;return 0!==t.h&&(e=Math.cos((0,c.tR)(t.h))*t.c,i=Math.sin((0,c.tR)(t.h))*t.c),new n.h(t.l,e,i)}(t),e)}},9770:(t,e,i)=>{i.d(e,{D:()=>s});var o=i(9900);class s{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new s(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new s((0,o.l)(this.h,t),(0,o.l)(this.s,t),(0,o.l)(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}},824:(t,e,i)=>{i.d(e,{D:()=>s});var o=i(9900);class s{constructor(t,e,i){this.h=t,this.s=e,this.v=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.v)?null:new s(t.h,t.s,t.v)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.v===t.v}roundToPrecision(t){return new s((0,o.l)(this.h,t),(0,o.l)(this.s,t),(0,o.l)(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}}},7506:(t,e,i)=>{i.d(e,{h:()=>s});var o=i(9900);class s{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new s(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new s((0,o.l)(this.l,t),(0,o.l)(this.a,t),(0,o.l)(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}s.epsilon=216/24389,s.kappa=24389/27},594:(t,e,i)=>{i.d(e,{b:()=>s});var o=i(9900);class s{constructor(t,e,i){this.l=t,this.c=e,this.h=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.c)||isNaN(t.h)?null:new s(t.l,t.c,t.h)}equalValue(t){return this.l===t.l&&this.c===t.c&&this.h===t.h}roundToPrecision(t){return new s((0,o.l)(this.l,t),(0,o.l)(this.c,t),(0,o.l)(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}}},3378:(t,e,i)=>{i.d(e,{M:()=>s});var o=i(9900);class s{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new s(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.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((0,o.NU)(this.r,0,255))},${Math.round((0,o.NU)(this.g,0,255))},${Math.round((0,o.NU)(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round((0,o.NU)(this.r,0,255))},${Math.round((0,o.NU)(this.g,0,255))},${Math.round((0,o.NU)(this.b,0,255))},${(0,o.qE)(this.a,0,1)})`}roundToPrecision(t){return new s((0,o.l)(this.r,t),(0,o.l)(this.g,t),(0,o.l)(this.b,t),(0,o.l)(this.a,t))}clamp(){return new s((0,o.qE)(this.r,0,1),(0,o.qE)(this.g,0,1),(0,o.qE)(this.b,0,1),(0,o.qE)(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return(0,o.IG)((0,o.NU)(t,0,255))}}},742:(t,e,i)=>{i.d(e,{P:()=>s});var o=i(9900);class s{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new s(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new s((0,o.l)(this.x,t),(0,o.l)(this.y,t),(0,o.l)(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}s.whitePoint=new s(.95047,1,1.08883)},4526:(t,e,i)=>{i.d(e,{h:()=>C});var o,s=i(3378),n=i(1776),r=i(594),a=i(9900);function l(t,e,i=18){const o=(0,n.Gy)(t);let s=o.c+e*i;return s<0&&(s=0),(0,n.k5)(new r.b(o.l,s,o.h))}function c(t,e){return t*e}function h(t,e){return new s.M(c(t.r,e.r),c(t.g,e.g),c(t.b,e.b),1)}function d(t,e){return t<.5?(0,a.qE)(2*e*t,0,1):(0,a.qE)(1-2*(1-e)*(1-t),0,1)}function u(t,e){return new s.M(d(t.r,e.r),d(t.g,e.g),d(t.b,e.b),1)}!function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(o||(o={}));var p,g=i(9770),m=i(824),f=i(7506),v=i(742);function b(t,e,i,o){if(isNaN(t)||t<=0)return i;if(t>=1)return o;switch(e){case p.HSL:return(0,n.QX)(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new g.D((0,a.c5)(t,e.h,i.h),(0,a.Cc)(t,e.s,i.s),(0,a.Cc)(t,e.l,i.l))}(t,(0,n.SU)(i),(0,n.SU)(o)));case p.HSV:return(0,n.Eq)(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new m.D((0,a.c5)(t,e.h,i.h),(0,a.Cc)(t,e.s,i.s),(0,a.Cc)(t,e.v,i.v))}(t,(0,n.Es)(i),(0,n.Es)(o)));case p.XYZ:return(0,n.ym)(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new v.P((0,a.Cc)(t,e.x,i.x),(0,a.Cc)(t,e.y,i.y),(0,a.Cc)(t,e.z,i.z))}(t,(0,n.Mx)(i),(0,n.Mx)(o)));case p.LAB:return(0,n.eK)(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new f.h((0,a.Cc)(t,e.l,i.l),(0,a.Cc)(t,e.a,i.a),(0,a.Cc)(t,e.b,i.b))}(t,(0,n.mi)(i),(0,n.mi)(o)));case p.LCH:return(0,n.k5)(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new r.b((0,a.Cc)(t,e.l,i.l),(0,a.Cc)(t,e.c,i.c),(0,a.c5)(t,e.h,i.h))}(t,(0,n.Gy)(i),(0,n.Gy)(o)));default:return function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new s.M((0,a.Cc)(t,e.r,i.r),(0,a.Cc)(t,e.g,i.g),(0,a.Cc)(t,e.b,i.b),(0,a.Cc)(t,e.a,i.a))}(t,i,o)}}!function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(p||(p={}));class y{constructor(t){if(null==t||0===t.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(t)}static createBalancedColorScale(t){if(null==t||0===t.length)throw new Error("The colors argument must be non-empty");const e=new Array(t.length);for(let i=0;i<t.length;i++)0===i?e[i]={color:t[i],position:0}:i===t.length-1?e[i]={color:t[i],position:1}:e[i]={color:t[i],position:i*(1/(t.length-1))};return new y(e)}getColor(t,e=p.RGB){if(1===this.stops.length)return this.stops[0].color;if(t<=0)return this.stops[0].color;if(t>=1)return this.stops[this.stops.length-1].color;let i=0;for(let e=0;e<this.stops.length;e++)this.stops[e].position<=t&&(i=e);let o=i+1;o>=this.stops.length&&(o=this.stops.length-1);return b((t-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),e,this.stops[i].color,this.stops[o].color)}trim(t,e,i=p.RGB){if(t<0||e>1||e<t)throw new Error("Invalid bounds");if(t===e)return new y([{color:this.getColor(t,i),position:0}]);const o=[];for(let i=0;i<this.stops.length;i++)this.stops[i].position>=t&&this.stops[i].position<=e&&o.push(this.stops[i]);if(0===o.length)return new y([{color:this.getColor(t),position:t},{color:this.getColor(e),position:e}]);o[0].position!==t&&o.unshift({color:this.getColor(t),position:t}),o[o.length-1].position!==e&&o.push({color:this.getColor(e),position:e});const s=e-t,n=new Array(o.length);for(let e=0;e<o.length;e++)n[e]={color:o[e].color,position:(o[e].position-t)/s};return new y(n)}findNextColor(t,e,i=!1,o=p.RGB,s=.005,r=32){isNaN(t)||t<=0?t=0:t>=1&&(t=1);const a=this.getColor(t,o),l=i?0:1,c=this.getColor(l,o);if((0,n.yN)(a,c)<=e)return l;let h=i?0:t,d=i?t:0,u=l,g=0;for(;g<=r;){u=Math.abs(d-h)/2+h;const t=this.getColor(u,o),r=(0,n.yN)(a,t);if(Math.abs(r-e)<=s)return u;r>e?i?h=u:d=u:i?d=u:h=u,g++}return u}clone(){const t=new Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new y(t)}sortColorScaleStops(t){return t.sort(((t,e)=>{const i=t.position,o=e.position;return i<o?-1:i>o?1:0}))}}var x=i(6302);class ${constructor(t){this.config=Object.assign({},$.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(t){let e=!1;for(const i in t)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(t[i])||(this.config[i]=t[i],e=!0):t[i]!==this.config[i]&&(this.config[i]=t[i],e=!0));return e&&this.updatePaletteColors(),e}updatePaletteColors(){const t=this.generatePaletteColorScale();for(let e=0;e<this.config.steps;e++)this.palette[e]=t.getColor(e/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const t=(0,n.SU)(this.config.baseColor),e=new y([{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=e.getColor(0),o=e.getColor(1);if(t.s>=this.config.saturationAdjustmentCutoff&&(i=l(i,this.config.saturationLight),o=l(o,this.config.saturationDark)),0!==this.config.multiplyLight){const t=h(this.config.baseColor,i);i=b(this.config.multiplyLight,this.config.interpolationMode,i,t)}if(0!==this.config.multiplyDark){const t=h(this.config.baseColor,o);o=b(this.config.multiplyDark,this.config.interpolationMode,o,t)}if(0!==this.config.overlayLight){const t=u(this.config.baseColor,i);i=b(this.config.overlayLight,this.config.interpolationMode,i,t)}if(0!==this.config.overlayDark){const t=u(this.config.baseColor,o);o=b(this.config.overlayDark,this.config.interpolationMode,o,t)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new y([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new y([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new y([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new y([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}$.defaultPaletteConfig={baseColor:(0,x.Hs)("#808080"),steps:11,interpolationMode:p.RGB,scaleColorLight:new s.M(1,1,1,1),scaleColorDark:new s.M(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},$.greyscalePaletteConfig={baseColor:(0,x.Hs)("#808080"),steps:11,interpolationMode:p.RGB,scaleColorLight:new s.M(1,1,1,1),scaleColorDark:new s.M(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};$.defaultPaletteConfig.scaleColorLight,$.defaultPaletteConfig.scaleColorDark;class C{constructor(t){this.palette=[],this.config=Object.assign({},C.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let t=this.config.steps;(isNaN(t)||t<3)&&(t=3);const e=.14,i=new s.M(e,e,e,1),o=new $(Object.assign(Object.assign({},$.greyscalePaletteConfig),{baseColor:i,baseScalePosition:86/94,steps:t})).palette,r=((0,n.s8)(this.config.baseColor)+(0,n.SU)(this.config.baseColor).l)/2,a=this.matchRelativeLuminanceIndex(r,o)/(t-1),l=this.matchRelativeLuminanceIndex(e,o)/(t-1),c=(0,n.SU)(this.config.baseColor),h=(0,n.QX)(g.D.fromObject({h:c.h,s:c.s,l:e})),d=(0,n.QX)(g.D.fromObject({h:c.h,s:c.s,l:.06})),u=new Array(5);u[0]={position:0,color:new s.M(1,1,1,1)},u[1]={position:a,color:this.config.baseColor},u[2]={position:l,color:h},u[3]={position:.99,color:d},u[4]={position:1,color:new s.M(0,0,0,1)};const m=new y(u);this.palette=new Array(t);for(let e=0;e<t;e++){const i=m.getColor(e/(t-1),p.RGB);this.palette[e]=i}}matchRelativeLuminanceIndex(t,e){let i=Number.MAX_VALUE,o=0,s=0;const r=e.length;for(;s<r;s++){const r=Math.abs((0,n.s8)(e[s])-t);r<i&&(i=r,o=s)}return o}}C.defaultPaletteConfig={baseColor:(0,x.Hs)("#808080"),steps:94}},9900:(t,e,i)=>{function o(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function s(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function n(t,e,i){return isNaN(t)?e:e+t*(i-e)}function r(t){return t*(Math.PI/180)}function a(t){return t*(180/Math.PI)}function l(t){const e=Math.round(o(t,0,255)).toString(16);return 1===e.length?"0"+e:e}function c(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function h(t,e,i){if(t<=0)return e%360;if(t>=1)return i%360;const o=(e-i+360)%360;return o<=(i-e+360)%360?(e-o*t+360)%360:(e+o*t+360)%360}i.d(e,{Cc:()=>c,IG:()=>l,NU:()=>n,S8:()=>s,c5:()=>h,l:()=>d,nv:()=>a,qE:()=>o,tR:()=>r});Math.PI;function d(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}},6302:(t,e,i)=>{i.d(e,{Hs:()=>r});var o=i(3378),s=i(9900);const n=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function r(t){const e=n.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const r=parseInt(i,16);return isNaN(r)?null:new o.M((0,s.S8)((16711680&r)>>>16,0,255),(0,s.S8)((65280&r)>>>8,0,255),(0,s.S8)(255&r,0,255),1)}},1674:(t,e,i)=>{i.d(e,{nD3:()=>g,AsP:()=>d,gUV:()=>on,MzZ:()=>Bi,NiS:()=>ji.N,euF:()=>eo,Exy:()=>Qi,QpV:()=>uo,J53:()=>ao,$nd:()=>ko,VvS:()=>Io,tCZ:()=>Oo,ZpM:()=>zo,Sc0:()=>No,G3_:()=>ds,zhn:()=>vs.zh,NEp:()=>ps.N,r6F:()=>ms.r,bWg:()=>Ts,lGe:()=>Rs,toe:()=>Zi,EN$:()=>Ms,cGx:()=>js,ZIV:()=>Ws,ox2:()=>nn,WFm:()=>dn,h7k:()=>as.h7,W1t:()=>Cn,Drp:()=>mn,ozX:()=>Rn,pFT:()=>D,LCI:()=>Yn,Gys:()=>sr,kej:()=>cr,C8A:()=>cr,sxL:()=>Cr,z6M:()=>fr,vji:()=>Hr,l6P:()=>Vr,EAD:()=>Nr,Apm:()=>ia,KVr:()=>Qr,yp6:()=>M,q4b:()=>A,dOG:()=>ca,ozo:()=>fa,KpK:()=>xa,tUM:()=>pa.t,fs1:()=>Ea,A_L:()=>Ha,M7E:()=>Ba,m_M:()=>Ua,yhE:()=>Xa,GST:()=>sl,WB3:()=>Yt,amQ:()=>me,uPj:()=>xt,KJd:()=>fe,_SK:()=>$t,OS0:()=>ge,MAo:()=>yt,c7L:()=>ue,IRh:()=>pe,yzC:()=>bt,QL0:()=>De,mDN:()=>kt,iLG:()=>Re,eme:()=>Ft,YLI:()=>Ee,CX6:()=>wt,yYz:()=>Oe,W_m:()=>Se,kw4:()=>Ct,ceu:()=>Qt,sd7:()=>Fi,FRc:()=>bi,QHc:()=>ll,ePw:()=>Ni,zsO:()=>_i,mvy:()=>to,oOk:()=>no,Sss:()=>U,a9C:()=>_,li_:()=>G,OCo:()=>j,JIp:()=>co,Ugz:()=>go,VVw:()=>wo,de_:()=>Lo,o4Q:()=>qo,gNH:()=>hs,PbG:()=>K,FJj:()=>$s,pAd:()=>xs,l1N:()=>ys,Brd:()=>W,Bsp:()=>Ss,hMh:()=>Os,vR1:()=>X,xhW:()=>Hs,oWd:()=>Y,qB4:()=>Q,aD6:()=>Vs,knM:()=>_s,zQD:()=>Ii,_A3:()=>Ai,G7x:()=>qi,DG$:()=>Gi,qZL:()=>oo,oAs:()=>ro,KZI:()=>mo,JeX:()=>ho,Jxp:()=>Fo,j1l:()=>So,nfZ:()=>Po,QOv:()=>jo,SQJ:()=>us,XW0:()=>ks,neU:()=>Cs,Fgu:()=>ws,zpP:()=>Es,bOf:()=>Ls,Sj3:()=>Ns,Erd:()=>Gs,$Mi:()=>Qs,KPn:()=>rn,Avu:()=>un,WGh:()=>wn,Z3W:()=>bn,EWl:()=>Hn,Q_W:()=>cn,R_m:()=>or,XJS:()=>ar,qnd:()=>lr,csH:()=>nr,$mx:()=>rr,Oei:()=>mr,oGn:()=>ur,SRm:()=>Fr,FCb:()=>yr,$St:()=>Lr,ZFr:()=>Mr,Uxm:()=>jr,e9K:()=>ra,wD8:()=>Zr,FLx:()=>ua,caM:()=>ya,KSz:()=>wa,pnC:()=>ka,vTq:()=>Da,oDQ:()=>La,_Lz:()=>qa,YCz:()=>Ka,wHQ:()=>ol,unx:()=>al,pfK:()=>he,NPv:()=>Ys,fFd:()=>ni,$08:()=>si,WNM:()=>oi,CCH:()=>ii,vdx:()=>J,J_F:()=>$e,OI0:()=>Ae,BgV:()=>Ce,uSu:()=>Ie,XKp:()=>xe,w_T:()=>Fe,Gog:()=>we,LJJ:()=>be,l_5:()=>ye,K0W:()=>ke,Mlt:()=>vi,gCI:()=>sn,G80:()=>Wr,C9p:()=>io,HDn:()=>S,S_m:()=>ls,Los:()=>vn,E1V:()=>$n,jwZ:()=>Wt,X4G:()=>Pe,L6U:()=>Tt,rME:()=>Ve,tNZ:()=>Ot,XtK:()=>ze,l2S:()=>It,RSh:()=>qe,xKz:()=>Dt,F_x:()=>je,dcP:()=>Rt,jMl:()=>Be,nK4:()=>Et,VYG:()=>Me,leE:()=>Ne,DZu:()=>St,M3E:()=>ti,m_h:()=>ei,EUV:()=>qt,jOI:()=>He,F7s:()=>Le,DEZ:()=>At,wOW:()=>Ke,WsU:()=>zt,UBo:()=>We,McK:()=>Pt,oO8:()=>Ge,oju:()=>Lt,EE_:()=>Ue,WlO:()=>_e,qaq:()=>Ht,amN:()=>Ze,Did:()=>Nt,cMF:()=>Je,k7$:()=>Bt,gVq:()=>Qe,YOP:()=>Mt,c7I:()=>Xe,ykg:()=>Ye,a9E:()=>Vt,cRz:()=>ai,g8A:()=>ri,$_3:()=>li,lHw:()=>ci,EfF:()=>oe,OvE:()=>ie,xif:()=>ne,p5M:()=>se,q1d:()=>ae,uUr:()=>re,xxn:()=>ce,BoM:()=>le,k6y:()=>Jt,m_L:()=>Zt,Tkp:()=>ee,p8g:()=>te,roJ:()=>Xt,MYG:()=>pi,C27:()=>_t,FrS:()=>mi,hb6:()=>fi,Xwl:()=>Kt,u4A:()=>gi,Q2w:()=>Gt,mbK:()=>ui,iSB:()=>Ut,KRS:()=>hi,I21:()=>di,uCh:()=>jt,e1P:()=>Dn,QWu:()=>ln,Uer:()=>ir,fYt:()=>er,abW:()=>tr,fzV:()=>Jn,ixG:()=>dr,gdK:()=>gr,LIK:()=>hl,d4v:()=>br,c8M:()=>kr,dTf:()=>zr,p5X:()=>cs,mEI:()=>qr,ovt:()=>Yr,_vS:()=>na,XAH:()=>Z,BT$:()=>da,spl:()=>Ca,qJj:()=>ba,Hov:()=>ma,Xjb:()=>Sa,uS8:()=>Ra,I6s:()=>Na,qrs:()=>Ga,s5$:()=>il,Wn$:()=>rl,Kgr:()=>tt,Z69:()=>et,kSN:()=>it,FrF:()=>ot,tDF:()=>st,e9J:()=>nt,YVy:()=>rt,vrI:()=>at,TFp:()=>lt,Oc7:()=>ct,aVA:()=>ht,bcZ:()=>dt,FrW:()=>ut,weJ:()=>pt,_UC:()=>gt,Z67:()=>mt,X7g:()=>ft,uwi:()=>vt,mNb:()=>Xr});var o=i(7545),s=i(8527),n=i(6453),r=i(6526),a=i(4120),l=i(301),c=i(7010),h=i(2858);class d extends l.g{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}(0,o.Cg)([(0,s.CF)({attribute:"heading-level",mode:"fromView",converter:s.R$})],d.prototype,"headinglevel",void 0),(0,o.Cg)([(0,s.CF)({mode:"boolean"})],d.prototype,"expanded",void 0),(0,o.Cg)([s.CF],d.prototype,"id",void 0),(0,h.X)(d,c.qw);const u="single",p="multi";class g extends l.g{constructor(){super(...arguments),this.expandmode=p,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach(((t,e)=>{t instanceof d&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?`accordion-${e+1}`:i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)})),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach(((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)}))},this.activeItemChange=t=>{if(t.defaultPrevented||t.target!==t.currentTarget)return;t.preventDefault();const e=t.target;this.activeid=e.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach((t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")}))),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case r.I5:t.preventDefault(),this.adjust(-1);break;case r.HX:t.preventDefault(),this.adjust(1);break;case r.Tg:this.activeItemIndex=0,this.focusItem();break;case r.FM:this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t<this.accordionItems.length;t++)if("true"===this.accordionItems[t].getAttribute("expanded"))return this.accordionItems[t];return null}resetItems(){this.accordionItems.forEach(((t,e)=>{t.expanded=!1}))}getItemIds(){return this.accordionItems.map((t=>t.getAttribute("id")))}isSingleExpandMode(){return this.expandmode===u}adjust(t){this.activeItemIndex=(0,a.Vf)(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof d&&t.expandbutton.focus()}}(0,o.Cg)([(0,s.CF)({attribute:"expand-mode"})],g.prototype,"expandmode",void 0),(0,o.Cg)([n.sH],g.prototype,"accordionItems",void 0);var m=i(171),f=i(7029),v=i(7787),b=i(1698),y=i(5109),x=i(9900),$=i(4526),C=i(3378),w=i(6302),k=i(1776);function F(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const A=Object.freeze({create:(t,e,i)=>new I(t,e,i),from:t=>new I(t.r,t.g,t.b)});class I extends C.M{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=F.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=(0,k.Z8)(this)}static fromObject(t){return new I(t.r,t.g,t.b)}}function T(t,e,i=0,o=t.length-1){if(o===i)return t[i];const s=Math.floor((o-i)/2)+i;return e(t[s])?T(t,e,i,s):T(t,e,s+1,o)}const O=(-.1+Math.sqrt(.21))/2;function S(t){return t.relativeLuminance<=O}function E(t){return S(t)?-1:1}const D=Object.freeze({create:function(t,e,i){return"number"==typeof t?D.from(A.create(t,e,i)):D.from(t)},from:function(t){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?R.from(t):R.from(A.create(t.r,t.g,t.b))}});class R{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=E(t));return-1===o&&(s=this.reversedSwatches,r=n-r),T(s,(i=>F(t,i)>=e),r,n)}get(t){return this.swatches[t]||this.swatches[(0,x.qE)(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce(((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e));return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static from(t){return new R(t,Object.freeze(new $.h({baseColor:C.M.fromObject(t)}).palette.map((t=>{const e=(0,w.Hs)(t.toStringHexRGB());return A.create(e.r,e.g,e.b)}))))}}const H=A.create(1,1,1),L=A.create(0,0,0),z=A.from((0,w.Hs)("#808080")),P=A.from((0,w.Hs)("#DA1A5F"));function V(t){return A.create(t,t,t)}const M={LightMode:1,DarkMode:.23};function N(t,e,i,o,s,n){return Math.max(t.closestIndexOf(V(e))+i,o,s,n)}const{create:B}=b.G;function q(t){return b.G.create({name:t,cssCustomPropertyName:null})}const j=B("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),U=B("base-height-multiplier").withDefault(10),_=B("base-horizontal-spacing-multiplier").withDefault(3),G=B("base-layer-luminance").withDefault(M.DarkMode),K=B("control-corner-radius").withDefault(4),W=B("density").withDefault(0),X=B("design-unit").withDefault(4),Y=B("direction").withDefault(y.O.ltr),Q=B("disabled-opacity").withDefault(.3),Z=B("stroke-width").withDefault(1),J=B("focus-stroke-width").withDefault(2),tt=B("type-ramp-base-font-size").withDefault("14px"),et=B("type-ramp-base-line-height").withDefault("20px"),it=B("type-ramp-minus-1-font-size").withDefault("12px"),ot=B("type-ramp-minus-1-line-height").withDefault("16px"),st=B("type-ramp-minus-2-font-size").withDefault("10px"),nt=B("type-ramp-minus-2-line-height").withDefault("16px"),rt=B("type-ramp-plus-1-font-size").withDefault("16px"),at=B("type-ramp-plus-1-line-height").withDefault("24px"),lt=B("type-ramp-plus-2-font-size").withDefault("20px"),ct=B("type-ramp-plus-2-line-height").withDefault("28px"),ht=B("type-ramp-plus-3-font-size").withDefault("28px"),dt=B("type-ramp-plus-3-line-height").withDefault("36px"),ut=B("type-ramp-plus-4-font-size").withDefault("34px"),pt=B("type-ramp-plus-4-line-height").withDefault("44px"),gt=B("type-ramp-plus-5-font-size").withDefault("46px"),mt=B("type-ramp-plus-5-line-height").withDefault("56px"),ft=B("type-ramp-plus-6-font-size").withDefault("60px"),vt=B("type-ramp-plus-6-line-height").withDefault("72px"),bt=q("accent-fill-rest-delta").withDefault(0),yt=q("accent-fill-hover-delta").withDefault(4),xt=q("accent-fill-active-delta").withDefault(-5),$t=q("accent-fill-focus-delta").withDefault(0),Ct=q("accent-foreground-rest-delta").withDefault(0),wt=q("accent-foreground-hover-delta").withDefault(6),kt=q("accent-foreground-active-delta").withDefault(-4),Ft=q("accent-foreground-focus-delta").withDefault(0),At=q("neutral-fill-rest-delta").withDefault(7),It=q("neutral-fill-hover-delta").withDefault(10),Tt=q("neutral-fill-active-delta").withDefault(5),Ot=q("neutral-fill-focus-delta").withDefault(0),St=q("neutral-fill-input-rest-delta").withDefault(0),Et=q("neutral-fill-input-hover-delta").withDefault(0),Dt=q("neutral-fill-input-active-delta").withDefault(0),Rt=q("neutral-fill-input-focus-delta").withDefault(0),Ht=q("neutral-fill-stealth-rest-delta").withDefault(0),Lt=q("neutral-fill-stealth-hover-delta").withDefault(5),zt=q("neutral-fill-stealth-active-delta").withDefault(3),Pt=q("neutral-fill-stealth-focus-delta").withDefault(0),Vt=q("neutral-fill-strong-rest-delta").withDefault(0),Mt=q("neutral-fill-strong-hover-delta").withDefault(8),Nt=q("neutral-fill-strong-active-delta").withDefault(-5),Bt=q("neutral-fill-strong-focus-delta").withDefault(0),qt=q("neutral-fill-layer-rest-delta").withDefault(3),jt=q("neutral-stroke-rest-delta").withDefault(25),Ut=q("neutral-stroke-hover-delta").withDefault(40),_t=q("neutral-stroke-active-delta").withDefault(16),Gt=q("neutral-stroke-focus-delta").withDefault(25),Kt=q("neutral-stroke-divider-rest-delta").withDefault(8),Wt=B("neutral-color").withDefault(z),Xt=q("neutral-palette").withDefault((t=>D.from(Wt.getValueFor(t)))),Yt=B("accent-color").withDefault(P),Qt=q("accent-palette").withDefault((t=>D.from(Yt.getValueFor(t)))),Zt=q("neutral-layer-card-container-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=G.getValueFor(t),o=qt.getValueFor(t),e.get(e.closestIndexOf(V(i))+o);var e,i,o}}),Jt=B("neutral-layer-card-container").withDefault((t=>Zt.getValueFor(t).evaluate(t))),te=q("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){const o=t.closestIndexOf(V(e))-i;return t.get(o-i)}(Xt.getValueFor(t),G.getValueFor(t),qt.getValueFor(t))}),ee=B("neutral-layer-floating").withDefault((t=>te.getValueFor(t).evaluate(t))),ie=q("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(t.closestIndexOf(V(e)))}(Xt.getValueFor(t),G.getValueFor(t))}),oe=B("neutral-layer-1").withDefault((t=>ie.getValueFor(t).evaluate(t))),se=q("neutral-layer-2-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=G.getValueFor(t),o=qt.getValueFor(t),s=At.getValueFor(t),n=It.getValueFor(t),r=Tt.getValueFor(t),e.get(N(e,i,o,s,n,r));var e,i,o,s,n,r}}),ne=B("neutral-layer-2").withDefault((t=>se.getValueFor(t).evaluate(t))),re=q("neutral-layer-3-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=G.getValueFor(t),o=qt.getValueFor(t),s=At.getValueFor(t),n=It.getValueFor(t),r=Tt.getValueFor(t),e.get(N(e,i,o,s,n,r)+o);var e,i,o,s,n,r}}),ae=B("neutral-layer-3").withDefault((t=>re.getValueFor(t).evaluate(t))),le=q("neutral-layer-4-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=G.getValueFor(t),o=qt.getValueFor(t),s=At.getValueFor(t),n=It.getValueFor(t),r=Tt.getValueFor(t),e.get(N(e,i,o,s,n,r)+2*o);var e,i,o,s,n,r}}),ce=B("neutral-layer-4").withDefault((t=>le.getValueFor(t).evaluate(t))),he=B("fill-color").withDefault((t=>oe.getValueFor(t)));var de;!function(t){t[t.normal=4.5]="normal",t[t.large=7]="large"}(de||(de={}));const ue=B({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l){const c=t.source,h=e.closestIndexOf(i)>=Math.max(r,a,l)?-1:1,d=t.closestIndexOf(c),u=d+-1*h*o,p=u+h*s,g=u+h*n;return{rest:t.get(u),hover:t.get(d),active:t.get(p),focus:t.get(g)}}(Qt.getValueFor(t),Xt.getValueFor(t),e||he.getValueFor(t),yt.getValueFor(t),xt.getValueFor(t),$t.getValueFor(t),At.getValueFor(t),It.getValueFor(t),Tt.getValueFor(t))}),pe=B("accent-fill-rest").withDefault((t=>ue.getValueFor(t).evaluate(t).rest)),ge=B("accent-fill-hover").withDefault((t=>ue.getValueFor(t).evaluate(t).hover)),me=B("accent-fill-active").withDefault((t=>ue.getValueFor(t).evaluate(t).active)),fe=B("accent-fill-focus").withDefault((t=>ue.getValueFor(t).evaluate(t).focus)),ve=t=>(e,i)=>function(t,e){return t.contrast(H)>=e?H:L}(i||pe.getValueFor(e),t),be=q("foreground-on-accent-recipe").withDefault({evaluate:(t,e)=>ve(de.normal)(t,e)}),ye=B("foreground-on-accent-rest").withDefault((t=>be.getValueFor(t).evaluate(t,pe.getValueFor(t)))),xe=B("foreground-on-accent-hover").withDefault((t=>be.getValueFor(t).evaluate(t,ge.getValueFor(t)))),$e=B("foreground-on-accent-active").withDefault((t=>be.getValueFor(t).evaluate(t,me.getValueFor(t)))),Ce=B("foreground-on-accent-focus").withDefault((t=>be.getValueFor(t).evaluate(t,fe.getValueFor(t)))),we=q("foreground-on-accent-large-recipe").withDefault({evaluate:(t,e)=>ve(de.large)(t,e)}),ke=B("foreground-on-accent-rest-large").withDefault((t=>we.getValueFor(t).evaluate(t,pe.getValueFor(t)))),Fe=B("foreground-on-accent-hover-large").withDefault((t=>we.getValueFor(t).evaluate(t,ge.getValueFor(t)))),Ae=B("foreground-on-accent-active-large").withDefault((t=>we.getValueFor(t).evaluate(t,me.getValueFor(t)))),Ie=B("foreground-on-accent-focus-large").withDefault((t=>we.getValueFor(t).evaluate(t,fe.getValueFor(t)))),Te=t=>(e,i)=>function(t,e,i,o,s,n,r){const a=t.source,l=t.closestIndexOf(a),c=E(e),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=t.colorContrast(e,i,h,c),u=t.closestIndexOf(d),p=u+c*Math.abs(o-s);let g,m;return(1===c?o<s:c*o>c*s)?(g=u,m=p):(g=p,m=u),{rest:t.get(g),hover:t.get(m),active:t.get(g+c*n),focus:t.get(g+c*r)}}(Qt.getValueFor(e),i||he.getValueFor(e),t,Ct.getValueFor(e),wt.getValueFor(e),kt.getValueFor(e),Ft.getValueFor(e)),Oe=B({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>Te(de.normal)(t,e)}),Se=B("accent-foreground-rest").withDefault((t=>Oe.getValueFor(t).evaluate(t).rest)),Ee=B("accent-foreground-hover").withDefault((t=>Oe.getValueFor(t).evaluate(t).hover)),De=B("accent-foreground-active").withDefault((t=>Oe.getValueFor(t).evaluate(t).active)),Re=B("accent-foreground-focus").withDefault((t=>Oe.getValueFor(t).evaluate(t).focus)),He=B({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=r>=Math.max(i,o,s,n)?-1:1;return{rest:t.get(r+a*i),hover:t.get(r+a*o),active:t.get(r+a*s),focus:t.get(r+a*n)}}(Xt.getValueFor(t),e||he.getValueFor(t),At.getValueFor(t),It.getValueFor(t),Tt.getValueFor(t),Ot.getValueFor(t))}),Le=B("neutral-fill-rest").withDefault((t=>He.getValueFor(t).evaluate(t).rest)),ze=B("neutral-fill-hover").withDefault((t=>He.getValueFor(t).evaluate(t).hover)),Pe=B("neutral-fill-active").withDefault((t=>He.getValueFor(t).evaluate(t).active)),Ve=B("neutral-fill-focus").withDefault((t=>He.getValueFor(t).evaluate(t).focus)),Me=B({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=E(e),a=t.closestIndexOf(e);return{rest:t.get(a-r*i),hover:t.get(a-r*o),active:t.get(a-r*s),focus:t.get(a-r*n)}}(Xt.getValueFor(t),e||he.getValueFor(t),St.getValueFor(t),Et.getValueFor(t),Dt.getValueFor(t),Rt.getValueFor(t))}),Ne=B("neutral-fill-input-rest").withDefault((t=>Me.getValueFor(t).evaluate(t).rest)),Be=B("neutral-fill-input-hover").withDefault((t=>Me.getValueFor(t).evaluate(t).hover)),qe=B("neutral-fill-input-active").withDefault((t=>Me.getValueFor(t).evaluate(t).active)),je=B("neutral-fill-input-focus").withDefault((t=>Me.getValueFor(t).evaluate(t).focus)),Ue=B({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c){const h=Math.max(i,o,s,n,r,a,l,c),d=t.closestIndexOf(e),u=d>=h?-1:1;return{rest:t.get(d+u*i),hover:t.get(d+u*o),active:t.get(d+u*s),focus:t.get(d+u*n)}}(Xt.getValueFor(t),e||he.getValueFor(t),Ht.getValueFor(t),Lt.getValueFor(t),zt.getValueFor(t),Pt.getValueFor(t),At.getValueFor(t),It.getValueFor(t),Tt.getValueFor(t),Ot.getValueFor(t))}),_e=B("neutral-fill-stealth-rest").withDefault((t=>Ue.getValueFor(t).evaluate(t).rest)),Ge=B("neutral-fill-stealth-hover").withDefault((t=>Ue.getValueFor(t).evaluate(t).hover)),Ke=B("neutral-fill-stealth-active").withDefault((t=>Ue.getValueFor(t).evaluate(t).active)),We=B("neutral-fill-stealth-focus").withDefault((t=>Ue.getValueFor(t).evaluate(t).focus)),Xe=B({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=E(e),a=t.closestIndexOf(t.colorContrast(e,4.5)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(Xt.getValueFor(t),e||he.getValueFor(t),Vt.getValueFor(t),Mt.getValueFor(t),Nt.getValueFor(t),Bt.getValueFor(t))}),Ye=B("neutral-fill-strong-rest").withDefault((t=>Xe.getValueFor(t).evaluate(t).rest)),Qe=B("neutral-fill-strong-hover").withDefault((t=>Xe.getValueFor(t).evaluate(t).hover)),Ze=B("neutral-fill-strong-active").withDefault((t=>Xe.getValueFor(t).evaluate(t).active)),Je=B("neutral-fill-strong-focus").withDefault((t=>Xe.getValueFor(t).evaluate(t).focus)),ti=q("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){const o=t.closestIndexOf(e);return t.get(o-(o<i?-1*i:i))}(Xt.getValueFor(t),e||he.getValueFor(t),qt.getValueFor(t))}),ei=B("neutral-fill-layer-rest").withDefault((t=>ti.getValueFor(t).evaluate(t))),ii=q("focus-stroke-outer-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=he.getValueFor(t),e.colorContrast(i,3.5);var e,i}}),oi=B("focus-stroke-outer").withDefault((t=>ii.getValueFor(t).evaluate(t))),si=q("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return e=Qt.getValueFor(t),i=he.getValueFor(t),o=oi.getValueFor(t),e.colorContrast(o,3.5,e.closestIndexOf(e.source),-1*E(i));var e,i,o}}),ni=B("focus-stroke-inner").withDefault((t=>si.getValueFor(t).evaluate(t))),ri=q("neutral-foreground-hint-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=he.getValueFor(t),e.colorContrast(i,4.5);var e,i}}),ai=B("neutral-foreground-hint").withDefault((t=>ri.getValueFor(t).evaluate(t))),li=q("neutral-foreground-recipe").withDefault({evaluate:t=>{return e=Xt.getValueFor(t),i=he.getValueFor(t),e.colorContrast(i,14);var e,i}}),ci=B("neutral-foreground-rest").withDefault((t=>li.getValueFor(t).evaluate(t))),hi=B({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=E(e),l=r+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(n-i);return{rest:t.get(l),hover:t.get(c),active:t.get(h),focus:t.get(d)}}(Xt.getValueFor(t),he.getValueFor(t),jt.getValueFor(t),Ut.getValueFor(t),_t.getValueFor(t),Gt.getValueFor(t))}),di=B("neutral-stroke-rest").withDefault((t=>hi.getValueFor(t).evaluate(t).rest)),ui=B("neutral-stroke-hover").withDefault((t=>hi.getValueFor(t).evaluate(t).hover)),pi=B("neutral-stroke-active").withDefault((t=>hi.getValueFor(t).evaluate(t).active)),gi=B("neutral-stroke-focus").withDefault((t=>hi.getValueFor(t).evaluate(t).focus)),mi=q("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+E(e)*i)}(Xt.getValueFor(t),e||he.getValueFor(t),Kt.getValueFor(t))}),fi=B("neutral-stroke-divider-rest").withDefault((t=>mi.getValueFor(t).evaluate(t))),vi=b.G.create({name:"height-number",cssCustomPropertyName:null}).withDefault((t=>(U.getValueFor(t)+W.getValueFor(t))*X.getValueFor(t))),bi=(t,e)=>f.A`
|
|
2
2
|
${(0,v.V)("flex")} :host {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
flex-direction: column;
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
contain: layout;
|
|
542
542
|
display: block;
|
|
543
543
|
}
|
|
544
|
-
`,Gi=ji.N.compose({baseName:"anchored-region",template:Ui.d,styles:_i});var Ki=i(5062),Wi=i(5066);class Xi extends l.g{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}}(0,o.Cg)([s.CF],Xi.prototype,"fill",void 0),(0,o.Cg)([s.CF],Xi.prototype,"color",void 0),(0,o.Cg)([s.CF],Xi.prototype,"link",void 0),(0,o.Cg)([s.CF],Xi.prototype,"shape",void 0);var
|
|
544
|
+
`,Gi=ji.N.compose({baseName:"anchored-region",template:Ui.d,styles:_i});var Ki=i(5062),Wi=i(5066);class Xi extends l.g{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}}(0,o.Cg)([s.CF],Xi.prototype,"fill",void 0),(0,o.Cg)([s.CF],Xi.prototype,"color",void 0),(0,o.Cg)([s.CF],Xi.prototype,"link",void 0),(0,o.Cg)([s.CF],Xi.prototype,"shape",void 0);var Yi=i(8491);class Qi extends l.g{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}(0,o.Cg)([(0,s.CF)({attribute:"fill"})],Qi.prototype,"fill",void 0),(0,o.Cg)([(0,s.CF)({attribute:"color"})],Qi.prototype,"color",void 0),(0,o.Cg)([(0,s.CF)({mode:"boolean"})],Qi.prototype,"circular",void 0);class Zi{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t);e&&Y.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new Ji(this.ltr,this.rtl,t),i=Y.getValueFor(t);Y.subscribe(e),e.attach(i),this.cache.set(t,e)}}class Ji{constructor(t,e,i){this.ltr=t,this.rtl=e,this.source=i,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const to=(t,e)=>f.A`
|
|
545
545
|
${(0,v.V)("flex")} :host {
|
|
546
546
|
position: relative;
|
|
547
547
|
height: var(--avatar-size, var(--avatar-size-default));
|
|
@@ -600,16 +600,16 @@
|
|
|
600
600
|
min-height: var(--avatar-size, var(--avatar-size-default));
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
::slotted(${t.tagFor(
|
|
603
|
+
::slotted(${t.tagFor(Qi)}) {
|
|
604
604
|
position: absolute;
|
|
605
605
|
display: block;
|
|
606
606
|
}
|
|
607
607
|
`.withBehaviors(new Zi(((t,e)=>f.A`
|
|
608
|
-
::slotted(${t.tagFor(
|
|
608
|
+
::slotted(${t.tagFor(Qi)}) {
|
|
609
609
|
right: 0;
|
|
610
610
|
}
|
|
611
611
|
`)(t),((t,e)=>f.A`
|
|
612
|
-
::slotted(${t.tagFor(
|
|
612
|
+
::slotted(${t.tagFor(Qi)}) {
|
|
613
613
|
left: 0;
|
|
614
614
|
}
|
|
615
615
|
`)(t)));class eo extends Xi{}(0,o.Cg)([(0,s.CF)({attribute:"src"})],eo.prototype,"imgSrc",void 0),(0,o.Cg)([s.CF],eo.prototype,"alt",void 0);const io=Ki.q`
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
part="media"
|
|
623
623
|
/>
|
|
624
624
|
`)}
|
|
625
|
-
`,oo=eo.compose({baseName:"avatar",baseClass:Xi,template:
|
|
625
|
+
`,oo=eo.compose({baseName:"avatar",baseClass:Xi,template:Yi.A,styles:to,media:io,shadowOptions:{delegatesFocus:!0}});var so=i(1235);const no=(t,e)=>f.A`
|
|
626
626
|
${(0,v.V)("inline-block")} :host {
|
|
627
627
|
box-sizing: border-box;
|
|
628
628
|
font-family: ${j};
|
|
@@ -653,7 +653,7 @@
|
|
|
653
653
|
justify-content: center;
|
|
654
654
|
box-sizing: border-box;
|
|
655
655
|
}
|
|
656
|
-
`,ro=
|
|
656
|
+
`,ro=Qi.compose({baseName:"badge",template:so.s,styles:no});class ao extends Oi{constructor(){super(...arguments),this.separator=!0}}(0,o.Cg)([n.sH],ao.prototype,"separator",void 0),(0,h.X)(ao,c.qw,Si);var lo=i(243);const co=(t,e)=>f.A`
|
|
657
657
|
${(0,v.V)("inline-flex")} :host {
|
|
658
658
|
background: transparent;
|
|
659
659
|
box-sizing: border-box;
|
|
@@ -777,7 +777,7 @@
|
|
|
777
777
|
:host([disabled]),
|
|
778
778
|
:host([disabled]:hover),
|
|
779
779
|
:host([disabled]:active) {
|
|
780
|
-
opacity: ${
|
|
780
|
+
opacity: ${Q};
|
|
781
781
|
background-color: ${Le};
|
|
782
782
|
cursor: ${Co};
|
|
783
783
|
}
|
|
@@ -874,8 +874,8 @@
|
|
|
874
874
|
--selected-day-color: ${De};
|
|
875
875
|
--selected-day-background: ${Le};
|
|
876
876
|
--cell-padding: calc(${X} * 1px);
|
|
877
|
-
--disabled-day-opacity: ${
|
|
878
|
-
--inactive-day-opacity: ${
|
|
877
|
+
--disabled-day-opacity: ${Q};
|
|
878
|
+
--inactive-day-opacity: ${Q};
|
|
879
879
|
font-family: ${j};
|
|
880
880
|
font-size: ${tt};
|
|
881
881
|
line-height: ${et};
|
|
@@ -1125,7 +1125,7 @@
|
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
1127
|
:host([disabled]) {
|
|
1128
|
-
opacity: ${
|
|
1128
|
+
opacity: ${Q};
|
|
1129
1129
|
}
|
|
1130
1130
|
`.withBehaviors((0,Ci.mr)(f.A`
|
|
1131
1131
|
.control {
|
|
@@ -1187,7 +1187,7 @@
|
|
|
1187
1187
|
forced-color-adjust: none;
|
|
1188
1188
|
fill: ${wi.A.GrayText};
|
|
1189
1189
|
}
|
|
1190
|
-
`)),jo=No.compose({baseName:"checkbox",template:Bo.U,styles:qo,checkedIndicator:'\n <svg\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '});var Uo=i(4395),_o=i(4324),Go=i(3676);const Ko="above",Wo="below";class Xo extends Go.W{}class Qo extends((0,fo.rf)(Xo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Yo=i(1719);class Zo extends Qo{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=(0,_o.NF)("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Yo.W.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Yo.W.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Yo.W.both}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void Uo.dv.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}get options(){return n.cP.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,n.cP.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}get value(){return n.cP.track(this,"value"),this._value}set value(t){var e,i,o;const s=`${this._value}`;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex((e=>e.text.toLowerCase()===t.toLowerCase())),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),n.cP.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.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(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Yo.W.none||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter((t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase()))),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach((t=>{t.hidden=!this.filteredOptions.includes(t)})))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame((()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})})))}focusoutHandler(t){if(this.syncValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map((t=>t.text)).indexOf(this.control.value)),t.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(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){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;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&this.setInlineSelection();break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=(0,a.AB)(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex((t=>null!==t.getAttribute("selected")||t.selected));this.selectedIndex=t,!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 t;const e=this.selectedIndex>-1?null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text:this.control.value;this.updateValue(this.value!==e)}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Ko:Wo,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ko?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach((t=>{t.selected=e.includes(t)}))}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value,this.control.value=this.value),t&&this.$emit("change")}clearSelectionRange(){const t=this.control.value.length;this.control.setSelectionRange(t,t)}}(0,o.Cg)([(0,s.CF)({attribute:"autocomplete",mode:"fromView"})],Zo.prototype,"autocomplete",void 0),(0,o.Cg)([n.sH],Zo.prototype,"maxHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"open",mode:"boolean"})],Zo.prototype,"open",void 0),(0,o.Cg)([s.CF],Zo.prototype,"placeholder",void 0),(0,o.Cg)([(0,s.CF)({attribute:"position"})],Zo.prototype,"positionAttribute",void 0),(0,o.Cg)([n.sH],Zo.prototype,"position",void 0);class Jo{}(0,o.Cg)([n.sH],Jo.prototype,"ariaAutoComplete",void 0),(0,o.Cg)([n.sH],Jo.prototype,"ariaControls",void 0),(0,h.X)(Jo,Go.r),(0,h.X)(Zo,c.qw,Jo);var ts=i(8348),es=i(4704);var is=i(3473);class os extends is.Q{}class ss extends((0,fo.rf)(os)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class ns extends ss{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=(0,_o.NF)("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void Uo.dv.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return n.cP.track(this,"value"),this._value}set value(t){var e,i,o,s,r,a,l;const c=`${this._value}`;if(null===(e=this._options)||void 0===e?void 0:e.length){const e=this._options.findIndex((e=>e.value===t)),n=null!==(o=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==o?o:null,c=null!==(r=null===(s=this._options[e])||void 0===s?void 0:s.value)&&void 0!==r?r:null;-1!==e&&n===c||(t="",this.selectedIndex=e),t=null!==(l=null===(a=this.firstSelectedOption)||void 0===a?void 0:a.value)&&void 0!==l?l:t}c!==t&&(this._value=t,super.valueChanged(c,t),n.cP.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.value)&&void 0!==i?i:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Ko:Wo,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ko?~~t.top:~~e}get displayValue(){var t,e;return n.cP.track(this,"displayValue"),null!==(e=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)&&void 0!==e?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,e){super.handleChange(t,e),"value"===e&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach((t=>{n.cP.getNotifier(t).unsubscribe(this,"value")})),super.slottedOptionsChanged(t,e),this.options.forEach((t=>{n.cP.getNotifier(t).subscribe(this,"value")})),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=(null===(e=this.listbox)||void 0===e?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var i;super.selectedOptionsChanged(t,e),null===(i=this.options)||void 0===i||i.forEach(((t,e)=>{var i;const o=null===(i=this.proxy)||void 0===i?void 0:i.options.item(e);o&&(o.selected=t.selected)}))}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(Go.W.slottedOptionFilter),i=null==e?void 0:e.findIndex((t=>t.hasAttribute("selected")||t.selected||t.value===this.value));this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.options.add(e)})))}keydownHandler(t){super.keydownHandler(t);const e=t.key||t.key.charCodeAt(0);switch(e){case r.gG:t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case r.Tg:case r.FM:t.preventDefault();break;case r.Mm:t.preventDefault(),this.open=!this.open;break;case r.F9:this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break;case r.J9:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(e===r.HX||e===r.I5)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&n.cP.notify(this,"displayValue")}}(0,o.Cg)([(0,s.CF)({attribute:"open",mode:"boolean"})],ns.prototype,"open",void 0),(0,o.Cg)([n.Jg],ns.prototype,"collapsible",null),(0,o.Cg)([n.sH],ns.prototype,"control",void 0),(0,o.Cg)([(0,s.CF)({attribute:"position"})],ns.prototype,"positionAttribute",void 0),(0,o.Cg)([n.sH],ns.prototype,"position",void 0),(0,o.Cg)([n.sH],ns.prototype,"maxHeight",void 0);class rs{}(0,o.Cg)([n.sH],rs.prototype,"ariaControls",void 0),(0,h.X)(rs,Go.r),(0,h.X)(ns,c.qw,rs);var as=i(3743);const ls=(t,e)=>{const i=t.tagFor(as.h7),o=t.name===t.tagFor(is.Q)?"":".listbox";return f.A`
|
|
1190
|
+
`)),jo=No.compose({baseName:"checkbox",template:Bo.U,styles:qo,checkedIndicator:'\n <svg\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '});var Uo=i(4395),_o=i(4324),Go=i(3676);const Ko="above",Wo="below";class Xo extends Go.W{}class Yo extends((0,fo.rf)(Xo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Qo=i(1719);class Zo extends Yo{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=(0,_o.NF)("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Qo.W.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Qo.W.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Qo.W.both}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void Uo.dv.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}get options(){return n.cP.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,n.cP.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}get value(){return n.cP.track(this,"value"),this._value}set value(t){var e,i,o;const s=`${this._value}`;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex((e=>e.text.toLowerCase()===t.toLowerCase())),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),n.cP.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.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(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Qo.W.none||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter((t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase()))),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach((t=>{t.hidden=!this.filteredOptions.includes(t)})))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame((()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})})))}focusoutHandler(t){if(this.syncValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map((t=>t.text)).indexOf(this.control.value)),t.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(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){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;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&this.setInlineSelection();break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=(0,a.AB)(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex((t=>null!==t.getAttribute("selected")||t.selected));this.selectedIndex=t,!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 t;const e=this.selectedIndex>-1?null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text:this.control.value;this.updateValue(this.value!==e)}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Ko:Wo,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ko?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach((t=>{t.selected=e.includes(t)}))}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value,this.control.value=this.value),t&&this.$emit("change")}clearSelectionRange(){const t=this.control.value.length;this.control.setSelectionRange(t,t)}}(0,o.Cg)([(0,s.CF)({attribute:"autocomplete",mode:"fromView"})],Zo.prototype,"autocomplete",void 0),(0,o.Cg)([n.sH],Zo.prototype,"maxHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"open",mode:"boolean"})],Zo.prototype,"open",void 0),(0,o.Cg)([s.CF],Zo.prototype,"placeholder",void 0),(0,o.Cg)([(0,s.CF)({attribute:"position"})],Zo.prototype,"positionAttribute",void 0),(0,o.Cg)([n.sH],Zo.prototype,"position",void 0);class Jo{}(0,o.Cg)([n.sH],Jo.prototype,"ariaAutoComplete",void 0),(0,o.Cg)([n.sH],Jo.prototype,"ariaControls",void 0),(0,h.X)(Jo,Go.r),(0,h.X)(Zo,c.qw,Jo);var ts=i(8348),es=i(4704);var is=i(3473);class os extends is.Q{}class ss extends((0,fo.rf)(os)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class ns extends ss{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=(0,_o.NF)("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void Uo.dv.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return n.cP.track(this,"value"),this._value}set value(t){var e,i,o,s,r,a,l;const c=`${this._value}`;if(null===(e=this._options)||void 0===e?void 0:e.length){const e=this._options.findIndex((e=>e.value===t)),n=null!==(o=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==o?o:null,c=null!==(r=null===(s=this._options[e])||void 0===s?void 0:s.value)&&void 0!==r?r:null;-1!==e&&n===c||(t="",this.selectedIndex=e),t=null!==(l=null===(a=this.firstSelectedOption)||void 0===a?void 0:a.value)&&void 0!==l?l:t}c!==t&&(this._value=t,super.valueChanged(c,t),n.cP.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.value)&&void 0!==i?i:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Ko:Wo,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ko?~~t.top:~~e}get displayValue(){var t,e;return n.cP.track(this,"displayValue"),null!==(e=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)&&void 0!==e?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,e){super.handleChange(t,e),"value"===e&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach((t=>{n.cP.getNotifier(t).unsubscribe(this,"value")})),super.slottedOptionsChanged(t,e),this.options.forEach((t=>{n.cP.getNotifier(t).subscribe(this,"value")})),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=(null===(e=this.listbox)||void 0===e?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var i;super.selectedOptionsChanged(t,e),null===(i=this.options)||void 0===i||i.forEach(((t,e)=>{var i;const o=null===(i=this.proxy)||void 0===i?void 0:i.options.item(e);o&&(o.selected=t.selected)}))}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(Go.W.slottedOptionFilter),i=null==e?void 0:e.findIndex((t=>t.hasAttribute("selected")||t.selected||t.value===this.value));this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.options.add(e)})))}keydownHandler(t){super.keydownHandler(t);const e=t.key||t.key.charCodeAt(0);switch(e){case r.gG:t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case r.Tg:case r.FM:t.preventDefault();break;case r.Mm:t.preventDefault(),this.open=!this.open;break;case r.F9:this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break;case r.J9:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(e===r.HX||e===r.I5)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&n.cP.notify(this,"displayValue")}}(0,o.Cg)([(0,s.CF)({attribute:"open",mode:"boolean"})],ns.prototype,"open",void 0),(0,o.Cg)([n.Jg],ns.prototype,"collapsible",null),(0,o.Cg)([n.sH],ns.prototype,"control",void 0),(0,o.Cg)([(0,s.CF)({attribute:"position"})],ns.prototype,"positionAttribute",void 0),(0,o.Cg)([n.sH],ns.prototype,"position",void 0),(0,o.Cg)([n.sH],ns.prototype,"maxHeight",void 0);class rs{}(0,o.Cg)([n.sH],rs.prototype,"ariaControls",void 0),(0,h.X)(rs,Go.r),(0,h.X)(ns,c.qw,rs);var as=i(3743);const ls=(t,e)=>{const i=t.tagFor(as.h7),o=t.name===t.tagFor(is.Q)?"":".listbox";return f.A`
|
|
1191
1191
|
${o?"":(0,v.V)("inline-flex")}
|
|
1192
1192
|
|
|
1193
1193
|
:host ${o} {
|
|
@@ -1209,7 +1209,7 @@
|
|
|
1209
1209
|
|
|
1210
1210
|
:host([disabled]) ::slotted(*) {
|
|
1211
1211
|
cursor: ${Co};
|
|
1212
|
-
opacity: ${
|
|
1212
|
+
opacity: ${Q};
|
|
1213
1213
|
pointer-events: none;
|
|
1214
1214
|
}
|
|
1215
1215
|
`}
|
|
@@ -1338,7 +1338,7 @@
|
|
|
1338
1338
|
|
|
1339
1339
|
:host([disabled]) {
|
|
1340
1340
|
cursor: ${Co};
|
|
1341
|
-
opacity: ${
|
|
1341
|
+
opacity: ${Q};
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
1344
|
:host([disabled]) .control {
|
|
@@ -1637,7 +1637,7 @@
|
|
|
1637
1637
|
box-shadow: 0 0 0 1px ${wi.A.CanvasText};
|
|
1638
1638
|
color: ${wi.A.ButtonText};
|
|
1639
1639
|
}
|
|
1640
|
-
`));function Is(t){return(e,i)=>{e[i+"Changed"]=function(e,i){null!=i?t.setValueFor(this,i):t.deleteValueFor(this)}}}class Ts extends l.g{constructor(){super(),this.noPaint=!1;const t={handleChange:this.noPaintChanged.bind(this)};n.cP.getNotifier(this).subscribe(t,"fillColor"),n.cP.getNotifier(this).subscribe(t,"baseLayerLuminance")}noPaintChanged(){this.noPaint||void 0===this.fillColor&&!this.baseLayerLuminance?this.$fastController.removeStyles(As):this.$fastController.addStyles(As)}}(0,o.Cg)([(0,s.CF)({attribute:"no-paint",mode:"boolean"})],Ts.prototype,"noPaint",void 0),(0,o.Cg)([(0,s.CF)({attribute:"fill-color",converter:Fs}),Is(he)],Ts.prototype,"fillColor",void 0),(0,o.Cg)([(0,s.CF)({attribute:"accent-color",converter:Fs,mode:"fromView"}),Is(
|
|
1640
|
+
`));function Is(t){return(e,i)=>{e[i+"Changed"]=function(e,i){null!=i?t.setValueFor(this,i):t.deleteValueFor(this)}}}class Ts extends l.g{constructor(){super(),this.noPaint=!1;const t={handleChange:this.noPaintChanged.bind(this)};n.cP.getNotifier(this).subscribe(t,"fillColor"),n.cP.getNotifier(this).subscribe(t,"baseLayerLuminance")}noPaintChanged(){this.noPaint||void 0===this.fillColor&&!this.baseLayerLuminance?this.$fastController.removeStyles(As):this.$fastController.addStyles(As)}}(0,o.Cg)([(0,s.CF)({attribute:"no-paint",mode:"boolean"})],Ts.prototype,"noPaint",void 0),(0,o.Cg)([(0,s.CF)({attribute:"fill-color",converter:Fs}),Is(he)],Ts.prototype,"fillColor",void 0),(0,o.Cg)([(0,s.CF)({attribute:"accent-color",converter:Fs,mode:"fromView"}),Is(Yt)],Ts.prototype,"accentColor",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-color",converter:Fs,mode:"fromView"}),Is(Wt)],Ts.prototype,"neutralColor",void 0),(0,o.Cg)([(0,s.CF)({converter:s.R$}),Is(W)],Ts.prototype,"density",void 0),(0,o.Cg)([(0,s.CF)({attribute:"design-unit",converter:s.R$}),Is(X)],Ts.prototype,"designUnit",void 0),(0,o.Cg)([(0,s.CF)({attribute:"direction"}),Is(Y)],Ts.prototype,"direction",void 0),(0,o.Cg)([(0,s.CF)({attribute:"base-height-multiplier",converter:s.R$}),Is(U)],Ts.prototype,"baseHeightMultiplier",void 0),(0,o.Cg)([(0,s.CF)({attribute:"base-horizontal-spacing-multiplier",converter:s.R$}),Is(_)],Ts.prototype,"baseHorizontalSpacingMultiplier",void 0),(0,o.Cg)([(0,s.CF)({attribute:"control-corner-radius",converter:s.R$}),Is(K)],Ts.prototype,"controlCornerRadius",void 0),(0,o.Cg)([(0,s.CF)({attribute:"stroke-width",converter:s.R$}),Is(Z)],Ts.prototype,"strokeWidth",void 0),(0,o.Cg)([(0,s.CF)({attribute:"focus-stroke-width",converter:s.R$}),Is(J)],Ts.prototype,"focusStrokeWidth",void 0),(0,o.Cg)([(0,s.CF)({attribute:"disabled-opacity",converter:s.R$}),Is(Q)],Ts.prototype,"disabledOpacity",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-minus-2-font-size"}),Is(st)],Ts.prototype,"typeRampMinus2FontSize",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-minus-2-line-height"}),Is(nt)],Ts.prototype,"typeRampMinus2LineHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-minus-1-font-size"}),Is(it)],Ts.prototype,"typeRampMinus1FontSize",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-minus-1-line-height"}),Is(ot)],Ts.prototype,"typeRampMinus1LineHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-base-font-size"}),Is(tt)],Ts.prototype,"typeRampBaseFontSize",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-base-line-height"}),Is(et)],Ts.prototype,"typeRampBaseLineHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-1-font-size"}),Is(rt)],Ts.prototype,"typeRampPlus1FontSize",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-1-line-height"}),Is(at)],Ts.prototype,"typeRampPlus1LineHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-2-font-size"}),Is(lt)],Ts.prototype,"typeRampPlus2FontSize",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-2-line-height"}),Is(ct)],Ts.prototype,"typeRampPlus2LineHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-3-font-size"}),Is(ht)],Ts.prototype,"typeRampPlus3FontSize",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-3-line-height"}),Is(dt)],Ts.prototype,"typeRampPlus3LineHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-4-font-size"}),Is(ut)],Ts.prototype,"typeRampPlus4FontSize",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-4-line-height"}),Is(pt)],Ts.prototype,"typeRampPlus4LineHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-5-font-size"}),Is(gt)],Ts.prototype,"typeRampPlus5FontSize",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-5-line-height"}),Is(mt)],Ts.prototype,"typeRampPlus5LineHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-6-font-size"}),Is(ft)],Ts.prototype,"typeRampPlus6FontSize",void 0),(0,o.Cg)([(0,s.CF)({attribute:"type-ramp-plus-6-line-height"}),Is(vt)],Ts.prototype,"typeRampPlus6LineHeight",void 0),(0,o.Cg)([(0,s.CF)({attribute:"accent-fill-rest-delta",converter:s.R$}),Is(bt)],Ts.prototype,"accentFillRestDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"accent-fill-hover-delta",converter:s.R$}),Is(yt)],Ts.prototype,"accentFillHoverDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"accent-fill-active-delta",converter:s.R$}),Is(xt)],Ts.prototype,"accentFillActiveDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"accent-fill-focus-delta",converter:s.R$}),Is($t)],Ts.prototype,"accentFillFocusDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"accent-foreground-rest-delta",converter:s.R$}),Is(Ct)],Ts.prototype,"accentForegroundRestDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"accent-foreground-hover-delta",converter:s.R$}),Is(wt)],Ts.prototype,"accentForegroundHoverDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"accent-foreground-active-delta",converter:s.R$}),Is(kt)],Ts.prototype,"accentForegroundActiveDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"accent-foreground-focus-delta",converter:s.R$}),Is(Ft)],Ts.prototype,"accentForegroundFocusDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-rest-delta",converter:s.R$}),Is(At)],Ts.prototype,"neutralFillRestDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-hover-delta",converter:s.R$}),Is(It)],Ts.prototype,"neutralFillHoverDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-active-delta",converter:s.R$}),Is(Tt)],Ts.prototype,"neutralFillActiveDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-focus-delta",converter:s.R$}),Is(Ot)],Ts.prototype,"neutralFillFocusDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-input-rest-delta",converter:s.R$}),Is(St)],Ts.prototype,"neutralFillInputRestDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-input-hover-delta",converter:s.R$}),Is(Et)],Ts.prototype,"neutralFillInputHoverDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-input-active-delta",converter:s.R$}),Is(Dt)],Ts.prototype,"neutralFillInputActiveDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-input-focus-delta",converter:s.R$}),Is(Rt)],Ts.prototype,"neutralFillInputFocusDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-stealth-rest-delta",converter:s.R$}),Is(Ht)],Ts.prototype,"neutralFillStealthRestDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-stealth-hover-delta",converter:s.R$}),Is(Lt)],Ts.prototype,"neutralFillStealthHoverDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-stealth-active-delta",converter:s.R$}),Is(zt)],Ts.prototype,"neutralFillStealthActiveDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-stealth-focus-delta",converter:s.R$}),Is(Pt)],Ts.prototype,"neutralFillStealthFocusDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-strong-hover-delta",converter:s.R$}),Is(Mt)],Ts.prototype,"neutralFillStrongHoverDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-strong-active-delta",converter:s.R$}),Is(Nt)],Ts.prototype,"neutralFillStrongActiveDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-strong-focus-delta",converter:s.R$}),Is(Bt)],Ts.prototype,"neutralFillStrongFocusDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"base-layer-luminance",converter:s.R$}),Is(G)],Ts.prototype,"baseLayerLuminance",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-fill-layer-rest-delta",converter:s.R$}),Is(qt)],Ts.prototype,"neutralFillLayerRestDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-stroke-divider-rest-delta",converter:s.R$}),Is(Kt)],Ts.prototype,"neutralStrokeDividerRestDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-stroke-rest-delta",converter:s.R$}),Is(jt)],Ts.prototype,"neutralStrokeRestDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-stroke-hover-delta",converter:s.R$}),Is(Ut)],Ts.prototype,"neutralStrokeHoverDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-stroke-active-delta",converter:s.R$}),Is(_t)],Ts.prototype,"neutralStrokeActiveDelta",void 0),(0,o.Cg)([(0,s.CF)({attribute:"neutral-stroke-focus-delta",converter:s.R$}),Is(Gt)],Ts.prototype,"neutralStrokeFocusDelta",void 0);const Os=(t,e)=>Ki.q`
|
|
1641
1641
|
<slot></slot>
|
|
1642
1642
|
`,Ss=(t,e)=>f.A`
|
|
1643
1643
|
${(0,v.V)("block")}
|
|
@@ -1789,7 +1789,7 @@
|
|
|
1789
1789
|
border-top: none;
|
|
1790
1790
|
border-left: calc(${Z} * 1px) solid ${fi};
|
|
1791
1791
|
}
|
|
1792
|
-
`,Gs=js.compose({baseName:"divider",template:Us.y,styles:_s});var Ks=i(4439);class Ws extends l.g{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Ks.U.next}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"!==e&&"Space"!==e||this.$emit("click",t),"Escape"===e&&this.blur()}}}(0,o.Cg)([(0,s.CF)({mode:"boolean"})],Ws.prototype,"disabled",void 0),(0,o.Cg)([(0,s.CF)({attribute:"aria-hidden",converter:s.Bs})],Ws.prototype,"hiddenFromAT",void 0),(0,o.Cg)([s.CF],Ws.prototype,"direction",void 0);var Xs=i(7023);const
|
|
1792
|
+
`,Gs=js.compose({baseName:"divider",template:Us.y,styles:_s});var Ks=i(4439);class Ws extends l.g{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Ks.U.next}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"!==e&&"Space"!==e||this.$emit("click",t),"Escape"===e&&this.blur()}}}(0,o.Cg)([(0,s.CF)({mode:"boolean"})],Ws.prototype,"disabled",void 0),(0,o.Cg)([(0,s.CF)({attribute:"aria-hidden",converter:s.Bs})],Ws.prototype,"hiddenFromAT",void 0),(0,o.Cg)([s.CF],Ws.prototype,"direction",void 0);var Xs=i(7023);const Ys=(t,e)=>f.A`
|
|
1793
1793
|
${(0,v.V)("inline-flex")} :host {
|
|
1794
1794
|
width: calc(${ki} * 1px);
|
|
1795
1795
|
height: calc(${ki} * 1px);
|
|
@@ -1828,7 +1828,7 @@
|
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
1830
|
:host([disabled]) {
|
|
1831
|
-
opacity: ${
|
|
1831
|
+
opacity: ${Q};
|
|
1832
1832
|
cursor: ${Co};
|
|
1833
1833
|
fill: currentcolor;
|
|
1834
1834
|
color: ${ci};
|
|
@@ -1916,7 +1916,7 @@
|
|
|
1916
1916
|
border-color: ${wi.A.Highlight};
|
|
1917
1917
|
box-shadow: 0 0 0 calc((${J} - ${Z}) * 1px) ${wi.A.Highlight} inset;
|
|
1918
1918
|
}
|
|
1919
|
-
`)),
|
|
1919
|
+
`)),Qs=Ws.compose({baseName:"flipper",template:Xs.B,styles:Ys,next:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n ',previous:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n />\n </svg>\n '});class Zs extends l.g{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(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,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(t,e){e&&!this.updatingItems&&Uo.dv.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 t=this.scrollItems.reduce(((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t)),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops();const{scrollContainer:t}=this,{scrollLeft:e}=t,{width:i,left:o}=t.getBoundingClientRect();this.width=i;let s=0,n=this.scrollItems.map(((t,i)=>{const{left:n,width:r}=t.getBoundingClientRect(),a=Math.round(n+e-o),l=Math.round(a+r);return this.isRtl?-l:(s=l,0===i?0:a)})).concat(s);n=this.fixScrollMisalign(n),n.sort(((t,e)=>Math.abs(t)-Math.abs(e))),this.scrollStops=n,this.setFlippers()}validateStops(t=!0){const e=()=>!!this.scrollStops.find((t=>t>0));return!e()&&t&&this.setStops(),e()}fixScrollMisalign(t){if(this.isRtl&&t.some((t=>t>0))){t.sort(((t,e)=>e-t));const e=t[0];t=t.map((t=>t-e))}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",this.validateStops(!1)&&Math.abs(i)+this.width>=t)}}scrollInView(t,e=0,i){var o;if("number"!=typeof t&&t&&(t=this.scrollItems.findIndex((e=>e===t||e.contains(t)))),void 0!==t){i=null!=i?i:e;const{scrollContainer:s,scrollStops:n,scrollItems:r}=this,{scrollLeft:a}=this.scrollContainer,{width:l}=s.getBoundingClientRect(),c=n[t],{width:h}=r[t].getBoundingClientRect(),d=c+h,u=a+e>c;if(u||a+l-i<d){const t=null!==(o=[...n].sort(((t,e)=>u?e-t:t-e)).find((t=>u?t+e<c:t+l-(null!=i?i:0)>d)))&&void 0!==o?o:0;this.scrollToPosition(t)}}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){this.validateStops();const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(((e,i)=>e>=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t))),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex((t=>Math.abs(t)+this.width>i));(o>=e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){this.validateStops();const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e=>Math.abs(e)>=Math.abs(t))),i=this.scrollStops.findIndex((e=>Math.abs(t)+this.width<=Math.abs(e)));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),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,o.Cg)([(0,s.CF)({converter:s.R$})],Zs.prototype,"speed",void 0),(0,o.Cg)([s.CF],Zs.prototype,"duration",void 0),(0,o.Cg)([s.CF],Zs.prototype,"easing",void 0),(0,o.Cg)([(0,s.CF)({attribute:"flippers-hidden-from-at",converter:s.Bs})],Zs.prototype,"flippersHiddenFromAT",void 0),(0,o.Cg)([n.sH],Zs.prototype,"scrolling",void 0),(0,o.Cg)([n.sH],Zs.prototype,"scrollItems",void 0),(0,o.Cg)([(0,s.CF)({attribute:"view"})],Zs.prototype,"view",void 0);var Js=i(4647);const tn=f.A`
|
|
1920
1920
|
.scroll-prev {
|
|
1921
1921
|
right: auto;
|
|
1922
1922
|
left: 0;
|
|
@@ -2089,7 +2089,7 @@
|
|
|
2089
2089
|
|
|
2090
2090
|
:host([disabled]) {
|
|
2091
2091
|
cursor: ${Co};
|
|
2092
|
-
opacity: ${
|
|
2092
|
+
opacity: ${Q};
|
|
2093
2093
|
}
|
|
2094
2094
|
|
|
2095
2095
|
.content {
|
|
@@ -2250,7 +2250,7 @@
|
|
|
2250
2250
|
|
|
2251
2251
|
:host([disabled]) {
|
|
2252
2252
|
cursor: ${Co};
|
|
2253
|
-
opacity: ${
|
|
2253
|
+
opacity: ${Q};
|
|
2254
2254
|
}
|
|
2255
2255
|
|
|
2256
2256
|
:host([disabled]:hover) {
|
|
@@ -2699,7 +2699,7 @@
|
|
|
2699
2699
|
}
|
|
2700
2700
|
|
|
2701
2701
|
:host([disabled]) {
|
|
2702
|
-
opacity: ${
|
|
2702
|
+
opacity: ${Q};
|
|
2703
2703
|
}
|
|
2704
2704
|
|
|
2705
2705
|
:host([disabled]) .control {
|
|
@@ -2833,7 +2833,7 @@
|
|
|
2833
2833
|
placeholder="${t=>t.placeholder}"
|
|
2834
2834
|
${(0,ts.K)("inputElement")}
|
|
2835
2835
|
></input>
|
|
2836
|
-
`;class Qn extends Wn{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=t=>{this.query=this.inputElement.value},this.handleInputClick=t=>{t.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{this.flyoutOpen&&(null!==this.region&&void 0!==this.region?this.region.anchorElement=this.inputElement:Uo.dv.queueUpdate(this.setRegionProps))},this.configLookup={top:Pn,bottom:Vn,tallest:Mn,"top-fill":Nn,"bottom-fill":Bn,"tallest-fill":qn}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map((t=>t.trim())).filter((t=>""!==t))}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&Uo.dv.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?(Uo.dv.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&Uo.dv.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=Xn.render(this,this.listElement);const t=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find((e=>e.tagName===t)),void 0===this.menuElement&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),""===this.menuElement.id&&(this.menuElement.id=(0,_o.NF)("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),Uo.dv.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 Ln.RR((t=>t.selectedItems),(t=>t.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 Ln.RR((t=>t.filteredOptionsList),(t=>t.activeMenuOptionTemplate),{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(t){if(this.flyoutOpen!==t){if(t&&document.activeElement===this.inputElement)return this.flyoutOpen=t,void Uo.dv.queueUpdate((()=>{void 0!==this.menuElement?this.setFocusedOption(0):this.disableMenu()}));this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(t){t.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(t){if(t.defaultPrevented)return!1;switch(t.key){case r.HX:if(this.flyoutOpen){const t=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(t)}else this.toggleFlyout(!0);return!1;case r.I5:if(this.flyoutOpen){const t=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(t)}else this.toggleFlyout(!0);return!1;case r.F9:return this.toggleFlyout(!1),!1;case r.Mm:return-1!==this.menuFocusIndex&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case r.bb:return document.activeElement===this.inputElement||(this.incrementFocusedItem(1),!1);case r.kT:return 0!==this.inputElement.selectionStart||(this.incrementFocusedItem(-1),!1);case r.De:case r.R9:{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 t=Array.from(this.listElement.children),e=t.indexOf(document.activeElement);return!(e>-1)||(this.selection=this.selectedItems.splice(e,1).toString(),Uo.dv.queueUpdate((()=>{t[Math.min(t.length,e)].focus()})),!1)}}return this.toggleFlyout(!0),!0}handleFocusIn(t){return!1}handleFocusOut(t){return void 0!==this.menuElement&&this.menuElement.contains(t.relatedTarget)||this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=""===this.selection?[]:this.selection.split(","),this.updateFilteredOptions(),Uo.dv.queueUpdate((()=>{this.checkMaxItems()})),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(t){Uo.dv.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 t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));t[t.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(t){if(t.defaultPrevented)return!1;if(t.target instanceof Gn){const e=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(t.target);if(-1!==e){const t=this.selectedItems.slice();t.splice(e,1),this.selection=t.toString(),Uo.dv.queueUpdate((()=>this.incrementFocusedItem(0)))}return!1}return!0}handleOptionInvoke(t){return!t.defaultPrevented&&(!(t.target instanceof Un)||(void 0!==t.target.value&&(this.selection=`${this.selection}${""===this.selection?"":","}${t.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1))}incrementFocusedItem(t){if(0===this.selectedItems.length)return void this.inputElement.focus();const e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(null!==document.activeElement){let i=e.indexOf(document.activeElement);-1===i&&(i=e.length);const o=Math.min(e.length,Math.max(0,i+t));o===e.length?void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected?e[o-1].focus():this.inputElement.focus():e[o].focus()}}disableMenu(){var t,e,i;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,null===(t=this.inputElement)||void 0===t||t.removeAttribute("aria-activedescendant"),null===(e=this.inputElement)||void 0===e||e.removeAttribute("aria-owns"),null===(i=this.inputElement)||void 0===i||i.removeAttribute("aria-expanded")}setFocusedOption(t){if(!this.flyoutOpen||-1===t||this.showNoOptions||this.showLoading)return void this.disableMenu();if(0===this.menuElement.optionElements.length)return;this.menuElement.optionElements.forEach((t=>{t.setAttribute("aria-selected","false")})),this.menuFocusIndex=t,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 e=this.menuElement.optionElements[this.menuFocusIndex];e.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,e.offsetTop)}updateListItemTemplate(){var t;this.activeListItemTemplate=null!==(t=this.listItemTemplate)&&void 0!==t?t:this.defaultListItemTemplate}updateOptionTemplate(){var t;this.activeMenuOptionTemplate=null!==(t=this.menuOptionTemplate)&&void 0!==t?t:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter((t=>-1===this.selectedItems.indexOf(t)))),this.filterQuery&&""!==this.query&&void 0!==this.query&&(this.filteredOptionsList=this.filteredOptionsList.filter((t=>-1!==t.indexOf(this.query))))}updateMenuConfig(){let t=this.configLookup[this.menuPlacement];null===t&&(t=Bn),this.menuConfig=Object.assign(Object.assign({},t),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}}(0,o.Cg)([(0,s.CF)({attribute:"selection"})],Qn.prototype,"selection",void 0),(0,o.Cg)([(0,s.CF)({attribute:"options"})],Qn.prototype,"options",void 0),(0,o.Cg)([(0,s.CF)({attribute:"filter-selected",mode:"boolean"})],Qn.prototype,"filterSelected",void 0),(0,o.Cg)([(0,s.CF)({attribute:"filter-query",mode:"boolean"})],Qn.prototype,"filterQuery",void 0),(0,o.Cg)([(0,s.CF)({attribute:"max-selected"})],Qn.prototype,"maxSelected",void 0),(0,o.Cg)([(0,s.CF)({attribute:"no-suggestions-text"})],Qn.prototype,"noSuggestionsText",void 0),(0,o.Cg)([(0,s.CF)({attribute:"suggestions-available-text"})],Qn.prototype,"suggestionsAvailableText",void 0),(0,o.Cg)([(0,s.CF)({attribute:"loading-text"})],Qn.prototype,"loadingText",void 0),(0,o.Cg)([(0,s.CF)({attribute:"label"})],Qn.prototype,"label",void 0),(0,o.Cg)([(0,s.CF)({attribute:"labelledby"})],Qn.prototype,"labelledBy",void 0),(0,o.Cg)([(0,s.CF)({attribute:"placeholder"})],Qn.prototype,"placeholder",void 0),(0,o.Cg)([(0,s.CF)({attribute:"menu-placement"})],Qn.prototype,"menuPlacement",void 0),(0,o.Cg)([n.sH],Qn.prototype,"showLoading",void 0),(0,o.Cg)([n.sH],Qn.prototype,"listItemTemplate",void 0),(0,o.Cg)([n.sH],Qn.prototype,"defaultListItemTemplate",void 0),(0,o.Cg)([n.sH],Qn.prototype,"activeListItemTemplate",void 0),(0,o.Cg)([n.sH],Qn.prototype,"menuOptionTemplate",void 0),(0,o.Cg)([n.sH],Qn.prototype,"defaultMenuOptionTemplate",void 0),(0,o.Cg)([n.sH],Qn.prototype,"activeMenuOptionTemplate",void 0),(0,o.Cg)([n.sH],Qn.prototype,"listItemContentsTemplate",void 0),(0,o.Cg)([n.sH],Qn.prototype,"menuOptionContentsTemplate",void 0),(0,o.Cg)([n.sH],Qn.prototype,"optionsList",void 0),(0,o.Cg)([n.sH],Qn.prototype,"query",void 0),(0,o.Cg)([n.sH],Qn.prototype,"filteredOptionsList",void 0),(0,o.Cg)([n.sH],Qn.prototype,"flyoutOpen",void 0),(0,o.Cg)([n.sH],Qn.prototype,"menuId",void 0),(0,o.Cg)([n.sH],Qn.prototype,"selectedListTag",void 0),(0,o.Cg)([n.sH],Qn.prototype,"menuTag",void 0),(0,o.Cg)([n.sH],Qn.prototype,"menuFocusIndex",void 0),(0,o.Cg)([n.sH],Qn.prototype,"menuFocusOptionId",void 0),(0,o.Cg)([n.sH],Qn.prototype,"showNoOptions",void 0),(0,o.Cg)([n.sH],Qn.prototype,"menuConfig",void 0),(0,o.Cg)([n.sH],Qn.prototype,"selectedItems",void 0);class Yn extends l.g{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(t){void 0!==t&&t.forEach((t=>{1===t.nodeType&&"listitem"===t.getAttribute("role")&&(t.id=t.id||(0,_o.NF)("option-"),this.optionElements.push(t))}))}}(0,o.Cg)([n.sH],Yn.prototype,"menuElements",void 0),(0,o.Cg)([n.sH],Yn.prototype,"headerElements",void 0),(0,o.Cg)([n.sH],Yn.prototype,"footerElements",void 0),(0,o.Cg)([n.sH],Yn.prototype,"suggestionsAvailableText",void 0);class Zn extends l.g{}const Jn=(t,e)=>f.A`
|
|
2836
|
+
`;class Yn extends Wn{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=t=>{this.query=this.inputElement.value},this.handleInputClick=t=>{t.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{this.flyoutOpen&&(null!==this.region&&void 0!==this.region?this.region.anchorElement=this.inputElement:Uo.dv.queueUpdate(this.setRegionProps))},this.configLookup={top:Pn,bottom:Vn,tallest:Mn,"top-fill":Nn,"bottom-fill":Bn,"tallest-fill":qn}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map((t=>t.trim())).filter((t=>""!==t))}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&Uo.dv.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?(Uo.dv.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&Uo.dv.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=Xn.render(this,this.listElement);const t=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find((e=>e.tagName===t)),void 0===this.menuElement&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),""===this.menuElement.id&&(this.menuElement.id=(0,_o.NF)("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),Uo.dv.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 Ln.RR((t=>t.selectedItems),(t=>t.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 Ln.RR((t=>t.filteredOptionsList),(t=>t.activeMenuOptionTemplate),{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(t){if(this.flyoutOpen!==t){if(t&&document.activeElement===this.inputElement)return this.flyoutOpen=t,void Uo.dv.queueUpdate((()=>{void 0!==this.menuElement?this.setFocusedOption(0):this.disableMenu()}));this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(t){t.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(t){if(t.defaultPrevented)return!1;switch(t.key){case r.HX:if(this.flyoutOpen){const t=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(t)}else this.toggleFlyout(!0);return!1;case r.I5:if(this.flyoutOpen){const t=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(t)}else this.toggleFlyout(!0);return!1;case r.F9:return this.toggleFlyout(!1),!1;case r.Mm:return-1!==this.menuFocusIndex&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case r.bb:return document.activeElement===this.inputElement||(this.incrementFocusedItem(1),!1);case r.kT:return 0!==this.inputElement.selectionStart||(this.incrementFocusedItem(-1),!1);case r.De:case r.R9:{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 t=Array.from(this.listElement.children),e=t.indexOf(document.activeElement);return!(e>-1)||(this.selection=this.selectedItems.splice(e,1).toString(),Uo.dv.queueUpdate((()=>{t[Math.min(t.length,e)].focus()})),!1)}}return this.toggleFlyout(!0),!0}handleFocusIn(t){return!1}handleFocusOut(t){return void 0!==this.menuElement&&this.menuElement.contains(t.relatedTarget)||this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=""===this.selection?[]:this.selection.split(","),this.updateFilteredOptions(),Uo.dv.queueUpdate((()=>{this.checkMaxItems()})),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(t){Uo.dv.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 t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));t[t.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(t){if(t.defaultPrevented)return!1;if(t.target instanceof Gn){const e=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(t.target);if(-1!==e){const t=this.selectedItems.slice();t.splice(e,1),this.selection=t.toString(),Uo.dv.queueUpdate((()=>this.incrementFocusedItem(0)))}return!1}return!0}handleOptionInvoke(t){return!t.defaultPrevented&&(!(t.target instanceof Un)||(void 0!==t.target.value&&(this.selection=`${this.selection}${""===this.selection?"":","}${t.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1))}incrementFocusedItem(t){if(0===this.selectedItems.length)return void this.inputElement.focus();const e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(null!==document.activeElement){let i=e.indexOf(document.activeElement);-1===i&&(i=e.length);const o=Math.min(e.length,Math.max(0,i+t));o===e.length?void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected?e[o-1].focus():this.inputElement.focus():e[o].focus()}}disableMenu(){var t,e,i;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,null===(t=this.inputElement)||void 0===t||t.removeAttribute("aria-activedescendant"),null===(e=this.inputElement)||void 0===e||e.removeAttribute("aria-owns"),null===(i=this.inputElement)||void 0===i||i.removeAttribute("aria-expanded")}setFocusedOption(t){if(!this.flyoutOpen||-1===t||this.showNoOptions||this.showLoading)return void this.disableMenu();if(0===this.menuElement.optionElements.length)return;this.menuElement.optionElements.forEach((t=>{t.setAttribute("aria-selected","false")})),this.menuFocusIndex=t,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 e=this.menuElement.optionElements[this.menuFocusIndex];e.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,e.offsetTop)}updateListItemTemplate(){var t;this.activeListItemTemplate=null!==(t=this.listItemTemplate)&&void 0!==t?t:this.defaultListItemTemplate}updateOptionTemplate(){var t;this.activeMenuOptionTemplate=null!==(t=this.menuOptionTemplate)&&void 0!==t?t:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter((t=>-1===this.selectedItems.indexOf(t)))),this.filterQuery&&""!==this.query&&void 0!==this.query&&(this.filteredOptionsList=this.filteredOptionsList.filter((t=>-1!==t.indexOf(this.query))))}updateMenuConfig(){let t=this.configLookup[this.menuPlacement];null===t&&(t=Bn),this.menuConfig=Object.assign(Object.assign({},t),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}}(0,o.Cg)([(0,s.CF)({attribute:"selection"})],Yn.prototype,"selection",void 0),(0,o.Cg)([(0,s.CF)({attribute:"options"})],Yn.prototype,"options",void 0),(0,o.Cg)([(0,s.CF)({attribute:"filter-selected",mode:"boolean"})],Yn.prototype,"filterSelected",void 0),(0,o.Cg)([(0,s.CF)({attribute:"filter-query",mode:"boolean"})],Yn.prototype,"filterQuery",void 0),(0,o.Cg)([(0,s.CF)({attribute:"max-selected"})],Yn.prototype,"maxSelected",void 0),(0,o.Cg)([(0,s.CF)({attribute:"no-suggestions-text"})],Yn.prototype,"noSuggestionsText",void 0),(0,o.Cg)([(0,s.CF)({attribute:"suggestions-available-text"})],Yn.prototype,"suggestionsAvailableText",void 0),(0,o.Cg)([(0,s.CF)({attribute:"loading-text"})],Yn.prototype,"loadingText",void 0),(0,o.Cg)([(0,s.CF)({attribute:"label"})],Yn.prototype,"label",void 0),(0,o.Cg)([(0,s.CF)({attribute:"labelledby"})],Yn.prototype,"labelledBy",void 0),(0,o.Cg)([(0,s.CF)({attribute:"placeholder"})],Yn.prototype,"placeholder",void 0),(0,o.Cg)([(0,s.CF)({attribute:"menu-placement"})],Yn.prototype,"menuPlacement",void 0),(0,o.Cg)([n.sH],Yn.prototype,"showLoading",void 0),(0,o.Cg)([n.sH],Yn.prototype,"listItemTemplate",void 0),(0,o.Cg)([n.sH],Yn.prototype,"defaultListItemTemplate",void 0),(0,o.Cg)([n.sH],Yn.prototype,"activeListItemTemplate",void 0),(0,o.Cg)([n.sH],Yn.prototype,"menuOptionTemplate",void 0),(0,o.Cg)([n.sH],Yn.prototype,"defaultMenuOptionTemplate",void 0),(0,o.Cg)([n.sH],Yn.prototype,"activeMenuOptionTemplate",void 0),(0,o.Cg)([n.sH],Yn.prototype,"listItemContentsTemplate",void 0),(0,o.Cg)([n.sH],Yn.prototype,"menuOptionContentsTemplate",void 0),(0,o.Cg)([n.sH],Yn.prototype,"optionsList",void 0),(0,o.Cg)([n.sH],Yn.prototype,"query",void 0),(0,o.Cg)([n.sH],Yn.prototype,"filteredOptionsList",void 0),(0,o.Cg)([n.sH],Yn.prototype,"flyoutOpen",void 0),(0,o.Cg)([n.sH],Yn.prototype,"menuId",void 0),(0,o.Cg)([n.sH],Yn.prototype,"selectedListTag",void 0),(0,o.Cg)([n.sH],Yn.prototype,"menuTag",void 0),(0,o.Cg)([n.sH],Yn.prototype,"menuFocusIndex",void 0),(0,o.Cg)([n.sH],Yn.prototype,"menuFocusOptionId",void 0),(0,o.Cg)([n.sH],Yn.prototype,"showNoOptions",void 0),(0,o.Cg)([n.sH],Yn.prototype,"menuConfig",void 0),(0,o.Cg)([n.sH],Yn.prototype,"selectedItems",void 0);class Qn extends l.g{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(t){void 0!==t&&t.forEach((t=>{1===t.nodeType&&"listitem"===t.getAttribute("role")&&(t.id=t.id||(0,_o.NF)("option-"),this.optionElements.push(t))}))}}(0,o.Cg)([n.sH],Qn.prototype,"menuElements",void 0),(0,o.Cg)([n.sH],Qn.prototype,"headerElements",void 0),(0,o.Cg)([n.sH],Qn.prototype,"footerElements",void 0),(0,o.Cg)([n.sH],Qn.prototype,"suggestionsAvailableText",void 0);class Zn extends l.g{}const Jn=(t,e)=>f.A`
|
|
2837
2837
|
.region {
|
|
2838
2838
|
z-index: 1000;
|
|
2839
2839
|
overflow: hidden;
|
|
@@ -3036,7 +3036,7 @@
|
|
|
3036
3036
|
fill: currentcolor;
|
|
3037
3037
|
opacity: 1;
|
|
3038
3038
|
}
|
|
3039
|
-
`)),or=
|
|
3039
|
+
`)),or=Yn.compose({baseName:"picker",template:(t,e)=>{const i=t.tagFor(ji.N),o=t.tagFor(Qn),s=t.tagFor(Zn),n=t.tagFor(Zn),r=function(t){const e=t.tagFor(Gn);return Ki.q`
|
|
3040
3040
|
<${e}
|
|
3041
3041
|
value="${t=>t}"
|
|
3042
3042
|
:contentsTemplate="${(t,e)=>e.parent.listItemContentsTemplate}"
|
|
@@ -3106,7 +3106,7 @@
|
|
|
3106
3106
|
</${i}>
|
|
3107
3107
|
`)}
|
|
3108
3108
|
</template>
|
|
3109
|
-
`},styles:Jn,shadowOptions:{}});class sr extends
|
|
3109
|
+
`},styles:Jn,shadowOptions:{}});class sr extends Qn{connectedCallback(){he.setValueFor(this,ee),super.connectedCallback()}}const nr=sr.compose({baseName:"picker-menu",baseClass:Qn,template:(t,e)=>Ki.q`
|
|
3110
3110
|
<template role="list" slot="menu-region">
|
|
3111
3111
|
<div class="options-display" part="options-display">
|
|
3112
3112
|
<div class="header-region" part="header-region">
|
|
@@ -3523,7 +3523,7 @@
|
|
|
3523
3523
|
}
|
|
3524
3524
|
|
|
3525
3525
|
:host([disabled]) {
|
|
3526
|
-
opacity: ${
|
|
3526
|
+
opacity: ${Q};
|
|
3527
3527
|
}
|
|
3528
3528
|
`.withBehaviors((0,Ci.mr)(f.A`
|
|
3529
3529
|
.control,
|
|
@@ -3755,7 +3755,7 @@
|
|
|
3755
3755
|
}
|
|
3756
3756
|
|
|
3757
3757
|
:host([disabled]) {
|
|
3758
|
-
opacity: ${
|
|
3758
|
+
opacity: ${Q};
|
|
3759
3759
|
}
|
|
3760
3760
|
|
|
3761
3761
|
:host([disabled]) .control {
|
|
@@ -4003,7 +4003,7 @@
|
|
|
4003
4003
|
margin-left: calc((${X} / 2) * 3px);
|
|
4004
4004
|
align-self: center;
|
|
4005
4005
|
}
|
|
4006
|
-
`,
|
|
4006
|
+
`,Yr=(t,e)=>f.A`
|
|
4007
4007
|
${(0,v.V)("block")} :host {
|
|
4008
4008
|
font-family: ${j};
|
|
4009
4009
|
color: ${ci};
|
|
@@ -4030,7 +4030,7 @@
|
|
|
4030
4030
|
justify-self: center;
|
|
4031
4031
|
}
|
|
4032
4032
|
:host(.disabled) {
|
|
4033
|
-
opacity: ${
|
|
4033
|
+
opacity: ${Q};
|
|
4034
4034
|
}
|
|
4035
4035
|
`.withBehaviors((0,Ci.mr)(f.A`
|
|
4036
4036
|
.mark {
|
|
@@ -4047,7 +4047,7 @@
|
|
|
4047
4047
|
:host(.disabled) .mark {
|
|
4048
4048
|
background: ${wi.A.GrayText};
|
|
4049
4049
|
}
|
|
4050
|
-
`));class
|
|
4050
|
+
`));class Qr extends Gr{sliderOrientationChanged(){this.sliderOrientation===Bs.t.horizontal?(this.$fastController.addStyles(Wr),this.$fastController.removeStyles(Xr)):(this.$fastController.addStyles(Xr),this.$fastController.removeStyles(Wr))}}const Zr=Qr.compose({baseName:"slider-label",baseClass:Gr,template:Kr.g,styles:Yr});class Jr extends l.g{}class ta extends((0,fo.rf)(Jr)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const ea="single-value";class ia extends ta{constructor(){super(...arguments),this.direction=y.O.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=Bs.t.horizontal,this.mode=ea,this.keypressHandler=t=>{if(!this.readOnly)if(t.key===r.Tg)t.preventDefault(),this.value=`${this.min}`;else if(t.key===r.FM)t.preventDefault(),this.value=`${this.max}`;else if(!t.shiftKey)switch(t.key){case r.bb:case r.I5:t.preventDefault(),this.increment();break;case r.kT:case r.HX:t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[e]("touchstart",this.handleThumbMouseDown,{passive:!0}),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove,{passive:!0}),window[e]("touchmove",this.handleMouseMove,{passive:!0}),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===Bs.t.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`},this.calculateNewValue=t=>{const e=Ur(t,this.orientation===Bs.t.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Bs.t.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===Bs.t.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(e)}`}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){super.valueChanged(t,e),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=(0,pn.u)(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==y.O.rtl&&this.orientation!==Bs.t.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?`${e}`:`${this.max}`;this.value=i}decrement(){const t=this.direction!==y.O.rtl&&this.orientation!==Bs.t.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?`${e}`:`${this.min}`;this.value=i}setThumbPositionForOrientation(t){const e=100*(1-Ur(Number(this.value),Number(this.min),Number(this.max),t));this.orientation===Bs.t.horizontal?this.position=this.isDragging?`right: ${e}%; transition: none;`:`right: ${e}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${e}%; transition: none;`:`bottom: ${e}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}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 t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}(0,o.Cg)([(0,s.CF)({attribute:"readonly",mode:"boolean"})],ia.prototype,"readOnly",void 0),(0,o.Cg)([n.sH],ia.prototype,"direction",void 0),(0,o.Cg)([n.sH],ia.prototype,"isDragging",void 0),(0,o.Cg)([n.sH],ia.prototype,"position",void 0),(0,o.Cg)([n.sH],ia.prototype,"trackWidth",void 0),(0,o.Cg)([n.sH],ia.prototype,"trackMinWidth",void 0),(0,o.Cg)([n.sH],ia.prototype,"trackHeight",void 0),(0,o.Cg)([n.sH],ia.prototype,"trackLeft",void 0),(0,o.Cg)([n.sH],ia.prototype,"trackMinHeight",void 0),(0,o.Cg)([n.sH],ia.prototype,"valueTextFormatter",void 0),(0,o.Cg)([(0,s.CF)({converter:s.R$})],ia.prototype,"min",void 0),(0,o.Cg)([(0,s.CF)({converter:s.R$})],ia.prototype,"max",void 0),(0,o.Cg)([(0,s.CF)({converter:s.R$})],ia.prototype,"step",void 0),(0,o.Cg)([s.CF],ia.prototype,"orientation",void 0),(0,o.Cg)([s.CF],ia.prototype,"mode",void 0);const oa=f.A`
|
|
4051
4051
|
.track-start {
|
|
4052
4052
|
left: 0;
|
|
4053
4053
|
}
|
|
@@ -4162,7 +4162,7 @@
|
|
|
4162
4162
|
cursor: ${Co};
|
|
4163
4163
|
}
|
|
4164
4164
|
:host([disabled]) {
|
|
4165
|
-
opacity: ${
|
|
4165
|
+
opacity: ${Q};
|
|
4166
4166
|
}
|
|
4167
4167
|
`.withBehaviors(new Zi(oa,sa),(0,Ci.mr)(f.A`
|
|
4168
4168
|
.thumb-cursor {
|
|
@@ -4242,7 +4242,7 @@
|
|
|
4242
4242
|
}
|
|
4243
4243
|
|
|
4244
4244
|
:host([disabled]) {
|
|
4245
|
-
opacity: ${
|
|
4245
|
+
opacity: ${Q};
|
|
4246
4246
|
}
|
|
4247
4247
|
|
|
4248
4248
|
:host([disabled]) .label,
|
|
@@ -4569,7 +4569,7 @@
|
|
|
4569
4569
|
|
|
4570
4570
|
:host([disabled]) {
|
|
4571
4571
|
cursor: ${Co};
|
|
4572
|
-
opacity: ${
|
|
4572
|
+
opacity: ${Q};
|
|
4573
4573
|
}
|
|
4574
4574
|
|
|
4575
4575
|
:host([disabled]:hover) {
|
|
@@ -4747,7 +4747,7 @@
|
|
|
4747
4747
|
cursor: ${Co};
|
|
4748
4748
|
}
|
|
4749
4749
|
:host([disabled]) {
|
|
4750
|
-
opacity: ${
|
|
4750
|
+
opacity: ${Q};
|
|
4751
4751
|
}
|
|
4752
4752
|
:host([disabled]) .control {
|
|
4753
4753
|
border-color: ${di};
|
|
@@ -4879,7 +4879,7 @@
|
|
|
4879
4879
|
}
|
|
4880
4880
|
|
|
4881
4881
|
:host([disabled]) {
|
|
4882
|
-
opacity: ${
|
|
4882
|
+
opacity: ${Q};
|
|
4883
4883
|
}
|
|
4884
4884
|
|
|
4885
4885
|
:host([disabled]) .control {
|
|
@@ -4977,7 +4977,7 @@
|
|
|
4977
4977
|
${(0,c.aO)(t,e)}
|
|
4978
4978
|
</div>
|
|
4979
4979
|
</template>
|
|
4980
|
-
`,styles:Ra,shadowOptions:{delegatesFocus:!0}})
|
|
4980
|
+
`,styles:Ra,shadowOptions:{delegatesFocus:!0}}),za=Object.freeze({[r.Is.ArrowUp]:{[Bs.t.vertical]:-1},[r.Is.ArrowDown]:{[Bs.t.vertical]:1},[r.Is.ArrowLeft]:{[Bs.t.horizontal]:{[y.O.ltr]:-1,[y.O.rtl]:1}},[r.Is.ArrowRight]:{[Bs.t.horizontal]:{[y.O.ltr]:1,[y.O.rtl]:-1}}});class Pa extends l.g{constructor(){super(...arguments),this._activeIndex=0,this.direction=y.O.ltr,this.orientation=Bs.t.horizontal}get activeIndex(){return n.cP.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=(0,a.AB)(0,this.focusableElements.length-1,t),n.cP.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.findIndex((e=>e.contains(t.target)));return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}childItemsChanged(t,e){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=(0,pn.u)(this)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=za[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=za[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in r.Is)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var t;const e=null===(t=this.focusableElements)||void 0===t?void 0:t[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(Pa.reduceFocusableItems,[]);const i=this.focusableElements.indexOf(e);this.activeIndex=Math.max(0,i),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some((t=>(0,Ds.tp)(t)));return e.hasAttribute("disabled")||e.hasAttribute("hidden")||!((0,Ds.tp)(e)||r||a||l)?e.childElementCount?t.concat(Array.from(e.children).reduce(Pa.reduceFocusableItems,[])):t:(t.push(e),t)}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach(((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1}))}}(0,o.Cg)([n.sH],Pa.prototype,"direction",void 0),(0,o.Cg)([s.CF],Pa.prototype,"orientation",void 0),(0,o.Cg)([n.sH],Pa.prototype,"slottedItems",void 0),(0,o.Cg)([n.sH],Pa.prototype,"slottedLabel",void 0),(0,o.Cg)([n.sH],Pa.prototype,"childItems",void 0);class Va{}(0,o.Cg)([(0,s.CF)({attribute:"aria-labelledby"})],Va.prototype,"ariaLabelledby",void 0),(0,o.Cg)([(0,s.CF)({attribute:"aria-label"})],Va.prototype,"ariaLabel",void 0),(0,h.X)(Va,Ti.z),(0,h.X)(Pa,c.qw,Va);var Ma=i(6995);const Na=(t,e)=>f.A`
|
|
4981
4981
|
${(0,v.V)("inline-flex")} :host {
|
|
4982
4982
|
--toolbar-item-gap: calc(
|
|
4983
4983
|
(var(--design-unit) + calc(var(--density) + 2)) * 1px
|
|
@@ -5110,7 +5110,7 @@
|
|
|
5110
5110
|
:host([disabled]) {
|
|
5111
5111
|
opacity: 1;
|
|
5112
5112
|
}
|
|
5113
|
-
`))},Ka=Ua.compose({baseName:"tooltip",template:_a.e,styles:Ga});function Wa(t){return(0,xi.sb)(t)&&"treeitem"===t.getAttribute("role")}class Xa extends l.g{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Wa(this.parentElement),this.handleExpandCollapseButtonClick=t=>{this.disabled||t.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=t=>{this.setAttribute("tabindex","0")},this.handleBlur=t=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach((t=>{Wa(t)&&(t.nested=!0)}))}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter((t=>Wa(t)));return t?t.length:0}}(0,o.Cg)([(0,s.CF)({mode:"boolean"})],Xa.prototype,"expanded",void 0),(0,o.Cg)([(0,s.CF)({mode:"boolean"})],Xa.prototype,"selected",void 0),(0,o.Cg)([(0,s.CF)({mode:"boolean"})],Xa.prototype,"disabled",void 0),(0,o.Cg)([n.sH],Xa.prototype,"focusable",void 0),(0,o.Cg)([n.sH],Xa.prototype,"childItems",void 0),(0,o.Cg)([n.sH],Xa.prototype,"items",void 0),(0,o.Cg)([n.sH],Xa.prototype,"nested",void 0),(0,o.Cg)([n.sH],Xa.prototype,"renderCollapsedChildren",void 0),(0,h.X)(Xa,c.qw);var
|
|
5113
|
+
`))},Ka=Ua.compose({baseName:"tooltip",template:_a.e,styles:Ga});function Wa(t){return(0,xi.sb)(t)&&"treeitem"===t.getAttribute("role")}class Xa extends l.g{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Wa(this.parentElement),this.handleExpandCollapseButtonClick=t=>{this.disabled||t.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=t=>{this.setAttribute("tabindex","0")},this.handleBlur=t=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach((t=>{Wa(t)&&(t.nested=!0)}))}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter((t=>Wa(t)));return t?t.length:0}}(0,o.Cg)([(0,s.CF)({mode:"boolean"})],Xa.prototype,"expanded",void 0),(0,o.Cg)([(0,s.CF)({mode:"boolean"})],Xa.prototype,"selected",void 0),(0,o.Cg)([(0,s.CF)({mode:"boolean"})],Xa.prototype,"disabled",void 0),(0,o.Cg)([n.sH],Xa.prototype,"focusable",void 0),(0,o.Cg)([n.sH],Xa.prototype,"childItems",void 0),(0,o.Cg)([n.sH],Xa.prototype,"items",void 0),(0,o.Cg)([n.sH],Xa.prototype,"nested",void 0),(0,o.Cg)([n.sH],Xa.prototype,"renderCollapsedChildren",void 0),(0,h.X)(Xa,c.qw);var Ya=i(3995);const Qa=f.A`
|
|
5114
5114
|
.expand-collapse-glyph {
|
|
5115
5115
|
transform: rotate(0deg);
|
|
5116
5116
|
}
|
|
@@ -5273,7 +5273,7 @@
|
|
|
5273
5273
|
}
|
|
5274
5274
|
|
|
5275
5275
|
:host([disabled]) .content-region {
|
|
5276
|
-
opacity: ${
|
|
5276
|
+
opacity: ${Q};
|
|
5277
5277
|
cursor: ${Co};
|
|
5278
5278
|
}
|
|
5279
5279
|
|
|
@@ -5324,7 +5324,7 @@
|
|
|
5324
5324
|
--tree-item-nested-width: 1em;
|
|
5325
5325
|
--expand-collapse-button-nested-width: calc(${ki} * -1px);
|
|
5326
5326
|
}
|
|
5327
|
-
`.withBehaviors(new Zi(
|
|
5327
|
+
`.withBehaviors(new Zi(Qa,Za),(0,Ci.mr)(f.A`
|
|
5328
5328
|
:host {
|
|
5329
5329
|
forced-color-adjust: none;
|
|
5330
5330
|
border-color: transparent;
|
|
@@ -5385,7 +5385,7 @@
|
|
|
5385
5385
|
:host(.nested) .expand-collapse-button:hover .expand-collapse-glyph {
|
|
5386
5386
|
fill: ${wi.A.FieldText};
|
|
5387
5387
|
}
|
|
5388
|
-
`)),ol=Xa.compose({baseName:"tree-item",template:
|
|
5388
|
+
`)),ol=Xa.compose({baseName:"tree-item",template:Ya.q,styles:il,expandCollapseGlyph:'\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n '});class sl extends l.g{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=t=>{if(!(this.slottedTreeItems.length<1))return t.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&Xa.focusItem(this.currentFocused))):void(this.contains(t.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=t.target))},this.handleBlur=t=>{t.target instanceof HTMLElement&&(null===t.relatedTarget||!this.contains(t.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=t=>{if(t.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const e=this.getVisibleNodes();switch(t.key){case r.Tg:return void(e.length&&Xa.focusItem(e[0]));case r.FM:return void(e.length&&Xa.focusItem(e[e.length-1]));case r.kT:if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Xa&&e.childItemLength()>0&&e.expanded?e.expanded=!1:e instanceof Xa&&e.parentElement instanceof Xa&&Xa.focusItem(e.parentElement)}return!1;case r.bb:if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Xa&&e.childItemLength()>0&&!e.expanded?e.expanded=!0:e instanceof Xa&&e.childItemLength()>0&&this.focusNextNode(1,t.target)}return;case r.HX:return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target));case r.I5:return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target));case r.Mm:return void this.handleClick(t)}return!0},this.handleSelectedChange=t=>{if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Wa(t.target)))return!0;const e=t.target;e.selected?(this.currentSelected&&this.currentSelected!==e&&(this.currentSelected.selected=!1),this.currentSelected=e):e.selected||this.currentSelected!==e||(this.currentSelected=null)},this.setItems=()=>{const t=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=t,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach((t=>{Wa(t)&&(t.nested=this.nested)}))},this.isFocusableElement=t=>Wa(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),Uo.dv.queueUpdate((()=>{this.setItems()}))}handleClick(t){if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Wa(t.target)))return!0;const e=t.target;e.disabled||(e.selected=!e.selected)}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i[i.indexOf(e)+t];(0,xi.sb)(o)&&Xa.focusItem(o)}getValidFocusableItem(){const t=this.getVisibleNodes();let e=t.findIndex(this.isSelectedElement);return-1===e&&(e=t.findIndex(this.isFocusableElement)),-1!==e?t[e]:null}checkForNestedItems(){return this.slottedTreeItems.some((t=>Wa(t)&&t.querySelector("[role='treeitem']")))}getVisibleNodes(){return(0,xi.JL)(this,"[role='treeitem']")||[]}}(0,o.Cg)([(0,s.CF)({attribute:"render-collapsed-nodes"})],sl.prototype,"renderCollapsedNodes",void 0),(0,o.Cg)([n.sH],sl.prototype,"currentSelected",void 0),(0,o.Cg)([n.sH],sl.prototype,"slottedTreeItems",void 0);var nl=i(1479);const rl=(t,e)=>f.A`
|
|
5389
5389
|
${(0,v.V)("flex")} :host {
|
|
5390
5390
|
flex-direction: column;
|
|
5391
5391
|
align-items: stretch;
|
|
@@ -5396,7 +5396,7 @@
|
|
|
5396
5396
|
:host:focus-visible {
|
|
5397
5397
|
outline: none;
|
|
5398
5398
|
}
|
|
5399
|
-
`,al=sl.compose({baseName:"tree-view",template:nl.E,styles:rl}),ll={fastAccordion:Ii,fastAccordionItem:Ai,fastAnchor:qi,fastAnchoredRegion:Gi,fastAvatar:oo,fastBadge:ro,fastBreadcrumb:mo,fastBreadcrumbItem:ho,fastButton:Fo,fastCalendar:So,fastCard:Po,fastCheckbox:jo,fastCombobox:us,fastDataGrid:ks,fastDataGridCell:Cs,fastDataGridRow:ws,fastDesignSystemProvider:Es,fastDialog:Ls,fastDisclosure:Ns,fastDivider:Gs,fastFlipper:Ys,fastHorizontalScroll:rn,fastListbox:un,fastOption:cn,fastMenu:wn,fastMenuItem:bn,fastNumberField:Hn,fastPicker:or,fastPickerList:ar,fastPickerListItem:lr,fastPickerMenu:nr,fastPickerMenuOption:rr,fastProgress:mr,fastProgressRing:ur,fastRadio:Fr,fastRadioGroup:yr,fastSearch:Lr,fastSelect:Mr,fastSkeleton:jr,fastSlider:ra,fastSliderLabel:Zr,fastSwitch:ua,fastTabs:ka,fastTab:ya,fastTabPanel:wa,fastTextArea:Da,fastTextField:La,fastTooltip:Ka,fastToolbar:qa,fastTreeView:al,fastTreeItem:ol,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};var cl=i(6047);function hl(t){return cl.E.getOrCreate(t).withPrefix("fast")}},8527:(t,e,i)=>{i.d(e,{$u:()=>r,Bs:()=>a,CF:()=>h,O1:()=>c,R$:()=>l});var o=i(6453),s=i(4395),n=i(4768);const r=Object.freeze({locate:(0,n.iX)()}),a={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},l={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class c{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=a)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return o.cP.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||s.dv.queueUpdate((()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;s.dv.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":s.dv.setBooleanAttribute(t,this.attribute,o)}i.delete(t)}))}static collect(t,...e){const i=[];e.push(r.locate(t));for(let o=0,s=e.length;o<s;++o){const s=e[o];if(void 0!==s)for(let e=0,o=s.length;e<o;++e){const o=s[e];"string"==typeof o?i.push(new c(t,o)):i.push(new c(t,o.property,o.attribute,o.mode,o.converter))}}return i}}function h(t,e){let i;function o(t,e){arguments.length>1&&(i.property=e),r.locate(t.constructor).push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}},9375:(t,e,i)=>{i.d(e,{I:()=>h});var o=i(4768),s=i(6453),n=i(2761),r=i(8527);const a={mode:"open"},l={},c=o.Zx.getById(4,(()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})}));class h{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=r.O1.collect(t,e.attributes),o=new Array(i.length),s={},c={};for(let t=0,e=i.length;t<e;++t){const e=i[t];o[t]=e.attribute,s[e.name]=e,c[e.attribute]=e}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=c,this.shadowOptions=void 0===e.shadowOptions?a:null===e.shadowOptions?void 0:Object.assign(Object.assign({},a),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?l:Object.assign(Object.assign({},l),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?n.vv.create(e.styles):e.styles instanceof n.vv?e.styles:n.vv.create([e.styles])}get isDefined(){return!!c.getByType(this.type)}define(t=customElements){const e=this.type;if(c.register(this)){const t=this.attributes,i=e.prototype;for(let e=0,o=t.length;e<o;++e)s.cP.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}}h.forType=c.getByType},1440:(t,e,i)=>{i.d(e,{L:()=>u,E:()=>p});var o=i(4395),s=i(1366),n=i(6453),r=i(9375);const a=new WeakMap,l={bubbles:!0,composed:!0,cancelable:!0};function c(t){return t.shadowRoot||a.get(t)||null}class h extends s.S{constructor(t,e){super(t),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=t,this.definition=e;const i=e.shadowOptions;if(void 0!==i){const e=t.attachShadow(i);"closed"===i.mode&&a.set(t,e)}const o=n.cP.getAccessors(t);if(o.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,n=t[s];void 0!==n&&(delete t[s],e[s]=n)}}}get isConnected(){return n.cP.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,n.cP.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=c(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const i=t.behaviors;t.addStylesTo(e),null!==i&&this.addBehaviors(i)}}removeStyles(t){const e=c(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const i=t.behaviors;t.removeStylesFrom(e),null!==i&&this.removeBehaviors(i)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),i=t.length,o=[];for(let s=0;s<i;++s){const i=t[s];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),o.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].bind(t,n.Fj)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const o=t.length,s=[];for(let n=0;n<o;++n){const o=t[n];if(i.has(o)){const t=i.get(o)-1;0===t||e?i.delete(o)&&s.push(o):i.set(o,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,n.Fj);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,n.Fj);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[i]of e)i.unbind(t)}}onAttributeChangedCallback(t,e,i){const o=this.definition.attributeLookup[t];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},l),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let o=0,s=i.length;o<s;++o){const s=i[o];t[s]=e[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(t){const e=this.element,i=c(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||o.dv.removeChildNodes(i),t&&(this.view=t.render(e,i,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const i=r.I.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new h(t,i)}}function d(t){return class extends t{constructor(){super(),h.forCustomElement(this)}$emit(t,e,i){return this.$fastController.emit(t,e,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,i){this.$fastController.onAttributeChangedCallback(t,e,i)}}}const u=Object.assign(d(HTMLElement),{from:t=>d(t),define:(t,e)=>new r.I(t,e).define().type});function p(t){return function(e){new r.I(e,t).define()}}},4395:(t,e,i)=>{i.d(e,{No:()=>c,ae:()=>l,dv:()=>h});var o=i(4768);const s=o.am.FAST.getById(1,(()=>{const t=[],e=[];function i(){if(e.length)throw e.shift()}function s(t){try{t.call()}catch(t){e.push(t),setTimeout(i,0)}}function n(){let e=0;for(;e<t.length;)if(s(t[e]),e++,e>1024){for(let i=0,o=t.length-e;i<o;i++)t[i]=t[i+e];t.length-=e,e=0}t.length=0}return Object.freeze({enqueue:function(e){t.length<1&&o.am.requestAnimationFrame(n),t.push(e)},process:n})})),n=o.am.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let r=n;const a=`fast-${Math.random().toString(36).substring(2,8)}`,l=`${a}{`,c=`}${a}`,h=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(r!==n)throw new Error("The HTML policy can only be set once.");r=t},createHTML:t=>r.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(a),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(`${a}:`,"")),createInterpolationPlaceholder:t=>`${l}${t}${c}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${a}:${t}--\x3e`,queueUpdate:s.enqueue,processUpdates:s.process,nextUpdate:()=>new Promise(s.enqueue),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)})},1366:(t,e,i)=>{i.d(e,{S:()=>s,l:()=>o});class o{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return void 0===this.spillover?this.sub1===t||this.sub2===t:-1!==this.spillover.indexOf(t)}subscribe(t){const e=this.spillover;if(void 0===e){if(this.has(t))return;if(void 0===this.sub1)return void(this.sub1=t);if(void 0===this.sub2)return void(this.sub2=t);this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else{-1===e.indexOf(t)&&e.push(t)}}unsubscribe(t){const e=this.spillover;if(void 0===e)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.source;if(void 0===e){const e=this.sub1,o=this.sub2;void 0!==e&&e.handleChange(i,t),void 0!==o&&o.handleChange(i,t)}else for(let o=0,s=e.length;o<s;++o)e[o].handleChange(i,t)}}class s{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const i=this.subscribers[t];void 0!==i&&i.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var i;if(e){let i=this.subscribers[e];void 0===i&&(this.subscribers[e]=i=new o(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new o(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var i;if(e){const i=this.subscribers[e];void 0!==i&&i.unsubscribe(t)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(t)}}},6453:(t,e,i)=>{i.d(e,{Fj:()=>d,Jg:()=>l,ao:()=>h,cP:()=>r,sH:()=>a});var o=i(4395),s=i(4768),n=i(1366);const r=s.Zx.getById(2,(()=>{const t=/(:|&&|\|\||if)/,e=new WeakMap,i=o.dv.queueUpdate;let r,a=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function l(t){let i=t.$fastController||e.get(t);return void 0===i&&(Array.isArray(t)?i=a(t):e.set(t,i=new n.S(t))),i}const c=(0,s.iX)();class h{constructor(t){this.name=t,this.field=`_${t}`,this.callback=`${t}Changed`}getValue(t){return void 0!==r&&r.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),l(t).notify(this.name)}}}class d extends n.l{constructor(t,e,i=!1){super(t,e),this.binding=t,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(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return r=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=l(t),s=null===i?this.first:{};if(s.propertySource=t,s.propertyName=e,s.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;r=void 0,e=i.propertySource[i.propertyName],r=this,t===e&&(this.needsRefresh=!0)}i.next=s}this.last=s}handleChange(){this.needsQueue&&(this.needsQueue=!1,i(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(t){a=t},getNotifier:l,track(t,e){void 0!==r&&r.watch(t,e)},trackVolatile(){void 0!==r&&(r.needsRefresh=!0)},notify(t,e){l(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new h(e)),c(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:c,binding(t,e,i=this.isVolatileBinding(t)){return new d(t,e,i)},isVolatileBinding:e=>t.test(e.toString())})}));function a(t,e){r.defineProperty(t,e)}function l(t,e,i){return Object.assign({},i,{get:function(){return r.trackVolatile(),i.get.apply(this)}})}const c=s.Zx.getById(3,(()=>{let t=null;return{get:()=>t,set(e){t=e}}}));class h{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return c.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(t){c.set(t)}}r.defineProperty(h.prototype,"index"),r.defineProperty(h.prototype,"length");const d=Object.seal(new h)},4768:(t,e,i)=>{i.d(e,{Zx:()=>n,am:()=>o,iX:()=>a,tR:()=>r});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(t){return{}}}();void 0===o.trustedTypes&&(o.trustedTypes={createPolicy:(t,e)=>e});const s={configurable:!1,enumerable:!1,writable:!1};void 0===o.FAST&&Reflect.defineProperty(o,"FAST",Object.assign({value:Object.create(null)},s));const n=o.FAST;if(void 0===n.getById){const t=Object.create(null);Reflect.defineProperty(n,"getById",Object.assign({value(e,i){let o=t[e];return void 0===o&&(o=i?t[e]=i():null),o}},s))}const r=Object.freeze([]);function a(){const t=new WeakMap;return function(e){let i=t.get(e);if(void 0===i){let o=Reflect.getPrototypeOf(e);for(;void 0===i&&null!==o;)i=t.get(o),o=Reflect.getPrototypeOf(o);i=void 0===i?[]:i.slice(0),t.set(e,i)}return i}}},7317:(t,e,i)=>{i.d(e,{x:()=>o});class o{createCSS(){return""}createBehavior(){}}},7029:(t,e,i)=>{i.d(e,{A:()=>r,L:()=>l});var o=i(7317),s=i(2761);function n(t,e){const i=[];let n="";const r=[];for(let a=0,l=t.length-1;a<l;++a){n+=t[a];let l=e[a];if(l instanceof o.x){const t=l.createBehavior();l=l.createCSS(),t&&r.push(t)}l instanceof s.vv||l instanceof CSSStyleSheet?(""!==n.trim()&&(i.push(n),n=""),i.push(l)):n+=l}return n+=t[t.length-1],""!==n.trim()&&i.push(n),{styles:i,behaviors:r}}function r(t,...e){const{styles:i,behaviors:o}=n(t,e),r=s.vv.create(i);return o.length&&r.withBehaviors(...o),r}class a extends o.x{constructor(t,e){super(),this.behaviors=e,this.css="";const i=t.reduce(((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t)),[]);i.length&&(this.styles=s.vv.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function l(t,...e){const{styles:i,behaviors:o}=n(t,e);return new a(i,o)}},2761:(t,e,i)=>{i.d(e,{Qe:()=>a,vv:()=>s});var o=i(4395);class s{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function n(t){return t.map((t=>t instanceof s?n(t.styles):[t])).reduce(((t,e)=>t.concat(e)),[])}function r(t){return t.map((t=>t instanceof s?t.behaviors:null)).reduce(((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e))),null)}s.create=(()=>{if(o.dv.supportsAdoptedStyleSheets){const t=new Map;return e=>new d(e,t)}return t=>new p(t)})();const a=Symbol("prependToAdoptedStyleSheets");function l(t){const e=[],i=[];return t.forEach((t=>(t[a]?e:i).push(t))),{prepend:e,append:i}}let c=(t,e)=>{const{prepend:i,append:o}=l(e);t.adoptedStyleSheets=[...i,...t.adoptedStyleSheets,...o]},h=(t,e)=>{t.adoptedStyleSheets=t.adoptedStyleSheets.filter((t=>-1===e.indexOf(t)))};if(o.dv.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),c=(t,e)=>{const{prepend:i,append:o}=l(e);t.adoptedStyleSheets.splice(0,0,...i),t.adoptedStyleSheets.push(...o)},h=(t,e)=>{for(const i of e){const e=t.adoptedStyleSheets.indexOf(i);-1!==e&&t.adoptedStyleSheets.splice(e,1)}}}catch(t){}class d extends s{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=r(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=n(t).map((t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i}))}return this._styleSheets}addStylesTo(t){c(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){h(t,this.styleSheets),super.removeStylesFrom(t)}}let u=0;class p extends s{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=r(t),this.styleSheets=n(t),this.styleClass="fast-style-class-"+ ++u}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){const s=document.createElement("style");s.innerHTML=e[o],s.className=i,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll(`.${this.styleClass}`);for(let i=0,o=e.length;i<o;++i)t.removeChild(e[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}},8312:(t,e,i)=>{i.d(e,{a:()=>v,k:()=>f});var o=i(4395),s=i(6453),n=i(5932);function r(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=s.cP.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function a(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function l(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function c(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function h(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function d(t){o.dv.setAttribute(this.target,this.targetName,t)}function u(t){o.dv.setBooleanAttribute(this.target,this.targetName,t)}function p(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function g(t){this.target[this.targetName]=t}function m(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;t<n;++t){const n=s[t];""!==n&&(e[n]=o,i.classList.add(n))}}if(this.classVersions=e,this.version=o+1,0!==o){o-=1;for(const t in e)e[t]===o&&i.classList.remove(t)}}class f extends n.pY{constructor(t){super(),this.binding=t,this.bind=r,this.unbind=l,this.updateTarget=d,this.isBindingVolatile=s.cP.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=g,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>o.dv.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=u;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=a,this.unbind=h;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=m)}}targetAtContent(){this.updateTarget=p,this.unbind=c}createBehavior(t){return new v(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class v{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){s.ao.setEvent(t);const e=this.binding(this.source,this.context);s.ao.setEvent(null),!0!==e&&t.preventDefault()}}},442:(t,e,i)=>{i.d(e,{Y:()=>r});var o=i(5932),s=i(1406);class n extends s.n{constructor(t,e){super(t,e),this.observer=null,e.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 r(t){return"string"==typeof t&&(t={property:t}),new o.xz("fast-children",n,t)}},5932:(t,e,i)=>{i.d(e,{dg:()=>s,pY:()=>n,xz:()=>r});var o=i(4395);class s{constructor(){this.targetIndex=0}}class n extends s{constructor(){super(...arguments),this.createPlaceholder=o.dv.createInterpolationPlaceholder}}class r extends s{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return o.dv.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}},1406:(t,e,i)=>{i.d(e,{Y:()=>n,n:()=>r});var o=i(6453),s=i(4768);function n(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class r{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=o.cP.getAccessors(t).some((t=>t.name===e)),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(s.tR),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}},8348:(t,e,i)=>{i.d(e,{K:()=>n});var o=i(5932);class s{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function n(t){return new o.xz("fast-ref",s,t)}},7612:(t,e,i)=>{i.d(e,{RR:()=>F,ux:()=>A});var o=i(4395),s=i(6453),n=i(4768);function r(t,e,i){return{index:t,removed:e,addedCount:i}}const a=0,l=1,c=2,h=3;function d(t,e,i,o,s,d){let u=0,p=0;const g=Math.min(i-e,d-s);if(0===e&&0===s&&(u=function(t,e,i){for(let o=0;o<i;++o)if(t[o]!==e[o])return o;return i}(t,o,g)),i===t.length&&d===o.length&&(p=function(t,e,i){let o=t.length,s=e.length,n=0;for(;n<i&&t[--o]===e[--s];)n++;return n}(t,o,g-u)),s+=u,d-=p,(i-=p)-(e+=u)==0&&d-s==0)return n.tR;if(e===i){const t=r(e,[],0);for(;s<d;)t.removed.push(o[s++]);return[t]}if(s===d)return[r(e,[],i-e)];const m=function(t){let e=t.length-1,i=t[0].length-1,o=t[e][i];const s=[];for(;e>0||i>0;){if(0===e){s.push(c),i--;continue}if(0===i){s.push(h),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],d=t[e][i-1];let u;u=r<d?r<n?r:n:d<n?d:n,u===n?(n===o?s.push(a):(s.push(l),o=n),e--,i--):u===r?(s.push(h),e--,o=r):(s.push(c),i--,o=d)}return s.reverse(),s}(function(t,e,i,o,s,n){const r=n-s+1,a=i-e+1,l=new Array(r);let c,h;for(let t=0;t<r;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let i=1;i<r;++i)for(let n=1;n<a;++n)t[e+n-1]===o[s+i-1]?l[i][n]=l[i-1][n-1]:(c=l[i-1][n]+1,h=l[i][n-1]+1,l[i][n]=c<h?c:h);return l}(t,e,i,o,s,d)),f=[];let v,b=e,y=s;for(let t=0;t<m.length;++t)switch(m[t]){case a:void 0!==v&&(f.push(v),v=void 0),b++,y++;break;case l:void 0===v&&(v=r(b,[],0)),v.addedCount++,b++,v.removed.push(o[y]),y++;break;case c:void 0===v&&(v=r(b,[],0)),v.addedCount++,b++;break;case h:void 0===v&&(v=r(b,[],0)),v.removed.push(o[y]),y++}return void 0!==v&&f.push(v),f}const u=Array.prototype.push;function p(t,e,i,o){const s=r(e,i,o);let n=!1,a=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=a,n)continue;const o=(l=s.index,c=s.index+s.removed.length,h=i.index,d=i.index+i.addedCount,c<h||d<l?-1:c===h||d===l?0:l<h?c<d?c-h:d-h:d<c?d-l:c-l);if(o>=0){t.splice(e,1),e--,a-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const r=s.removed.length+i.removed.length-o;if(s.addedCount||r){let t=i.removed;if(s.index<i.index){const e=s.removed.slice(0,i.index-s.index);u.apply(e,t),t=e}if(s.index+s.removed.length>i.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);u.apply(t,e)}s.removed=t,i.index<s.index&&(s.index=i.index)}else n=!0}else if(s.index<i.index){n=!0,t.splice(e,0,s),e++;const o=s.addedCount-s.removed.length;i.index+=o,a+=o}}var l,c,h,d;n||t.push(s)}function g(t,e){let i=[];const o=function(t){const e=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];p(e,o.index,o.removed,o.addedCount)}return e}(e);for(let e=0,s=o.length;e<s;++e){const s=o[e];1!==s.addedCount||1!==s.removed.length?i=i.concat(d(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&i.push(s)}return i}var m=i(1366);let f=!1;function v(t,e){let i=t.index;const o=e.length;return i>o?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class b extends m.l{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,o.dv.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,o.dv.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?g(this.source,t):d(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}var y=i(5932),x=i(412);const $=Object.freeze({positioning:!1,recycle:!0});function C(t,e,i,o){t.bind(e[i],o)}function w(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}class k{constructor(t,e,i,o,n,r){this.location=t,this.itemsBinding=e,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=C,this.itemsBindingObserver=s.cP.binding(e,this,i),this.templateBindingObserver=s.cP.binding(o,this,n),r.positioning&&(this.bindView=w)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,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(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=n.tR);const e=this.itemsObserver,i=this.itemsObserver=s.cP.getNotifier(this.items),o=e!==i;o&&null!==e&&e.unsubscribe(this),(o||t)&&i.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=this.bindView,s=this.items,n=this.template,r=this.options.recycle,a=[];let l=0,c=0;for(let h=0,d=t.length;h<d;++h){const d=t[h],u=d.removed;let p=0,g=d.index;const m=g+d.addedCount,f=i.splice(d.index,u.length),v=c=a.length+f.length;for(;g<m;++g){const t=i[g],h=t?t.firstChild:this.location;let d;r&&c>0?(p<=v&&f.length>0?(d=f[p],p++):(d=a[l],l++),c--):d=n.create(),i.splice(g,0,d),o(d,s,g,e),d.insertBefore(h)}f[p]&&a.push(...f.slice(p))}for(let t=l,e=a.length;t<e;++t)a[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const o=i[t].context;o.length=e,o.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,o=this.template,s=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if(0!==r&&!t&&this.options.recycle||(x.N.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=o.create();n(r,e,t,i),a[t]=r,r.insertBefore(s)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=o.create();n(r,e,t,i),a.push(r),r.insertBefore(s)}const c=a.splice(t,l-t);for(t=0,r=c.length;t<r;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class F extends y.dg{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=o.dv.createBlockPlaceholder,function(){if(f)return;f=!0,s.cP.setArrayObserverFactory((t=>new b(t)));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,i=t.push,o=t.reverse,n=t.shift,a=t.sort,l=t.splice,c=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice(r(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(v(r(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=n.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(r(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=a.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=l.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(v(r(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=c.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(v(r(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=s.cP.isVolatileBinding(t),this.isTemplateBindingVolatile=s.cP.isVolatileBinding(e)}createBehavior(t){return new k(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function A(t,e,i=$){return new F(t,"function"==typeof e?e:()=>e,Object.assign(Object.assign({},$),i))}},4704:(t,e,i)=>{i.d(e,{e:()=>r});var o=i(5932),s=i(1406);class n extends s.n{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function r(t){return"string"==typeof t&&(t={property:t}),new o.xz("fast-slotted",n,t)}},5062:(t,e,i)=>{i.d(e,{k:()=>m,q:()=>v});var o=i(4395),s=i(6453),n=i(8312);let r=null;class a{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){r=this}static borrow(t){const e=r||new a;return e.directives=t,e.reset(),r=null,e}}function l(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map((t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding))),s=new n.k(((t,e)=>{let s="";for(let n=0;n<i;++n)s+=o[n](t,e);return s}));return s.targetName=e,s}const c=o.No.length;function h(t,e){const i=e.split(o.ae);if(1===i.length)return null;const s=[];for(let e=0,n=i.length;e<n;++e){const n=i[e],r=n.indexOf(o.No);let a;if(-1===r)a=n;else{const e=parseInt(n.substring(0,r));s.push(t.directives[e]),a=n.substring(r+c)}""!==a&&s.push(a)}return s}function d(t,e,i=!1){const o=e.attributes;for(let s=0,r=o.length;s<r;++s){const a=o[s],c=a.value,d=h(t,c);let u=null;null===d?i&&(u=new n.k((()=>c)),u.targetName=a.name):u=l(d),null!==u&&(e.removeAttributeNode(a),s--,r--,t.addFactory(u))}}function u(t,e,i){const o=h(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n<r;++n){const r=o[n],a=0===n?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),s=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}var p=i(412),g=i(5932);class m{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=o.dv.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=function(t,e){const i=t.content;document.adoptNode(i);const s=a.borrow(e);d(s,t,!0);const n=s.behaviorFactories;s.reset();const r=o.dv.createTemplateWalker(i);let l;for(;l=r.nextNode();)switch(s.targetIndex++,l.nodeType){case 1:d(s,l);break;case 3:u(s,l,r);break;case 8:o.dv.isMarker(l)&&s.addFactory(e[o.dv.extractDirectiveIndexFromMarker(l)])}let c=0;(o.dv.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),c=-1);const h=s.behaviorFactories;return s.release(),{fragment:i,viewBehaviorFactories:h,hostBehaviorFactories:n,targetOffset:c}}(t,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 e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,s=new Array(this.behaviorCount),n=o.dv.createTemplateWalker(e);let r=0,l=this.targetOffset,c=n.nextNode();for(let t=i.length;r<t;++r){const t=i[r],e=t.targetIndex;for(;null!==c;){if(l===e){s[r]=t.createBehavior(c);break}c=n.nextNode(),l++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,o=e.length;i<o;++i,++r)s[r]=e[i].createBehavior(t)}return new p.N(e,s)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const o=this.create(i);return o.bind(t,s.Fj),o.appendTo(e),o}}const f=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function v(t,...e){const i=[];let o="";for(let s=0,r=t.length-1;s<r;++s){const r=t[s];let a=e[s];if(o+=r,a instanceof m){const t=a;a=()=>t}if("function"==typeof a&&(a=new n.k(a)),a instanceof g.pY){const t=f.exec(r);null!==t&&(a.targetName=t[2])}a instanceof g.dg?(o+=a.createPlaceholder(i.length),i.push(a)):o+=a}return o+=t[t.length-1],new m(o,i)}},412:(t,e,i)=>{i.d(e,{N:()=>s});const o=document.createRange();class s{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let o,s=this.firstChild;for(;s!==e;)o=s.nextSibling,i.insertBefore(s,t),s=o;i.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.removeChild(o),o=i;t.removeChild(e);const s=this.behaviors,n=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const o=this.source;this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++s){const n=i[s];n.unbind(o),n.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=i.length;o<s;++o)i[o].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,o=t.length;i<o;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){o.setStartBefore(t[0].firstChild),o.setEndAfter(t[t.length-1].lastChild),o.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],o=i.behaviors,s=i.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(s)}}}}},5066:(t,e,i)=>{i.d(e,{z:()=>r});const o=t=>"function"==typeof t,s=()=>null;function n(t){return void 0===t?s:o(t)?t:()=>t}function r(t,e,i){const s=o(t)?t:()=>t,r=n(e),a=n(i);return(t,e)=>s(t,e)?r(t,e):a(t,e)}},313:(t,e,i)=>{i.d(e,{E:()=>r});var o=i(5062),s=i(8348),n=i(7010);const r=(t,e)=>o.q`
|
|
5399
|
+
`,al=sl.compose({baseName:"tree-view",template:nl.E,styles:rl}),ll={fastAccordion:Ii,fastAccordionItem:Ai,fastAnchor:qi,fastAnchoredRegion:Gi,fastAvatar:oo,fastBadge:ro,fastBreadcrumb:mo,fastBreadcrumbItem:ho,fastButton:Fo,fastCalendar:So,fastCard:Po,fastCheckbox:jo,fastCombobox:us,fastDataGrid:ks,fastDataGridCell:Cs,fastDataGridRow:ws,fastDesignSystemProvider:Es,fastDialog:Ls,fastDisclosure:Ns,fastDivider:Gs,fastFlipper:Qs,fastHorizontalScroll:rn,fastListbox:un,fastOption:cn,fastMenu:wn,fastMenuItem:bn,fastNumberField:Hn,fastPicker:or,fastPickerList:ar,fastPickerListItem:lr,fastPickerMenu:nr,fastPickerMenuOption:rr,fastProgress:mr,fastProgressRing:ur,fastRadio:Fr,fastRadioGroup:yr,fastSearch:Lr,fastSelect:Mr,fastSkeleton:jr,fastSlider:ra,fastSliderLabel:Zr,fastSwitch:ua,fastTabs:ka,fastTab:ya,fastTabPanel:wa,fastTextArea:Da,fastTextField:La,fastTooltip:Ka,fastToolbar:qa,fastTreeView:al,fastTreeItem:ol,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};var cl=i(6047);function hl(t){return cl.E.getOrCreate(t).withPrefix("fast")}},8527:(t,e,i)=>{i.d(e,{$u:()=>r,Bs:()=>a,CF:()=>h,O1:()=>c,R$:()=>l});var o=i(6453),s=i(4395),n=i(4768);const r=Object.freeze({locate:(0,n.iX)()}),a={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},l={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class c{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=a)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return o.cP.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||s.dv.queueUpdate((()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;s.dv.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":s.dv.setBooleanAttribute(t,this.attribute,o)}i.delete(t)}))}static collect(t,...e){const i=[];e.push(r.locate(t));for(let o=0,s=e.length;o<s;++o){const s=e[o];if(void 0!==s)for(let e=0,o=s.length;e<o;++e){const o=s[e];"string"==typeof o?i.push(new c(t,o)):i.push(new c(t,o.property,o.attribute,o.mode,o.converter))}}return i}}function h(t,e){let i;function o(t,e){arguments.length>1&&(i.property=e),r.locate(t.constructor).push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}},9375:(t,e,i)=>{i.d(e,{I:()=>h});var o=i(4768),s=i(6453),n=i(2761),r=i(8527);const a={mode:"open"},l={},c=o.Zx.getById(4,(()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})}));class h{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=r.O1.collect(t,e.attributes),o=new Array(i.length),s={},c={};for(let t=0,e=i.length;t<e;++t){const e=i[t];o[t]=e.attribute,s[e.name]=e,c[e.attribute]=e}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=c,this.shadowOptions=void 0===e.shadowOptions?a:null===e.shadowOptions?void 0:Object.assign(Object.assign({},a),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?l:Object.assign(Object.assign({},l),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?n.vv.create(e.styles):e.styles instanceof n.vv?e.styles:n.vv.create([e.styles])}get isDefined(){return!!c.getByType(this.type)}define(t=customElements){const e=this.type;if(c.register(this)){const t=this.attributes,i=e.prototype;for(let e=0,o=t.length;e<o;++e)s.cP.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}}h.forType=c.getByType},1440:(t,e,i)=>{i.d(e,{L:()=>u,E:()=>p});var o=i(4395),s=i(1366),n=i(6453),r=i(9375);const a=new WeakMap,l={bubbles:!0,composed:!0,cancelable:!0};function c(t){return t.shadowRoot||a.get(t)||null}class h extends s.S{constructor(t,e){super(t),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=t,this.definition=e;const i=e.shadowOptions;if(void 0!==i){const e=t.attachShadow(i);"closed"===i.mode&&a.set(t,e)}const o=n.cP.getAccessors(t);if(o.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,n=t[s];void 0!==n&&(delete t[s],e[s]=n)}}}get isConnected(){return n.cP.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,n.cP.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=c(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const i=t.behaviors;t.addStylesTo(e),null!==i&&this.addBehaviors(i)}}removeStyles(t){const e=c(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const i=t.behaviors;t.removeStylesFrom(e),null!==i&&this.removeBehaviors(i)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),i=t.length,o=[];for(let s=0;s<i;++s){const i=t[s];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),o.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].bind(t,n.Fj)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const o=t.length,s=[];for(let n=0;n<o;++n){const o=t[n];if(i.has(o)){const t=i.get(o)-1;0===t||e?i.delete(o)&&s.push(o):i.set(o,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,n.Fj);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,n.Fj);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[i]of e)i.unbind(t)}}onAttributeChangedCallback(t,e,i){const o=this.definition.attributeLookup[t];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},l),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let o=0,s=i.length;o<s;++o){const s=i[o];t[s]=e[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(t){const e=this.element,i=c(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||o.dv.removeChildNodes(i),t&&(this.view=t.render(e,i,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const i=r.I.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new h(t,i)}}function d(t){return class extends t{constructor(){super(),h.forCustomElement(this)}$emit(t,e,i){return this.$fastController.emit(t,e,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,i){this.$fastController.onAttributeChangedCallback(t,e,i)}}}const u=Object.assign(d(HTMLElement),{from:t=>d(t),define:(t,e)=>new r.I(t,e).define().type});function p(t){return function(e){new r.I(e,t).define()}}},4395:(t,e,i)=>{i.d(e,{No:()=>c,ae:()=>l,dv:()=>h});var o=i(4768);const s=o.am.FAST.getById(1,(()=>{const t=[],e=[];function i(){if(e.length)throw e.shift()}function s(t){try{t.call()}catch(t){e.push(t),setTimeout(i,0)}}function n(){let e=0;for(;e<t.length;)if(s(t[e]),e++,e>1024){for(let i=0,o=t.length-e;i<o;i++)t[i]=t[i+e];t.length-=e,e=0}t.length=0}return Object.freeze({enqueue:function(e){t.length<1&&o.am.requestAnimationFrame(n),t.push(e)},process:n})})),n=o.am.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let r=n;const a=`fast-${Math.random().toString(36).substring(2,8)}`,l=`${a}{`,c=`}${a}`,h=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(r!==n)throw new Error("The HTML policy can only be set once.");r=t},createHTML:t=>r.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(a),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(`${a}:`,"")),createInterpolationPlaceholder:t=>`${l}${t}${c}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${a}:${t}--\x3e`,queueUpdate:s.enqueue,processUpdates:s.process,nextUpdate:()=>new Promise(s.enqueue),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)})},1366:(t,e,i)=>{i.d(e,{S:()=>s,l:()=>o});class o{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return void 0===this.spillover?this.sub1===t||this.sub2===t:-1!==this.spillover.indexOf(t)}subscribe(t){const e=this.spillover;if(void 0===e){if(this.has(t))return;if(void 0===this.sub1)return void(this.sub1=t);if(void 0===this.sub2)return void(this.sub2=t);this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else{-1===e.indexOf(t)&&e.push(t)}}unsubscribe(t){const e=this.spillover;if(void 0===e)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.source;if(void 0===e){const e=this.sub1,o=this.sub2;void 0!==e&&e.handleChange(i,t),void 0!==o&&o.handleChange(i,t)}else for(let o=0,s=e.length;o<s;++o)e[o].handleChange(i,t)}}class s{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const i=this.subscribers[t];void 0!==i&&i.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var i;if(e){let i=this.subscribers[e];void 0===i&&(this.subscribers[e]=i=new o(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new o(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var i;if(e){const i=this.subscribers[e];void 0!==i&&i.unsubscribe(t)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(t)}}},6453:(t,e,i)=>{i.d(e,{Fj:()=>d,Jg:()=>l,ao:()=>h,cP:()=>r,sH:()=>a});var o=i(4395),s=i(4768),n=i(1366);const r=s.Zx.getById(2,(()=>{const t=/(:|&&|\|\||if)/,e=new WeakMap,i=o.dv.queueUpdate;let r,a=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function l(t){let i=t.$fastController||e.get(t);return void 0===i&&(Array.isArray(t)?i=a(t):e.set(t,i=new n.S(t))),i}const c=(0,s.iX)();class h{constructor(t){this.name=t,this.field=`_${t}`,this.callback=`${t}Changed`}getValue(t){return void 0!==r&&r.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),l(t).notify(this.name)}}}class d extends n.l{constructor(t,e,i=!1){super(t,e),this.binding=t,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(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return r=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=l(t),s=null===i?this.first:{};if(s.propertySource=t,s.propertyName=e,s.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;r=void 0,e=i.propertySource[i.propertyName],r=this,t===e&&(this.needsRefresh=!0)}i.next=s}this.last=s}handleChange(){this.needsQueue&&(this.needsQueue=!1,i(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(t){a=t},getNotifier:l,track(t,e){void 0!==r&&r.watch(t,e)},trackVolatile(){void 0!==r&&(r.needsRefresh=!0)},notify(t,e){l(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new h(e)),c(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:c,binding(t,e,i=this.isVolatileBinding(t)){return new d(t,e,i)},isVolatileBinding:e=>t.test(e.toString())})}));function a(t,e){r.defineProperty(t,e)}function l(t,e,i){return Object.assign({},i,{get:function(){return r.trackVolatile(),i.get.apply(this)}})}const c=s.Zx.getById(3,(()=>{let t=null;return{get:()=>t,set(e){t=e}}}));class h{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return c.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(t){c.set(t)}}r.defineProperty(h.prototype,"index"),r.defineProperty(h.prototype,"length");const d=Object.seal(new h)},4768:(t,e,i)=>{i.d(e,{Zx:()=>n,am:()=>o,iX:()=>a,tR:()=>r});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(t){return{}}}();void 0===o.trustedTypes&&(o.trustedTypes={createPolicy:(t,e)=>e});const s={configurable:!1,enumerable:!1,writable:!1};void 0===o.FAST&&Reflect.defineProperty(o,"FAST",Object.assign({value:Object.create(null)},s));const n=o.FAST;if(void 0===n.getById){const t=Object.create(null);Reflect.defineProperty(n,"getById",Object.assign({value(e,i){let o=t[e];return void 0===o&&(o=i?t[e]=i():null),o}},s))}const r=Object.freeze([]);function a(){const t=new WeakMap;return function(e){let i=t.get(e);if(void 0===i){let o=Reflect.getPrototypeOf(e);for(;void 0===i&&null!==o;)i=t.get(o),o=Reflect.getPrototypeOf(o);i=void 0===i?[]:i.slice(0),t.set(e,i)}return i}}},7317:(t,e,i)=>{i.d(e,{x:()=>o});class o{createCSS(){return""}createBehavior(){}}},7029:(t,e,i)=>{i.d(e,{A:()=>r,L:()=>l});var o=i(7317),s=i(2761);function n(t,e){const i=[];let n="";const r=[];for(let a=0,l=t.length-1;a<l;++a){n+=t[a];let l=e[a];if(l instanceof o.x){const t=l.createBehavior();l=l.createCSS(),t&&r.push(t)}l instanceof s.vv||l instanceof CSSStyleSheet?(""!==n.trim()&&(i.push(n),n=""),i.push(l)):n+=l}return n+=t[t.length-1],""!==n.trim()&&i.push(n),{styles:i,behaviors:r}}function r(t,...e){const{styles:i,behaviors:o}=n(t,e),r=s.vv.create(i);return o.length&&r.withBehaviors(...o),r}class a extends o.x{constructor(t,e){super(),this.behaviors=e,this.css="";const i=t.reduce(((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t)),[]);i.length&&(this.styles=s.vv.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function l(t,...e){const{styles:i,behaviors:o}=n(t,e);return new a(i,o)}},2761:(t,e,i)=>{i.d(e,{vv:()=>s});var o=i(4395);class s{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function n(t){return t.map((t=>t instanceof s?n(t.styles):[t])).reduce(((t,e)=>t.concat(e)),[])}function r(t){return t.map((t=>t instanceof s?t.behaviors:null)).reduce(((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e))),null)}s.create=(()=>{if(o.dv.supportsAdoptedStyleSheets){const t=new Map;return e=>new c(e,t)}return t=>new d(t)})();let a=(t,e)=>{t.adoptedStyleSheets=[...t.adoptedStyleSheets,...e]},l=(t,e)=>{t.adoptedStyleSheets=t.adoptedStyleSheets.filter((t=>-1===e.indexOf(t)))};if(o.dv.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),a=(t,e)=>{t.adoptedStyleSheets.push(...e)},l=(t,e)=>{for(const i of e){const e=t.adoptedStyleSheets.indexOf(i);-1!==e&&t.adoptedStyleSheets.splice(e,1)}}}catch(t){}class c extends s{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=r(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=n(t).map((t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i}))}return this._styleSheets}addStylesTo(t){a(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){l(t,this.styleSheets),super.removeStylesFrom(t)}}let h=0;class d extends s{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=r(t),this.styleSheets=n(t),this.styleClass="fast-style-class-"+ ++h}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){const s=document.createElement("style");s.innerHTML=e[o],s.className=i,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll(`.${this.styleClass}`);for(let i=0,o=e.length;i<o;++i)t.removeChild(e[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}},8312:(t,e,i)=>{i.d(e,{a:()=>v,k:()=>f});var o=i(4395),s=i(6453),n=i(5932);function r(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=s.cP.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function a(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function l(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function c(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function h(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function d(t){o.dv.setAttribute(this.target,this.targetName,t)}function u(t){o.dv.setBooleanAttribute(this.target,this.targetName,t)}function p(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function g(t){this.target[this.targetName]=t}function m(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;t<n;++t){const n=s[t];""!==n&&(e[n]=o,i.classList.add(n))}}if(this.classVersions=e,this.version=o+1,0!==o){o-=1;for(const t in e)e[t]===o&&i.classList.remove(t)}}class f extends n.pY{constructor(t){super(),this.binding=t,this.bind=r,this.unbind=l,this.updateTarget=d,this.isBindingVolatile=s.cP.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=g,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>o.dv.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=u;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=a,this.unbind=h;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=m)}}targetAtContent(){this.updateTarget=p,this.unbind=c}createBehavior(t){return new v(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class v{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){s.ao.setEvent(t);const e=this.binding(this.source,this.context);s.ao.setEvent(null),!0!==e&&t.preventDefault()}}},442:(t,e,i)=>{i.d(e,{Y:()=>r});var o=i(5932),s=i(1406);class n extends s.n{constructor(t,e){super(t,e),this.observer=null,e.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 r(t){return"string"==typeof t&&(t={property:t}),new o.xz("fast-children",n,t)}},5932:(t,e,i)=>{i.d(e,{dg:()=>s,pY:()=>n,xz:()=>r});var o=i(4395);class s{constructor(){this.targetIndex=0}}class n extends s{constructor(){super(...arguments),this.createPlaceholder=o.dv.createInterpolationPlaceholder}}class r extends s{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return o.dv.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}},1406:(t,e,i)=>{i.d(e,{Y:()=>n,n:()=>r});var o=i(6453),s=i(4768);function n(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class r{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=o.cP.getAccessors(t).some((t=>t.name===e)),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(s.tR),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}},8348:(t,e,i)=>{i.d(e,{K:()=>n});var o=i(5932);class s{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function n(t){return new o.xz("fast-ref",s,t)}},7612:(t,e,i)=>{i.d(e,{RR:()=>F,ux:()=>A});var o=i(4395),s=i(6453),n=i(4768);function r(t,e,i){return{index:t,removed:e,addedCount:i}}const a=0,l=1,c=2,h=3;function d(t,e,i,o,s,d){let u=0,p=0;const g=Math.min(i-e,d-s);if(0===e&&0===s&&(u=function(t,e,i){for(let o=0;o<i;++o)if(t[o]!==e[o])return o;return i}(t,o,g)),i===t.length&&d===o.length&&(p=function(t,e,i){let o=t.length,s=e.length,n=0;for(;n<i&&t[--o]===e[--s];)n++;return n}(t,o,g-u)),s+=u,d-=p,(i-=p)-(e+=u)==0&&d-s==0)return n.tR;if(e===i){const t=r(e,[],0);for(;s<d;)t.removed.push(o[s++]);return[t]}if(s===d)return[r(e,[],i-e)];const m=function(t){let e=t.length-1,i=t[0].length-1,o=t[e][i];const s=[];for(;e>0||i>0;){if(0===e){s.push(c),i--;continue}if(0===i){s.push(h),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],d=t[e][i-1];let u;u=r<d?r<n?r:n:d<n?d:n,u===n?(n===o?s.push(a):(s.push(l),o=n),e--,i--):u===r?(s.push(h),e--,o=r):(s.push(c),i--,o=d)}return s.reverse(),s}(function(t,e,i,o,s,n){const r=n-s+1,a=i-e+1,l=new Array(r);let c,h;for(let t=0;t<r;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let i=1;i<r;++i)for(let n=1;n<a;++n)t[e+n-1]===o[s+i-1]?l[i][n]=l[i-1][n-1]:(c=l[i-1][n]+1,h=l[i][n-1]+1,l[i][n]=c<h?c:h);return l}(t,e,i,o,s,d)),f=[];let v,b=e,y=s;for(let t=0;t<m.length;++t)switch(m[t]){case a:void 0!==v&&(f.push(v),v=void 0),b++,y++;break;case l:void 0===v&&(v=r(b,[],0)),v.addedCount++,b++,v.removed.push(o[y]),y++;break;case c:void 0===v&&(v=r(b,[],0)),v.addedCount++,b++;break;case h:void 0===v&&(v=r(b,[],0)),v.removed.push(o[y]),y++}return void 0!==v&&f.push(v),f}const u=Array.prototype.push;function p(t,e,i,o){const s=r(e,i,o);let n=!1,a=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=a,n)continue;const o=(l=s.index,c=s.index+s.removed.length,h=i.index,d=i.index+i.addedCount,c<h||d<l?-1:c===h||d===l?0:l<h?c<d?c-h:d-h:d<c?d-l:c-l);if(o>=0){t.splice(e,1),e--,a-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const r=s.removed.length+i.removed.length-o;if(s.addedCount||r){let t=i.removed;if(s.index<i.index){const e=s.removed.slice(0,i.index-s.index);u.apply(e,t),t=e}if(s.index+s.removed.length>i.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);u.apply(t,e)}s.removed=t,i.index<s.index&&(s.index=i.index)}else n=!0}else if(s.index<i.index){n=!0,t.splice(e,0,s),e++;const o=s.addedCount-s.removed.length;i.index+=o,a+=o}}var l,c,h,d;n||t.push(s)}function g(t,e){let i=[];const o=function(t){const e=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];p(e,o.index,o.removed,o.addedCount)}return e}(e);for(let e=0,s=o.length;e<s;++e){const s=o[e];1!==s.addedCount||1!==s.removed.length?i=i.concat(d(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&i.push(s)}return i}var m=i(1366);let f=!1;function v(t,e){let i=t.index;const o=e.length;return i>o?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class b extends m.l{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,o.dv.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,o.dv.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?g(this.source,t):d(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}var y=i(5932),x=i(412);const $=Object.freeze({positioning:!1,recycle:!0});function C(t,e,i,o){t.bind(e[i],o)}function w(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}class k{constructor(t,e,i,o,n,r){this.location=t,this.itemsBinding=e,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=C,this.itemsBindingObserver=s.cP.binding(e,this,i),this.templateBindingObserver=s.cP.binding(o,this,n),r.positioning&&(this.bindView=w)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,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(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=n.tR);const e=this.itemsObserver,i=this.itemsObserver=s.cP.getNotifier(this.items),o=e!==i;o&&null!==e&&e.unsubscribe(this),(o||t)&&i.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=this.bindView,s=this.items,n=this.template,r=this.options.recycle,a=[];let l=0,c=0;for(let h=0,d=t.length;h<d;++h){const d=t[h],u=d.removed;let p=0,g=d.index;const m=g+d.addedCount,f=i.splice(d.index,u.length),v=c=a.length+f.length;for(;g<m;++g){const t=i[g],h=t?t.firstChild:this.location;let d;r&&c>0?(p<=v&&f.length>0?(d=f[p],p++):(d=a[l],l++),c--):d=n.create(),i.splice(g,0,d),o(d,s,g,e),d.insertBefore(h)}f[p]&&a.push(...f.slice(p))}for(let t=l,e=a.length;t<e;++t)a[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const o=i[t].context;o.length=e,o.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,o=this.template,s=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if(0!==r&&!t&&this.options.recycle||(x.N.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=o.create();n(r,e,t,i),a[t]=r,r.insertBefore(s)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=o.create();n(r,e,t,i),a.push(r),r.insertBefore(s)}const c=a.splice(t,l-t);for(t=0,r=c.length;t<r;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class F extends y.dg{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=o.dv.createBlockPlaceholder,function(){if(f)return;f=!0,s.cP.setArrayObserverFactory((t=>new b(t)));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,i=t.push,o=t.reverse,n=t.shift,a=t.sort,l=t.splice,c=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice(r(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(v(r(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=n.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(r(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=a.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=l.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(v(r(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=c.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(v(r(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=s.cP.isVolatileBinding(t),this.isTemplateBindingVolatile=s.cP.isVolatileBinding(e)}createBehavior(t){return new k(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function A(t,e,i=$){return new F(t,"function"==typeof e?e:()=>e,Object.assign(Object.assign({},$),i))}},4704:(t,e,i)=>{i.d(e,{e:()=>r});var o=i(5932),s=i(1406);class n extends s.n{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function r(t){return"string"==typeof t&&(t={property:t}),new o.xz("fast-slotted",n,t)}},5062:(t,e,i)=>{i.d(e,{k:()=>m,q:()=>v});var o=i(4395),s=i(6453),n=i(8312);let r=null;class a{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){r=this}static borrow(t){const e=r||new a;return e.directives=t,e.reset(),r=null,e}}function l(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map((t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding))),s=new n.k(((t,e)=>{let s="";for(let n=0;n<i;++n)s+=o[n](t,e);return s}));return s.targetName=e,s}const c=o.No.length;function h(t,e){const i=e.split(o.ae);if(1===i.length)return null;const s=[];for(let e=0,n=i.length;e<n;++e){const n=i[e],r=n.indexOf(o.No);let a;if(-1===r)a=n;else{const e=parseInt(n.substring(0,r));s.push(t.directives[e]),a=n.substring(r+c)}""!==a&&s.push(a)}return s}function d(t,e,i=!1){const o=e.attributes;for(let s=0,r=o.length;s<r;++s){const a=o[s],c=a.value,d=h(t,c);let u=null;null===d?i&&(u=new n.k((()=>c)),u.targetName=a.name):u=l(d),null!==u&&(e.removeAttributeNode(a),s--,r--,t.addFactory(u))}}function u(t,e,i){const o=h(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n<r;++n){const r=o[n],a=0===n?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),s=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}var p=i(412),g=i(5932);class m{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=o.dv.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=function(t,e){const i=t.content;document.adoptNode(i);const s=a.borrow(e);d(s,t,!0);const n=s.behaviorFactories;s.reset();const r=o.dv.createTemplateWalker(i);let l;for(;l=r.nextNode();)switch(s.targetIndex++,l.nodeType){case 1:d(s,l);break;case 3:u(s,l,r);break;case 8:o.dv.isMarker(l)&&s.addFactory(e[o.dv.extractDirectiveIndexFromMarker(l)])}let c=0;(o.dv.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),c=-1);const h=s.behaviorFactories;return s.release(),{fragment:i,viewBehaviorFactories:h,hostBehaviorFactories:n,targetOffset:c}}(t,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 e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,s=new Array(this.behaviorCount),n=o.dv.createTemplateWalker(e);let r=0,l=this.targetOffset,c=n.nextNode();for(let t=i.length;r<t;++r){const t=i[r],e=t.targetIndex;for(;null!==c;){if(l===e){s[r]=t.createBehavior(c);break}c=n.nextNode(),l++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,o=e.length;i<o;++i,++r)s[r]=e[i].createBehavior(t)}return new p.N(e,s)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const o=this.create(i);return o.bind(t,s.Fj),o.appendTo(e),o}}const f=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function v(t,...e){const i=[];let o="";for(let s=0,r=t.length-1;s<r;++s){const r=t[s];let a=e[s];if(o+=r,a instanceof m){const t=a;a=()=>t}if("function"==typeof a&&(a=new n.k(a)),a instanceof g.pY){const t=f.exec(r);null!==t&&(a.targetName=t[2])}a instanceof g.dg?(o+=a.createPlaceholder(i.length),i.push(a)):o+=a}return o+=t[t.length-1],new m(o,i)}},412:(t,e,i)=>{i.d(e,{N:()=>s});const o=document.createRange();class s{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let o,s=this.firstChild;for(;s!==e;)o=s.nextSibling,i.insertBefore(s,t),s=o;i.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.removeChild(o),o=i;t.removeChild(e);const s=this.behaviors,n=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const o=this.source;this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++s){const n=i[s];n.unbind(o),n.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=i.length;o<s;++o)i[o].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,o=t.length;i<o;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){o.setStartBefore(t[0].firstChild),o.setEndAfter(t[t.length-1].lastChild),o.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],o=i.behaviors,s=i.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(s)}}}}},5066:(t,e,i)=>{i.d(e,{z:()=>r});const o=t=>"function"==typeof t,s=()=>null;function n(t){return void 0===t?s:o(t)?t:()=>t}function r(t,e,i){const s=o(t)?t:()=>t,r=n(e),a=n(i);return(t,e)=>s(t,e)?r(t,e):a(t,e)}},313:(t,e,i)=>{i.d(e,{E:()=>r});var o=i(5062),s=i(8348),n=i(7010);const r=(t,e)=>o.q`
|
|
5400
5400
|
<template class="${t=>t.expanded?"expanded":""}">
|
|
5401
5401
|
<div
|
|
5402
5402
|
class="heading"
|
|
@@ -5768,7 +5768,7 @@
|
|
|
5768
5768
|
>
|
|
5769
5769
|
<slot></slot>
|
|
5770
5770
|
</template>
|
|
5771
|
-
`}},773:(t,e,i)=>{i.d(e,{D:()=>l,E:()=>a});var o=i(2761),s=i(419);function n(t){return`${t.toLowerCase()}:presentation`}const r=new Map,a=Object.freeze({define(t,e,i){const o=n(t);void 0===r.get(o)?r.set(o,e):r.set(o,!1),i.register(s.cH.instance(o,e))},forTag(t,e){const i=n(t),o=r.get(i);if(!1===o){return s.DI.findResponsibleContainer(e).get(i)}return o||null}});class l{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?o.vv.create(e):e instanceof o.vv?e:o.vv.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}},6047:(t,e,i)=>{i.d(e,{E:()=>p});var o=i(9375),s=i(301),n=i(419),r=i(1698),a=i(773);const l=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),c=new Map,h=new Map;let d=null;const u=n.DI.createInterface((t=>t.cachedCallback((t=>(null===d&&(d=new g(null,t)),d))))),p=Object.freeze({tagFor:t=>h.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return n.DI.findResponsibleContainer(t).get(u)},getOrCreate(t){if(!t)return null===d&&(d=n.DI.getOrCreateDOMContainer().get(u)),d;const e=t.$$designSystem$$;if(e)return e;const i=n.DI.getOrCreateDOMContainer(t);if(i.has(u,!1))return i.get(u);{const e=new g(t,i);return i.register(n.cH.instance(u,e)),e}}});class g{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>l.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,n=this.shadowRootMode,a={elementPrefix:this.prefix,tryDefineElement(t,r,a){const d=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,r,a),{name:u,callback:p,baseClass:g}=d;let{type:f}=d,v=u,b=c.get(v),y=!0;for(;b;){const t=o(v,f,b);switch(t){case l.ignoreDuplicate:return;case l.definitionCallbackOnly:y=!1,b=void 0;break;default:v=t,b=c.get(v)}}y&&((h.has(f)||f===s.g)&&(f=class extends f{}),c.set(v,f),h.set(f,v),g&&h.set(g,v)),i.push(new m(e,v,f,n,p,y))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&r.G.registerRoot(this.designTokenRoot)),e.registerWithContext(a,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class m{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){a.E.define(this.name,t,this.container)}defineElement(t){this.definition=new o.I(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return p.tagFor(t)}}},1698:(t,e,i)=>{i.d(e,{G:()=>A});var o=i(7545),s=i(7317),n=i(6453),r=i(1440),a=i(5900);var l=i(4395),c=i(2761);const h=document.createElement("div");class d{setProperty(t,e){l.dv.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){l.dv.queueUpdate((()=>this.target.removeProperty(t)))}}class u extends d{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class p extends d{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class g{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),n.cP.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),l.dv.queueUpdate((()=>{null!==this.target&&this.target.setProperty(t,e)}))}removeProperty(t){this.store.delete(t),l.dv.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(t)}))}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}(0,o.Cg)([n.sH],g.prototype,"target",void 0);class m{constructor(t){this.target=t.style}setProperty(t,e){l.dv.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){l.dv.queueUpdate((()=>this.target.removeProperty(t)))}}class f{setProperty(t,e){f.properties[t]=e;for(const i of f.roots.values())y.getOrCreate(f.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete f.properties[t];for(const e of f.roots.values())y.getOrCreate(f.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=f;if(!e.has(t)){e.add(t);const i=y.getOrCreate(this.normalizeRoot(t));for(const t in f.properties)i.setProperty(t,f.properties[t])}}static unregisterRoot(t){const{roots:e}=f;if(e.has(t)){e.delete(t);const i=y.getOrCreate(f.normalizeRoot(t));for(const t in f.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===h?document:t}}f.roots=new Set,f.properties={};const v=new WeakMap,b=l.dv.supportsAdoptedStyleSheets?class extends d{constructor(t){super();const e=new CSSStyleSheet;e[c.Qe]=!0,this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(c.vv.create([e]))}}:g,y=Object.freeze({getOrCreate(t){if(v.has(t))return v.get(t);let e;return t===h?e=new f:t instanceof Document?e=l.dv.supportsAdoptedStyleSheets?new u:new p:e=t instanceof r.L?new b(t):new m(t),v.set(t,e),e}});class x extends s.x{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=x.uniqueId(),x.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new x({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return x.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=F.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof x&&(e=this.alias(e)),F.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),F.existsFor(t)&&F.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(h,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!F.existsFor(e)&&F.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach((t=>t.handleChange(e))),this.subscribers.has(t)&&this.subscribers.get(t).forEach((t=>t.handleChange(e)))}alias(t){return e=>t.getValueFor(e)}}x.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),x.tokensById=new Map;class ${constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=n.cP.binding(t,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,n.Fj))}}class C{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),n.cP.getNotifier(this).notify(t.id))}get(t){return n.cP.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const w=new WeakMap,k=new WeakMap;class F{constructor(t){this.target=t,this.store=new C,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=x.getTokenById(e);i&&(i.notify(this.target),this.updateCSSTokenReflection(t,i))}},w.set(t,this),n.cP.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof r.L?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return w.get(t)||new F(t)}static existsFor(t){return w.has(t)}static findParent(t){if(h!==t.target){let e=(0,a.Z)(t.target);for(;null!==e;){if(w.has(e))return w.get(e);e=(0,a.Z)(e)}return F.getOrCreate(h)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==h?F.getOrCreate(h):null}while(null!==i);return null}get parent(){return k.get(this)||null}updateCSSTokenReflection(t,e){if(x.isCSSDesignToken(e)){const i=this.parent,o=this.isReflecting(e);if(i){const s=i.get(e),n=t.get(e);s===n||o?s===n&&o&&this.stopReflectToCSS(e):this.reflectToCSS(e)}else o||this.reflectToCSS(e)}}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=F.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){x.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),x.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=F.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){k.get(this).removeChild(this)}}appendChild(t){t.parent&&k.get(t).removeChild(t);const e=this.children.filter((e=>t.contains(e)));k.set(t,this),this.children.push(t),e.forEach((e=>t.appendChild(e))),n.cP.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),n.cP.getNotifier(this.store).unsubscribe(t),t.parent===this&&k.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=(0,a.Z)(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),F.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),F.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=x.getTokenById(e);i&&(this.hydrate(i,this.getRaw(i)),this.updateCSSTokenReflection(this.store,i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);x.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new $(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}F.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){y.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(F.getOrCreate(e).get(t)))}remove(t,e){y.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},(0,o.Cg)([n.sH],F.prototype,"children",void 0);const A=Object.freeze({create:function(t){return x.from(t)},notifyConnection:t=>!(!t.isConnected||!F.existsFor(t))&&(F.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!F.existsFor(t))&&(F.getOrCreate(t).unbind(),!0),registerRoot(t=h){f.registerRoot(t)},unregisterRoot(t=h){f.unregisterRoot(t)}})},419:(t,e,i)=>{i.d(e,{DI:()=>p,WQ:()=>f,cH:()=>L,lq:()=>y,mc:()=>g});var o=i(1440),s=i(4768);const n=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=n.get(i);void 0===o&&n.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=n.get(e);if(void 0!==i)return i.get(t)});class r{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,H(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new C(o,t,e))}}function a(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;n<o;++n)s=i[n],q(s)||(e[s]=t[s]);return e}const l=Object.freeze({none(t){throw Error(`${t.toString()} not registered, did you forget to add @singleton()?`)},singleton:t=>new C(t,1,t),transient:t=>new C(t,2,t)}),c=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:l.singleton})}),h=new Map;function d(t){return e=>Reflect.getOwnMetadata(t,e)}let u=null;const p=Object.freeze({createContainer:t=>new D(null,Object.assign({},c.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:p.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(S,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||p.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new D(t,Object.assign({},c.default,e,{parentLocator:p.findParentContainer})):u||(u=new D(null,Object.assign({},c.default,e,{parentLocator:()=>null}))),getDesignParamtypes:d("design:paramtypes"),getAnnotationParamtypes:d("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=h.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=p.getDesignParamtypes(t),o=p.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?a(p.getDependencies(i)):[]}else e=a(o);else if(void 0===o)e=a(i);else{e=a(i);let t,s=o.length;for(let i=0;i<s;++i)t=o[i],void 0!==t&&(e[i]=t);const n=Object.keys(o);let r;s=n.length;for(let t=0;t<s;++t)r=n[t],q(r)||(e[r]=o[r])}}else e=a(i);h.set(t,e)}return e},defineProperty(t,e,i,s=!1){const n=`$di_${e}`;Reflect.defineProperty(t,e,{get:function(){let t=this[n];if(void 0===t){const r=this instanceof HTMLElement?p.findResponsibleContainer(this):p.getOrCreateDOMContainer();if(t=r.get(i),this[n]=t,s&&this instanceof o.L){const o=this.$fastController,s=()=>{p.findResponsibleContainer(this).get(i)!==this[n]&&(this[n]=t,o.notify(e))};o.subscribe({handleChange:s},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||V,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)p.defineProperty(t,e,n,s);else{p.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new r(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=p.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)p.defineProperty(e,i,t[0]);else{const i=o?p.getOrCreateAnnotationParamTypes(o.value):p.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(i[e]=s)}},transient:t=>(t.register=function(e){return L.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=v)=>(t.register=function(e){return L.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),g=p.createInterface("Container");function m(t){return function(e){const i=function(t,e,o){p.inject(i)(t,e,o)};return i.$isResolver=!0,i.resolve=function(i,o){return t(e,i,o)},i}}const f=p.inject;const v={scoped:!1};b=(t,e,i,o)=>i.getAll(t,o);var b;m(((t,e,i)=>()=>i.get(t)));const y=m(((t,e,i)=>i.has(t,!0)?i.get(t):void 0));function x(t,e,i){p.inject(x)(t,e,i)}x.$isResolver=!0,x.resolve=()=>{};m(((t,e,i)=>{const o=$(t,e),s=new C(t,0,o);return i.registerResolver(t,s),o})),m(((t,e,i)=>$(t,e)));function $(t,e){return e.getFactory(t).construct(e)}class C{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){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=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function w(t){return this.get(t)}function k(t,e){return e(t)}class F{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(w,t)):new this.Type(...this.dependencies.map(w,t),...e),null==this.transformers?i:this.transformers.reduce(k,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const A={$isResolver:!0,resolve:(t,e)=>e};function I(t){return"function"==typeof t.register}function T(t){return function(t){return I(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const O=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"]),S="__DI_LOCATE_PARENT__",E=new Map;class D{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(g,A),t instanceof Node&&t.addEventListener(S,(t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.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(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],M(e))if(I(e))e.register(this,r);else if(void 0!==e.prototype)L.singleton(e,e).register(this);else for(i=Object.keys(e),s=0,n=i.length;s<n;++s)o=e[i[s]],M(o)&&(I(o)?o.register(this,r):this.register(o));return--this.registerDepth,this}registerResolver(t,e){z(t);const i=this.resolvers,o=i.get(t);return null==o?i.set(t,e):o instanceof C&&4===o.strategy?o.state.push(e):i.set(t,new C(t,4,[o,e])),e}registerTransformer(t,e){const i=this.getResolver(t);if(null==i)return!1;if(i.getFactory){const t=i.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(z(t),void 0!==t.resolve)return t;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(t),null!=i)return i;if(null==o.parent){const i=T(t)?this:o;return e?this.jitRegister(t,i):null}o=o.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(z(t),t.$isResolver)return t.resolve(this,this);let e,i=this;for(;null!=i;){if(e=i.resolvers.get(t),null!=e)return e.resolve(i,this);if(null==i.parent){const o=T(t)?this:i;return e=this.jitRegister(t,o),e.resolve(i,this)}i=i.parent}throw new Error(`Unable to resolve key: ${String(t)}`)}getAll(t,e=!1){z(t);const i=this;let o,n=i;if(e){let e=s.tR;for(;null!=n;)o=n.resolvers.get(t),null!=o&&(e=e.concat(P(o,n,i))),n=n.parent;return e}for(;null!=n;){if(o=n.resolvers.get(t),null!=o)return P(o,n,i);if(n=n.parent,null==n)return s.tR}return s.tR}getFactory(t){let e=E.get(t);if(void 0===e){if(N(t))throw new Error(`${t.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);E.set(t,e=new F(t,p.getDependencies(t)))}return e}registerFactory(t,e){E.set(t,e)}createChild(t){return new D(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(O.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(I(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const R=new WeakMap;function H(t){return function(e,i,o){if(R.has(o))return R.get(o);const s=t(e,i,o);return R.set(o,s),s}}const L=Object.freeze({instance:(t,e)=>new C(t,0,e),singleton:(t,e)=>new C(t,1,e),transient:(t,e)=>new C(t,2,e),callback:(t,e)=>new C(t,3,e),cachedCallback:(t,e)=>new C(t,3,H(e)),aliasTo:(t,e)=>new C(e,5,t)});function z(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function P(t,e,i){if(t instanceof C&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const V="(anonymous)";function M(t){return"object"==typeof t&&null!==t||"function"==typeof t}const N=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=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),t.set(s,e)),e}}(),B={};function q(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=B[t];if(void 0!==e)return e;const i=t.length;if(0===i)return B[t]=!1;let o=0;for(let e=0;e<i;++e)if(o=t.charCodeAt(e),0===e&&48===o&&i>1||o<48||o>57)return B[t]=!1;return B[t]=!0}default:return!1}}},1187:(t,e,i)=>{i.d(e,{S:()=>n});var o=i(5062),s=i(8348);const n=(t,e)=>o.q`
|
|
5771
|
+
`}},773:(t,e,i)=>{i.d(e,{D:()=>l,E:()=>a});var o=i(2761),s=i(419);function n(t){return`${t.toLowerCase()}:presentation`}const r=new Map,a=Object.freeze({define(t,e,i){const o=n(t);void 0===r.get(o)?r.set(o,e):r.set(o,!1),i.register(s.cH.instance(o,e))},forTag(t,e){const i=n(t),o=r.get(i);if(!1===o){return s.DI.findResponsibleContainer(e).get(i)}return o||null}});class l{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?o.vv.create(e):e instanceof o.vv?e:o.vv.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}},6047:(t,e,i)=>{i.d(e,{E:()=>p});var o=i(9375),s=i(301),n=i(419),r=i(1698),a=i(773);const l=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),c=new Map,h=new Map;let d=null;const u=n.DI.createInterface((t=>t.cachedCallback((t=>(null===d&&(d=new g(null,t)),d))))),p=Object.freeze({tagFor:t=>h.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return n.DI.findResponsibleContainer(t).get(u)},getOrCreate(t){if(!t)return null===d&&(d=n.DI.getOrCreateDOMContainer().get(u)),d;const e=t.$$designSystem$$;if(e)return e;const i=n.DI.getOrCreateDOMContainer(t);if(i.has(u,!1))return i.get(u);{const e=new g(t,i);return i.register(n.cH.instance(u,e)),e}}});class g{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>l.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,n=this.shadowRootMode,a={elementPrefix:this.prefix,tryDefineElement(t,r,a){const d=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,r,a),{name:u,callback:p,baseClass:g}=d;let{type:f}=d,v=u,b=c.get(v),y=!0;for(;b;){const t=o(v,f,b);switch(t){case l.ignoreDuplicate:return;case l.definitionCallbackOnly:y=!1,b=void 0;break;default:v=t,b=c.get(v)}}y&&((h.has(f)||f===s.g)&&(f=class extends f{}),c.set(v,f),h.set(f,v),g&&h.set(g,v)),i.push(new m(e,v,f,n,p,y))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&r.G.registerRoot(this.designTokenRoot)),e.registerWithContext(a,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class m{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){a.E.define(this.name,t,this.container)}defineElement(t){this.definition=new o.I(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return p.tagFor(t)}}},1698:(t,e,i)=>{i.d(e,{G:()=>A});var o=i(7545),s=i(7317),n=i(6453),r=i(1440),a=i(5900);var l=i(4395),c=i(2761);const h=document.createElement("div");class d{setProperty(t,e){l.dv.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){l.dv.queueUpdate((()=>this.target.removeProperty(t)))}}class u extends d{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class p extends d{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class g{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),n.cP.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),l.dv.queueUpdate((()=>{null!==this.target&&this.target.setProperty(t,e)}))}removeProperty(t){this.store.delete(t),l.dv.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(t)}))}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}(0,o.Cg)([n.sH],g.prototype,"target",void 0);class m{constructor(t){this.target=t.style}setProperty(t,e){l.dv.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){l.dv.queueUpdate((()=>this.target.removeProperty(t)))}}class f{setProperty(t,e){f.properties[t]=e;for(const i of f.roots.values())y.getOrCreate(f.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete f.properties[t];for(const e of f.roots.values())y.getOrCreate(f.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=f;if(!e.has(t)){e.add(t);const i=y.getOrCreate(this.normalizeRoot(t));for(const t in f.properties)i.setProperty(t,f.properties[t])}}static unregisterRoot(t){const{roots:e}=f;if(e.has(t)){e.delete(t);const i=y.getOrCreate(f.normalizeRoot(t));for(const t in f.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===h?document:t}}f.roots=new Set,f.properties={};const v=new WeakMap,b=l.dv.supportsAdoptedStyleSheets?class extends d{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(c.vv.create([e]))}}:g,y=Object.freeze({getOrCreate(t){if(v.has(t))return v.get(t);let e;return t===h?e=new f:t instanceof Document?e=l.dv.supportsAdoptedStyleSheets?new u:new p:e=t instanceof r.L?new b(t):new m(t),v.set(t,e),e}});class x extends s.x{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=x.uniqueId(),x.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new x({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return x.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=F.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof x&&(e=this.alias(e)),F.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),F.existsFor(t)&&F.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(h,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!F.existsFor(e)&&F.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach((t=>t.handleChange(e))),this.subscribers.has(t)&&this.subscribers.get(t).forEach((t=>t.handleChange(e)))}alias(t){return e=>t.getValueFor(e)}}x.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),x.tokensById=new Map;class ${constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=n.cP.binding(t,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,n.Fj))}}class C{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),n.cP.getNotifier(this).notify(t.id))}get(t){return n.cP.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const w=new WeakMap,k=new WeakMap;class F{constructor(t){this.target=t,this.store=new C,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=x.getTokenById(e);i&&(i.notify(this.target),this.updateCSSTokenReflection(t,i))}},w.set(t,this),n.cP.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof r.L?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return w.get(t)||new F(t)}static existsFor(t){return w.has(t)}static findParent(t){if(h!==t.target){let e=(0,a.Z)(t.target);for(;null!==e;){if(w.has(e))return w.get(e);e=(0,a.Z)(e)}return F.getOrCreate(h)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==h?F.getOrCreate(h):null}while(null!==i);return null}get parent(){return k.get(this)||null}updateCSSTokenReflection(t,e){if(x.isCSSDesignToken(e)){const i=this.parent,o=this.isReflecting(e);if(i){const s=i.get(e),n=t.get(e);s===n||o?s===n&&o&&this.stopReflectToCSS(e):this.reflectToCSS(e)}else o||this.reflectToCSS(e)}}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=F.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){x.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),x.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=F.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){k.get(this).removeChild(this)}}appendChild(t){t.parent&&k.get(t).removeChild(t);const e=this.children.filter((e=>t.contains(e)));k.set(t,this),this.children.push(t),e.forEach((e=>t.appendChild(e))),n.cP.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),n.cP.getNotifier(this.store).unsubscribe(t),t.parent===this&&k.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=(0,a.Z)(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),F.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),F.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=x.getTokenById(e);i&&(this.hydrate(i,this.getRaw(i)),this.updateCSSTokenReflection(this.store,i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);x.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new $(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}F.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){y.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(F.getOrCreate(e).get(t)))}remove(t,e){y.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},(0,o.Cg)([n.sH],F.prototype,"children",void 0);const A=Object.freeze({create:function(t){return x.from(t)},notifyConnection:t=>!(!t.isConnected||!F.existsFor(t))&&(F.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!F.existsFor(t))&&(F.getOrCreate(t).unbind(),!0),registerRoot(t=h){f.registerRoot(t)},unregisterRoot(t=h){f.unregisterRoot(t)}})},419:(t,e,i)=>{i.d(e,{DI:()=>p,WQ:()=>f,cH:()=>L,lq:()=>y,mc:()=>g});var o=i(1440),s=i(4768);const n=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=n.get(i);void 0===o&&n.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=n.get(e);if(void 0!==i)return i.get(t)});class r{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,H(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new C(o,t,e))}}function a(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;n<o;++n)s=i[n],q(s)||(e[s]=t[s]);return e}const l=Object.freeze({none(t){throw Error(`${t.toString()} not registered, did you forget to add @singleton()?`)},singleton:t=>new C(t,1,t),transient:t=>new C(t,2,t)}),c=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:l.singleton})}),h=new Map;function d(t){return e=>Reflect.getOwnMetadata(t,e)}let u=null;const p=Object.freeze({createContainer:t=>new D(null,Object.assign({},c.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:p.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(S,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||p.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new D(t,Object.assign({},c.default,e,{parentLocator:p.findParentContainer})):u||(u=new D(null,Object.assign({},c.default,e,{parentLocator:()=>null}))),getDesignParamtypes:d("design:paramtypes"),getAnnotationParamtypes:d("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=h.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=p.getDesignParamtypes(t),o=p.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?a(p.getDependencies(i)):[]}else e=a(o);else if(void 0===o)e=a(i);else{e=a(i);let t,s=o.length;for(let i=0;i<s;++i)t=o[i],void 0!==t&&(e[i]=t);const n=Object.keys(o);let r;s=n.length;for(let t=0;t<s;++t)r=n[t],q(r)||(e[r]=o[r])}}else e=a(i);h.set(t,e)}return e},defineProperty(t,e,i,s=!1){const n=`$di_${e}`;Reflect.defineProperty(t,e,{get:function(){let t=this[n];if(void 0===t){const r=this instanceof HTMLElement?p.findResponsibleContainer(this):p.getOrCreateDOMContainer();if(t=r.get(i),this[n]=t,s&&this instanceof o.L){const o=this.$fastController,s=()=>{p.findResponsibleContainer(this).get(i)!==this[n]&&(this[n]=t,o.notify(e))};o.subscribe({handleChange:s},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||V,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)p.defineProperty(t,e,n,s);else{p.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new r(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=p.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)p.defineProperty(e,i,t[0]);else{const i=o?p.getOrCreateAnnotationParamTypes(o.value):p.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(i[e]=s)}},transient:t=>(t.register=function(e){return L.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=v)=>(t.register=function(e){return L.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),g=p.createInterface("Container");function m(t){return function(e){const i=function(t,e,o){p.inject(i)(t,e,o)};return i.$isResolver=!0,i.resolve=function(i,o){return t(e,i,o)},i}}const f=p.inject;const v={scoped:!1};b=(t,e,i,o)=>i.getAll(t,o);var b;m(((t,e,i)=>()=>i.get(t)));const y=m(((t,e,i)=>i.has(t,!0)?i.get(t):void 0));function x(t,e,i){p.inject(x)(t,e,i)}x.$isResolver=!0,x.resolve=()=>{};m(((t,e,i)=>{const o=$(t,e),s=new C(t,0,o);return i.registerResolver(t,s),o})),m(((t,e,i)=>$(t,e)));function $(t,e){return e.getFactory(t).construct(e)}class C{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){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=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function w(t){return this.get(t)}function k(t,e){return e(t)}class F{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(w,t)):new this.Type(...this.dependencies.map(w,t),...e),null==this.transformers?i:this.transformers.reduce(k,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const A={$isResolver:!0,resolve:(t,e)=>e};function I(t){return"function"==typeof t.register}function T(t){return function(t){return I(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const O=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"]),S="__DI_LOCATE_PARENT__",E=new Map;class D{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(g,A),t instanceof Node&&t.addEventListener(S,(t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.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(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],M(e))if(I(e))e.register(this,r);else if(void 0!==e.prototype)L.singleton(e,e).register(this);else for(i=Object.keys(e),s=0,n=i.length;s<n;++s)o=e[i[s]],M(o)&&(I(o)?o.register(this,r):this.register(o));return--this.registerDepth,this}registerResolver(t,e){z(t);const i=this.resolvers,o=i.get(t);return null==o?i.set(t,e):o instanceof C&&4===o.strategy?o.state.push(e):i.set(t,new C(t,4,[o,e])),e}registerTransformer(t,e){const i=this.getResolver(t);if(null==i)return!1;if(i.getFactory){const t=i.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(z(t),void 0!==t.resolve)return t;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(t),null!=i)return i;if(null==o.parent){const i=T(t)?this:o;return e?this.jitRegister(t,i):null}o=o.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(z(t),t.$isResolver)return t.resolve(this,this);let e,i=this;for(;null!=i;){if(e=i.resolvers.get(t),null!=e)return e.resolve(i,this);if(null==i.parent){const o=T(t)?this:i;return e=this.jitRegister(t,o),e.resolve(i,this)}i=i.parent}throw new Error(`Unable to resolve key: ${String(t)}`)}getAll(t,e=!1){z(t);const i=this;let o,n=i;if(e){let e=s.tR;for(;null!=n;)o=n.resolvers.get(t),null!=o&&(e=e.concat(P(o,n,i))),n=n.parent;return e}for(;null!=n;){if(o=n.resolvers.get(t),null!=o)return P(o,n,i);if(n=n.parent,null==n)return s.tR}return s.tR}getFactory(t){let e=E.get(t);if(void 0===e){if(N(t))throw new Error(`${t.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);E.set(t,e=new F(t,p.getDependencies(t)))}return e}registerFactory(t,e){E.set(t,e)}createChild(t){return new D(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(O.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(I(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const R=new WeakMap;function H(t){return function(e,i,o){if(R.has(o))return R.get(o);const s=t(e,i,o);return R.set(o,s),s}}const L=Object.freeze({instance:(t,e)=>new C(t,0,e),singleton:(t,e)=>new C(t,1,e),transient:(t,e)=>new C(t,2,e),callback:(t,e)=>new C(t,3,e),cachedCallback:(t,e)=>new C(t,3,H(e)),aliasTo:(t,e)=>new C(e,5,t)});function z(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function P(t,e,i){if(t instanceof C&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const V="(anonymous)";function M(t){return"object"==typeof t&&null!==t||"function"==typeof t}const N=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=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),t.set(s,e)),e}}(),B={};function q(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=B[t];if(void 0!==e)return e;const i=t.length;if(0===i)return B[t]=!1;let o=0;for(let e=0;e<i;++e)if(o=t.charCodeAt(e),0===e&&48===o&&i>1||o<48||o>57)return B[t]=!1;return B[t]=!0}default:return!1}}},1187:(t,e,i)=>{i.d(e,{S:()=>n});var o=i(5062),s=i(8348);const n=(t,e)=>o.q`
|
|
5772
5772
|
<details class="disclosure" ${(0,s.K)("details")}>
|
|
5773
5773
|
<summary
|
|
5774
5774
|
class="invoker"
|
|
@@ -6399,4 +6399,4 @@
|
|
|
6399
6399
|
`},2858:(t,e,i)=>{i.d(e,{X:()=>s});var o=i(8527);function s(t,...e){const i=o.$u.locate(t);e.forEach((e=>{Object.getOwnPropertyNames(e.prototype).forEach((i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}));o.$u.locate(e).forEach((t=>i.push(t)))}))}},5900:(t,e,i)=>{function o(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}i.d(e,{Z:()=>o})},7882:(t,e,i)=>{i.d(e,{u:()=>s});var o=i(5109);const s=t=>{const e=t.closest("[dir]");return null!==e&&"rtl"===e.dir?o.O.rtl:o.O.ltr}},8691:(t,e,i)=>{i.d(e,{mr:()=>n});class o{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,i=this.constructListener(t);i.bind(e)(),e.addListener(i),this.listenerCache.set(t,i)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}class s extends o{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new s(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!e?(t.$fastController.addStyles(i),e=o):!o&&e&&(t.$fastController.removeStyles(i),e=o)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const n=s.with(window.matchMedia("(forced-colors)"));s.with(window.matchMedia("(prefers-color-scheme: dark)")),s.with(window.matchMedia("(prefers-color-scheme: light)"))},8654:(t,e,i)=>{i.d(e,{o:()=>s});var o=i(6453);class s{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){o.cP.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){o.cP.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}},7787:(t,e,i)=>{i.d(e,{V:()=>s});const o=":host([hidden]){display:none}";function s(t){return`${o}:host{display:${t}}`}},2597:(t,e,i)=>{function o(t,e,i){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}i.d(e,{g:()=>o})},8647:(t,e,i)=>{i.d(e,{Y:()=>g});var o=i(7545),s=i(6132),n=i(3523),r=i(751);class a{constructor(){this.handler=t=>{const{shouldHandleEvent:e,href:i}=this.getEventInfo(t);e&&(t.preventDefault(),s.qh.path.push(i))}}connect(){window.addEventListener("click",this.handler,!0)}disconnect(){window.removeEventListener("click",this.handler)}getEventInfo(t){const e={shouldHandleEvent:!1,href:null,anchor:null},i=this.findClosestAnchor(t);if(!i||!this.targetIsThisWindow(i))return e;if(i.hasAttribute("download")||i.hasAttribute("router-ignore")||i.hasAttribute("data-router-ignore"))return e;if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return e;const o=i.getAttribute("href");e.anchor=i,e.href=o;const s=1===t.which,n=o&&!("#"===o.charAt(0)||/^[a-z]+:/i.test(o));return e.shouldHandleEvent=s&&!!n,e}findClosestAnchor(t){const e=t.composedPath();for(let t=0,i=e.length;t<i;++t){const i=e[t];if("A"===i.tagName)return i}return t.target}targetIsThisWindow(t){const e=t.getAttribute("target");return!e||e===window.name||"_self"===e}}var l=i(7820);class c{constructor(t,e,i,o,s){this.name=t,this.commitActions=o,this.cancelActions=s,this.routes=[],this.routers=[],this.canceled=!1,this.titles=[],this.routes.push(e),this.routers.push(i)}get route(){return this.routes[this.routes.length-1]}get router(){return this.routers[this.routers.length-1]}cancel(t){this.canceled=!0,t&&this.cancelActions.push(t)}onCommit(t){this.commitActions.push(t)}onCancel(t){this.cancelActions.push(t)}setTitle(t){const e=this.router.level;for(;this.titles.length<e+1;)this.titles.push([]);this.titles[e].push(t)}evaluateContributor(t,e=this.route,i=this.router){return(0,o.sH)(this,void 0,void 0,(function*(){(0,l.J)(t,this.name)&&(this.routes.push(e),this.routers.push(i),yield t[this.name](this),this.routes.pop(),this.routers.pop())}))}}class h{constructor(){this.phases=["navigate","leave","construct","enter","commit"]}run(t,e){return(0,o.sH)(this,void 0,void 0,(function*(){const i=t.config.createEventSink(),o=yield t.config.recognizeRoute(e.path);if(null===o)return void i.onUnhandledNavigationMessage(t,e);const s=o.route,n=o.command;i.onNavigationBegin(t,s,n);const r=[],a=[];let l=r;const h=[yield n.createContributor(t,s),t,this];for(const e of this.phases){const o=new c(e,s,t,r,a);if(i.onPhaseBegin(o),o.canceled)l=a;else for(const t of h)if(yield o.evaluateContributor(t),o.canceled){l=a;break}if(i.onPhaseEnd(o),o.canceled)break}yield Promise.all(l.map((t=>t()))).then((()=>i.onNavigationEnd(t,s,n)))}))}commit(t){const e=t.router.config.createTitleBuilder();document.title=e.buildTitle(t.router.config.title,t.titles)}}class d{constructor(t=" - ",e=":"){this.segmentSeparator=t,this.fragmentSeparator=e}joinTitles(t,e){return""===t?e:""===e?t:`${t}${this.segmentSeparator}${e}`}buildTitle(t,e){let i=t;for(const t of e){i&&(i+=this.segmentSeparator);let e="";for(const i of t)e&&(e+=this.fragmentSeparator),e+=i;i+=e}return i}}class u{onUnhandledNavigationMessage(t,e){}onNavigationBegin(t,e,i){}onPhaseBegin(t){}onPhaseEnd(t){}onNavigationEnd(t,e,i){}}var p=i(8428);class g{constructor(){this.isConfigured=!1,this.routes=new r.s(this),this.contributors=[],this.defaultLayout=n.PE.default,this.defaultTransition=n.eB.default,this.title="",this.parent=null}createNavigationQueue(){return this.construct(s.xN)}createLinkHandler(){return this.construct(a)}createNavigationProcess(){return new h}createEventSink(){return this.construct(u)}createTitleBuilder(){return this.construct(d)}createRouteRecognizer(){return this.construct(p.vX)}construct(t){return null!==this.parent?this.parent.construct(t):new t}recognizeRoute(t){return(0,o.sH)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.recognize(t)}))}generateRouteFromName(t,e){return(0,o.sH)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.generateFromName(t,e)}))}generateRouteFromPath(t,e){return(0,o.sH)(this,void 0,void 0,(function*(){return yield this.ensureConfigured(),this.routes.generateFromPath(t,e)}))}findContributors(t){return this.contributors.filter((e=>(0,l.J)(e,t)))}cached(t){let e=null;return()=>(0,o.sH)(this,void 0,void 0,(function*(){return null===e&&(e=new t),e}))}ensureConfigured(){return(0,o.sH)(this,void 0,void 0,(function*(){this.isConfigured||(yield this.configure(),this.isConfigured=!0)}))}}},7820:(t,e,i)=>{i.d(e,{J:()=>r,c:()=>h});var o=i(5932),s=i(4395),n=i(3479);function r(t,e){return e in t}const a={lifecycle:!0,parameters:!0};class l extends o.dg{constructor(t){super(),this.options=t}createPlaceholder(t){return s.dv.createCustomAttributePlaceholder("fast-navigation-contributor",t)}createBehavior(t){return new c(t,this.options)}}class c{constructor(t,e){this.contributor=t,this.options=e,this.router=null}bind(t,e){if(this.options.lifecycle&&(this.router=e.router||n.Ix.find(this.contributor),this.router.addContributor(this.contributor)),this.options.parameters){const e=this.contributor,i=t;for(const t in i)e[t]=i[t]}}unbind(t){null!==this.router&&this.router.removeContributor(this.contributor)}}function h(t){return new l(Object.assign({},a,t))}},9264:(t,e,i)=>{i.d(e,{m:()=>r});var o=i(7545),s=i(1440),n=i(3479);let r=class extends(n.Ix.from(s.L)){};r=(0,o.Cg)([(0,s.E)("fast-router")],r)},6132:(t,e,i)=>{i.d(e,{kg:()=>n,qh:()=>c,xN:()=>h});var o=i(7545),s=i(3479);class n{constructor(t){this.path=t}}const r=new Set,a=Object.freeze({register(t){r.add(t)},unregister(t){r.delete(t)}}),l=/^([a-z][a-z0-9+\-.]*:)?\/\//i,c=Object.freeze({path:Object.freeze({get current(){return location.pathname+location.search},generateRoute(t,e,i={}){return(0,o.sH)(this,void 0,void 0,(function*(){let o="config"in t?t:s.Ix.find(t);for(;null!==o;){const t=yield o.config.generateRouteFromPath(e,i);if(null!==t)return t;o=o.parent}return null}))},push(t,e=!0){t&&l.test(t)?location.href=t:(history.pushState({},document.title,t),e&&c.path.trigger(t))},replace(t,e=!0){t&&l.test(t)?location.href=t:(history.replaceState({},document.title,t),e&&c.path.trigger(t))},trigger(t){const e=new n(t);for(const t of r)t.enqueue(e)}}),name:Object.freeze({generateRoute(t,e,i={}){return(0,o.sH)(this,void 0,void 0,(function*(){let o="config"in t?t:s.Ix.find(t);for(;null!==o;){const t=yield o.config.generateRouteFromName(e,i);if(null!==t)return t;o=o.parent}return null}))},push(t,e,i={},s=!0){return(0,o.sH)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(t,e,i);null!==o&&c.path.push(o,s)}))},replace(t,e,i={},s=!0){return(0,o.sH)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(t,e,i);null!==o&&c.path.replace(o,s)}))},trigger(t,e,i={}){return(0,o.sH)(this,void 0,void 0,(function*(){const o=yield c.name.generateRoute(t,e,i);null!==o&&c.path.trigger(o)}))}})});class h{constructor(){this.queue=[],this.promise=null,this.resolve=null}connect(){this.enqueue(new n(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((t=>this.resolve=t)),Promise.resolve().then((()=>this.tryDequeue()))),this.promise}enqueue(t){this.queue.push(t),this.tryDequeue()}tryDequeue(){if(null===this.resolve||0===this.queue.length)return;const t=this.queue[this.queue.length-1],e=this.resolve;this.queue.length=0,this.promise=null,this.resolve=null,e(t)}handleEvent(t){this.enqueue(new n(c.path.current))}}},5044:(t,e,i)=>{i.d(e,{C:()=>l});const o=encodeURIComponent,s=t=>o(t).replace("%24","$");function n(t,e,i){let r=[];if(null==e)return r;if(Array.isArray(e))for(let a=0,l=e.length;a<l;a++)if(i)r.push(`${s(t)}=${o(e[a])}`);else{const i=t+"["+("object"==typeof e[a]&&null!==e[a]?a:"")+"]";r=r.concat(n(i,e[a]))}else if("object"!=typeof e||i)r.push(`${s(t)}=${o(e)}`);else for(const i in e)r=r.concat(n(t+"["+i+"]",e[i]));return r}function r(t,e){return Array.isArray(t)?(t.push(e),t):void 0!==t?[t,e]:e}function a(t,e,i){let o=t;const s=e.length-1;for(let t=0;t<=s;t++){const n=""===e[t]?o.length:e[t];if(t<s){const i=o[n]&&"object"!=typeof o[n]?[o[n]]:o[n];o=o[n]=i||(isNaN(e[t+1])?{}:[])}else o=o[n]=i}}const l=Object.freeze({get current(){return location.search},build(t,e){let i=[];const o=Object.keys(t||{}).sort();for(let s=0,r=o.length;s<r;s++){const r=o[s];i=i.concat(n(r,t[r],e))}return 0===i.length?"":i.join("&")},separate(t){const e=t.indexOf("?");let i="";return-1!==e&&(i=t.substr(e+1,t.length),t=t.substr(0,e)),{path:t,queryString:i}},parse(t){const e={};if(!t||"string"!=typeof t)return e;let i=t;"?"===i.charAt(0)&&(i=i.substr(1));const o=i.replace(/\+/g," ").split("&");for(let t=0;t<o.length;t++){const i=o[t].split("="),s=decodeURIComponent(i[0]);if(!s)continue;let n=s.split("]["),l=n.length-1;if(/\[/.test(n[0])&&/\]$/.test(n[l])?(n[l]=n[l].replace(/\]$/,""),n=n.shift().split("[").concat(n),l=n.length-1):l=0,i.length>=2){const t=i[1]?decodeURIComponent(i[1]):"";l?a(e,n,t):e[s]=r(e[s],t)}else e[s]=!0}return e}})},8428:(t,e,i)=>{i.d(e,{Pt:()=>r,e9:()=>l,vX:()=>p,yI:()=>a});var o=i(7545),s=i(5044);const n=t=>t;class r{constructor(t,e,i){this.path=t,this.name=e,this.caseSensitive=i}}class a{constructor(t,e,i,o){this.route=t,this.paramNames=e,this.paramTypes=i,this.settings=o}get path(){return this.route.path}}class l{constructor(t,e,i,o){this.endpoint=t,this.params=e,this.typedParams=i,this.queryParams=o,this.allParams=Object.assign(Object.assign({},e),o),this.allTypedParams=Object.assign(Object.assign({},i),o)}get settings(){return this.endpoint.settings}}class c{constructor(t,e,i,o){var s;this.chars=t,this.states=e,this.skippedStates=i,this.result=o,this.head=e[e.length-1],this.endpoint=null===(s=this.head)||void 0===s?void 0:s.endpoint}advance(t){const{chars:e,states:i,skippedStates:o,result:s}=this;let n=null,r=0;const a=i[i.length-1];function l(h,d){if(h.isMatch(t)&&(1==++r?n=h:s.add(new c(e.concat(t),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 t=h.nextStates[0];if(!t.isSeparator)throw new Error("Not a separator");if(null!==t.nextStates)for(const e of t.nextStates)l(e,h)}}if(a.isDynamic&&l(a,null),null!==a.nextStates)for(const t of a.nextStates)l(t,null);null!==n&&(i.push(this.head=n),e.push(t),null!==n.endpoint&&(this.endpoint=n.endpoint)),0===r&&s.remove(this)}finalize(){!function t(e,i){const o=i.nextStates;if(null!==o)if(1===o.length&&null===o[0].segment)t(e,o[0]);else for(const i of o)if(i.isOptional&&null!==i.endpoint){if(e.push(i),null!==i.nextStates)for(const o of i.nextStates)t(e,o);break}}(this.skippedStates,this.head)}getParams(){const{states:t,chars:e,endpoint:i}=this,o={};for(const t of i.paramNames)o[t]=void 0;for(let i=0,s=t.length;i<s;++i){const s=t[i];if(s.isDynamic){const t=s.segment.name;void 0===o[t]?o[t]=e[i]:o[t]+=e[i]}}return o}compareTo(t){const e=this.states,i=t.states;for(let t=0,o=0,s=Math.max(e.length,i.length);t<s;++t){let s=e[t];if(void 0===s)return 1;let n=i[o];if(void 0===n)return-1;let r=s.segment,a=n.segment;if(null===r){if(null===a){++o;continue}if(void 0===(s=e[++t]))return 1;r=s.segment}else if(null===a){if(void 0===(n=i[++o]))return-1;a=n.segment}if(r.kind<a.kind)return 1;if(r.kind>a.kind)return-1;++o}const o=this.skippedStates,s=t.skippedStates,n=o.length,r=s.length;if(n<r)return 1;if(n>r)return-1;for(let t=0;t<n;++t){const e=o[t],i=s[t];if(e.length<i.length)return 1;if(e.length>i.length)return-1}return 0}}function h(t){return null!==t.head.endpoint}function d(t,e){return t.compareTo(e)}class u{constructor(t){this.candidates=[],this.candidates=[new c([""],[t],[],this)]}get isEmpty(){return 0===this.candidates.length}getSolution(){const t=this.candidates.filter(h);if(0===t.length)return null;for(const e of t)e.finalize();return t.sort(d),t[0]}add(t){this.candidates.push(t)}remove(t){this.candidates.splice(this.candidates.indexOf(t),1)}advance(t){const e=this.candidates.slice();for(const i of e)i.advance(t)}}class p{constructor(){this.names=new Map,this.paths=new Map,this.rootState=new g(null,null,"")}add(t,e){if(t instanceof Array)for(const i of t)this.$add(i,e);else this.$add(t,e)}$add(t,e){const i=t.path,o=new r(t.path,t.name||"",!0===t.caseSensitive),s=""===i?[""]:i.split("/").filter(m),n=[],l=[];let c=this.rootState;const h=[];for(const t of s)switch(c=c.append(null,"/"),t.charAt(0)){case"{":{const e=t.slice(1,-1).split(":").map((t=>t.trim()));2===e.length?l.push(e[1]):l.push("string");const i=e[0].endsWith("?"),o=i?e[0].slice(0,-1):e[0];n.push(o);const s=new v(o,i);h.push(s),c=s.appendTo(c);break}case"*":{const e=t.slice(1);n.push(e),l.push("string");const i=new b(e);h.push(i),c=i.appendTo(c);break}default:{const e=new f(t,o.caseSensitive);h.push(e),c=e.appendTo(c);break}}const d=new a(o,n,l,e||null);c.setEndpoint(d),this.paths.set(i,h),t.name&&this.names.set(t.name,h)}recognize(t,e={}){return(0,o.sH)(this,void 0,void 0,(function*(){const i=s.C.separate(t),o=s.C.parse(i.queryString);(t=decodeURI(i.path)).startsWith("/")||(t=`/${t}`),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1));const r=new u(this.rootState);for(let e=0,i=t.length;e<i;++e){const i=t.charAt(e);if(r.advance(i),r.isEmpty)return null}const a=r.getSolution();if(null===a)return null;const{endpoint:c}=a,h=c.paramNames,d=c.paramTypes,p=a.getParams(),g={};for(let t=0,i=h.length;t<i;++t){const i=h[t],o=e[d[t]]||n,s=p[i],r=yield o(s);g[i]=r}return new l(c,p,g,o)}))}generateFromName(t,e){return this.generate(this.names.get(t),e)}generateFromPath(t,e){return this.generate(this.paths.get(t),e)}generate(t,e){if(!t)return null;const i=Object.assign({},e),o={};let n="";for(let e=0,s=t.length;e<s;e++){const s=t[e],r=s.generate(i,o);if(null==r){if(s instanceof v&&!s.optional)throw new Error(`A value is required for route parameter '${s.name}'.`)}else n+="/",n+=r}"/"!==n.charAt(0)&&(n="/"+n);for(const t in o)delete i[t];const r=s.C.build(i);return n+=r?`?${r}`:"",n}}class g{constructor(t,e,i){switch(this.prevState=t,this.segment=e,this.value=i,this.nextStates=null,this.endpoint=null,null==e?void 0:e.kind){case 2:this.length=t.length+1,this.isSeparator=!1,this.isDynamic=!0,this.isOptional=e.optional;break;case 1:this.length=t.length+1,this.isSeparator=!1,this.isDynamic=!0,this.isOptional=!1;break;case 3:this.length=t.length+1,this.isSeparator=!1,this.isDynamic=!1,this.isOptional=!1;break;case void 0:this.length=null===t?0:t.length,this.isSeparator=!0,this.isDynamic=!1,this.isOptional=!1}}append(t,e){let i,o=this.nextStates;return null===o?(i=void 0,o=this.nextStates=[]):i=null===t?o.find((t=>t.value===e)):o.find((e=>{var i;return null===(i=e.segment)||void 0===i?void 0:i.equals(t)})),void 0===i&&o.push(i=new g(this,t,e)),i}setEndpoint(t){if(null!==this.endpoint)throw new Error(`Cannot add ambiguous route. The pattern '${t.route.path}' clashes with '${this.endpoint.route.path}'`);this.endpoint=t,this.isOptional&&(this.prevState.setEndpoint(t),this.prevState.isSeparator&&null!==this.prevState.prevState&&this.prevState.prevState.setEndpoint(t))}isMatch(t){const e=this.segment;switch(null==e?void 0:e.kind){case 2:return!this.value.includes(t);case 1:return!0;case 3:case void 0:return this.value.includes(t)}}}function m(t){return t.length>0}class f{constructor(t,e){this.value=t,this.caseSensitive=e}get kind(){return 3}appendTo(t){const{value:e,value:{length:i}}=this;if(this.caseSensitive)for(let o=0;o<i;++o)t=t.append(this,e.charAt(o));else for(let o=0;o<i;++o){const i=e.charAt(o);t=t.append(this,i.toUpperCase()+i.toLowerCase())}return t}generate(){return this.value}equals(t){return 3===t.kind&&t.caseSensitive===this.caseSensitive&&t.value===this.value}}class v{constructor(t,e){this.name=t,this.optional=e}get kind(){return 2}appendTo(t){return t=t.append(this,"/")}generate(t,e){return e[this.name]=!0,t[this.name]}equals(t){return 2===t.kind&&t.optional===this.optional&&t.name===this.name}}class b{constructor(t){this.name=t}get kind(){return 1}appendTo(t){return t=t.append(this,"")}generate(t,e){return e[this.name]=!0,t[this.name]}equals(t){return 1===t.kind&&t.name===this.name}}},3479:(t,e,i)=>{i.d(e,{$Q:()=>u,Ix:()=>d});var o=i(7545),s=i(1440),n=i(6132),r=i(751),a=i(3523);const l="$router";function c(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}function h(t){let e=t;for(;e=c(e);)if(l in e)return e[l];return null}const d=Object.freeze({getOrCreateFor(t){const e=t[l];return void 0!==e?e:t[l]=new p(t)},find:t=>t[l]||h(t),from(t){class e extends t{constructor(){super(),d.getOrCreateFor(this)}get config(){return this[l].config}set config(t){this[l].config=t}}const i=e.prototype;if("connectedCallback"in i){const t=i.connectedCallback;i.connectedCallback=function(){t.call(this),this[l].connect()}}else i.connectedCallback=function(){this[l].connect()};if("disconnectedCallback"in i){const t=i.disconnectedCallback;i.disconnectedCallback=function(){t.call(this),this[l].disconnect()}}else i.disconnectedCallback=function(){this[l].disconnect()};return e}});function u(t){return t instanceof s.L}class p{constructor(t){this.host=t,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=t=>(0,o.sH)(this,void 0,void 0,(function*(){const e=this.config.createNavigationProcess();yield e.run(this,t),this.navigationQueue.receive().then(this.onNavigationMessage)})),t[l]=this}get config(){return this.routerConfig}set config(t){this.routerConfig=t,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(t){var e;if(this.route&&this.route.endpoint.path===t.endpoint.path){const i=null==t?void 0:t.allParams,o=null===(e=this.route)||void 0===e?void 0:e.allParams;if(JSON.stringify(o)===JSON.stringify(i))return!1}return!0}beginRender(t,e){return(0,o.sH)(this,void 0,void 0,(function*(){return this.newRoute=t,this.newView=yield e.createView(),this.newView.bind(t.allTypedParams,a.Hz.create(this)),this.newView.appendTo(this.host),yield e.transition.begin(this.host,this.view,this.newView),{commit:this.renderOperationCommit.bind(this,e.layout,e.transition),rollback:this.renderOperationRollback.bind(this,e.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(t){this.contributors.add(t)}removeContributor(t){this.contributors.delete(t)}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(t,e){return(0,o.sH)(this,void 0,void 0,(function*(){yield t.beforeCommit(this.host),yield e.commit(this.host,this.view,this.newView),yield t.afterCommit(this.host),null!==this.view&&this.view.dispose(),this.route=this.newRoute,this.view=this.newView,this.newRoute=null,this.newView=null}))}renderOperationRollback(t){return(0,o.sH)(this,void 0,void 0,(function*(){null!==this.newView&&(yield t.rollback(this.host,this.view,this.newView),this.newView.dispose(),this.newRoute=null,this.newView=null)}))}navigate(t){return(0,o.sH)(this,void 0,void 0,(function*(){yield this.tunnel(t)}))}leave(t){return(0,o.sH)(this,void 0,void 0,(function*(){if(yield this.tunnel(t),!t.canceled){const e=this.contributors;this.contributors=new Set,t.onCancel((()=>this.contributors=e))}}))}construct(t){return(0,o.sH)(this,void 0,void 0,(function*(){if(null!==this.parent){const e=t.route.allParams[r.N]||"",i=yield this.config.recognizeRoute(e);if(null===i){return this.config.createEventSink().onUnhandledNavigationMessage(this,new n.kg(e)),void t.cancel()}this.childRoute=i.route,this.childCommandContributor=yield i.command.createContributor(this,i.route)}yield this.tunnel(t)}))}enter(t){return(0,o.sH)(this,void 0,void 0,(function*(){yield this.tunnel(t)}))}commit(t){return(0,o.sH)(this,void 0,void 0,(function*(){yield this.tunnel(t)}))}tunnel(t){return(0,o.sH)(this,void 0,void 0,(function*(){const e=this.childRoute,i=this.childCommandContributor;if(e&&i&&(yield t.evaluateContributor(i,e,this)),t.canceled)return;const o=[...this.config.findContributors(t.name),...Array.from(this.contributors)];for(const e of o)if(yield t.evaluateContributor(e,void 0,this),t.canceled)return}))}}},751:(t,e,i)=>{i.d(e,{s:()=>C,N:()=>b});var o=i(7545),s=i(8428),n=i(5062),r=i(412),a=i(9375),l=i(3523),c=i(6132),h=i(7820);class d{createContributor(){return(0,o.sH)(this,void 0,void 0,(function*(){return{navigate(t){return(0,o.sH)(this,void 0,void 0,(function*(){t.cancel()}))}}}))}}class u{constructor(t){this.redirect=t}createContributor(){return(0,o.sH)(this,void 0,void 0,(function*(){const t=this.redirect;return{navigate(e){return(0,o.sH)(this,void 0,void 0,(function*(){const i=e.router.config,s=(yield i.generateRouteFromName(t,e.route.allParams))||(yield i.generateRouteFromPath(t,e.route.allParams));if(null===s)throw new Error(`Invalid redirect. Name or path not found: ${t}`);e.cancel((()=>(0,o.sH)(this,void 0,void 0,(function*(){return c.qh.path.replace(s)}))))}))}}}))}}function p(t){return n.q`<${t} ${(0,h.c)()}></${t}>`}function g(t){const e=document.createDocumentFragment();e.appendChild(t);const i=new r.N(e,[(0,h.c)().createBehavior(t)]);return{create:()=>i}}class m{constructor(t,e,i){this.router=t,this.route=e,this.command=i}construct(t){return(0,o.sH)(this,void 0,void 0,(function*(){this.router.shouldRender(this.route)?(this.operation=yield this.router.beginRender(this.route,this.command),t.onCancel((()=>this.operation.rollback()))):t.cancel()}))}commit(t){return(0,o.sH)(this,void 0,void 0,(function*(){yield this.operation.commit(),this.command.title&&t.setTitle(this.command.title)}))}}class f{constructor(t,e){this.owner=t,this.createView=e,this._layout=null,this._transition=null,this.title=""}get transition(){return this._transition||this.owner.defaultTransition}set transition(t){this._transition=t}get layout(){return this._layout||this.owner.defaultLayout}set layout(t){this._layout=t}createContributor(t,e){return(0,o.sH)(this,void 0,void 0,(function*(){return new m(t,e,this)}))}static fromDefinition(t,e){let i;i="template"in e?()=>(0,o.sH)(this,void 0,void 0,(function*(){let t=e.template;return"function"==typeof t&&(t=yield t()),t.create()})):()=>(0,o.sH)(this,void 0,void 0,(function*(){let t=e.element,i=null;if(e.factory)i=e.factory;else if("function"==typeof t){let e=a.I.forType(t);if(e)i=p(e.name);else if(t=yield t(),"string"==typeof t)i=p(t);else if(t instanceof HTMLElement)i=g(t);else{if(e=a.I.forType(t),!e)throw new Error("Invalid value for element in route config.");i=p(e.name)}}else t instanceof HTMLElement?e.factory=i=g(t):e.factory=i=p(t);return i.create()}));const s=new f(t,i);return e.layout&&(e.layout instanceof n.k?s.layout=new l.Bj(e.layout):s.layout=e.layout),e.transition&&(s.transition=e.transition),e.title&&(s.title=e.title),s}}var v=i(5044);const b="fast-child-route";function y(t,e){return"command"in e?e.command:"redirect"in e?new u(e.redirect):f.fromDefinition(t,e)}const x=t=>{if(null==t)return!1;switch(t.toLowerCase().trim()){case"true":case"yes":case"1":return!0;default:return!1}},$={number:t=>void 0===t?NaN:parseFloat(t),float:t=>void 0===t?NaN:parseFloat(t),int:t=>void 0===t?NaN:parseInt(t),integer:t=>void 0===t?NaN:parseInt(t),Date:t=>void 0===t?new Date(Date.now()):new Date(t),boolean:x,bool:x};class C{constructor(t){this.owner=t,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(t){"string"==typeof t&&(t={path:t}),this.pathToCommand.set(t.path,new d),this.recognizer.add(t,t.settings)}map(...t){for(const e of t){if("children"in e){const t=this.owner.createTitleBuilder(),i=e.children.map((i=>{const o=Object.assign(Object.assign(Object.assign({},e),i),{path:`${e.path}/${i.path}`});if("title"in e||"title"in i){const s=e.title||"",n=i.title||"";o.title=t.joinTitles(s,n)}if("name"in i){const t=e.name?e.name+"/":"";o.name=t+i.name}return o.children===e.children&&delete o.children,o}));this.map(...i);continue}let t;if(t="command"in e?e.command:"redirect"in e?new u(e.redirect):f.fromDefinition(this.owner,e),this.pathToCommand.set(e.path,t),this.recognizer.add(e,e.settings),"childRouters"in e&&e.childRouters){const i=Object.assign(Object.assign({},e),{path:e.path+`/*${b}`});this.pathToCommand.set(i.path,t),this.recognizer.add(i,i.settings)}}}fallback(t){const e=this.owner;this.fallbackCommand="function"==typeof t?{createContributor(i,s){return(0,o.sH)(this,void 0,void 0,(function*(){const o=yield t();return y(e,o).createContributor(i,s)}))}}:y(e,t)}converter(t,e){let i;i="convert"in e?e.convert.bind(e):e.prototype&&"convert"in e.prototype?t=>this.owner.construct(e).convert(t):e,this.converters[t]=i}recognize(t){return(0,o.sH)(this,void 0,void 0,(function*(){const e=yield this.recognizer.recognize(t,this.aggregateConverters());if(null!==e)return{route:e,command:this.pathToCommand.get(e.endpoint.path)};if(null!==this.fallbackCommand){const e=v.C.separate(t),i=v.C.parse(e.queryString);return{route:new s.e9(new s.yI(new s.Pt("*","",!1),[],[],this.fallbackSettings),{},{},i),command:this.fallbackCommand}}return null}))}generateFromName(t,e){return this.recognizer.generateFromName(t,e)}generateFromPath(t,e){return this.recognizer.generateFromPath(t,e)}aggregateConverters(){return null===this.owner.parent?Object.assign(Object.assign({},$),this.converters):Object.assign(Object.assign({},this.owner.parent.routes.aggregateConverters()),this.converters)}}},3523:(t,e,i)=>{i.d(e,{Bj:()=>h,Hz:()=>l,PE:()=>d,eB:()=>c});var o=i(7545),s=i(6453),n=i(2761),r=i(5062),a=i(3479);const l=Object.freeze({create:t=>Object.create(s.Fj,{router:{value:t}})}),c=Object.freeze({default:Object.freeze({begin(t,e,i){return(0,o.sH)(this,void 0,void 0,(function*(){}))},rollback(t,e,i){return(0,o.sH)(this,void 0,void 0,(function*(){}))},commit(t,e,i){return(0,o.sH)(this,void 0,void 0,(function*(){}))}})});class h{constructor(t=null,e=null,i=!0){this.template=t,this.runBeforeCommit=i,this.styles=null==e?null:Array.isArray(e)?n.vv.create(e):e instanceof n.vv?e:n.vv.create([e])}beforeCommit(t){return(0,o.sH)(this,void 0,void 0,(function*(){this.runBeforeCommit&&this.apply(t)}))}afterCommit(t){return(0,o.sH)(this,void 0,void 0,(function*(){this.runBeforeCommit||this.apply(t)}))}apply(t){(0,a.$Q)(t)&&(t.$fastController.template!==this.template&&(t.$fastController.template=this.template),t.$fastController.styles!==this.styles&&(t.$fastController.styles=this.styles))}}const d=Object.freeze({default:new h(r.q`
|
|
6400
6400
|
<slot></slot>
|
|
6401
6401
|
`)})},7733:(t,e,i)=>{i.d(e,{t:()=>o});const o={horizontal:"horizontal",vertical:"vertical"}},1679:(t,e,i)=>{function o(...t){return t.reduce(((t,e)=>{const i=t.length?" ":"",s=Array.isArray(e)&&e[1]?o.call(null,e[0]):"function"==typeof e?e():"string"==typeof e?e:"";return s.length?t+i+s:t}),"")}i.d(e,{x:()=>o})},8442:(t,e,i)=>{i.d(e,{JL:()=>n,UA:()=>a,sb:()=>s});var o=i(7445);function s(...t){return t.every((t=>t instanceof HTMLElement))}function n(t,e){if(!t||!e||!s(t))return;return Array.from(t.querySelectorAll(e)).filter((t=>null!==t.offsetParent))}let r;function a(){if("boolean"==typeof r)return r;if(!(0,o.S)())return r=!1,r;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),r=!0}catch(t){r=!1}finally{document.head.removeChild(t)}return r}},5617:(t,e,i)=>{i.d(e,{Gh:()=>r,b4:()=>n,bt:()=>o,ks:()=>s,oQ:()=>l,zs:()=>a});const o="focus",s="focusin",n="focusout",r="keydown",a="resize",l="scroll"},6526:(t,e,i)=>{var o;i.d(e,{Ac:()=>u,De:()=>b,F9:()=>c,FM:()=>d,HX:()=>s,I5:()=>a,Is:()=>y,J9:()=>f,Mm:()=>l,R9:()=>v,Tg:()=>h,bb:()=>r,f_:()=>p,gG:()=>m,kT:()=>n,oK:()=>g}),function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(o||(o={}));const s="ArrowDown",n="ArrowLeft",r="ArrowRight",a="ArrowUp",l="Enter",c="Escape",h="Home",d="End",u="F2",p="PageDown",g="PageUp",m=" ",f="Tab",v="Backspace",b="Delete",y={ArrowDown:s,ArrowLeft:n,ArrowRight:r,ArrowUp:a}},5109:(t,e,i)=>{var o;i.d(e,{O:()=>o}),function(t){t.ltr="ltr",t.rtl="rtl"}(o||(o={}))},4120:(t,e,i)=>{function o(t,e,i){return i<t?e:i>e?t:i}function s(t,e,i){return Math.min(Math.max(i,t),e)}function n(t,e,i=0){return[e,i]=[e,i].sort(((t,e)=>t-e)),e<=t&&t<i}i.d(e,{AB:()=>s,Vf:()=>o,r4:()=>n})},4324:(t,e,i)=>{i.d(e,{NF:()=>s,fL:()=>n});let o=0;function s(t=""){return`${t}${o++}`}function n(t){let e=`${t}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(/^\s+|\s+$|\s+(?=\s)/g,"").replace(new RegExp(/\s+(.)(\w*)/,"g"),((t,e,i)=>`${e.toUpperCase()+i.toLowerCase()}`)).replace(new RegExp(/\w/),(t=>t.toUpperCase())),i=0;for(let t=0;t<e.length;t++){const o=e.charAt(t);if(o==o.toLowerCase()){i=t;break}}return i>1&&(e=`${e.charAt(0).toUpperCase()}${e.slice(1,i-1).toLowerCase()}`+e.slice(i-1)),e}},5090:(t,e,i)=>{var o;i.d(e,{A:()=>o}),function(t){t.Canvas="Canvas",t.CanvasText="CanvasText",t.LinkText="LinkText",t.VisitedText="VisitedText",t.ActiveText="ActiveText",t.ButtonFace="ButtonFace",t.ButtonText="ButtonText",t.Field="Field",t.FieldText="FieldText",t.Highlight="Highlight",t.HighlightText="HighlightText",t.GrayText="GrayText"}(o||(o={}))}}]);
|
|
6402
|
-
//# sourceMappingURL=npm.microsoft.
|
|
6402
|
+
//# sourceMappingURL=npm.microsoft.87df0a2f395112d761de532d857ae98c.js.map
|