@shortfuse/materialdesignweb 0.11.2 → 0.11.4
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/api/custom-elements.json +50 -40
- package/api/html.html-data.json +1 -1
- package/components/Input.js +38 -10
- package/components/TextArea.js +9 -3
- package/dist/index.min.js +15 -15
- package/dist/index.min.js.map +3 -3
- package/mixins/TextFieldMixin.js +4 -0
- package/package.json +5 -3
- package/types/components/Input.d.ts +2 -2
- package/types/components/Input.d.ts.map +1 -1
- package/types/components/TextArea.d.ts +2 -0
- package/types/components/TextArea.d.ts.map +1 -1
- package/types/mixins/TextFieldMixin.d.ts.map +1 -1
package/dist/index.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var f2e635f4_1f55_4b3a_8064_72d0aa34d496=(()=>{var Yt=Object.defineProperty;var Uo=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var qo=Object.prototype.hasOwnProperty;var mt=(t,e)=>{for(var i in e)Yt(t,i,{get:e[i],enumerable:!0})},Go=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Xo(e))!qo.call(t,o)&&o!==i&&Yt(t,o,{get:()=>e[o],enumerable:!(r=Uo(e,o))||r.enumerable});return t};var Ko=t=>Go(Yt({},"__esModule",{value:!0}),t);var Kn={};mt(Kn,{AriaReflectorMixin:()=>B,AriaToolbarMixin:()=>Ne,Badge:()=>Tr,Body:()=>Lr,BottomAppBar:()=>Pr,BottomSheet:()=>Vr,Box:()=>j,Button:()=>_e,Card:()=>Wr,Checkbox:()=>Xr,CheckboxIcon:()=>Ur,Chip:()=>Pt,Composition:()=>Ee,ControlMixin:()=>ge,CustomElement:()=>f,DensityMixin:()=>G,Dialog:()=>Zr,Display:()=>We,Divider:()=>qr,ElevationMixin:()=>U,Fab:()=>to,FabContainer:()=>io,FilterChip:()=>ro,FlexboxMixin:()=>de,FormAssociatedMixin:()=>pe,Grid:()=>oo,Headline:()=>no,Icon:()=>$r,IconButton:()=>so,Input:()=>ao,InputChip:()=>lo,InputMixin:()=>K,KeyboardNavMixin:()=>Z,Label:()=>co,List:()=>Nt,ListItem:()=>Dt,ListOption:()=>me,Listbox:()=>ho,Menu:()=>_o,MenuItem:()=>fo,NavBar:()=>bo,NavBarItem:()=>go,NavDrawer:()=>wo,NavDrawerItem:()=>xo,NavItem:()=>ue,NavRail:()=>vo,NavRailItem:()=>yo,Page:()=>ko,Pane:()=>So,Popup:()=>Ft,Progress:()=>Co,RTLObserverMixin:()=>ct,Radio:()=>zo,RadioIcon:()=>mo,ResizeObserverMixin:()=>Y,RippleMixin:()=>Q,Root:()=>Eo,ScrollListenerMixin:()=>ye,Search:()=>Mo,SegmentedButton:()=>$t,SegmentedButtonGroup:()=>Ao,Select:()=>Io,Shape:()=>po,ShapeMixin:()=>E,SideSheet:()=>Ue,Slider:()=>Po,Snackbar:()=>Ro,SnackbarContainer:()=>Oo,StateMixin:()=>N,Surface:()=>Tt,Switch:()=>No,SwitchIcon:()=>Fo,Tab:()=>Ie,TabContent:()=>Vo,TabList:()=>Do,TabPanel:()=>Bt,TextArea:()=>$o,TextFieldMixin:()=>xe,ThemableMixin:()=>x,Title:()=>Ho,Tooltip:()=>eo,TooltipTriggerMixin:()=>Ve,TopAppBar:()=>Vt,TouchTargetMixin:()=>we,jsonMergePatch:()=>ki,svgAlias:()=>Vi,theme:()=>pi});var pi={};mt(pi,{PALETTES:()=>Be,TYPE_STYLES:()=>oi,generateColorCSS:()=>gt,generateResetCSS:()=>ai,generateShapeCSS:()=>li,generateThemeCSS:()=>di,generateTypographyCSS:()=>ni,generateTypographyGlobalCSS:()=>si,setupTheme:()=>xn,themeOptionsFromSearchParams:()=>ci});var qe=new Map([["black","#000000"],["silver","#c0c0c0"],["gray","#808080"],["white","#ffffff"],["maroon","#800000"],["red","#ff0000"],["purple","#800080"],["fuchsia","#ff00ff"],["green","#008000"],["lime","#00ff00"],["olive","#808000"],["yellow","#ffff00"],["navy","#000080"],["blue","#0000ff"],["teal","#008080"],["aqua","#00ffff"],["orange","#ffa500"],["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["blanchedalmond","#ffebcd"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["gold","#ffd700"],["goldenrod","#daa520"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavender","#e6e6fa"],["lavenderblush","#fff0f5"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["oldlace","#fdf5e6"],["olivedrab","#6b8e23"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["whitesmoke","#f5f5f5"],["yellowgreen","#9acd32"],["rebeccapurple","#663399"]]);var Qo="M0 12A12 12 0 1012 0 12 12 0 000 12Z",Jo="M 0 12 12 0 24 12 12 24 Z",Zo="M12 24C17.2583 24 20.1815 24 22.0908 22.0908 24 20.1815 24 17.2583 24 12 24 6.7417 24 3.8185 22.0908 1.9092 20.1815-0 17.2583-0 12-0 6.7417-0 3.8185-0 1.9092 1.9092-0 3.8185-0 6.7417-0 12-0 17.2583-0 20.1815 1.9092 22.0908 3.8185 24 6.7417 24 12 24Z";var ut={size:{extraSmall:"4px",small:"8px",medium:"12px",large:"16px",extraLarge:"28px",full:"32px"},mask:Qo,convex:!1},Zn={...ut,size:{extraSmall:"4px",small:"8px",medium:"12px",large:"16px",extraLarge:"28px",full:"32px"},mask:Jo},es={...ut,mask:Zo};var Qi={face:{brand:'"Roboto Medium", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", Helvetica, "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',plain:'"Roboto Regular", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", Helvetica, "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',weight:{regular:400,medium:500}},scale:{display:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:64,fontSize:57,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:52,fontSize:45,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:44,fontSize:36,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"}},headline:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:40,fontSize:32,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:36,fontSize:28,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:32,fontSize:24,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"}},title:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:28,fontSize:22,letterSpacing:0,weight:"var(--mdw-typeface__weight-medium)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:24,fontSize:16,letterSpacing:.15,weight:"var(--mdw-typeface__weight-medium)"},small:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.1,weight:"var(--mdw-typeface__weight-medium)"}},label:{large:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.1,weight:"var(--mdw-typeface__weight-medium)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:16,fontSize:12,letterSpacing:.5,weight:"var(--mdw-typeface__weight-medium)"},small:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:16,fontSize:11,letterSpacing:.5,weight:"var(--mdw-typeface__weight-medium)"}},body:{large:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:24,fontSize:16,letterSpacing:.5,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.25,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:16,fontSize:12,letterSpacing:.4,weight:"var(--mdw-typeface__weight-regular)"}}}};function X(t){return t<0?-1:t===0?0:1}function Wt(t,e,i){return(1-i)*t+i*e}function Ji(t,e,i){return i<t?t:i>e?e:i}function Ge(t){return t%=360,t<0&&(t+=360),t}function Zi(t,e){return Ge(e-t)<=180?1:-1}function er(t,e){return 180-Math.abs(Math.abs(t-e)-180)}function Ke(t,e){let i=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],r=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],o=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return[i,r,o]}var en=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],tn=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],rn=[95.047,100,108.883];function Ut(t,e,i){return(255<<24|(t&255)<<16|(e&255)<<8|i&255)>>>0}function Xt(t){let e=Le(t[0]),i=Le(t[1]),r=Le(t[2]);return Ut(e,i,r)}function qt(t){return t>>16&255}function Gt(t){return t>>8&255}function Kt(t){return t&255}function tr(t,e,i){let r=tn,o=r[0][0]*t+r[0][1]*e+r[0][2]*i,n=r[1][0]*t+r[1][1]*e+r[1][2]*i,s=r[2][0]*t+r[2][1]*e+r[2][2]*i,l=Le(o),a=Le(n),c=Le(s);return Ut(l,a,c)}function on(t){let e=Te(qt(t)),i=Te(Gt(t)),r=Te(Kt(t));return Ke([e,i,r],en)}function ir(t){let e=$e(t),i=Le(e);return Ut(i,i,i)}function Qt(t){let e=on(t)[1];return 116*nr(e/100)-16}function $e(t){return 100*nn((t+16)/116)}function rr(t){return nr(t/100)*116-16}function Te(t){let e=t/255;return e<=.040449936?e/12.92*100:((e+.055)/1.055)**2.4*100}function Le(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,Ji(0,255,Math.round(i*255))}function or(){return rn}function nr(t){let e=.008856451679035631,i=24389/27;return t>e?t**(1/3):(i*t+16)/116}function nn(t){let e=.008856451679035631,i=24389/27,r=t*t*t;return r>e?r:(116*t-16)/i}var ne=class t{static DEFAULT=t.make();static make(e=or(),i=200/Math.PI*$e(50)/100,r=50,o=2,n=!1){let s=e,l=s[0]*.401288+s[1]*.650173+s[2]*-.051461,a=s[0]*-.250268+s[1]*1.204414+s[2]*.045854,c=s[0]*-.002079+s[1]*.048952+s[2]*.953127,d=.8+o/10,m=d>=.9?Wt(.59,.69,(d-.9)*10):Wt(.525,.59,(d-.8)*10),u=n?1:d*(1-1/3.6*Math.exp((-i-42)/92));u=u>1?1:u<0?0:u;let g=d,h=[u*(100/l)+1-u,u*(100/a)+1-u,u*(100/c)+1-u],p=1/(5*i+1),_=p*p*p*p,b=1-_,w=_*i+.1*b*b*Math.cbrt(5*i),y=$e(r)/e[1],S=1.48+Math.sqrt(y),C=.725/y**.2,T=C,M=[(w*h[0]*l/100)**.42,(w*h[1]*a/100)**.42,(w*h[2]*c/100)**.42],z=[400*M[0]/(M[0]+27.13),400*M[1]/(M[1]+27.13),400*M[2]/(M[2]+27.13)],v=(2*z[0]+z[1]+.05*z[2])*C;return new t(y,v,C,T,m,g,h,w,w**.25,S)}constructor(e,i,r,o,n,s,l,a,c,d){this.n=e,this.aw=i,this.nbb=r,this.ncb=o,this.c=n,this.nc=s,this.rgbD=l,this.fl=a,this.fLRoot=c,this.z=d}};var Se=class t{static fromInt(e){return t.fromIntInViewingConditions(e,ne.DEFAULT)}static fromIntInViewingConditions(e,i){let r=(e&16711680)>>16,o=(e&65280)>>8,n=e&255,s=Te(r),l=Te(o),a=Te(n),c=.41233895*s+.35762064*l+.18051042*a,d=.2126*s+.7152*l+.0722*a,m=.01932141*s+.11916382*l+.95034478*a,u=.401288*c+.650173*d-.051461*m,g=-.250268*c+1.204414*d+.045854*m,h=-.002079*c+.048952*d+.953127*m,p=i.rgbD[0]*u,_=i.rgbD[1]*g,b=i.rgbD[2]*h,w=(i.fl*Math.abs(p)/100)**.42,y=(i.fl*Math.abs(_)/100)**.42,S=(i.fl*Math.abs(b)/100)**.42,C=X(p)*400*w/(w+27.13),T=X(_)*400*y/(y+27.13),M=X(b)*400*S/(S+27.13),z=(11*C+-12*T+M)/11,v=(C+T-2*M)/9,k=(20*C+20*T+21*M)/20,D=(40*C+20*T+M)/20,P=Math.atan2(v,z)*180/Math.PI,V=P<0?P+360:P>=360?P-360:P,$=V*Math.PI/180,O=100*(D*i.nbb/i.aw)**(i.c*i.z),A=4/i.c*Math.sqrt(O/100)*(i.aw+4)*i.fLRoot,H=V<20.14?V+360:V,oe=.25*(Math.cos(H*Math.PI/180+2)+3.8),pt=(5e4/13*oe*i.nc*i.ncb*Math.sqrt(z*z+v*v)/(k+.305))**.9*(1.64-.29**i.n)**.73,qi=pt*Math.sqrt(O/100),Gi=qi*i.fLRoot,Bo=50*Math.sqrt(pt*i.c/(i.aw+4)),jo=(1+100*.007)*O/(1+.007*O),Ki=1/.0228*Math.log(1+.0228*Gi),Yo=Ki*Math.cos($),Wo=Ki*Math.sin($);return new t(V,qi,O,A,Gi,Bo,jo,Yo,Wo)}static fromJch(e,i,r){return t.fromJchInViewingConditions(e,i,r,ne.DEFAULT)}static fromJchInViewingConditions(e,i,r,o){let n=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,s=i*o.fLRoot,l=i/Math.sqrt(e/100),a=50*Math.sqrt(l*o.c/(o.aw+4)),c=r*Math.PI/180,d=(1+100*.007)*e/(1+.007*e),m=1/.0228*Math.log(1+.0228*s),u=m*Math.cos(c),g=m*Math.sin(c);return new t(r,i,e,n,s,a,d,u,g)}static fromUcs(e,i,r){return t.fromUcsInViewingConditions(e,i,r,ne.DEFAULT)}static fromUcsInViewingConditions(e,i,r,o){let n=i,s=r,l=Math.sqrt(n*n+s*s),c=(Math.exp(l*.0228)-1)/.0228/o.fLRoot,d=Math.atan2(s,n)*(180/Math.PI);d<0&&(d+=360);let m=e/(1-(e-100)*.007);return t.fromJchInViewingConditions(m,c,d,o)}static fromXyzInViewingConditions(e,i,r,o){let n=.401288*e+.650173*i-.051461*r,s=-.250268*e+1.204414*i+.045854*r,l=-.002079*e+.048952*i+.953127*r,a=o.rgbD[0]*n,c=o.rgbD[1]*s,d=o.rgbD[2]*l,m=(o.fl*Math.abs(a)/100)**.42,u=(o.fl*Math.abs(c)/100)**.42,g=(o.fl*Math.abs(d)/100)**.42,h=X(a)*400*m/(m+27.13),p=X(c)*400*u/(u+27.13),_=X(d)*400*g/(g+27.13),b=(11*h+-12*p+_)/11,w=(h+p-2*_)/9,y=(20*h+20*p+21*_)/20,S=(40*h+20*p+_)/20,T=Math.atan2(w,b)*180/Math.PI,M=T<0?T+360:T>=360?T-360:T,z=M*Math.PI/180,k=100*(S*o.nbb/o.aw)**(o.c*o.z),D=4/o.c*Math.sqrt(k/100)*(o.aw+4)*o.fLRoot,R=M<20.14?M+360:M,P=1/4*(Math.cos(R*Math.PI/180+2)+3.8),re=(5e4/13*P*o.nc*o.ncb*Math.sqrt(b*b+w*w)/(y+.305))**.9*(1.64-.29**o.n)**.73,O=re*Math.sqrt(k/100),A=O*o.fLRoot,H=50*Math.sqrt(re*o.c/(o.aw+4)),oe=(1+100*.007)*k/(1+.007*k),ke=Math.log(1+.0228*A)/.0228,dt=ke*Math.cos(z),pt=ke*Math.sin(z);return new t(M,O,k,D,A,H,oe,dt,pt)}constructor(e,i,r,o,n,s,l,a,c){this.hue=e,this.chroma=i,this.j=r,this.q=o,this.m=n,this.s=s,this.jstar=l,this.astar=a,this.bstar=c}distance(e){let i=this.jstar-e.jstar,r=this.astar-e.astar,o=this.bstar-e.bstar;return 1.41*Math.sqrt(i*i+r*r+o*o)**.63}toInt(){return this.viewed(ne.DEFAULT)}viewed(e){let r=((this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100))/(1.64-.29**e.n)**.73)**(1/.9),o=this.hue*Math.PI/180,n=.25*(Math.cos(o+2)+3.8),s=e.aw*(this.j/100)**(1/e.c/e.z),l=n*(5e4/13)*e.nc*e.ncb,a=s/e.nbb,c=Math.sin(o),d=Math.cos(o),m=23*(a+.305)*r/(23*l+11*r*d+108*r*c),u=m*d,g=m*c,h=(460*a+451*u+288*g)/1403,p=(460*a-891*u-261*g)/1403,_=(460*a-220*u-6300*g)/1403,b=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),w=X(h)*(100/e.fl)*b**(1/.42),y=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),S=X(p)*(100/e.fl)*y**(1/.42),C=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),T=X(_)*(100/e.fl)*C**(1/.42),M=w/e.rgbD[0],z=S/e.rgbD[1],v=T/e.rgbD[2],k=1.86206786*M-1.01125463*z+.14918677*v,D=.38752654*M+.62144744*z-.00897398*v,R=-.0158415*M-.03412294*z+1.04996444*v;return tr(k,D,R)}xyzInViewingConditions(e){let r=((this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100))/(1.64-.29**e.n)**.73)**(1/.9),o=this.hue*Math.PI/180,n=.25*(Math.cos(o+2)+3.8),s=e.aw*(this.j/100)**(1/e.c/e.z),l=n*(5e4/13)*e.nc*e.ncb,a=s/e.nbb,c=Math.sin(o),d=Math.cos(o),m=23*(a+.305)*r/(23*l+11*r*d+108*r*c),u=m*d,g=m*c,h=(460*a+451*u+288*g)/1403,p=(460*a-891*u-261*g)/1403,_=(460*a-220*u-6300*g)/1403,b=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),w=X(h)*(100/e.fl)*b**(1/.42),y=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),S=X(p)*(100/e.fl)*y**(1/.42),C=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),T=X(_)*(100/e.fl)*C**(1/.42),M=w/e.rgbD[0],z=S/e.rgbD[1],v=T/e.rgbD[2],k=1.86206786*M-1.01125463*z+.14918677*v,D=.38752654*M+.62144744*z-.00897398*v,R=-.0158415*M-.03412294*z+1.04996444*v;return[k,D,R]}};var sn=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],an=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],He=[.2126,.7152,.0722],ln=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];function sr(t){return(t+Math.PI*8)%(Math.PI*2)}function ht(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,i*255}function Jt(t){let e=Math.abs(t)**.42;return X(t)*400*e/(e+27.13)}function ti(t){let e=Ke(t,sn),i=Jt(e[0]),r=Jt(e[1]),o=Jt(e[2]),n=(11*i+-12*r+o)/11,s=(i+r-2*o)/9;return Math.atan2(s,n)}function ii(t,e,i){let r=sr(e-t),o=sr(i-t);return r<o}function cn(t,e,i){return(e-t)/(i-t)}function dn(t,e,i){return[t[0]+(i[0]-t[0])*e,t[1]+(i[1]-t[1])*e,t[2]+(i[2]-t[2])*e]}function pn(t,e,i,r){let o=cn(t[r],e,i[r]);return dn(t,o,i)}function Zt(t){return t>=0&&t<=100}function mn(t,e){let i=He[0],r=He[1],o=He[2],n=e%4<=1?0:100,s=e%2===0?0:100;if(e<4){let d=n,m=s,u=(t-d*r-m*o)/i;return Zt(u)?[u,d,m]:[-1,-1,-1]}if(e<8){let d=n,m=s,u=(t-m*i-d*o)/r;return Zt(u)?[m,u,d]:[-1,-1,-1]}let l=n,a=s,c=(t-l*i-a*r)/o;return Zt(c)?[l,a,c]:[-1,-1,-1]}function un(t,e){let i=[-1,-1,-1],r=i,o=0,n=0,s=!1,l=!0;for(let a=0;a<12;a++){let c=mn(t,a);if(c[0]<0)continue;let d=ti(c);if(!s){i=c,r=c,o=d,n=d,s=!0;continue}(l||ii(o,d,n))&&(l=!1,ii(o,e,d)?(r=c,n=d):(i=c,o=d))}return[i,r]}function hn(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}function ar(t){return Math.floor(t-.5)}function lr(t){return Math.ceil(t-.5)}function _n(t,e){let i=un(t,e),r=i[0],o=ti(r),n=i[1];for(let s=0;s<3;s++)if(r[s]!==n[s]){let l=-1,a=255;r[s]<n[s]?(l=ar(ht(r[s])),a=lr(ht(n[s]))):(l=lr(ht(r[s])),a=ar(ht(n[s])));for(let c=0;c<8&&!(Math.abs(a-l)<=1);c++){let d=Math.floor((l+a)/2),m=ln[d],u=pn(r,m,n,s),g=ti(u);ii(o,e,g)?(n=u,a=d):(r=u,o=g,l=d)}}return hn(r,n)}function ei(t){let e=Math.abs(t),i=Math.max(0,27.13*e/(400-e));return X(t)*i**(1/.42)}function fn(t,e,i){let r=Math.sqrt(i)*11,o=ne.DEFAULT,n=1/(1.64-.29**o.n)**.73,l=.25*(Math.cos(t+2)+3.8)*(5e4/13)*o.nc*o.ncb,a=Math.sin(t),c=Math.cos(t);for(let d=0;d<5;d++){let m=r/100,g=((e===0||r===0?0:e/Math.sqrt(m))*n)**(1/.9),p=o.aw*m**(1/o.c/o.z)/o.nbb,_=23*(p+.305)*g/(23*l+11*g*c+108*g*a),b=_*c,w=_*a,y=(460*p+451*b+288*w)/1403,S=(460*p-891*b-261*w)/1403,C=(460*p-220*b-6300*w)/1403,T=ei(y),M=ei(S),z=ei(C),v=Ke([T,M,z],an);if(v[0]<0||v[1]<0||v[2]<0)return 0;let k=He[0],D=He[1],R=He[2],P=k*v[0]+D*v[1]+R*v[2];if(P<=0)return 0;if(d===4||Math.abs(P-i)<.002)return v[0]>100.01||v[1]>100.01||v[2]>100.01?0:Xt(v);r-=(P-i)*r/(2*P)}return 0}function Ze(t,e,i){if(e<1e-4||i<1e-4||i>99.9999)return ir(i);t=Ge(t);let r=t/180*Math.PI,o=$e(i),n=fn(r,e,o);if(n!==0)return n;let s=_n(o,r);return Xt(s)}var J=class t{static from(e,i,r){return new t(Ze(e,i,r))}static fromInt(e){return new t(e)}internalHue;internalChroma;internalTone;constructor(e){let i=Se.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Qt(e),this.argb=e}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Ze(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Ze(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Ze(this.internalHue,this.internalChroma,e))}setInternalState(e){let i=Se.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Qt(e),this.argb=e}inViewingConditions(e){let r=Se.fromInt(this.toInt()).xyzInViewingConditions(e),o=Se.fromXyzInViewingConditions(r[0],r[1],r[2],ne.make());return t.from(o.hue,o.chroma,rr(r[1]))}};function cr(t,e){let i=J.fromInt(t),r=J.fromInt(e),o=er(i.hue,r.hue),n=Math.min(o*.5,15),s=Ge(i.hue+n*Zi(i.hue,r.hue));return J.from(s,i.chroma,i.tone).toInt()}var q=class t{static fromInt(e){let i=J.fromInt(e);return t.fromHueAndChroma(i.hue,i.chroma)}static fromHueAndChroma(e,i){return new t(e,i)}#e=new Map;constructor(e,i){this.hue=e,this.chroma=i}tone(e){let i=this.#e.get(e);return i===void 0&&(i=J.from(this.hue,this.chroma,e).toInt(),this.#e.set(e,i)),i}getHct(e){return J.fromInt(this.tone(e))}};var le=class t{static#e(e,i){let r=new t(i.primary,e);if(i.secondary){let o=new t(i.secondary,e);r.a2=o.a1}if(i.tertiary){let o=new t(i.tertiary,e);r.a3=o.a1}if(i.error){let o=new t(i.error,e);r.error=o.a1}if(i.neutral){let o=new t(i.neutral,e);r.n1=o.n1}if(i.neutralVariant){let o=new t(i.neutralVariant,e);r.n2=o.n2}return r}static of(e){return new t(e,!1)}static contentOf(e){return new t(e,!0)}static fromColors(e){return t.#e(!1,e)}static contentFromColors(e){return t.#e(!0,e)}a1;a2;a3;n1;n2;error;constructor(e,i){let r=J.fromInt(e),{hue:o}=r,{chroma:n}=r;i?(this.a1=q.fromHueAndChroma(o,n),this.a2=q.fromHueAndChroma(o,n/3),this.a3=q.fromHueAndChroma(o+60,n/2),this.n1=q.fromHueAndChroma(o,Math.min(n/12,6)),this.n2=q.fromHueAndChroma(o,Math.min(n/6,8))):(this.a1=q.fromHueAndChroma(o,Math.max(48,n)),this.a2=q.fromHueAndChroma(o,16),this.a3=q.fromHueAndChroma(o+60,24),this.n1=q.fromHueAndChroma(o,6),this.n2=q.fromHueAndChroma(o,8)),this.error=q.fromHueAndChroma(25,84)}};var Ce=class t{static light(e){return t.lightFromCorePalette(le.of(e))}static dark(e){return t.darkFromCorePalette(le.of(e))}static lightContent(e){return t.lightFromCorePalette(le.contentOf(e))}static darkContent(e){return t.darkFromCorePalette(le.contentOf(e))}static lightFromCorePalette(e){return new t({primary:e.a1.tone(40),onPrimary:e.a1.tone(100),primaryContainer:e.a1.tone(90),onPrimaryContainer:e.a1.tone(10),secondary:e.a2.tone(40),onSecondary:e.a2.tone(100),secondaryContainer:e.a2.tone(90),onSecondaryContainer:e.a2.tone(10),tertiary:e.a3.tone(40),onTertiary:e.a3.tone(100),tertiaryContainer:e.a3.tone(90),onTertiaryContainer:e.a3.tone(10),error:e.error.tone(40),onError:e.error.tone(100),errorContainer:e.error.tone(90),onErrorContainer:e.error.tone(10),background:e.n1.tone(98),onBackground:e.n1.tone(10),surface:e.n1.tone(98),onSurface:e.n1.tone(10),surfaceDim:e.n1.tone(87),surfaceBright:e.n1.tone(98),surfaceContainerLowest:e.n1.tone(100),surfaceContainerLow:e.n1.tone(96),surfaceContainer:e.n1.tone(94),surfaceContainerHigh:e.n1.tone(92),surfaceContainerHighest:e.n1.tone(90),surfaceVariant:e.n2.tone(90),onSurfaceVariant:e.n2.tone(30),outline:e.n2.tone(50),outlineVariant:e.n2.tone(80),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(20),inverseOnSurface:e.n1.tone(95),inversePrimary:e.a1.tone(80)})}static darkFromCorePalette(e){return new t({primary:e.a1.tone(80),onPrimary:e.a1.tone(20),primaryContainer:e.a1.tone(30),onPrimaryContainer:e.a1.tone(90),secondary:e.a2.tone(80),onSecondary:e.a2.tone(20),secondaryContainer:e.a2.tone(30),onSecondaryContainer:e.a2.tone(90),tertiary:e.a3.tone(80),onTertiary:e.a3.tone(20),tertiaryContainer:e.a3.tone(30),onTertiaryContainer:e.a3.tone(90),error:e.error.tone(80),onError:e.error.tone(20),errorContainer:e.error.tone(30),onErrorContainer:e.error.tone(90),background:e.n1.tone(6),onBackground:e.n1.tone(90),surface:e.n1.tone(6),onSurface:e.n1.tone(90),surfaceDim:e.n1.tone(6),surfaceBright:e.n1.tone(24),surfaceContainerLowest:e.n1.tone(4),surfaceContainerLow:e.n1.tone(10),surfaceContainer:e.n1.tone(12),surfaceContainerHigh:e.n1.tone(17),surfaceContainerHighest:e.n1.tone(22),surfaceVariant:e.n2.tone(30),onSurfaceVariant:e.n2.tone(80),outline:e.n2.tone(60),outlineVariant:e.n2.tone(30),shadow:e.n1.tone(40),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(90),inverseOnSurface:e.n1.tone(20),inversePrimary:e.a1.tone(40)})}constructor(e){this.props=e}get primary(){return this.props.primary}get onPrimary(){return this.props.onPrimary}get primaryContainer(){return this.props.primaryContainer}get onPrimaryContainer(){return this.props.onPrimaryContainer}get secondary(){return this.props.secondary}get onSecondary(){return this.props.onSecondary}get secondaryContainer(){return this.props.secondaryContainer}get onSecondaryContainer(){return this.props.onSecondaryContainer}get tertiary(){return this.props.tertiary}get onTertiary(){return this.props.onTertiary}get tertiaryContainer(){return this.props.tertiaryContainer}get onTertiaryContainer(){return this.props.onTertiaryContainer}get error(){return this.props.error}get onError(){return this.props.onError}get errorContainer(){return this.props.errorContainer}get onErrorContainer(){return this.props.onErrorContainer}get background(){return this.props.background}get onBackground(){return this.props.onBackground}get surface(){return this.props.surface}get onSurface(){return this.props.onSurface}get surfaceDim(){return this.props.surfaceDim}get surfaceBright(){return this.props.surfaceBright}get surfaceContainerLowest(){return this.props.surfaceContainerLowest}get surfaceContainerLow(){return this.props.surfaceContainerLow}get surfaceContainer(){return this.props.surfaceContainer}get surfaceContainerHigh(){return this.props.surfaceContainerHigh}get surfaceContainerHighest(){return this.props.surfaceContainerHighest}get surfaceVariant(){return this.props.surfaceVariant}get onSurfaceVariant(){return this.props.onSurfaceVariant}get outline(){return this.props.outline}get outlineVariant(){return this.props.outlineVariant}get shadow(){return this.props.shadow}get scrim(){return this.props.scrim}get inverseSurface(){return this.props.inverseSurface}get inverseOnSurface(){return this.props.inverseOnSurface}get inversePrimary(){return this.props.inversePrimary}toJSON(){return{...this.props}}};function fe(t){return Number.parseInt(t,16)}function dr(t){t=t.replace("#","");let e=t.length===3,i=t.length===6,r=t.length===8;if(!e&&!i&&!r)throw new Error(`unexpected hex ${t}`);let o=0,n=0,s=0;return e?(o=fe(t.slice(0,1).repeat(2)),n=fe(t.slice(1,2).repeat(2)),s=fe(t.slice(2,3).repeat(2))):i?(o=fe(t.slice(0,2)),n=fe(t.slice(2,4)),s=fe(t.slice(4,6))):r&&(o=fe(t.slice(2,4)),n=fe(t.slice(4,6)),s=fe(t.slice(6,8))),(255<<24|(o&255)<<16|(n&255)<<8|s&255)>>>0}function I(t){return[qt(t),Gt(t),Kt(t)].join(",")}function _t(t){return`
|
|
1
|
+
var f2e635f4_1f55_4b3a_8064_72d0aa34d496=(()=>{var Yt=Object.defineProperty;var Uo=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var qo=Object.prototype.hasOwnProperty;var mt=(t,e)=>{for(var i in e)Yt(t,i,{get:e[i],enumerable:!0})},Go=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Xo(e))!qo.call(t,o)&&o!==i&&Yt(t,o,{get:()=>e[o],enumerable:!(r=Uo(e,o))||r.enumerable});return t};var Ko=t=>Go(Yt({},"__esModule",{value:!0}),t);var Kn={};mt(Kn,{AriaReflectorMixin:()=>B,AriaToolbarMixin:()=>Ne,Badge:()=>Tr,Body:()=>Lr,BottomAppBar:()=>Rr,BottomSheet:()=>Vr,Box:()=>j,Button:()=>fe,Card:()=>Wr,Checkbox:()=>Xr,CheckboxIcon:()=>Ur,Chip:()=>Rt,Composition:()=>Ee,ControlMixin:()=>we,CustomElement:()=>f,DensityMixin:()=>K,Dialog:()=>Zr,Display:()=>We,Divider:()=>qr,ElevationMixin:()=>X,Fab:()=>to,FabContainer:()=>io,FilterChip:()=>ro,FlexboxMixin:()=>pe,FormAssociatedMixin:()=>me,Grid:()=>oo,Headline:()=>no,Icon:()=>$r,IconButton:()=>so,Input:()=>ao,InputChip:()=>lo,InputMixin:()=>Q,KeyboardNavMixin:()=>ee,Label:()=>co,List:()=>Nt,ListItem:()=>Dt,ListOption:()=>ue,Listbox:()=>ho,Menu:()=>_o,MenuItem:()=>fo,NavBar:()=>bo,NavBarItem:()=>go,NavDrawer:()=>wo,NavDrawerItem:()=>xo,NavItem:()=>he,NavRail:()=>vo,NavRailItem:()=>yo,Page:()=>ko,Pane:()=>So,Popup:()=>Ft,Progress:()=>Co,RTLObserverMixin:()=>ct,Radio:()=>zo,RadioIcon:()=>mo,ResizeObserverMixin:()=>W,RippleMixin:()=>J,Root:()=>Eo,ScrollListenerMixin:()=>ye,Search:()=>Mo,SegmentedButton:()=>$t,SegmentedButtonGroup:()=>Ao,Select:()=>Io,Shape:()=>po,ShapeMixin:()=>E,SideSheet:()=>Ue,Slider:()=>Ro,Snackbar:()=>Po,SnackbarContainer:()=>Oo,StateMixin:()=>N,Surface:()=>Tt,Switch:()=>No,SwitchIcon:()=>Fo,Tab:()=>Ie,TabContent:()=>Vo,TabList:()=>Do,TabPanel:()=>Bt,TextArea:()=>$o,TextFieldMixin:()=>ve,ThemableMixin:()=>x,Title:()=>Ho,Tooltip:()=>eo,TooltipTriggerMixin:()=>Ve,TopAppBar:()=>Vt,TouchTargetMixin:()=>xe,jsonMergePatch:()=>ki,svgAlias:()=>Vi,theme:()=>pi});var pi={};mt(pi,{PALETTES:()=>Be,TYPE_STYLES:()=>oi,generateColorCSS:()=>gt,generateResetCSS:()=>ai,generateShapeCSS:()=>li,generateThemeCSS:()=>di,generateTypographyCSS:()=>ni,generateTypographyGlobalCSS:()=>si,setupTheme:()=>xn,themeOptionsFromSearchParams:()=>ci});var qe=new Map([["black","#000000"],["silver","#c0c0c0"],["gray","#808080"],["white","#ffffff"],["maroon","#800000"],["red","#ff0000"],["purple","#800080"],["fuchsia","#ff00ff"],["green","#008000"],["lime","#00ff00"],["olive","#808000"],["yellow","#ffff00"],["navy","#000080"],["blue","#0000ff"],["teal","#008080"],["aqua","#00ffff"],["orange","#ffa500"],["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["blanchedalmond","#ffebcd"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["gold","#ffd700"],["goldenrod","#daa520"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavender","#e6e6fa"],["lavenderblush","#fff0f5"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["oldlace","#fdf5e6"],["olivedrab","#6b8e23"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["whitesmoke","#f5f5f5"],["yellowgreen","#9acd32"],["rebeccapurple","#663399"]]);var Qo="M0 12A12 12 0 1012 0 12 12 0 000 12Z",Jo="M 0 12 12 0 24 12 12 24 Z",Zo="M12 24C17.2583 24 20.1815 24 22.0908 22.0908 24 20.1815 24 17.2583 24 12 24 6.7417 24 3.8185 22.0908 1.9092 20.1815-0 17.2583-0 12-0 6.7417-0 3.8185-0 1.9092 1.9092-0 3.8185-0 6.7417-0 12-0 17.2583-0 20.1815 1.9092 22.0908 3.8185 24 6.7417 24 12 24Z";var ut={size:{extraSmall:"4px",small:"8px",medium:"12px",large:"16px",extraLarge:"28px",full:"32px"},mask:Qo,convex:!1},Zn={...ut,size:{extraSmall:"4px",small:"8px",medium:"12px",large:"16px",extraLarge:"28px",full:"32px"},mask:Jo},es={...ut,mask:Zo};var Qi={face:{brand:'"Roboto Medium", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", Helvetica, "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',plain:'"Roboto Regular", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", Helvetica, "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',weight:{regular:400,medium:500}},scale:{display:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:64,fontSize:57,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:52,fontSize:45,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:44,fontSize:36,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"}},headline:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:40,fontSize:32,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:36,fontSize:28,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:32,fontSize:24,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"}},title:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:28,fontSize:22,letterSpacing:0,weight:"var(--mdw-typeface__weight-medium)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:24,fontSize:16,letterSpacing:.15,weight:"var(--mdw-typeface__weight-medium)"},small:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.1,weight:"var(--mdw-typeface__weight-medium)"}},label:{large:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.1,weight:"var(--mdw-typeface__weight-medium)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:16,fontSize:12,letterSpacing:.5,weight:"var(--mdw-typeface__weight-medium)"},small:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:16,fontSize:11,letterSpacing:.5,weight:"var(--mdw-typeface__weight-medium)"}},body:{large:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:24,fontSize:16,letterSpacing:.5,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.25,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:16,fontSize:12,letterSpacing:.4,weight:"var(--mdw-typeface__weight-regular)"}}}};function q(t){return t<0?-1:t===0?0:1}function Wt(t,e,i){return(1-i)*t+i*e}function Ji(t,e,i){return i<t?t:i>e?e:i}function Ge(t){return t%=360,t<0&&(t+=360),t}function Zi(t,e){return Ge(e-t)<=180?1:-1}function er(t,e){return 180-Math.abs(Math.abs(t-e)-180)}function Ke(t,e){let i=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],r=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],o=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return[i,r,o]}var en=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],tn=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],rn=[95.047,100,108.883];function Ut(t,e,i){return(255<<24|(t&255)<<16|(e&255)<<8|i&255)>>>0}function Xt(t){let e=Le(t[0]),i=Le(t[1]),r=Le(t[2]);return Ut(e,i,r)}function qt(t){return t>>16&255}function Gt(t){return t>>8&255}function Kt(t){return t&255}function tr(t,e,i){let r=tn,o=r[0][0]*t+r[0][1]*e+r[0][2]*i,n=r[1][0]*t+r[1][1]*e+r[1][2]*i,s=r[2][0]*t+r[2][1]*e+r[2][2]*i,l=Le(o),a=Le(n),c=Le(s);return Ut(l,a,c)}function on(t){let e=Te(qt(t)),i=Te(Gt(t)),r=Te(Kt(t));return Ke([e,i,r],en)}function ir(t){let e=$e(t),i=Le(e);return Ut(i,i,i)}function Qt(t){let e=on(t)[1];return 116*nr(e/100)-16}function $e(t){return 100*nn((t+16)/116)}function rr(t){return nr(t/100)*116-16}function Te(t){let e=t/255;return e<=.040449936?e/12.92*100:((e+.055)/1.055)**2.4*100}function Le(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,Ji(0,255,Math.round(i*255))}function or(){return rn}function nr(t){let e=.008856451679035631,i=24389/27;return t>e?t**(1/3):(i*t+16)/116}function nn(t){let e=.008856451679035631,i=24389/27,r=t*t*t;return r>e?r:(116*t-16)/i}var se=class t{static DEFAULT=t.make();static make(e=or(),i=200/Math.PI*$e(50)/100,r=50,o=2,n=!1){let s=e,l=s[0]*.401288+s[1]*.650173+s[2]*-.051461,a=s[0]*-.250268+s[1]*1.204414+s[2]*.045854,c=s[0]*-.002079+s[1]*.048952+s[2]*.953127,d=.8+o/10,p=d>=.9?Wt(.59,.69,(d-.9)*10):Wt(.525,.59,(d-.8)*10),h=n?1:d*(1-1/3.6*Math.exp((-i-42)/92));h=h>1?1:h<0?0:h;let g=d,_=[h*(100/l)+1-h,h*(100/a)+1-h,h*(100/c)+1-h],m=1/(5*i+1),u=m*m*m*m,b=1-u,w=u*i+.1*b*b*Math.cbrt(5*i),y=$e(r)/e[1],S=1.48+Math.sqrt(y),C=.725/y**.2,T=C,M=[(w*_[0]*l/100)**.42,(w*_[1]*a/100)**.42,(w*_[2]*c/100)**.42],z=[400*M[0]/(M[0]+27.13),400*M[1]/(M[1]+27.13),400*M[2]/(M[2]+27.13)],v=(2*z[0]+z[1]+.05*z[2])*C;return new t(y,v,C,T,p,g,_,w,w**.25,S)}constructor(e,i,r,o,n,s,l,a,c,d){this.n=e,this.aw=i,this.nbb=r,this.ncb=o,this.c=n,this.nc=s,this.rgbD=l,this.fl=a,this.fLRoot=c,this.z=d}};var Se=class t{static fromInt(e){return t.fromIntInViewingConditions(e,se.DEFAULT)}static fromIntInViewingConditions(e,i){let r=(e&16711680)>>16,o=(e&65280)>>8,n=e&255,s=Te(r),l=Te(o),a=Te(n),c=.41233895*s+.35762064*l+.18051042*a,d=.2126*s+.7152*l+.0722*a,p=.01932141*s+.11916382*l+.95034478*a,h=.401288*c+.650173*d-.051461*p,g=-.250268*c+1.204414*d+.045854*p,_=-.002079*c+.048952*d+.953127*p,m=i.rgbD[0]*h,u=i.rgbD[1]*g,b=i.rgbD[2]*_,w=(i.fl*Math.abs(m)/100)**.42,y=(i.fl*Math.abs(u)/100)**.42,S=(i.fl*Math.abs(b)/100)**.42,C=q(m)*400*w/(w+27.13),T=q(u)*400*y/(y+27.13),M=q(b)*400*S/(S+27.13),z=(11*C+-12*T+M)/11,v=(C+T-2*M)/9,k=(20*C+20*T+21*M)/20,D=(40*C+20*T+M)/20,R=Math.atan2(v,z)*180/Math.PI,V=R<0?R+360:R>=360?R-360:R,$=V*Math.PI/180,O=100*(D*i.nbb/i.aw)**(i.c*i.z),A=4/i.c*Math.sqrt(O/100)*(i.aw+4)*i.fLRoot,H=V<20.14?V+360:V,ne=.25*(Math.cos(H*Math.PI/180+2)+3.8),pt=(5e4/13*ne*i.nc*i.ncb*Math.sqrt(z*z+v*v)/(k+.305))**.9*(1.64-.29**i.n)**.73,qi=pt*Math.sqrt(O/100),Gi=qi*i.fLRoot,Bo=50*Math.sqrt(pt*i.c/(i.aw+4)),jo=(1+100*.007)*O/(1+.007*O),Ki=1/.0228*Math.log(1+.0228*Gi),Yo=Ki*Math.cos($),Wo=Ki*Math.sin($);return new t(V,qi,O,A,Gi,Bo,jo,Yo,Wo)}static fromJch(e,i,r){return t.fromJchInViewingConditions(e,i,r,se.DEFAULT)}static fromJchInViewingConditions(e,i,r,o){let n=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,s=i*o.fLRoot,l=i/Math.sqrt(e/100),a=50*Math.sqrt(l*o.c/(o.aw+4)),c=r*Math.PI/180,d=(1+100*.007)*e/(1+.007*e),p=1/.0228*Math.log(1+.0228*s),h=p*Math.cos(c),g=p*Math.sin(c);return new t(r,i,e,n,s,a,d,h,g)}static fromUcs(e,i,r){return t.fromUcsInViewingConditions(e,i,r,se.DEFAULT)}static fromUcsInViewingConditions(e,i,r,o){let n=i,s=r,l=Math.sqrt(n*n+s*s),c=(Math.exp(l*.0228)-1)/.0228/o.fLRoot,d=Math.atan2(s,n)*(180/Math.PI);d<0&&(d+=360);let p=e/(1-(e-100)*.007);return t.fromJchInViewingConditions(p,c,d,o)}static fromXyzInViewingConditions(e,i,r,o){let n=.401288*e+.650173*i-.051461*r,s=-.250268*e+1.204414*i+.045854*r,l=-.002079*e+.048952*i+.953127*r,a=o.rgbD[0]*n,c=o.rgbD[1]*s,d=o.rgbD[2]*l,p=(o.fl*Math.abs(a)/100)**.42,h=(o.fl*Math.abs(c)/100)**.42,g=(o.fl*Math.abs(d)/100)**.42,_=q(a)*400*p/(p+27.13),m=q(c)*400*h/(h+27.13),u=q(d)*400*g/(g+27.13),b=(11*_+-12*m+u)/11,w=(_+m-2*u)/9,y=(20*_+20*m+21*u)/20,S=(40*_+20*m+u)/20,T=Math.atan2(w,b)*180/Math.PI,M=T<0?T+360:T>=360?T-360:T,z=M*Math.PI/180,k=100*(S*o.nbb/o.aw)**(o.c*o.z),D=4/o.c*Math.sqrt(k/100)*(o.aw+4)*o.fLRoot,P=M<20.14?M+360:M,R=1/4*(Math.cos(P*Math.PI/180+2)+3.8),oe=(5e4/13*R*o.nc*o.ncb*Math.sqrt(b*b+w*w)/(y+.305))**.9*(1.64-.29**o.n)**.73,O=oe*Math.sqrt(k/100),A=O*o.fLRoot,H=50*Math.sqrt(oe*o.c/(o.aw+4)),ne=(1+100*.007)*k/(1+.007*k),ke=Math.log(1+.0228*A)/.0228,dt=ke*Math.cos(z),pt=ke*Math.sin(z);return new t(M,O,k,D,A,H,ne,dt,pt)}constructor(e,i,r,o,n,s,l,a,c){this.hue=e,this.chroma=i,this.j=r,this.q=o,this.m=n,this.s=s,this.jstar=l,this.astar=a,this.bstar=c}distance(e){let i=this.jstar-e.jstar,r=this.astar-e.astar,o=this.bstar-e.bstar;return 1.41*Math.sqrt(i*i+r*r+o*o)**.63}toInt(){return this.viewed(se.DEFAULT)}viewed(e){let r=((this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100))/(1.64-.29**e.n)**.73)**(1/.9),o=this.hue*Math.PI/180,n=.25*(Math.cos(o+2)+3.8),s=e.aw*(this.j/100)**(1/e.c/e.z),l=n*(5e4/13)*e.nc*e.ncb,a=s/e.nbb,c=Math.sin(o),d=Math.cos(o),p=23*(a+.305)*r/(23*l+11*r*d+108*r*c),h=p*d,g=p*c,_=(460*a+451*h+288*g)/1403,m=(460*a-891*h-261*g)/1403,u=(460*a-220*h-6300*g)/1403,b=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),w=q(_)*(100/e.fl)*b**(1/.42),y=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),S=q(m)*(100/e.fl)*y**(1/.42),C=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),T=q(u)*(100/e.fl)*C**(1/.42),M=w/e.rgbD[0],z=S/e.rgbD[1],v=T/e.rgbD[2],k=1.86206786*M-1.01125463*z+.14918677*v,D=.38752654*M+.62144744*z-.00897398*v,P=-.0158415*M-.03412294*z+1.04996444*v;return tr(k,D,P)}xyzInViewingConditions(e){let r=((this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100))/(1.64-.29**e.n)**.73)**(1/.9),o=this.hue*Math.PI/180,n=.25*(Math.cos(o+2)+3.8),s=e.aw*(this.j/100)**(1/e.c/e.z),l=n*(5e4/13)*e.nc*e.ncb,a=s/e.nbb,c=Math.sin(o),d=Math.cos(o),p=23*(a+.305)*r/(23*l+11*r*d+108*r*c),h=p*d,g=p*c,_=(460*a+451*h+288*g)/1403,m=(460*a-891*h-261*g)/1403,u=(460*a-220*h-6300*g)/1403,b=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),w=q(_)*(100/e.fl)*b**(1/.42),y=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),S=q(m)*(100/e.fl)*y**(1/.42),C=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),T=q(u)*(100/e.fl)*C**(1/.42),M=w/e.rgbD[0],z=S/e.rgbD[1],v=T/e.rgbD[2],k=1.86206786*M-1.01125463*z+.14918677*v,D=.38752654*M+.62144744*z-.00897398*v,P=-.0158415*M-.03412294*z+1.04996444*v;return[k,D,P]}};var sn=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],an=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],He=[.2126,.7152,.0722],ln=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];function sr(t){return(t+Math.PI*8)%(Math.PI*2)}function ht(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,i*255}function Jt(t){let e=Math.abs(t)**.42;return q(t)*400*e/(e+27.13)}function ti(t){let e=Ke(t,sn),i=Jt(e[0]),r=Jt(e[1]),o=Jt(e[2]),n=(11*i+-12*r+o)/11,s=(i+r-2*o)/9;return Math.atan2(s,n)}function ii(t,e,i){let r=sr(e-t),o=sr(i-t);return r<o}function cn(t,e,i){return(e-t)/(i-t)}function dn(t,e,i){return[t[0]+(i[0]-t[0])*e,t[1]+(i[1]-t[1])*e,t[2]+(i[2]-t[2])*e]}function pn(t,e,i,r){let o=cn(t[r],e,i[r]);return dn(t,o,i)}function Zt(t){return t>=0&&t<=100}function mn(t,e){let i=He[0],r=He[1],o=He[2],n=e%4<=1?0:100,s=e%2===0?0:100;if(e<4){let d=n,p=s,h=(t-d*r-p*o)/i;return Zt(h)?[h,d,p]:[-1,-1,-1]}if(e<8){let d=n,p=s,h=(t-p*i-d*o)/r;return Zt(h)?[p,h,d]:[-1,-1,-1]}let l=n,a=s,c=(t-l*i-a*r)/o;return Zt(c)?[l,a,c]:[-1,-1,-1]}function un(t,e){let i=[-1,-1,-1],r=i,o=0,n=0,s=!1,l=!0;for(let a=0;a<12;a++){let c=mn(t,a);if(c[0]<0)continue;let d=ti(c);if(!s){i=c,r=c,o=d,n=d,s=!0;continue}(l||ii(o,d,n))&&(l=!1,ii(o,e,d)?(r=c,n=d):(i=c,o=d))}return[i,r]}function hn(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}function ar(t){return Math.floor(t-.5)}function lr(t){return Math.ceil(t-.5)}function _n(t,e){let i=un(t,e),r=i[0],o=ti(r),n=i[1];for(let s=0;s<3;s++)if(r[s]!==n[s]){let l=-1,a=255;r[s]<n[s]?(l=ar(ht(r[s])),a=lr(ht(n[s]))):(l=lr(ht(r[s])),a=ar(ht(n[s])));for(let c=0;c<8&&!(Math.abs(a-l)<=1);c++){let d=Math.floor((l+a)/2),p=ln[d],h=pn(r,p,n,s),g=ti(h);ii(o,e,g)?(n=h,a=d):(r=h,o=g,l=d)}}return hn(r,n)}function ei(t){let e=Math.abs(t),i=Math.max(0,27.13*e/(400-e));return q(t)*i**(1/.42)}function fn(t,e,i){let r=Math.sqrt(i)*11,o=se.DEFAULT,n=1/(1.64-.29**o.n)**.73,l=.25*(Math.cos(t+2)+3.8)*(5e4/13)*o.nc*o.ncb,a=Math.sin(t),c=Math.cos(t);for(let d=0;d<5;d++){let p=r/100,g=((e===0||r===0?0:e/Math.sqrt(p))*n)**(1/.9),m=o.aw*p**(1/o.c/o.z)/o.nbb,u=23*(m+.305)*g/(23*l+11*g*c+108*g*a),b=u*c,w=u*a,y=(460*m+451*b+288*w)/1403,S=(460*m-891*b-261*w)/1403,C=(460*m-220*b-6300*w)/1403,T=ei(y),M=ei(S),z=ei(C),v=Ke([T,M,z],an);if(v[0]<0||v[1]<0||v[2]<0)return 0;let k=He[0],D=He[1],P=He[2],R=k*v[0]+D*v[1]+P*v[2];if(R<=0)return 0;if(d===4||Math.abs(R-i)<.002)return v[0]>100.01||v[1]>100.01||v[2]>100.01?0:Xt(v);r-=(R-i)*r/(2*R)}return 0}function Ze(t,e,i){if(e<1e-4||i<1e-4||i>99.9999)return ir(i);t=Ge(t);let r=t/180*Math.PI,o=$e(i),n=fn(r,e,o);if(n!==0)return n;let s=_n(o,r);return Xt(s)}var Z=class t{static from(e,i,r){return new t(Ze(e,i,r))}static fromInt(e){return new t(e)}internalHue;internalChroma;internalTone;constructor(e){let i=Se.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Qt(e),this.argb=e}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Ze(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Ze(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Ze(this.internalHue,this.internalChroma,e))}setInternalState(e){let i=Se.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Qt(e),this.argb=e}inViewingConditions(e){let r=Se.fromInt(this.toInt()).xyzInViewingConditions(e),o=Se.fromXyzInViewingConditions(r[0],r[1],r[2],se.make());return t.from(o.hue,o.chroma,rr(r[1]))}};function cr(t,e){let i=Z.fromInt(t),r=Z.fromInt(e),o=er(i.hue,r.hue),n=Math.min(o*.5,15),s=Ge(i.hue+n*Zi(i.hue,r.hue));return Z.from(s,i.chroma,i.tone).toInt()}var G=class t{static fromInt(e){let i=Z.fromInt(e);return t.fromHueAndChroma(i.hue,i.chroma)}static fromHueAndChroma(e,i){return new t(e,i)}#e=new Map;constructor(e,i){this.hue=e,this.chroma=i}tone(e){let i=this.#e.get(e);return i===void 0&&(i=Z.from(this.hue,this.chroma,e).toInt(),this.#e.set(e,i)),i}getHct(e){return Z.fromInt(this.tone(e))}};var ce=class t{static#e(e,i){let r=new t(i.primary,e);if(i.secondary){let o=new t(i.secondary,e);r.a2=o.a1}if(i.tertiary){let o=new t(i.tertiary,e);r.a3=o.a1}if(i.error){let o=new t(i.error,e);r.error=o.a1}if(i.neutral){let o=new t(i.neutral,e);r.n1=o.n1}if(i.neutralVariant){let o=new t(i.neutralVariant,e);r.n2=o.n2}return r}static of(e){return new t(e,!1)}static contentOf(e){return new t(e,!0)}static fromColors(e){return t.#e(!1,e)}static contentFromColors(e){return t.#e(!0,e)}a1;a2;a3;n1;n2;error;constructor(e,i){let r=Z.fromInt(e),{hue:o}=r,{chroma:n}=r;i?(this.a1=G.fromHueAndChroma(o,n),this.a2=G.fromHueAndChroma(o,n/3),this.a3=G.fromHueAndChroma(o+60,n/2),this.n1=G.fromHueAndChroma(o,Math.min(n/12,6)),this.n2=G.fromHueAndChroma(o,Math.min(n/6,8))):(this.a1=G.fromHueAndChroma(o,Math.max(48,n)),this.a2=G.fromHueAndChroma(o,16),this.a3=G.fromHueAndChroma(o+60,24),this.n1=G.fromHueAndChroma(o,6),this.n2=G.fromHueAndChroma(o,8)),this.error=G.fromHueAndChroma(25,84)}};var Ce=class t{static light(e){return t.lightFromCorePalette(ce.of(e))}static dark(e){return t.darkFromCorePalette(ce.of(e))}static lightContent(e){return t.lightFromCorePalette(ce.contentOf(e))}static darkContent(e){return t.darkFromCorePalette(ce.contentOf(e))}static lightFromCorePalette(e){return new t({primary:e.a1.tone(40),onPrimary:e.a1.tone(100),primaryContainer:e.a1.tone(90),onPrimaryContainer:e.a1.tone(10),secondary:e.a2.tone(40),onSecondary:e.a2.tone(100),secondaryContainer:e.a2.tone(90),onSecondaryContainer:e.a2.tone(10),tertiary:e.a3.tone(40),onTertiary:e.a3.tone(100),tertiaryContainer:e.a3.tone(90),onTertiaryContainer:e.a3.tone(10),error:e.error.tone(40),onError:e.error.tone(100),errorContainer:e.error.tone(90),onErrorContainer:e.error.tone(10),background:e.n1.tone(98),onBackground:e.n1.tone(10),surface:e.n1.tone(98),onSurface:e.n1.tone(10),surfaceDim:e.n1.tone(87),surfaceBright:e.n1.tone(98),surfaceContainerLowest:e.n1.tone(100),surfaceContainerLow:e.n1.tone(96),surfaceContainer:e.n1.tone(94),surfaceContainerHigh:e.n1.tone(92),surfaceContainerHighest:e.n1.tone(90),surfaceVariant:e.n2.tone(90),onSurfaceVariant:e.n2.tone(30),outline:e.n2.tone(50),outlineVariant:e.n2.tone(80),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(20),inverseOnSurface:e.n1.tone(95),inversePrimary:e.a1.tone(80)})}static darkFromCorePalette(e){return new t({primary:e.a1.tone(80),onPrimary:e.a1.tone(20),primaryContainer:e.a1.tone(30),onPrimaryContainer:e.a1.tone(90),secondary:e.a2.tone(80),onSecondary:e.a2.tone(20),secondaryContainer:e.a2.tone(30),onSecondaryContainer:e.a2.tone(90),tertiary:e.a3.tone(80),onTertiary:e.a3.tone(20),tertiaryContainer:e.a3.tone(30),onTertiaryContainer:e.a3.tone(90),error:e.error.tone(80),onError:e.error.tone(20),errorContainer:e.error.tone(30),onErrorContainer:e.error.tone(90),background:e.n1.tone(6),onBackground:e.n1.tone(90),surface:e.n1.tone(6),onSurface:e.n1.tone(90),surfaceDim:e.n1.tone(6),surfaceBright:e.n1.tone(24),surfaceContainerLowest:e.n1.tone(4),surfaceContainerLow:e.n1.tone(10),surfaceContainer:e.n1.tone(12),surfaceContainerHigh:e.n1.tone(17),surfaceContainerHighest:e.n1.tone(22),surfaceVariant:e.n2.tone(30),onSurfaceVariant:e.n2.tone(80),outline:e.n2.tone(60),outlineVariant:e.n2.tone(30),shadow:e.n1.tone(40),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(90),inverseOnSurface:e.n1.tone(20),inversePrimary:e.a1.tone(40)})}constructor(e){this.props=e}get primary(){return this.props.primary}get onPrimary(){return this.props.onPrimary}get primaryContainer(){return this.props.primaryContainer}get onPrimaryContainer(){return this.props.onPrimaryContainer}get secondary(){return this.props.secondary}get onSecondary(){return this.props.onSecondary}get secondaryContainer(){return this.props.secondaryContainer}get onSecondaryContainer(){return this.props.onSecondaryContainer}get tertiary(){return this.props.tertiary}get onTertiary(){return this.props.onTertiary}get tertiaryContainer(){return this.props.tertiaryContainer}get onTertiaryContainer(){return this.props.onTertiaryContainer}get error(){return this.props.error}get onError(){return this.props.onError}get errorContainer(){return this.props.errorContainer}get onErrorContainer(){return this.props.onErrorContainer}get background(){return this.props.background}get onBackground(){return this.props.onBackground}get surface(){return this.props.surface}get onSurface(){return this.props.onSurface}get surfaceDim(){return this.props.surfaceDim}get surfaceBright(){return this.props.surfaceBright}get surfaceContainerLowest(){return this.props.surfaceContainerLowest}get surfaceContainerLow(){return this.props.surfaceContainerLow}get surfaceContainer(){return this.props.surfaceContainer}get surfaceContainerHigh(){return this.props.surfaceContainerHigh}get surfaceContainerHighest(){return this.props.surfaceContainerHighest}get surfaceVariant(){return this.props.surfaceVariant}get onSurfaceVariant(){return this.props.onSurfaceVariant}get outline(){return this.props.outline}get outlineVariant(){return this.props.outlineVariant}get shadow(){return this.props.shadow}get scrim(){return this.props.scrim}get inverseSurface(){return this.props.inverseSurface}get inverseOnSurface(){return this.props.inverseOnSurface}get inversePrimary(){return this.props.inversePrimary}toJSON(){return{...this.props}}};function be(t){return Number.parseInt(t,16)}function dr(t){t=t.replace("#","");let e=t.length===3,i=t.length===6,r=t.length===8;if(!e&&!i&&!r)throw new Error(`unexpected hex ${t}`);let o=0,n=0,s=0;return e?(o=be(t.slice(0,1).repeat(2)),n=be(t.slice(1,2).repeat(2)),s=be(t.slice(2,3).repeat(2))):i?(o=be(t.slice(0,2)),n=be(t.slice(2,4)),s=be(t.slice(4,6))):r&&(o=be(t.slice(2,4)),n=be(t.slice(4,6)),s=be(t.slice(6,8))),(255<<24|(o&255)<<16|(n&255)<<8|s&255)>>>0}function I(t){return[qt(t),Gt(t),Kt(t)].join(",")}function _t(t){return`
|
|
2
2
|
:root {
|
|
3
3
|
--mdw-color__primary: ${I(t.primary)};
|
|
4
4
|
--mdw-color__on-primary: ${I(t.onPrimary)};
|
|
@@ -43,11 +43,11 @@ var f2e635f4_1f55_4b3a_8064_72d0aa34d496=(()=>{var Yt=Object.defineProperty;var
|
|
|
43
43
|
--mdw-color__${t}-container: ${I(e.tone(i?30:90))};
|
|
44
44
|
--mdw-color__on-${t}-container: ${I(e.tone(i?90:10))};
|
|
45
45
|
}
|
|
46
|
-
`}function ri(t,e=[]){let i=dr(t),r=[_t(Ce.light(i))],o=[_t(Ce.dark(i))],n=[_t(Ce.lightContent(i))],s=[_t(Ce.darkContent(i))];for(let[l,a]of e){let c=dr(a),d=cr(c,i),{a1:
|
|
46
|
+
`}function ri(t,e=[]){let i=dr(t),r=[_t(Ce.light(i))],o=[_t(Ce.dark(i))],n=[_t(Ce.lightContent(i))],s=[_t(Ce.darkContent(i))];for(let[l,a]of e){let c=dr(a),d=cr(c,i),{a1:p}=ce.of(d),{a1:h}=ce.contentOf(d);r.push(ft(l,p)),o.push(ft(l,p,!0)),n.push(ft(l,h)),s.push(ft(l,h,!0))}return{light:r.join(`
|
|
47
47
|
`),dark:o.join(`
|
|
48
48
|
`),lightContent:n.join(`
|
|
49
49
|
`),darkContent:s.join(`
|
|
50
|
-
`)}}function
|
|
50
|
+
`)}}function Re(t){return`url('data:image/svg+xml;charset=UTF-8,${t.replaceAll(`
|
|
51
51
|
`," ").replaceAll("#","%23").replaceAll("(","%28").replaceAll(")","%29")}')`}var Be=["primary","secondary","tertiary","error","surface"],oi=["display","headline","title","label","body"];function gn(t){return['<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">',`<defs><path id="a" d="${t}"/></defs>`,'<use href="#a" transform="scale(.666)"/>','<use href="#a" transform="translate(8) scale(.666)"/>','<use href="#a" transform="matrix(.666 0 0 .666 0 8)"/>','<use href="#a" transform="matrix(.666 0 0 .666 8 8)"/>','<path d="M8 0h8v24H8Z"/><path d="M0 8h24v8H0Z"/>',"</svg>"].join("")}function bt(t,e,i){let r=`<path ${[`d="${t}"`,'vector-effect="non-scaling-stroke"',`transform-origin="${e.replace("-"," ")}"`,'stroke-linejoin="miter"','transform="scale(2)"',`stroke-width="${i?4:2}px"`,'stroke="black"','fill="none"'].join(" ")}/>`;return['<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">',i?['<mask id="m">','<rect x="0" y="0" width="24" height="24" fill="white"/>',`<path d="${t}" transform-origin="${e.replace("-"," ")}" transform="scale(2)"/>`,"</mask>",`<g mask="url(#m)">${r}</g>`].join(""):r,"</svg>"].join("")}function wn(){return['<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">','<rect x="0" y="0" width="24" height="24" vector-effect="non-scaling-stroke" stroke-width="2px" stroke="black" fill="none"/>',"</svg>"].join("")}function ni(t=Qi){return`
|
|
52
52
|
:root {
|
|
53
53
|
--mdw-typeface__brand: ${t.face.brand};
|
|
@@ -168,12 +168,12 @@ padding:0;
|
|
|
168
168
|
--mdw-shape__rounded: ${t.mask?"0":"1"};
|
|
169
169
|
--mdw-shape__outline__background: ${t.mask?"currentColor":"transparent"};
|
|
170
170
|
--mdw-shape__convex: ${t.convex?"1":"0"};
|
|
171
|
-
--mdw-shape__mask-border-source: ${t.mask?
|
|
172
|
-
--mdw-shape__mask-image__top-left: ${t.mask?
|
|
173
|
-
--mdw-shape__mask-image__top-right: ${t.mask?
|
|
174
|
-
--mdw-shape__mask-image__bottom-right: ${t.mask?
|
|
175
|
-
--mdw-shape__mask-image__bottom-left: ${t.mask?
|
|
176
|
-
--mdw-shape__mask-image__edges: ${t.mask?
|
|
171
|
+
--mdw-shape__mask-border-source: ${t.mask?Re(gn(t.mask)):"none"};
|
|
172
|
+
--mdw-shape__mask-image__top-left: ${t.mask?Re(bt(t.mask,"top-left")):"none"};
|
|
173
|
+
--mdw-shape__mask-image__top-right: ${t.mask?Re(bt(t.mask,"top-right")):"none"};
|
|
174
|
+
--mdw-shape__mask-image__bottom-right: ${t.mask?Re(bt(t.mask,"bottom-right")):"none"};
|
|
175
|
+
--mdw-shape__mask-image__bottom-left: ${t.mask?Re(bt(t.mask,"bottom-left")):"none"};
|
|
176
|
+
--mdw-shape__mask-image__edges: ${t.mask?Re(wn()):"none"};
|
|
177
177
|
}
|
|
178
178
|
`}function et(t){let e=document.createElement("style");return e.textContent=t,document.head.append(e),e}function gt({color:t="#6750A4",custom:e=[],lightness:i="light"}){let r=[...e].map(([n,s])=>[n,qe.get(s)||s||qe.get(n)]),o=ri(t,r);return i==="dark"?o.dark:o.light}function xn({color:t="#6750A4",custom:e=[],lightness:i="auto"}){let r=[...e].map(([n,s])=>[n,qe.get(s)||s||qe.get(n)]),o=ri(t,r);i==="dark"?et(o.dark):(et(o.light),i!=="light"&&(et(o.dark).media="(prefers-color-scheme:dark)")),et(li()),et(ni())}function ci(t){let e=(t==null?void 0:t.get("color"))||"#6750A4",i=(t==null?void 0:t.getAll("custom").flatMap(s=>s.split(",")).map(s=>s.split(":")))??[],r=(t==null?void 0:t.get("lightness"))??"auto",n=((t==null?void 0:t.get("resetCSS"))??(t==null?void 0:t.get("resetCss")))!=="false";return{color:e,custom:i,lightness:r,resetCSS:n}}function di({color:t="#6750A4",custom:e=[],lightness:i="auto"}){let r=li(),o=ni(),n;return i==="light"||i==="dark"?n=gt({color:t,custom:e,lightness:i}):n=`
|
|
179
179
|
${gt({color:t,custom:e,lightness:"light"})}
|
|
@@ -182,7 +182,7 @@ padding:0;
|
|
|
182
182
|
${gt({color:t,custom:e,lightness:"dark"})}
|
|
183
183
|
}`,[r,o,n].join(`
|
|
184
184
|
`)}var vn={},mi=null;function wt(){if(!mi){let t;try{t=vn.url}catch{}if(!t)try{t=document.currentScript.src}catch{}if(!t)return new URLSearchParams;mi=new URL(t).searchParams}return mi}Be.push(...wt().getAll("custom").flatMap(t=>t.split(",")).map(t=>t.split(":")[0]));var ui=new Map;function vt(t,e=!0){if(e&&ui.has(t))return ui.get(t);let i=new CSSStyleSheet;return i.replaceSync(t),e&&ui.set(t,i),i}var hi=new Map,pr;function yn(t,e=!0){let i;return e&&hi.has(t)?i=hi.get(t):(pr??=document.implementation.createHTMLDocument(),i=pr.createElement("style"),i.textContent=t,e&&hi.set(t,i)),i.cloneNode(!0)}var xt;function mr(t,e=!0){if(xt==null)try{let i=vt(t,e);return xt=!0,i}catch{xt=!1}return xt?vt(t,e):yn(t,e)}function*ur(t,e=!0){for(let i of t)i instanceof HTMLStyleElement?yield vt(i.textContent,e):i.ownerNode?yield vt([...i.cssRules].map(r=>r.cssText).join(""),e):yield i}var _i=new WeakMap;function*hr(t,e=!0){for(let i of t)if(i instanceof HTMLStyleElement)yield i;else if(i.ownerNode instanceof HTMLStyleElement)yield i.ownerNode.cloneNode(!0);else if(e&&_i.has(i))yield _i.get(i).cloneNode(!0);else{let r=document.createElement("style");r.textContent=[...i.cssRules].map(o=>o.cssText).join(""),e&&_i.set(i,r),yield r.cloneNode(!0)}}function yt(t,...e){return mr(typeof t=="string"?t:String.raw({raw:t},...e))}function kt(t,...e){let i;return typeof t=="string"?i=yt(t):Array.isArray(t)?i=yt(t,...e):i=t,i instanceof HTMLStyleElement?document.head.append(i):document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],i}var _r=ci(wt());kt([di(_r),si(),_r.resetCSS?ai():""].join(`
|
|
185
|
-
`));var kn,Sn;function fr(){return(kn??=new Text).cloneNode()}function Re(){return(Sn??=new Comment).cloneNode()}function Cn(t){var e,i;return(e=t==null?void 0:t.matches)!=null&&e.call(t,":focus")?t:(i=t==null?void 0:t.querySelector)==null?void 0:i.call(t,":focus")}function zn(t){t&&t.isConnected&&!t.matches(":focus")&&t.focus()}function br(t,e,i){let r=Cn(t);e?e.before(t):i.append(t),zn(r)}var En=typeof Element.prototype.moveBefore=="function",fi=En?(t,e,i)=>{i.moveBefore(t,e)}:br,tt=class{constructor(e){this.anchorNode=e.anchorNode,this.metadata=[],this.keys=[],this.needsArrayKeyFastPath=!1,this.composition=e.composition,this.renderOptions=e.renderOptions,this.metadataCache=null,this.queuedElements=[],this.batchStartIndex=null,this.batchEndIndex=null,this.parentProps=e.parentProps||[]}render(e,i){return this.composition.render(e,i,this.renderOptions)}startBatch(){this.needsArrayKeyFastPath=!0}writeBatch(){var i;if(!this.queuedElements.length)return;(((i=this.metadata[this.batchStartIndex-1])==null?void 0:i.domNode)??this.anchorNode).after(...this.queuedElements),this.queuedElements.length=0}stopBatch(){if(this.writeBatch(),this.needsArrayKeyFastPath=!1,this.batchStartIndex=null,this.batchEndIndex=null,this.metadataCache){for(let{domNode:e}of this.metadataCache.values())e.remove();this.metadataCache.clear()}}moveToEndByIndex(e){let[i]=this.metadata.splice(e,1),{domNode:r,key:o}=i;this.keys.splice(e,1);let n=r.parentNode;n&&br(r,null,n),this.metadataCache?this.metadataCache.set(o,i):this.metadataCache=new Map([[o,i]])}renderData(e,i,r,o,n,s){if(e<this.metadata.length){let d=this.metadata[e],m=d.key,u=m===o,g=n!==o;if(u){g?d.render(i,r):s||d.render(i,r);return}let h=this.metadataCache??=new Map,p=!1;this.needsArrayKeyFastPath&&(p=!this.keys.includes(o),this.needsArrayFastPath=!1);let _=p?-1:this.keys.indexOf(o,e+1);if(_===-1){if(h.has(o)){let b=h.get(o);this.metadata.splice(e,0,b),this.keys.splice(e,0,o),fi(b.domNode,d.domNode,d.domNode.parentNode),b.render(i,r),h.delete(o);return}h.set(m,d)}else{if(e-_===-1){this.moveToEndByIndex(e);return}let b=this.metadata[_];this.metadata[e]=b,this.metadata[_]=d;let{domNode:w}=d,y=w.parentNode,S=b.domNode.nextSibling;fi(b.domNode,w,y),S&&fi(w,S,y),s||b.render(i,r),this.keys[e]=o,this.keys[_]=m;return}}let l={...i};if(this.parentProps.length)for(let d of this.parentProps)d in r&&(l[d]=r[d]);let a=this.render(l,r),c=a.target;this.metadata[e]={render:a,element:c,key:o,domNode:c},this.keys[e]=o,(this.batchEndIndex===null||this.batchEndIndex!==e-1)&&(this.writeBatch(),this.batchStartIndex=e),this.batchEndIndex=e,this.queuedElements.push(c)}removeEntries(e=0){let{length:i}=this.metadata;for(let r=i-1;r>=e;r--){let o=this.metadata[r];!o||!o.domNode||o.domNode.remove()}this.metadata.length=e,this.keys.length=e}hide(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||i.hidden)return!1;let{comment:o,element:n}=i;return o||(o=Re(),i.comment=o),n.replaceWith(o),i.domNode=o,i.hidden=!0,!0}show(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||!i.hidden)return!1;let{comment:o,element:n}=i;return o.replaceWith(n),i.domNode=n,i.hidden=!1,!0}};function vr(t){switch(t){case void 0:case null:case!1:return null;case!0:return"";default:return`${t}`}}var St;function ze(t){if(St??=new Map,St.has(t))return St.get(t);let e=t.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`);return St.set(t,e),e}var gr,Oe=Number.parseFloat((gr=navigator.userAgent.match(/Chrome\/([\d.]+)/))==null?void 0:gr[1]),wr,it=Number.parseFloat((wr=navigator.userAgent.match(/Firefox\/([\d.]+)/))==null?void 0:wr[1]),xr,Ct=Oe||!navigator.userAgent.includes("AppleWebKit")?Number.NaN:Number.parseFloat((xr=navigator.userAgent.match(/Version\/([\d.]+)/))==null?void 0:xr[1]);function ce(t){return!t||it<113&&t.constructor.formAssociated&&t.hasAttribute("disabled")?!1:document.activeElement===t?!0:!t.isConnected||(t==null?void 0:t.getRootNode())===document?!1:t.matches(":focus")}function W(t,...e){if(!t)return!1;try{t.focus(...e)}catch{return!1}return ce(t)}function he(t){return getComputedStyle(t).direction==="rtl"}var ki={};mt(ki,{applyMergePatch:()=>gi,applyMergePatchObject:()=>bi,buildMergePatch:()=>vi,buildMergePatchClone:()=>xi,buildMergePatchObject:()=>zt,buildMergePatchReference:()=>wi,hasMergePatch:()=>yi,hasMergePatchObject:()=>kr,hasMergePatchReference:()=>Et});function bi(t,e){if(t===e)return t;if(Array.isArray(e)||t==null||e==null||typeof e!="object")return e;typeof t!="object"&&(t={});for(let[i,r]of Object.entries(e))r==null?i in t&&delete t[i]:t[i]=bi(t[i],r);return t}function yr(t,e){if(t===e)return t;let i=e!=null&&typeof e=="object"&&!Array.isArray(e),r=t!=null&&typeof t=="object"&&!Array.isArray(t);if(!i||!r)return e;for(let[o,n]of Object.entries(e))n==null?o in t&&delete t[o]:t[o]=yr(t[o],n);return t}function gi(t,e,i="reference"){switch(i){case"clone":case"object":return bi(t,e);default:return yr(t,e)}}function wi(t,e){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let i={};if(Array.isArray(e))return e;let r=new Set(Object.keys(t));for(let[o,n]of Object.entries(e)){if(r.delete(o),n===null){i[o]=null;continue}if(n==null)continue;let s=wi(t[o],n);s!==null&&(i[o]=s)}for(let o of r)i[o]=null;return i}function xi(t,e){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let i={};if(Array.isArray(e))return structuredClone(e);let r=new Set(Object.keys(t));for(let[o,n]of Object.entries(e)){if(r.delete(o),n===null){i[o]=null;continue}if(n==null)continue;let s=xi(t[o],n);s!==null&&(i[o]=s)}for(let o of r)i[o]=null;return i}function zt(t,e){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let i={};if(Array.isArray(e)){for(let[o,n]of e.entries()){if(n===null){i[o]=null;continue}if(n==null)continue;let s=zt(t[o],n);s!==null&&(i[o]=s)}return e.length!==t.length&&(i.length=e.length),i}let r=new Set(Object.keys(t));for(let[o,n]of Object.entries(e)){if(r.delete(o),n===null){i[o]=null;continue}if(n==null)continue;let s=zt(t[o],n);s!==null&&(i[o]=s)}for(let o of r)i[o]=null;return i}function vi(t,e,i="reference"){switch(i){case"clone":return xi(t,e);case"object":return zt(t,e);default:return wi(t,e)}}function Et(t,e){if(t===e)return!1;if(e==null||typeof e!="object"||t!=null&&typeof t!="object")return!0;for(let[i,r]of Object.entries(e))if(r==null){if(i in t)return!0}else if(Et(t[i],r))return!0;return!1}function kr(t,e){return Array.isArray(e)?t!==e:Et(t,e)}function yi(t,e,i="reference"){switch(i){case"clone":case"object":return kr(t,e);default:return Et(t,e)}}function Sr(t){switch(t){case"boolean":return!1;case"integer":case"float":case"number":return 0;case"map":return new Map;case"set":return new Set;case"array":return[];case"proxy":case"object":return null;default:case"string":return""}}function Si(t,e,i,r){return t??={},new Proxy(t,{get(o,n){let s=o[n];if(typeof n!="symbol"){let l=r?`${r}.${n}`:n;if(r?i.add(l):e.add(l),typeof s=="object"&&s!=null)return Si(s,e,i,l)}return s},has(o,n){let s=Reflect.has(o,n);if(typeof n!="symbol"){let l=r?`${r}.${n}`:n;r?i.add(l):e.add(l)}return s}})}var At=new WeakMap,Ci=new WeakMap;function Mn(t){if(t==null||typeof t!="object")return null;let e=Ci.get(t);if(!e){let i=new Set;e={subscribe(r){i.add(r)},unsubscribe(r){i.delete(r)},emit(r){for(let o of i)o(r)}},Ci.set(t,e)}return e}function Mt(t,e){let i={},r=i;for(let o=0;o<t.length-1;o++)r[t[o]]={},r=r[t[o]];return r[t.at(-1)]=e,i}function Cr(t,e,i,r,o){if(t==null||typeof t!="object")return t;let n=Mn(t);o||(o=n);let s=At.get(t);if(s||(s=new Map,At.set(t,s)),s.has(r))return s.get(r);let l=new Proxy(t,{get(a,c){if(typeof c=="symbol")return a[c];let d=a[c];return Cr(d,e,i.concat(c),r,o)},set(a,c,d){if(a[c]=d,typeof c!="symbol"){let m=Mt(i.concat(c),d);if(e(m),o==null||o.emit(m),n&&n!==o){let u=Mt([c],d);n.emit(u)}}return!0},deleteProperty(a,c){if(typeof c!="symbol"){let d=Mt(i.concat(c),null);if(e(d),o==null||o.emit(d),n&&n!==o){let m=Mt([c],null);n.emit(m)}}return Reflect.deleteProperty(a,c)}});return At.set(l,s),n&&Ci.set(l,n),s.set(r,l),l}function An(t){switch(t){case"boolean":return e=>!!e;case"integer":return Math.round;case"float":case"number":return e=>+e;case"map":return Map;case"set":return Set;case"object":case"array":case"proxy":return e=>e;default:case"string":return e=>`${e}`}}function zi(t,...e){let i=new Set,r=new Set,o=e.map(a=>{let c=new Set,d=new Set,m=Si(a,c,d);return{poked:c,pokedDeep:d,proxy:m}}),n=Si(this??{},i,r),s=t.apply(n,o.map(a=>a.proxy)),l=t.name?!0:!i.size;return{props:{this:[...i],args:o.map(a=>[...a.poked])},deepPropStrings:{this:[...r],args:o.map(a=>[...a.pokedDeep])},deepProps:{this:[...r].map(a=>a.split(".")),args:o.map(a=>[...a.pokedDeep].map(c=>c.split(".")))},defaultValue:s,reusable:l}}function In(){return null}function Tn(t,e,i){let r=typeof e=="string"?{type:e}:e,{watchers:o,value:n,readonly:s,empty:l,type:a,enumerable:c,reflect:d,attr:m,nullable:u,parser:g,nullParser:h,get:p,is:_,diff:b,props:w}=r;if(o??=[],s??=!1,l===void 0&&(l=null),n??=l,p&&!w){let y=zi(p.bind(i),i,()=>n);n??=y.defaultValue,w=new Set([...y.props.this,...y.props.args[0]])}if(!a)if(n==null)a="string";else{let y=typeof n;a=y==="number"?Number.isInteger(n)?"integer":"float":y}return c??=t[0]!=="_",u??=a==="boolean"?!1:l==null,u||(l??=Sr(a),n??=l),d??=c?a!=="object":m?"write":!1,m??=d?ze(t):null,g??=An(a),h||(u?h=In:h=l===null?()=>Sr(a):()=>l),_??=a==="object"||a==="proxy"?(y,S)=>!yi(y,S):a==="array"?()=>!1:Object.is,b===void 0&&(b=a==="object"?(y,S)=>vi(y,S):null),{...r,type:a,is:_,diff:b,attr:m,reflect:d,readonly:s,enumerable:c,value:n,parser:g,nullParser:h,key:t,props:w,watchers:o}}function rt(t,e,i){var n,s;t.get;let r=i==null?t.nullParser.call(this,i):t.parser.call(this,i),o=r;if(e==null){if(r==null)return!1}else if(r!=null){if(t.diff){if(o=t.diff.call(this,e,r),o==null)return!1}else if(t.is.call(this,e,r))return!1}return t.values?t.values.set(this,r):t.values=new WeakMap([[this,r]]),(n=t.propChangedCallback)==null||n.call(this,t.key,e,r,o),(s=t.changedCallback)==null||s.call(this,e,r,o),!0}function Ei(t,e,i){let r=Tn(e,i,t);function o(p){if(r.type!=="proxy"||p==null||typeof p!="object")return p;let _=At.get(p);if(_&&_.has(this))return _.get(this);let b=this;return Cr(p,y=>{var C,T,M;let S=((C=r.values)==null?void 0:C.get(b))??p;(T=r.propChangedCallback)==null||T.call(b,r.key,S,S,y),(M=r.changedCallback)==null||M.call(b,S,S,y)},[],b,null)}function n(){var p;return(p=r.values)!=null&&p.has(this)?r.values.get(this):r.value}function s(){var _;if((_=r.values)!=null&&_.has(this))return r.values.get(this);let p=o.call(this,r.value);return p!==r.value&&(r.values?r.values.set(this,p):r.values=new WeakMap([[this,p]])),p}function l(p){var b;if(t===this&&((b=this==null?void 0:this.constructor)==null?void 0:b.prototype)===this)return;let _=this[e];rt.call(this,r,_,p)}function a(p){var w;if(t===this&&((w=this==null?void 0:this.constructor)==null?void 0:w.prototype)===this)return;let _=this[e],b=o.call(this,p);rt.call(this,r,_,b)}function c(){var b,w;let p=(b=r.computedValues)==null?void 0:b.get(this),_=this[e];(w=r.needsSelfInvalidation)==null||w.delete(this),rt.call(this,r,p,_)}if(r.props)for(let p of r.props)r.watchers.push([p,c]);function d(){let p=r.get.call(this,this,n.bind(this));return(r.computedValues??=new WeakMap).set(this,p),p}function m(){let p=r.get.call(this,this,s.bind(this)),_=o.call(this,p);return(r.computedValues??=new WeakMap).set(this,_),_}function u(p){r.needsSelfInvalidation?r.needsSelfInvalidation.add(this):r.needsSelfInvalidation=new WeakSet([this]);let _=this[e];r.set.call(this,p,l.bind(this));let b=this[e];r.needsSelfInvalidation.has(this)&&(r.needsSelfInvalidation.delete(this),rt.call(this,r,_,b))}function g(p){r.needsSelfInvalidation?r.needsSelfInvalidation.add(this):r.needsSelfInvalidation=new WeakSet([this]);let _=this[e];r.set.call(this,p,a.bind(this));let b=this[e];r.needsSelfInvalidation.has(this)&&(r.needsSelfInvalidation.delete(this),rt.call(this,r,_,b))}let h={enumerable:r.enumerable,configurable:!0,get:r.get?r.type==="proxy"?m:d:r.type==="proxy"?s:n,set:r.set?r.type==="proxy"?g:u:r.type==="proxy"?a:l};return Object.defineProperty(t,e,h),r}var zr=new Set;function ot(t="mdw_",e=4){let i;for(;zr.has(i=Math.random().toString(36).slice(2,e+2)););return zr.add(i),`${t}${i}`}var Mi,Er,Mr;function je(t){return Mi??=document.implementation.createHTMLDocument(),t?(Mr??=Mi.createRange(),Mr.createContextualFragment(t)):(Er??=Mi.createDocumentFragment(),Er.cloneNode())}var It=new Map;function Ii(t){let e=`#${ot()}`;return It.set(e,{fn:t}),`{${e}}`}var Ai=new Map;function Ti(t,...e){let i,r=e.map(s=>{switch(typeof s){case"string":return s;case"function":return Ii(s);case"object":{if(s==null)return"";let l=ot();return i??=new Map,i.set(l,s),`<div id="${l}"></div>`}default:throw new Error(`Unexpected substitution: ${s}`)}}),o=String.raw({raw:t},...r);if(i){let s=je(o);for(let[l,a]of i)s.getElementById(l).replaceWith(a);return s}let n;return Ai.has(o)?n=Ai.get(o):(n=je(o),Ai.set(o,n)),n.cloneNode(!0)}function Ln({nodes:t},e){let{nodeIndex:i,attrName:r}=this,o=t[i];switch(e){case void 0:case null:case!1:return o.removeAttribute(r),!1;case!0:return o.setAttribute(r,""),"";default:return o.setAttribute(r,e),e}}function Pn({nodeStates:t,comments:e,nodes:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n],l=s&1;if(!(r!=null&&r!==!1)){if(l)return;let m=e[o];m||(m=Re(),e[o]=m),i[n].replaceWith(m),t[n]|=1;return}let c=i[n],d=s&2;if(r instanceof Node)r.nodeType===11||c!==r&&(c.replaceWith(r),i[n]=r),t[n]|=2;else if(typeof r!="object")if(d){let m=new Text(r);c.replaceWith(m),i[n]=m,t[n]&=-3}else c.data=r;l&&(e[o].replaceWith(c),t[n]&=-2)}function Rn({nodeStates:t,nodes:e,comments:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n]&1,l=r!=null&&r!==!1;if(l===!s)return;let a=e[n],c=i[o];c||(c=Re(),i[o]=c),l?(c.replaceWith(a),t[n]&=-2):(a.replaceWith(c),t[n]|=1)}function On({comments:t,nodeStates:e,nodes:i}){let{commentIndex:r,nodeIndex:o}=this,n=Re();t[r]=n,e[o]|=1,i[o].replaceWith(n)}function Li(t,...e){let[{caches:i,searchStates:r}]=e,{cacheIndex:o,searchIndex:n,subSearch:s,invocation:l}=t,a=i[o],c=r[n];if(c&1)return{value:a,dirty:(c&2)===2};r[n]|=1;let d;if(l){if(s){let m=Li(s,...e);if(!m.dirty&&a!==void 0)return r[n]&=-3,{value:a,dirty:!1};d=t.invocation(m.value)}else d=t.invocation(...e);if(d===void 0||a===d)return{value:d,dirty:!1}}return i[o]=d,r[n]|=2,{value:d,dirty:!0}}function Ar({options:{context:t,store:e,injections:i}},r,o){return this.expression.call(t,e??o,i)}function Fn(t,e){return e[this.prop]}function Nn(t,e,i){let r=e;for(let o of this.deepProp){if(r==null)return r;if(!(o in r))return;r=r[o]}return r}var Dn=/{([^}]*)}/g;function Vn(t,e){if(e)return e[t]}function nt(t,e){if(!e)return;let i=e,r;for(r of t)if(typeof i=="object"){if(i===null)return null;if(!(r in i))return;i=i[r]}else return i[r];return i}function $n(t,e){let i=e;for(let r of t.split("."))if(!r||(i=i[r],i==null))return null;return i===e?null:i}var Ir=new Map,Ee=class t{static EVENT_PREFIX_REGEX=/^([*1~]+)?(.*)$/;_interpolationState={nodeIndex:-1,searchIndex:0,cacheIndex:0,commentIndex:0,adapterIndex:0,nodeEntry:null};static shadowRootTag=Symbol();nodesToBind=[];props=[];searches=[];initCache=[];searchByQuery;actionsByPropsUsed;postInitActions=[];tagsWithBindings;tags=[];adapter;events;cloneable;styles=[];adoptedStyleSheets=[];stylesFragment;allIds=[];temporaryIds;interpolated=!1;constructor(...e){this.template=je(),this.append(...e)}*[Symbol.iterator](){for(let e of this.styles)yield e;yield this.template}static compose(...e){for(let[r,o]of Ir)if(r.length===e.length&&e.every((n,s)=>n===r[s]))return o;let i=new t(...e);return Ir.set(e,i),i}append(...e){for(let i of e)typeof i=="string"?this.append(je(i.trim())):i instanceof t?this.append(...i):i instanceof DocumentFragment?this.template.append(i):(i instanceof CSSStyleSheet||i instanceof HTMLStyleElement)&&this.styles.push(i);return this}addCompositionEventListener(e){let i=e.tag??"",r=this.events??=new Map;return r.has(i)?r.get(i).push(e):r.set(i,[e]),this}#e(e,i,r){var o;if((o=this.events)!=null&&o.has(e))for(let n of this.events.get(e)){let s;n.handleEvent?s=n.handleEvent:n.deepProp.length?s=nt(n.deepProp,this.interpolateOptions.defaults):s=Vn(n.prop,this.interpolateOptions.defaults),i.addEventListener(n.type,r?s.bind(r):s,n)}}render(e,i,r={}){this.interpolated||this.interpolate({defaults:i??e,...r});let o=this.cloneable.cloneNode(!0),n=r.shadowRoot,s=n??r.target??o.firstElementChild,l={lastChildNode:null,lastChildNodeIndex:0,lastElement:null,nodeStates:new Uint8Array(this._interpolationState.nodeIndex+1),searchStates:new Uint8Array(this._interpolationState.searchIndex),comments:[],nodes:[],caches:this.initCache.slice(),refs:[],adapters:[],options:r},{nodes:a,refs:c,searchStates:d,caches:m}=l;for(let{tag:g,textNodes:h}of this.nodesToBind){let p;if(g===""){if(!h.length)continue;c.push(null),a.push(null),p=o.firstChild}else{let b=o.getElementById(g);if(c.push(b),a.push(b),this.#e(g,b,r.context),!h.length)continue;p=b.firstChild}let _=0;for(let b of h){for(;b!==_;)p=p.nextSibling,_++;a.push(p)}}this.#e("",r.context),this.#e(t.shadowRootTag,r.context.shadowRoot,r.context);for(let g of this.postInitActions)g.invocation(l);let u=(g,h)=>{var _;if(!g)return;let p=!1;for(let b of this.props){if(!((_=this.actionsByPropsUsed)!=null&&_.has(b))||!(b in g))continue;let w=this.actionsByPropsUsed.get(b);for(let y of w){p=!0;let{dirty:S,value:C}=Li(y.search,l,g,h);S&&y.invocation(l,C,g,h)}}p&&d.fill(0)};return n?(r.context??=n.host,"adoptedStyleSheets"in n?this.adoptedStyleSheets.length&&(n.adoptedStyleSheets=[...n.adoptedStyleSheets,...this.adoptedStyleSheets]):this.stylesFragment.hasChildNodes()&&o.prepend(this.stylesFragment.cloneNode(!0))):r.context??=s,e!==this.interpolateOptions.defaults&&u(e,i),n&&(n.append(o),customElements.upgrade(n)),u.target=s,u.byProp=(g,h,p)=>{var y,S;if(!((y=this.actionsByPropsUsed)!=null&&y.has(g)))return;let _=!1;if((S=this.searchByQuery)!=null&&S.has(g)){_=!0;let C=this.searchByQuery.get(g);if(m[C.cacheIndex]===h)return;m[C.cacheIndex]=h,d[C.searchIndex]=3}let b,w=this.actionsByPropsUsed.get(g);for(let C of w)if(C.search.query===g)C.invocation(l,h);else{b??={[g]:h},p??=b,_=!0;let T=Li(C.search,l,b,p);T.dirty&&C.invocation(l,T.value,b,p)}_&&d.fill(0)},u.state=l,u}#r(e,i,r,o){var T,M;let{nodeValue:n,nodeName:s,nodeType:l}=e,a,c;if(l===Node.ATTRIBUTE_NODE?a=e:c=e,o==null){if(!n)return;let z=n.trim();if(!z)return;if(a||(i==null?void 0:i.tagName)==="STYLE"){if(z[0]!=="{")return;let{length:v}=z;if(z[v-1]!=="}")return;o=z.slice(1,-1)}else{let v=z.split(Dn);if(v.length<3)return;if(v.length===3&&!v[0]&&!v[2])o=v[1];else{for(let[k,D]of v.entries())if(k%2){let R=fr();c.before(R),this.#r(R,i,r,D)}else D&&c.before(D);return!0}}}let d=o,m=o[0]==="!",u=!1;m&&(o=o.slice(1),u=o[0]==="!",u&&(o=o.slice(1)));let g,h;if(c){i!==c.parentElement&&(i=c.parentElement),h=0;let z=c;for(;z=z.previousSibling;)h++}else if(i!==a.ownerElement&&(i=a.ownerElement),s.startsWith("on")){let z=s.indexOf("-");if(z===-1)return;g=z===2}if(g){i.removeAttribute(s);let z=this.#i(i),v=s.slice(3),[,k,D]=v.match(/^([*1~]+)?(.*)$/),R,P,V=[];if(o.startsWith("#"))R=It.get(o).fn;else{let $=o.split(".");$.length===1?(P=o,V=[]):(P=$[0],V=$)}this.addCompositionEventListener({tag:z,type:D,handleEvent:R,prop:P,deepProp:V,once:k==null?void 0:k.includes("1"),passive:k==null?void 0:k.includes("~"),capture:k==null?void 0:k.includes("*")});return}let p;if((T=this.searchByQuery)!=null&&T.has(d))p=this.searchByQuery.get(d);else{let z=o,v=z!==d,k;if(v&&((M=this.searchByQuery)!=null&&M.has(z)))k=this.searchByQuery.get(z);else{let D,R,P,V,$,re,O,A;if(o.startsWith("#")){if(A=It.get(o),!A)return;D=A.fn,O=Ar,A.props?(R=A.props,P=A.deepProps,V=A.defaultValue??null):V=A.fn}else V=null,r!=null&&r.defaults&&(V=nt(o.split("."),r.defaults)??null),V==null&&(r!=null&&r.injections)&&(V=$n(o,r.injections));if(!R)if(typeof V=="function"){let H=zi.call(this,V,r==null?void 0:r.defaults,r==null?void 0:r.injections),oe=new Set([...H.props.this,...H.props.args[0],...H.props.args[1]]),ke=new Set([...H.deepPropStrings.this,...H.deepPropStrings.args[0]]);D=V,V=H.defaultValue,R=[...oe],P=[...ke].map(dt=>dt.split(".")),O=Ar}else{let H=o.split(".");H.length===1?($=o,R=[$],O=Fn):(R=[H[0]],re=H,P=[H],O=Nn)}A&&(A.defaultValue=V,A.props=R,A.deepProps=P),k={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:z,defaultValue:V,subSearch:null,prop:$,propsUsed:R,deepProp:re,deepPropsUsed:P,invocation:O,expression:D},this.addSearch(k)}v?(p={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:d,subSearch:k,negate:m,doubleNegate:u,prop:k.prop,deepProp:k.deepProp,propsUsed:k.propsUsed,deepPropsUsed:k.deepPropsUsed,defaultValue:u?!!k.defaultValue:m?!k.defaultValue:k.defaultValue,invocation(D){return this.doubleNegate?!!D:this.negate?!D:D}},this.addSearch(p)):p=k}let _,b=null,w=p.defaultValue;c?b=h:s==="mdw-if"?(_=this.#i(i),i.removeAttribute(s),w=w!=null&&w!==!1):(b=s,s==="id"||w==null||w===!1?i.removeAttribute(s):i.setAttribute(s,w===!0?"":w)),_??=this.#i(i);let y=this._interpolationState.nodeEntry;(!y||y.tag!==_)&&(y={tag:_,textNodes:[]},this._interpolationState.nodeEntry=y,this.nodesToBind.push(y),this._interpolationState.nodeIndex++);let S;if(c)switch(y.textNodes.push(h),this._interpolationState.nodeIndex++,S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,invocation:Pn,defaultValue:w,search:p},typeof w){case"string":c.data=w;break;case"number":c.data=`${w}`;break;default:c.data="";break}else b?S={nodeIndex:this._interpolationState.nodeIndex,attrName:b,defaultValue:w,invocation:Ln,search:p}:(S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,defaultValue:w,invocation:Rn,search:p},w||this.postInitActions.push({...S,invocation:On}));this.addAction(S),(this.tagsWithBindings??=new Set).add(_)}#i(e){if(!e)return"";let i=e.id;return i?this.allIds.includes(i)||this.allIds.push(i):(i=ot(),(this.temporaryIds??=new Set).add(i),this.allIds.push(i),e.id=i),i}#t(e,i){let r=e.getAttribute("mdw-for"),o=r==null?void 0:r.trim();if(!o||o[0]!=="{")return null;let{length:n}=o;if(o[n-1]!=="}")return null;let s=o.slice(1,-1),[l,a]=s.split(/\s+of\s+/);e.removeAttribute("mdw-for");let c=e.ownerDocument.createElement("template");e.replaceWith(c);let d=this.#i(c),m=this._interpolationState.nodeEntry;(!m||m.tag!==d)&&(m={tag:d,textNodes:[]},this._interpolationState.nodeEntry=m,this.nodesToBind.push(m),this._interpolationState.nodeIndex++);let u=new t;u.template.append(e);let g={...i.injections,[l]:null,index:null},h=a.split("."),p=h.length>1?h:null,_=p?h[0]:a,b=[_],w={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:null,prop:null,deepProp:p,propsUsed:b,deepPropsUsed:p?[p]:[[_]],defaultValue:{},invocation:null},y={defaultValue:null,nodeIndex:this._interpolationState.nodeIndex,search:w,commentIndex:this._interpolationState.commentIndex++,adapterIndex:this._interpolationState.adapterIndex++,injections:g,invocation(C,T,M,z){let v=C.adapters[this.adapterIndex];if(!v){let O=C.nodes[this.nodeIndex],A=Re();if(C.comments[this.commentIndex])throw new Error("Comment already exists at index");C.comments[this.commentIndex]=A,O.replaceWith(A);let H=u.props.filter(oe=>oe!==l&&oe!==_);v=new tt({anchorNode:A,composition:u,renderOptions:{target:null,context:C.options.context,store:C.options.store,injections:this.injections},parentProps:H}),C.adapters[this.adapterIndex]=v}let k=C.options.injections??this.injections,D=z??C.options.store,R=p?nt(p,D):D[_];if(R===void 0&&p&&k&&(R=nt(p,k)),!R||R.length===0){v.removeEntries();return}let P=p?nt(p,M):M[_],V=u.props.some(O=>O!==l&&O!==_&&O in M);if(P===void 0&&!V)return;let $={...M};v.startBatch();let re;if(!V&&!(re=Array.isArray(P))){let O=re?P.entries():Object.entries(P);for(let[A,H]of O){if(A==="length"||H===null)continue;let oe=+A,ke=R[oe];$[l]=H,k[l]=ke,k.index=oe,v.renderOptions.injections=k,v.renderData(oe,$,D,ke,H)}}else{P||delete $[l];for(let[O,A]of R.entries()){let H;if(P){if(!V&&!(O in P)||(H=P[O],H===null))continue;$[l]=H}k[l]=A,k.index=O,v.renderOptions.injections=k,v.renderData(O,$,D,A,H)}}v.stopBatch(),v.removeEntries(R.length)}};return u.interpolate({defaults:i.defaults,injections:g}),b.push(...u.props),this.addSearch(w),this.addAction(y),(this.tagsWithBindings??=new Set).add(d),u}interpolate(e){var n;this.interpolateOptions=e,this.cloneable=this.template.cloneNode(!0);let r=document.createTreeWalker(this.cloneable,5),o=r.nextNode();for(;o;){let s=null;switch(o.nodeType){case Node.ELEMENT_NODE:if(s=o,s.tagName==="TEMPLATE"){for(;s.contains(o=r.nextNode()););continue}if(s.tagName==="SCRIPT"){for(;s.contains(o=r.nextNode()););continue}if(s.hasAttribute("mdw-for")){for(;s.contains(o=r.nextNode()););this.#t(s,e);continue}else{let l=s.attributes.id;l&&(this.#r(l,s,e),this.#i(s));for(let a of[...s.attributes].reverse())a.nodeName!=="id"&&this.#r(a,s,e)}break;case Node.TEXT_NODE:if(s=o.parentElement,this.#r(o,s,e)){let l=r.nextNode();o.remove(),o=l;continue}break;default:throw new Error(`Unexpected node type: ${o.nodeType}`)}o=r.nextNode()}"adoptedStyleSheets"in document?this.adoptedStyleSheets=[...ur(this.styles)]:(this.stylesFragment=je(),this.stylesFragment.append(...hr(this.styles))),this.props=this.actionsByPropsUsed?[...this.actionsByPropsUsed.keys()]:[];for(let s of this.allIds)(n=this.tagsWithBindings)!=null&&n.has(s)||this.nodesToBind.push({tag:s,textNodes:[]});this.tags=this.nodesToBind.map(s=>s.tag),this.interpolated=!0}addSearch(e){return this.searches.push(e),e.query&&((this.searchByQuery??=new Map).set(e.query,e),this.initCache[e.cacheIndex]=e.defaultValue),e}addAction(e){let i=this.actionsByPropsUsed??=new Map;for(let r of e.search.propsUsed)i.has(r)?i.get(r).push(e):i.set(r,[e]);return e}};function F(t,e){return(i,r,o)=>{r==null?o.refs[e].removeAttribute(t):o.refs[e].setAttribute(t,r)}}var f=class t extends HTMLElement{static elementName;static get observedAttributes(){return this.attrList.keys()}compose(){return this.#t??=new Ee}static _composition=null;static _props=new Map;static _attrs=new Map;static _propChangedCallbacks=new Map;static _attributeChangedCallbacks=new Map;static _onComposeCallbacks=[];static _onConnectedCallbacks=[];static _onDisconnectedCallbacks=[];static _onConstructedCallbacks=[];static interpolatesTemplate=!0;static supportsElementInternals="attachInternals"in HTMLElement.prototype;static supportsElementInternalsRole=t.supportsElementInternals&&"role"in ElementInternals.prototype;static defined=!1;static registrations=new Map;static expressions=this.set;static methods=this.set;static overrides=this.set;static props=this.observe;static idl=this.prop;static _addCallback(e,i){if(!this.hasOwnProperty(e)){this[e]=[...this[e],i];return}this[e].push(i)}static _removeCallback(e,i){this.hasOwnProperty(e)||(this[e]=[...this[e]]),this[e]=this[e].filter(r=>r!==i)}static _removeFromCallbackMap(e,i,r){if(!e.has(i))return;if(!r){e.delete(i);return}let o=e.get(i).filter(n=>n!==r);o.length===0?e.delete(i):e.set(i,o)}static append(...e){return this._onComposeCallbacks.push(({composition:i})=>{i.append(...e)}),this._addCallback("_onComposeCallbacks",(i=>{let{composition:r}=i;r.append(...e)})),this}static recompose(e){return this._addCallback("_onComposeCallbacks",e),this}static css(e,...i){return this._addCallback("_onComposeCallbacks",(r=>{let{composition:o}=r;typeof e=="string"||Array.isArray(e)?o.append(yt(e,...i)):o.append(e,...i)})),this}static autoRegister(e){return this.hasOwnProperty("defined")&&this.defined?this:(this.register(e),this)}static html(e,...i){return this._addCallback("_onComposeCallbacks",(r=>{let{composition:o}=r;o.append(Ti(e,...i))})),this}static extend(e){return e?e(this):class extends this{}}static setStatic(e){return Object.assign(this,e),this}static readonly(e,i){return this.set(e,{...i,writable:!1})}static set(e,i){return Object.defineProperties(this.prototype,Object.fromEntries([...Object.entries(e).map(([r,o])=>(this.undefine(r),[r,{enumerable:r[0]!=="_",configurable:!0,value:o,writable:!0,...i}])),...Object.getOwnPropertySymbols(e).map(r=>[r,{enumerable:!1,configurable:!0,value:e[r],writable:!0,...i}])])),this}static mixin(e){return e(this)}static register(e){return e&&(this.elementName=e),customElements.define(this.elementName,this),t.registrations.set(this.elementName,this),this.defined=!0,this}static get propList(){return this.hasOwnProperty("_props")||(this._props=new Map(this._props)),this._props}static get attrList(){return this.hasOwnProperty("_attrs")||(this._attrs=new Map(this._attrs)),this._attrs}static get propChangedCallbacks(){return this.hasOwnProperty("_propChangedCallbacks")||(this._propChangedCallbacks=new Map([...this._propChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._propChangedCallbacks}static get attributeChangedCallbacks(){return this.hasOwnProperty("_attributeChangedCallbacks")||(this._attributeChangedCallbacks=new Map([...this._attributeChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._attributeChangedCallbacks}static prop(e,i){let r=Ei(this.prototype,e,i),{changedCallback:o,attr:n,reflect:s,watchers:l}=r;return o&&l.push([e,o]),r.changedCallback=function(c,d,m){this.#c.call(this,e,c,d,m)},this.propList.set(e,r),n&&(s===!0||s==="read")&&(r.enumerable||!this.attrList.has(n)||!this.attrList.get(n).enumerable)&&this.attrList.set(n,r),this.onPropChanged(l),this}static setPrototype(e,i){return this.prop(e,i),null}static define(e){return Object.defineProperties(this.prototype,Object.fromEntries(Object.entries(e).map(([i,r])=>(this.undefine(i),[i,{enumerable:i[0]!=="_",configurable:!0,...typeof r=="function"?{get:r}:r}])))),this}static undefine(e){if(Reflect.deleteProperty(this.prototype,e),this.propList.has(e)){let{watchers:i,attr:r,reflect:o}=this.propList.get(e);if(i.length&&this.propChangedCallbacks.has(e)){let n=this.propChangedCallbacks.get(e);for(let[s,l]of i){let a=n.indexOf(l);a!==-1&&n.splice(a,1)}}r&&(o===!0||o==="read")&&this.attrList.delete(r),this.propList.delete(e)}return this}static observe(e){for(let[i,r]of Object.entries(e??{})){let o=typeof r=="function"?{reflect:!1,get:r}:r;this.prop(i,o)}return this}static defineStatic(e){for(let[i,r]of Object.entries(e??{}))Ei(this,i,{reflect:!1,...typeof r=="function"?{get:r}:typeof r=="string"?{type:r}:r});return this}static events(e,i){return this.on({composed({composition:r}){for(let[o,n]of Object.entries(e)){let[,s,l]=o.match(/^([*1~]+)?(.*)$/),a,c=[];if(typeof n=="string"){let d=n.split(".");d.length===1?(a=n,c=[]):(a=d[0],c=d)}r.addCompositionEventListener({type:l,once:s==null?void 0:s.includes("1"),passive:s==null?void 0:s.includes("~"),capture:s==null?void 0:s.includes("*"),...typeof n=="function"?{handleEvent:n}:typeof n=="string"?{prop:a,deepProp:c}:n,...i})}}}),this}static childEvents(e,i){for(let[r,o]of Object.entries(e))this.events(o,{tag:ze(r),...i});return this}static rootEvents(e,i){return this.events(e,{tag:Ee.shadowRootTag,...i})}static on(e,i){let r=typeof e=="string"?{[e]:i}:e;for(let[o,n]of Object.entries(r)){let s;switch(o){case"composed":s="_onComposeCallbacks";break;case"constructed":s="_onConstructedCallbacks";break;case"connected":s="_onConnectedCallbacks";break;case"disconnected":s="_onDisconnectedCallbacks";break;case"props":this.onPropChanged(n);continue;case"attrs":this.onAttributeChanged(n);continue;default:if(o.endsWith("Changed")){let l=o.slice(0,o.length-7);this.onPropChanged({[l]:n});continue}throw new Error("Invalid callback name")}this._addCallback(s,n)}return this}static off(e,i){let r=typeof e=="string"?{[e]:i}:e;for(let[o,n]of Object.entries(r)){let s;switch(o){case"composed":s="_onComposeCallbacks";break;case"constructed":s="_onConstructedCallbacks";break;case"connected":s="_onConnectedCallbacks";break;case"disconnected":s="_onDisconnectedCallbacks";break;case"props":this.offPropChanged(n);continue;case"attrs":this.offAttributeChanged(n);continue;default:if(o.endsWith("Changed")){let l=o.slice(0,o.length-7);this.offPropChanged({[l]:n});continue}throw new Error("Invalid callback name")}this._removeCallback(s,n)}return this}static offPropChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{propChangedCallbacks:r}=this;for(let[o,n]of i)this._removeFromCallbackMap(r,o,n);return this}static offAttributeChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{attributeChangedCallbacks:r}=this;for(let[o,n]of i)this._removeFromCallbackMap(r,o,n);return this}static onPropChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{propChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}static onAttributeChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{attributeChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}#e;#r=new Map;#i=new Map;#t;#n=!1;#o=[];#s;#a=null;constructor(...e){super(),t.supportsElementInternals&&(this.elementInternals=this.attachInternals()),this.attachShadow({mode:"open",delegatesFocus:this.delegatesFocus}),this.render=this.composition.render(this.constructor.prototype,this,{defaults:this.constructor.prototype,store:this,shadowRoot:this.shadowRoot,context:this});for(let i of this.static._onConstructedCallbacks)i.call(this,this.callbackArguments)}propChangedCallback(e,i,r,o=r){this.#n?this.#o.push([e,o,this]):this.render.byProp(e,o,this);let{_propChangedCallbacks:n}=this.static;if(n.has(e))for(let s of n.get(e))s.call(this,i,r,o,this)}attributeChangedCallback(e,i,r){let{attributeChangedCallbacks:o}=this.static;if(o.has(e))for(let d of o.get(e))d.call(this,i,r,this);let{attrList:n}=this.static;if(!n.has(e))return;let s=n.get(e);if(s.attributeChangedCallback){s.attributeChangedCallback.call(this,e,i,r);return}let l;if(this.attributeCache.has(e)&&(l=this.attributeCache.get(e),l.stringValue===r))return;let a=this[s.key],c=r===null?s.nullParser(r):s.type==="boolean"?!0:s.parser(r);c!==a&&(l?(l.stringValue=r,l.parsedValue=c):this.attributeCache.set(e,{stringValue:r,parsedValue:c}),this[s.key]=c)}get#l(){var e;return(e=this.#t)==null?void 0:e.template}#c(e,i,r,o){let{propList:n}=this.static;if(n.has(e)){let{reflect:s,attr:l}=n.get(e);if(l&&(s===!0||s==="write")){let a,c=!1,{attributeCache:d}=this;if(d.has(l)?(a=d.get(l),c=a.parsedValue!==r):(a={},d.set(l,a),c=!0),c){let m=vr(r);a.parsedValue=r,a.stringValue=m,m==null?this.removeAttribute(l):this.setAttribute(l,m)}}}this.propChangedCallback(e,i,r,o)}get static(){return this.constructor}patch(e){this.#n=!0,gi(this,e,"object");for(let[i,r,o]of this.#o)i in e||this.render.byProp(i,r,o);this.#o.slice(0,this.#o.length),this.render(e),this.#n=!1}get refs(){return this.#e??=new Proxy({},{get:(e,i)=>{let r=this.composition,o;if(!r.interpolated){if(this.#i.has(i)&&(o=this.#i.get(i).deref(),o))return o;let l=ze(i);return o=r.template.getElementById(l),o?(this.#i.set(i,new WeakRef(o)),o):null}if(this.#r.has(i)&&(o=this.#r.get(i).deref(),o))return o;let n=ze(i),s=this.composition.tags.indexOf(n);return o=this.render.state.refs[s],o?(this.#r.set(i,new WeakRef(o)),o):null}})}get attributeCache(){return this.#s??=new Map}get callbackArguments(){return this.#a??={composition:this.#t,refs:this.refs,html:Ti.bind(this),inline:Ii,template:this.#l,element:this}}get composition(){if(this.#t)return this.#t;if(this.static.hasOwnProperty("_composition"))return this.#t=this.static._composition,this.static._composition;this.compose();for(let e of this.static._onComposeCallbacks)e.call(this,this.callbackArguments);return this.static._composition=this.#t,this.#t}connectedCallback(){for(let e of this.static._onConnectedCallbacks)e.call(this,this.callbackArguments)}disconnectedCallback(){for(let e of this.static._onDisconnectedCallbacks)e.call(this,this.callbackArguments)}};f.prototype.delegatesFocus=!1;function G(t){return t.observe({density:"integer"}).css`:host{--mdw-density:var(--mdw-density__default, 0)}:host([density]){--mdw-density:0}:host([density="-1"]){--mdw-density:-1}:host([density="-2"]){--mdw-density:-2}:host([density="-3"]){--mdw-density:-3}:host([density="-4"]){--mdw-density:-4}:host([density="1"]){--mdw-density:1}:host([density="2"]){--mdw-density:2}:host([density="3"]){--mdw-density:3}:host([density="4"]){--mdw-density:4}`}function E(t){return t.observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string",outlined:"boolean"}).html`<div id=outline mdw-if={outlined} class=outline disabled={disabledState} focused={focusedState} pressed={pressedState} hovered={hoveredState}></div>`.css`:host{--mdw-shape__size:0px;--mdw-shape__ltr:calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl:calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__inline-start-deg:calc(var(--mdw-dir, 1) * -90deg);--mdw-shape__size__top-start-size:var(--mdw-shape__size);--mdw-shape__size__top-end-size:var(--mdw-shape__size);--mdw-shape__size__bottom-start-size:var(--mdw-shape__size);--mdw-shape__size__bottom-end-size:var(--mdw-shape__size);--mdw-shape__size__top-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));z-index:0;border-start-start-radius:calc(var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__size__bottom-end-size))}:host([shape-style=none]){--mdw-shape__size:0px}:host([shape-style=extra-small]){--mdw-shape__size:var(--mdw-shape__extra-small)}:host([shape-style=small]){--mdw-shape__size:var(--mdw-shape__small)}:host([shape-style=medium]){--mdw-shape__size:var(--mdw-shape__medium)}:host([shape-style=large]){--mdw-shape__size:var(--mdw-shape__large)}:host([shape-style=extra-large]){--mdw-shape__size:var(--mdw-shape__extra-large)}:host([shape-style=full]){--mdw-shape__size:var(--mdw-shape__full)}:host([shape-style=inherit]){--mdw-shape__size:inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-bottom]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__top-end-size:0px}:host([shape-start]){--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-end]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px}`.css`.outline{position:absolute;inset:0;overflow:hidden;border-style:solid;border-width:1px;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}.outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}.outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}`}var Hn=Be.map(t=>[`:host([color="${t}"]){`,`--mdw-bg: var(--mdw-color__${t});`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([color="${t}-container"]){`,`--mdw-bg: var(--mdw-color__${t}-container);`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),Bn=Be.map(t=>[`:host([ink="${t}"]){`,`--mdw-ink: var(--mdw-color__${t});`,"}",`:host([ink="on-${t}"]){`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([ink="on-${t}-container"]){`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),jn=oi.map(t=>[`:host([type-style|="${t}"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-large__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-large__letter-spacing);`,"}",`:host([type-style="${t}-medium"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-medium__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-medium__letter-spacing);`,"}",`:host([type-style="${t}-small"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-small__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-small__letter-spacing);`,"}"].join("")).join("");function x(t){return t.observe({color:"string",ink:"string",typeStyle:"string"}).css(Hn).css`:host([color=background]){--mdw-bg:var(--mdw-color__background);--mdw-ink:var(--mdw-color__on-background)}:host([color=surface-dim]){--mdw-bg:var(--mdw-color__surface-dim)}:host([color=surface-bright]){--mdw-bg:var(--mdw-color__surface-bright)}:host([color=surface-container-lowest]){--mdw-bg:var(--mdw-color__surface-container-lowest)}:host([color=surface-container-low]){--mdw-bg:var(--mdw-color__surface-container-low)}:host([color=surface-container-high]){--mdw-bg:var(--mdw-color__surface-container-high)}:host([color=surface-container-highest]){--mdw-bg:var(--mdw-color__surface-container-highest)}:host([color=surface-primary]){--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__primary)}:host([color$=variant]){--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__on-surface-variant)}:host([color^=inverse]){--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([color=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}`.css(Bn).css`:host([ink=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}:host([ink=outline]){--mdw-ink:var(--mdw-color__outline)}:host([ink=surface-container-highest]){--mdw-ink:var(--mdw-color__surface-container-highest)}:host([ink=on-surface-variant]){--mdw-ink:var(--mdw-color__on-surface-variant)}:host([ink=inverse-on-surface]){--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([ink=inherit]){--mdw-ink:inherit}`.css(jn)}var Tr=f.extend().mixin(x).mixin(G).mixin(E).html`<slot id=slot></slot>`.css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-error);--mdw-bg:var(--mdw-color__error);--mdw-type__font:var(--mdw-typescale__label-small__font);--mdw-type__letter-spacing:var(--mdw-typescale__label-small__letter-spacing);position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;min-block-size:var(--mdw-typescale__label-small__line-height);min-inline-size:var(--mdw-typescale__label-small__line-height);padding-block:calc(8px - var(--mdw-typescale__body-small__line-height)/ 2);padding-inline:max(4px,calc(4px + (var(--mdw-density) * 2px)));background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);text-align:center}@supports (width:1lh){:host{min-block-size:1lh;min-inline-size:1lh;padding-inline:max(.25lh,calc(.25lh + (var(--mdw-density) * 2px)))}}:host(:empty){min-block-size:6px;min-inline-size:6px;margin:5px;padding:0}`.autoRegister("mdw-badge");function L(t){return t.set({delegatesFocus:!0}).extend(Oe>=111?e=>e:e=>class extends e{get tabIndex(){return super.tabIndex}set tabIndex(i){if(!(i===super.tabIndex&&i!==-1)){if(this.delegatesFocus&&ce(this)){if(this.getAttribute("tabindex")===i.toString())return;let r=o=>{o.stopImmediatePropagation(),o.stopPropagation(),o.type==="blur"&&this.focus()};for(let o of["blur","focus","focusout","focusin"])this.addEventListener(o,r,{capture:!0,once:!0});super.tabIndex=i;for(let o of["blur","focus","focusout","focusin"])this.removeEventListener(o,r,{capture:!0});return}super.tabIndex=i}}})}function Pi(t){return t?t.includes("px")||t.includes("em")||t.includes("ex")?t:`calc(${t.replace("sp","")} * 0.0625rem)`:""}function Fe(t){return t.mixin(L).observe({textPadding:"string",textPaddingTop:"string",textLeading:"string",textPaddingBottom:"string"}).observe({_computedTextPaddingTop({textPaddingTop:e,textPadding:i}){return Pi(e??i)},_computedTextPaddingBottom({textPaddingBottom:e,textPadding:i}){return Pi(e??i)},_computedTextLeading({textLeading:e}){return Pi(e)}}).observe({_beforeStyle({_computedTextPaddingTop:e,_computedTextLeading:i}){return i?`margin-top:${i}`:e?`margin-top:${e}`:""},_afterStyle({_computedTextPaddingBottom:e}){return e?`vertical-align:calc(-1em + (-1 * ${e}));`:""}}).html`<div id=wrapper style={_wrapperStyle} before={!!_beforeStyle} after={!!_afterStyle}><span id=before mdw-if={!!_beforeStyle} style={_beforeStyle} text-leading={textLeading}></span><span id=content before={!!_beforeStyle} after={!!_afterStyle}><span id=after mdw-if={!!_afterStyle} style={_afterStyle}></span></span></div>`.recompose(({refs:{content:e,slot:i}})=>{e.prepend(i)}).css`:host{display:block}:host(:where([text-padding],[text-padding-top],[text-padding-bottom])){display:flex}#wrapper{display:contents}#wrapper:where([before],[after]){display:flex;align-items:baseline}#wrapper[before]{margin-block-start:-1em}#wrapper[after]{margin-block-end:-1em}#before{display:inline-block;block-size:1.4ex;padding-block-start:1em}@supports (height:1cap){#before{block-size:1cap}}#before[text-leading]{block-size:0}#content{display:contents}#content:where([before],[after]){display:block}#after{display:inline-block;padding-block-end:1em}`}function de(t){return t.observe({block:"boolean",inline:"boolean",row:"boolean",x:{type:"string",empty:"start",value:"start"},y:{type:"string",empty:"start",value:"start"},gap:"float",padding:"string"}).css`:host{display:flex;flex-direction:column;box-sizing:border-box}:host(:is([inline])){display:inline-flex}:host(:is([block])){display:block}:host(:is([inline][block])){display:inline-block}:host(:is([row])){flex-direction:row}:host(:is([row][y=start],[x=start]:not([row]))){align-items:flex-start}:host(:is([row][y=end],[x=end]:not([row]))){align-items:flex-end}:host(:is([row][y=center],[x=center]:not([row]))){align-items:center}:host(:is([row][y=between],[x=between]:not([row]))){align-items:space-between}:host(:is([row][y=around],[x=around]:not([row]))){align-items:space-around}:host(:is([row][y=baseline],[x=baseline]:not([row]))){align-items:baseline}:host(:is([row][y=stretch],[x=stretch]:not([row]))){align-items:stretch}:host(:is([row][x=start],[y=start]:not([row]))){justify-content:flex-start}:host(:is([row][x=end],[y=end]:not([row]))){justify-content:flex-end}:host(:is([row][x=center],[y=center]:not([row]))){justify-content:center}:host(:is([row][x=between],[y=between]:not([row]))){justify-content:space-between}:host(:is([row][x=stretch],[y=stretch]:not([row]))){justify-content:stretch}:host(:is([wrap])){flex-wrap:wrap}:host(:is([wrap=reverse])){flex-wrap:wrap-reverse}:host(:is([gap])){gap:0}:host(:is([gap="4"])){gap:4px}:host(:is([gap="8"])){gap:8px}:host(:is([gap="12"])){gap:12px}:host(:is([gap="16"])){gap:16px}:host(:is([gap="20"])){gap:20px}:host(:is([gap="24"])){gap:24px}:host(:is([padding])){padding:0}:host(:is([padding=pane])){padding:var(--mdw-pane__padding,16px)}:host(:is([padding="4"])){padding:4px}:host(:is([padding="8"])){padding:8px}:host(:is([padding="12"])){padding:12px}:host(:is([padding="16"])){padding:16px}:host(:is([padding="20"])){padding:20px}:host(:is([padding="24"])){padding:24px}:host(:is([padding-x])){padding-inline:0}:host(:is([padding-x=pane])){padding-inline:var(--mdw-pane__padding-inline,16px)}:host(:is([padding-x="4"])){padding-inline:4px}:host(:is([padding-x="8"])){padding-inline:8px}:host(:is([padding-x="12"])){padding-inline:12px}:host(:is([padding-x="16"])){padding-inline:16px}:host(:is([padding-x="20"])){padding-inline:20px}:host(:is([padding-x="24"])){padding-inline:24px}:host(:is([padding-y])){padding-block:0}:host(:is([padding-y=pane])){padding-block:var(--mdw-pane__padding-block,16px)}:host(:is([padding-y="4"])){padding-block:4px}:host(:is([padding-y="8"])){padding-block:8px}:host(:is([padding-y="12"])){padding-block:12px}:host(:is([padding-y="16"])){padding-block:16px}:host(:is([padding-y="20"])){padding-block:20px}:host(:is([padding-y="24"])){padding-block:24px}`}var j=f.extend().mixin(x).mixin(de).html`<slot id=slot></slot>`.css`:host(:where([color])){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([ink]){color:rgb(var(--mdw-ink))}:host([type-style]){font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}#slot::slotted([flex-0]){flex:0}#slot::slotted([flex-1]){flex:1}#slot::slotted([flex-none]){flex:none}`.autoRegister("mdw-box");var Lr=j.extend().mixin(Fe).css`:host{font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-body");function B(t){return t.observe({_ariaRole:"string"}).set({_onConnectAriaValues:null}).methods({readAriaProperty(e){if(this.elementInternals&&e in this.elementInternals)return this.elementInternals[e];if(e in this)return this[e];let i=e;return i.startsWith("aria")&&(i=`aria-${i.slice(4).toLowerCase()}`),this.getAttribute(e)},updateAriaProperty(e,i){if(this.elementInternals&&e in this.elementInternals)this.elementInternals[e]=i;else if(this.isConnected)if(e in this)this[e]=i;else{let r=e;r.startsWith("aria")&&(r=`aria-${r.slice(4).toLowerCase()}`),i==null?this.removeAttribute(e):this.setAttribute(r,i)}else this._onConnectAriaValues??=new Map,this._onConnectAriaValues.set(e,i)}}).on({_ariaRoleChanged(e,i){this.updateAriaProperty("role",i)},constructed(){this.updateAriaProperty("role",this._ariaRole)},connected(){if(this._onConnectAriaValues){for(let[e,i]of this._onConnectAriaValues)this.updateAriaProperty(e,i);this._onConnectAriaValues=null}}})}var Yn=["button","[href]","input","select","textarea","[tabindex]"].join(", ");function Z(t){return t.mixin(B).observe({kbdNav:{empty:"true"},_kbdFocusable:{empty:!0}}).define({kbdNavQuery(){return Yn},kbdNavFocusableWhenDisabled(){return!0},ariaOrientationDefault(){return"vertical"}}).define({kbdNavChildren(){return this.querySelectorAll(this.kbdNavQuery)}}).methods({_ariaOrientationIsVertical(){return(this.readAriaProperty("ariaOrientation")??this.ariaOrientationDefault)==="vertical"},focusCurrentOrFirst(){let e,i;for(let r of this.kbdNavChildren)if(i=r,r.tabIndex===0){e=r;break}return W(e)?e:W(i)?i:null},focusNext(e=null,i=!0,r=!1){let o=!1,n=r?[...this.kbdNavChildren].reverse():this.kbdNavChildren;for(let s of n){if(!o){o=e?s===e:s.getAttribute("tabindex")==="0";continue}if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&W(s))return this.ariaActiveDescendantElement=s,s}if(!i)return!ce(e)&&e instanceof HTMLElement&&e.focus(),e;for(let s of n)if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&(W(s)||s===e))return s;return null},focusPrevious(e,i=!0){return this.focusNext(e,i,!0)},focus(...e){if(!W(this.ariaActiveDescendantElement,...e)){for(let i of this.kbdNavChildren)if(i.getAttribute("tabindex")==="0"&&i instanceof HTMLElement){this.ariaActiveDescendantElement=i,i.focus(...e);return}this.focusNext()}},refreshTabIndexes(){if(this.kbdNav!=="true")return;let e=null,i=null,r=null;for(let o of this.kbdNavChildren)!e&&ce(o)?e=o:!i&&o.getAttribute("tabindex")==="0"?i=o:(!r&&o.getAttribute("aria-hidden")!=="true"&&(this.kbdNavFocusableWhenDisabled||o.getAttribute("aria-disabled")!=="true")&&(r=o),o.tabIndex=-1),o.hasAttribute("tabindex")||(o.tabIndex=ce(o)?0:-1);e?e.tabIndex=0:i?e&&(i.tabIndex=-1):r&&(r.tabIndex=0)}}).events({focusin(e){if(this.kbdNav!=="true")return;let i=e.target;if(i.matches(this.kbdNavQuery)){this.ariaActiveDescendantElement=i,i.getAttribute("tabindex")!=="0"&&(i.tabIndex=0);for(let o of this.kbdNavChildren)o!==i&&o.hasAttribute("tabindex")&&(o.tabIndex=-1)}},keydown(e){if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&this.kbdNav==="true"){switch(e.key){case"ArrowUp":case"Up":this._ariaOrientationIsVertical()&&this.focusPrevious();break;case"ArrowDown":case"Down":this._ariaOrientationIsVertical()&&this.focusNext();break;case"ArrowLeft":case"Left":if(this._ariaOrientationIsVertical())return;he(this)?this.focusNext():this.focusPrevious();break;case"ArrowRight":case"Right":if(this._ariaOrientationIsVertical())return;he(this)?this.focusPrevious():this.focusNext();break;default:return}e.stopPropagation(),e.preventDefault()}}}).on({connected(){this.refreshTabIndexes()}})}function Ne(t){return t.mixin(B).mixin(Z).set({ariaOrientationDefault:"horizontal",_ariaRole:"toolbar"})}function U(t){return t.css`:host{--mdw-elevation__rgb:var(--mdw-color__shadow);--mdw-elevation__box-shadow__0:0px 1px 1px 0px rgba(var(--mdw-elevation__rgb), 0),0px 0px 1px 1px rgba(var(--mdw-elevation__rgb), 0);--mdw-elevation__box-shadow__1:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 1px 3px 1px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__2:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 2px 6px 2px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__3:0px 1px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 4px 8px 3px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__4:0px 2px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 6px 10px 4px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__5:0px 4px 4px 0px rgba(var(--mdw-elevation__rgb), .3),0px 8px 12px 6px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__drop-shadow__0:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),000)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),00000));--mdw-elevation__drop-shadow__1:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__2:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 2px 005px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__3:drop-shadow(0px 1px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 4px 007px rgba(var(--mdw-elevation__rgb),.263));--mdw-elevation__drop-shadow__4:drop-shadow(0px 2px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 6px 009px rgba(var(--mdw-elevation__rgb),.27));--mdw-elevation__drop-shadow__5:drop-shadow(0px 4px 2px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 8px 012px rgba(var(--mdw-elevation__rgb),.3))}`}var Tt=f.extend().mixin(x).mixin(de).mixin(U).mixin(E).html`<slot id=slot></slot>`.css`:host{--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:relative;filter:var(--mdw-elevation__drop-shadow__0);background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition:filter .2s}:host(:where([elevation="1"])){filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([elevation="2"])){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([elevation="3"])){filter:var(--mdw-elevation__drop-shadow__3)}:host(:where([elevation="4"])){filter:var(--mdw-elevation__drop-shadow__4)}:host(:where([elevation="5"])){filter:var(--mdw-elevation__drop-shadow__5)}`.autoRegister("mdw-surface");var Pr=Tt.extend().mixin(Ne).observe({color:{empty:"surface-container"}}).css`:host{--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);align-items:center;flex-direction:row;gap:8px;justify-content:flex-start;box-sizing:content-box;block-size:56px;padding-block:12px;padding-inline:8px 16px;box-shadow:none;direction:ltr}`.autoRegister("mdw-bottom-app-bar");var ee={type:"function",reflect:"read",value:null,parser(t){return t},attributeChangedCallback(t,e,i){if(e==null&&i==null)return;if(i==null){this[t]=null;return}let r;try{let o=`with(this.ownerDocument ?? document){with(this.form ?? {}){with(this){${i}}}}`;r=new Function(`return function ${t}(event){${o}}`)()}catch{let o=(this.ownerDocument??document).createElement("button");o.setAttribute("onclick",i),r=o.onclick}this[t]=r},propChangedCallback(t,e,i){let r=t.slice(2);e&&this.removeEventListener(r,e),i&&this.addEventListener(r,i)}};var Fi=new WeakMap,Ni=new WeakMap;function Wn(t){let e=Ni.get(this),i;e!=null&&e.has(t)&&(i=e.get(t));let r=Fi.get(this),{initial:o}=r.get(t);r.delete(t);let n=this[t];if(!n){i==null||i.cancel();return}let{target:s,styles:l,timing:a}=n,d=(s?typeof s=="string"?this.refs[s]:s:this).animate(l,{...a,...o?{duration:0}:null,fill:"forwards"});d.onremove=()=>{i==null||i.effect.updateTiming({fill:"none"}),i==null||i.finish(),i==null||i.cancel(),i=null},e?e.set(t,d):Ni.set(this,new Map([[t,d]]))}var Ye=new WeakMap,Rr=new ResizeObserver(t=>{for(let{target:e}of t)if(Ye.has(e)){let i=Ye.get(e);Ye.delete(e),Rr.unobserve(e);for(let r of i)r()}}),te={type:"object",reflect:!1,diff:null,propChangedCallback(t,e,i){if(!i){let s=Ni.get(this);if(!(s!=null&&s.has(t)))return}let r=Fi.get(this),o=!this.isConnected;if(r){if(r.has(t))return;r.set(t,{initial:o})}else Fi.set(this,new Map([[t,{initial:o}]]));let n=Wn.bind(this,t);this.isConnected?queueMicrotask(n):Ye.has(this)?Ye.get(this).push(n):(Ye.set(this,[n]),Rr.observe(this))}},Ri=new WeakMap,Oi=null,se={type:"string",reflect:!1,parser(t){return!t||typeof t=="string"?t:`:host{${Object.entries(t).map(([e,i])=>`${ze(e)}:${i}`).join(";")}}`},propChangedCallback(t,e,i){let r,o;if(Ri.has(this))r=Ri.get(this),r.has(t)&&(o=r.get(t));else{if(!i)return;r=new Map,Ri.set(this,r)}if(Oi??="adoptedStyleSheets"in ShadowRoot.prototype,!o){if(Oi)o=new CSSStyleSheet,this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,o];else{let n=this.ownerDocument.createElement("style");this.shadowRoot.prepend(n),o=n}r.set(t,o)}i?(Oi?o.replaceSync(i):i&&(o.textContent=i),o.disabled=!1):o.disabled=!0}};var Or=new ResizeObserver(t=>{for(let e of t)e.target.onResizeObserved(e)});function Y(t){return t.observe({_resizeObserverEnabled:{type:"boolean",value:!0}}).methods({onResizeObserved(e){},observeResize(){Or.observe(this,{box:"border-box"})},unobserveResize(){Or.unobserve(this)}}).on({connected(){this._resizeObserverEnabled&&this.observeResize()},disconnected(){this.unobserveResize()},_resizeObserverEnabledChanged(e,i){i?this.observeResize():this.unobserveResize()}})}var Nr,Fr=(Nr=window==null?void 0:window.matchMedia)==null?void 0:Nr.call(window,"(any-pointer: coarse)").matches;function N(t){return t.observe({disabled:"boolean",focused:"boolean",hovered:"boolean",pressed:"boolean",_lastInteraction:{value:null},_hovered:"boolean",_focused:"boolean",_focusedSynthetic:"boolean",_keyPressed:"boolean",_keyReleased:"boolean",_pointerPressed:"boolean",stateLayer:"boolean"}).observe({disabledState({disabled:e}){return e},hoveredState({_hovered:e,hovered:i}){return e||i},focusedState({_focused:e,focused:i}){return e||i},pressedState({_keyPressed:e,_pointerPressed:i,pressed:r}){return e||i||r},touchedState({_lastInteraction:e}){return e==="touch"},pointedState({_lastInteraction:e}){return e==="mouse"||e==="pen"}}).define({stateTargetElement(){return this}}).html`<div id=state mdw-if={stateLayer} disabled={disabledState} focused={focusedState} hovered={hoveredState} pressed={pressedState} interaction={_lastInteraction} touched={touchedState} pointed={pointedState} aria-hidden=true></div>`.events({pointerenter(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"),e.pointerType!=="touch"&&(this._hovered=!0))},"~pointerdown"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!0)},"~pointerup"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!1)},pointercancel(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"))},pointerleave(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=!1,this._hovered=!1)},"~keydown"(e){e.isTrusted&&(this._lastInteraction="key",!e.repeat&&e.key===" "&&(this._keyPressed=!0))},"~keyup"(e){e.isTrusted&&(this._lastInteraction="key",e.key===" "&&(this._keyPressed=!1,this._keyReleased=!0,setTimeout(()=>{this._keyReleased=!1})))},blur(e){e.isTrusted&&(this._focused=!1,this._focusedSynthetic=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction&&(Fr=this._lastInteraction==="touch",this._lastInteraction=null))},focus(e){e.isTrusted&&(this._focusedSynthetic="sourceCapabilities"in e?!e.sourceCapabilities:this._lastInteraction===null&&!e.relatedTarget,this._focused=!0,!this._lastInteraction&&Fr&&(this._lastInteraction="touch"))}}).on({disconnected(){this._focused=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction=null}}).css`:host{--mdw-state__hovered-opacity:.08;--mdw-state__focused-opacity:.12;--mdw-state__pressed-opacity:.12;--mdw-state__dragged-opacity:.12;position:relative;outline:0;-webkit-tap-highlight-color:transparent}:host(::-moz-focus-inner){border:0}#state{--mdw-state__opacity:calc( var(--mdw-state__hovered-opacity) + var(--mdw-state__focused-opacity) + var(--mdw-state__pressed-opacity) + var(--mdw-state__dragged-opacity) );position:absolute;inset:0;pointer-events:none;opacity:var(--mdw-state__opacity);background-color:currentColor;border-radius:inherit;transition-delay:0s;transition-duration:0s;transition-property:opacity,color,background-color;will-change:opacity}@supports (background-color:color-mix(in srgb,red 100%,red)){#state{opacity:1;background-color:color-mix(in srgb,currentColor calc(100% * var(--mdw-state__opacity)),transparent);transition-property:color,background-color;will-change:color,background-color}}#state[touched]{--mdw-state__hovered-opacity:0;--mdw-state__focused-opacity:0}#state:is(:not([hovered]),[disabled]:not([state-disabled~=hover]),[state-off~=hover]){--mdw-state__hovered-opacity:0}#state:is(:not([focused]),[disabled]:not([state-disabled~=focus]),[state-off~=focus]){--mdw-state__focused-opacity:0}#state:is(:not([pressed]),[disabled]:not([state-disabled~=pressed]),[state-off~=pressed]){--mdw-state__pressed-opacity:0}#state:is([disabled]:not([state-disabled~=dragged]),[state-off~=dragged]),:host(:not([aria-dragged=true])) #state{--mdw-state__dragged-opacity:0}#state[disabled]:not([state-disabled]){display:none}`}var Lt=f.extend().observe({hidden:"boolean"}).html`<div id=scroll-blocker></div>`.css`:host{position:fixed;inset:0;display:block;overflow:overlay;overscroll-behavior:none;overscroll-behavior:contain;scrollbar-color:transparent transparent;scrollbar-width:none;cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent;opacity:0;z-index:23;background-color:rgb(var(--mdw-color__scrim));animation:fade-in .2s forwards ease-out;will-change:opacity}:host::-webkit-scrollbar{display:none}:host([hidden]){animation-name:fade-out;animation-timing-function:ease-in}:host([invisible]){background:0 0}#scroll-blocker{position:absolute;inset-block-start:0;inset-inline-start:0;display:block;block-size:200%;inline-size:200%}@keyframes fade-in{0%{opacity:0}to{opacity:.38}}@keyframes fade-out{0%{opacity:.38}to{opacity:0}}`.events({animationend(){this.hidden&&this.remove()}}).autoRegister("mdw-scrim");var Un="onscrollend"in window,Dr=new WeakSet;f.extend().mixin(N).set({stateLayer:!0}).html`<div id=container><div id=icon aria-hidden=true></div></div>`.recompose(({refs:{container:t,state:e}})=>{t.prepend(e)}).css`:host{--mdw-state__hovered-opacity:0;--mdw-state__pressed-opacity:0;position:absolute;inset-block-start:0;inset-inline:0;align-self:stretch;display:flex;align-items:center;justify-content:center;cursor:grab;outline:0;pointer-events:auto;-webkit-user-select:none;user-select:none;touch-action:none;color:rgb(var(--mdw-color__on-surface-variant))}:host(:active){cursor:grabbing!important}#container{position:relative;display:flex;align-items:center;justify-content:center;min-block-size:48px;min-inline-size:48px}#state{border-radius:50%}#state[pointed]{--mdw-state__focused-opacity:0}#icon{block-size:4px;inline-size:32px;background-color:currentColor;border-radius:8px}`.events({touchmove(t){t.preventDefault()}}).autoRegister("mdw-bottom-sheet-handle");var Vr=f.extend().mixin(x).mixin(de).mixin(E).mixin(B).mixin(L).mixin(Y).observe({shapeTop:{type:"boolean",empty:!0},modal:"boolean",fixed:"boolean",open:"boolean",expanded:"boolean",_lastComputedBlockSize:{type:"float",nullable:!1},_lastOffsetTop:{type:"float",nullable:!1},_animationDuration:{type:"integer",value:0},_animationEasing:{value:"ease-out"},_translateY:{value:"100%"},_lastChildScrollTime:"float",_ariaValueNow:{type:"integer"},dragHandle:"boolean",onopen:ee,onclose:ee}).set({_hasCheckedResize:!1,_scrim:null,_dragTimestamp:0,_dragDeltaY:null,_dragStartY:null}).observe({hostStyles:{...te,get({open:t,fixed:e,_lastComputedBlockSize:i,_translateY:r,_animationDuration:o,_animationEasing:n}){return{styles:{marginBottom:e?`${-1*i}px`:0,transform:e?"none":`translateY(${r})`},timing:{duration:o,easing:n}}}}}).html`<mdw-bottom-sheet-handle id=drag-handle mdw-if={dragHandle} tabindex=0 role=separator aria-valuemin=-100 aria-valuemax=0 aria-valuenow={_ariaValueNow}></mdw-bottom-sheet-handle><slot id=slot></slot>`.methods({checkForScrim(t=!1){let{open:e,modal:i,_scrim:r}=this;e&&i?(r||(r=new Lt,r.addEventListener("click",()=>{this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!0}))||(this.open=!0)}),this._scrim=r),this.before(r),r.hidden=!1):r&&(t||r.remove(),r.hidden=!0)},checkDragFinished(){let{open:t,_dragStartY:e,_dragDeltaY:i,_lastComputedBlockSize:r,modal:o,fixed:n,_lastOffsetTop:s}=this;if(!t||n||e==null||i==null)return;let l=s+r-72,a=r>l?r-l:0,c=(r-i)/(r-a);this._dragStartY=null,o&&c<.5?(this._animationDuration=200*c,this._animationEasing="ease-out",this._translateY="100%",this._dragDeltaY=null,this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!1}))):(this._animationDuration=250*(.5*c),this._dragDeltaY=a,this._translateY="0px",this._animationEasing="ease-in",this.expanded=!0)},onDragHandleActive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&t.buttons===1&&Dr.add(t)},onDragHandleInactive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&(t.type!=="pointerup"&&t.buttons!==1||this.checkDragFinished())},onPointerOrTouchMove(t){let e,i=t.type==="touchmove";if(i){let{touches:p}=t;if(!p.length)return;e=p[0]}else e=t;let{open:r,_lastChildScrollTime:o,_dragStartY:n,_dragTimestamp:s,expanded:l}=this;if(!r||n==null||o&&performance.now()-o<=(Un?5e3:500))return;let{clientY:a,pageY:c}=e;a??=c-window.scrollY;let{_lastOffsetTop:d,_lastComputedBlockSize:m}=this,u=d+m-72,g=m>u?m-u:0,h=Math.max(a-n,g);this._dragDeltaY=h,!(i&&l&&performance.now()-s<100)&&(this._animationDuration=0,this._translateY=`${h}px`)}}).overrides({onResizeObserved(t){var e;this._lastComputedBlockSize=(e=t.borderBoxSize[0])==null?void 0:e.blockSize,this._lastOffsetTop=this.offsetTop}}).events({"~pointerdown"(t){if(t.pointerType!=="touch"&&(t.buttons!==1||!Dr.has(t))||!this.open)return;let{clientY:e,pageY:i}=t;e??=i-window.scrollY,this._dragStartY=e-(this._dragDeltaY??0),this._dragDeltaY=0,this._dragTimestamp=performance.now()},"~pointermove":"onPointerOrTouchMove","~pointerup"(t){t.pointerType!=="touch"&&this.checkDragFinished()},pointerleave(t){t.pointerType!=="touch"&&this.checkDragFinished()},"~touchmove":"onPointerOrTouchMove",touchcancel:"checkDragFinished","~touchend":"checkDragFinished","*~scroll"(){this.fixed||(this.checkDragFinished(),this._lastChildScrollTime=performance.now(),this._dragStartY=null,this._dragDeltaY=null)},"*scrollend"(){this.fixed||(this._lastChildScrollTime=null)}}).childEvents({dragHandle:{"~pointerdown":"onDragHandleActive","~pointermove":"onDragHandleActive"}}).on({openChanged(t,e){let i=this.offsetTop;if(this._lastOffsetTop=i,this._animationDuration=e?250:200,e){let r=0;if(!this.fixed){let{_lastComputedBlockSize:o}=this,n=i+o;o>n/2&&(r=o-n/2)}this._translateY=`${r}px`,this._dragDeltaY=r}else this._translateY="100%",this.expanded=!1;this._animationEasing=e?"ease-in":"ease-out",this.checkForScrim(!0),e&&this.focus()},modalChanged(){this._animationDuration=0,this.checkForScrim(!1)}}).css`:host{--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface);--mdw-shape__size:var(--mdw-shape__extra-large);--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;position:sticky;inset-block-end:0;inset-inline:0;overflow-y:clip;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;max-inline-size:640px;margin-inline:auto;padding-block-start:16px;pointer-events:none;transform:translateY(100%);visibility:hidden;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:visibility .2s;will-change:transform,margin-block-end,visibility}:host(:where([open])){pointer-events:auto;visibility:inherit;transition:visibility 0s}:host(:where(:not([fixed]))){position:fixed;max-block-size:calc(100% - 72px);touch-action:none;z-index:24}:host(:where([expanded])){overflow-y:auto;touch-action:auto}:host(:where([drag-handle])){padding-block-start:48px}`.autoRegister("mdw-bottom-sheet");var Vi={};mt(Vi,{addSVGAlias:()=>Xn,svgAliasMap:()=>Me,unaliased:()=>Di});var Me=new Map,Di=new Set;function Xn(t,e,i="0 0 24 24"){t=t.toLowerCase(),e?Me.set(t,{path:e,viewBox:i}):Me.delete(t)}var $i=new Set,$r=f.extend().mixin(x).define({_img(){return this.refs.img}}).define({naturalWidth(){return this._img.naturalWidth},naturalHeight(){return this._img.naturalHeight},complete(){return this._img.complete},currentSrc(){return this._img.currentSrc},x(){return this._img.x},y(){return this._img.y},decode(){return this._img.decode}}).observe({icon:"string",disabled:"boolean",alt:"string",src:"string",svg:"string",svgPath:"string",srcset:"string",sizes:"string",variation:"string",crossOrigin:{attr:"crossorigin"},useMap:{attr:"usemap"},isMap:{type:"boolean",attr:"ismap"},referrerPolicy:{attr:"referrerpolicy"},decoding:{value:null},loading:{value:null},width:"integer",height:"integer",forceFont:"boolean",_linkLoaded:"boolean",viewBox:"string",fontClass:{empty:"material-symbols-outlined"},fontLibrary:{empty:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&display=block"},_isConnected:"boolean"}).observe({_svgAlias:{type:"object",get({icon:t,variation:e}){if(!t)return null;let i=t.trim().toLowerCase(),r=e?`#${e}`:"",o=`${i}${r}`;return Me.has(o)?Me.get(o):(Di.add(o),r&&Me.has(i)?Me.get(i):null)}}}).observe({_computedSVGPath({svgPath:t,_svgAlias:e}){return t||(e==null?void 0:e.path)},_computedViewBox({viewBox:t,_svgAlias:e}){return t??(e==null?void 0:e.viewBox)??"0 0 24 24"}}).observe({_showFontIcon:{type:"boolean",get({icon:t,svg:e,_computedSVGPath:i,src:r}){return t&&!e&&!i&&!r}}}).expressions({showSVG({svg:t,_computedSVGPath:e}){return!!(t||e)}}).html`<link mdw-if={_showFontIcon} id=link rel=stylesheet href={fontLibrary}><svg mdw-if={showSVG} id=svg viewBox={_computedViewBox}><use id=use mdw-if={svg} href={svg} fill=currentColor /><path id=path mdw-if={_computedSVGPath} d={_computedSVGPath} /></svg> <img mdw-if={src} id=img disabled={disabled} alt={alt} src={src} srcset={srcset} sizes={sizes} crossorigin={crossOrigin} usemap={useMap} ismap={isMap} referrerpolicy={referrerPolicy} decoding={decoding} loading={loading} width={width} height={height}> <span id=icon class={fontClass} hidden={!_showFontIcon} aria-hidden=true>{icon}</span>`.css`:host{vertical-align:-11.5%;block-size:1em;inline-size:1em;-webkit-user-select:none;user-select:none;line-height:1;font-variation-settings:"FILL" 0;transition-duration:.2s;transition-property:inline-size,width}:host([variation=fill]){font-variation-settings:"FILL" 1}:host(:is([color],[ink])){color:rgb(var(--mdw-ink))}#icon{overflow:clip;block-size:1em;inline-size:1em;font-size:inherit;font-variation-settings:inherit;transition-delay:1ms;transition-duration:.2s;transition-property:font-variation-settings}#icon[hidden]{display:none}#svg{block-size:inherit;inline-size:inherit;fill:currentColor;object-fit:cover}#img{block-size:inherit;inline-size:inherit;object-fit:cover;transition-delay:1ms;transition-duration:.2s;transition-property:filter}#img[disabled]{filter:grayscale()}.material-symbols-outlined{direction:inherit}`.childEvents({link:{load({currentTarget:t}){let{href:e,parentNode:i}=t;if(!$i.has(e)){for(let r of document.head.getElementsByTagName("link"))if(r.href===e){$i.add(e);return}document.head.append(t.cloneNode()),$i.add(e)}}}}).extend(t=>class extends t{constructor(e,i){super(),e!=null&&(this.width=e),i!=null&&(this.height=i)}}).autoRegister("mdw-icon");function Hi(t){return t.rootEvents({click(e){let{target:i}=e;if(!(i instanceof HTMLAnchorElement)||!i.href)return;i.dispatchEvent(new CustomEvent("mdw:hyperlink",{bubbles:!0,composed:!0,cancelable:!0,detail:{download:i.download,href:i.href,hreflang:i.hreflang,target:i.target}}))||e.preventDefault()}})}function be(t){return{get(){return new URL(this.href,window.location.href)[t]},set(e){let{href:i}=this;if(!i)return;let r=new URL(i,window.location.href);r[t]=e,this.href=r.href}}}function ie(t){return t.mixin(Hi).observe({href:"string",target:"string",download:"string",ping:"string",rel:"string",hreflang:"string",referrerPolicy:{type:"string",attr:"referrerpolicy"}}).define({origin(){return new URL(this.href).origin},protocol:be("protocol"),username:be("username"),password:be("password"),host:be("host"),hostname:be("hostname"),port:be("port"),pathname:be("pathname"),search:be("search"),hash:be("hash")}).html`<a id=anchor href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy}></a>`.methods({toString(){return this.href}})}var Bi="mdw-form-associated-changed",ji={nullParser:String,value:""};function pe(t){return t.setStatic({formAssociated:!0}).set({_ipcListener:null,_ipcTarget:null,_files:null}).observe({ariaControls:"string",autocomplete:ji,name:ji,readOnly:{attr:"readonly",type:"boolean"},formNoValidate:{attr:"formnovalidate",type:"boolean"},defaultChecked:{attr:"checked",type:"boolean"},_checkedDirty:"boolean",_checked:"boolean",required:"boolean",type:ji,_defaultValue:{reflect:!0,attr:"value"},_value:{empty:""},_valueDirty:"boolean",_userInteracted:"boolean",_invalid:"boolean",_badInput:"boolean",_validationMessage:"string",_formDisabled:"boolean",_formReset:"boolean"}).observe({erroredState({_invalid:e,_userInteracted:i}){return i&&e},defaultValue:{reflect:!1,get({_defaultValue:e}){return e??""},set(e){this._defaultValue=String(e)}},_valueBehavior({type:e}){switch(e){case"radio":case"checkbox":return"default/on";case"hidden":case"button":case"submit":case"image":case"reset":return"default";case"file":return"filename";default:return"value"}}}).methods({_onSetValue(e){this._value=e},_onSetChecked(e){this._checked=e}}).observe({value:{reflect:!1,get({_valueBehavior:e,_defaultValue:i,_value:r}){switch(e){case"filename":default:return r;case"default":return i??"";case"default/on":return i??"on"}},set(e){switch(this._valueBehavior){case"value":this._valueDirty=!0,this._onSetValue(e);break;case"filename":if(e==null||e==="")this._files=null;else throw new DOMException("InvalidStateError");break;default:this.defaultValue=e}}},checked:{reflect:!1,type:"boolean",get({_checkedDirty:e,defaultChecked:i,_checked:r}){return e?r:i},set(e){this._checkedDirty=!0,this._onSetChecked(e)}}}).define({form(){return this.elementInternals.form},validity(){return this.elementInternals.validity},validationMessage(){return this.elementInternals.validationMessage},willValidate(){return this.type==="submit"?!this.formNoValidate:this.type==="button"||this.type==="reset"?!1:this.elementInternals.willValidate},labels(){return this.elementInternals.labels}}).observe({disabledState({_formDisabled:e,disabled:i}){return e?!0:!!i}}).methods({checkValidity(){return this.elementInternals.checkValidity()},reportValidity(){return this.elementInternals.reportValidity()},setCustomValidity(e){this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e)},_notifyRadioChange(e,i){var r;(r=this._ipcTarget)==null||r.dispatchEvent(new CustomEvent(Bi,{detail:[e,i]}))},refreshFormAssociation(){let e=this.elementInternals.form??this.getRootNode();e!==this._ipcTarget&&(this._ipcTarget&&this._ipcTarget.removeEventListener(Bi,this._ipcListener),this.type==="radio"&&(this._ipcTarget=e,this._ipcListener??=this.formIPCEvent.bind(this),this._ipcTarget.addEventListener(Bi,this._ipcListener)))},formAssociatedCallback(e){this.refreshFormAssociation(),this.checkValidity()},formIPCEvent(e){if(e.target instanceof HTMLFormElement&&e.target!==this.form||this.type!=="radio")return;let[i,r]=e.detail;this.name===i&&(r===this.value||(this.checked=!1))},formDisabledCallback(e){this._formDisabled=e},formResetCallback(){this._formReset=!0,this._valueDirty=!1,this.checkValidity(),this._userInteracted=!1,this._formReset=!1},formStateRestoreCallback(e,i){if(!(Oe<115)&&typeof e=="string"){if(this.type==="checkbox"||this.type==="radio"){this.checked=e==="checked";return}if(this.type==="radio"){this.checked=e==="checked";return}this.value=e}},_updateFormAssociatedValue(){switch(this.type){case"radio":this.checked&&this._notifyRadioChange(this.name,this.value||"on");case"checkbox":this.checked?this.elementInternals.setFormValue(this.value,"checked"):this.elementInternals.setFormValue(null,"unchecked");break;case"button":case"reset":this.elementInternals.setFormValue(null);break;case"file":{let{elementInternals:e,_files:i,name:r}=this;if(!i||i.length)e.setFormValue(null);else{let o=new FormData;for(let n of i)o.append(r,n);e.setFormValue(o)}break}case"select-multiple":{let e=new FormData,i=this;if(i.name)for(let r of i.selectedOptions)e.append(i.name,r.value);this.elementInternals.setFormValue(e);break}default:this.elementInternals.setFormValue(this.value)}}}).events({blur(){this._userInteracted=!0,this.checkValidity()}}).on({connected(){this.refreshFormAssociation()},checkedChanged(){this._updateFormAssociatedValue()},valueChanged(){this._updateFormAssociatedValue()},_valueBehaviorChanged(e,i){e!=="filename"&&i==="filename"&&(this.value="")},typeChanged(){this._updateFormAssociatedValue()}})}function ge(t){return t.mixin(pe).mixin(L).observe({ariaLabel:"string",_slotInnerText:"string"}).set({focusableOnDisabled:!1,controlTagName:"input",controlVoidElement:!0,_slotMutationObserver:null}).methods({_onControlValue(e){this._value=e},onValueChangingContentAttribute(){let e=this.refs.control;this.hasAttribute("value")||(e.removeAttribute("value"),e.setAttribute("value","")),this._onControlValue(e.value)},focus(...e){this.refs.control.focus(...e)},click(){this.disabledState||this.refs.control.click()}}).define({stateTargetElement(){return this.refs.control}}).methods({checkValidity(){if(!this.willValidate)return!0;let e=this.refs.control,i=e.checkValidity(),r={};for(let o in e.validity)r[o]=e.validity[o];return this.elementInternals.setValidity(r,e.validationMessage,e),this._invalid=!i,this._validationMessage=e.validationMessage,this._badInput=e.validity.badInput,i},reportValidity(){return this.checkValidity(),this.refs.control.reportValidity(),this.elementInternals.reportValidity()},setCustomValidity(e){this.refs.control.setCustomValidity(e),this.checkValidity(),this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e,this.refs.control)}}).observe({_computedAriaLabel({ariaLabel:e,_slotInnerText:i}){return(e==null?void 0:e.trim())||(i==null?void 0:i.trim())||null}}).expressions({_computedAriaLabelledby({_computedAriaLabel:e}){return e?null:"slot"}}).recompose(({template:e,html:i,element:r})=>{e.append(i`
|
|
185
|
+
`));var kn,Sn;function fr(){return(kn??=new Text).cloneNode()}function Pe(){return(Sn??=new Comment).cloneNode()}function Cn(t){var e,i;return(e=t==null?void 0:t.matches)!=null&&e.call(t,":focus")?t:(i=t==null?void 0:t.querySelector)==null?void 0:i.call(t,":focus")}function zn(t){t&&t.isConnected&&!t.matches(":focus")&&t.focus()}function br(t,e,i){let r=Cn(t);e?e.before(t):i.append(t),zn(r)}var En=typeof Element.prototype.moveBefore=="function",fi=En?(t,e,i)=>{i.moveBefore(t,e)}:br,tt=class{constructor(e){this.anchorNode=e.anchorNode,this.metadata=[],this.keys=[],this.needsArrayKeyFastPath=!1,this.composition=e.composition,this.renderOptions=e.renderOptions,this.metadataCache=null,this.queuedElements=[],this.batchStartIndex=null,this.batchEndIndex=null,this.parentProps=e.parentProps||[]}render(e,i){return this.composition.render(e,i,this.renderOptions)}startBatch(){this.needsArrayKeyFastPath=!0}writeBatch(){var i;if(!this.queuedElements.length)return;(((i=this.metadata[this.batchStartIndex-1])==null?void 0:i.domNode)??this.anchorNode).after(...this.queuedElements),this.queuedElements.length=0}stopBatch(){if(this.writeBatch(),this.needsArrayKeyFastPath=!1,this.batchStartIndex=null,this.batchEndIndex=null,this.metadataCache){for(let{domNode:e}of this.metadataCache.values())e.remove();this.metadataCache.clear()}}moveToEndByIndex(e){let[i]=this.metadata.splice(e,1),{domNode:r,key:o}=i;this.keys.splice(e,1);let n=r.parentNode;n&&br(r,null,n),this.metadataCache?this.metadataCache.set(o,i):this.metadataCache=new Map([[o,i]])}renderData(e,i,r,o,n,s){if(e<this.metadata.length){let d=this.metadata[e],p=d.key,h=p===o,g=n!==o;if(h){g?d.render(i,r):s||d.render(i,r);return}let _=this.metadataCache??=new Map,m=!1;this.needsArrayKeyFastPath&&(m=!this.keys.includes(o),this.needsArrayFastPath=!1);let u=m?-1:this.keys.indexOf(o,e+1);if(u===-1){if(_.has(o)){let b=_.get(o);this.metadata.splice(e,0,b),this.keys.splice(e,0,o),fi(b.domNode,d.domNode,d.domNode.parentNode),b.render(i,r),_.delete(o);return}_.set(p,d)}else{if(e-u===-1){this.moveToEndByIndex(e);return}let b=this.metadata[u];this.metadata[e]=b,this.metadata[u]=d;let{domNode:w}=d,y=w.parentNode,S=b.domNode.nextSibling;fi(b.domNode,w,y),S&&fi(w,S,y),s||b.render(i,r),this.keys[e]=o,this.keys[u]=p;return}}let l={...i};if(this.parentProps.length)for(let d of this.parentProps)d in r&&(l[d]=r[d]);let a=this.render(l,r),c=a.target;this.metadata[e]={render:a,element:c,key:o,domNode:c},this.keys[e]=o,(this.batchEndIndex===null||this.batchEndIndex!==e-1)&&(this.writeBatch(),this.batchStartIndex=e),this.batchEndIndex=e,this.queuedElements.push(c)}removeEntries(e=0){let{length:i}=this.metadata;for(let r=i-1;r>=e;r--){let o=this.metadata[r];!o||!o.domNode||o.domNode.remove()}this.metadata.length=e,this.keys.length=e}hide(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||i.hidden)return!1;let{comment:o,element:n}=i;return o||(o=Pe(),i.comment=o),n.replaceWith(o),i.domNode=o,i.hidden=!0,!0}show(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||!i.hidden)return!1;let{comment:o,element:n}=i;return o.replaceWith(n),i.domNode=n,i.hidden=!1,!0}};function vr(t){switch(t){case void 0:case null:case!1:return null;case!0:return"";default:return`${t}`}}var St;function ze(t){if(St??=new Map,St.has(t))return St.get(t);let e=t.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`);return St.set(t,e),e}var gr,Oe=Number.parseFloat((gr=navigator.userAgent.match(/Chrome\/([\d.]+)/))==null?void 0:gr[1]),wr,it=Number.parseFloat((wr=navigator.userAgent.match(/Firefox\/([\d.]+)/))==null?void 0:wr[1]),xr,Ct=Oe||!navigator.userAgent.includes("AppleWebKit")?Number.NaN:Number.parseFloat((xr=navigator.userAgent.match(/Version\/([\d.]+)/))==null?void 0:xr[1]);function de(t){return!t||it<113&&t.constructor.formAssociated&&t.hasAttribute("disabled")?!1:document.activeElement===t?!0:!t.isConnected||(t==null?void 0:t.getRootNode())===document?!1:t.matches(":focus")}function U(t,...e){if(!t)return!1;try{t.focus(...e)}catch{return!1}return de(t)}function _e(t){return getComputedStyle(t).direction==="rtl"}var ki={};mt(ki,{applyMergePatch:()=>gi,applyMergePatchObject:()=>bi,buildMergePatch:()=>vi,buildMergePatchClone:()=>xi,buildMergePatchObject:()=>zt,buildMergePatchReference:()=>wi,hasMergePatch:()=>yi,hasMergePatchObject:()=>kr,hasMergePatchReference:()=>Et});function bi(t,e){if(t===e)return t;if(Array.isArray(e)||t==null||e==null||typeof e!="object")return e;typeof t!="object"&&(t={});for(let[i,r]of Object.entries(e))r==null?i in t&&delete t[i]:t[i]=bi(t[i],r);return t}function yr(t,e){if(t===e)return t;let i=e!=null&&typeof e=="object"&&!Array.isArray(e),r=t!=null&&typeof t=="object"&&!Array.isArray(t);if(!i||!r)return e;for(let[o,n]of Object.entries(e))n==null?o in t&&delete t[o]:t[o]=yr(t[o],n);return t}function gi(t,e,i="reference"){switch(i){case"clone":case"object":return bi(t,e);default:return yr(t,e)}}function wi(t,e){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let i={};if(Array.isArray(e))return e;let r=new Set(Object.keys(t));for(let[o,n]of Object.entries(e)){if(r.delete(o),n===null){i[o]=null;continue}if(n==null)continue;let s=wi(t[o],n);s!==null&&(i[o]=s)}for(let o of r)i[o]=null;return i}function xi(t,e){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let i={};if(Array.isArray(e))return structuredClone(e);let r=new Set(Object.keys(t));for(let[o,n]of Object.entries(e)){if(r.delete(o),n===null){i[o]=null;continue}if(n==null)continue;let s=xi(t[o],n);s!==null&&(i[o]=s)}for(let o of r)i[o]=null;return i}function zt(t,e){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let i={};if(Array.isArray(e)){for(let[o,n]of e.entries()){if(n===null){i[o]=null;continue}if(n==null)continue;let s=zt(t[o],n);s!==null&&(i[o]=s)}return e.length!==t.length&&(i.length=e.length),i}let r=new Set(Object.keys(t));for(let[o,n]of Object.entries(e)){if(r.delete(o),n===null){i[o]=null;continue}if(n==null)continue;let s=zt(t[o],n);s!==null&&(i[o]=s)}for(let o of r)i[o]=null;return i}function vi(t,e,i="reference"){switch(i){case"clone":return xi(t,e);case"object":return zt(t,e);default:return wi(t,e)}}function Et(t,e){if(t===e)return!1;if(e==null||typeof e!="object"||t!=null&&typeof t!="object")return!0;for(let[i,r]of Object.entries(e))if(r==null){if(i in t)return!0}else if(Et(t[i],r))return!0;return!1}function kr(t,e){return Array.isArray(e)?t!==e:Et(t,e)}function yi(t,e,i="reference"){switch(i){case"clone":case"object":return kr(t,e);default:return Et(t,e)}}function Sr(t){switch(t){case"boolean":return!1;case"integer":case"float":case"number":return 0;case"map":return new Map;case"set":return new Set;case"array":return[];case"proxy":case"object":return null;default:case"string":return""}}function Si(t,e,i,r){return t??={},new Proxy(t,{get(o,n){let s=o[n];if(typeof n!="symbol"){let l=r?`${r}.${n}`:n;if(r?i.add(l):e.add(l),typeof s=="object"&&s!=null)return Si(s,e,i,l)}return s},has(o,n){let s=Reflect.has(o,n);if(typeof n!="symbol"){let l=r?`${r}.${n}`:n;r?i.add(l):e.add(l)}return s}})}var At=new WeakMap,Ci=new WeakMap;function Mn(t){if(t==null||typeof t!="object")return null;let e=Ci.get(t);if(!e){let i=new Set;e={subscribe(r){i.add(r)},unsubscribe(r){i.delete(r)},emit(r){for(let o of i)o(r)}},Ci.set(t,e)}return e}function Mt(t,e){let i={},r=i;for(let o=0;o<t.length-1;o++)r[t[o]]={},r=r[t[o]];return r[t.at(-1)]=e,i}function Cr(t,e,i,r,o){if(t==null||typeof t!="object")return t;let n=Mn(t);o||(o=n);let s=At.get(t);if(s||(s=new Map,At.set(t,s)),s.has(r))return s.get(r);let l=new Proxy(t,{get(a,c){if(typeof c=="symbol")return a[c];let d=a[c];return Cr(d,e,i.concat(c),r,o)},set(a,c,d){if(a[c]=d,typeof c!="symbol"){let p=Mt(i.concat(c),d);if(e(p),o==null||o.emit(p),n&&n!==o){let h=Mt([c],d);n.emit(h)}}return!0},deleteProperty(a,c){if(typeof c!="symbol"){let d=Mt(i.concat(c),null);if(e(d),o==null||o.emit(d),n&&n!==o){let p=Mt([c],null);n.emit(p)}}return Reflect.deleteProperty(a,c)}});return At.set(l,s),n&&Ci.set(l,n),s.set(r,l),l}function An(t){switch(t){case"boolean":return e=>!!e;case"integer":return Math.round;case"float":case"number":return e=>+e;case"map":return Map;case"set":return Set;case"object":case"array":case"proxy":return e=>e;default:case"string":return e=>`${e}`}}function zi(t,...e){let i=new Set,r=new Set,o=e.map(a=>{let c=new Set,d=new Set,p=Si(a,c,d);return{poked:c,pokedDeep:d,proxy:p}}),n=Si(this??{},i,r),s=t.apply(n,o.map(a=>a.proxy)),l=t.name?!0:!i.size;return{props:{this:[...i],args:o.map(a=>[...a.poked])},deepPropStrings:{this:[...r],args:o.map(a=>[...a.pokedDeep])},deepProps:{this:[...r].map(a=>a.split(".")),args:o.map(a=>[...a.pokedDeep].map(c=>c.split(".")))},defaultValue:s,reusable:l}}function In(){return null}function Tn(t,e,i){let r=typeof e=="string"?{type:e}:e,{watchers:o,value:n,readonly:s,empty:l,type:a,enumerable:c,reflect:d,attr:p,nullable:h,parser:g,nullParser:_,get:m,is:u,diff:b,props:w}=r;if(o??=[],s??=!1,l===void 0&&(l=null),n??=l,m&&!w){let y=zi(m.bind(i),i,()=>n);n??=y.defaultValue,w=new Set([...y.props.this,...y.props.args[0]])}if(!a)if(n==null)a="string";else{let y=typeof n;a=y==="number"?Number.isInteger(n)?"integer":"float":y}return c??=t[0]!=="_",h??=a==="boolean"?!1:l==null,h||(l??=Sr(a),n??=l),d??=c?a!=="object":p?"write":!1,p??=d?ze(t):null,g??=An(a),_||(h?_=In:_=l===null?()=>Sr(a):()=>l),u??=a==="object"||a==="proxy"?(y,S)=>!yi(y,S):a==="array"?()=>!1:Object.is,b===void 0&&(b=a==="object"?(y,S)=>vi(y,S):null),{...r,type:a,is:u,diff:b,attr:p,reflect:d,readonly:s,enumerable:c,value:n,parser:g,nullParser:_,key:t,props:w,watchers:o}}function rt(t,e,i){var n,s;t.get;let r=i==null?t.nullParser.call(this,i):t.parser.call(this,i),o=r;if(e==null){if(r==null)return!1}else if(r!=null){if(t.diff){if(o=t.diff.call(this,e,r),o==null)return!1}else if(t.is.call(this,e,r))return!1}return t.values?t.values.set(this,r):t.values=new WeakMap([[this,r]]),(n=t.propChangedCallback)==null||n.call(this,t.key,e,r,o),(s=t.changedCallback)==null||s.call(this,e,r,o),!0}function Ei(t,e,i){let r=Tn(e,i,t);function o(m){if(r.type!=="proxy"||m==null||typeof m!="object")return m;let u=At.get(m);if(u&&u.has(this))return u.get(this);let b=this;return Cr(m,y=>{var C,T,M;let S=((C=r.values)==null?void 0:C.get(b))??m;(T=r.propChangedCallback)==null||T.call(b,r.key,S,S,y),(M=r.changedCallback)==null||M.call(b,S,S,y)},[],b,null)}function n(){var m;return(m=r.values)!=null&&m.has(this)?r.values.get(this):r.value}function s(){var u;if((u=r.values)!=null&&u.has(this))return r.values.get(this);let m=o.call(this,r.value);return m!==r.value&&(r.values?r.values.set(this,m):r.values=new WeakMap([[this,m]])),m}function l(m){var b;if(t===this&&((b=this==null?void 0:this.constructor)==null?void 0:b.prototype)===this)return;let u=this[e];rt.call(this,r,u,m)}function a(m){var w;if(t===this&&((w=this==null?void 0:this.constructor)==null?void 0:w.prototype)===this)return;let u=this[e],b=o.call(this,m);rt.call(this,r,u,b)}function c(){var b,w;let m=(b=r.computedValues)==null?void 0:b.get(this),u=this[e];(w=r.needsSelfInvalidation)==null||w.delete(this),rt.call(this,r,m,u)}if(r.props)for(let m of r.props)r.watchers.push([m,c]);function d(){let m=r.get.call(this,this,n.bind(this));return(r.computedValues??=new WeakMap).set(this,m),m}function p(){let m=r.get.call(this,this,s.bind(this)),u=o.call(this,m);return(r.computedValues??=new WeakMap).set(this,u),u}function h(m){r.needsSelfInvalidation?r.needsSelfInvalidation.add(this):r.needsSelfInvalidation=new WeakSet([this]);let u=this[e];r.set.call(this,m,l.bind(this));let b=this[e];r.needsSelfInvalidation.has(this)&&(r.needsSelfInvalidation.delete(this),rt.call(this,r,u,b))}function g(m){r.needsSelfInvalidation?r.needsSelfInvalidation.add(this):r.needsSelfInvalidation=new WeakSet([this]);let u=this[e];r.set.call(this,m,a.bind(this));let b=this[e];r.needsSelfInvalidation.has(this)&&(r.needsSelfInvalidation.delete(this),rt.call(this,r,u,b))}let _={enumerable:r.enumerable,configurable:!0,get:r.get?r.type==="proxy"?p:d:r.type==="proxy"?s:n,set:r.set?r.type==="proxy"?g:h:r.type==="proxy"?a:l};return Object.defineProperty(t,e,_),r}var zr=new Set;function ot(t="mdw_",e=4){let i;for(;zr.has(i=Math.random().toString(36).slice(2,e+2)););return zr.add(i),`${t}${i}`}var Mi,Er,Mr;function je(t){return Mi??=document.implementation.createHTMLDocument(),t?(Mr??=Mi.createRange(),Mr.createContextualFragment(t)):(Er??=Mi.createDocumentFragment(),Er.cloneNode())}var It=new Map;function Ii(t){let e=`#${ot()}`;return It.set(e,{fn:t}),`{${e}}`}var Ai=new Map;function Ti(t,...e){let i,r=e.map(s=>{switch(typeof s){case"string":return s;case"function":return Ii(s);case"object":{if(s==null)return"";let l=ot();return i??=new Map,i.set(l,s),`<div id="${l}"></div>`}default:throw new Error(`Unexpected substitution: ${s}`)}}),o=String.raw({raw:t},...r);if(i){let s=je(o);for(let[l,a]of i)s.getElementById(l).replaceWith(a);return s}let n;return Ai.has(o)?n=Ai.get(o):(n=je(o),Ai.set(o,n)),n.cloneNode(!0)}function Ln({nodes:t},e){let{nodeIndex:i,attrName:r}=this,o=t[i];switch(e){case void 0:case null:case!1:return o.removeAttribute(r),!1;case!0:return o.setAttribute(r,""),"";default:return o.setAttribute(r,e),e}}function Rn({nodeStates:t,comments:e,nodes:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n],l=s&1;if(!(r!=null&&r!==!1)){if(l)return;let p=e[o];p||(p=Pe(),e[o]=p),i[n].replaceWith(p),t[n]|=1;return}let c=i[n],d=s&2;if(r instanceof Node)r.nodeType===11||c!==r&&(c.replaceWith(r),i[n]=r),t[n]|=2;else if(typeof r!="object")if(d){let p=new Text(r);c.replaceWith(p),i[n]=p,t[n]&=-3}else c.data=r;l&&(e[o].replaceWith(c),t[n]&=-2)}function Pn({nodeStates:t,nodes:e,comments:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n]&1,l=r!=null&&r!==!1;if(l===!s)return;let a=e[n],c=i[o];c||(c=Pe(),i[o]=c),l?(c.replaceWith(a),t[n]&=-2):(a.replaceWith(c),t[n]|=1)}function On({comments:t,nodeStates:e,nodes:i}){let{commentIndex:r,nodeIndex:o}=this,n=Pe();t[r]=n,e[o]|=1,i[o].replaceWith(n)}function Li(t,...e){let[{caches:i,searchStates:r}]=e,{cacheIndex:o,searchIndex:n,subSearch:s,invocation:l}=t,a=i[o],c=r[n];if(c&1)return{value:a,dirty:(c&2)===2};r[n]|=1;let d;if(l){if(s){let p=Li(s,...e);if(!p.dirty&&a!==void 0)return r[n]&=-3,{value:a,dirty:!1};d=t.invocation(p.value)}else d=t.invocation(...e);if(d===void 0||a===d)return{value:d,dirty:!1}}return i[o]=d,r[n]|=2,{value:d,dirty:!0}}function Ar({options:{context:t,store:e,injections:i}},r,o){return this.expression.call(t,e??o,i)}function Fn(t,e){return e[this.prop]}function Nn(t,e,i){let r=e;for(let o of this.deepProp){if(r==null)return r;if(!(o in r))return;r=r[o]}return r}var Dn=/{([^}]*)}/g;function Vn(t,e){if(e)return e[t]}function nt(t,e){if(!e)return;let i=e,r;for(r of t)if(typeof i=="object"){if(i===null)return null;if(!(r in i))return;i=i[r]}else return i[r];return i}function $n(t,e){let i=e;for(let r of t.split("."))if(!r||(i=i[r],i==null))return null;return i===e?null:i}var Ir=new Map,Ee=class t{static EVENT_PREFIX_REGEX=/^([*1~]+)?(.*)$/;_interpolationState={nodeIndex:-1,searchIndex:0,cacheIndex:0,commentIndex:0,adapterIndex:0,nodeEntry:null};static shadowRootTag=Symbol();nodesToBind=[];props=[];searches=[];initCache=[];searchByQuery;actionsByPropsUsed;postInitActions=[];tagsWithBindings;tags=[];adapter;events;cloneable;styles=[];adoptedStyleSheets=[];stylesFragment;allIds=[];temporaryIds;interpolated=!1;constructor(...e){this.template=je(),this.append(...e)}*[Symbol.iterator](){for(let e of this.styles)yield e;yield this.template}static compose(...e){for(let[r,o]of Ir)if(r.length===e.length&&e.every((n,s)=>n===r[s]))return o;let i=new t(...e);return Ir.set(e,i),i}append(...e){for(let i of e)typeof i=="string"?this.append(je(i.trim())):i instanceof t?this.append(...i):i instanceof DocumentFragment?this.template.append(i):(i instanceof CSSStyleSheet||i instanceof HTMLStyleElement)&&this.styles.push(i);return this}addCompositionEventListener(e){let i=e.tag??"",r=this.events??=new Map;return r.has(i)?r.get(i).push(e):r.set(i,[e]),this}#e(e,i,r){var o;if((o=this.events)!=null&&o.has(e))for(let n of this.events.get(e)){let s;n.handleEvent?s=n.handleEvent:n.deepProp.length?s=nt(n.deepProp,this.interpolateOptions.defaults):s=Vn(n.prop,this.interpolateOptions.defaults),i.addEventListener(n.type,r?s.bind(r):s,n)}}render(e,i,r={}){this.interpolated||this.interpolate({defaults:i??e,...r});let o=this.cloneable.cloneNode(!0),n=r.shadowRoot,s=n??r.target??o.firstElementChild,l={lastChildNode:null,lastChildNodeIndex:0,lastElement:null,nodeStates:new Uint8Array(this._interpolationState.nodeIndex+1),searchStates:new Uint8Array(this._interpolationState.searchIndex),comments:[],nodes:[],caches:this.initCache.slice(),refs:[],adapters:[],options:r},{nodes:a,refs:c,searchStates:d,caches:p}=l;for(let{tag:g,textNodes:_}of this.nodesToBind){let m;if(g===""){if(!_.length)continue;c.push(null),a.push(null),m=o.firstChild}else{let b=o.getElementById(g);if(c.push(b),a.push(b),this.#e(g,b,r.context),!_.length)continue;m=b.firstChild}let u=0;for(let b of _){for(;b!==u;)m=m.nextSibling,u++;a.push(m)}}this.#e("",r.context),this.#e(t.shadowRootTag,r.context.shadowRoot,r.context);for(let g of this.postInitActions)g.invocation(l);let h=(g,_)=>{var u;if(!g)return;let m=!1;for(let b of this.props){if(!((u=this.actionsByPropsUsed)!=null&&u.has(b))||!(b in g))continue;let w=this.actionsByPropsUsed.get(b);for(let y of w){m=!0;let{dirty:S,value:C}=Li(y.search,l,g,_);S&&y.invocation(l,C,g,_)}}m&&d.fill(0)};return n?(r.context??=n.host,"adoptedStyleSheets"in n?this.adoptedStyleSheets.length&&(n.adoptedStyleSheets=[...n.adoptedStyleSheets,...this.adoptedStyleSheets]):this.stylesFragment.hasChildNodes()&&o.prepend(this.stylesFragment.cloneNode(!0))):r.context??=s,e!==this.interpolateOptions.defaults&&h(e,i),n&&(n.append(o),customElements.upgrade(n)),h.target=s,h.byProp=(g,_,m)=>{var y,S;if(!((y=this.actionsByPropsUsed)!=null&&y.has(g)))return;let u=!1;if((S=this.searchByQuery)!=null&&S.has(g)){u=!0;let C=this.searchByQuery.get(g);if(p[C.cacheIndex]===_)return;p[C.cacheIndex]=_,d[C.searchIndex]=3}let b,w=this.actionsByPropsUsed.get(g);for(let C of w)if(C.search.query===g)C.invocation(l,_);else{b??={[g]:_},m??=b,u=!0;let T=Li(C.search,l,b,m);T.dirty&&C.invocation(l,T.value,b,m)}u&&d.fill(0)},h.state=l,h}#r(e,i,r,o){var T,M;let{nodeValue:n,nodeName:s,nodeType:l}=e,a,c;if(l===Node.ATTRIBUTE_NODE?a=e:c=e,o==null){if(!n)return;let z=n.trim();if(!z)return;if(a||(i==null?void 0:i.tagName)==="STYLE"){if(z[0]!=="{")return;let{length:v}=z;if(z[v-1]!=="}")return;o=z.slice(1,-1)}else{let v=z.split(Dn);if(v.length<3)return;if(v.length===3&&!v[0]&&!v[2])o=v[1];else{for(let[k,D]of v.entries())if(k%2){let P=fr();c.before(P),this.#r(P,i,r,D)}else D&&c.before(D);return!0}}}let d=o,p=o[0]==="!",h=!1;p&&(o=o.slice(1),h=o[0]==="!",h&&(o=o.slice(1)));let g,_;if(c){i!==c.parentElement&&(i=c.parentElement),_=0;let z=c;for(;z=z.previousSibling;)_++}else if(i!==a.ownerElement&&(i=a.ownerElement),s.startsWith("on")){let z=s.indexOf("-");if(z===-1)return;g=z===2}if(g){i.removeAttribute(s);let z=this.#i(i),v=s.slice(3),[,k,D]=v.match(/^([*1~]+)?(.*)$/),P,R,V=[];if(o.startsWith("#"))P=It.get(o).fn;else{let $=o.split(".");$.length===1?(R=o,V=[]):(R=$[0],V=$)}this.addCompositionEventListener({tag:z,type:D,handleEvent:P,prop:R,deepProp:V,once:k==null?void 0:k.includes("1"),passive:k==null?void 0:k.includes("~"),capture:k==null?void 0:k.includes("*")});return}let m;if((T=this.searchByQuery)!=null&&T.has(d))m=this.searchByQuery.get(d);else{let z=o,v=z!==d,k;if(v&&((M=this.searchByQuery)!=null&&M.has(z)))k=this.searchByQuery.get(z);else{let D,P,R,V,$,oe,O,A;if(o.startsWith("#")){if(A=It.get(o),!A)return;D=A.fn,O=Ar,A.props?(P=A.props,R=A.deepProps,V=A.defaultValue??null):V=A.fn}else V=null,r!=null&&r.defaults&&(V=nt(o.split("."),r.defaults)??null),V==null&&(r!=null&&r.injections)&&(V=$n(o,r.injections));if(!P)if(typeof V=="function"){let H=zi.call(this,V,r==null?void 0:r.defaults,r==null?void 0:r.injections),ne=new Set([...H.props.this,...H.props.args[0],...H.props.args[1]]),ke=new Set([...H.deepPropStrings.this,...H.deepPropStrings.args[0]]);D=V,V=H.defaultValue,P=[...ne],R=[...ke].map(dt=>dt.split(".")),O=Ar}else{let H=o.split(".");H.length===1?($=o,P=[$],O=Fn):(P=[H[0]],oe=H,R=[H],O=Nn)}A&&(A.defaultValue=V,A.props=P,A.deepProps=R),k={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:z,defaultValue:V,subSearch:null,prop:$,propsUsed:P,deepProp:oe,deepPropsUsed:R,invocation:O,expression:D},this.addSearch(k)}v?(m={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:d,subSearch:k,negate:p,doubleNegate:h,prop:k.prop,deepProp:k.deepProp,propsUsed:k.propsUsed,deepPropsUsed:k.deepPropsUsed,defaultValue:h?!!k.defaultValue:p?!k.defaultValue:k.defaultValue,invocation(D){return this.doubleNegate?!!D:this.negate?!D:D}},this.addSearch(m)):m=k}let u,b=null,w=m.defaultValue;c?b=_:s==="mdw-if"?(u=this.#i(i),i.removeAttribute(s),w=w!=null&&w!==!1):(b=s,s==="id"||w==null||w===!1?i.removeAttribute(s):i.setAttribute(s,w===!0?"":w)),u??=this.#i(i);let y=this._interpolationState.nodeEntry;(!y||y.tag!==u)&&(y={tag:u,textNodes:[]},this._interpolationState.nodeEntry=y,this.nodesToBind.push(y),this._interpolationState.nodeIndex++);let S;if(c)switch(y.textNodes.push(_),this._interpolationState.nodeIndex++,S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,invocation:Rn,defaultValue:w,search:m},typeof w){case"string":c.data=w;break;case"number":c.data=`${w}`;break;default:c.data="";break}else b?S={nodeIndex:this._interpolationState.nodeIndex,attrName:b,defaultValue:w,invocation:Ln,search:m}:(S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,defaultValue:w,invocation:Pn,search:m},w||this.postInitActions.push({...S,invocation:On}));this.addAction(S),(this.tagsWithBindings??=new Set).add(u)}#i(e){if(!e)return"";let i=e.id;return i?this.allIds.includes(i)||this.allIds.push(i):(i=ot(),(this.temporaryIds??=new Set).add(i),this.allIds.push(i),e.id=i),i}#t(e,i){let r=e.getAttribute("mdw-for"),o=r==null?void 0:r.trim();if(!o||o[0]!=="{")return null;let{length:n}=o;if(o[n-1]!=="}")return null;let s=o.slice(1,-1),[l,a]=s.split(/\s+of\s+/);e.removeAttribute("mdw-for");let c=e.ownerDocument.createElement("template");e.replaceWith(c);let d=this.#i(c),p=this._interpolationState.nodeEntry;(!p||p.tag!==d)&&(p={tag:d,textNodes:[]},this._interpolationState.nodeEntry=p,this.nodesToBind.push(p),this._interpolationState.nodeIndex++);let h=new t;h.template.append(e);let g={...i.injections,[l]:null,index:null},_=a.split("."),m=_.length>1?_:null,u=m?_[0]:a,b=[u],w={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:null,prop:null,deepProp:m,propsUsed:b,deepPropsUsed:m?[m]:[[u]],defaultValue:{},invocation:null},y={defaultValue:null,nodeIndex:this._interpolationState.nodeIndex,search:w,commentIndex:this._interpolationState.commentIndex++,adapterIndex:this._interpolationState.adapterIndex++,injections:g,invocation(C,T,M,z){let v=C.adapters[this.adapterIndex];if(!v){let O=C.nodes[this.nodeIndex],A=Pe();if(C.comments[this.commentIndex])throw new Error("Comment already exists at index");C.comments[this.commentIndex]=A,O.replaceWith(A);let H=h.props.filter(ne=>ne!==l&&ne!==u);v=new tt({anchorNode:A,composition:h,renderOptions:{target:null,context:C.options.context,store:C.options.store,injections:this.injections},parentProps:H}),C.adapters[this.adapterIndex]=v}let k=C.options.injections??this.injections,D=z??C.options.store,P=m?nt(m,D):D[u];if(P===void 0&&m&&k&&(P=nt(m,k)),!P||P.length===0){v.removeEntries();return}let R=m?nt(m,M):M[u],V=h.props.some(O=>O!==l&&O!==u&&O in M);if(R===void 0&&!V)return;let $={...M};v.startBatch();let oe;if(!V&&!(oe=Array.isArray(R))){let O=oe?R.entries():Object.entries(R);for(let[A,H]of O){if(A==="length"||H===null)continue;let ne=+A,ke=P[ne];$[l]=H,k[l]=ke,k.index=ne,v.renderOptions.injections=k,v.renderData(ne,$,D,ke,H)}}else{R||delete $[l];for(let[O,A]of P.entries()){let H;if(R){if(!V&&!(O in R)||(H=R[O],H===null))continue;$[l]=H}k[l]=A,k.index=O,v.renderOptions.injections=k,v.renderData(O,$,D,A,H)}}v.stopBatch(),v.removeEntries(P.length)}};return h.interpolate({defaults:i.defaults,injections:g}),b.push(...h.props),this.addSearch(w),this.addAction(y),(this.tagsWithBindings??=new Set).add(d),h}interpolate(e){var n;this.interpolateOptions=e,this.cloneable=this.template.cloneNode(!0);let r=document.createTreeWalker(this.cloneable,5),o=r.nextNode();for(;o;){let s=null;switch(o.nodeType){case Node.ELEMENT_NODE:if(s=o,s.tagName==="TEMPLATE"){for(;s.contains(o=r.nextNode()););continue}if(s.tagName==="SCRIPT"){for(;s.contains(o=r.nextNode()););continue}if(s.hasAttribute("mdw-for")){for(;s.contains(o=r.nextNode()););this.#t(s,e);continue}else{let l=s.attributes.id;l&&(this.#r(l,s,e),this.#i(s));for(let a of[...s.attributes].reverse())a.nodeName!=="id"&&this.#r(a,s,e)}break;case Node.TEXT_NODE:if(s=o.parentElement,this.#r(o,s,e)){let l=r.nextNode();o.remove(),o=l;continue}break;default:throw new Error(`Unexpected node type: ${o.nodeType}`)}o=r.nextNode()}"adoptedStyleSheets"in document?this.adoptedStyleSheets=[...ur(this.styles)]:(this.stylesFragment=je(),this.stylesFragment.append(...hr(this.styles))),this.props=this.actionsByPropsUsed?[...this.actionsByPropsUsed.keys()]:[];for(let s of this.allIds)(n=this.tagsWithBindings)!=null&&n.has(s)||this.nodesToBind.push({tag:s,textNodes:[]});this.tags=this.nodesToBind.map(s=>s.tag),this.interpolated=!0}addSearch(e){return this.searches.push(e),e.query&&((this.searchByQuery??=new Map).set(e.query,e),this.initCache[e.cacheIndex]=e.defaultValue),e}addAction(e){let i=this.actionsByPropsUsed??=new Map;for(let r of e.search.propsUsed)i.has(r)?i.get(r).push(e):i.set(r,[e]);return e}};function F(t,e){return(i,r,o)=>{r==null?o.refs[e].removeAttribute(t):o.refs[e].setAttribute(t,r)}}var f=class t extends HTMLElement{static elementName;static get observedAttributes(){return this.attrList.keys()}compose(){return this.#t??=new Ee}static _composition=null;static _props=new Map;static _attrs=new Map;static _propChangedCallbacks=new Map;static _attributeChangedCallbacks=new Map;static _onComposeCallbacks=[];static _onConnectedCallbacks=[];static _onDisconnectedCallbacks=[];static _onConstructedCallbacks=[];static interpolatesTemplate=!0;static supportsElementInternals="attachInternals"in HTMLElement.prototype;static supportsElementInternalsRole=t.supportsElementInternals&&"role"in ElementInternals.prototype;static defined=!1;static registrations=new Map;static expressions=this.set;static methods=this.set;static overrides=this.set;static props=this.observe;static idl=this.prop;static _addCallback(e,i){if(!this.hasOwnProperty(e)){this[e]=[...this[e],i];return}this[e].push(i)}static _removeCallback(e,i){this.hasOwnProperty(e)||(this[e]=[...this[e]]),this[e]=this[e].filter(r=>r!==i)}static _removeFromCallbackMap(e,i,r){if(!e.has(i))return;if(!r){e.delete(i);return}let o=e.get(i).filter(n=>n!==r);o.length===0?e.delete(i):e.set(i,o)}static append(...e){return this._onComposeCallbacks.push(({composition:i})=>{i.append(...e)}),this._addCallback("_onComposeCallbacks",(i=>{let{composition:r}=i;r.append(...e)})),this}static recompose(e){return this._addCallback("_onComposeCallbacks",e),this}static css(e,...i){return this._addCallback("_onComposeCallbacks",(r=>{let{composition:o}=r;typeof e=="string"||Array.isArray(e)?o.append(yt(e,...i)):o.append(e,...i)})),this}static autoRegister(e){return this.hasOwnProperty("defined")&&this.defined?this:(this.register(e),this)}static html(e,...i){return this._addCallback("_onComposeCallbacks",(r=>{let{composition:o}=r;o.append(Ti(e,...i))})),this}static extend(e){return e?e(this):class extends this{}}static setStatic(e){return Object.assign(this,e),this}static readonly(e,i){return this.set(e,{...i,writable:!1})}static set(e,i){return Object.defineProperties(this.prototype,Object.fromEntries([...Object.entries(e).map(([r,o])=>(this.undefine(r),[r,{enumerable:r[0]!=="_",configurable:!0,value:o,writable:!0,...i}])),...Object.getOwnPropertySymbols(e).map(r=>[r,{enumerable:!1,configurable:!0,value:e[r],writable:!0,...i}])])),this}static mixin(e){return e(this)}static register(e){return e&&(this.elementName=e),customElements.define(this.elementName,this),t.registrations.set(this.elementName,this),this.defined=!0,this}static get propList(){return this.hasOwnProperty("_props")||(this._props=new Map(this._props)),this._props}static get attrList(){return this.hasOwnProperty("_attrs")||(this._attrs=new Map(this._attrs)),this._attrs}static get propChangedCallbacks(){return this.hasOwnProperty("_propChangedCallbacks")||(this._propChangedCallbacks=new Map([...this._propChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._propChangedCallbacks}static get attributeChangedCallbacks(){return this.hasOwnProperty("_attributeChangedCallbacks")||(this._attributeChangedCallbacks=new Map([...this._attributeChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._attributeChangedCallbacks}static prop(e,i){let r=Ei(this.prototype,e,i),{changedCallback:o,attr:n,reflect:s,watchers:l}=r;return o&&l.push([e,o]),r.changedCallback=function(c,d,p){this.#c.call(this,e,c,d,p)},this.propList.set(e,r),n&&(s===!0||s==="read")&&(r.enumerable||!this.attrList.has(n)||!this.attrList.get(n).enumerable)&&this.attrList.set(n,r),this.onPropChanged(l),this}static setPrototype(e,i){return this.prop(e,i),null}static define(e){return Object.defineProperties(this.prototype,Object.fromEntries(Object.entries(e).map(([i,r])=>(this.undefine(i),[i,{enumerable:i[0]!=="_",configurable:!0,...typeof r=="function"?{get:r}:r}])))),this}static undefine(e){if(Reflect.deleteProperty(this.prototype,e),this.propList.has(e)){let{watchers:i,attr:r,reflect:o}=this.propList.get(e);if(i.length&&this.propChangedCallbacks.has(e)){let n=this.propChangedCallbacks.get(e);for(let[s,l]of i){let a=n.indexOf(l);a!==-1&&n.splice(a,1)}}r&&(o===!0||o==="read")&&this.attrList.delete(r),this.propList.delete(e)}return this}static observe(e){for(let[i,r]of Object.entries(e??{})){let o=typeof r=="function"?{reflect:!1,get:r}:r;this.prop(i,o)}return this}static defineStatic(e){for(let[i,r]of Object.entries(e??{}))Ei(this,i,{reflect:!1,...typeof r=="function"?{get:r}:typeof r=="string"?{type:r}:r});return this}static events(e,i){return this.on({composed({composition:r}){for(let[o,n]of Object.entries(e)){let[,s,l]=o.match(/^([*1~]+)?(.*)$/),a,c=[];if(typeof n=="string"){let d=n.split(".");d.length===1?(a=n,c=[]):(a=d[0],c=d)}r.addCompositionEventListener({type:l,once:s==null?void 0:s.includes("1"),passive:s==null?void 0:s.includes("~"),capture:s==null?void 0:s.includes("*"),...typeof n=="function"?{handleEvent:n}:typeof n=="string"?{prop:a,deepProp:c}:n,...i})}}}),this}static childEvents(e,i){for(let[r,o]of Object.entries(e))this.events(o,{tag:ze(r),...i});return this}static rootEvents(e,i){return this.events(e,{tag:Ee.shadowRootTag,...i})}static on(e,i){let r=typeof e=="string"?{[e]:i}:e;for(let[o,n]of Object.entries(r)){let s;switch(o){case"composed":s="_onComposeCallbacks";break;case"constructed":s="_onConstructedCallbacks";break;case"connected":s="_onConnectedCallbacks";break;case"disconnected":s="_onDisconnectedCallbacks";break;case"props":this.onPropChanged(n);continue;case"attrs":this.onAttributeChanged(n);continue;default:if(o.endsWith("Changed")){let l=o.slice(0,o.length-7);this.onPropChanged({[l]:n});continue}throw new Error("Invalid callback name")}this._addCallback(s,n)}return this}static off(e,i){let r=typeof e=="string"?{[e]:i}:e;for(let[o,n]of Object.entries(r)){let s;switch(o){case"composed":s="_onComposeCallbacks";break;case"constructed":s="_onConstructedCallbacks";break;case"connected":s="_onConnectedCallbacks";break;case"disconnected":s="_onDisconnectedCallbacks";break;case"props":this.offPropChanged(n);continue;case"attrs":this.offAttributeChanged(n);continue;default:if(o.endsWith("Changed")){let l=o.slice(0,o.length-7);this.offPropChanged({[l]:n});continue}throw new Error("Invalid callback name")}this._removeCallback(s,n)}return this}static offPropChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{propChangedCallbacks:r}=this;for(let[o,n]of i)this._removeFromCallbackMap(r,o,n);return this}static offAttributeChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{attributeChangedCallbacks:r}=this;for(let[o,n]of i)this._removeFromCallbackMap(r,o,n);return this}static onPropChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{propChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}static onAttributeChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{attributeChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}#e;#r=new Map;#i=new Map;#t;#n=!1;#o=[];#s;#a=null;constructor(...e){super(),t.supportsElementInternals&&(this.elementInternals=this.attachInternals()),this.attachShadow({mode:"open",delegatesFocus:this.delegatesFocus}),this.render=this.composition.render(this.constructor.prototype,this,{defaults:this.constructor.prototype,store:this,shadowRoot:this.shadowRoot,context:this});for(let i of this.static._onConstructedCallbacks)i.call(this,this.callbackArguments)}propChangedCallback(e,i,r,o=r){this.#n?this.#o.push([e,o,this]):this.render.byProp(e,o,this);let{_propChangedCallbacks:n}=this.static;if(n.has(e))for(let s of n.get(e))s.call(this,i,r,o,this)}attributeChangedCallback(e,i,r){let{attributeChangedCallbacks:o}=this.static;if(o.has(e))for(let d of o.get(e))d.call(this,i,r,this);let{attrList:n}=this.static;if(!n.has(e))return;let s=n.get(e);if(s.attributeChangedCallback){s.attributeChangedCallback.call(this,e,i,r);return}let l;if(this.attributeCache.has(e)&&(l=this.attributeCache.get(e),l.stringValue===r))return;let a=this[s.key],c=r===null?s.nullParser(r):s.type==="boolean"?!0:s.parser(r);c!==a&&(l?(l.stringValue=r,l.parsedValue=c):this.attributeCache.set(e,{stringValue:r,parsedValue:c}),this[s.key]=c)}get#l(){var e;return(e=this.#t)==null?void 0:e.template}#c(e,i,r,o){let{propList:n}=this.static;if(n.has(e)){let{reflect:s,attr:l}=n.get(e);if(l&&(s===!0||s==="write")){let a,c=!1,{attributeCache:d}=this;if(d.has(l)?(a=d.get(l),c=a.parsedValue!==r):(a={},d.set(l,a),c=!0),c){let p=vr(r);a.parsedValue=r,a.stringValue=p,p==null?this.removeAttribute(l):this.setAttribute(l,p)}}}this.propChangedCallback(e,i,r,o)}get static(){return this.constructor}patch(e){this.#n=!0,gi(this,e,"object");for(let[i,r,o]of this.#o)i in e||this.render.byProp(i,r,o);this.#o.slice(0,this.#o.length),this.render(e),this.#n=!1}get refs(){return this.#e??=new Proxy({},{get:(e,i)=>{let r=this.composition,o;if(!r.interpolated){if(this.#i.has(i)&&(o=this.#i.get(i).deref(),o))return o;let l=ze(i);return o=r.template.getElementById(l),o?(this.#i.set(i,new WeakRef(o)),o):null}if(this.#r.has(i)&&(o=this.#r.get(i).deref(),o))return o;let n=ze(i),s=this.composition.tags.indexOf(n);return o=this.render.state.refs[s],o?(this.#r.set(i,new WeakRef(o)),o):null}})}get attributeCache(){return this.#s??=new Map}get callbackArguments(){return this.#a??={composition:this.#t,refs:this.refs,html:Ti.bind(this),inline:Ii,template:this.#l,element:this}}get composition(){if(this.#t)return this.#t;if(this.static.hasOwnProperty("_composition"))return this.#t=this.static._composition,this.static._composition;this.compose();for(let e of this.static._onComposeCallbacks)e.call(this,this.callbackArguments);return this.static._composition=this.#t,this.#t}connectedCallback(){for(let e of this.static._onConnectedCallbacks)e.call(this,this.callbackArguments)}disconnectedCallback(){for(let e of this.static._onDisconnectedCallbacks)e.call(this,this.callbackArguments)}};f.prototype.delegatesFocus=!1;function K(t){return t.observe({density:"integer"}).css`:host{--mdw-density:var(--mdw-density__default, 0)}:host([density]){--mdw-density:0}:host([density="-1"]){--mdw-density:-1}:host([density="-2"]){--mdw-density:-2}:host([density="-3"]){--mdw-density:-3}:host([density="-4"]){--mdw-density:-4}:host([density="1"]){--mdw-density:1}:host([density="2"]){--mdw-density:2}:host([density="3"]){--mdw-density:3}:host([density="4"]){--mdw-density:4}`}function E(t){return t.observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string",outlined:"boolean"}).html`<div id=outline mdw-if={outlined} class=outline disabled={disabledState} focused={focusedState} pressed={pressedState} hovered={hoveredState}></div>`.css`:host{--mdw-shape__size:0px;--mdw-shape__ltr:calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl:calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__inline-start-deg:calc(var(--mdw-dir, 1) * -90deg);--mdw-shape__size__top-start-size:var(--mdw-shape__size);--mdw-shape__size__top-end-size:var(--mdw-shape__size);--mdw-shape__size__bottom-start-size:var(--mdw-shape__size);--mdw-shape__size__bottom-end-size:var(--mdw-shape__size);--mdw-shape__size__top-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));z-index:0;border-start-start-radius:calc(var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__size__bottom-end-size))}:host([shape-style=none]){--mdw-shape__size:0px}:host([shape-style=extra-small]){--mdw-shape__size:var(--mdw-shape__extra-small)}:host([shape-style=small]){--mdw-shape__size:var(--mdw-shape__small)}:host([shape-style=medium]){--mdw-shape__size:var(--mdw-shape__medium)}:host([shape-style=large]){--mdw-shape__size:var(--mdw-shape__large)}:host([shape-style=extra-large]){--mdw-shape__size:var(--mdw-shape__extra-large)}:host([shape-style=full]){--mdw-shape__size:var(--mdw-shape__full)}:host([shape-style=inherit]){--mdw-shape__size:inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-bottom]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__top-end-size:0px}:host([shape-start]){--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-end]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px}`.css`.outline{position:absolute;inset:0;overflow:hidden;border-style:solid;border-width:1px;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}.outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}.outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}`}var Hn=Be.map(t=>[`:host([color="${t}"]){`,`--mdw-bg: var(--mdw-color__${t});`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([color="${t}-container"]){`,`--mdw-bg: var(--mdw-color__${t}-container);`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),Bn=Be.map(t=>[`:host([ink="${t}"]){`,`--mdw-ink: var(--mdw-color__${t});`,"}",`:host([ink="on-${t}"]){`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([ink="on-${t}-container"]){`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),jn=oi.map(t=>[`:host([type-style|="${t}"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-large__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-large__letter-spacing);`,"}",`:host([type-style="${t}-medium"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-medium__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-medium__letter-spacing);`,"}",`:host([type-style="${t}-small"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-small__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-small__letter-spacing);`,"}"].join("")).join("");function x(t){return t.observe({color:"string",ink:"string",typeStyle:"string"}).css(Hn).css`:host([color=background]){--mdw-bg:var(--mdw-color__background);--mdw-ink:var(--mdw-color__on-background)}:host([color=surface-dim]){--mdw-bg:var(--mdw-color__surface-dim)}:host([color=surface-bright]){--mdw-bg:var(--mdw-color__surface-bright)}:host([color=surface-container-lowest]){--mdw-bg:var(--mdw-color__surface-container-lowest)}:host([color=surface-container-low]){--mdw-bg:var(--mdw-color__surface-container-low)}:host([color=surface-container-high]){--mdw-bg:var(--mdw-color__surface-container-high)}:host([color=surface-container-highest]){--mdw-bg:var(--mdw-color__surface-container-highest)}:host([color=surface-primary]){--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__primary)}:host([color$=variant]){--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__on-surface-variant)}:host([color^=inverse]){--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([color=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}`.css(Bn).css`:host([ink=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}:host([ink=outline]){--mdw-ink:var(--mdw-color__outline)}:host([ink=surface-container-highest]){--mdw-ink:var(--mdw-color__surface-container-highest)}:host([ink=on-surface-variant]){--mdw-ink:var(--mdw-color__on-surface-variant)}:host([ink=inverse-on-surface]){--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([ink=inherit]){--mdw-ink:inherit}`.css(jn)}var Tr=f.extend().mixin(x).mixin(K).mixin(E).html`<slot id=slot></slot>`.css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-error);--mdw-bg:var(--mdw-color__error);--mdw-type__font:var(--mdw-typescale__label-small__font);--mdw-type__letter-spacing:var(--mdw-typescale__label-small__letter-spacing);position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;min-block-size:var(--mdw-typescale__label-small__line-height);min-inline-size:var(--mdw-typescale__label-small__line-height);padding-block:calc(8px - var(--mdw-typescale__body-small__line-height)/ 2);padding-inline:max(4px,calc(4px + (var(--mdw-density) * 2px)));background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);text-align:center}@supports (width:1lh){:host{min-block-size:1lh;min-inline-size:1lh;padding-inline:max(.25lh,calc(.25lh + (var(--mdw-density) * 2px)))}}:host(:empty){min-block-size:6px;min-inline-size:6px;margin:5px;padding:0}`.autoRegister("mdw-badge");function L(t){return t.set({delegatesFocus:!0}).extend(Oe>=111?e=>e:e=>class extends e{get tabIndex(){return super.tabIndex}set tabIndex(i){if(!(i===super.tabIndex&&i!==-1)){if(this.delegatesFocus&&de(this)){if(this.getAttribute("tabindex")===i.toString())return;let r=o=>{o.stopImmediatePropagation(),o.stopPropagation(),o.type==="blur"&&this.focus()};for(let o of["blur","focus","focusout","focusin"])this.addEventListener(o,r,{capture:!0,once:!0});super.tabIndex=i;for(let o of["blur","focus","focusout","focusin"])this.removeEventListener(o,r,{capture:!0});return}super.tabIndex=i}}})}function Ri(t){return t?t.includes("px")||t.includes("em")||t.includes("ex")?t:`calc(${t.replace("sp","")} * 0.0625rem)`:""}function Fe(t){return t.mixin(L).observe({textPadding:"string",textPaddingTop:"string",textLeading:"string",textPaddingBottom:"string"}).observe({_computedTextPaddingTop({textPaddingTop:e,textPadding:i}){return Ri(e??i)},_computedTextPaddingBottom({textPaddingBottom:e,textPadding:i}){return Ri(e??i)},_computedTextLeading({textLeading:e}){return Ri(e)}}).observe({_beforeStyle({_computedTextPaddingTop:e,_computedTextLeading:i}){return i?`margin-top:${i}`:e?`margin-top:${e}`:""},_afterStyle({_computedTextPaddingBottom:e}){return e?`vertical-align:calc(-1em + (-1 * ${e}));`:""}}).html`<div id=wrapper style={_wrapperStyle} before={!!_beforeStyle} after={!!_afterStyle}><span id=before mdw-if={!!_beforeStyle} style={_beforeStyle} text-leading={textLeading}></span><span id=content before={!!_beforeStyle} after={!!_afterStyle}><span id=after mdw-if={!!_afterStyle} style={_afterStyle}></span></span></div>`.recompose(({refs:{content:e,slot:i}})=>{e.prepend(i)}).css`:host{display:block}:host(:where([text-padding],[text-padding-top],[text-padding-bottom])){display:flex}#wrapper{display:contents}#wrapper:where([before],[after]){display:flex;align-items:baseline}#wrapper[before]{margin-block-start:-1em}#wrapper[after]{margin-block-end:-1em}#before{display:inline-block;block-size:1.4ex;padding-block-start:1em}@supports (height:1cap){#before{block-size:1cap}}#before[text-leading]{block-size:0}#content{display:contents}#content:where([before],[after]){display:block}#after{display:inline-block;padding-block-end:1em}`}function pe(t){return t.observe({block:"boolean",inline:"boolean",row:"boolean",x:{type:"string",empty:"start",value:"start"},y:{type:"string",empty:"start",value:"start"},gap:"float",padding:"string"}).css`:host{display:flex;flex-direction:column;box-sizing:border-box}:host(:is([inline])){display:inline-flex}:host(:is([block])){display:block}:host(:is([inline][block])){display:inline-block}:host(:is([row])){flex-direction:row}:host(:is([row][y=start],[x=start]:not([row]))){align-items:flex-start}:host(:is([row][y=end],[x=end]:not([row]))){align-items:flex-end}:host(:is([row][y=center],[x=center]:not([row]))){align-items:center}:host(:is([row][y=between],[x=between]:not([row]))){align-items:space-between}:host(:is([row][y=around],[x=around]:not([row]))){align-items:space-around}:host(:is([row][y=baseline],[x=baseline]:not([row]))){align-items:baseline}:host(:is([row][y=stretch],[x=stretch]:not([row]))){align-items:stretch}:host(:is([row][x=start],[y=start]:not([row]))){justify-content:flex-start}:host(:is([row][x=end],[y=end]:not([row]))){justify-content:flex-end}:host(:is([row][x=center],[y=center]:not([row]))){justify-content:center}:host(:is([row][x=between],[y=between]:not([row]))){justify-content:space-between}:host(:is([row][x=stretch],[y=stretch]:not([row]))){justify-content:stretch}:host(:is([wrap])){flex-wrap:wrap}:host(:is([wrap=reverse])){flex-wrap:wrap-reverse}:host(:is([gap])){gap:0}:host(:is([gap="4"])){gap:4px}:host(:is([gap="8"])){gap:8px}:host(:is([gap="12"])){gap:12px}:host(:is([gap="16"])){gap:16px}:host(:is([gap="20"])){gap:20px}:host(:is([gap="24"])){gap:24px}:host(:is([padding])){padding:0}:host(:is([padding=pane])){padding:var(--mdw-pane__padding,16px)}:host(:is([padding="4"])){padding:4px}:host(:is([padding="8"])){padding:8px}:host(:is([padding="12"])){padding:12px}:host(:is([padding="16"])){padding:16px}:host(:is([padding="20"])){padding:20px}:host(:is([padding="24"])){padding:24px}:host(:is([padding-x])){padding-inline:0}:host(:is([padding-x=pane])){padding-inline:var(--mdw-pane__padding-inline,16px)}:host(:is([padding-x="4"])){padding-inline:4px}:host(:is([padding-x="8"])){padding-inline:8px}:host(:is([padding-x="12"])){padding-inline:12px}:host(:is([padding-x="16"])){padding-inline:16px}:host(:is([padding-x="20"])){padding-inline:20px}:host(:is([padding-x="24"])){padding-inline:24px}:host(:is([padding-y])){padding-block:0}:host(:is([padding-y=pane])){padding-block:var(--mdw-pane__padding-block,16px)}:host(:is([padding-y="4"])){padding-block:4px}:host(:is([padding-y="8"])){padding-block:8px}:host(:is([padding-y="12"])){padding-block:12px}:host(:is([padding-y="16"])){padding-block:16px}:host(:is([padding-y="20"])){padding-block:20px}:host(:is([padding-y="24"])){padding-block:24px}`}var j=f.extend().mixin(x).mixin(pe).html`<slot id=slot></slot>`.css`:host(:where([color])){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([ink]){color:rgb(var(--mdw-ink))}:host([type-style]){font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}#slot::slotted([flex-0]){flex:0}#slot::slotted([flex-1]){flex:1}#slot::slotted([flex-none]){flex:none}`.autoRegister("mdw-box");var Lr=j.extend().mixin(Fe).css`:host{font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-body");function B(t){return t.observe({_ariaRole:"string"}).set({_onConnectAriaValues:null}).methods({readAriaProperty(e){if(this.elementInternals&&e in this.elementInternals)return this.elementInternals[e];if(e in this)return this[e];let i=e;return i.startsWith("aria")&&(i=`aria-${i.slice(4).toLowerCase()}`),this.getAttribute(e)},updateAriaProperty(e,i){if(this.elementInternals&&e in this.elementInternals)this.elementInternals[e]=i;else if(this.isConnected)if(e in this)this[e]=i;else{let r=e;r.startsWith("aria")&&(r=`aria-${r.slice(4).toLowerCase()}`),i==null?this.removeAttribute(e):this.setAttribute(r,i)}else this._onConnectAriaValues??=new Map,this._onConnectAriaValues.set(e,i)}}).on({_ariaRoleChanged(e,i){this.updateAriaProperty("role",i)},constructed(){this.updateAriaProperty("role",this._ariaRole)},connected(){if(this._onConnectAriaValues){for(let[e,i]of this._onConnectAriaValues)this.updateAriaProperty(e,i);this._onConnectAriaValues=null}}})}var Yn=["button","[href]","input","select","textarea","[tabindex]"].join(", ");function ee(t){return t.mixin(B).observe({kbdNav:{empty:"true"},_kbdFocusable:{empty:!0}}).define({kbdNavQuery(){return Yn},kbdNavFocusableWhenDisabled(){return!0},ariaOrientationDefault(){return"vertical"}}).define({kbdNavChildren(){return this.querySelectorAll(this.kbdNavQuery)}}).methods({_ariaOrientationIsVertical(){return(this.readAriaProperty("ariaOrientation")??this.ariaOrientationDefault)==="vertical"},focusCurrentOrFirst(){let e,i;for(let r of this.kbdNavChildren)if(i=r,r.tabIndex===0){e=r;break}return U(e)?e:U(i)?i:null},focusNext(e=null,i=!0,r=!1){let o=!1,n=r?[...this.kbdNavChildren].reverse():this.kbdNavChildren;for(let s of n){if(!o){o=e?s===e:s.getAttribute("tabindex")==="0";continue}if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&U(s))return this.ariaActiveDescendantElement=s,s}if(!i)return!de(e)&&e instanceof HTMLElement&&e.focus(),e;for(let s of n)if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&(U(s)||s===e))return s;return null},focusPrevious(e,i=!0){return this.focusNext(e,i,!0)},focus(...e){if(!U(this.ariaActiveDescendantElement,...e)){for(let i of this.kbdNavChildren)if(i.getAttribute("tabindex")==="0"&&i instanceof HTMLElement){this.ariaActiveDescendantElement=i,i.focus(...e);return}this.focusNext()}},refreshTabIndexes(){if(this.kbdNav!=="true")return;let e=null,i=null,r=null;for(let o of this.kbdNavChildren)!e&&de(o)?e=o:!i&&o.getAttribute("tabindex")==="0"?i=o:(!r&&o.getAttribute("aria-hidden")!=="true"&&(this.kbdNavFocusableWhenDisabled||o.getAttribute("aria-disabled")!=="true")&&(r=o),o.tabIndex=-1),o.hasAttribute("tabindex")||(o.tabIndex=de(o)?0:-1);e?e.tabIndex=0:i?e&&(i.tabIndex=-1):r&&(r.tabIndex=0)}}).events({focusin(e){if(this.kbdNav!=="true")return;let i=e.target;if(i.matches(this.kbdNavQuery)){this.ariaActiveDescendantElement=i,i.getAttribute("tabindex")!=="0"&&(i.tabIndex=0);for(let o of this.kbdNavChildren)o!==i&&o.hasAttribute("tabindex")&&(o.tabIndex=-1)}},keydown(e){if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&this.kbdNav==="true"){switch(e.key){case"ArrowUp":case"Up":this._ariaOrientationIsVertical()&&this.focusPrevious();break;case"ArrowDown":case"Down":this._ariaOrientationIsVertical()&&this.focusNext();break;case"ArrowLeft":case"Left":if(this._ariaOrientationIsVertical())return;_e(this)?this.focusNext():this.focusPrevious();break;case"ArrowRight":case"Right":if(this._ariaOrientationIsVertical())return;_e(this)?this.focusPrevious():this.focusNext();break;default:return}e.stopPropagation(),e.preventDefault()}}}).on({connected(){this.refreshTabIndexes()}})}function Ne(t){return t.mixin(B).mixin(ee).set({ariaOrientationDefault:"horizontal",_ariaRole:"toolbar"})}function X(t){return t.css`:host{--mdw-elevation__rgb:var(--mdw-color__shadow);--mdw-elevation__box-shadow__0:0px 1px 1px 0px rgba(var(--mdw-elevation__rgb), 0),0px 0px 1px 1px rgba(var(--mdw-elevation__rgb), 0);--mdw-elevation__box-shadow__1:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 1px 3px 1px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__2:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 2px 6px 2px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__3:0px 1px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 4px 8px 3px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__4:0px 2px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 6px 10px 4px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__5:0px 4px 4px 0px rgba(var(--mdw-elevation__rgb), .3),0px 8px 12px 6px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__drop-shadow__0:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),000)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),00000));--mdw-elevation__drop-shadow__1:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__2:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 2px 005px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__3:drop-shadow(0px 1px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 4px 007px rgba(var(--mdw-elevation__rgb),.263));--mdw-elevation__drop-shadow__4:drop-shadow(0px 2px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 6px 009px rgba(var(--mdw-elevation__rgb),.27));--mdw-elevation__drop-shadow__5:drop-shadow(0px 4px 2px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 8px 012px rgba(var(--mdw-elevation__rgb),.3))}`}var Tt=f.extend().mixin(x).mixin(pe).mixin(X).mixin(E).html`<slot id=slot></slot>`.css`:host{--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:relative;filter:var(--mdw-elevation__drop-shadow__0);background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition:filter .2s}:host(:where([elevation="1"])){filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([elevation="2"])){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([elevation="3"])){filter:var(--mdw-elevation__drop-shadow__3)}:host(:where([elevation="4"])){filter:var(--mdw-elevation__drop-shadow__4)}:host(:where([elevation="5"])){filter:var(--mdw-elevation__drop-shadow__5)}`.autoRegister("mdw-surface");var Rr=Tt.extend().mixin(Ne).observe({color:{empty:"surface-container"}}).css`:host{--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);align-items:center;flex-direction:row;gap:8px;justify-content:flex-start;box-sizing:content-box;block-size:56px;padding-block:12px;padding-inline:8px 16px;box-shadow:none;direction:ltr}`.autoRegister("mdw-bottom-app-bar");var te={type:"function",reflect:"read",value:null,parser(t){return t},attributeChangedCallback(t,e,i){if(e==null&&i==null)return;if(i==null){this[t]=null;return}let r;try{let o=`with(this.ownerDocument ?? document){with(this.form ?? {}){with(this){${i}}}}`;r=new Function(`return function ${t}(event){${o}}`)()}catch{let o=(this.ownerDocument??document).createElement("button");o.setAttribute("onclick",i),r=o.onclick}this[t]=r},propChangedCallback(t,e,i){let r=t.slice(2);e&&this.removeEventListener(r,e),i&&this.addEventListener(r,i)}};var Fi=new WeakMap,Ni=new WeakMap;function Wn(t){let e=Ni.get(this),i;e!=null&&e.has(t)&&(i=e.get(t));let r=Fi.get(this),{initial:o}=r.get(t);r.delete(t);let n=this[t];if(!n){i==null||i.cancel();return}let{target:s,styles:l,timing:a}=n,d=(s?typeof s=="string"?this.refs[s]:s:this).animate(l,{...a,...o?{duration:0}:null,fill:"forwards"});d.onremove=()=>{i==null||i.effect.updateTiming({fill:"none"}),i==null||i.finish(),i==null||i.cancel(),i=null},e?e.set(t,d):Ni.set(this,new Map([[t,d]]))}var Ye=new WeakMap,Pr=new ResizeObserver(t=>{for(let{target:e}of t)if(Ye.has(e)){let i=Ye.get(e);Ye.delete(e),Pr.unobserve(e);for(let r of i)r()}}),ie={type:"object",reflect:!1,diff:null,propChangedCallback(t,e,i){if(!i){let s=Ni.get(this);if(!(s!=null&&s.has(t)))return}let r=Fi.get(this),o=!this.isConnected;if(r){if(r.has(t))return;r.set(t,{initial:o})}else Fi.set(this,new Map([[t,{initial:o}]]));let n=Wn.bind(this,t);this.isConnected?queueMicrotask(n):Ye.has(this)?Ye.get(this).push(n):(Ye.set(this,[n]),Pr.observe(this))}},Pi=new WeakMap,Oi=null,ae={type:"string",reflect:!1,parser(t){return!t||typeof t=="string"?t:`:host{${Object.entries(t).map(([e,i])=>`${ze(e)}:${i}`).join(";")}}`},propChangedCallback(t,e,i){let r,o;if(Pi.has(this))r=Pi.get(this),r.has(t)&&(o=r.get(t));else{if(!i)return;r=new Map,Pi.set(this,r)}if(Oi??="adoptedStyleSheets"in ShadowRoot.prototype,!o){if(Oi)o=new CSSStyleSheet,this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,o];else{let n=this.ownerDocument.createElement("style");this.shadowRoot.prepend(n),o=n}r.set(t,o)}i?(Oi?o.replaceSync(i):i&&(o.textContent=i),o.disabled=!1):o.disabled=!0}};var Or=new ResizeObserver(t=>{for(let e of t)e.target.onResizeObserved(e)});function W(t){return t.observe({_resizeObserverEnabled:{type:"boolean",value:!0}}).methods({onResizeObserved(e){},observeResize(){Or.observe(this,{box:"border-box"})},unobserveResize(){Or.unobserve(this)}}).on({connected(){this._resizeObserverEnabled&&this.observeResize()},disconnected(){this.unobserveResize()},_resizeObserverEnabledChanged(e,i){i?this.observeResize():this.unobserveResize()}})}var Nr,Fr=(Nr=window==null?void 0:window.matchMedia)==null?void 0:Nr.call(window,"(any-pointer: coarse)").matches;function N(t){return t.observe({disabled:"boolean",focused:"boolean",hovered:"boolean",pressed:"boolean",_lastInteraction:{value:null},_hovered:"boolean",_focused:"boolean",_focusedSynthetic:"boolean",_keyPressed:"boolean",_keyReleased:"boolean",_pointerPressed:"boolean",stateLayer:"boolean"}).observe({disabledState({disabled:e}){return e},hoveredState({_hovered:e,hovered:i}){return e||i},focusedState({_focused:e,focused:i}){return e||i},pressedState({_keyPressed:e,_pointerPressed:i,pressed:r}){return e||i||r},touchedState({_lastInteraction:e}){return e==="touch"},pointedState({_lastInteraction:e}){return e==="mouse"||e==="pen"}}).define({stateTargetElement(){return this}}).html`<div id=state mdw-if={stateLayer} disabled={disabledState} focused={focusedState} hovered={hoveredState} pressed={pressedState} interaction={_lastInteraction} touched={touchedState} pointed={pointedState} aria-hidden=true></div>`.events({pointerenter(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"),e.pointerType!=="touch"&&(this._hovered=!0))},"~pointerdown"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!0)},"~pointerup"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!1)},pointercancel(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"))},pointerleave(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=!1,this._hovered=!1)},"~keydown"(e){e.isTrusted&&(this._lastInteraction="key",!e.repeat&&e.key===" "&&(this._keyPressed=!0))},"~keyup"(e){e.isTrusted&&(this._lastInteraction="key",e.key===" "&&(this._keyPressed=!1,this._keyReleased=!0,setTimeout(()=>{this._keyReleased=!1})))},blur(e){e.isTrusted&&(this._focused=!1,this._focusedSynthetic=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction&&(Fr=this._lastInteraction==="touch",this._lastInteraction=null))},focus(e){e.isTrusted&&(this._focusedSynthetic="sourceCapabilities"in e?!e.sourceCapabilities:this._lastInteraction===null&&!e.relatedTarget,this._focused=!0,!this._lastInteraction&&Fr&&(this._lastInteraction="touch"))}}).on({disconnected(){this._focused=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction=null}}).css`:host{--mdw-state__hovered-opacity:.08;--mdw-state__focused-opacity:.12;--mdw-state__pressed-opacity:.12;--mdw-state__dragged-opacity:.12;position:relative;outline:0;-webkit-tap-highlight-color:transparent}:host(::-moz-focus-inner){border:0}#state{--mdw-state__opacity:calc( var(--mdw-state__hovered-opacity) + var(--mdw-state__focused-opacity) + var(--mdw-state__pressed-opacity) + var(--mdw-state__dragged-opacity) );position:absolute;inset:0;pointer-events:none;opacity:var(--mdw-state__opacity);background-color:currentColor;border-radius:inherit;transition-delay:0s;transition-duration:0s;transition-property:opacity,color,background-color;will-change:opacity}@supports (background-color:color-mix(in srgb,red 100%,red)){#state{opacity:1;background-color:color-mix(in srgb,currentColor calc(100% * var(--mdw-state__opacity)),transparent);transition-property:color,background-color;will-change:color,background-color}}#state[touched]{--mdw-state__hovered-opacity:0;--mdw-state__focused-opacity:0}#state:is(:not([hovered]),[disabled]:not([state-disabled~=hover]),[state-off~=hover]){--mdw-state__hovered-opacity:0}#state:is(:not([focused]),[disabled]:not([state-disabled~=focus]),[state-off~=focus]){--mdw-state__focused-opacity:0}#state:is(:not([pressed]),[disabled]:not([state-disabled~=pressed]),[state-off~=pressed]){--mdw-state__pressed-opacity:0}#state:is([disabled]:not([state-disabled~=dragged]),[state-off~=dragged]),:host(:not([aria-dragged=true])) #state{--mdw-state__dragged-opacity:0}#state[disabled]:not([state-disabled]){display:none}`}var Lt=f.extend().observe({hidden:"boolean"}).html`<div id=scroll-blocker></div>`.css`:host{position:fixed;inset:0;display:block;overflow:overlay;overscroll-behavior:none;overscroll-behavior:contain;scrollbar-color:transparent transparent;scrollbar-width:none;cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent;opacity:0;z-index:23;background-color:rgb(var(--mdw-color__scrim));animation:fade-in .2s forwards ease-out;will-change:opacity}:host::-webkit-scrollbar{display:none}:host([hidden]){animation-name:fade-out;animation-timing-function:ease-in}:host([invisible]){background:0 0}#scroll-blocker{position:absolute;inset-block-start:0;inset-inline-start:0;display:block;block-size:200%;inline-size:200%}@keyframes fade-in{0%{opacity:0}to{opacity:.38}}@keyframes fade-out{0%{opacity:.38}to{opacity:0}}`.events({animationend(){this.hidden&&this.remove()}}).autoRegister("mdw-scrim");var Un="onscrollend"in window,Dr=new WeakSet;f.extend().mixin(N).set({stateLayer:!0}).html`<div id=container><div id=icon aria-hidden=true></div></div>`.recompose(({refs:{container:t,state:e}})=>{t.prepend(e)}).css`:host{--mdw-state__hovered-opacity:0;--mdw-state__pressed-opacity:0;position:absolute;inset-block-start:0;inset-inline:0;align-self:stretch;display:flex;align-items:center;justify-content:center;cursor:grab;outline:0;pointer-events:auto;-webkit-user-select:none;user-select:none;touch-action:none;color:rgb(var(--mdw-color__on-surface-variant))}:host(:active){cursor:grabbing!important}#container{position:relative;display:flex;align-items:center;justify-content:center;min-block-size:48px;min-inline-size:48px}#state{border-radius:50%}#state[pointed]{--mdw-state__focused-opacity:0}#icon{block-size:4px;inline-size:32px;background-color:currentColor;border-radius:8px}`.events({touchmove(t){t.preventDefault()}}).autoRegister("mdw-bottom-sheet-handle");var Vr=f.extend().mixin(x).mixin(pe).mixin(E).mixin(B).mixin(L).mixin(W).observe({shapeTop:{type:"boolean",empty:!0},modal:"boolean",fixed:"boolean",open:"boolean",expanded:"boolean",_lastComputedBlockSize:{type:"float",nullable:!1},_lastOffsetTop:{type:"float",nullable:!1},_animationDuration:{type:"integer",value:0},_animationEasing:{value:"ease-out"},_translateY:{value:"100%"},_lastChildScrollTime:"float",_ariaValueNow:{type:"integer"},dragHandle:"boolean",onopen:te,onclose:te}).set({_hasCheckedResize:!1,_scrim:null,_dragTimestamp:0,_dragDeltaY:null,_dragStartY:null}).observe({hostStyles:{...ie,get({open:t,fixed:e,_lastComputedBlockSize:i,_translateY:r,_animationDuration:o,_animationEasing:n}){return{styles:{marginBottom:e?`${-1*i}px`:0,transform:e?"none":`translateY(${r})`},timing:{duration:o,easing:n}}}}}).html`<mdw-bottom-sheet-handle id=drag-handle mdw-if={dragHandle} tabindex=0 role=separator aria-valuemin=-100 aria-valuemax=0 aria-valuenow={_ariaValueNow}></mdw-bottom-sheet-handle><slot id=slot></slot>`.methods({checkForScrim(t=!1){let{open:e,modal:i,_scrim:r}=this;e&&i?(r||(r=new Lt,r.addEventListener("click",()=>{this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!0}))||(this.open=!0)}),this._scrim=r),this.before(r),r.hidden=!1):r&&(t||r.remove(),r.hidden=!0)},checkDragFinished(){let{open:t,_dragStartY:e,_dragDeltaY:i,_lastComputedBlockSize:r,modal:o,fixed:n,_lastOffsetTop:s}=this;if(!t||n||e==null||i==null)return;let l=s+r-72,a=r>l?r-l:0,c=(r-i)/(r-a);this._dragStartY=null,o&&c<.5?(this._animationDuration=200*c,this._animationEasing="ease-out",this._translateY="100%",this._dragDeltaY=null,this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!1}))):(this._animationDuration=250*(.5*c),this._dragDeltaY=a,this._translateY="0px",this._animationEasing="ease-in",this.expanded=!0)},onDragHandleActive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&t.buttons===1&&Dr.add(t)},onDragHandleInactive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&(t.type!=="pointerup"&&t.buttons!==1||this.checkDragFinished())},onPointerOrTouchMove(t){let e,i=t.type==="touchmove";if(i){let{touches:m}=t;if(!m.length)return;e=m[0]}else e=t;let{open:r,_lastChildScrollTime:o,_dragStartY:n,_dragTimestamp:s,expanded:l}=this;if(!r||n==null||o&&performance.now()-o<=(Un?5e3:500))return;let{clientY:a,pageY:c}=e;a??=c-window.scrollY;let{_lastOffsetTop:d,_lastComputedBlockSize:p}=this,h=d+p-72,g=p>h?p-h:0,_=Math.max(a-n,g);this._dragDeltaY=_,!(i&&l&&performance.now()-s<100)&&(this._animationDuration=0,this._translateY=`${_}px`)}}).overrides({onResizeObserved(t){var e;this._lastComputedBlockSize=(e=t.borderBoxSize[0])==null?void 0:e.blockSize,this._lastOffsetTop=this.offsetTop}}).events({"~pointerdown"(t){if(t.pointerType!=="touch"&&(t.buttons!==1||!Dr.has(t))||!this.open)return;let{clientY:e,pageY:i}=t;e??=i-window.scrollY,this._dragStartY=e-(this._dragDeltaY??0),this._dragDeltaY=0,this._dragTimestamp=performance.now()},"~pointermove":"onPointerOrTouchMove","~pointerup"(t){t.pointerType!=="touch"&&this.checkDragFinished()},pointerleave(t){t.pointerType!=="touch"&&this.checkDragFinished()},"~touchmove":"onPointerOrTouchMove",touchcancel:"checkDragFinished","~touchend":"checkDragFinished","*~scroll"(){this.fixed||(this.checkDragFinished(),this._lastChildScrollTime=performance.now(),this._dragStartY=null,this._dragDeltaY=null)},"*scrollend"(){this.fixed||(this._lastChildScrollTime=null)}}).childEvents({dragHandle:{"~pointerdown":"onDragHandleActive","~pointermove":"onDragHandleActive"}}).on({openChanged(t,e){let i=this.offsetTop;if(this._lastOffsetTop=i,this._animationDuration=e?250:200,e){let r=0;if(!this.fixed){let{_lastComputedBlockSize:o}=this,n=i+o;o>n/2&&(r=o-n/2)}this._translateY=`${r}px`,this._dragDeltaY=r}else this._translateY="100%",this.expanded=!1;this._animationEasing=e?"ease-in":"ease-out",this.checkForScrim(!0),e&&this.focus()},modalChanged(){this._animationDuration=0,this.checkForScrim(!1)}}).css`:host{--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface);--mdw-shape__size:var(--mdw-shape__extra-large);--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;position:sticky;inset-block-end:0;inset-inline:0;overflow-y:clip;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;max-inline-size:640px;margin-inline:auto;padding-block-start:16px;pointer-events:none;transform:translateY(100%);visibility:hidden;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:visibility .2s;will-change:transform,margin-block-end,visibility}:host(:where([open])){pointer-events:auto;visibility:inherit;transition:visibility 0s}:host(:where(:not([fixed]))){position:fixed;max-block-size:calc(100% - 72px);touch-action:none;z-index:24}:host(:where([expanded])){overflow-y:auto;touch-action:auto}:host(:where([drag-handle])){padding-block-start:48px}`.autoRegister("mdw-bottom-sheet");var Vi={};mt(Vi,{addSVGAlias:()=>Xn,svgAliasMap:()=>Me,unaliased:()=>Di});var Me=new Map,Di=new Set;function Xn(t,e,i="0 0 24 24"){t=t.toLowerCase(),e?Me.set(t,{path:e,viewBox:i}):Me.delete(t)}var $i=new Set,$r=f.extend().mixin(x).define({_img(){return this.refs.img}}).define({naturalWidth(){return this._img.naturalWidth},naturalHeight(){return this._img.naturalHeight},complete(){return this._img.complete},currentSrc(){return this._img.currentSrc},x(){return this._img.x},y(){return this._img.y},decode(){return this._img.decode}}).observe({icon:"string",disabled:"boolean",alt:"string",src:"string",svg:"string",svgPath:"string",srcset:"string",sizes:"string",variation:"string",crossOrigin:{attr:"crossorigin"},useMap:{attr:"usemap"},isMap:{type:"boolean",attr:"ismap"},referrerPolicy:{attr:"referrerpolicy"},decoding:{value:null},loading:{value:null},width:"integer",height:"integer",forceFont:"boolean",_linkLoaded:"boolean",viewBox:"string",fontClass:{empty:"material-symbols-outlined"},fontLibrary:{empty:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&display=block"},_isConnected:"boolean"}).observe({_svgAlias:{type:"object",get({icon:t,variation:e}){if(!t)return null;let i=t.trim().toLowerCase(),r=e?`#${e}`:"",o=`${i}${r}`;return Me.has(o)?Me.get(o):(Di.add(o),r&&Me.has(i)?Me.get(i):null)}}}).observe({_computedSVGPath({svgPath:t,_svgAlias:e}){return t||(e==null?void 0:e.path)},_computedViewBox({viewBox:t,_svgAlias:e}){return t??(e==null?void 0:e.viewBox)??"0 0 24 24"}}).observe({_showFontIcon:{type:"boolean",get({icon:t,svg:e,_computedSVGPath:i,src:r}){return t&&!e&&!i&&!r}}}).expressions({showSVG({svg:t,_computedSVGPath:e}){return!!(t||e)}}).html`<link mdw-if={_showFontIcon} id=link rel=stylesheet href={fontLibrary}><svg mdw-if={showSVG} id=svg viewBox={_computedViewBox}><use id=use mdw-if={svg} href={svg} fill=currentColor /><path id=path mdw-if={_computedSVGPath} d={_computedSVGPath} /></svg> <img mdw-if={src} id=img disabled={disabled} alt={alt} src={src} srcset={srcset} sizes={sizes} crossorigin={crossOrigin} usemap={useMap} ismap={isMap} referrerpolicy={referrerPolicy} decoding={decoding} loading={loading} width={width} height={height}> <span id=icon class={fontClass} hidden={!_showFontIcon} aria-hidden=true>{icon}</span>`.css`:host{vertical-align:-11.5%;block-size:1em;inline-size:1em;-webkit-user-select:none;user-select:none;line-height:1;font-variation-settings:"FILL" 0;transition-duration:.2s;transition-property:inline-size,width}:host([variation=fill]){font-variation-settings:"FILL" 1}:host(:is([color],[ink])){color:rgb(var(--mdw-ink))}#icon{overflow:clip;block-size:1em;inline-size:1em;font-size:inherit;font-variation-settings:inherit;transition-delay:1ms;transition-duration:.2s;transition-property:font-variation-settings}#icon[hidden]{display:none}#svg{block-size:inherit;inline-size:inherit;fill:currentColor;object-fit:cover}#img{block-size:inherit;inline-size:inherit;object-fit:cover;transition-delay:1ms;transition-duration:.2s;transition-property:filter}#img[disabled]{filter:grayscale()}.material-symbols-outlined{direction:inherit}`.childEvents({link:{load({currentTarget:t}){let{href:e,parentNode:i}=t;if(!$i.has(e)){for(let r of document.head.getElementsByTagName("link"))if(r.href===e){$i.add(e);return}document.head.append(t.cloneNode()),$i.add(e)}}}}).extend(t=>class extends t{constructor(e,i){super(),e!=null&&(this.width=e),i!=null&&(this.height=i)}}).autoRegister("mdw-icon");function Hi(t){return t.rootEvents({click(e){let{target:i}=e;if(!(i instanceof HTMLAnchorElement)||!i.href)return;i.dispatchEvent(new CustomEvent("mdw:hyperlink",{bubbles:!0,composed:!0,cancelable:!0,detail:{download:i.download,href:i.href,hreflang:i.hreflang,target:i.target}}))||e.preventDefault()}})}function ge(t){return{get(){return new URL(this.href,window.location.href)[t]},set(e){let{href:i}=this;if(!i)return;let r=new URL(i,window.location.href);r[t]=e,this.href=r.href}}}function re(t){return t.mixin(Hi).observe({href:"string",target:"string",download:"string",ping:"string",rel:"string",hreflang:"string",referrerPolicy:{type:"string",attr:"referrerpolicy"}}).define({origin(){return new URL(this.href).origin},protocol:ge("protocol"),username:ge("username"),password:ge("password"),host:ge("host"),hostname:ge("hostname"),port:ge("port"),pathname:ge("pathname"),search:ge("search"),hash:ge("hash")}).html`<a id=anchor href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy}></a>`.methods({toString(){return this.href}})}var Bi="mdw-form-associated-changed",ji={nullParser:String,value:""};function me(t){return t.setStatic({formAssociated:!0}).set({_ipcListener:null,_ipcTarget:null,_files:null}).observe({ariaControls:"string",autocomplete:ji,name:ji,readOnly:{attr:"readonly",type:"boolean"},formNoValidate:{attr:"formnovalidate",type:"boolean"},defaultChecked:{attr:"checked",type:"boolean"},_checkedDirty:"boolean",_checked:"boolean",required:"boolean",type:ji,_defaultValue:{reflect:!0,attr:"value"},_value:{empty:""},_valueDirty:"boolean",_userInteracted:"boolean",_invalid:"boolean",_badInput:"boolean",_validationMessage:"string",_formDisabled:"boolean",_formReset:"boolean"}).observe({erroredState({_invalid:e,_userInteracted:i}){return i&&e},defaultValue:{reflect:!1,get({_defaultValue:e}){return e??""},set(e){this._defaultValue=String(e)}},_valueBehavior({type:e}){switch(e){case"radio":case"checkbox":return"default/on";case"hidden":case"button":case"submit":case"image":case"reset":return"default";case"file":return"filename";default:return"value"}}}).methods({_onSetValue(e){this._value=e},_onSetChecked(e){this._checked=e}}).observe({value:{reflect:!1,get({_valueBehavior:e,_defaultValue:i,_value:r}){switch(e){case"filename":default:return r;case"default":return i??"";case"default/on":return i??"on"}},set(e){switch(this._valueBehavior){case"value":this._valueDirty=!0,this._onSetValue(e);break;case"filename":if(e==null||e==="")this._files=null;else throw new DOMException("InvalidStateError");break;default:this.defaultValue=e}}},checked:{reflect:!1,type:"boolean",get({_checkedDirty:e,defaultChecked:i,_checked:r}){return e?r:i},set(e){this._checkedDirty=!0,this._onSetChecked(e)}}}).define({form(){return this.elementInternals.form},validity(){return this.elementInternals.validity},validationMessage(){return this.elementInternals.validationMessage},willValidate(){return this.type==="submit"?!this.formNoValidate:this.type==="button"||this.type==="reset"?!1:this.elementInternals.willValidate},labels(){return this.elementInternals.labels}}).observe({disabledState({_formDisabled:e,disabled:i}){return e?!0:!!i}}).methods({checkValidity(){return this.elementInternals.checkValidity()},reportValidity(){return this.elementInternals.reportValidity()},setCustomValidity(e){this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e)},_notifyRadioChange(e,i){var r;(r=this._ipcTarget)==null||r.dispatchEvent(new CustomEvent(Bi,{detail:[e,i]}))},refreshFormAssociation(){let e=this.elementInternals.form??this.getRootNode();e!==this._ipcTarget&&(this._ipcTarget&&this._ipcTarget.removeEventListener(Bi,this._ipcListener),this.type==="radio"&&(this._ipcTarget=e,this._ipcListener??=this.formIPCEvent.bind(this),this._ipcTarget.addEventListener(Bi,this._ipcListener)))},formAssociatedCallback(e){this.refreshFormAssociation(),this.checkValidity()},formIPCEvent(e){if(e.target instanceof HTMLFormElement&&e.target!==this.form||this.type!=="radio")return;let[i,r]=e.detail;this.name===i&&(r===this.value||(this.checked=!1))},formDisabledCallback(e){this._formDisabled=e},formResetCallback(){this._formReset=!0,this._valueDirty=!1,this.checkValidity(),this._userInteracted=!1,this._formReset=!1},formStateRestoreCallback(e,i){if(!(Oe<115)&&typeof e=="string"){if(this.type==="checkbox"||this.type==="radio"){this.checked=e==="checked";return}if(this.type==="radio"){this.checked=e==="checked";return}this.value=e}},_updateFormAssociatedValue(){switch(this.type){case"radio":this.checked&&this._notifyRadioChange(this.name,this.value||"on");case"checkbox":this.checked?this.elementInternals.setFormValue(this.value,"checked"):this.elementInternals.setFormValue(null,"unchecked");break;case"button":case"reset":this.elementInternals.setFormValue(null);break;case"file":{let{elementInternals:e,_files:i,name:r}=this;if(!i||i.length)e.setFormValue(null);else{let o=new FormData;for(let n of i)o.append(r,n);e.setFormValue(o)}break}case"select-multiple":{let e=new FormData,i=this;if(i.name)for(let r of i.selectedOptions)e.append(i.name,r.value);this.elementInternals.setFormValue(e);break}default:this.elementInternals.setFormValue(this.value)}}}).events({blur(){this._userInteracted=!0,this.checkValidity()}}).on({connected(){this.refreshFormAssociation()},checkedChanged(){this._updateFormAssociatedValue()},valueChanged(){this._updateFormAssociatedValue()},_valueBehaviorChanged(e,i){e!=="filename"&&i==="filename"&&(this.value="")},typeChanged(){this._updateFormAssociatedValue()}})}function we(t){return t.mixin(me).mixin(L).observe({ariaLabel:"string",_slotInnerText:"string"}).set({focusableOnDisabled:!1,controlTagName:"input",controlVoidElement:!0,_slotMutationObserver:null}).methods({_onControlValue(e){this._value=e},onValueChangingContentAttribute(){let e=this.refs.control;this.hasAttribute("value")||(e.removeAttribute("value"),e.setAttribute("value","")),this._onControlValue(e.value)},focus(...e){this.refs.control.focus(...e)},click(){this.disabledState||this.refs.control.click()}}).define({stateTargetElement(){return this.refs.control}}).methods({checkValidity(){if(!this.willValidate)return!0;let e=this.refs.control,i=e.checkValidity(),r={};for(let o in e.validity)r[o]=e.validity[o];return this.elementInternals.setValidity(r,e.validationMessage,e),this._invalid=!i,this._validationMessage=e.validationMessage,this._badInput=e.validity.badInput,i},reportValidity(){return this.checkValidity(),this.refs.control.reportValidity(),this.elementInternals.reportValidity()},setCustomValidity(e){this.refs.control.setCustomValidity(e),this.checkValidity(),this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e,this.refs.control)}}).observe({_computedAriaLabel({ariaLabel:e,_slotInnerText:i}){return(e==null?void 0:e.trim())||(i==null?void 0:i.trim())||null}}).expressions({_computedAriaLabelledby({_computedAriaLabel:e}){return e?null:"slot"}}).recompose(({template:e,html:i,element:r})=>{e.append(i`
|
|
186
186
|
<${r.controlTagName} id=control
|
|
187
187
|
aria-label={_computedAriaLabel}
|
|
188
188
|
aria-labelledby={_computedAriaLabelledby}
|
|
@@ -190,26 +190,26 @@ padding:0;
|
|
|
190
190
|
form-disabled={disabledState}
|
|
191
191
|
type={type}
|
|
192
192
|
>${r.controlVoidElement?"":`</${r.controlTagName}>`}
|
|
193
|
-
`)}).on({disabledStateChanged(e,i){let r=this.refs.control;r.setAttribute("aria-disabled",`${i}`),this.focusableOnDisabled||(r.disabled=i,i?this.tabIndex=0:this.removeAttribute("tabindex"))},readOnlyChanged(e,i){let r=this.refs.control;this.type==="checkbox"?r.setAttribute("aria-readonly",i?"true":"false"):r.removeAttribute("aria-readonly")},constructed(){let e=this.refs.control;this._onControlValue(e.value)},connected(){this.hasAttribute("tabindex")||(this.tabIndex=0)},attrs:{autocomplete:F("autocomplete","control"),name:F("name","control"),readonly:F("readonly","control"),required:F("required","control")}}).childEvents({control:{click(e){(this.type==="checkbox"&&this.readOnly||this.focusableOnDisabled&&this.disabledState)&&(e.preventDefault(),e.stopImmediatePropagation())},input({currentTarget:e}){let i=e;this.validity.valid?(i.checkValidity(),this._badInput=i.validity.badInput):this.checkValidity(),this._onControlValue(i.value)},change({currentTarget:e}){let i=e;this._valueDirty=!0,this._onControlValue(i.value),this.checkValidity()}},slot:it<116||Ct?{slotchange({currentTarget:e}){this._slotInnerText=this.textContent,this._slotMutationObserver||(this._slotMutationObserver=new MutationObserver(()=>{this._slotInnerText=this.textContent}),this._slotMutationObserver.observe(e,{characterData:!0}))}}:{}}).rootEvents({change(e){this.dispatchEvent(new e.constructor(e.type,e))}}).css`:host{display:inline-flex}:host(::-moz-focus-inner){border:0}#control{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;margin:0;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;outline:0;transform:translate(-50%) translateY(-50%);z-index:4;background-color:transparent;border-radius:0;color:transparent}#control::-moz-focus-inner{border:0}`}var qn=new Set(["text","search","url","tel","email","password","date","month","week","time","datetime-local","number"]),ae={nullParser:String,empty:""},Hr=new WeakSet,Br=new WeakSet;function K(t){return t.mixin(ge).observe({accept:ae,alt:ae,dirName:{attr:"dirname",...ae},_formAction:{attr:"formaction"},formEnctype:{attr:"formenctype",...ae},formMethod:{attr:"formmethod",...ae},formTarget:{attr:"formtarget",...ae},_height:{attr:"height",type:"integer"},_indeterminate:"boolean",max:ae,maxLength:{attr:"maxlength",type:"integer",empty:-1},min:ae,minLength:{attr:"minlength",type:"integer",empty:-1},multiple:"boolean",pattern:ae,placeholder:ae,size:{type:"integer",empty:20},src:ae,step:ae,_width:{attr:"width",type:"integer"}}).set({_useFormImplicitSubmission:!0}).define({_input(){return this.refs.control}}).observe({indeterminate:{type:"boolean",get({_indeterminate:e}){return e},set(e){this._input.indeterminate=e,this._indeterminate=this._input.indeterminate}}}).overrides({controlTagName:"input"}).recompose(({refs:{control:e}})=>{e.setAttribute("checked","{defaultChecked}"),e.setAttribute("height","{_height}"),e.setAttribute("width","{_width}"),e.setAttribute("value","{_defaultValue}")}).on({typeChanged(){this.onValueChangingContentAttribute()},checkedChanged(){this._input.checked=this.checked,this._input.indeterminate=this._indeterminate},_indeterminateChanged(e,i){this._input.indeterminate=i},minChanged(){this.onValueChangingContentAttribute()},minLengthChanged(){this.onValueChangingContentAttribute()},maxChanged(){this.onValueChangingContentAttribute()},maxLengthChanged(){this.onValueChangingContentAttribute()},multipleChanged(){this.onValueChangingContentAttribute()},patternChanged(){this.onValueChangingContentAttribute()},stepChanged(){this.onValueChangingContentAttribute()},defaultValueChanged(){this.onValueChangingContentAttribute()},_formResetChanged(e,i){if(!i)return;this._onSetValue(this.defaultValue);let r=this._input;r.checked=this.defaultChecked,this._checked=r.checked,this._checkedDirty=!1},attrs:{accept:F("accept","control"),alt:F("alt","control"),dirname:F("dirname","control"),formenctype:F("formenctype","control"),formmethod:F("formmethod","control"),formnovalidate:F("formnovalidate","control"),formTarget:F("formTarget","control"),max:F("max","control"),maxlength:F("maxlength","control"),min:F("min","control"),minlength:F("minlength","control"),multiple:F("multiple","control"),pattern:F("pattern","control"),placeholder:F("placeholder","control"),size:F("size","control"),src:F("src","control"),step:F("step","control")}}).overrides({_onSetChecked(e){this._input.checked=e,this._checked=this._input.checked,this.indeterminate=!1},_onSetValue(e){this._input.value=e,this._value=this._input.value}}).methods({performImplicitSubmission(e){if(!this._useFormImplicitSubmission)return;let i=this.form;if(!i)return;let r,o=new Set;for(let n of i.elements){if(n.type==="submit"&&!n.disabled&&!n.matches(":disabled")){r??=n;break}qn.has(n.type)&&o.add(n)}if(r){r.dispatchEvent(new PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0}));return}o.size>1||this.form.submit()},_redispatchControlClickEvent(e){e.stopPropagation();let i=new e.constructor(e.type,e);return Hr.add(i),this.dispatchEvent(i)},_handleInputClick(e){var r;if(this.disabledState)return;let i=this._input;switch(i.type){case"checkbox":case"radio":{let{_checkedDirty:o,_checked:n,_indeterminate:s}=this;if(this.checked=i.checked,this._redispatchControlClickEvent(e))return;e.preventDefault(),this._checkedDirty=o,this._checked=n,this._indeterminate=s;break}case"button":case"submit":case"reset":{if(!this._redispatchControlClickEvent(e)){e.preventDefault();return}let{type:o}=i;if(o!=="submit"&&o!=="reset")return;for(let s of e.composedPath()){if(s===i||s===this)break;if((s instanceof HTMLInputElement||s instanceof HTMLButtonElement)&&(s.type==="submit"||s.type==="reset")||s instanceof HTMLElement&&s.form instanceof HTMLFormElement&&(s.type==="submit"||s.type==="reset")||s instanceof HTMLAnchorElement&&s.href)return}let n=(r=this.elementInternals)==null?void 0:r.form;if(!n)return;if(o==="submit"){let s=i.cloneNode();s.hidden=!0,n.append(s),"requestSubmit"in n?n.requestSubmit(s):s.click(),s.remove()}else o==="reset"&&n.reset()}break;default:}}}).rootEvents({click(e){Br.add(e);let{control:i}=this.refs;if(e.target===i||!e.bubbles)return;let{disabledState:r,type:o}=this;r||(o==="checkbox"||o==="radio"?(e.stopPropagation(),i.click()):this._handleInputClick(e))}}).events({click(e){Br.has(e)||Hr.has(e)||e.target===this&&(e.stopImmediatePropagation(),this.refs.control.click())}}).childEvents({control:{keydown(e){e.defaultPrevented||e.key==="Enter"&&e.currentTarget.type!=="submit"&&this.performImplicitSubmission(e)},click:"_handleInputClick",input(e){if(this.disabledState){e.preventDefault(),e.stopImmediatePropagation();return}let i=e.currentTarget;this.checked=i.checked},change(e){if(this.disabledState){e.preventDefault(),e.stopImmediatePropagation();return}let i=e.currentTarget;this.checked=i.checked}}}).methods({setRangeText(...e){this._input.setRangeText(...e)},setSelectionRange(...e){this._input.setSelectionRange(...e)},showPicker(...e){this._input.showPicker(...e)},stepDown(...e){this._input.stepDown(...e),this._value=this._input.value},stepUp(...e){this._input.stepUp(...e),this._value=this._input.value},select(...e){this._input.select(...e)}}).define({files:{get(){return this._input.files},set(e){e==null&&this.type==="file"?(this._input.value="",this.value=""):this._input.files=e}},selectionDirection:{get(){return this._input.selectionDirection},set(e){this._input.selectionDirection=e}},selectionEnd:{get(){return this._input.selectionEnd},set(e){this._input.selectionEnd=e}},selectionStart:{get(){return this._input.selectionStart},set(e){this._input.selectionStart=e}},valueAsDate:{get(){return this._input.valueAsDate},set(e){this._input.valueAsDate=e,this.value=this._input.value}},valueAsNumber:{get(){return this._input.valueAsNumber},set(e){this._input.valueAsNumber=e,this.value=this._input.value}},height:{get(){return this._input.height},set(e){this._input.height=e,this._height=e}},formAction:{get(){return this._input.formAction},set(e){this._input.formAction=e,this._formAction=e}},width:{get(){return this._input.width},set(e){this._input.width=e,this._width=e}}}).css`#control::-webkit-file-upload-button{display:none}`}var jr=f.extend().set({hadRippleHeld:!1,hadRippleReleased:!1,rippleStarted:!1}).observe({rippleState:"string",keepAlive:"boolean",_positionX:"float",_positionY:"float",_radius:"float",holdRipple:{type:"boolean",changedCallback(t,e){e?this.hadRippleHeld=!0:this.hadRippleReleased=!0}}}).observe({_positionStyle:{...te,get({_positionX:t,_positionY:e,_radius:i}){return i==null?null:{styles:{minHeight:`${i}px`,minWidth:`${i}px`,boxShadow:`0 0 calc(0.10 * ${i}px) calc(0.10 * ${i}px) currentColor`,top:`calc(50% + ${e}px)`,left:`calc(50% + ${t}px)`}}}}}).methods({updatePosition(t,e,i){let r=i,{offsetParent:o}=this;if(!o)return;let{clientWidth:n,clientHeight:s}=o;if(t??=n/2,e??=s/2,!r){let l=t>=n/2?t:n-t,a=e>=s/2?e:s-e;r=2*Math.hypot(l,a)}this._positionX=t-n/2,this._positionY=e-s/2,this._radius=r},handleRippleComplete(){this.keepAlive?this.setAttribute("ripple-state","complete"):this.remove()}}).events({animationstart({animationName:t}){if(t==="ripple-fade-in"){if(this.rippleStarted&&!this.keepAlive){this.remove();return}this.rippleStarted=!0}},animationend({animationName:t}){switch(t){case"ripple-fade-in":this.rippleState="filled";break;case"ripple-fade-out":this.handleRippleComplete();break;default:}}}).css`:host{--enter-delay:80ms;--touch-down-acceleration:1024;--touch-up-acceleration:3400;--mdw-ripple-expand-duration:.3s;--mdw-ripple-simple-duration:.2s;--mdw-ripple-fade-out-duration:333ms;--mdw-ripple-standard-easing:var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-ripple-deceleration-easing:var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--size:0;position:absolute;top:50%;left:50%;display:block;min-block-size:141.42%;min-inline-size:141.42%;pointer-events:none;-webkit-tap-highlight-color:transparent;opacity:.12;transform:translate(-50%) translateY(-50%) scale(1);background-color:currentColor;border-radius:50%;box-shadow:0 0 calc(.1 * var(--size)) calc(.1 * var(--size)) currentColor;transition-delay:0s;transition-duration:var(--mdw-ripple-simple-duration);transition-property:background-color,color;transition-timing-function:var(--mdw-ripple-standard-easing);animation-name:ripple-fade-in,none;animation-duration:var(--mdw-ripple-expand-duration),var(--mdw-ripple-fade-out-duration);animation-timing-function:linear,var(--mdw-ripple-deceleration-easing);animation-direction:normal;animation-fill-mode:forwards;will-change:transform,opacity,top,left,box-shadow;aspect-ratio:1/1}:host([ripple-state=filled]){animation-name:none,ripple-fade-out}:host([ripple-state=filled][hold-ripple]){animation-name:ripple-fade-in,none}:host([ripple-state=complete]){animation-name:none,ripple-fade-out;animation-duration:0s}@keyframes ripple-fade-in{0%{transform:translate(-50%) translateY(-50%) scale(0)}}@keyframes ripple-fade-out{to{opacity:0}}`.autoRegister("mdw-ripple");function Q(t){return t.set({_lastRippleWeakRef:null,_rippleAdded:!1}).define({_lastRipple:{get(){var i;let e=(i=this._lastRippleWeakRef)==null?void 0:i.deref();return e!=null&&e.isConnected?e:null},set(e){this._lastRippleWeakRef=e?new WeakRef(e):null}}}).methods({addRipple(e,i,r){let{rippleContainer:o}=this.refs;if(!o.isConnected)return null;let n=new jr;return this._rippleAdded=!0,queueMicrotask(()=>{this._rippleAdded=!1}),o.append(n),r&&(n.holdRipple=!0),n.updatePosition(e,i),this._lastRipple=n,n}}).html`<div id=ripple-container mdw-if={!disabledState} aria-hidden=true></div>`.events({"~pointerdown"(e){if(e.button||this.disabledState)return;let{rippleContainer:i}=this.refs;if(!i.isConnected)return;let r=i.getBoundingClientRect(),o=e.pageX-r.left-window.pageXOffset,n=e.pageY-r.top-window.pageYOffset,s=this._lastRipple;s&&(s.holdRipple=!1),this.addRipple(o,n,!0)},"~click"(e){if(this._rippleAdded||e.pointerType||e.detail||this.disabledState||this.pressedState||this._keyReleased)return;let i=this._lastRipple;i&&(i.holdRipple=!1),this.addRipple()}}).on({pressedStateChanged(e,i){let r=this._lastRipple;if(!i){r&&(r.holdRipple=!1);return}if(!r||r.hadRippleReleased){if(this._lastInteraction!=="key")return;this.addRipple(null,null,!0);return}r.hadRippleHeld||(r.holdRipple=!0)}}).css`:host{--mdw-state__pressed-opacity:0}#ripple-container{position:absolute;inset:0;overflow:hidden;pointer-events:none;border-radius:inherit}`}var _e=f.extend().mixin(x).mixin(G).mixin(N).mixin(U).mixin(E).mixin(Q).mixin(K).mixin(ie).define({stateTargetElement(){return this.refs.control}}).set({stateLayer:!0,_allowedTypes:["button","submit","reset","file"]}).observe({type:{empty:"button",set(t,e){let i=(t==null?void 0:t.toLowerCase())??"button";e(this._allowedTypes.includes(i)?i:"button")}},elevated:"boolean",filled:"string",outlined:"boolean",icon:"string",iconInk:"string",src:"string",svg:"string",viewBox:"string",svgPath:"string"}).expressions({hasIcon({icon:t,svg:e,src:i,svgPath:r}=this){return t??e??i??r},iconVariation({outlined:t}=this){return t?null:"filled"}}).methods({focus(...t){this.href?this.refs.anchor.focus(...t):this.refs.control.focus(...t)}}).html`<mdw-icon mdw-if={hasIcon} id=icon ink={iconInk} disabled={disabledState} outlined={outlined} variation={iconVariation} aria-hidden=true svg={svg} src={src} svg-path={svgPath} view-box={viewBox} icon={icon}></mdw-icon><slot id=slot disabled={disabledState} aria-hidden=true>{_defaultValue}</slot>`.recompose(({refs:{anchor:t,control:e}})=>{e.setAttribute("mdw-if","{!href}"),e.setAttribute("role","button"),t.setAttribute("mdw-if","{href}"),t.setAttribute("aria-label","{_computedAriaLabel}"),t.setAttribute("aria-labelledby","{_computedAriaLabelledby}")}).css`:host{--mdw-shape__size:var(--mdw-shape__full);--mdw-ink:var(--mdw-color__primary);--mdw-type__font:var(--mdw-typescale__label-large__font);--mdw-type__letter-spacing:var(--mdw-typescale__label-large__letter-spacing);display:inline-flex;align-items:center;gap:0;justify-content:center;vertical-align:middle;min-block-size:24px;min-inline-size:24px;padding-block:calc(8px + (var(--mdw-density) * 2px));padding-inline:calc(12px + (var(--mdw-density) * 2px));-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host(:where([elevated],[filled])){transition:box-shadow .2s;will-change:box-shadow}:host(:where([elevated])){--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__primary);box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where([filled])){--mdw-bg:var(--mdw-color__primary);--mdw-ink:var(--mdw-color__on-primary);box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([elevated]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__2)}:host(:where([filled]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where([elevated]:disabled)){box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([filled]:disabled)){box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([filled=tonal])){--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container)}:host(:where([outlined])){--mdw-ink:var(--mdw-color__primary)}:host(:where([icon])){gap:8px;padding-inline:calc(12px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}:host(:where([outlined],[elevated],[filled])){padding-inline:calc(24px + (var(--mdw-density) * 2px))}:host(:where([icon]):where([outlined],[elevated],[filled])){gap:8px;padding-inline:calc(16px + (var(--mdw-density) * 2px)) calc(24px + (var(--mdw-density) * 2px))}:host(:where([elevated],[filled],[color])){background-color:rgb(var(--mdw-bg))}#slot{text-align:center;text-decoration:none;white-space:nowrap}#control{cursor:pointer}#anchor{position:absolute;inset:0;cursor:pointer;outline:0}:host([disabled]){color:rgba(var(--mdw-color__on-surface),.38)}:host([disabled]:is([elevated],[filled])){background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}#slot[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#icon{font-size:calc(18/14 * 1em)}#icon[disabled]{opacity:.38;color:rgba(var(--mdw-color__on-surface))}#control[form-disabled]{cursor:not-allowed}@media(any-pointer:coarse){#touch-target{visibility:inherit}}`.autoRegister("mdw-button");var Yr="inert"in HTMLElement.prototype,Wr=j.extend().mixin(N).mixin(U).mixin(E).mixin(pe).mixin(B).mixin(L).mixin(ie).set({_ariaRole:"figure"}).observe({elevated:"boolean",filled:"boolean",actionable:"boolean",actionLabel:"string",onaction:ee}).define({stateTargetElement(){return this.actionable?this.refs.action:this}}).expressions({showBlocker:({disabledState:t,disabled:e})=>t&&(!e||!Yr),showButton:({actionable:t,href:e})=>!!(t||e)}).methods({focus(){this.disabledState||this.actionable&&this.refs.action.focus()}}).html`<mdw-button mdw-if={showButton} aria-label={actionLabel} href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy} id=action disabled={disabledState}></mdw-button><div mdw-if={showBlocker} id=inert-blocker></div>`.recompose(({refs:{anchor:t,inertBlocker:e,slot:i}})=>{t.remove(),i.setAttribute("disabled","{disabledState}"),e.before(i)}).css`:host{--mdw-shape__size:var(--mdw-shape__medium);--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:relative;font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition:filter .2s;will-change:filter}:host(:where([elevated],[filled],[outlined])){background-color:rgb(var(--mdw-bg))}:host(:where([elevated])){--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface);filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([filled])){--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__on-surface-variant)}:host(:where([filled][actionable])){filter:var(--mdw-elevation__drop-shadow__0)}:host(:where([elevated][actionable]:hover:not(:active))){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([filled][actionable]:hover:not(:active))){filter:var(--mdw-elevation__drop-shadow__1)}:host([disabled]){cursor:not-allowed;filter:grayscale();opacity:.38;color:rgb(var(--mdw-color__on-surface))}#slot[disabled]{color:rgb(var(--mdw-color__on-surface))}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#inert-blocker{position:absolute;inset:0;cursor:not-allowed;pointer-events:auto;z-index:99}:host([disabled][elevated]){background-color:rgba(var(--mdw-color__surface-container-highest))}:host([disabled][filled]){background-color:rgba(var(--mdw-color__surface))}#action{--mdw-ink:inherit;--mdw-shape__size:inherit;position:absolute;inset:0;padding:0;z-index:0;color:inherit}`.recompose(({refs:{slot:t,outline:e}})=>{e.removeAttribute("pressed"),e.removeAttribute("focused"),t.setAttribute("inert","{disabledState}"),t.setAttribute("disabled","{disabledState}")}).childEvents({action:{click(){this.disabledState||this.dispatchEvent(new Event("action"))}},slot:Yr?{}:{focusin(){this.disabledState}}}).autoRegister("mdw-card");var Ur=f.extend().mixin(x).mixin(E).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);--mdw-shape__size:2px;--disabled-opacity:.38;position:relative;display:inline-block;align-items:center;justify-content:center;box-sizing:border-box;block-size:18px;inline-size:18px;font-size:18px;line-height:18px}#icon{position:absolute;inset:0;opacity:0;background-color:rgb(var(--mdw-bg));border-radius:inherit;color:rgb(var(--mdw-ink));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#outline{border-width:2px;color:rgb(var(--mdw-color__on-surface));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#icon[selected]{opacity:1}#outline[selected]{opacity:0}#icon[errored]{background-color:rgb(var(--mdw-color__error));color:rgb(var(--mdw-color__on-error))}#outline[errored]{color:rgb(var(--mdw-color__error))}#icon[disabled]{background-color:rgba(var(--mdw-color__on-surface),var(--disabled-opacity));color:rgb(var(--mdw-color__surface),var(--disabled-opacity))}#outline[disabled]{color:rgb(var(--mdw-color__on-surface),var(--disabled-opacity))}`.html`<mdw-icon id=icon selected={selected} errored={errored} disabled={disabled} icon={icon}></mdw-icon>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{selected}"),t.setAttribute("errored","{errored}"),t.setAttribute("disabled","{disabled}")}).autoRegister("mdw-checkbox-icon");function we(t){return t.html`<div id=touch-target class=touch-target></div>`.css`.touch-target{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;cursor:inherit;pointer-events:auto;transform:translate(-50%) translateY(-50%);visibility:inherit;z-index:1;border-radius:inherit}`}var Xr=f.extend().mixin(x).mixin(N).mixin(Q).mixin(K).mixin(we).set({stateLayer:!0,type:"checkbox"}).observe({icon:{value:"check"},indeterminateIcon:{value:"check_indeterminate_small"}}).expressions({_determinateIcon({indeterminate:t,indeterminateIcon:e,icon:i}){return t?e:i},_iconSelectedState({checked:t,indeterminate:e}){return t||e}}).html`<div id=checkbox errored={erroredState} selected={checked}><mdw-checkbox-icon id=icon errored={erroredState} disabled={disabledState} icon={_determinateIcon} selected={_iconSelectedState}></mdw-checkbox-icon></div><slot id=slot></slot>`.recompose(({refs:{checkbox:t,state:e,rippleContainer:i}})=>{t.append(e,i)}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);display:inline-grid;align-items:baseline;gap:12px;grid-auto-flow:column;justify-content:flex-start;cursor:pointer;transition:none .1s cubic-bezier(.4,0,1,1)}:host(:disabled){cursor:not-allowed;opacity:.38}:host([internals-disabled]){cursor:not-allowed;opacity:.38}:host(:empty){vertical-align:-11.5%;line-height:18px}#control{grid-column:1/1;cursor:inherit}#ripple-container,#state{top:50%;left:50%;block-size:40px;inline-size:40px;transform:translate(-50%) translateY(-50%);border-radius:50%}#checkbox{position:relative;display:inline-flex;grid-column:1/1;pointer-events:none;transform:translateY(11.5%);color:rgb(var(--mdw-color__on-surface))}#checkbox[selected]{color:rgb(var(--mdw-bg))}#checkbox[disabled]{color:rgb(var(--mdw-color__on-surface))}#checkbox[errored]{color:rgb(var(--mdw-color__error))}:host(:empty) #checkbox{transform:none}#icon{--mdw-ink:inherit;--mdw-bg:inherit;--disabled-opacity:1}`.autoRegister("mdw-checkbox");var Pt=_e.extend().observe({suggestion:"boolean"}).expressions({iconVariation({elevated:t}){return t?"filled":null}}).css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-surface);padding-block:calc(4px + (var(--mdw-density) * 2px));padding-inline:calc(16px + (var(--mdw-density) * 2px));color:rgb(var(--mdw-ink))}:host(:where([suggestion])){--mdw-ink:var(--mdw-color__on-surface-variant)}:host(:where([icon])){gap:8px;padding-inline:calc(8px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}#outline{--mdw-ink:rgb(var(--mdw-color__on-surface-variant))}#outline:is([ink],[color]){--mdw-ink:inherit}#icon[disabled],#slot[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}`.recompose(({inline:t,refs:{slot:e,outline:i,icon:r}})=>{e.setAttribute("disabled","{disabledState}"),e.removeAttribute("ink"),e.removeAttribute("color"),i.setAttribute("mdw-if","{!elevated}"),i.setAttribute("ink","{ink}"),i.setAttribute("color","{color}"),r.setAttribute("ink",t(({ink:o,iconInk:n})=>n??o??"primary"))}).autoRegister("mdw-chip");var qr=f.extend().mixin(x).observe({vertical:"boolean"}).css`:host{--mdw-ink:var(--mdw-color__outline-variant);position:relative;display:block;overflow:visible;box-sizing:border-box;block-size:0;inline-size:100%;color:rgb(var(--mdw-ink))}:host:before{content:"";display:block;box-sizing:border-box;block-size:1px;inline-size:auto;background-color:currentcolor}:host([vertical]){display:inline-flex;vertical-align:top;block-size:auto;min-block-size:100%;inline-size:0}:host([vertical]):before{block-size:auto;min-inline-size:1px}`.autoRegister("mdw-divider");var wc=f.extend().css`:host{align-self:flex-end;margin-block:24px;padding-inline:24px}`.html`<slot id=slot></slot>`.autoRegister("mdw-dialog-actions");function Rt(t){let{pageX:e,pageY:i,directionX:r,directionY:o}=t,n=document.documentElement.clientWidth,s=document.documentElement.clientHeight;if(e==null||i==null){let{clientX:$,clientY:re,anchor:O}=t,A;if(O?A=O instanceof Element?O.getBoundingClientRect():O:A={left:0,width:n,right:n,top:0,bottom:s,height:s},e==null)switch($){case"left":case null:case void 0:e=A.left,r??="right";break;case"center":e=A.left+A.width/2,r??="center";break;case"right":e=A.right,r??="left";break;default:e=A.left+$}if(i==null)switch(re){case"top":i=A.top,o??="up";break;case"center":i=A.top+A.height/2,o??="center";break;case"bottom":case null:case void 0:i=A.bottom,o??="down";break;default:i=A.top+re}}let{width:l,height:a}=t;if(l==null||a==null){let{popup:$}=t;$ instanceof Element?(l=$.clientWidth,a=$.clientHeight):(l=$.width,a=$.height)}let c,d,m,u,g=t.margin??0,h=g,p=-g,_=g,b=-g;window.visualViewport?(h+=window.visualViewport.offsetTop,p+=window.visualViewport.offsetTop+window.visualViewport.height,_+=window.visualViewport.offsetLeft,b+=window.visualViewport.offsetLeft+window.visualViewport.width):(p+=s,b+=n);let w=t.offsetX??0,y=t.offsetY??0;e+=w,i+=y;let S="auto",C="auto",T="auto",M="auto",z=null,v=null;switch(o){case"up":m=Math.min(i,p),c=Math.max(m-a,h),T=`${s-m}px`,c===h&&(z=`${m-h}px`);break;case"center":c=Math.max(i-a/2,h),m=Math.min(i+a/2,p),S=`${c}px`,m===p&&(z=`${p-h}px`);break;default:c=Math.max(i,h),m=Math.min(c+a,p),S=`${c}px`,m===p&&(z=`${p-c}px`)}switch(r){case"left":d=Math.min(e,b),u=Math.max(d-l,_),C=`${n-d}px`,u===_&&(v=`${d-_}px`);break;case"center":u=Math.max(e-l/2,_),d=Math.min(e+l/2,b),M=`${u}px`,d===b&&(v=`${b-_}px`);break;default:u=Math.max(e,_),d=Math.min(u+l,b),M=`${u}px`,d===b&&(v=`${b-u}px`)}let k=l*a,R=(m-c)*(d-u)/k;return{...t,top:c,right:d,bottom:m,left:u,visibility:R,styles:{top:S,bottom:T,left:M,right:C,maxWidth:v,maxHeight:z,transformOrigin:`${o==="center"?"center":o==="up"?"bottom":"top"} ${r==="center"?"center":r==="left"?"right":"left"}`}}}var Yi=typeof HTMLDialogElement<"u",Ae=[];function st(){for(let{element:t}of Ae)t.updatePopupPosition()}function Gr(t){t.button===3&&t.preventDefault()}function Ot(t){if(!t.state)return;let e=Ae.at(-1);if(!(!e||!e.previousState)&&(e.previousState===t.state||Object.keys(t.state).every(i=>t.state[i]===e.previousState[i]))){let i=new Event("cancel",{cancelable:!0});e.element.dispatchEvent(i)?e.element.close():window.history.pushState(e.state,e.state.title)}}function Kr(t){Ae.length}function De(t){return t.mixin(L).mixin(Y).observe({open:"boolean",modal:"boolean",native:"boolean",scrollable:"boolean",matchSourceWidth:"boolean",_currentFlow:"string",flow:{type:"string",value:null},popupMargin:"float"}).set({useHistory:!0,returnValue:"",_closing:!1,_useScrim:!1,_source:null,_anchor:null}).define({_dialog(){return this.refs.dialog}}).expressions({_ariaHidden({open:e}){return e?"false":"true"}}).methods({updatePopupPosition(e=this._anchor){let i=this._currentFlow??this.flow;Object.assign(this.style,{top:"0",left:"0",right:"auto",bottom:"auto",maxWidth:null,maxHeight:null});let r=this.native?this._dialog:this;Object.assign(r.style,{width:"auto",height:"auto"});let o=e&&this.matchSourceWidth?e.clientWidth:56*Math.ceil(r.clientWidth/56);r.style.setProperty("width",`${o}px`);let n=r.clientHeight;Object.assign(r.style,{height:null});let s={anchor:e,width:o,height:n,margin:this.popupMargin??(window.innerWidth<648?16:24)},l=he(this),a=l?"right":"left",c=l?"left":"right",d=[(i??"corner")==="corner"?[{clientY:"bottom",clientX:a},{clientY:"bottom",clientX:c},{clientY:"top",clientX:a},{clientY:"top",clientX:c}]:[],(i??"adjacent")==="adjacent"?[{clientY:"top",clientX:c,directionX:c,directionY:"down"},{clientY:"top",clientX:a,directionX:a,directionY:"down"},{clientY:"bottom",clientX:c,directionX:c,directionY:"up"},{clientY:"bottom",clientX:a,directionX:a,directionY:"up"}]:[],(i??"overlay")==="overlay"?[{clientY:"top",clientX:a,directionX:c,directionY:"down"},{clientY:"top",clientX:c,directionX:a,directionY:"down"},{clientY:"bottom",clientX:a,directionX:c,directionY:"up"},{clientY:"bottom",clientX:c,directionX:a,directionY:"up"}]:[],(i??"vcenter")==="vcenter"?[{clientY:"center",clientX:c,directionX:c,directionY:"center"},{clientY:"center",clientX:a,directionX:a,directionY:"center"}]:[],(i??"hcenter")==="hcenter"?[{clientY:"bottom",clientX:"center",directionX:"center",directionY:"down"},{clientY:"top",clientX:"center",directionX:"center",directionY:"up"}]:[],(i??"center")==="center"?[{clientY:"center",clientX:"center",directionX:"center",directionY:"center"}]:[]].flat(),m;for(let h of d){let p=Rt({...s,...h});if((!m||m.visibility<p.visibility)&&(m=p),p.visibility===1)break}let{maxWidth:u,maxHeight:g}=m.styles;if(u||g){let h=window.getComputedStyle(this);h.maxWidth&&(u=`min(${u}, ${h.maxWidth})`),h.maxHeight&&(g=`min(${g}, ${h.maxHeight})`)}Object.assign(this.style,{...m.styles,maxWidth:u,maxHeight:g})},onSlotChange({currentTarget:e}){let r=e.assignedNodes().some(o=>o.nodeType===o.ELEMENT_NODE||o.nodeType===o.TEXT_NODE&&o.nodeValue.trim().length);e.toggleAttribute("slotted",r)},showPopup(e,i=!0,r=null){if(this.open)return!1;this.open=!0,this._source=e,this._anchor=e;let{scrim:o}=this.refs;this._useScrim?(this.native?document.body.append(o):this.before(o),o.hidden=!1):o.remove();let n=e instanceof HTMLElement?e:document.activeElement;Yi&&i&&!this._dialog.open&&this._dialog.show(),this._currentFlow=r,this.updatePopupPosition(e);let s,l,a;return this.useHistory&&(s={hash:Math.random().toString(36).slice(2,18)},window.history.state||window.history.replaceState({hash:Math.random().toString(36).slice(2,18)},document.title),a=window.history.state,l=window.history.scrollRestoration,window.history.scrollRestoration="manual",window.history.pushState(s,document.title),window.addEventListener("popstate",Ot),window.addEventListener("beforeunload",Kr)),window.addEventListener("mousedown",Gr,{capture:!0}),window.addEventListener("resize",st),window.addEventListener("scroll",st),window.visualViewport&&(window.visualViewport.addEventListener("resize",st),window.visualViewport.addEventListener("scroll",st)),Ae.push({element:this,previousFocus:n,state:s,previousState:a,scrollRestoration:l}),i&&this.focus(),!0},showModal(e,i,r){return this.open?!1:(this.modal=!0,Yi&&(this._dialog.showModal(),this.native=!0),this.showPopup(e,i,r))},show(e,i,r){return navigator.userAgent.includes("Mac OS X")?this.showModal(e,i,r):this.showPopup(e,i,r)},close(e=void 0,i=!0){var o,n,s;if(!this.open||this._closing)return!1;if(this._source=null,this._closing=!0,this.modal=!1,this.refs.scrim.hidden=!0,this.native)this.native=!1;else{let l=document.querySelector("main");l&&l.removeAttribute("aria-hidden")}if(Yi&&this._dialog.open){let l=document.activeElement;if(this._dialog.close(),!W(l,{preventScroll:!0})){let a=document.activeElement;(o=a==null?void 0:a.blur)==null||o.call(a)}}else this._dialog.returnValue=e;this.open=!1,this._currentFlow=null,this.dispatchEvent(new Event("close"));let r=Ae.length;for(let l=r-1;l>=0;l--){let a=Ae[l];if(a.element===this){this.useHistory&&a.state&&window.history&&window.history.state&&a.state.hash===window.history.state.hash&&(window.removeEventListener("popstate",Ot),window.history.back(),window.history.replaceState(a.previousState,document.title),window.history.scrollRestoration=a.scrollRestoration||"auto",window.addEventListener("popstate",Ot)),i&&((s=(n=a.previousFocus)==null?void 0:n.focus)==null||s.call(n,{preventScroll:!0})),Ae.splice(l,1);break}else this.contains(a.element)&&a.element.close(!1)}return Ae.length||(window.removeEventListener("popstate",Ot),window.removeEventListener("beforeunload",Kr),window.removeEventListener("resize",st),window.removeEventListener("mousedown",Gr,{capture:!0})),this._closing=!1,!0}}).overrides({onResizeObserved(e){!this.open||this._closing||this.updatePopupPosition()}}).html`<mdw-scrim id=scrim tabindex=-1 aria-hidden=true></mdw-scrim><dialog id=dialog aria-modal=true role=dialog aria-hidden={_ariaHidden} scrollable={scrollable}><slot id=slot on-slotchange={onSlotChange}></slot></dialog>`.css`:host([popover]){margin:0;border:0;padding:0}:host(::backdrop){display:none}:host{--mdw-popup__expand-duration:var(--mdw-motion-expand-duration, .25s);--mdw-popup__simple-duration:var(--mdw-motion-simple-duration, .1s);--mdw-popup__standard-easing:var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-popup__deceleration-easing:var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--mdw-popup__fade-in-duration:var(--mdw-motion-fade-in-duration, .15s);--mdw-shape__size:28px;--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:fixed;inset-block-start:0;inset-inline-start:0;align-self:center;justify-self:center;display:block;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;block-size:auto;min-block-size:none;max-block-size:100vh;inline-size:auto;min-inline-size:none;max-inline-size:100vw;outline:0;pointer-events:none;opacity:0;transform:scale(0);visibility:hidden;z-index:24;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition-delay:.2s,0s;transition-duration:0s,.2s,.2s;transition-property:visibility,opacity,transform;transition-timing-function:ease-out;will-change:visibility,opacity,transform}:host([open]){pointer-events:inherit;opacity:1;transform:none;visibility:inherit;transition-delay:0s;transition-timing-function:ease-in}:host([native][open]){opacity:0}#dialog{position:static;inset-block-start:0;inset-inline-start:0;display:contents;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;box-sizing:border-box;block-size:inherit;flex:inherit;margin:0;border:none;padding:inherit;padding:0;pointer-events:inherit;filter:inherit;opacity:1;transform:inherit;visibility:inherit;z-index:24;background-color:transparent;color:inherit}:host([color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([scrollable]){overflow-y:auto}#dialog::backdrop{background-color:transparent}#dialog:modal{position:inherit;inset:inherit;display:inherit;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;block-size:auto;min-block-size:inherit;max-block-size:inherit;inline-size:auto;min-inline-size:inherit;max-inline-size:inherit;flex:inherit;padding:inherit;pointer-events:inherit;filter:inherit;transform:inherit;visibility:inherit;background-color:inherit;border-radius:inherit}#dialog[scrollable][open]{display:inherit;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;block-size:100%;max-block-size:none;inline-size:100%;max-inline-size:none;flex:1}#dialog[scrollable][open]:modal{overflow:auto;block-size:100%;min-block-size:none;max-block-size:inherit;inline-size:100%;min-inline-size:none;max-inline-size:inherit;flex:inherit;padding:inherit}`.childEvents({dialog:{cancel(e){e.stopPropagation();let i=new Event("cancel",{cancelable:!0});this.dispatchEvent(i)||e.preventDefault()},close(e){e.stopPropagation(),this.close(this.returnValue)},"~click"(e){if(e.target!==e.currentTarget||!this.native||e.offsetX>=0&&e.offsetX<e.currentTarget.offsetWidth&&e.offsetY>=0&&e.offsetY<e.currentTarget.offsetHeight)return;let i=new Event("cancel",{cancelable:!0});this.dispatchEvent(i)&&this.close()}},scrim:{"~click"(){let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}}})}function Qr(t){let e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=[],r;for(;r=e.nextNode();){if(r.tagName==="SLOT")for(let o of r.assignedElements())o.tabIndex>=0&&!o.matches(":disabled")&&i.push(o),i.push(...Qr(o));r.tabIndex>=0&&!r.matches(":disabled")&&i.push(r)}return i}function Jr(t,e,i=!0){let r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),o=[],n;for(;n=r.nextNode();){if(e&&n.hasAttribute("autofocus")){if(W(n))return!0;continue}if(n.tagName==="SLOT")for(let s of n.assignedElements({flatten:!0})){if(e&&s.hasAttribute("autofocus")){if(W(s))return!0;continue}if(s.tabIndex>=0){if(e||!i)o.push(n);else if(W(n))return!0}if(Jr(s,e,i))return!0}if(n.tabIndex>=0){if(e||!i)o.push(n);else if(W(n))return!0}}for(let s of i?o:o.reverse())if(W(s))return!0;return!1}var Zr=f.extend().mixin(x).mixin(E).mixin(De).define({returnValue(){return this.refs.dialog.returnValue}}).observe({dividers:{value:null},headline:"string",icon:"string",default:{value:"confirm"},cancel:{value:"Cancel"},confirm:{value:"Confirm"}}).define({_anchor:{get(){return null},set(){}}}).set({flow:"center",_useScrim:!0}).methods({onSlotChange({currentTarget:t}){let i=t.assignedNodes().some(r=>r.nodeType===r.ELEMENT_NODE||r.nodeType===r.TEXT_NODE&&r.nodeValue.trim().length);t.toggleAttribute("slotted",i)},focus(){Jr(this.shadowRoot,!0,!0)}}).expressions({cancelAutoFocus({default:t}){return t==="cancel"},confirmAutoFocus({default:t}){return t==="confirm"}}).html`<div id=dialog-inner><mdw-icon mdw-if={icon} id=icon class=content ink=secondary aria-hidden=true icon={icon}></mdw-icon><slot id=headline name=headline on-slotchange={onSlotChange} role=header>{headline}</slot><slot id=fixed name=fixed class=content on-slotchange={onSlotChange}></slot><mdw-divider id=divider-top size={dividers}></mdw-divider><slot id=content name=content></slot><mdw-divider id=divider-bottom size={dividers}></mdw-divider><slot id=actions name=actions><form method=dialog role=none><mdw-button id=cancel type=submit value=cancel autofocus={cancelAutoFocus} formnovalidate>{cancel}</mdw-button><mdw-button id=confirm type=submit value=confirm autofocus={confirmAutoFocus}>{confirm}</mdw-button></form></slot></div>`.recompose(({refs:{dialog:t,dialogInner:e,content:i,slot:r}})=>{t.setAttribute("aria-labelledby","headline"),t.setAttribute("aria-describedby","slot"),r.classList.add("content"),i.append(r),t.prepend(...e.childNodes),e.remove()}).css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-ink:var(--mdw-color__on-surface);position:fixed;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;overflow:visible;-webkit-overflow-scrolling:touch;overscroll-behavior:none;overscroll-behavior:contain;max-block-size:calc(100% - 40px);inline-size:max-content;min-inline-size:280px;max-inline-size:min(560px,calc(100% - 40px));padding-block-start:8px;transform:translateY(-40px) scaleY(0);transform-origin:top center!important;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}#dialog:modal{overflow:visible}:host([icon]){align-items:center}#icon{padding-block-start:16px;font-size:24px}#headline{display:block;padding-block-start:16px;padding-inline:24px;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}#headline:not([slotted]):empty{display:none}#body{padding-block:16px}.content{padding-inline:24px}#divider-top{padding-block-start:16px}mdw-divider:not([size]){color:transparent}mdw-divider[size=inset]{padding-inline:24px}#fixed{display:block;padding-block-start:16px;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#fixed:not([slotted]){display:none}#slot{display:block;overflow-y:auto;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#scroller{display:block;overflow-y:auto}#form{display:contents}#actions{display:flex;align-self:flex-end;margin-block:24px;padding-inline:24px}`.events({keydown(t){if(t.key==="Tab"){if(!this.native){t.preventDefault();let e=Qr(this.shadowRoot);t.shiftKey&&e.reverse();let i=!1,r=!1;for(let o of e)if(i){if(W(o)){r=!0;break}}else i=o.matches(":focus");if(!r){for(let o of e)if(W(o))return}}return}if(t.key==="Escape"||t.key==="Esc"){t.preventDefault(),t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}},focusout(t){this.open&&(this._closing||this.modal||t.relatedTarget!==this.refs.scrim&&queueMicrotask(()=>{if(this.matches(":focus-within"))return;let e=document.activeElement;e&&this.contains(e)||this.close(void 0,!1)}))},submit(t){if(t.defaultPrevented)return;let e=t.target;if(!(e instanceof HTMLFormElement)||e.method!=="dialog")return;let i=t.submitter,r=i==null?void 0:i.value;this.close(r)}}).childEvents({dialog:{cancel(t){t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)||t.preventDefault()},close(t){t.stopPropagation(),this.close(this.returnValue)},"~click"(t){if(t.target!==t.currentTarget||!this.native||t.offsetX>=0&&t.offsetX<t.currentTarget.offsetWidth&&t.offsetY>=0&&t.offsetY<t.currentTarget.offsetHeight)return;let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}}}).autoRegister("mdw-dialog");var We=j.extend().mixin(B).mixin(Fe).set({_ariaRole:"heading",_baseAriaLevel:1}).observe({ariaLevel:"string",size:{type:"string",empty:"large"}}).observe({_computedAriaLevel({ariaLevel:t,size:e,_baseAriaLevel:i}){return t||(e==="medium"?`${i+1}`:e==="small"?`${i+2}`:`${i}`)}}).on({_computedAriaLevelChanged(t,e){this.updateAriaProperty("ariaLevel",e)},constructed(){this.updateAriaProperty("ariaLevel",this._computedAriaLevel)}}).css`:host{font:var(--mdw-typescale__display-large__font);letter-spacing:var(--mdw-typescale__display-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__display-medium__font);letter-spacing:var(--mdw-typescale__display-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__display-small__font);letter-spacing:var(--mdw-typescale__display-small__letter-spacing)}`.autoRegister("mdw-display");var eo=f.extend().mixin(x).mixin(E).mixin(B).set({_ariaRole:"tooltip"}).observe({open:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"true":"false")}}}).html`<div id=hover-target></div><slot id=slot></slot>`.css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-ink:var(--mdw-color__inverse-on-surface);--mdw-bg:var(--mdw-color__inverse-surface);display:block;box-sizing:border-box;padding-block:calc(12px - var(--mdw-typescale__body-small__line-height)/ 2);padding-inline:8px;pointer-events:none;opacity:0;transform:scale(0);z-index:28;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing);transition:transform .2s,opacity .2s}@supports (width:1lh){:host{padding-block:calc(12px - .5lh)}}:host([open]){pointer-events:auto;opacity:1;transform:scale(1)}#hover-target{position:absolute;inset-block-start:50%;inset-inline-start:50%;box-sizing:content-box;block-size:100%;inline-size:100%;padding:8px;transform:translate(-50%) translateY(-50%);z-index:-1}`.autoRegister("mdw-tooltip");function Ve(t){return t.set({TOOLTIP_MOUSE_IDLE_MS:500,TOOLTIP_TOUCH_IDLE_MS:1500,_idleDebounce:null,_watchedParents:null,_resizeObserver:null,_intersectObserver:null,_parentScrollListener:null,tooltipSlotId:"slot"}).observe({tooltip:"string",autoTooltip:"boolean"}).html`<mdw-tooltip id=tooltip></mdw-tooltip>`.css`#tooltip{display:none}`.methods({cancelShowTooltip(){clearTimeout(this._idleDebounce)},scheduleHideTooltip(e){if(this.cancelShowTooltip(),!this.refs.tooltip.open)return;let r=0;switch(e){case"mouse":r=0;break;case"touch":r=1500;break;default:}this._idleDebounce=setTimeout(()=>{this.hideTooltip()},r)},scheduleShowTooltip(e){if(this.refs.tooltip.open)return;let r=0;switch(e){case"mouse":r=this.TOOLTIP_MOUSE_IDLE_MS;break;case"touch":r=this.TOOLTIP_TOUCH_IDLE_MS;break;default:}clearTimeout(this._idleDebounce),r?this._idleDebounce=setTimeout(this.showTooltip.bind(this),r):this.showTooltip()},showTooltip(){let e=this.refs.tooltip;if(e.open)return;document.body.append(this.refs.tooltip),this.recloneTooltip(),this.updateTooltipPosition(),this._resizeObserver.observe(this,{box:"border-box"}),this._resizeObserver.observe(e,{box:"border-box"}),this._intersectObserver.observe(this),this._intersectObserver.observe(e);let i=this;for(;i=i.offsetParent;)this._resizeObserver.observe(i,{box:"border-box"}),this._watchedParents.push(i),this._intersectObserver.observe(i),i.addEventListener("scroll",this._parentScrollListener);window.addEventListener("scroll",this._parentScrollListener),e.open=!0},hideTooltip(e=!1){e&&this.cancelShowTooltip(),this._resizeObserver.disconnect(),this._intersectObserver.disconnect();let i;for(;i=this._watchedParents.pop();)i.removeEventListener("scroll",this._parentScrollListener);window.removeEventListener("scroll",this._parentScrollListener);let r=this.refs.tooltip;r.open=!1,r.remove()},updateTooltipPosition(e){let r=this.refs.tooltip;Object.assign(r.style,{top:"0",left:"0",right:"auto",bottom:"auto",position:"fixed",maxWidth:null,maxHeight:null});let o={anchor:e??this.getBoundingClientRect(),width:r.clientWidth,height:r.clientHeight},n=getComputedStyle(this).direction==="rtl",s=n?"right":"left",l=n?"left":"right",a=[{clientY:"bottom",clientX:"center",offsetY:8},{clientY:"bottom",clientX:s,offsetY:8},{clientY:"bottom",clientX:l,offsetY:8},{clientY:"top",clientX:"center",offsetY:-8},{clientY:"top",clientX:s,offsetY:-8},{clientY:"top",clientX:l,offsetY:-8}],c;for(let d of a){let m=Rt({...o,...d});if((!c||c.visibility<m.visibility)&&(c=m),m.visibility===1)break}Object.assign(r.style,{position:"fixed",...c.styles})},recloneTooltip(){let e,i=this.tooltip;i?e=[i]:e=this.refs[this.tooltipSlotId].assignedNodes().map(r=>r.cloneNode(!0)),this.refs.tooltip.replaceChildren(...e)},closeIfNotHovered(){let e=()=>{this.hoveredState||this.refs.tooltip.matches(":hover")||this.hideTooltip(!0)};it?requestAnimationFrame(e):e()}}).childEvents({slot:{slotchange:"recloneTooltip"},tooltip:{pointerleave:"closeIfNotHovered"}}).events({"~pointermove"(e){e.pointerType!=="touch"&&this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("mouse")},"~keydown"({ctrlKey:e}){e&&this.hideTooltip(!0)},"~click"(){this.hideTooltip(!0)}}).on({constructed(){this._watchedParents=[],this._parentScrollListener=this.updateTooltipPosition.bind(this,null),this._resizeObserver=new ResizeObserver(()=>{this.refs.tooltip.open&&this.updateTooltipPosition()});let e=[0,.49,.5,.51,1];this._intersectObserver=new IntersectionObserver(i=>{let r=this.refs.tooltip;if(r.open){for(let o of i){if(o.intersectionRatio<=0){this.hideTooltip();return}if(o.target===r){this.updateTooltipPosition();return}if(o.target===this){o.intersectionRatio<=.5?this.hideTooltip():this.updateTooltipPosition(o.boundingClientRect);return}}this.updateTooltipPosition()}},{threshold:e})},_focusedChanged(e,i){i?!this._pointerPressed&&!this._focusedSynthetic&&this.autoTooltip&&this.showTooltip():this.closeIfNotHovered()},_hoveredChanged(e,i){i?this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("mouse"):this.closeIfNotHovered()},_pointerPressedChanged(e,i){this._lastInteraction==="touch"&&(i?this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("touch"):this.scheduleHideTooltip("touch"))},disconnected(){this.hideTooltip(!0)},tooltipChanged(){this.recloneTooltip()}})}var to=_e.extend().mixin(Ve).observe({lowered:"boolean",extended:"boolean",fabSize:{value:null},filled:{empty:"tonal"},elevated:{type:"boolean",empty:!0}}).observe({autoTooltip({extended:t}){return!t}}).recompose(({refs:{icon:t,slot:e}})=>{t.setAttribute("fab-size","{fabSize}"),e.setAttribute("extended","{extended}"),e.setAttribute("icon","{icon}")}).css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-ink:var(--mdw-color__primary);--mdw-shape__size:16px;gap:0;grid-area:fab;min-inline-size:24px;padding:calc(16px + (var(--mdw-density) * 2px));background-color:rgb(var(--mdw-bg));box-shadow:var(--mdw-elevation__box-shadow__3);color:rgb(var(--mdw-ink));transition-duration:.2s;transition-property:box-shadow,gap,min-inline-size}:host(:where([extended])){gap:8px;min-inline-size:48px}#slot{display:inline-flex;align-items:center;min-block-size:24px;visibility:hidden;color:transparent;font-size:0;transition:color .2s,font-size .2s,visibility .2s}#slot[extended]{visibility:inherit;color:inherit;font-size:inherit;transition:color .2s,font-size .2s,visibility 0s}:host([fab-size=small]){--mdw-shape__size:12px;padding:calc(8px + (var(--mdw-density) * 2px))}:host([fab-size=large]){--mdw-shape__size:28px;padding:calc(30px + (var(--mdw-density) * 2px))}#icon{font-size:24px}#icon[fab-size=large]{font-size:36px}:host(:where([lowered])){--mdw-bg:var(--mdw-color__surface-container-low);box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where(:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__4)}:host(:where([lowered]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__2)}`.autoRegister("mdw-fab");var io=f.extend().mixin(L).observe({hideBreakpoint:{value:728}}).observe({_styles:{...se,get({hideBreakpoint:t}){if(t)return`@media(min-width:${t}px){:host{display:none}}`}}}).html`<slot id=slot></slot>`.css`:host{display:grid;align-items:flex-end;grid-template:"fab" auto/auto;justify-content:flex-end;margin:16px;pointer-events:none}@media(min-width:648px){:host{margin:24px}}#slot{pointer-events:auto}`.autoRegister("mdw-fab-container");var ro=Pt.extend().observe({type:{empty:"checkbox"},dropdown:"boolean",trailingSrc:"string",trailingIcon:"string"}).expressions({computedTrailingIcon:({trailingIcon:t,dropdown:e,trailingSrc:i})=>t||(e?"arrow_drop_down":i?"":null),iconVariation({checked:t}){return t?"filled":null}}).html`<mdw-icon mdw-if={!icon} id=check-icon disabled={disabledState} selected={checked} aria-hidden=true icon=check variation=filled></mdw-icon><mdw-icon mdw-if={computedTrailingIcon} id=trailing-icon aria-hidden=true src={trailingSrc} icon={computedTrailingIcon}></mdw-icon>`.recompose(({refs:{icon:t,control:e,outline:i,slot:r,trailingIcon:o,checkIcon:n}})=>{t.setAttribute("mdw-if","{icon}"),t.setAttribute("ink","{iconInk}"),e.removeAttribute("role"),i.removeAttribute("mdw-if"),i.removeAttribute("ink"),i.removeAttribute("color"),i.setAttribute("selected","{checked}"),i.setAttribute("elevated","{elevated}"),i.setAttribute("icon",""),i.setAttribute("trailing-icon","{computedTrailingIcon}"),r.removeAttribute("ink"),r.removeAttribute("color"),r.before(n),r.after(o)}).css`:host{--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container);gap:8px;padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)));padding-inline-end:max(12px,calc(16px + (var(--mdw-density) * 2px)));background-color:transparent;color:rgb(var(--mdw-color__on-surface-variant))}:host(:focus){--mdw-outline__rgb:var(--mdw-color__outline)}#outline{z-index:-1;background-color:transparent}:host(:where([trailing-icon],[dropdown],[trailing-src])){padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)))}#outline[elevated]{background-color:rgb(var(--mdw-color__surface-container-low));border-color:transparent}#outline[selected]{background-color:rgb(var(--mdw-bg));border-color:transparent}:host([selected]){color:rgb(var(--mdw-ink))}#trailing-icon{position:relative;font-size:18px}.mdw-chip__checkbox{position:absolute;max-block-size:0;max-inline-size:0;appearance:none;pointer-events:none}#check-icon{font-size:0}#check-icon[selected]{font-size:18px}#check-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}:host([disabled]:is([elevated],[filled])){background-color:transparent}#outline[disabled]:is([elevated],[selected]){background-color:rgba(var(--mdw-color__on-surface),.12)}`.autoRegister("mdw-filter-chip");var oo=j.extend().mixin(Y).observe({grid:"boolean",columns:"integer",_autoColumns:{type:"integer",empty:4},_lastInlineSize:"float"}).observe({_resizeObserverEnabled:{type:"boolean",get({columns:t}){return!t}},_computedColumns({columns:t,_autoColumns:e}){return t||e||4}}).overrides({onResizeObserved(t){let{contentBoxSize:e}=t;if(!e.length)return;let[{inlineSize:i}]=e;this._lastInlineSize=i}}).on({_lastInlineSizeChanged(t,e){e>=840?this._autoColumns=12:e>=600?this._autoColumns=8:this._autoColumns=4},connected(){this._lastInlineSize=this.clientWidth}}).expressions({_isFlex({block:t,grid:e}){return!t&&!e}}).observe({_styles:{...se,get({_computedColumns:t}){return(t||4)===4?"":{gridTemplateColumns:`repeat(${t},1fr)`}}}}).recompose(({refs:{slot:t}})=>{t.setAttribute("grid","{grid}"),t.setAttribute("flex","{_isFlex}"),t.setAttribute("columns","{_computedColumns}")}).css`:host{display:grid;column-gap:16px;grid-auto-flow:row;grid-template-columns:repeat(4,1fr)}:host([y=start]){align-items:flex-start}:host([y=end]){align-items:flex-end}:host([y=center]){align-items:center}:host([y=between]){align-items:space-between}:host([y=around]){align-items:space-around}:host([y=stretch]){align-items:stretch}:host([x=start]){justify-content:flex-start}:host([x=end]){justify-content:flex-end}:host([x=center]){justify-content:center}:host([x=between]){justify-content:space-between}:host([x=stretch]){justify-content:stretch}#slot,#slot[columns="4"]{--mdw-grid__columns:4;--mdw-grid__columns__4:1;--mdw-grid__columns__8:0;--mdw-grid__columns__12:0}#slot[columns="8"]{--mdw-grid__columns:8;--mdw-grid__columns__4:0;--mdw-grid__columns__8:1;--mdw-grid__columns__12:0}#slot[columns="12"]{--mdw-grid__columns:12;--mdw-grid__columns__4:0;--mdw-grid__columns__8:0;--mdw-grid__columns__12:1}::slotted(*){--mdw-grid__column-count:var(--mdw-grid__columns);--mdw-grid__column-count__4:var(--mdw-grid__column-count);--mdw-grid__column-count__8:var(--mdw-grid__column-count);--mdw-grid__column-count__12:var(--mdw-grid__column-count);grid-column:auto/span calc((min(var(--mdw-grid__column-count__4),4) * var(--mdw-grid__columns__4)) + (min(var(--mdw-grid__column-count__8),8) * var(--mdw-grid__columns__8)) + (min(var(--mdw-grid__column-count__12),12) * var(--mdw-grid__columns__12)))}::slotted([col-span="1"]){--mdw-grid__column-count:1}::slotted([col-span="2"]){--mdw-grid__column-count:2}::slotted([col-span="3"]){--mdw-grid__column-count:3}::slotted([col-span="4"]){--mdw-grid__column-count:4}::slotted([col-span="5"]){--mdw-grid__column-count:5}::slotted([col-span="6"]){--mdw-grid__column-count:6}::slotted([col-span="7"]){--mdw-grid__column-count:7}::slotted([col-span="8"]){--mdw-grid__column-count:8}::slotted([col-span="9"]){--mdw-grid__column-count:9}::slotted([col-span="10"]){--mdw-grid__column-count:10}::slotted([col-span="11"]){--mdw-grid__column-count:11}::slotted([col-span="12"]){--mdw-grid__column-count:12}::slotted([col-span="25%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns) / 4)}::slotted([col-span="50%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns) / 2)}::slotted([col-span="100%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns))}::slotted([col-span-4="1"]){--mdw-grid__column-count__4:1}::slotted([col-span-4="2"]){--mdw-grid__column-count__4:2}::slotted([col-span-4="3"]){--mdw-grid__column-count__4:3}::slotted([col-span-4="4"]){--mdw-grid__column-count__4:4}::slotted([col-span-8="1"]){--mdw-grid__column-count__8:1}::slotted([col-span-8="2"]){--mdw-grid__column-count__8:2}::slotted([col-span-8="3"]){--mdw-grid__column-count__8:3}::slotted([col-span-8="4"]){--mdw-grid__column-count__8:4}::slotted([col-span-8="5"]){--mdw-grid__column-count__8:5}::slotted([col-span-8="6"]){--mdw-grid__column-count__8:6}::slotted([col-span-8="7"]){--mdw-grid__column-count__8:7}::slotted([col-span-8="8"]){--mdw-grid__column-count__8:8}::slotted([col-span-12="1"]){--mdw-grid__column-count__12:1}::slotted([col-span-12="2"]){--mdw-grid__column-count__12:2}::slotted([col-span-12="3"]){--mdw-grid__column-count__12:3}::slotted([col-span-12="4"]){--mdw-grid__column-count__12:4}::slotted([col-span-12="5"]){--mdw-grid__column-count__12:5}::slotted([col-span-12="6"]){--mdw-grid__column-count__12:6}::slotted([col-span-12="7"]){--mdw-grid__column-count__12:7}::slotted([col-span-12="8"]){--mdw-grid__column-count__12:8}::slotted([col-span-12="9"]){--mdw-grid__column-count__12:9}::slotted([col-span-12="10"]){--mdw-grid__column-count__12:10}::slotted([col-span-12="11"]){--mdw-grid__column-count__12:11}::slotted([col-span-12="12"]){--mdw-grid__column-count__12:12}`.autoRegister("mdw-grid");var no=We.extend().set({_baseAriaLevel:4}).css`:host{font:var(--mdw-typescale__headline-large__font);letter-spacing:var(--mdw-typescale__headline-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}`.autoRegister("mdw-headline");var so=_e.extend().mixin(Ve).set({_allowedTypes:["button","submit","reset","checkbox","file"]}).observe({_ariaPressed:{get({type:t,checked:e,indeterminate:i}){return t!=="checkbox"?null:i?"mixed":e?"true":"false"}},_isToggle({type:t}){return t==="checkbox"},autoTooltip:{empty:!0}}).expressions({iconVariation({checked:t,outlined:e,_isToggle:i}){return!t&&(i||e)?null:"filled"}}).childEvents({control:{keydown(t){if(t.key!=="Enter"&&t.key!==" ")return;let e=t.currentTarget;e.type==="checkbox"&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),!e.disabled&&e.click())}}}).recompose(({refs:{icon:t,control:e,outline:i}})=>{t.removeAttribute("mdw-if"),e.setAttribute("aria-pressed","{_ariaPressed}"),i.setAttribute("toggle","{_isToggle}"),i.setAttribute("selected","{checked}")}).observe({_styles:{...se,get({checked:t,disabled:e,filled:i,outlined:r,_isToggle:o}){return!o||e?null:r?t?{backgroundColor:"rgb(var(--mdw-bg))"}:{color:"rgb(var(--mdw-color__on-surface-variant))"}:t||i==null?null:{backgroundColor:"rgb(var(--mdw-color__surface-container-highest))",color:i==="tonal"?"rgb(var(--mdw-color__on-surface-variant))":"rgb(var(--mdw-bg))"}}}}).css`:host{--mdw-shape__size:var(--mdw-shape__full);--mdw-ink:rgb(var(--mdw-color__on-surface-variant));align-items:center;justify-content:center;min-block-size:1em;min-inline-size:1em;padding:max(8px,calc(8px + (var(--mdw-density) * 2px)));font-size:24px;transition-property:background-color,box-shadow}:host(:where([type=checkbox])){--mdw-ink:var(--mdw-color__primary)}:host(:where([filled])){--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary)}:host(:where([filled=tonal])){--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container)}:host(:where([outlined])){--mdw-ink:var(--mdw-color__on-surface-variant);background-color:transparent}:host(:where([outlined][type=checkbox])){--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface)}#slot{display:none}#icon{pointer-events:none;font-size:inherit;transition-property:color,inline-size,width}#state{z-index:1}#ripple-container{z-index:2}#outline[focused]{opacity:1;color:inherit}#outline[focused][toggle]{color:rgb(var(--mdw-color__outline))}#outline[selected]:not([disabled]){opacity:0}`.autoRegister("mdw-icon-button");function xe(t){return t.mixin(G).mixin(E).set({stateLayer:!0}).observe({type:{empty:"text"},icon:"string",iconVariation:"string",label:"string",filled:"boolean",outlined:"boolean",inputPrefix:"string",inputSuffix:"string",trailingIcon:"string",trailingIconInk:"string",trailingIconLabel:"string",supporting:"string",error:"string",placeholder:{nullParser:String}}).observe({erroredState({error:e,_invalid:i,_userInteracted:r}){return r&&!!(e||i)}}).expressions({computePlaceholder({filled:e,outlined:i,label:r,placeholder:o}){return e||i?o:o??r},shouldShowSupporting({erroredState:e,supporting:i}){return e||i!=null},computeSupportingText({error:e,erroredState:i,_validationMessage:r,supporting:o}){return(e||i&&r||o)??""},populatedState({value:e,_badInput:i}){return!!e||i},_showLabelText({label:e,filled:i,outlined:r}){return e&&(i||r)}}).expressions({_shapeShapeTop({shapeTop:e,filled:i}){return e||i},computedIconVariation({iconVariation:e,outlined:i}){return e??(i?null:"filled")}}).html`<div id=shape role=none filled={filled} icon={icon} trailing-icon={trailingIcon} populated={populatedState} focused={focusedState} label={label} outlined={outlined} shape-top={_shapeShapeTop}><mdw-icon mdw-if={icon} id=icon aria-hidden=true disabled={disabledState} icon={icon} variation={computedIconVariation}></mdw-icon><div id=inline role=none filled={filled} icon={icon} trailing-icon={trailingIcon} populated={populatedState} focused={focusedState} label={label} outlined={outlined}><span mdw-if={inputPrefix} class=inline id=prefix aria-hidden=true focused={focusedState} populated={populatedState}>{inputPrefix}</span> <span mdw-if={inputSuffix} class=inline id=suffix aria-hidden=true focused={focusedState} populated={populatedState}>{inputSuffix}</span></div><mdw-icon-button tabindex=-1 disabled={disabledState} mdw-if={trailingIcon} id=trailing-icon ink={trailingIconInk} disabled={disabledState} icon={trailingIcon}>{trailingIconLabel}</mdw-icon-button><div mdw-if={filled} id=indicator aria-hidden=true focused={focusedState} hovered={hoveredState} errored={erroredState} disabled={disabledState}></div></div><div id=label-text mdw-if={_showLabelText} aria-hidden=true outlined={outlined} populated={populatedState} focused={focusedState} icon={icon} trailing-icon={trailingIcon} disabled={disabledState} errored={erroredState}>{label}</div><div mdw-if={shouldShowSupporting} id=supporting disabled={disabledState} errored={erroredState}>{computeSupportingText}<slot id=supporting-slot name=supporting></slot></div>`.recompose(({html:e,refs:{control:i,outline:r,state:o,shape:n,inline:s}})=>{i.setAttribute("placeholder","{computePlaceholder}"),i.setAttribute("aria-label","{label}"),i.setAttribute("input-suffix","{inputSuffix}"),i.setAttribute("errored","{erroredState}"),i.setAttribute("aria-describedby","supporting"),i.removeAttribute("aria-labelledby"),i.classList.add("inline"),o.setAttribute("mdw-if","{!outlined}"),r.append(e`<div id=outline-left class=outline-section focused={focusedState}></div><div id=gap label={label} populated={populatedState} focused={focusedState}><div id=gap-slot focused={focusedState}></div><span id=gap-label>{label}</span></div><div id=outline-right class=outline-section focused={focusedState}></div>`),r.setAttribute("label","{label}"),r.setAttribute("errored","{erroredState}"),n.prepend(r,o),s.prepend(i)}).on({sizeChanged(e,i){this.refs.control.style.setProperty("--size",`${i}ch`)}}).css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-text-field__ratio:calc(var(--mdw-density) * .125 + 1);--control__margin-top:calc(var(--mdw-typescale__body-small__line-height) / 2);--control__padding-top:calc((var(--mdw-text-field__ratio) * 16px) - calc(var(--mdw-typescale__body-small__line-height) / 2));--control__padding-bottom:calc(var(--mdw-text-field__ratio) * 16px);--control__margin-bottom:0px;--inline-color:rgb(var(--mdw-color__on-surface-variant));--descriptor-opacity:.5;--mdw-ink:var(--mdw-color__primary);--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-type__font:var(--mdw-typescale__body-large__font);--mdw-type__letter-spacing:var(--mdw-typescale__body-large__letter-spacing);display:inline-block;border-radius:0;color:rgb(var(--mdw-color__on-surface));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host(:is([color],[ink])){background-color:transparent;color:rgb(var(--mdw-color__on-surface))}#shape[label][outlined]{--mdw-shape__size__top-start-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-start-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__top-end-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-end-size:min(var(--mdw-shape__size), 12px)}#shape{position:relative;display:flex;cursor:inherit;z-index:0;background-color:transparent;border-start-start-radius:calc(var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__size__bottom-end-size));font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition:none .2s cubic-bezier(0,0,.2,1)}#inline{display:flex;align-items:center;overflow:visible;flex:1;padding-block:var(--control__margin-top) var(--control__margin-bottom);cursor:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition:none .2s cubic-bezier(0,0,.2,1)}#shape:where([filled],[color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-color__on-surface))}#shape[outlined]{background-color:transparent}#indicator,#label-text{color:rgb(var(--mdw-color__on-surface-variant))}:is(#label-text,#indicator)[focused]{color:rgb(var(--mdw-ink))}#shape[focused]{transition:none .1s cubic-bezier(.4,0,1,1)}#shape[shape-top]{--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px}#control::placeholder,#prefix,#suffix{opacity:var(--descriptor-opacity);color:var(--inline-color);transition-duration:inherit;transition-property:opacity;transition-timing-function:inherit;will-change:opacity}:host([label]:is([filled],[outlined])){--descriptor-opacity:0}#control{position:relative;inset:auto;align-self:flex-start;display:inline-block;box-sizing:border-box;block-size:auto;min-block-size:0;inline-size:100%;min-inline-size:0;flex:1;border-block-end:solid var(--control__margin-bottom) transparent;padding-block:var(--control__padding-top) var(--control__padding-bottom);appearance:none;caret-color:rgb(var(--mdw-ink));cursor:auto;transform:none;visibility:inherit;background-color:transparent;border-color:transparent;color:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;text-align:initial;transition-duration:inherit;transition-property:color;transition-timing-function:inherit}#prefix,#suffix{padding-block:var(--control__padding-top) var(--control__padding-bottom)}#control::selection{background-color:rgb(var(--mdw-ink));color:rgb(var(--mdw-color__surface))}#state{--mdw-state__focused-opacity:0;--mdw-state__pressed-opacity:0}mdw-icon{--mdw-icon__size:24px;align-self:center;color:var(--inline-color)}#icon{order:-2;margin-inline-start:12px;font-size:24px}#prefix{order:-1}#suffix{order:1}#trailing-icon{order:2;margin-inline-end:12px}#indicator{position:absolute;inset-block-end:0;inset-inline:0;border-block-end:2px solid currentColor;pointer-events:none;transform:scaleY(.5);z-index:1;transition-duration:inherit;transition-property:transform;transition-timing-function:inherit;will-change:transform}#indicator[focused]{transform:scaleY(1)}#label-text{position:absolute;inset-block-start:0;inset-inline:0;display:block;overflow-x:clip;overflow-y:visible;padding-inline:16px;pointer-events:none;opacity:1;transform:translateY(calc((var(--control__margin-top) + var(--control__padding-top) + 100% + var(--control__padding-bottom) + var(--control__margin-bottom))/ 2)) translateY(-50%);z-index:4;color:rgb(var(--mdw-color__on-surface-variant));text-overflow:ellipsis;white-space:nowrap;transition-duration:.2s;transition-property:inset-inline-start,font-size,transform;will-change:inset-inline-start,font-size,transform}@supports (-moz-appearance:none){#label-text{overflow-x:hidden}}#label-text[focused]{color:rgb(var(--mdw-ink))}#label-text[icon]{inset-inline-start:36px}#label-text[trailing-icon]{inset-inline-end:36px}#label-text:is([focused],[populated]){transform:translateY(calc(var(--mdw-text-field__ratio) * 8px));font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#label-text[outlined]:is([focused],[populated]){inset-inline:0;transform:translateY(-50%)}:is(#prefix,#suffix):is([focused],[populated]){opacity:1}#control:is(:focus,:not(:placeholder-shown))::placeholder{opacity:.7}#control[input-suffix]{text-align:end}#outline{position:absolute;inset:0;border-style:solid;border-width:0;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}#outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}#outline:before{content:none}.outline-section{position:relative;border:1px solid currentColor}.outline-section[focused]{border-width:2px}#outline-left{border-right-width:0;border-top-left-radius:inherit;border-bottom-left-radius:inherit}#outline-right{border-left-width:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit}#outline{display:grid;grid-auto-flow:column;grid-template-columns:1fr 0 1fr;color:rgb(var(--mdw-color__outline))}#outline[label]{grid-template-columns:12px minmax(0,auto) minmax(12px,1fr)}#outline[hovered]{color:rgb(var(--mdw-color__on-surface))}#outline[focused]{color:rgb(var(--mdw-ink))}.outline-section{min-inline-size:12px}.outline-section:after,.outline-section:before{max-inline-size:none}.outline-left{grid-column:calc(2 - var(--mdw-dir,1))/span 1}.outline-right{grid-column:calc(2 + var(--mdw-dir,1))/span 1}#gap{position:relative;display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing);transition-duration:inherit;transition-property:padding;transition-timing-function:inherit}#gap-label{display:inline-block;overflow:clip hidden;padding-inline:4px;color:transparent;white-space:nowrap}#gap:after{content:"";position:absolute;inset:0;border-block-end:solid 1px currentColor}#gap[focused]:after{border-block-end-width:2px}#gap-slot{position:absolute;inset:0}#gap-slot:after,#gap-slot:before{content:"";position:absolute;inset:0;border-block-start:solid 1px currentColor;transition:transform .2s;will-change:transform}#gap-slot[focused]:after,#gap-slot[focused]:before{border-block-start-width:2px}#gap-slot:before{margin-right:-.99px;transform:var(--gap-transform,scaleX(.5));transform-origin:0 0}#gap-slot:after{margin-left:-.99px;transform:var(--gap-transform,scaleX(.5));transform-origin:100% 0}#gap:is([focused],[populated]){--gap-transform:scaleX(0)}#gap:empty{padding:0}#inline[label][filled]{align-items:flex-start}:host([filled]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-text-field__ratio:calc(var(--mdw-density) * .25 + 1)}:host(:is([filled][label])){--control__margin-top:calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top:0px;--control__padding-bottom:calc(var(--mdw-text-field__ratio) * 4px);--control__margin-bottom:calc(var(--mdw-text-field__ratio) * 4px)}#supporting{min-block-size:var(--mdw-typescale__body-small__line-height);margin-block-start:4px;margin-inline:16px;font-weight:var(--mdw-typescale__body-small__font-weight);font-size:var(--mdw-typescale__body-small__font-size);line-height:var(--mdw-typescale__body-small__line-height);font-family:var(--mdw-typescale__body-small__font-family);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#control[errored]{caret-color:rgb(var(--mdw-color__error))}#control[errored]::selection{background-color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]{color:rgb(var(--mdw-color__error))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([hovered]){color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([focused]){color:rgb(var(--mdw-color__error))}#shape[disabled],#shape[disabled] #control{cursor:not-allowed}#outline[disabled]{color:rgba(var(--mdw-color__outline),.12)}#label-text[disabled],#supporting[disabled],.inline[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}mdw-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled]{background-color:rgba(var(--mdw-color__on-surface),.04);color:rgba(var(--mdw-color__on-surface),.38)}#indicator[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled][outlined]{background-color:transparent}`}var Ft=f.extend().mixin(x).mixin(U).mixin(E).mixin(De).observe({elevation:"integer"}).css`:host{filter:var(--mdw-elevation__drop-shadow__0);transition:filter .2s}:host(:where([elevation="1"])){filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([elevation="2"])){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([elevation="3"])){filter:var(--mdw-elevation__drop-shadow__3)}:host(:where([elevation="4"])){filter:var(--mdw-elevation__drop-shadow__4)}:host(:where([elevation="5"])){filter:var(--mdw-elevation__drop-shadow__5)}`.autoRegister("mdw-popup");var ve;function at(){return ve||(ve=new Ft,ve.scrollable=!0,ve.shapeStyle="extra-small",ve.color="surface",ve.matchSourceWidth=!0,ve.flow="corner",ve.elevation=2),ve}var ao=f.extend().mixin(x).mixin(N).mixin(K).mixin(xe).mixin(Y).observe({autocompleteInline:"boolean",autocompleteList:"string",autosuggestInline:"boolean",autoSelect:"boolean",_expanded:"boolean",acceptOnEscape:"boolean",_listbox:{type:"object",value:null},_focusedValue:"string",_focusedPosInSet:{value:-1},_listboxSize:{value:-1},_draftInput:{type:"string",nullable:!1},_hasSuggestion:"boolean",_listboxValue:"string",_lastComputedListboxValue:{type:"string",nullable:!1},_values:{type:"array",value:[]},_chipSelected:"boolean"}).observe({_hasListbox({_listbox:t}){return!!t},_isSelect({type:t}){return t.toLowerCase()==="select-one"||t.toLocaleLowerCase()==="select-multiple"}}).define({listbox(){return this._listbox}}).set({_onListboxChangeListener:null,_onListboxClickListener:null,_onPopupFocusoutListener:null,_suggestionText:"",_suggestionValue:"",_suggestionOption:null}).define({stateTargetElement(){return this.refs.control}}).methods({onResizeObserved(){this._expanded&&at().updatePopupPosition(this.refs.shape)},onListboxClick(t){this.closeListbox(),this.refs.control.focus()},onListboxChange(t){if(this.multiple){let o=[...this._listbox.selectedOptions].map(n=>n.value);this._values=o,this._input.value&&this.closeListbox();return}let e=this._listbox.selectedOptions.item(0);this.render({selectedOption:e});let{label:i,value:r}=e;this._suggestionText=i,this._suggestionValue=r,this._suggestionOption=e,this._hasSuggestion=!0,this.acceptSuggestion(!0),this.closeListbox(),this.refs.control.focus()},onPopupFocusout({relatedTarget:t}){this._expanded&&(t&&(this===t||this.contains(t)||at().contains(t))||this.closeListbox())},applyAutocompleteList(){let{_listbox:t,_draftInput:e}=this;if(!t)return;let i=e.toLowerCase();for(let r of t)r.hidden=!r.label.toLowerCase().startsWith(i)},showListbox(){let t=this._listbox;if(!t)return;this._expanded=!0;let{ariaListbox:e,shape:i}=this.refs;e.setAttribute("aria-hidden","false");let r=at();"popover"in r?(this.insertAdjacentElement("afterend",r),r.popover="manual",r.showPopover()):document.body.append(r),r.replaceChildren(t),r.showPopup(i,!1),r.addEventListener("focusout",this._onPopupFocusoutListener),!this._isSelect&&!this.multiple&&(t.value=this._listboxValue);let[o]=t.selectedOptions;o&&o.scrollIntoView({behavior:"instant",block:"nearest"})},closeListbox(){this._expanded=!1;let{_listbox:t}=this;if(!t)return;let e=at();this.refs.ariaListbox.setAttribute("aria-hidden","true"),this.replaceChildren(t),e.close(void 0,!1),e.remove()},toggleListbox(){this._expanded?this.closeListbox():this.showListbox()},suggestOption(t){this.render({selectedOption:t});let{_draftInput:e,_input:i,_isSelect:r,autocompleteInline:o,_expanded:n,autoSelect:s}=this,{label:l,value:a}=t;if(this._suggestionText=l,this._suggestionValue=a,this._suggestionOption=t,this._hasSuggestion=!0,s){this.acceptSuggestion(!0);return}if(r&&!this.multiple||o){let c=l,d=0;n?!r&&l.toLowerCase().startsWith(e.toLowerCase())?(c=e+l.slice(e.length),d=e.length):d=l.length:d=0,i.value=c,o&&i.setSelectionRange(d,l.length),n||this.acceptSuggestion(!0)}},acceptSuggestion(t=!1){if(!this._hasSuggestion||this.readOnly)return;let{_suggestionText:e,_suggestionValue:i,_input:r,multiple:o,_listbox:n,_values:s}=this;if(o){let l=[...s.filter(Boolean),i??e];this._values=[...new Set(l)]}else this.value=i,r.value=e,this._draftInput=e,n.value=i;t&&this.dispatchEvent(new Event("change",{bubbles:!0}))},changeSuggestion({first:t,last:e,next:i,previous:r,startsWith:o,value:n,label:s}){let l=this._listbox,a,c,d,m,u,g=-1,h=-1;for(let p of l.options){if(h++,!d&&p.focused&&(d=p,m=h,a&&!i&&!e))break;if(!p.hidden){if(e){a=p,c=h;continue}if(t){a||(a=p,c=h);continue}if(o!=null){!a&&p.label.toLowerCase().startsWith(o)&&(a=p,c=h);continue}if(n!=null){!a&&p.value===n&&(a=p,c=h);continue}if(s!=null){!a&&p.label===s&&(a=p,c=h);continue}if(m!==h){if(r)a=p,c=h;else if(i)if(d){a=p,c=h;break}else u||(u=p,g=h)}}}if(d&&d!==a&&(d.focused=!1),a||(c=g,a=u,this._input.value=this._draftInput),c===-1){this._focusedPosInSet=-1,this._hasSuggestion=!1;return}this._focusedPosInSet=c+1,a.focused=!0,a.scrollIntoView({behavior:"instant",block:"nearest"}),this.suggestOption(a)},resetSuggestion(){this._isSelect?this.changeSuggestion({label:this._draftInput}):this.changeSuggestion({value:this._listboxValue})},refreshMultiple(){let{_values:t,multiple:e}=this;if(!e){this.refs.chips.replaceChildren();return}let i=this.refs.chips.firstElementChild;for(let r=0;r<t.length;r++){let o=t[r],n;if(this.listbox){for(let s of this.listbox.options)if(s.value===o){n=s;break}}i??=this.refs.chips.appendChild(document.createElement("mdw-input-chip")),i.closeButton=!0,i.textContent=(n==null?void 0:n.label)||o,i.textContent=(n==null?void 0:n.label)||o,i.disabled=this.disabled,i.readOnly=this.readOnly,i.onclose??=this.onChipClose.bind(this),i=i.nextElementSibling}for(;i;){let r=i;i=i.nextElementSibling,r.remove()}if(this._chipSelected=!1,this._input.value="",this._draftInput="",this._listboxValue="",this.listbox)for(let r of this.listbox.options)r.selected=t.includes(r.value)},populateInputFromListbox(){if(this.multiple){this.refreshMultiple();return}if(!this._isSelect||!this._listbox)return;this._listbox.value=this._value;let[t]=this._listbox.selectedOptions;t&&(this._input.value=t.label,this._draftInput=t.label)},onChipClose({currentTarget:t}){let e=t,i=0;for(;e=e.previousSibling;)i++;t.remove(),this._values.splice(i,1),this._values=[...this._values]}}).childEvents({control:{click(){this._isSelect&&(this.readOnly||this.toggleListbox())},input(t){if(!this._hasListbox)return;if(t.stopPropagation(),!this.dispatchEvent(new InputEvent("input",{composed:!0,data:t.data,bubbles:!0,dataTransfer:t.dataTransfer,detail:t.detail,inputType:t.inputType,view:t.view,targetRanges:t.getTargetRanges(),isComposing:t.isComposing}))){t.preventDefault();return}let i=t.currentTarget.value;this._draftInput=i,this.autocompleteList!=null&&this.autocompleteList!=="custom"&&this.applyAutocompleteList(),this.resetSuggestion(),i&&!this._expanded&&this._listbox.length&&this.showListbox(),t.data!=null&&this.autosuggestInline&&this.changeSuggestion({startsWith:this._draftInput.toLocaleLowerCase()})},keydown(t){if(this._listbox){switch(t.key){case"Home":if(!this._isSelect||this.readOnly)return;this.changeSuggestion({first:!0});break;case"End":if(this._chipSelected=!1,!this._isSelect||this.readOnly)return;this.changeSuggestion({last:!0});break;case"ArrowDown":case"Down":if(this.disabled||this.readOnly||(this._chipSelected=!1,this.readOnly))return;if(t.altKey){this.toggleListbox();break}if(!this._expanded&&!this.autocompleteInline&&!this._isSelect)return;this.changeSuggestion({next:!0});break;case"ArrowUp":case"Up":if(this.disabled||this.readOnly)return;if(t.altKey){this.toggleListbox();break}if(this._chipSelected=!1,!this._expanded&&!this.autocompleteInline&&!this._isSelect)return;this.changeSuggestion({previous:!0});break;case"Escape":if(!this._expanded)return;t.stopImmediatePropagation(),t.preventDefault(),this.acceptOnEscape?this.acceptSuggestion(!0):this.resetSuggestion(),this.closeListbox();break;case"Space":if(this.disabled||this.readOnly||!this._isSelect||!this._listbox)return;this._expanded?this.multiple&&this._suggestionOption&&(this._suggestionOption.selected=!this._suggestionOption.selected,this.closeListbox()):this.showListbox();break;case"Backspace":if(this.disabled||this.readOnly||!this.multiple||this._isSelect)return;this._input.value||(this._chipSelected?(this._values.pop(),this._values=[...this._values]):this._values.length&&(this._chipSelected=!0));return;case"Tab":if(!this._expanded&&this.multiple)return;this.closeListbox(),this.acceptSuggestion(!0),t.stopPropagation();return;case"Enter":if(this._chipSelected=!1,!this._expanded)return;t.stopImmediatePropagation(),t.preventDefault(),this.acceptSuggestion(!0),this.closeListbox();break;case" ":return;default:if(this._isSelect&&t.key.length===1){this.changeSuggestion({startsWith:t.key.toLocaleLowerCase()});break}return}t.stopPropagation(),t.preventDefault()}}},slot:{slotchange({currentTarget:t}){if(this._expanded)return;let[e]=t.assignedElements(),i=this._listbox;i!==e&&(i&&(i.removeEventListener("change",this._onListboxChangeListener),i.removeEventListener("click",this._onListboxClickListener),i._handleFormReset=!0),this._listbox=e,e&&(this.multiple||(e.required=!0),e._handleFormReset=!1,e.addEventListener("change",this._onListboxChangeListener),e.addEventListener("click",this._onListboxChangeListener),this.populateInputFromListbox()))}},trailingIcon:{"~click"(){this._listbox&&(this.toggleListbox(),this.refs.control.focus())}}}).events({blur({relatedTarget:t}){if(this._chipSelected=!1,!this._expanded)return;let e=at();e!==t&&(t&&e.contains(t)||e.matches(":focus-within,:focus")||this.closeListbox())}}).expressions({showTrailingIcon({trailingIcon:t,_listbox:e,_expanded:i,readOnly:r}){return t??(e&&!r?i?"arrow_drop_up":"arrow_drop_down":null)},computedTrailingIcon({trailingIcon:t,_listbox:e,_expanded:i}){return t??(e?i?"arrow_drop_up":"arrow_drop_down":null)},controlTypeAttrValue({_isSelect:t,type:e}){return t?"text":e},controlReadonlyAttrValue({_isSelect:t,type:e,readOnly:i}){return t?!0:i},controlIsSelect({_isSelect:t,type:e}){return t},ariaExpandedAttrValue({_hasListbox:t,_expanded:e}){return t?`${e}`:null},ariaControlsAttrValue({_hasListbox:t}){return t?"aria-listbox":null},ariaAutocompleteAttrValue({_hasListbox:t,autocompleteList:e,_isSelect:i,autocompleteInline:r}){return!t||i?null:e!=null?"both":"inline"},ariaActiveDescendantAttrValue({_hasListbox:t,_expanded:e,_focusedValue:i}){return t?e&&i?"aria-active":"":null},controlRoleAttrValue({_hasListbox:t}){return t?"combobox":null},populatedState({value:t,_badInput:e,_draftInput:i,type:r}){return!!t||e||!!i||r==="datetime-local"}}).recompose(({refs:{control:t,trailingIcon:e,shape:i,labelText:r}})=>{t.setAttribute("aria-activedescendant","{ariaActiveDescendantAttrValue}"),t.setAttribute("aria-autocomplete","{ariaAutocompleteAttrValue}"),t.setAttribute("aria-controls","{ariaControlsAttrValue}"),t.setAttribute("aria-expanded","{ariaExpandedAttrValue}"),t.setAttribute("type","{controlTypeAttrValue}"),t.setAttribute("role","{controlRoleAttrValue}"),t.setAttribute("readonly","{controlReadonlyAttrValue}"),t.setAttribute("autocomplete","off"),t.setAttribute("is-select","{controlIsSelect}"),e.setAttribute("mdw-if","{showTrailingIcon}"),e.setAttribute("icon","{computedTrailingIcon}"),i.setAttribute("trailing-icon","{computedTrailingIcon}"),r.setAttribute("trailing-icon","{computedTrailingIcon}")}).overrides({_onSetValue(t){this.multiple?this._values=t.split(",").filter(Boolean):this._isSelect?this._value=t:(this._input.value=t,this._value=this._input.value)},_onControlValue(t){if(this.multiple){t&&(this._chipSelected=!1);return}this._value=t}}).on({_valueChanged(t,e){this.multiple||(this._isSelect?this.populateInputFromListbox():this._listboxValue=e)},_valuesChanged(t,e){this.multiple&&e&&(this._value=e.join(","),this.refreshMultiple())},_chipSelectedChanged(t,e){if(!this.multiple)return;let i=this.refs.chips.lastElementChild;i&&(i.selected=e)},_listboxValueChanged(t,e){this._hasListbox&&(this._listbox.value=e,this._draftInput=e,this.changeSuggestion({value:e}))},_expandedChanged(t,e){this._useFormImplicitSubmission=!e},constructed(){this._onListboxChangeListener=this.onListboxChange.bind(this),this._onListboxClickListener=this.onListboxClick.bind(this),this._onPopupFocusoutListener=this.onPopupFocusout.bind(this),document.addEventListener("DOMContentLoaded",()=>this.populateInputFromListbox(),{once:!0})},multipleChanged(t,e){this.listbox&&(this.listbox.multiple=e),e&&this._onSetValue(this._input.value)},disabledStateChanged(){this.refreshMultiple(),this._chipSelected=!1,this.closeListbox()},readOnlyChanged(){this.refreshMultiple(),this._chipSelected=!1,this.closeListbox()}}).html`<div id=chips mdw-if={multiple}></div><slot id=slot></slot><div id=aria-listbox role=listbox mdw-if={_hasListbox}><div id=aria-active role=option aria-hidden=false aria-label={selectedOption.label} aria-setsize={_listbox.length} aria-posinset={_focusedPosInSet}></div></div>`.css`#slot,#aria-listbox{display:none}#trailing-icon{align-self:center}#control:where([type=button],[is-select]){cursor:pointer}#inline[multiple]{gap:8px}mdw-input-chip{align-self:baseline}#control[multiple]{align-self:baseline}#chips{display:contents}#inline{flex-wrap:wrap}#inline:where([filled],[outlined]){padding-inline:16px}#control{flex:1 1 8ch}#control[is-select][multiple]{flex:1 1 0px}`.recompose(({refs:{inline:t,chips:e}})=>{t.prepend(e),t.setAttribute("multiple","{multiple}")}).extend(t=>class extends t{addRipple(...i){return this.active?super.addRipple(...i):null}}).autoRegister("mdw-input");var lo=j.extend().mixin(E).mixin(L).mixin(ie).observe({avatar:"boolean",closeButton:"boolean",closeIcon:{empty:"close"},closeInk:{empty:"inherit"},readOnly:{attr:"readonly",type:"boolean"},disabled:"boolean",icon:"string",iconInk:"string",src:"string",svg:"string",viewBox:"string",svgPath:"string",onclose:ee,selected:"boolean"}).set({outlined:!0}).expressions({hasIcon({icon:t,svg:e,src:i,svgPath:r}=this){return t??e??i??r},showCloseIcon({disabled:t,readOnly:e,closeButton:i}){return i&&!t&&!e}}).html`<mdw-button role=none tabindex=-1 href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy} id=action disabled={disabled}></mdw-button><mdw-icon mdw-if={hasIcon} id=icon ink={iconInk} disabled={disabled} outlined={outlined} variation={iconVariation} aria-hidden=true svg={svg} src={src} svg-path={svgPath} view-box={viewBox} icon={icon} avatar={avatar}></mdw-icon><mdw-icon-button role=none disabled={disabled} tabindex=-1 mdw-if={showCloseIcon} id=close class=button icon={closeIcon} ink={closeInk}>Close</mdw-icon-button>`.css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-surface);position:relative;display:inline-flex;align-items:center;flex-direction:row;gap:8px;padding-block:calc(4px + (var(--mdw-density) * 2px));padding-inline:calc(12px + (var(--mdw-density) * 2px));color:rgb(var(--mdw-ink))}:host(:where([icon])){padding-inline-start:calc(8px + (var(--mdw-density) * 2px))}:host(:where([avatar])){padding-inline-start:calc(4px + (var(--mdw-density) * 2px))}:host(:where([close-button]:not([disabled]):not([readonly]))){padding-inline-end:calc(8px + 18px + 8px + (var(--mdw-density) * 2px))}#action{--mdw-shape__size:inherit;position:absolute;inset:0;padding:0}#close{position:absolute;inset-inline-end:5px;padding:3px;font-size:18px}#icon{font-size:18px}#icon[avatar]{font-size:24px}#close::part(control){min-inline-size:34px}#outline{--mdw-ink:rgb(var(--mdw-color__on-surface-variant))}#outline:is([ink],[color],[disabled]){--mdw-ink:inherit}:host([disabled]){color:rgba(var(--mdw-color__on-surface),.38)}`.childEvents({action:{click(){this.dispatchEvent(new Event("action"))}},close:{click(){this.dispatchEvent(new Event("close"))}}}).on({selectedChanged(t,e){let i=this.refs.action;i._focused=e}}).recompose(({refs:{anchor:t,slot:e,icon:i,outline:r}})=>{i.after(e),t.remove(),e.setAttribute("disabled","{disabled}"),e.removeAttribute("ink"),e.removeAttribute("color"),r.removeAttribute("mdw-if"),r.setAttribute("ink","{ink}"),r.setAttribute("color","{color}"),r.setAttribute("disabled","{disabled}")}).autoRegister("mdw-input-chip");var co=j.extend().mixin(Fe).css`:host{font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__label-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-label");var Nt=j.extend().mixin(G).mixin(B).set({_ariaRole:"list",color:{empty:"surface"}}).css`:host{display:block;padding-block:8px;color:rgb(var(--mdw-ink))}`.autoRegister("mdw-list");function Wi(t){return t.observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string"}).css`:host{--mdw-shape__size:0px;--mdw-shape__ltr:calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl:calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__mask:none;--mdw-shape__rounded:1;--mdw-shape__inline-start-deg:calc(var(--mdw-dir, 1) * -90deg);--mdw-shape__size__top-start-size:var(--mdw-shape__size);--mdw-shape__size__top-end-size:var(--mdw-shape__size);--mdw-shape__size__bottom-start-size:var(--mdw-shape__size);--mdw-shape__size__bottom-end-size:var(--mdw-shape__size);--mdw-shape__size__top-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));border-start-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-end-size))}:host([shape-style=none]){--mdw-shape__size:0px}:host([shape-style=extra-small]){--mdw-shape__size:var(--mdw-shape__extra-small)}:host([shape-style=small]){--mdw-shape__size:var(--mdw-shape__small)}:host([shape-style=medium]){--mdw-shape__size:var(--mdw-shape__medium)}:host([shape-style=large]){--mdw-shape__size:var(--mdw-shape__large)}:host([shape-style=extra-large]){--mdw-shape__size:var(--mdw-shape__extra-large)}:host([shape-style=full]){--mdw-shape__size:var(--mdw-shape__full)}:host([shape-style=inherit]){--mdw-shape__size:inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-shape__mask:linear-gradient(transparent 50%, black 50%)}:host([shape-bottom]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__top-end-size:0px;--mdw-shape__mask:linear-gradient(black 50%, transparent 50%)}:host([shape-start]){--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-shape__mask:linear-gradient(var(--mdw-shape__inline-start-deg), black 50%, transparent 50%)}:host([shape-end]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px;--mdw-shape__mask:linear-gradient(var(--mdw-shape__inline-start-deg), transparent 50%, black 50%)}@supports (-webkit-mask-box-image:none){:host{--mdw-shape__rounded:inherit}}@supports (-webkit-mask-box-image:none){:host{-webkit-mask-box-image:var(--mdw-shape__mask-border-source) 8 fill/var(--mdw-shape__size) stretch;-webkit-mask:var(--mdw-shape__mask);transition-duration:.2s;transition-property:-webkit-mask-box-image-width;will-change:-webkit-mask-box-image}}`}var po=f.extend().mixin(Wi).html`<slot id=slot></slot>`.autoRegister("mdw-shape");var mo=f.extend().mixin(x).mixin(E).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean",hovered:"boolean",focused:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).html`<mdw-shape id=inner-shape selected={selected}></mdw-shape>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{selected}")}).css`:host{--disabled-opacity:.38;--mdw-ink:rgb(var(--mdw-color__primary));--color:rgb(var(--mdw-color__on-surface-variant));--mdw-shape__size:var(--mdw-shape__full);position:relative;display:inline-block;block-size:20px;inline-size:20px;background-color:transparent;transition:opacity .2s}#outline{border-width:2px;color:var(--color);will-change:color}#inner-shape{position:absolute;inset:0;transform:scale(0);background-color:var(--color);border-radius:inherit;transition:transform .2s,background-color .1s}:host([hovered]){--color:rgb(var(--mdw-color__on-surface))}:host([focused]){--color:rgb(var(--mdw-color__on-surface))}:host([selected]){--color:rgb(var(--mdw-ink))}:host([errored]){--color:rgb(var(--mdw-color__error))}:host([disabled]){--color:rgba(var(--mdw-color__on-surface));opacity:var(--disabled-opacity)}#inner-shape[selected]{transform:scale(.5)}`.autoRegister("mdw-radio-icon");var Dt=f.extend().mixin(x).mixin(N).mixin(Q).mixin(B).mixin(ie).set({_ariaRole:"listitem",stateLayer:!0}).observe({leading:"string",avatar:"string",avatarColor:{value:"primary-container"},avatarSrc:"string",src:"string",alt:"string",icon:"string",iconInk:"string",iconSrc:"string",iconVariation:"string",checkbox:"string",radio:"string",selectionColor:{value:"primary"},selected:"boolean",supporting:"string",trailing:"string",trailingIcon:"string",trailingIconInk:"string",trailingIconSrc:"string",divider:"string",video:"boolean",lines:"integer",_supportingSlotted:"boolean"}).observe({disabledState({disabled:t}){return t}}).expressions({isInteractive({href:t}){return t!=null},hasSupporting(){return!!(this.supporting||this._supportingSlotted)},checkboxClass(){return this.checkbox||"leading"},radioClass(){return this.radio||"leading"},computedIconVariation({iconVariation:t}){return t??"filled"}}).html`<mdw-checkbox-icon id=checkbox mdw-if={checkbox} aria-hidden=true class={checkboxClass} color={selectionColor} disabled={disabledState} icon=check selected={selected}></mdw-checkbox-icon><mdw-radio-icon id=radio mdw-if={radio} aria-hidden=true class={radioClass} disabled={disabledState} ink={selectionColor} selected={selected}></mdw-radio-icon><mdw-box mdw-if={avatar} id=avatar color={avatarColor} x=center y=center type-style=title-medium src={AvatarSrc} aria-hidden=true>{avatar}</mdw-box><mdw-icon mdw-if={icon} id=icon ink={iconInk} src={iconSrc} aria-hidden=true icon={icon} variation={computedIconVariation}></mdw-icon><img id=img mdw-if={src} src={src} alt={alt} video={video}><slot name=leading>{leading}</slot><div id=content has-supporting={hasSupporting} lines={lines}><slot id=slot></slot><slot id=supporting name=supporting class=text lines={lines}>{supporting}</slot></div><mdw-icon mdw-if={trailingIcon} id=trailing-icon ink={trailingIconInk} src={trailingIconSrc} aria-hidden=true icon={trailingIcon}></mdw-icon><slot id=trailing name=trailing role=note>{trailing}</slot><mdw-divider mdw-if={divider} id=divider divider={divider}></mdw-divider>`.recompose(({refs:{state:t,rippleContainer:e,anchor:i}})=>{i.setAttribute("mdw-if","{href}"),i.setAttribute("aria-labelledby","content"),i.append(t,e),t.setAttribute("state-disabled","focus hover")}).on({disabledStateChanged(t,e){this.updateAriaProperty("ariaDisabled",e?"true":"false")}}).css`:host{--mdw-shape__size:0px;display:flex;align-items:center;gap:16px;border:none;padding-block:8px;padding-inline:16px;cursor:auto;outline:0;color:inherit;text-decoration:none}:host(:where([color])){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([ink]){color:rgb(var(--mdw-ink))}:host([href]){cursor:pointer}#anchor{position:absolute;inset:0;outline:0;color:inherit}:host([video]){padding-inline-start:0}:host([lines="3"]){align-items:flex-start;padding-block:12px}#content{display:inline-flex;align-items:flex-start;flex-direction:column;justify-content:center;flex:1;padding-block:calc(8px + (var(--mdw-density) * 2px))}#content:is([has-supporting],[lines="2"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(4px + var(--mdw-density) * 2px)}#content:is([lines="3"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(0 + var(--mdw-density) * 2px)}#icon,#trailing-icon{font-size:24px}#divider{position:absolute;inset-block-end:0;inset-inline:0;display:block;color:rgb(var(--mdw-color__surface-container-highest))}#divider[divider=inset]{padding-inline:16px 24px}#slot{max-block-size:var(--mdw-typescale__body-large__line-height) * 2;color:var(--mdw-color__on-surface);font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#supporting{max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#trailing{color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__label-small__font);letter-spacing:var(--mdw-typescale__label-small__letter-spacing)}#slot,#supporting{display:block;overflow-x:hidden;overflow-y:hidden;text-align:start;text-overflow:ellipsis;text-transform:none;white-space:normal;word-break:break-word}#supporting[lines="2"]{min-block-size:var(--mdw-typescale__body-medium__line-height);max-block-size:var(--mdw-typescale__body-medium__line-height)}#supporting[lines="3"]{min-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2)}@supports (width:1lh){#slot{max-block-size:1lh}#supporting{max-block-size:2lh}#supporting[lines="2"]{min-block-size:1lh;max-block-size:1lh}#supporting[lines="3"]{min-block-size:2lh;max-block-size:2lh}}@supports (-webkit-line-clamp:1){#slot{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#supporting{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#supporting[lines="2"]{-webkit-line-clamp:1}}#avatar{block-size:40px;inline-size:40px;border-radius:50%}#img{block-size:56px;max-block-size:56px;inline-size:56px;max-inline-size:56px;object-fit:cover;object-position:center center}#img[video]{block-size:64px;max-block-size:64px;inline-size:114px;max-inline-size:114px}#checkbox{margin:3px}#radio{margin:2px}.trailing{order:1}:host([disabled]){opacity:.38;color:rgb(var(--mdw-color__on-surface))}`.childEvents({supporting:{slotchange({currentTarget:t}){this._supportingSlotted=t.assignedNodes().length!==0}}}).autoRegister("mdw-list-item");var me=Dt.extend().mixin(L).setStatic({formAssociated:!0}).set({_ariaRole:"none",_index:-1,_selectedDirty:!1,isInteractive:!0}).observe({_label:{attr:"label",reflect:!0,nullParser:String},_text:{attr:"text",reflect:!0,nullParser:String},defaultSelected:{attr:"selected",reflect:!0,type:"boolean"},_selected:"boolean",_value:{attr:"value",reflect:!0},_formDisabled:"boolean"}).observe({selected:{reflect:!1,type:"boolean",get({_selectedDirty:t,defaultSelected:e,_selected:i}){return t?i:e},set(t){this._selectedDirty=!0,this._selected=t}},disabledState({_formDisabled:t,disabled:e}){return t?!0:!!e}}).define({index(){return this._index},form(){var t;return(t=this.parentElement)==null?void 0:t.form},text:{get(){return this._text??this.textContent},set(t){this._text=t}},label:{get(){return this._label??this._text??this.textContent},set(t){this._label=t}},value:{get(){return this._value??this.textContent},set(t){this._value=t}}}).methods({formDisabledCallback(t){this._formDisabled=t},focus(...t){this.refs.anchor.focus(...t)}}).expressions({anchorAriaLabelledBy({_label:t}){return t?null:"content"},anchorAriaDescribedBy({_label:t}){return t?"content":null},computedIconVariation({iconVariation:t,selected:e}){return t??(e?"filled":null)}}).recompose(({inline:t,refs:{checkbox:e,radio:i,anchor:r,state:o,content:n}})=>{r.setAttribute("disabled","{disabledState}"),r.setAttribute("role","option"),r.setAttribute("aria-disabled",t(({disabledState:s})=>`${s}`)),r.setAttribute("tabindex","0"),r.setAttribute("aria-selected",t(({selected:s})=>`${s}`)),r.setAttribute("selected","{selected}"),r.setAttribute("aria-labelledby","{anchorAriaLabelledBy}"),r.setAttribute("aria-describedby","{anchorAriaDescribedBy}"),r.setAttribute("aria-label","{_label}"),r.removeAttribute("href"),r.removeAttribute("mdw-if"),e.setAttribute("mdw-if",t(({checkbox:s,icon:l})=>!l&&s)),i.setAttribute("mdw-if",t(({radio:s,icon:l})=>!l&&s)),n.setAttribute("aria-hidden","true"),n.setAttribute("selected","{selected}"),o.setAttribute("state-disabled","focus")}).on({selectedChanged(t,e){this.classList.toggle("mdw-list-option__selected",e),this.dispatchEvent(new Event("mdw-list-option:changed",{bubbles:!0,composed:!0}))}}).css`:host{--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container);cursor:pointer;z-index:0}:host([hidden]){display:none}:host([href]){cursor:pointer}:host([disabled]){cursor:not-allowed;pointer-events:none}#content{-webkit-user-select:none;user-select:none;pointer-events:none}#content[selected]{color:rgb(var(--mdw-ink))}#anchor{z-index:-1}#anchor[selected]{background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}`.extend(t=>class extends t{constructor(e,i,r,o){super(),e!==void 0&&(this.text=e),i!==void 0&&(this._value=i),r!==void 0&&(this.defaultSelected=r),o!==void 0&&(this._selected=o)}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||(this.tabIndex=0)}}).autoRegister("mdw-list-option");function uo({host:t,collection:e,OptionConstructor:i,GroupConstructor:r}){let o=function(a,c){let d,m=-1;typeof c=="number"?c>=0&&c<e.length-1&&(m=c):c instanceof HTMLElement&&(d=c),m!==-1&&(d=e.item(m)),d?d.before(a):t.append(a)},n=function(a){var c;(c=e.item(a))==null||c.remove()};return Object.defineProperty(e,"selectedIndex",{get(){for(let l=0;l<e.length;l++)if(e[l].selected)return l;return-1},set(l){for(let a=0;a<e.length;a++)e[a].selected=a===l}}),new Proxy(e,{get(l,a,c){switch(a){case"add":return o;case"remove":return n;default:return l[a]}},set(l,a,c,d){let m=Number.NaN;switch(typeof a){case"string":m=Number.parseInt(a,10);break;case"number":m=a;break;default:case"symbol":return Reflect.set(l,a,c,d)}if(Number.isNaN(m))return Reflect.set(l,a,c,d);let u=e.length;for(;m>e.length;)o(new i);m===u?c!=null&&o(c):m>=0&&(n(m),c!==null&&o(c,m))}})}var ho=Nt.extend().mixin(N).mixin(pe).mixin(Z).mixin(L).observe({multiple:"boolean",size:{type:"integer",empty:0}}).set({_ariaRole:"listbox",_optionsCollection:null,_selectedOptionsCollection:null,_handlingSelectedness:!1,_handleFormReset:!0}).define({options(){if(!this._optionsCollection){let t=this.getElementsByTagName(me.elementName);this._optionsCollection=uo({host:this,collection:t,OptionConstructor:me,GroupConstructor:me})}return this._optionsCollection},selectedOptions(){return this._selectedOptionsCollection??=this.getElementsByClassName("mdw-list-option__selected")},type(){return this.multiple?"select-multiple":"select-one"},kbdNavQuery(){return me.elementName},kbdNavFocusableWhenDisabled(){return!0}}).define({length(){return this.options.length},selectedIndex:{get(){let[t]=this.selectedOptions;return t?Array.prototype.indexOf.call(this.options,t):-1},set(t){let e=this.options[t];this._handlingSelectedness=!0;for(let i of this.options)i.selected=i===e;this._handlingSelectedness=!1,this._value=this.value}},value:{get(){var t;return((t=this.selectedOptions[0])==null?void 0:t.value)??""},set(t){let e="",i=`${t}`;this._handlingSelectedness=!0;for(let r of this.options)(r.selected=r.value===i)&&(e=i);this._handlingSelectedness=!1,this._value=e}},add(){return this.options.add}}).on({disabledStateChanged(t,e){this._kbdFocusable=!e,this.tabIndex=e?-1:0},multipleChanged(t,e){this.updateAriaProperty("ariaMultiSelectable",e?"true":"false")},_formResetChanged(t,e){e&&this._handleFormReset&&(this.value=this.defaultValue)},connected(){this.hasAttribute("tabindex")||(this.tabIndex=0)}}).methods({*_selectedOptionsGenerator(){for(let t of this.options)t.selected&&(yield t)},*[Symbol.iterator](){for(let t of this.options)yield t},focus(){this.focusCurrentOrFirst()},item(t){return this.options[t]},namedItem(t){for(let e of this.options)if(e.id===t)return e;return null},onListboxClick(t){let e=t.target;if(!(e instanceof me))return;t.stopImmediatePropagation(),t.stopPropagation();let i=e;if(i.disabledState)return;let r=!1;if(this._handlingSelectedness=!0,i.selected)(!this.required||this.multiple&&this.selectedOptions.length>1)&&(r=!0,i.selected=!1);else{if(!this.multiple)for(let o of this.selectedOptions)o.selected=!1;i.selected=!0,r=!0}this._value=this.value,this._handlingSelectedness=!1,this._updateFormAssociatedValue(),r&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}).css`:host(:disabled){cursor:not-allowed;pointer-events:none}:host([internals-disabled]){cursor:not-allowed;pointer-events:none}`.events({"mdw-list-option:changed"(t){if(t.stopPropagation(),this.multiple||this._handlingSelectedness)return;let e=t.target;if(!e.selected){this._handlingSelectedness=!0;for(let i of this.selectedOptions)i!==e&&(i.selected=!1);this._value=this.value,this._handlingSelectedness=!1}},focus(){this.focusCurrentOrFirst()},keydown(t){if(t.key==="Spacebar"||t.key===" "){if(!(t.target instanceof me))return;t.stopPropagation(),t.preventDefault(),this.onListboxClick.call(this,t)}},click:"onListboxClick"}).childEvents({slot:{slotchange(){this.refreshTabIndexes();let t=0;for(let e of this.options)e._index=t++;this._value=this.value}}}).autoRegister("mdw-listbox");var _o=f.extend().mixin(x).mixin(U).mixin(E).mixin(De).mixin(G).mixin(Z).set({flow:"corner",_useScrim:!1,_cascader:null,_submenu:null}).define({kbdNavChildren(){let t=[...this.querySelectorAll("mdw-menu-item")],e=[...this.querySelectorAll(":scope mdw-menu mdw-menu-item")];return t.filter(i=>!e.includes(i))},_dialog(){return this.refs.dialog},cascader:{get(){var t;return(t=this._cascader)==null?void 0:t.deref()},set(t){this._cascader=t?new WeakRef(t):null}},submenu:{get(){var t;return(t=this._submenu)==null?void 0:t.deref()},set(t){this._submenu=t?new WeakRef(t):null}}}).recompose(({refs:{scrim:t}})=>{t.setAttribute("invisible","")}).css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);display:block;inline-size:auto;min-inline-size:calc(var(--mdw-menu__inline-base) * 2);max-inline-size:100vw;filter:var(--mdw-elevation__drop-shadow__2);background-color:rgb(var(--mdw-bg))}#form{display:contents}`.methods({showModal(...t){this._useScrim=!0;let e=this.showPopup(...t);return this._useScrim=!1,e},focus(){let[t]=this.kbdNavChildren;W(t)||this.focusNext(t)},cascade(t){this.cascader=t,this.showPopup(t,!0,"adjacent")}}).events({"mdw-menu-item:cascade"(t){let e=t.target,i=t.detail;t.stopPropagation();let o=this.getRootNode().getElementById(i);this.submenu=o,o.cascade(e)},"mdw-menu-item:cascader-blur"(){let t=this.submenu;t&&queueMicrotask(()=>{t&&t.matches(":focus-within,:focus")||t.close(!1)})},"~click"(t){this===t.target&&(t.stopPropagation(),this.close(!0))},keydown(t){if(this.open)switch(t.key){case"Tab":this.close()||(t.stopPropagation(),t.preventDefault());break;case"ArrowLeft":case"ArrowRight":if(getComputedStyle(this).direction==="rtl"){if(t.key==="ArrowLeft")break}else if(t.key==="ArrowRight")break;case"Escape":case"Esc":t.stopPropagation(),t.preventDefault(),this.close(!0);break;default:}},focusout(){this.open&&(this.modal||queueMicrotask(()=>{if(this.matches(":focus-within"))return;let{cascader:t,submenu:e}=this;t&&t.matches(":is(:focus-within,:focus)")||e&&e.matches(":is(:focus-within,:focus)")||this.close(!1)}))}}).autoRegister("mdw-menu");var fo=me.extend().mixin(pe).set({_cascadeTimeout:null,CASCADE_TIMEOUT:500,_cascading:!1}).define({type(){return this.radio!=null?"radio":this.checkbox!=null?"checkbox":null}}).observe({cascades:"string",_defaultValue:{attr:"value",reflect:!0,nullParser:String,empty:null}}).observe({defaultValue:{reflect:!1,get(){return this._defaultValue??""},set(t){this._defaultValue=t}},value:{reflect:!1,get(){return this._defaultValue??"on"},set(t){this._defaultValue=t}}}).overrides({formIPCEvent(t){if(t.target instanceof HTMLFormElement&&t.target!==this.form||this.type!=="radio")return;let[e,i]=t.detail;this.name===e&&i!==this.value&&(this.selected=!1)}}).expressions({computeTrailingIcon({trailingIcon:t,cascades:e}){return!t&&e?"arrow_right":t}}).methods({unscheduleCascade(){clearTimeout(this._cascadeTimeout),this._cascadeTimeout=null},scheduleCascade(){this._cascadeTimeout||(this._cascadeTimeout=setTimeout(this.cascade.bind(this),this.CASCADE_TIMEOUT))},cascade(){this.unscheduleCascade(),this._cascading=!0,this.dispatchEvent(new CustomEvent("mdw-menu-item:cascade",{detail:this.cascades,bubbles:!0})),this._cascading=!1}}).on({_selectedChanged(t,e){e?(this.elementInternals.setFormValue(this.value),this.type==="radio"&&this._notifyRadioChange(this.name,this.value)):this.elementInternals.setFormValue(null),this._selectedDirty&&this.dispatchEvent(new Event("change",{bubbles:!0}))}}).events({mouseenter(){this.disabledState||(ce(this)||this.focus(),this.cascades&&this.scheduleCascade())},mouseout:"unscheduleCascade","~click"(){if(!this.disabledState){if(this.type==="radio"){if(this.required)return;this.selected=!0}else if(this.type==="checkbox"){if(this.required)return;this.selected=!this.selected;return}this.cascades&&this.cascade()}},keydown(t){if(!this.disabledState)switch(t.key){case"Enter":case" ":t.stopPropagation(),t.preventDefault(),this.click();break;case"ArrowLeft":case"ArrowRight":if(!this.cascades)break;if(getComputedStyle(this).direction==="rtl"){if(t.key==="ArrowRight")break}else if(t.key==="ArrowLeft")break;t.stopPropagation(),t.preventDefault(),this.cascade();break;default:}},blur(){this.cascades&&(this._cascading||this.dispatchEvent(new CustomEvent("mdw-menu-item:cascader-blur",{detail:this.cascades,bubbles:!0})))}}).recompose(({inline:t,html:e,refs:{checkbox:i,radio:r,anchor:o,trailing:n,trailingIcon:s}})=>{i.remove(),r.remove(),o.setAttribute("role",t(({checkbox:l,radio:a})=>l!=null?"menuitemcheckbox":a!=null?"menuitemradio":"menuitem")),o.setAttribute("ariaChecked",o.getAttribute("aria-selected")),o.after(e`
|
|
193
|
+
`)}).on({disabledStateChanged(e,i){let r=this.refs.control;r.setAttribute("aria-disabled",`${i}`),this.focusableOnDisabled||(r.disabled=i,i?this.tabIndex=0:this.removeAttribute("tabindex"))},readOnlyChanged(e,i){let r=this.refs.control;this.type==="checkbox"?r.setAttribute("aria-readonly",i?"true":"false"):r.removeAttribute("aria-readonly")},constructed(){let e=this.refs.control;this._onControlValue(e.value)},connected(){this.hasAttribute("tabindex")||(this.tabIndex=0)},attrs:{autocomplete:F("autocomplete","control"),name:F("name","control"),readonly:F("readonly","control"),required:F("required","control")}}).childEvents({control:{click(e){(this.type==="checkbox"&&this.readOnly||this.focusableOnDisabled&&this.disabledState)&&(e.preventDefault(),e.stopImmediatePropagation())},input({currentTarget:e}){let i=e;this.validity.valid?(i.checkValidity(),this._badInput=i.validity.badInput):this.checkValidity(),this._onControlValue(i.value)},change({currentTarget:e}){let i=e;this._valueDirty=!0,this._onControlValue(i.value),this.checkValidity()}},slot:it<116||Ct?{slotchange({currentTarget:e}){this._slotInnerText=this.textContent,this._slotMutationObserver||(this._slotMutationObserver=new MutationObserver(()=>{this._slotInnerText=this.textContent}),this._slotMutationObserver.observe(e,{characterData:!0}))}}:{}}).rootEvents({change(e){this.dispatchEvent(new e.constructor(e.type,e))}}).css`:host{display:inline-flex}:host(::-moz-focus-inner){border:0}#control{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;margin:0;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;outline:0;transform:translate(-50%) translateY(-50%);z-index:4;background-color:transparent;border-radius:0;color:transparent}#control::-moz-focus-inner{border:0}`}var qn=new Set(["text","search","url","tel","email","password","date","month","week","time","datetime-local","number"]),le={nullParser:String,empty:""},Hr=new WeakSet,Br=new WeakSet;function Q(t){return t.mixin(we).observe({accept:le,alt:le,dirName:{attr:"dirname",...le},_formAction:{attr:"formaction"},formEnctype:{attr:"formenctype",...le},formMethod:{attr:"formmethod",...le},formTarget:{attr:"formtarget",...le},_height:{attr:"height",type:"integer"},_indeterminate:"boolean",max:le,maxLength:{attr:"maxlength",type:"integer",empty:-1},min:le,minLength:{attr:"minlength",type:"integer",empty:-1},multiple:"boolean",pattern:le,placeholder:le,size:{type:"integer",empty:20},src:le,step:le,_width:{attr:"width",type:"integer"}}).set({_useFormImplicitSubmission:!0}).define({_input(){return this.refs.control}}).observe({indeterminate:{type:"boolean",get({_indeterminate:e}){return e},set(e){this._input.indeterminate=e,this._indeterminate=this._input.indeterminate}}}).overrides({controlTagName:"input"}).recompose(({refs:{control:e}})=>{e.setAttribute("checked","{defaultChecked}"),e.setAttribute("height","{_height}"),e.setAttribute("width","{_width}"),e.setAttribute("value","{_defaultValue}")}).on({typeChanged(){this.onValueChangingContentAttribute()},checkedChanged(){this._input.checked=this.checked,this._input.indeterminate=this._indeterminate},_indeterminateChanged(e,i){this._input.indeterminate=i},minChanged(){this.onValueChangingContentAttribute()},minLengthChanged(){this.onValueChangingContentAttribute()},maxChanged(){this.onValueChangingContentAttribute()},maxLengthChanged(){this.onValueChangingContentAttribute()},multipleChanged(){this.onValueChangingContentAttribute()},patternChanged(){this.onValueChangingContentAttribute()},stepChanged(){this.onValueChangingContentAttribute()},defaultValueChanged(){this.onValueChangingContentAttribute()},_formResetChanged(e,i){if(!i)return;this._onSetValue(this.defaultValue);let r=this._input;r.checked=this.defaultChecked,this._checked=r.checked,this._checkedDirty=!1},attrs:{accept:F("accept","control"),alt:F("alt","control"),dirname:F("dirname","control"),formenctype:F("formenctype","control"),formmethod:F("formmethod","control"),formnovalidate:F("formnovalidate","control"),formTarget:F("formTarget","control"),max:F("max","control"),maxlength:F("maxlength","control"),min:F("min","control"),minlength:F("minlength","control"),multiple:F("multiple","control"),pattern:F("pattern","control"),placeholder:F("placeholder","control"),size:F("size","control"),src:F("src","control"),step:F("step","control")}}).overrides({_onSetChecked(e){this._input.checked=e,this._checked=this._input.checked,this.indeterminate=!1},_onSetValue(e){this._input.value=e,this._value=this._input.value}}).methods({performImplicitSubmission(e){if(!this._useFormImplicitSubmission)return;let i=this.form;if(!i)return;let r,o=new Set;for(let n of i.elements){if(n.type==="submit"&&!n.disabled&&!n.matches(":disabled")){r??=n;break}qn.has(n.type)&&o.add(n)}if(r){r.dispatchEvent(new PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0}));return}o.size>1||this.form.submit()},_redispatchControlClickEvent(e){e.stopPropagation();let i=new e.constructor(e.type,e);return Hr.add(i),this.dispatchEvent(i)},_handleInputClick(e){var r;if(this.disabledState)return;let i=this._input;switch(i.type){case"checkbox":case"radio":{let{_checkedDirty:o,_checked:n,_indeterminate:s}=this;if(this.checked=i.checked,this._redispatchControlClickEvent(e))return;e.preventDefault(),this._checkedDirty=o,this._checked=n,this._indeterminate=s;break}case"button":case"submit":case"reset":{if(!this._redispatchControlClickEvent(e)){e.preventDefault();return}let{type:o}=i;if(o!=="submit"&&o!=="reset")return;for(let s of e.composedPath()){if(s===i||s===this)break;if((s instanceof HTMLInputElement||s instanceof HTMLButtonElement)&&(s.type==="submit"||s.type==="reset")||s instanceof HTMLElement&&s.form instanceof HTMLFormElement&&(s.type==="submit"||s.type==="reset")||s instanceof HTMLAnchorElement&&s.href)return}let n=(r=this.elementInternals)==null?void 0:r.form;if(!n)return;if(o==="submit"){let s=i.cloneNode();s.hidden=!0,n.append(s),"requestSubmit"in n?n.requestSubmit(s):s.click(),s.remove()}else o==="reset"&&n.reset()}break;default:}}}).rootEvents({click(e){Br.add(e);let{control:i}=this.refs;if(e.target===i||!e.bubbles)return;let{disabledState:r,type:o}=this;r||(o==="checkbox"||o==="radio"?(e.stopPropagation(),i.click()):this._handleInputClick(e))}}).events({click(e){Br.has(e)||Hr.has(e)||e.target===this&&(e.stopImmediatePropagation(),this.refs.control.click())}}).childEvents({control:{keydown(e){e.defaultPrevented||e.key==="Enter"&&e.currentTarget.type!=="submit"&&this.performImplicitSubmission(e)},click:"_handleInputClick",input(e){if(this.disabledState){e.preventDefault(),e.stopImmediatePropagation();return}let i=e.currentTarget;this.checked=i.checked},change(e){if(this.disabledState){e.preventDefault(),e.stopImmediatePropagation();return}let i=e.currentTarget;this.checked=i.checked}}}).methods({setRangeText(...e){this._input.setRangeText(...e)},setSelectionRange(...e){this._input.setSelectionRange(...e)},showPicker(...e){this._input.showPicker(...e)},stepDown(...e){this._input.stepDown(...e),this._value=this._input.value},stepUp(...e){this._input.stepUp(...e),this._value=this._input.value},select(...e){this._input.select(...e)}}).define({files:{get(){return this._input.files},set(e){e==null&&this.type==="file"?(this._input.value="",this.value=""):this._input.files=e}},selectionDirection:{get(){return this._input.selectionDirection},set(e){this._input.selectionDirection=e}},selectionEnd:{get(){return this._input.selectionEnd},set(e){this._input.selectionEnd=e}},selectionStart:{get(){return this._input.selectionStart},set(e){this._input.selectionStart=e}},valueAsDate:{get(){return this._input.valueAsDate},set(e){this._input.valueAsDate=e,this.value=this._input.value}},valueAsNumber:{get(){return this._input.valueAsNumber},set(e){this._input.valueAsNumber=e,this.value=this._input.value}},height:{get(){return this._input.height},set(e){this._input.height=e,this._height=e}},formAction:{get(){return this._input.formAction},set(e){this._input.formAction=e,this._formAction=e}},width:{get(){return this._input.width},set(e){this._input.width=e,this._width=e}}}).css`#control::-webkit-file-upload-button{display:none}`}var jr=f.extend().set({hadRippleHeld:!1,hadRippleReleased:!1,rippleStarted:!1}).observe({rippleState:"string",keepAlive:"boolean",_positionX:"float",_positionY:"float",_radius:"float",holdRipple:{type:"boolean",changedCallback(t,e){e?this.hadRippleHeld=!0:this.hadRippleReleased=!0}}}).observe({_positionStyle:{...ie,get({_positionX:t,_positionY:e,_radius:i}){return i==null?null:{styles:{minHeight:`${i}px`,minWidth:`${i}px`,boxShadow:`0 0 calc(0.10 * ${i}px) calc(0.10 * ${i}px) currentColor`,top:`calc(50% + ${e}px)`,left:`calc(50% + ${t}px)`}}}}}).methods({updatePosition(t,e,i){let r=i,{offsetParent:o}=this;if(!o)return;let{clientWidth:n,clientHeight:s}=o;if(t??=n/2,e??=s/2,!r){let l=t>=n/2?t:n-t,a=e>=s/2?e:s-e;r=2*Math.hypot(l,a)}this._positionX=t-n/2,this._positionY=e-s/2,this._radius=r},handleRippleComplete(){this.keepAlive?this.setAttribute("ripple-state","complete"):this.remove()}}).events({animationstart({animationName:t}){if(t==="ripple-fade-in"){if(this.rippleStarted&&!this.keepAlive){this.remove();return}this.rippleStarted=!0}},animationend({animationName:t}){switch(t){case"ripple-fade-in":this.rippleState="filled";break;case"ripple-fade-out":this.handleRippleComplete();break;default:}}}).css`:host{--enter-delay:80ms;--touch-down-acceleration:1024;--touch-up-acceleration:3400;--mdw-ripple-expand-duration:.3s;--mdw-ripple-simple-duration:.2s;--mdw-ripple-fade-out-duration:333ms;--mdw-ripple-standard-easing:var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-ripple-deceleration-easing:var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--size:0;position:absolute;top:50%;left:50%;display:block;min-block-size:141.42%;min-inline-size:141.42%;pointer-events:none;-webkit-tap-highlight-color:transparent;opacity:.12;transform:translate(-50%) translateY(-50%) scale(1);background-color:currentColor;border-radius:50%;box-shadow:0 0 calc(.1 * var(--size)) calc(.1 * var(--size)) currentColor;transition-delay:0s;transition-duration:var(--mdw-ripple-simple-duration);transition-property:background-color,color;transition-timing-function:var(--mdw-ripple-standard-easing);animation-name:ripple-fade-in,none;animation-duration:var(--mdw-ripple-expand-duration),var(--mdw-ripple-fade-out-duration);animation-timing-function:linear,var(--mdw-ripple-deceleration-easing);animation-direction:normal;animation-fill-mode:forwards;will-change:transform,opacity,top,left,box-shadow;aspect-ratio:1/1}:host([ripple-state=filled]){animation-name:none,ripple-fade-out}:host([ripple-state=filled][hold-ripple]){animation-name:ripple-fade-in,none}:host([ripple-state=complete]){animation-name:none,ripple-fade-out;animation-duration:0s}@keyframes ripple-fade-in{0%{transform:translate(-50%) translateY(-50%) scale(0)}}@keyframes ripple-fade-out{to{opacity:0}}`.autoRegister("mdw-ripple");function J(t){return t.set({_lastRippleWeakRef:null,_rippleAdded:!1}).define({_lastRipple:{get(){var i;let e=(i=this._lastRippleWeakRef)==null?void 0:i.deref();return e!=null&&e.isConnected?e:null},set(e){this._lastRippleWeakRef=e?new WeakRef(e):null}}}).methods({addRipple(e,i,r){let{rippleContainer:o}=this.refs;if(!o.isConnected)return null;let n=new jr;return this._rippleAdded=!0,queueMicrotask(()=>{this._rippleAdded=!1}),o.append(n),r&&(n.holdRipple=!0),n.updatePosition(e,i),this._lastRipple=n,n}}).html`<div id=ripple-container mdw-if={!disabledState} aria-hidden=true></div>`.events({"~pointerdown"(e){if(e.button||this.disabledState)return;let{rippleContainer:i}=this.refs;if(!i.isConnected)return;let r=i.getBoundingClientRect(),o=e.pageX-r.left-window.pageXOffset,n=e.pageY-r.top-window.pageYOffset,s=this._lastRipple;s&&(s.holdRipple=!1),this.addRipple(o,n,!0)},"~click"(e){if(this._rippleAdded||e.pointerType||e.detail||this.disabledState||this.pressedState||this._keyReleased)return;let i=this._lastRipple;i&&(i.holdRipple=!1),this.addRipple()}}).on({pressedStateChanged(e,i){let r=this._lastRipple;if(!i){r&&(r.holdRipple=!1);return}if(!r||r.hadRippleReleased){if(this._lastInteraction!=="key")return;this.addRipple(null,null,!0);return}r.hadRippleHeld||(r.holdRipple=!0)}}).css`:host{--mdw-state__pressed-opacity:0}#ripple-container{position:absolute;inset:0;overflow:hidden;pointer-events:none;border-radius:inherit}`}var fe=f.extend().mixin(x).mixin(K).mixin(N).mixin(X).mixin(E).mixin(J).mixin(Q).mixin(re).define({stateTargetElement(){return this.refs.control}}).set({stateLayer:!0,_allowedTypes:["button","submit","reset","file"]}).observe({type:{empty:"button",set(t,e){let i=(t==null?void 0:t.toLowerCase())??"button";e(this._allowedTypes.includes(i)?i:"button")}},elevated:"boolean",filled:"string",outlined:"boolean",icon:"string",iconInk:"string",src:"string",svg:"string",viewBox:"string",svgPath:"string"}).expressions({hasIcon({icon:t,svg:e,src:i,svgPath:r}=this){return t??e??i??r},iconVariation({outlined:t}=this){return t?null:"filled"}}).methods({focus(...t){this.href?this.refs.anchor.focus(...t):this.refs.control.focus(...t)}}).html`<mdw-icon mdw-if={hasIcon} id=icon ink={iconInk} disabled={disabledState} outlined={outlined} variation={iconVariation} aria-hidden=true svg={svg} src={src} svg-path={svgPath} view-box={viewBox} icon={icon}></mdw-icon><slot id=slot disabled={disabledState} aria-hidden=true>{_defaultValue}</slot>`.recompose(({refs:{anchor:t,control:e}})=>{e.setAttribute("mdw-if","{!href}"),e.setAttribute("role","button"),t.setAttribute("mdw-if","{href}"),t.setAttribute("aria-label","{_computedAriaLabel}"),t.setAttribute("aria-labelledby","{_computedAriaLabelledby}")}).css`:host{--mdw-shape__size:var(--mdw-shape__full);--mdw-ink:var(--mdw-color__primary);--mdw-type__font:var(--mdw-typescale__label-large__font);--mdw-type__letter-spacing:var(--mdw-typescale__label-large__letter-spacing);display:inline-flex;align-items:center;gap:0;justify-content:center;vertical-align:middle;min-block-size:24px;min-inline-size:24px;padding-block:calc(8px + (var(--mdw-density) * 2px));padding-inline:calc(12px + (var(--mdw-density) * 2px));-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host(:where([elevated],[filled])){transition:box-shadow .2s;will-change:box-shadow}:host(:where([elevated])){--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__primary);box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where([filled])){--mdw-bg:var(--mdw-color__primary);--mdw-ink:var(--mdw-color__on-primary);box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([elevated]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__2)}:host(:where([filled]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where([elevated]:disabled)){box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([filled]:disabled)){box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([filled=tonal])){--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container)}:host(:where([outlined])){--mdw-ink:var(--mdw-color__primary)}:host(:where([icon])){gap:8px;padding-inline:calc(12px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}:host(:where([outlined],[elevated],[filled])){padding-inline:calc(24px + (var(--mdw-density) * 2px))}:host(:where([icon]):where([outlined],[elevated],[filled])){gap:8px;padding-inline:calc(16px + (var(--mdw-density) * 2px)) calc(24px + (var(--mdw-density) * 2px))}:host(:where([elevated],[filled],[color])){background-color:rgb(var(--mdw-bg))}#slot{text-align:center;text-decoration:none;white-space:nowrap}#control{cursor:pointer}#anchor{position:absolute;inset:0;cursor:pointer;outline:0}:host([disabled]){color:rgba(var(--mdw-color__on-surface),.38)}:host([disabled]:is([elevated],[filled])){background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}#slot[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#icon{font-size:calc(18/14 * 1em)}#icon[disabled]{opacity:.38;color:rgba(var(--mdw-color__on-surface))}#control[form-disabled]{cursor:not-allowed}@media(any-pointer:coarse){#touch-target{visibility:inherit}}`.autoRegister("mdw-button");var Yr="inert"in HTMLElement.prototype,Wr=j.extend().mixin(N).mixin(X).mixin(E).mixin(me).mixin(B).mixin(L).mixin(re).set({_ariaRole:"figure"}).observe({elevated:"boolean",filled:"boolean",actionable:"boolean",actionLabel:"string",onaction:te}).define({stateTargetElement(){return this.actionable?this.refs.action:this}}).expressions({showBlocker:({disabledState:t,disabled:e})=>t&&(!e||!Yr),showButton:({actionable:t,href:e})=>!!(t||e)}).methods({focus(){this.disabledState||this.actionable&&this.refs.action.focus()}}).html`<mdw-button mdw-if={showButton} aria-label={actionLabel} href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy} id=action disabled={disabledState}></mdw-button><div mdw-if={showBlocker} id=inert-blocker></div>`.recompose(({refs:{anchor:t,inertBlocker:e,slot:i}})=>{t.remove(),i.setAttribute("disabled","{disabledState}"),e.before(i)}).css`:host{--mdw-shape__size:var(--mdw-shape__medium);--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:relative;font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition:filter .2s;will-change:filter}:host(:where([elevated],[filled],[outlined])){background-color:rgb(var(--mdw-bg))}:host(:where([elevated])){--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface);filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([filled])){--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__on-surface-variant)}:host(:where([filled][actionable])){filter:var(--mdw-elevation__drop-shadow__0)}:host(:where([elevated][actionable]:hover:not(:active))){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([filled][actionable]:hover:not(:active))){filter:var(--mdw-elevation__drop-shadow__1)}:host([disabled]){cursor:not-allowed;filter:grayscale();opacity:.38;color:rgb(var(--mdw-color__on-surface))}#slot[disabled]{color:rgb(var(--mdw-color__on-surface))}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#inert-blocker{position:absolute;inset:0;cursor:not-allowed;pointer-events:auto;z-index:99}:host([disabled][elevated]){background-color:rgba(var(--mdw-color__surface-container-highest))}:host([disabled][filled]){background-color:rgba(var(--mdw-color__surface))}#action{--mdw-ink:inherit;--mdw-shape__size:inherit;position:absolute;inset:0;padding:0;z-index:0;color:inherit}`.recompose(({refs:{slot:t,outline:e}})=>{e.removeAttribute("pressed"),e.removeAttribute("focused"),t.setAttribute("inert","{disabledState}"),t.setAttribute("disabled","{disabledState}")}).childEvents({action:{click(){this.disabledState||this.dispatchEvent(new Event("action"))}},slot:Yr?{}:{focusin(){this.disabledState}}}).autoRegister("mdw-card");var Ur=f.extend().mixin(x).mixin(E).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);--mdw-shape__size:2px;--disabled-opacity:.38;position:relative;display:inline-block;align-items:center;justify-content:center;box-sizing:border-box;block-size:18px;inline-size:18px;font-size:18px;line-height:18px}#icon{position:absolute;inset:0;opacity:0;background-color:rgb(var(--mdw-bg));border-radius:inherit;color:rgb(var(--mdw-ink));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#outline{border-width:2px;color:rgb(var(--mdw-color__on-surface));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#icon[selected]{opacity:1}#outline[selected]{opacity:0}#icon[errored]{background-color:rgb(var(--mdw-color__error));color:rgb(var(--mdw-color__on-error))}#outline[errored]{color:rgb(var(--mdw-color__error))}#icon[disabled]{background-color:rgba(var(--mdw-color__on-surface),var(--disabled-opacity));color:rgb(var(--mdw-color__surface),var(--disabled-opacity))}#outline[disabled]{color:rgb(var(--mdw-color__on-surface),var(--disabled-opacity))}`.html`<mdw-icon id=icon selected={selected} errored={errored} disabled={disabled} icon={icon}></mdw-icon>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{selected}"),t.setAttribute("errored","{errored}"),t.setAttribute("disabled","{disabled}")}).autoRegister("mdw-checkbox-icon");function xe(t){return t.html`<div id=touch-target class=touch-target></div>`.css`.touch-target{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;cursor:inherit;pointer-events:auto;transform:translate(-50%) translateY(-50%);visibility:inherit;z-index:1;border-radius:inherit}`}var Xr=f.extend().mixin(x).mixin(N).mixin(J).mixin(Q).mixin(xe).set({stateLayer:!0,type:"checkbox"}).observe({icon:{value:"check"},indeterminateIcon:{value:"check_indeterminate_small"}}).expressions({_determinateIcon({indeterminate:t,indeterminateIcon:e,icon:i}){return t?e:i},_iconSelectedState({checked:t,indeterminate:e}){return t||e}}).html`<div id=checkbox errored={erroredState} selected={checked}><mdw-checkbox-icon id=icon errored={erroredState} disabled={disabledState} icon={_determinateIcon} selected={_iconSelectedState}></mdw-checkbox-icon></div><slot id=slot></slot>`.recompose(({refs:{checkbox:t,state:e,rippleContainer:i}})=>{t.append(e,i)}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);display:inline-grid;align-items:baseline;gap:12px;grid-auto-flow:column;justify-content:flex-start;cursor:pointer;transition:none .1s cubic-bezier(.4,0,1,1)}:host(:disabled){cursor:not-allowed;opacity:.38}:host([internals-disabled]){cursor:not-allowed;opacity:.38}:host(:empty){vertical-align:-11.5%;line-height:18px}#control{grid-column:1/1;cursor:inherit}#ripple-container,#state{top:50%;left:50%;block-size:40px;inline-size:40px;transform:translate(-50%) translateY(-50%);border-radius:50%}#checkbox{position:relative;display:inline-flex;grid-column:1/1;pointer-events:none;transform:translateY(11.5%);color:rgb(var(--mdw-color__on-surface))}#checkbox[selected]{color:rgb(var(--mdw-bg))}#checkbox[disabled]{color:rgb(var(--mdw-color__on-surface))}#checkbox[errored]{color:rgb(var(--mdw-color__error))}:host(:empty) #checkbox{transform:none}#icon{--mdw-ink:inherit;--mdw-bg:inherit;--disabled-opacity:1}`.autoRegister("mdw-checkbox");var Rt=fe.extend().observe({suggestion:"boolean"}).expressions({iconVariation({elevated:t}){return t?"filled":null}}).css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-surface);padding-block:calc(4px + (var(--mdw-density) * 2px));padding-inline:calc(16px + (var(--mdw-density) * 2px));color:rgb(var(--mdw-ink))}:host(:where([suggestion])){--mdw-ink:var(--mdw-color__on-surface-variant)}:host(:where([icon])){gap:8px;padding-inline:calc(8px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}#outline{--mdw-ink:rgb(var(--mdw-color__on-surface-variant))}#outline:is([ink],[color]){--mdw-ink:inherit}#icon[disabled],#slot[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}`.recompose(({inline:t,refs:{slot:e,outline:i,icon:r}})=>{e.setAttribute("disabled","{disabledState}"),e.removeAttribute("ink"),e.removeAttribute("color"),i.setAttribute("mdw-if","{!elevated}"),i.setAttribute("ink","{ink}"),i.setAttribute("color","{color}"),r.setAttribute("ink",t(({ink:o,iconInk:n})=>n??o??"primary"))}).autoRegister("mdw-chip");var qr=f.extend().mixin(x).observe({vertical:"boolean"}).css`:host{--mdw-ink:var(--mdw-color__outline-variant);position:relative;display:block;overflow:visible;box-sizing:border-box;block-size:0;inline-size:100%;color:rgb(var(--mdw-ink))}:host:before{content:"";display:block;box-sizing:border-box;block-size:1px;inline-size:auto;background-color:currentcolor}:host([vertical]){display:inline-flex;vertical-align:top;block-size:auto;min-block-size:100%;inline-size:0}:host([vertical]):before{block-size:auto;min-inline-size:1px}`.autoRegister("mdw-divider");var wc=f.extend().css`:host{align-self:flex-end;margin-block:24px;padding-inline:24px}`.html`<slot id=slot></slot>`.autoRegister("mdw-dialog-actions");function Pt(t){let{pageX:e,pageY:i,directionX:r,directionY:o}=t,n=document.documentElement.clientWidth,s=document.documentElement.clientHeight;if(e==null||i==null){let{clientX:$,clientY:oe,anchor:O}=t,A;if(O?A=O instanceof Element?O.getBoundingClientRect():O:A={left:0,width:n,right:n,top:0,bottom:s,height:s},e==null)switch($){case"left":case null:case void 0:e=A.left,r??="right";break;case"center":e=A.left+A.width/2,r??="center";break;case"right":e=A.right,r??="left";break;default:e=A.left+$}if(i==null)switch(oe){case"top":i=A.top,o??="up";break;case"center":i=A.top+A.height/2,o??="center";break;case"bottom":case null:case void 0:i=A.bottom,o??="down";break;default:i=A.top+oe}}let{width:l,height:a}=t;if(l==null||a==null){let{popup:$}=t;$ instanceof Element?(l=$.clientWidth,a=$.clientHeight):(l=$.width,a=$.height)}let c,d,p,h,g=t.margin??0,_=g,m=-g,u=g,b=-g;window.visualViewport?(_+=window.visualViewport.offsetTop,m+=window.visualViewport.offsetTop+window.visualViewport.height,u+=window.visualViewport.offsetLeft,b+=window.visualViewport.offsetLeft+window.visualViewport.width):(m+=s,b+=n);let w=t.offsetX??0,y=t.offsetY??0;e+=w,i+=y;let S="auto",C="auto",T="auto",M="auto",z=null,v=null;switch(o){case"up":p=Math.min(i,m),c=Math.max(p-a,_),T=`${s-p}px`,c===_&&(z=`${p-_}px`);break;case"center":c=Math.max(i-a/2,_),p=Math.min(i+a/2,m),S=`${c}px`,p===m&&(z=`${m-_}px`);break;default:c=Math.max(i,_),p=Math.min(c+a,m),S=`${c}px`,p===m&&(z=`${m-c}px`)}switch(r){case"left":d=Math.min(e,b),h=Math.max(d-l,u),C=`${n-d}px`,h===u&&(v=`${d-u}px`);break;case"center":h=Math.max(e-l/2,u),d=Math.min(e+l/2,b),M=`${h}px`,d===b&&(v=`${b-u}px`);break;default:h=Math.max(e,u),d=Math.min(h+l,b),M=`${h}px`,d===b&&(v=`${b-h}px`)}let k=l*a,P=(p-c)*(d-h)/k;return{...t,top:c,right:d,bottom:p,left:h,visibility:P,styles:{top:S,bottom:T,left:M,right:C,maxWidth:v,maxHeight:z,transformOrigin:`${o==="center"?"center":o==="up"?"bottom":"top"} ${r==="center"?"center":r==="left"?"right":"left"}`}}}var Yi=typeof HTMLDialogElement<"u",Ae=[];function st(){for(let{element:t}of Ae)t.updatePopupPosition()}function Gr(t){t.button===3&&t.preventDefault()}function Ot(t){if(!t.state)return;let e=Ae.at(-1);if(!(!e||!e.previousState)&&(e.previousState===t.state||Object.keys(t.state).every(i=>t.state[i]===e.previousState[i]))){let i=new Event("cancel",{cancelable:!0});e.element.dispatchEvent(i)?e.element.close():window.history.pushState(e.state,e.state.title)}}function Kr(t){Ae.length}function De(t){return t.mixin(L).mixin(W).observe({open:"boolean",modal:"boolean",native:"boolean",scrollable:"boolean",matchSourceWidth:"boolean",_currentFlow:"string",flow:{type:"string",value:null},popupMargin:"float"}).set({useHistory:!0,returnValue:"",_closing:!1,_useScrim:!1,_source:null,_anchor:null}).define({_dialog(){return this.refs.dialog}}).expressions({_ariaHidden({open:e}){return e?"false":"true"}}).methods({updatePopupPosition(e=this._anchor){let i=this._currentFlow??this.flow;Object.assign(this.style,{top:"0",left:"0",right:"auto",bottom:"auto",maxWidth:null,maxHeight:null});let r=this.native?this._dialog:this;Object.assign(r.style,{width:"auto",height:"auto"});let o=e&&this.matchSourceWidth?e.clientWidth:56*Math.ceil(r.clientWidth/56);r.style.setProperty("width",`${o}px`);let n=r.clientHeight;Object.assign(r.style,{height:null});let s={anchor:e,width:o,height:n,margin:this.popupMargin??(window.innerWidth<648?16:24)},l=_e(this),a=l?"right":"left",c=l?"left":"right",d=[(i??"corner")==="corner"?[{clientY:"bottom",clientX:a},{clientY:"bottom",clientX:c},{clientY:"top",clientX:a},{clientY:"top",clientX:c}]:[],(i??"adjacent")==="adjacent"?[{clientY:"top",clientX:c,directionX:c,directionY:"down"},{clientY:"top",clientX:a,directionX:a,directionY:"down"},{clientY:"bottom",clientX:c,directionX:c,directionY:"up"},{clientY:"bottom",clientX:a,directionX:a,directionY:"up"}]:[],(i??"overlay")==="overlay"?[{clientY:"top",clientX:a,directionX:c,directionY:"down"},{clientY:"top",clientX:c,directionX:a,directionY:"down"},{clientY:"bottom",clientX:a,directionX:c,directionY:"up"},{clientY:"bottom",clientX:c,directionX:a,directionY:"up"}]:[],(i??"vcenter")==="vcenter"?[{clientY:"center",clientX:c,directionX:c,directionY:"center"},{clientY:"center",clientX:a,directionX:a,directionY:"center"}]:[],(i??"hcenter")==="hcenter"?[{clientY:"bottom",clientX:"center",directionX:"center",directionY:"down"},{clientY:"top",clientX:"center",directionX:"center",directionY:"up"}]:[],(i??"center")==="center"?[{clientY:"center",clientX:"center",directionX:"center",directionY:"center"}]:[]].flat(),p;for(let _ of d){let m=Pt({...s,..._});if((!p||p.visibility<m.visibility)&&(p=m),m.visibility===1)break}let{maxWidth:h,maxHeight:g}=p.styles;if(h||g){let _=window.getComputedStyle(this);_.maxWidth&&(h=`min(${h}, ${_.maxWidth})`),_.maxHeight&&(g=`min(${g}, ${_.maxHeight})`)}Object.assign(this.style,{...p.styles,maxWidth:h,maxHeight:g})},onSlotChange({currentTarget:e}){let r=e.assignedNodes().some(o=>o.nodeType===o.ELEMENT_NODE||o.nodeType===o.TEXT_NODE&&o.nodeValue.trim().length);e.toggleAttribute("slotted",r)},showPopup(e,i=!0,r=null){if(this.open)return!1;this.open=!0,this._source=e,this._anchor=e;let{scrim:o}=this.refs;this._useScrim?(this.native?document.body.append(o):this.before(o),o.hidden=!1):o.remove();let n=e instanceof HTMLElement?e:document.activeElement;Yi&&i&&!this._dialog.open&&this._dialog.show(),this._currentFlow=r,this.updatePopupPosition(e);let s,l,a;return this.useHistory&&(s={hash:Math.random().toString(36).slice(2,18)},window.history.state||window.history.replaceState({hash:Math.random().toString(36).slice(2,18)},document.title),a=window.history.state,l=window.history.scrollRestoration,window.history.scrollRestoration="manual",window.history.pushState(s,document.title),window.addEventListener("popstate",Ot),window.addEventListener("beforeunload",Kr)),window.addEventListener("mousedown",Gr,{capture:!0}),window.addEventListener("resize",st),window.addEventListener("scroll",st),window.visualViewport&&(window.visualViewport.addEventListener("resize",st),window.visualViewport.addEventListener("scroll",st)),Ae.push({element:this,previousFocus:n,state:s,previousState:a,scrollRestoration:l}),i&&this.focus(),!0},showModal(e,i,r){return this.open?!1:(this.modal=!0,Yi&&(this._dialog.showModal(),this.native=!0),this.showPopup(e,i,r))},show(e,i,r){return navigator.userAgent.includes("Mac OS X")?this.showModal(e,i,r):this.showPopup(e,i,r)},close(e=void 0,i=!0){var o,n,s;if(!this.open||this._closing)return!1;if(this._source=null,this._closing=!0,this.modal=!1,this.refs.scrim.hidden=!0,this.native)this.native=!1;else{let l=document.querySelector("main");l&&l.removeAttribute("aria-hidden")}if(Yi&&this._dialog.open){let l=document.activeElement;if(this._dialog.close(),!U(l,{preventScroll:!0})){let a=document.activeElement;(o=a==null?void 0:a.blur)==null||o.call(a)}}else this._dialog.returnValue=e;this.open=!1,this._currentFlow=null,this.dispatchEvent(new Event("close"));let r=Ae.length;for(let l=r-1;l>=0;l--){let a=Ae[l];if(a.element===this){this.useHistory&&a.state&&window.history&&window.history.state&&a.state.hash===window.history.state.hash&&(window.removeEventListener("popstate",Ot),window.history.back(),window.history.replaceState(a.previousState,document.title),window.history.scrollRestoration=a.scrollRestoration||"auto",window.addEventListener("popstate",Ot)),i&&((s=(n=a.previousFocus)==null?void 0:n.focus)==null||s.call(n,{preventScroll:!0})),Ae.splice(l,1);break}else this.contains(a.element)&&a.element.close(!1)}return Ae.length||(window.removeEventListener("popstate",Ot),window.removeEventListener("beforeunload",Kr),window.removeEventListener("resize",st),window.removeEventListener("mousedown",Gr,{capture:!0})),this._closing=!1,!0}}).overrides({onResizeObserved(e){!this.open||this._closing||this.updatePopupPosition()}}).html`<mdw-scrim id=scrim tabindex=-1 aria-hidden=true></mdw-scrim><dialog id=dialog aria-modal=true role=dialog aria-hidden={_ariaHidden} scrollable={scrollable}><slot id=slot on-slotchange={onSlotChange}></slot></dialog>`.css`:host([popover]){margin:0;border:0;padding:0}:host(::backdrop){display:none}:host{--mdw-popup__expand-duration:var(--mdw-motion-expand-duration, .25s);--mdw-popup__simple-duration:var(--mdw-motion-simple-duration, .1s);--mdw-popup__standard-easing:var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-popup__deceleration-easing:var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--mdw-popup__fade-in-duration:var(--mdw-motion-fade-in-duration, .15s);--mdw-shape__size:28px;--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:fixed;inset-block-start:0;inset-inline-start:0;align-self:center;justify-self:center;display:block;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;block-size:auto;min-block-size:none;max-block-size:100vh;inline-size:auto;min-inline-size:none;max-inline-size:100vw;outline:0;pointer-events:none;opacity:0;transform:scale(0);visibility:hidden;z-index:24;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition-delay:.2s,0s;transition-duration:0s,.2s,.2s;transition-property:visibility,opacity,transform;transition-timing-function:ease-out;will-change:visibility,opacity,transform}:host([open]){pointer-events:inherit;opacity:1;transform:none;visibility:inherit;transition-delay:0s;transition-timing-function:ease-in}:host([native][open]){opacity:0}#dialog{position:static;inset-block-start:0;inset-inline-start:0;display:contents;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;box-sizing:border-box;block-size:inherit;flex:inherit;margin:0;border:none;padding:inherit;padding:0;pointer-events:inherit;filter:inherit;opacity:1;transform:inherit;visibility:inherit;z-index:24;background-color:transparent;color:inherit}:host([color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([scrollable]){overflow-y:auto}#dialog::backdrop{background-color:transparent}#dialog:modal{position:inherit;inset:inherit;display:inherit;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;block-size:auto;min-block-size:inherit;max-block-size:inherit;inline-size:auto;min-inline-size:inherit;max-inline-size:inherit;flex:inherit;padding:inherit;pointer-events:inherit;filter:inherit;transform:inherit;visibility:inherit;background-color:inherit;border-radius:inherit}#dialog[scrollable][open]{display:inherit;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;block-size:100%;max-block-size:none;inline-size:100%;max-inline-size:none;flex:1}#dialog[scrollable][open]:modal{overflow:auto;block-size:100%;min-block-size:none;max-block-size:inherit;inline-size:100%;min-inline-size:none;max-inline-size:inherit;flex:inherit;padding:inherit}`.childEvents({dialog:{cancel(e){e.stopPropagation();let i=new Event("cancel",{cancelable:!0});this.dispatchEvent(i)||e.preventDefault()},close(e){e.stopPropagation(),this.close(this.returnValue)},"~click"(e){if(e.target!==e.currentTarget||!this.native||e.offsetX>=0&&e.offsetX<e.currentTarget.offsetWidth&&e.offsetY>=0&&e.offsetY<e.currentTarget.offsetHeight)return;let i=new Event("cancel",{cancelable:!0});this.dispatchEvent(i)&&this.close()}},scrim:{"~click"(){let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}}})}function Qr(t){let e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=[],r;for(;r=e.nextNode();){if(r.tagName==="SLOT")for(let o of r.assignedElements())o.tabIndex>=0&&!o.matches(":disabled")&&i.push(o),i.push(...Qr(o));r.tabIndex>=0&&!r.matches(":disabled")&&i.push(r)}return i}function Jr(t,e,i=!0){let r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),o=[],n;for(;n=r.nextNode();){if(e&&n.hasAttribute("autofocus")){if(U(n))return!0;continue}if(n.tagName==="SLOT")for(let s of n.assignedElements({flatten:!0})){if(e&&s.hasAttribute("autofocus")){if(U(s))return!0;continue}if(s.tabIndex>=0){if(e||!i)o.push(n);else if(U(n))return!0}if(Jr(s,e,i))return!0}if(n.tabIndex>=0){if(e||!i)o.push(n);else if(U(n))return!0}}for(let s of i?o:o.reverse())if(U(s))return!0;return!1}var Zr=f.extend().mixin(x).mixin(E).mixin(De).define({returnValue(){return this.refs.dialog.returnValue}}).observe({dividers:{value:null},headline:"string",icon:"string",default:{value:"confirm"},cancel:{value:"Cancel"},confirm:{value:"Confirm"}}).define({_anchor:{get(){return null},set(){}}}).set({flow:"center",_useScrim:!0}).methods({onSlotChange({currentTarget:t}){let i=t.assignedNodes().some(r=>r.nodeType===r.ELEMENT_NODE||r.nodeType===r.TEXT_NODE&&r.nodeValue.trim().length);t.toggleAttribute("slotted",i)},focus(){Jr(this.shadowRoot,!0,!0)}}).expressions({cancelAutoFocus({default:t}){return t==="cancel"},confirmAutoFocus({default:t}){return t==="confirm"}}).html`<div id=dialog-inner><mdw-icon mdw-if={icon} id=icon class=content ink=secondary aria-hidden=true icon={icon}></mdw-icon><slot id=headline name=headline on-slotchange={onSlotChange} role=header>{headline}</slot><slot id=fixed name=fixed class=content on-slotchange={onSlotChange}></slot><mdw-divider id=divider-top size={dividers}></mdw-divider><slot id=content name=content></slot><mdw-divider id=divider-bottom size={dividers}></mdw-divider><slot id=actions name=actions><form method=dialog role=none><mdw-button id=cancel type=submit value=cancel autofocus={cancelAutoFocus} formnovalidate>{cancel}</mdw-button><mdw-button id=confirm type=submit value=confirm autofocus={confirmAutoFocus}>{confirm}</mdw-button></form></slot></div>`.recompose(({refs:{dialog:t,dialogInner:e,content:i,slot:r}})=>{t.setAttribute("aria-labelledby","headline"),t.setAttribute("aria-describedby","slot"),r.classList.add("content"),i.append(r),t.prepend(...e.childNodes),e.remove()}).css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-ink:var(--mdw-color__on-surface);position:fixed;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;overflow:visible;-webkit-overflow-scrolling:touch;overscroll-behavior:none;overscroll-behavior:contain;max-block-size:calc(100% - 40px);inline-size:max-content;min-inline-size:280px;max-inline-size:min(560px,calc(100% - 40px));padding-block-start:8px;transform:translateY(-40px) scaleY(0);transform-origin:top center!important;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}#dialog:modal{overflow:visible}:host([icon]){align-items:center}#icon{padding-block-start:16px;font-size:24px}#headline{display:block;padding-block-start:16px;padding-inline:24px;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}#headline:not([slotted]):empty{display:none}#body{padding-block:16px}.content{padding-inline:24px}#divider-top{padding-block-start:16px}mdw-divider:not([size]){color:transparent}mdw-divider[size=inset]{padding-inline:24px}#fixed{display:block;padding-block-start:16px;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#fixed:not([slotted]){display:none}#slot{display:block;overflow-y:auto;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#scroller{display:block;overflow-y:auto}#form{display:contents}#actions{display:flex;align-self:flex-end;margin-block:24px;padding-inline:24px}`.events({keydown(t){if(t.key==="Tab"){if(!this.native){t.preventDefault();let e=Qr(this.shadowRoot);t.shiftKey&&e.reverse();let i=!1,r=!1;for(let o of e)if(i){if(U(o)){r=!0;break}}else i=o.matches(":focus");if(!r){for(let o of e)if(U(o))return}}return}if(t.key==="Escape"||t.key==="Esc"){t.preventDefault(),t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}},focusout(t){this.open&&(this._closing||this.modal||t.relatedTarget!==this.refs.scrim&&queueMicrotask(()=>{if(this.matches(":focus-within"))return;let e=document.activeElement;e&&this.contains(e)||this.close(void 0,!1)}))},submit(t){if(t.defaultPrevented)return;let e=t.target;if(!(e instanceof HTMLFormElement)||e.method!=="dialog")return;let i=t.submitter,r=i==null?void 0:i.value;this.close(r)}}).childEvents({dialog:{cancel(t){t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)||t.preventDefault()},close(t){t.stopPropagation(),this.close(this.returnValue)},"~click"(t){if(t.target!==t.currentTarget||!this.native||t.offsetX>=0&&t.offsetX<t.currentTarget.offsetWidth&&t.offsetY>=0&&t.offsetY<t.currentTarget.offsetHeight)return;let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}}}).autoRegister("mdw-dialog");var We=j.extend().mixin(B).mixin(Fe).set({_ariaRole:"heading",_baseAriaLevel:1}).observe({ariaLevel:"string",size:{type:"string",empty:"large"}}).observe({_computedAriaLevel({ariaLevel:t,size:e,_baseAriaLevel:i}){return t||(e==="medium"?`${i+1}`:e==="small"?`${i+2}`:`${i}`)}}).on({_computedAriaLevelChanged(t,e){this.updateAriaProperty("ariaLevel",e)},constructed(){this.updateAriaProperty("ariaLevel",this._computedAriaLevel)}}).css`:host{font:var(--mdw-typescale__display-large__font);letter-spacing:var(--mdw-typescale__display-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__display-medium__font);letter-spacing:var(--mdw-typescale__display-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__display-small__font);letter-spacing:var(--mdw-typescale__display-small__letter-spacing)}`.autoRegister("mdw-display");var eo=f.extend().mixin(x).mixin(E).mixin(B).set({_ariaRole:"tooltip"}).observe({open:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"true":"false")}}}).html`<div id=hover-target></div><slot id=slot></slot>`.css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-ink:var(--mdw-color__inverse-on-surface);--mdw-bg:var(--mdw-color__inverse-surface);display:block;box-sizing:border-box;padding-block:calc(12px - var(--mdw-typescale__body-small__line-height)/ 2);padding-inline:8px;pointer-events:none;opacity:0;transform:scale(0);z-index:28;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing);transition:transform .2s,opacity .2s}@supports (width:1lh){:host{padding-block:calc(12px - .5lh)}}:host([open]){pointer-events:auto;opacity:1;transform:scale(1)}#hover-target{position:absolute;inset-block-start:50%;inset-inline-start:50%;box-sizing:content-box;block-size:100%;inline-size:100%;padding:8px;transform:translate(-50%) translateY(-50%);z-index:-1}`.autoRegister("mdw-tooltip");function Ve(t){return t.set({TOOLTIP_MOUSE_IDLE_MS:500,TOOLTIP_TOUCH_IDLE_MS:1500,_idleDebounce:null,_watchedParents:null,_resizeObserver:null,_intersectObserver:null,_parentScrollListener:null,tooltipSlotId:"slot"}).observe({tooltip:"string",autoTooltip:"boolean"}).html`<mdw-tooltip id=tooltip></mdw-tooltip>`.css`#tooltip{display:none}`.methods({cancelShowTooltip(){clearTimeout(this._idleDebounce)},scheduleHideTooltip(e){if(this.cancelShowTooltip(),!this.refs.tooltip.open)return;let r=0;switch(e){case"mouse":r=0;break;case"touch":r=1500;break;default:}this._idleDebounce=setTimeout(()=>{this.hideTooltip()},r)},scheduleShowTooltip(e){if(this.refs.tooltip.open)return;let r=0;switch(e){case"mouse":r=this.TOOLTIP_MOUSE_IDLE_MS;break;case"touch":r=this.TOOLTIP_TOUCH_IDLE_MS;break;default:}clearTimeout(this._idleDebounce),r?this._idleDebounce=setTimeout(this.showTooltip.bind(this),r):this.showTooltip()},showTooltip(){let e=this.refs.tooltip;if(e.open)return;document.body.append(this.refs.tooltip),this.recloneTooltip(),this.updateTooltipPosition(),this._resizeObserver.observe(this,{box:"border-box"}),this._resizeObserver.observe(e,{box:"border-box"}),this._intersectObserver.observe(this),this._intersectObserver.observe(e);let i=this;for(;i=i.offsetParent;)this._resizeObserver.observe(i,{box:"border-box"}),this._watchedParents.push(i),this._intersectObserver.observe(i),i.addEventListener("scroll",this._parentScrollListener);window.addEventListener("scroll",this._parentScrollListener),e.open=!0},hideTooltip(e=!1){e&&this.cancelShowTooltip(),this._resizeObserver.disconnect(),this._intersectObserver.disconnect();let i;for(;i=this._watchedParents.pop();)i.removeEventListener("scroll",this._parentScrollListener);window.removeEventListener("scroll",this._parentScrollListener);let r=this.refs.tooltip;r.open=!1,r.remove()},updateTooltipPosition(e){let r=this.refs.tooltip;Object.assign(r.style,{top:"0",left:"0",right:"auto",bottom:"auto",position:"fixed",maxWidth:null,maxHeight:null});let o={anchor:e??this.getBoundingClientRect(),width:r.clientWidth,height:r.clientHeight},n=getComputedStyle(this).direction==="rtl",s=n?"right":"left",l=n?"left":"right",a=[{clientY:"bottom",clientX:"center",offsetY:8},{clientY:"bottom",clientX:s,offsetY:8},{clientY:"bottom",clientX:l,offsetY:8},{clientY:"top",clientX:"center",offsetY:-8},{clientY:"top",clientX:s,offsetY:-8},{clientY:"top",clientX:l,offsetY:-8}],c;for(let d of a){let p=Pt({...o,...d});if((!c||c.visibility<p.visibility)&&(c=p),p.visibility===1)break}Object.assign(r.style,{position:"fixed",...c.styles})},recloneTooltip(){let e,i=this.tooltip;i?e=[i]:e=this.refs[this.tooltipSlotId].assignedNodes().map(r=>r.cloneNode(!0)),this.refs.tooltip.replaceChildren(...e)},closeIfNotHovered(){let e=()=>{this.hoveredState||this.refs.tooltip.matches(":hover")||this.hideTooltip(!0)};it?requestAnimationFrame(e):e()}}).childEvents({slot:{slotchange:"recloneTooltip"},tooltip:{pointerleave:"closeIfNotHovered"}}).events({"~pointermove"(e){e.pointerType!=="touch"&&this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("mouse")},"~keydown"({ctrlKey:e}){e&&this.hideTooltip(!0)},"~click"(){this.hideTooltip(!0)}}).on({constructed(){this._watchedParents=[],this._parentScrollListener=this.updateTooltipPosition.bind(this,null),this._resizeObserver=new ResizeObserver(()=>{this.refs.tooltip.open&&this.updateTooltipPosition()});let e=[0,.49,.5,.51,1];this._intersectObserver=new IntersectionObserver(i=>{let r=this.refs.tooltip;if(r.open){for(let o of i){if(o.intersectionRatio<=0){this.hideTooltip();return}if(o.target===r){this.updateTooltipPosition();return}if(o.target===this){o.intersectionRatio<=.5?this.hideTooltip():this.updateTooltipPosition(o.boundingClientRect);return}}this.updateTooltipPosition()}},{threshold:e})},_focusedChanged(e,i){i?!this._pointerPressed&&!this._focusedSynthetic&&this.autoTooltip&&this.showTooltip():this.closeIfNotHovered()},_hoveredChanged(e,i){i?this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("mouse"):this.closeIfNotHovered()},_pointerPressedChanged(e,i){this._lastInteraction==="touch"&&(i?this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("touch"):this.scheduleHideTooltip("touch"))},disconnected(){this.hideTooltip(!0)},tooltipChanged(){this.recloneTooltip()}})}var to=fe.extend().mixin(Ve).observe({lowered:"boolean",extended:"boolean",fabSize:{value:null},filled:{empty:"tonal"},elevated:{type:"boolean",empty:!0}}).observe({autoTooltip({extended:t}){return!t}}).recompose(({refs:{icon:t,slot:e}})=>{t.setAttribute("fab-size","{fabSize}"),e.setAttribute("extended","{extended}"),e.setAttribute("icon","{icon}")}).css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-ink:var(--mdw-color__primary);--mdw-shape__size:16px;gap:0;grid-area:fab;min-inline-size:24px;padding:calc(16px + (var(--mdw-density) * 2px));background-color:rgb(var(--mdw-bg));box-shadow:var(--mdw-elevation__box-shadow__3);color:rgb(var(--mdw-ink));transition-duration:.2s;transition-property:box-shadow,gap,min-inline-size}:host(:where([extended])){gap:8px;min-inline-size:48px}#slot{display:inline-flex;align-items:center;min-block-size:24px;visibility:hidden;color:transparent;font-size:0;transition:color .2s,font-size .2s,visibility .2s}#slot[extended]{visibility:inherit;color:inherit;font-size:inherit;transition:color .2s,font-size .2s,visibility 0s}:host([fab-size=small]){--mdw-shape__size:12px;padding:calc(8px + (var(--mdw-density) * 2px))}:host([fab-size=large]){--mdw-shape__size:28px;padding:calc(30px + (var(--mdw-density) * 2px))}#icon{font-size:24px}#icon[fab-size=large]{font-size:36px}:host(:where([lowered])){--mdw-bg:var(--mdw-color__surface-container-low);box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where(:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__4)}:host(:where([lowered]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__2)}`.autoRegister("mdw-fab");var io=f.extend().mixin(L).observe({hideBreakpoint:{value:728}}).observe({_styles:{...ae,get({hideBreakpoint:t}){if(t)return`@media(min-width:${t}px){:host{display:none}}`}}}).html`<slot id=slot></slot>`.css`:host{display:grid;align-items:flex-end;grid-template:"fab" auto/auto;justify-content:flex-end;margin:16px;pointer-events:none}@media(min-width:648px){:host{margin:24px}}#slot{pointer-events:auto}`.autoRegister("mdw-fab-container");var ro=Rt.extend().observe({type:{empty:"checkbox"},dropdown:"boolean",trailingSrc:"string",trailingIcon:"string"}).expressions({computedTrailingIcon:({trailingIcon:t,dropdown:e,trailingSrc:i})=>t||(e?"arrow_drop_down":i?"":null),iconVariation({checked:t}){return t?"filled":null}}).html`<mdw-icon mdw-if={!icon} id=check-icon disabled={disabledState} selected={checked} aria-hidden=true icon=check variation=filled></mdw-icon><mdw-icon mdw-if={computedTrailingIcon} id=trailing-icon aria-hidden=true src={trailingSrc} icon={computedTrailingIcon}></mdw-icon>`.recompose(({refs:{icon:t,control:e,outline:i,slot:r,trailingIcon:o,checkIcon:n}})=>{t.setAttribute("mdw-if","{icon}"),t.setAttribute("ink","{iconInk}"),e.removeAttribute("role"),i.removeAttribute("mdw-if"),i.removeAttribute("ink"),i.removeAttribute("color"),i.setAttribute("selected","{checked}"),i.setAttribute("elevated","{elevated}"),i.setAttribute("icon",""),i.setAttribute("trailing-icon","{computedTrailingIcon}"),r.removeAttribute("ink"),r.removeAttribute("color"),r.before(n),r.after(o)}).css`:host{--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container);gap:8px;padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)));padding-inline-end:max(12px,calc(16px + (var(--mdw-density) * 2px)));background-color:transparent;color:rgb(var(--mdw-color__on-surface-variant))}:host(:focus){--mdw-outline__rgb:var(--mdw-color__outline)}#outline{z-index:-1;background-color:transparent}:host(:where([trailing-icon],[dropdown],[trailing-src])){padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)))}#outline[elevated]{background-color:rgb(var(--mdw-color__surface-container-low));border-color:transparent}#outline[selected]{background-color:rgb(var(--mdw-bg));border-color:transparent}:host([selected]){color:rgb(var(--mdw-ink))}#trailing-icon{position:relative;font-size:18px}.mdw-chip__checkbox{position:absolute;max-block-size:0;max-inline-size:0;appearance:none;pointer-events:none}#check-icon{font-size:0}#check-icon[selected]{font-size:18px}#check-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}:host([disabled]:is([elevated],[filled])){background-color:transparent}#outline[disabled]:is([elevated],[selected]){background-color:rgba(var(--mdw-color__on-surface),.12)}`.autoRegister("mdw-filter-chip");var oo=j.extend().mixin(W).observe({grid:"boolean",columns:"integer",_autoColumns:{type:"integer",empty:4},_lastInlineSize:"float"}).observe({_resizeObserverEnabled:{type:"boolean",get({columns:t}){return!t}},_computedColumns({columns:t,_autoColumns:e}){return t||e||4}}).overrides({onResizeObserved(t){let{contentBoxSize:e}=t;if(!e.length)return;let[{inlineSize:i}]=e;this._lastInlineSize=i}}).on({_lastInlineSizeChanged(t,e){e>=840?this._autoColumns=12:e>=600?this._autoColumns=8:this._autoColumns=4},connected(){this._lastInlineSize=this.clientWidth}}).expressions({_isFlex({block:t,grid:e}){return!t&&!e}}).observe({_styles:{...ae,get({_computedColumns:t}){return(t||4)===4?"":{gridTemplateColumns:`repeat(${t},1fr)`}}}}).recompose(({refs:{slot:t}})=>{t.setAttribute("grid","{grid}"),t.setAttribute("flex","{_isFlex}"),t.setAttribute("columns","{_computedColumns}")}).css`:host{display:grid;column-gap:16px;grid-auto-flow:row;grid-template-columns:repeat(4,1fr)}:host([y=start]){align-items:flex-start}:host([y=end]){align-items:flex-end}:host([y=center]){align-items:center}:host([y=between]){align-items:space-between}:host([y=around]){align-items:space-around}:host([y=stretch]){align-items:stretch}:host([x=start]){justify-content:flex-start}:host([x=end]){justify-content:flex-end}:host([x=center]){justify-content:center}:host([x=between]){justify-content:space-between}:host([x=stretch]){justify-content:stretch}#slot,#slot[columns="4"]{--mdw-grid__columns:4;--mdw-grid__columns__4:1;--mdw-grid__columns__8:0;--mdw-grid__columns__12:0}#slot[columns="8"]{--mdw-grid__columns:8;--mdw-grid__columns__4:0;--mdw-grid__columns__8:1;--mdw-grid__columns__12:0}#slot[columns="12"]{--mdw-grid__columns:12;--mdw-grid__columns__4:0;--mdw-grid__columns__8:0;--mdw-grid__columns__12:1}::slotted(*){--mdw-grid__column-count:var(--mdw-grid__columns);--mdw-grid__column-count__4:var(--mdw-grid__column-count);--mdw-grid__column-count__8:var(--mdw-grid__column-count);--mdw-grid__column-count__12:var(--mdw-grid__column-count);grid-column:auto/span calc((min(var(--mdw-grid__column-count__4),4) * var(--mdw-grid__columns__4)) + (min(var(--mdw-grid__column-count__8),8) * var(--mdw-grid__columns__8)) + (min(var(--mdw-grid__column-count__12),12) * var(--mdw-grid__columns__12)))}::slotted([col-span="1"]){--mdw-grid__column-count:1}::slotted([col-span="2"]){--mdw-grid__column-count:2}::slotted([col-span="3"]){--mdw-grid__column-count:3}::slotted([col-span="4"]){--mdw-grid__column-count:4}::slotted([col-span="5"]){--mdw-grid__column-count:5}::slotted([col-span="6"]){--mdw-grid__column-count:6}::slotted([col-span="7"]){--mdw-grid__column-count:7}::slotted([col-span="8"]){--mdw-grid__column-count:8}::slotted([col-span="9"]){--mdw-grid__column-count:9}::slotted([col-span="10"]){--mdw-grid__column-count:10}::slotted([col-span="11"]){--mdw-grid__column-count:11}::slotted([col-span="12"]){--mdw-grid__column-count:12}::slotted([col-span="25%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns) / 4)}::slotted([col-span="50%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns) / 2)}::slotted([col-span="100%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns))}::slotted([col-span-4="1"]){--mdw-grid__column-count__4:1}::slotted([col-span-4="2"]){--mdw-grid__column-count__4:2}::slotted([col-span-4="3"]){--mdw-grid__column-count__4:3}::slotted([col-span-4="4"]){--mdw-grid__column-count__4:4}::slotted([col-span-8="1"]){--mdw-grid__column-count__8:1}::slotted([col-span-8="2"]){--mdw-grid__column-count__8:2}::slotted([col-span-8="3"]){--mdw-grid__column-count__8:3}::slotted([col-span-8="4"]){--mdw-grid__column-count__8:4}::slotted([col-span-8="5"]){--mdw-grid__column-count__8:5}::slotted([col-span-8="6"]){--mdw-grid__column-count__8:6}::slotted([col-span-8="7"]){--mdw-grid__column-count__8:7}::slotted([col-span-8="8"]){--mdw-grid__column-count__8:8}::slotted([col-span-12="1"]){--mdw-grid__column-count__12:1}::slotted([col-span-12="2"]){--mdw-grid__column-count__12:2}::slotted([col-span-12="3"]){--mdw-grid__column-count__12:3}::slotted([col-span-12="4"]){--mdw-grid__column-count__12:4}::slotted([col-span-12="5"]){--mdw-grid__column-count__12:5}::slotted([col-span-12="6"]){--mdw-grid__column-count__12:6}::slotted([col-span-12="7"]){--mdw-grid__column-count__12:7}::slotted([col-span-12="8"]){--mdw-grid__column-count__12:8}::slotted([col-span-12="9"]){--mdw-grid__column-count__12:9}::slotted([col-span-12="10"]){--mdw-grid__column-count__12:10}::slotted([col-span-12="11"]){--mdw-grid__column-count__12:11}::slotted([col-span-12="12"]){--mdw-grid__column-count__12:12}`.autoRegister("mdw-grid");var no=We.extend().set({_baseAriaLevel:4}).css`:host{font:var(--mdw-typescale__headline-large__font);letter-spacing:var(--mdw-typescale__headline-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}`.autoRegister("mdw-headline");var so=fe.extend().mixin(Ve).set({_allowedTypes:["button","submit","reset","checkbox","file"]}).observe({_ariaPressed:{get({type:t,checked:e,indeterminate:i}){return t!=="checkbox"?null:i?"mixed":e?"true":"false"}},_isToggle({type:t}){return t==="checkbox"},autoTooltip:{empty:!0}}).expressions({iconVariation({checked:t,outlined:e,_isToggle:i}){return!t&&(i||e)?null:"filled"}}).childEvents({control:{keydown(t){if(t.key!=="Enter"&&t.key!==" ")return;let e=t.currentTarget;e.type==="checkbox"&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),!e.disabled&&e.click())}}}).recompose(({refs:{icon:t,control:e,outline:i}})=>{t.removeAttribute("mdw-if"),e.setAttribute("aria-pressed","{_ariaPressed}"),i.setAttribute("toggle","{_isToggle}"),i.setAttribute("selected","{checked}")}).observe({_styles:{...ae,get({checked:t,disabled:e,filled:i,outlined:r,_isToggle:o}){return!o||e?null:r?t?{backgroundColor:"rgb(var(--mdw-bg))"}:{color:"rgb(var(--mdw-color__on-surface-variant))"}:t||i==null?null:{backgroundColor:"rgb(var(--mdw-color__surface-container-highest))",color:i==="tonal"?"rgb(var(--mdw-color__on-surface-variant))":"rgb(var(--mdw-bg))"}}}}).css`:host{--mdw-shape__size:var(--mdw-shape__full);--mdw-ink:rgb(var(--mdw-color__on-surface-variant));align-items:center;justify-content:center;min-block-size:1em;min-inline-size:1em;padding:max(8px,calc(8px + (var(--mdw-density) * 2px)));font-size:24px;transition-property:background-color,box-shadow}:host(:where([type=checkbox])){--mdw-ink:var(--mdw-color__primary)}:host(:where([filled])){--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary)}:host(:where([filled=tonal])){--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container)}:host(:where([outlined])){--mdw-ink:var(--mdw-color__on-surface-variant);background-color:transparent}:host(:where([outlined][type=checkbox])){--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface)}#slot{display:none}#icon{pointer-events:none;font-size:inherit;transition-property:color,inline-size,width}#state{z-index:1}#ripple-container{z-index:2}#outline[focused]{opacity:1;color:inherit}#outline[focused][toggle]{color:rgb(var(--mdw-color__outline))}#outline[selected]:not([disabled]){opacity:0}`.autoRegister("mdw-icon-button");function ve(t){return t.mixin(K).mixin(E).set({stateLayer:!0}).observe({type:{empty:"text"},icon:"string",iconVariation:"string",label:"string",filled:"boolean",outlined:"boolean",inputPrefix:"string",inputSuffix:"string",trailingIcon:"string",trailingIconInk:"string",trailingIconLabel:"string",supporting:"string",error:"string",placeholder:{nullParser:String}}).observe({erroredState({error:e,_invalid:i,_userInteracted:r}){return r&&!!(e||i)}}).expressions({computePlaceholder({filled:e,outlined:i,label:r,placeholder:o}){return e||i?o:o??r},shouldShowSupporting({erroredState:e,supporting:i}){return e||i!=null},computeSupportingText({error:e,erroredState:i,_validationMessage:r,supporting:o}){return(e||i&&r||o)??""},populatedState({value:e,_badInput:i}){return!!e||i},_showLabelText({label:e,filled:i,outlined:r}){return e&&(i||r)}}).expressions({_shapeShapeTop({shapeTop:e,filled:i}){return e||i},computedIconVariation({iconVariation:e,outlined:i}){return e??(i?null:"filled")}}).html`<div id=shape role=none filled={filled} icon={icon} trailing-icon={trailingIcon} populated={populatedState} focused={focusedState} label={label} outlined={outlined} shape-top={_shapeShapeTop}><mdw-icon mdw-if={icon} id=icon aria-hidden=true disabled={disabledState} icon={icon} variation={computedIconVariation}></mdw-icon><div id=inline role=none filled={filled} icon={icon} trailing-icon={trailingIcon} populated={populatedState} focused={focusedState} label={label} outlined={outlined}><span mdw-if={inputPrefix} class=inline id=prefix aria-hidden=true focused={focusedState} populated={populatedState}>{inputPrefix}</span> <span mdw-if={inputSuffix} class=inline id=suffix aria-hidden=true focused={focusedState} populated={populatedState}>{inputSuffix}</span></div><mdw-icon-button tabindex=-1 disabled={disabledState} mdw-if={trailingIcon} id=trailing-icon ink={trailingIconInk} disabled={disabledState} icon={trailingIcon}>{trailingIconLabel}</mdw-icon-button><div mdw-if={filled} id=indicator aria-hidden=true focused={focusedState} hovered={hoveredState} errored={erroredState} disabled={disabledState}></div></div><div id=label-text mdw-if={_showLabelText} aria-hidden=true outlined={outlined} populated={populatedState} focused={focusedState} icon={icon} trailing-icon={trailingIcon} disabled={disabledState} errored={erroredState}>{label}</div><div mdw-if={shouldShowSupporting} id=supporting disabled={disabledState} errored={erroredState}>{computeSupportingText}<slot id=supporting-slot name=supporting></slot></div>`.recompose(({html:e,refs:{control:i,outline:r,state:o,shape:n,inline:s}})=>{i.setAttribute("placeholder","{computePlaceholder}"),i.setAttribute("aria-label","{label}"),i.setAttribute("input-suffix","{inputSuffix}"),i.setAttribute("errored","{erroredState}"),i.setAttribute("aria-describedby","supporting"),i.removeAttribute("aria-labelledby"),i.classList.add("inline"),o.setAttribute("mdw-if","{!outlined}"),r.append(e`<div id=outline-left class=outline-section focused={focusedState}></div><div id=gap label={label} populated={populatedState} focused={focusedState}><div id=gap-slot focused={focusedState}></div><span id=gap-label>{label}</span></div><div id=outline-right class=outline-section focused={focusedState}></div>`),r.setAttribute("label","{label}"),r.setAttribute("errored","{erroredState}"),n.prepend(r,o),s.prepend(i)}).on({sizeChanged(e,i){this.refs.control.style.setProperty("--size",`${i}ch`)}}).css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-text-field__ratio:calc(var(--mdw-density) * .125 + 1);--control__margin-top:calc(var(--mdw-typescale__body-small__line-height) / 2);--control__padding-top:calc((var(--mdw-text-field__ratio) * 16px) - calc(var(--mdw-typescale__body-small__line-height) / 2));--control__padding-bottom:calc(var(--mdw-text-field__ratio) * 16px);--control__margin-bottom:0px;--inline-color:rgb(var(--mdw-color__on-surface-variant));--descriptor-opacity:.5;--mdw-ink:var(--mdw-color__primary);--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-type__font:var(--mdw-typescale__body-large__font);--mdw-type__letter-spacing:var(--mdw-typescale__body-large__letter-spacing);display:inline-block;border-radius:0;color:rgb(var(--mdw-color__on-surface));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host(:is([color],[ink])){background-color:transparent;color:rgb(var(--mdw-color__on-surface))}#shape[label][outlined]{--mdw-shape__size__top-start-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-start-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__top-end-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-end-size:min(var(--mdw-shape__size), 12px)}#shape{position:relative;display:flex;cursor:inherit;z-index:0;background-color:transparent;border-start-start-radius:calc(var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__size__bottom-end-size));font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition:none .2s cubic-bezier(0,0,.2,1)}#inline{display:flex;align-items:center;overflow:visible;flex:1;padding-block:var(--control__margin-top) var(--control__margin-bottom);cursor:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition:none .2s cubic-bezier(0,0,.2,1)}#shape:where([filled],[color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-color__on-surface))}#shape[outlined]{background-color:transparent}#indicator,#label-text{color:rgb(var(--mdw-color__on-surface-variant))}:is(#label-text,#indicator)[focused]{color:rgb(var(--mdw-ink))}#shape[focused]{transition:none .1s cubic-bezier(.4,0,1,1)}#shape[shape-top]{--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px}#control::placeholder,#prefix,#suffix{opacity:var(--descriptor-opacity);color:var(--inline-color);transition-duration:inherit;transition-property:opacity;transition-timing-function:inherit;will-change:opacity}:host([label]:is([filled],[outlined])){--descriptor-opacity:0}#control{position:relative;inset:auto;align-self:flex-start;display:inline-block;box-sizing:border-box;block-size:auto;min-block-size:0;inline-size:100%;min-inline-size:0;flex:1;border-block-end:solid var(--control__margin-bottom) transparent;padding-block:var(--control__padding-top) var(--control__padding-bottom);appearance:none;caret-color:rgb(var(--mdw-ink));cursor:auto;transform:none;visibility:inherit;background-color:transparent;border-color:transparent;color:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;text-align:initial;transition-duration:inherit;transition-property:color;transition-timing-function:inherit}#prefix,#suffix{padding-block:var(--control__padding-top) var(--control__padding-bottom)}#control::selection{background-color:rgb(var(--mdw-ink));color:rgb(var(--mdw-color__surface))}#state{--mdw-state__focused-opacity:0;--mdw-state__pressed-opacity:0}mdw-icon{--mdw-icon__size:24px;align-self:center;color:var(--inline-color)}#icon{order:-2;margin-inline-start:12px;font-size:24px}#prefix{order:-1}#suffix{order:1}#trailing-icon{order:2;margin-inline-end:12px}#indicator{position:absolute;inset-block-end:0;inset-inline:0;border-block-end:2px solid currentColor;pointer-events:none;transform:scaleY(.5);z-index:1;transition-duration:inherit;transition-property:transform;transition-timing-function:inherit;will-change:transform}#indicator[focused]{transform:scaleY(1)}#label-text{position:absolute;inset-block-start:0;inset-inline:0;display:block;overflow-x:clip;overflow-y:visible;padding-inline:16px;pointer-events:none;opacity:1;transform:translateY(calc((var(--control__margin-top) + var(--control__padding-top) + 100% + var(--control__padding-bottom) + var(--control__margin-bottom))/ 2)) translateY(-50%);z-index:4;color:rgb(var(--mdw-color__on-surface-variant));text-overflow:ellipsis;white-space:nowrap;transition-duration:.2s;transition-property:inset-inline-start,font-size,transform;will-change:inset-inline-start,font-size,transform}@supports (-moz-appearance:none){#label-text{overflow-x:hidden}}#label-text[focused]{color:rgb(var(--mdw-ink))}#label-text[icon]{inset-inline-start:36px}#label-text[trailing-icon]{inset-inline-end:36px}#label-text:is([focused],[populated]){transform:translateY(calc(var(--mdw-text-field__ratio) * 8px));font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#label-text[outlined]:is([focused],[populated]){inset-inline:0;transform:translateY(-50%)}:is(#prefix,#suffix):is([focused],[populated]){opacity:1}#control:is(:focus,:not(:placeholder-shown))::placeholder{opacity:.7}#control[input-suffix]{text-align:end}#outline{position:absolute;inset:0;border-style:solid;border-width:0;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}#outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}#outline:before{content:none}.outline-section{position:relative;border:1px solid currentColor}.outline-section[focused]{border-width:2px}#outline-left{border-right-width:0;border-top-left-radius:inherit;border-bottom-left-radius:inherit}#outline-right{border-left-width:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit}#outline{display:grid;grid-auto-flow:column;grid-template-columns:1fr 0 1fr;color:rgb(var(--mdw-color__outline))}#outline[label]{grid-template-columns:12px minmax(0,auto) minmax(12px,1fr)}#outline[hovered]{color:rgb(var(--mdw-color__on-surface))}#outline[focused]{color:rgb(var(--mdw-ink))}.outline-section{min-inline-size:12px}.outline-section:after,.outline-section:before{max-inline-size:none}.outline-left{grid-column:calc(2 - var(--mdw-dir,1))/span 1}.outline-right{grid-column:calc(2 + var(--mdw-dir,1))/span 1}#gap{position:relative;display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing);transition-duration:inherit;transition-property:padding;transition-timing-function:inherit}#gap-label{display:inline-block;overflow:clip hidden;padding-inline:4px;color:transparent;white-space:nowrap}#gap:after{content:"";position:absolute;inset:0;border-block-end:solid 1px currentColor}#gap[focused]:after{border-block-end-width:2px}#gap-slot{position:absolute;inset:0}#gap-slot:after,#gap-slot:before{content:"";position:absolute;inset:0;border-block-start:solid 1px currentColor;transition:transform .2s;will-change:transform}#gap-slot[focused]:after,#gap-slot[focused]:before{border-block-start-width:2px}#gap-slot:before{margin-right:-.99px;transform:var(--gap-transform,scaleX(.5));transform-origin:0 0}#gap-slot:after{margin-left:-.99px;transform:var(--gap-transform,scaleX(.5));transform-origin:100% 0}#gap:is([focused],[populated]){--gap-transform:scaleX(0)}#gap:empty{padding:0}#inline[label][filled]{align-items:flex-start}:host([filled]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-text-field__ratio:calc(var(--mdw-density) * .25 + 1)}:host(:is([filled][label])){--control__margin-top:calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top:0px;--control__padding-bottom:calc(var(--mdw-text-field__ratio) * 4px);--control__margin-bottom:calc(var(--mdw-text-field__ratio) * 4px)}#supporting{min-block-size:var(--mdw-typescale__body-small__line-height);margin-block-start:4px;margin-inline:16px;font-weight:var(--mdw-typescale__body-small__font-weight);font-size:var(--mdw-typescale__body-small__font-size);line-height:var(--mdw-typescale__body-small__line-height);font-family:var(--mdw-typescale__body-small__font-family);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#control[errored]{caret-color:rgb(var(--mdw-color__error))}#control[errored]::selection{background-color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]{color:rgb(var(--mdw-color__error))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([hovered]){color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([focused]){color:rgb(var(--mdw-color__error))}#shape[disabled],#shape[disabled] #control{cursor:not-allowed}#outline[disabled]{color:rgba(var(--mdw-color__outline),.12)}#label-text[disabled],#supporting[disabled],.inline[disabled],#control[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}mdw-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled]{background-color:rgba(var(--mdw-color__on-surface),.04);color:rgba(var(--mdw-color__on-surface),.38)}#indicator[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled][outlined]{background-color:transparent}`}var Ft=f.extend().mixin(x).mixin(X).mixin(E).mixin(De).observe({elevation:"integer"}).css`:host{filter:var(--mdw-elevation__drop-shadow__0);transition:filter .2s}:host(:where([elevation="1"])){filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([elevation="2"])){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([elevation="3"])){filter:var(--mdw-elevation__drop-shadow__3)}:host(:where([elevation="4"])){filter:var(--mdw-elevation__drop-shadow__4)}:host(:where([elevation="5"])){filter:var(--mdw-elevation__drop-shadow__5)}`.autoRegister("mdw-popup");var Y;function at(){return Y||(Y=new Ft,Y.scrollable=!0,Y.shapeStyle="extra-small",Y.color="surface",Y.matchSourceWidth=!0,Y.flow="corner",Y.elevation=2,Y.setAttribute("aria-hidden","true")),Y}var ao=f.extend().mixin(x).mixin(N).mixin(Q).mixin(ve).mixin(W).observe({autocompleteInline:"boolean",autocompleteList:"string",autosuggestInline:"boolean",autoSelect:"boolean",_expanded:"boolean",acceptOnEscape:"boolean",_listbox:{type:"object",value:null},_focusedValue:"string",_focusedPosInSet:{value:-1},_listboxSize:{value:-1},_draftInput:{type:"string",nullable:!1},_hasSuggestion:"boolean",_listboxValue:"string",_lastComputedListboxValue:{type:"string",nullable:!1},_suggestionOption:{type:"object",value:null},_values:{type:"array",value:[]},_chipSelected:"boolean"}).observe({_hasListbox({_listbox:t}){return!!t},_isSelect({type:t}){return t.toLowerCase()==="select-one"||t.toLocaleLowerCase()==="select-multiple"}}).define({listbox(){return this._listbox}}).set({_onListboxChangeListener:null,_onListboxClickListener:null,_onPopupFocusoutListener:null,_suggestionText:"",_suggestionValue:""}).define({stateTargetElement(){return this.refs.control}}).methods({onResizeObserved(){this._expanded&&at().updatePopupPosition(this.refs.shape)},onListboxClick(t){this.closeListbox(),this.refs.control.focus()},onListboxChange(t){if(this.multiple){let o=[...this._listbox.selectedOptions].map(n=>n.value);this._values=o,this._input.value&&this.closeListbox();return}let e=this._listbox.selectedOptions.item(0);this.render({selectedOption:e});let{label:i,value:r}=e;this._suggestionText=i,this._suggestionValue=r,this._suggestionOption=e,this._hasSuggestion=!0,this.acceptSuggestion(!0),this.closeListbox(),this.refs.control.focus()},onPopupFocusout({relatedTarget:t}){this._expanded&&(t&&(this===t||this.contains(t)||at().contains(t))||this.closeListbox())},applyAutocompleteList(){let{_listbox:t,_draftInput:e}=this;if(!t)return;let i=e.toLowerCase();for(let r of t)r.hidden=!r.label.toLowerCase().startsWith(i)},showListbox(){let t=this._listbox;if(!t)return;this._expanded=!0;let{ariaListbox:e,shape:i}=this.refs;e.setAttribute("aria-hidden","false");let r=at();"popover"in r?(this.insertAdjacentElement("afterend",r),r.popover="manual",r.showPopover()):document.body.append(r),r.replaceChildren(t),r.showPopup(i,!1),r.addEventListener("focusout",this._onPopupFocusoutListener),!this._isSelect&&!this.multiple&&(t.value=this._listboxValue);let[o]=t.selectedOptions;o&&o.scrollIntoView({behavior:"instant",block:"nearest"})},closeListbox(){this._expanded=!1;let{_listbox:t}=this;if(!t)return;let e=at();this.refs.ariaListbox.setAttribute("aria-hidden","true"),this.replaceChildren(t),e.close(void 0,!1),e.remove()},toggleListbox(){this._expanded?this.closeListbox():this.showListbox()},suggestOption(t){this.render({selectedOption:t});let{_draftInput:e,_input:i,_isSelect:r,autocompleteInline:o,_expanded:n,autoSelect:s}=this,{label:l,value:a}=t;if(this._suggestionText=l,this._suggestionValue=a,this._suggestionOption=t,this._hasSuggestion=!0,s){this.acceptSuggestion(!0);return}if(r&&!this.multiple||o){let c=l,d=0;n?!r&&l.toLowerCase().startsWith(e.toLowerCase())?(c=e+l.slice(e.length),d=e.length):d=l.length:d=0,i.value=c,o&&i.setSelectionRange(d,l.length),n||this.acceptSuggestion(!0)}},acceptSuggestion(t=!1){if(!this._hasSuggestion||this.readOnly)return;let{_suggestionText:e,_suggestionValue:i,_input:r,multiple:o,_listbox:n,_values:s}=this;if(o){let l=[...s.filter(Boolean),i??e];this._values=[...new Set(l)]}else this.value=i,r.value=e,this._draftInput=e,n.value=i;t&&this.dispatchEvent(new Event("change",{bubbles:!0}))},changeSuggestion({first:t,last:e,next:i,previous:r,startsWith:o,value:n,label:s}){var m;let l=this._listbox,a,c,d,p,h,g=-1,_=-1;this._listboxSize=((m=l==null?void 0:l.options)==null?void 0:m.length)??-1;for(let u of l.options){if(_++,!d&&u.focused&&(d=u,p=_,a&&!i&&!e))break;if(!u.hidden){if(e){a=u,c=_;continue}if(t){a||(a=u,c=_);continue}if(o!=null){!a&&u.label.toLowerCase().startsWith(o)&&(a=u,c=_);continue}if(n!=null){!a&&u.value===n&&(a=u,c=_);continue}if(s!=null){!a&&u.label===s&&(a=u,c=_);continue}if(p!==_){if(r)a=u,c=_;else if(i)if(d){a=u,c=_;break}else h||(h=u,g=_)}}}if(d&&d!==a&&(d.focused=!1),a||(c=g,a=h,this._input.value=this._draftInput),c===-1){this._focusedPosInSet=-1,this._focusedValue="",this._hasSuggestion=!1;return}this._focusedPosInSet=c+1,this._focusedValue=(a==null?void 0:a.value)??"",a.focused=!0,a.scrollIntoView({behavior:"instant",block:"nearest"}),this.suggestOption(a)},resetSuggestion(){this._isSelect?this.changeSuggestion({label:this._draftInput}):this.changeSuggestion({value:this._listboxValue})},refreshMultiple(){let{_values:t,multiple:e}=this;if(!e){this.refs.chips.replaceChildren();return}let i=this.refs.chips.firstElementChild;for(let r=0;r<t.length;r++){let o=t[r],n;if(this.listbox){for(let s of this.listbox.options)if(s.value===o){n=s;break}}i??=this.refs.chips.appendChild(document.createElement("mdw-input-chip")),i.closeButton=!0,i.textContent=(n==null?void 0:n.label)||o,i.textContent=(n==null?void 0:n.label)||o,i.disabled=this.disabled,i.readOnly=this.readOnly,i.onclose??=this.onChipClose.bind(this),i=i.nextElementSibling}for(;i;){let r=i;i=i.nextElementSibling,r.remove()}if(this._chipSelected=!1,this._input.value="",this._draftInput="",this._listboxValue="",this.listbox)for(let r of this.listbox.options)r.selected=t.includes(r.value)},populateInputFromListbox(){if(this.multiple){this.refreshMultiple();return}if(!this._isSelect||!this._listbox)return;this._listbox.value=this._value;let[t]=this._listbox.selectedOptions;t&&(this._input.value=t.label,this._draftInput=t.label)},onChipClose({currentTarget:t}){let e=t,i=0;for(;e=e.previousSibling;)i++;t.remove(),this._values.splice(i,1),this._values=[...this._values]}}).childEvents({control:{click(){this._isSelect&&(this.readOnly||this.toggleListbox())},input(t){if(!this._hasListbox)return;if(t.stopPropagation(),!this.dispatchEvent(new InputEvent("input",{composed:!0,data:t.data,bubbles:!0,dataTransfer:t.dataTransfer,detail:t.detail,inputType:t.inputType,view:t.view,targetRanges:t.getTargetRanges(),isComposing:t.isComposing}))){t.preventDefault();return}let i=t.currentTarget.value;this._draftInput=i,this.autocompleteList!=null&&this.autocompleteList!=="custom"&&this.applyAutocompleteList(),this.resetSuggestion(),i&&!this._expanded&&this._listbox.length&&this.showListbox(),t.data!=null&&this.autosuggestInline&&this.changeSuggestion({startsWith:this._draftInput.toLocaleLowerCase()})},keydown(t){if(this._listbox){switch(t.key){case"Home":if(!this._isSelect||this.readOnly)return;this.changeSuggestion({first:!0});break;case"End":if(this._chipSelected=!1,!this._isSelect||this.readOnly)return;this.changeSuggestion({last:!0});break;case"ArrowDown":case"Down":if(this.disabled||this.readOnly||(this._chipSelected=!1,this.readOnly))return;if(t.altKey){this.toggleListbox();break}if(!this._expanded&&!this.autocompleteInline&&!this._isSelect)return;this.changeSuggestion({next:!0});break;case"ArrowUp":case"Up":if(this.disabled||this.readOnly)return;if(t.altKey){this.toggleListbox();break}if(this._chipSelected=!1,!this._expanded&&!this.autocompleteInline&&!this._isSelect)return;this.changeSuggestion({previous:!0});break;case"Escape":if(!this._expanded)return;t.stopImmediatePropagation(),t.preventDefault(),this.acceptOnEscape?this.acceptSuggestion(!0):this.resetSuggestion(),this.closeListbox();break;case"Space":if(this.disabled||this.readOnly||!this._isSelect||!this._listbox)return;this._expanded?this.multiple&&this._suggestionOption&&(this._suggestionOption.selected=!this._suggestionOption.selected,this.closeListbox()):this.showListbox();break;case"Backspace":if(this.disabled||this.readOnly||!this.multiple||this._isSelect)return;this._input.value||(this._chipSelected?(this._values.pop(),this._values=[...this._values]):this._values.length&&(this._chipSelected=!0));return;case"Tab":if(!this._expanded&&this.multiple)return;this.closeListbox(),this.acceptSuggestion(!0),t.stopPropagation();return;case"Enter":if(this._chipSelected=!1,!this._expanded)return;t.stopImmediatePropagation(),t.preventDefault(),this.acceptSuggestion(!0),this.closeListbox();break;case" ":return;default:if(this._isSelect&&t.key.length===1){this.changeSuggestion({startsWith:t.key.toLocaleLowerCase()});break}return}t.stopPropagation(),t.preventDefault()}}},slot:{slotchange({currentTarget:t}){if(this._expanded)return;let[e]=t.assignedElements(),i=this._listbox;i!==e&&(i&&(i.removeEventListener("change",this._onListboxChangeListener),i.removeEventListener("click",this._onListboxClickListener),i._handleFormReset=!0),this._listbox=e,e&&(this._listboxSize=e.length,this.multiple||(e.required=!0),e._handleFormReset=!1,e.addEventListener("change",this._onListboxChangeListener),e.addEventListener("click",this._onListboxChangeListener),this.populateInputFromListbox()))}},trailingIcon:{"~click"(){this._listbox&&(this.toggleListbox(),this.refs.control.focus())}}}).events({blur({relatedTarget:t}){if(this._chipSelected=!1,!this._expanded)return;let e=at();e!==t&&(t&&e.contains(t)||e.matches(":focus-within,:focus")||this.closeListbox())}}).expressions({showTrailingIcon({trailingIcon:t,_listbox:e,_expanded:i,readOnly:r}){return t??(e&&!r?i?"arrow_drop_up":"arrow_drop_down":null)},computedTrailingIcon({trailingIcon:t,_listbox:e,_expanded:i}){return t??(e?i?"arrow_drop_up":"arrow_drop_down":null)},controlTypeAttrValue({_isSelect:t,type:e}){return t?"text":e},controlReadonlyAttrValue({_isSelect:t,type:e,readOnly:i}){return t?!0:i},controlIsSelect({_isSelect:t,type:e}){return t},ariaExpandedAttrValue({_hasListbox:t,_expanded:e}){return t?`${e}`:null},ariaControlsAttrValue({_hasListbox:t}){return t?"aria-listbox":null},ariaAutocompleteAttrValue({_hasListbox:t,autocompleteList:e,_isSelect:i,autocompleteInline:r}){return!t||i?null:e!=null?"both":"inline"},ariaActiveDescendantAttrValue({_hasListbox:t,_expanded:e,_focusedValue:i}){return t?e&&i?"aria-active":"":null},ariaActiveLabel({_suggestionOption:t}){return(t==null?void 0:t.label)??""},controlRoleAttrValue({_hasListbox:t}){return t?"combobox":null},populatedState({value:t,_badInput:e,_draftInput:i,type:r}){return!!t||e||!!i||r==="datetime-local"}}).recompose(({refs:{control:t,trailingIcon:e,shape:i,labelText:r}})=>{t.setAttribute("aria-activedescendant","{ariaActiveDescendantAttrValue}"),t.setAttribute("aria-autocomplete","{ariaAutocompleteAttrValue}"),t.setAttribute("aria-controls","{ariaControlsAttrValue}"),t.setAttribute("aria-expanded","{ariaExpandedAttrValue}"),t.setAttribute("type","{controlTypeAttrValue}"),t.setAttribute("role","{controlRoleAttrValue}"),t.setAttribute("readonly","{controlReadonlyAttrValue}"),t.setAttribute("autocomplete","off"),t.setAttribute("is-select","{controlIsSelect}"),e.setAttribute("mdw-if","{showTrailingIcon}"),e.setAttribute("icon","{computedTrailingIcon}"),i.setAttribute("trailing-icon","{computedTrailingIcon}"),r.setAttribute("trailing-icon","{computedTrailingIcon}")}).overrides({_onSetValue(t){this.multiple?this._values=t.split(",").filter(Boolean):this._isSelect?this._value=t:(this._input.value=t,this._value=this._input.value)},_onControlValue(t){if(this.multiple){t&&(this._chipSelected=!1);return}this._value=t}}).on({_valueChanged(t,e){this.multiple||(this._isSelect?this.populateInputFromListbox():this._listboxValue=e)},_valuesChanged(t,e){this.multiple&&e&&(this._value=e.join(","),this.refreshMultiple())},_chipSelectedChanged(t,e){if(!this.multiple)return;let i=this.refs.chips.lastElementChild;i&&(i.selected=e)},_listboxValueChanged(t,e){this._hasListbox&&(this._listbox.value=e,this._draftInput=e,this.changeSuggestion({value:e}))},_expandedChanged(t,e){this._useFormImplicitSubmission=!e},constructed(){this._onListboxChangeListener=this.onListboxChange.bind(this),this._onListboxClickListener=this.onListboxClick.bind(this),this._onPopupFocusoutListener=this.onPopupFocusout.bind(this),document.addEventListener("DOMContentLoaded",()=>this.populateInputFromListbox(),{once:!0})},multipleChanged(t,e){this.listbox&&(this.listbox.multiple=e),e&&this._onSetValue(this._input.value)},disabledStateChanged(){this.refreshMultiple(),this._chipSelected=!1,this.closeListbox()},readOnlyChanged(){this.refreshMultiple(),this._chipSelected=!1,this.closeListbox()},disconnected(){this._expanded?Y!=null&&Y.contains(this._listbox)?this.closeListbox():this._expanded=!1:this._listbox&&(Y!=null&&Y.contains(this._listbox))&&(this.replaceChildren(this._listbox),Y==null||Y.remove()),Y==null||Y.removeEventListener("focusout",this._onPopupFocusoutListener)}}).html`<div id=chips mdw-if={multiple}></div><slot id=slot aria-hidden=true></slot><div id=aria-listbox role=listbox mdw-if={_hasListbox}><div id=aria-active role=option aria-hidden=false aria-label={ariaActiveLabel} aria-setsize={_listboxSize} aria-posinset={_focusedPosInSet}></div></div>`.css`#slot{display:none}#aria-listbox{pointer-events:none}#trailing-icon{align-self:center}#control:where([type=button],[is-select]){cursor:pointer}#inline[multiple]{gap:8px}mdw-input-chip{align-self:baseline}#control[multiple]{align-self:baseline}#chips{display:contents}#inline{flex-wrap:wrap}#inline:where([filled],[outlined]){padding-inline:16px}#control{flex:1 1 8ch}#control[is-select][multiple]{flex:1 1 0px}`.recompose(({refs:{inline:t,chips:e}})=>{t.prepend(e),t.setAttribute("multiple","{multiple}")}).extend(t=>class extends t{addRipple(...i){return this.active?super.addRipple(...i):null}}).autoRegister("mdw-input");var lo=j.extend().mixin(E).mixin(L).mixin(re).observe({avatar:"boolean",closeButton:"boolean",closeIcon:{empty:"close"},closeInk:{empty:"inherit"},readOnly:{attr:"readonly",type:"boolean"},disabled:"boolean",icon:"string",iconInk:"string",src:"string",svg:"string",viewBox:"string",svgPath:"string",onclose:te,selected:"boolean"}).set({outlined:!0}).expressions({hasIcon({icon:t,svg:e,src:i,svgPath:r}=this){return t??e??i??r},showCloseIcon({disabled:t,readOnly:e,closeButton:i}){return i&&!t&&!e}}).html`<mdw-button role=none tabindex=-1 href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy} id=action disabled={disabled}></mdw-button><mdw-icon mdw-if={hasIcon} id=icon ink={iconInk} disabled={disabled} outlined={outlined} variation={iconVariation} aria-hidden=true svg={svg} src={src} svg-path={svgPath} view-box={viewBox} icon={icon} avatar={avatar}></mdw-icon><mdw-icon-button role=none disabled={disabled} tabindex=-1 mdw-if={showCloseIcon} id=close class=button icon={closeIcon} ink={closeInk}>Close</mdw-icon-button>`.css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-surface);position:relative;display:inline-flex;align-items:center;flex-direction:row;gap:8px;padding-block:calc(4px + (var(--mdw-density) * 2px));padding-inline:calc(12px + (var(--mdw-density) * 2px));color:rgb(var(--mdw-ink))}:host(:where([icon])){padding-inline-start:calc(8px + (var(--mdw-density) * 2px))}:host(:where([avatar])){padding-inline-start:calc(4px + (var(--mdw-density) * 2px))}:host(:where([close-button]:not([disabled]):not([readonly]))){padding-inline-end:calc(8px + 18px + 8px + (var(--mdw-density) * 2px))}#action{--mdw-shape__size:inherit;position:absolute;inset:0;padding:0}#close{position:absolute;inset-inline-end:5px;padding:3px;font-size:18px}#icon{font-size:18px}#icon[avatar]{font-size:24px}#close::part(control){min-inline-size:34px}#outline{--mdw-ink:rgb(var(--mdw-color__on-surface-variant))}#outline:is([ink],[color],[disabled]){--mdw-ink:inherit}:host([disabled]){color:rgba(var(--mdw-color__on-surface),.38)}`.childEvents({action:{click(){this.dispatchEvent(new Event("action"))}},close:{click(){this.dispatchEvent(new Event("close"))}}}).on({selectedChanged(t,e){let i=this.refs.action;i._focused=e}}).recompose(({refs:{anchor:t,slot:e,icon:i,outline:r}})=>{i.after(e),t.remove(),e.setAttribute("disabled","{disabled}"),e.removeAttribute("ink"),e.removeAttribute("color"),r.removeAttribute("mdw-if"),r.setAttribute("ink","{ink}"),r.setAttribute("color","{color}"),r.setAttribute("disabled","{disabled}")}).autoRegister("mdw-input-chip");var co=j.extend().mixin(Fe).css`:host{font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__label-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-label");var Nt=j.extend().mixin(K).mixin(B).set({_ariaRole:"list",color:{empty:"surface"}}).css`:host{display:block;padding-block:8px;color:rgb(var(--mdw-ink))}`.autoRegister("mdw-list");function Wi(t){return t.observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string"}).css`:host{--mdw-shape__size:0px;--mdw-shape__ltr:calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl:calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__mask:none;--mdw-shape__rounded:1;--mdw-shape__inline-start-deg:calc(var(--mdw-dir, 1) * -90deg);--mdw-shape__size__top-start-size:var(--mdw-shape__size);--mdw-shape__size__top-end-size:var(--mdw-shape__size);--mdw-shape__size__bottom-start-size:var(--mdw-shape__size);--mdw-shape__size__bottom-end-size:var(--mdw-shape__size);--mdw-shape__size__top-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));border-start-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-end-size))}:host([shape-style=none]){--mdw-shape__size:0px}:host([shape-style=extra-small]){--mdw-shape__size:var(--mdw-shape__extra-small)}:host([shape-style=small]){--mdw-shape__size:var(--mdw-shape__small)}:host([shape-style=medium]){--mdw-shape__size:var(--mdw-shape__medium)}:host([shape-style=large]){--mdw-shape__size:var(--mdw-shape__large)}:host([shape-style=extra-large]){--mdw-shape__size:var(--mdw-shape__extra-large)}:host([shape-style=full]){--mdw-shape__size:var(--mdw-shape__full)}:host([shape-style=inherit]){--mdw-shape__size:inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-shape__mask:linear-gradient(transparent 50%, black 50%)}:host([shape-bottom]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__top-end-size:0px;--mdw-shape__mask:linear-gradient(black 50%, transparent 50%)}:host([shape-start]){--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-shape__mask:linear-gradient(var(--mdw-shape__inline-start-deg), black 50%, transparent 50%)}:host([shape-end]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px;--mdw-shape__mask:linear-gradient(var(--mdw-shape__inline-start-deg), transparent 50%, black 50%)}@supports (-webkit-mask-box-image:none){:host{--mdw-shape__rounded:inherit}}@supports (-webkit-mask-box-image:none){:host{-webkit-mask-box-image:var(--mdw-shape__mask-border-source) 8 fill/var(--mdw-shape__size) stretch;-webkit-mask:var(--mdw-shape__mask);transition-duration:.2s;transition-property:-webkit-mask-box-image-width;will-change:-webkit-mask-box-image}}`}var po=f.extend().mixin(Wi).html`<slot id=slot></slot>`.autoRegister("mdw-shape");var mo=f.extend().mixin(x).mixin(E).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean",hovered:"boolean",focused:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).html`<mdw-shape id=inner-shape selected={selected}></mdw-shape>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{selected}")}).css`:host{--disabled-opacity:.38;--mdw-ink:rgb(var(--mdw-color__primary));--color:rgb(var(--mdw-color__on-surface-variant));--mdw-shape__size:var(--mdw-shape__full);position:relative;display:inline-block;block-size:20px;inline-size:20px;background-color:transparent;transition:opacity .2s}#outline{border-width:2px;color:var(--color);will-change:color}#inner-shape{position:absolute;inset:0;transform:scale(0);background-color:var(--color);border-radius:inherit;transition:transform .2s,background-color .1s}:host([hovered]){--color:rgb(var(--mdw-color__on-surface))}:host([focused]){--color:rgb(var(--mdw-color__on-surface))}:host([selected]){--color:rgb(var(--mdw-ink))}:host([errored]){--color:rgb(var(--mdw-color__error))}:host([disabled]){--color:rgba(var(--mdw-color__on-surface));opacity:var(--disabled-opacity)}#inner-shape[selected]{transform:scale(.5)}`.autoRegister("mdw-radio-icon");var Dt=f.extend().mixin(x).mixin(N).mixin(J).mixin(B).mixin(re).set({_ariaRole:"listitem",stateLayer:!0}).observe({leading:"string",avatar:"string",avatarColor:{value:"primary-container"},avatarSrc:"string",src:"string",alt:"string",icon:"string",iconInk:"string",iconSrc:"string",iconVariation:"string",checkbox:"string",radio:"string",selectionColor:{value:"primary"},selected:"boolean",supporting:"string",trailing:"string",trailingIcon:"string",trailingIconInk:"string",trailingIconSrc:"string",divider:"string",video:"boolean",lines:"integer",_supportingSlotted:"boolean"}).observe({disabledState({disabled:t}){return t}}).expressions({isInteractive({href:t}){return t!=null},hasSupporting(){return!!(this.supporting||this._supportingSlotted)},checkboxClass(){return this.checkbox||"leading"},radioClass(){return this.radio||"leading"},computedIconVariation({iconVariation:t}){return t??"filled"}}).html`<mdw-checkbox-icon id=checkbox mdw-if={checkbox} aria-hidden=true class={checkboxClass} color={selectionColor} disabled={disabledState} icon=check selected={selected}></mdw-checkbox-icon><mdw-radio-icon id=radio mdw-if={radio} aria-hidden=true class={radioClass} disabled={disabledState} ink={selectionColor} selected={selected}></mdw-radio-icon><mdw-box mdw-if={avatar} id=avatar color={avatarColor} x=center y=center type-style=title-medium src={AvatarSrc} aria-hidden=true>{avatar}</mdw-box><mdw-icon mdw-if={icon} id=icon ink={iconInk} src={iconSrc} aria-hidden=true icon={icon} variation={computedIconVariation}></mdw-icon><img id=img mdw-if={src} src={src} alt={alt} video={video}><slot name=leading>{leading}</slot><div id=content has-supporting={hasSupporting} lines={lines}><slot id=slot></slot><slot id=supporting name=supporting class=text lines={lines}>{supporting}</slot></div><mdw-icon mdw-if={trailingIcon} id=trailing-icon ink={trailingIconInk} src={trailingIconSrc} aria-hidden=true icon={trailingIcon}></mdw-icon><slot id=trailing name=trailing role=note>{trailing}</slot><mdw-divider mdw-if={divider} id=divider divider={divider}></mdw-divider>`.recompose(({refs:{state:t,rippleContainer:e,anchor:i}})=>{i.setAttribute("mdw-if","{href}"),i.setAttribute("aria-labelledby","content"),i.append(t,e),t.setAttribute("state-disabled","focus hover")}).on({disabledStateChanged(t,e){this.updateAriaProperty("ariaDisabled",e?"true":"false")}}).css`:host{--mdw-shape__size:0px;display:flex;align-items:center;gap:16px;border:none;padding-block:8px;padding-inline:16px;cursor:auto;outline:0;color:inherit;text-decoration:none}:host(:where([color])){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([ink]){color:rgb(var(--mdw-ink))}:host([href]){cursor:pointer}#anchor{position:absolute;inset:0;outline:0;color:inherit}:host([video]){padding-inline-start:0}:host([lines="3"]){align-items:flex-start;padding-block:12px}#content{display:inline-flex;align-items:flex-start;flex-direction:column;justify-content:center;flex:1;padding-block:calc(8px + (var(--mdw-density) * 2px))}#content:is([has-supporting],[lines="2"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(4px + var(--mdw-density) * 2px)}#content:is([lines="3"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(0 + var(--mdw-density) * 2px)}#icon,#trailing-icon{font-size:24px}#divider{position:absolute;inset-block-end:0;inset-inline:0;display:block;color:rgb(var(--mdw-color__surface-container-highest))}#divider[divider=inset]{padding-inline:16px 24px}#slot{max-block-size:var(--mdw-typescale__body-large__line-height) * 2;color:var(--mdw-color__on-surface);font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#supporting{max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#trailing{color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__label-small__font);letter-spacing:var(--mdw-typescale__label-small__letter-spacing)}#slot,#supporting{display:block;overflow-x:hidden;overflow-y:hidden;text-align:start;text-overflow:ellipsis;text-transform:none;white-space:normal;word-break:break-word}#supporting[lines="2"]{min-block-size:var(--mdw-typescale__body-medium__line-height);max-block-size:var(--mdw-typescale__body-medium__line-height)}#supporting[lines="3"]{min-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2)}@supports (width:1lh){#slot{max-block-size:1lh}#supporting{max-block-size:2lh}#supporting[lines="2"]{min-block-size:1lh;max-block-size:1lh}#supporting[lines="3"]{min-block-size:2lh;max-block-size:2lh}}@supports (-webkit-line-clamp:1){#slot{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#supporting{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#supporting[lines="2"]{-webkit-line-clamp:1}}#avatar{block-size:40px;inline-size:40px;border-radius:50%}#img{block-size:56px;max-block-size:56px;inline-size:56px;max-inline-size:56px;object-fit:cover;object-position:center center}#img[video]{block-size:64px;max-block-size:64px;inline-size:114px;max-inline-size:114px}#checkbox{margin:3px}#radio{margin:2px}.trailing{order:1}:host([disabled]){opacity:.38;color:rgb(var(--mdw-color__on-surface))}`.childEvents({supporting:{slotchange({currentTarget:t}){this._supportingSlotted=t.assignedNodes().length!==0}}}).autoRegister("mdw-list-item");var ue=Dt.extend().mixin(L).setStatic({formAssociated:!0}).set({_ariaRole:"none",_index:-1,_selectedDirty:!1,isInteractive:!0}).observe({_label:{attr:"label",reflect:!0,nullParser:String},_text:{attr:"text",reflect:!0,nullParser:String},defaultSelected:{attr:"selected",reflect:!0,type:"boolean"},_selected:"boolean",_value:{attr:"value",reflect:!0},_formDisabled:"boolean"}).observe({selected:{reflect:!1,type:"boolean",get({_selectedDirty:t,defaultSelected:e,_selected:i}){return t?i:e},set(t){this._selectedDirty=!0,this._selected=t}},disabledState({_formDisabled:t,disabled:e}){return t?!0:!!e}}).define({index(){return this._index},form(){var t;return(t=this.parentElement)==null?void 0:t.form},text:{get(){return this._text??this.textContent},set(t){this._text=t}},label:{get(){return this._label??this._text??this.textContent},set(t){this._label=t}},value:{get(){return this._value??this.textContent},set(t){this._value=t}}}).methods({formDisabledCallback(t){this._formDisabled=t},focus(...t){this.refs.anchor.focus(...t)}}).expressions({anchorAriaLabelledBy({_label:t}){return t?null:"content"},anchorAriaDescribedBy({_label:t}){return t?"content":null},computedIconVariation({iconVariation:t,selected:e}){return t??(e?"filled":null)}}).recompose(({inline:t,refs:{checkbox:e,radio:i,anchor:r,state:o,content:n}})=>{r.setAttribute("disabled","{disabledState}"),r.setAttribute("role","option"),r.setAttribute("aria-disabled",t(({disabledState:s})=>`${s}`)),r.setAttribute("tabindex","0"),r.setAttribute("aria-selected",t(({selected:s})=>`${s}`)),r.setAttribute("selected","{selected}"),r.setAttribute("aria-labelledby","{anchorAriaLabelledBy}"),r.setAttribute("aria-describedby","{anchorAriaDescribedBy}"),r.setAttribute("aria-label","{_label}"),r.removeAttribute("href"),r.removeAttribute("mdw-if"),e.setAttribute("mdw-if",t(({checkbox:s,icon:l})=>!l&&s)),i.setAttribute("mdw-if",t(({radio:s,icon:l})=>!l&&s)),n.setAttribute("aria-hidden","true"),n.setAttribute("selected","{selected}"),o.setAttribute("state-disabled","focus")}).on({selectedChanged(t,e){this.classList.toggle("mdw-list-option__selected",e),this.dispatchEvent(new Event("mdw-list-option:changed",{bubbles:!0,composed:!0}))}}).css`:host{--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container);cursor:pointer;z-index:0}:host([hidden]){display:none}:host([href]){cursor:pointer}:host([disabled]){cursor:not-allowed;pointer-events:none}#content{-webkit-user-select:none;user-select:none;pointer-events:none}#content[selected]{color:rgb(var(--mdw-ink))}#anchor{z-index:-1}#anchor[selected]{background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}`.extend(t=>class extends t{constructor(e,i,r,o){super(),e!==void 0&&(this.text=e),i!==void 0&&(this._value=i),r!==void 0&&(this.defaultSelected=r),o!==void 0&&(this._selected=o)}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||(this.tabIndex=0)}}).autoRegister("mdw-list-option");function uo({host:t,collection:e,OptionConstructor:i,GroupConstructor:r}){let o=function(a,c){let d,p=-1;typeof c=="number"?c>=0&&c<e.length-1&&(p=c):c instanceof HTMLElement&&(d=c),p!==-1&&(d=e.item(p)),d?d.before(a):t.append(a)},n=function(a){var c;(c=e.item(a))==null||c.remove()};return Object.defineProperty(e,"selectedIndex",{get(){for(let l=0;l<e.length;l++)if(e[l].selected)return l;return-1},set(l){for(let a=0;a<e.length;a++)e[a].selected=a===l}}),new Proxy(e,{get(l,a,c){switch(a){case"add":return o;case"remove":return n;default:return l[a]}},set(l,a,c,d){let p=Number.NaN;switch(typeof a){case"string":p=Number.parseInt(a,10);break;case"number":p=a;break;default:case"symbol":return Reflect.set(l,a,c,d)}if(Number.isNaN(p))return Reflect.set(l,a,c,d);let h=e.length;for(;p>e.length;)o(new i);p===h?c!=null&&o(c):p>=0&&(n(p),c!==null&&o(c,p))}})}var ho=Nt.extend().mixin(N).mixin(me).mixin(ee).mixin(L).observe({multiple:"boolean",size:{type:"integer",empty:0}}).set({_ariaRole:"listbox",_optionsCollection:null,_selectedOptionsCollection:null,_handlingSelectedness:!1,_handleFormReset:!0}).define({options(){if(!this._optionsCollection){let t=this.getElementsByTagName(ue.elementName);this._optionsCollection=uo({host:this,collection:t,OptionConstructor:ue,GroupConstructor:ue})}return this._optionsCollection},selectedOptions(){return this._selectedOptionsCollection??=this.getElementsByClassName("mdw-list-option__selected")},type(){return this.multiple?"select-multiple":"select-one"},kbdNavQuery(){return ue.elementName},kbdNavFocusableWhenDisabled(){return!0}}).define({length(){return this.options.length},selectedIndex:{get(){let[t]=this.selectedOptions;return t?Array.prototype.indexOf.call(this.options,t):-1},set(t){let e=this.options[t];this._handlingSelectedness=!0;for(let i of this.options)i.selected=i===e;this._handlingSelectedness=!1,this._value=this.value}},value:{get(){var t;return((t=this.selectedOptions[0])==null?void 0:t.value)??""},set(t){let e="",i=`${t}`;this._handlingSelectedness=!0;for(let r of this.options)(r.selected=r.value===i)&&(e=i);this._handlingSelectedness=!1,this._value=e}},add(){return this.options.add}}).on({disabledStateChanged(t,e){this._kbdFocusable=!e,this.tabIndex=e?-1:0},multipleChanged(t,e){this.updateAriaProperty("ariaMultiSelectable",e?"true":"false")},_formResetChanged(t,e){e&&this._handleFormReset&&(this.value=this.defaultValue)},connected(){this.hasAttribute("tabindex")||(this.tabIndex=0)}}).methods({*_selectedOptionsGenerator(){for(let t of this.options)t.selected&&(yield t)},*[Symbol.iterator](){for(let t of this.options)yield t},focus(){this.focusCurrentOrFirst()},item(t){return this.options[t]},namedItem(t){for(let e of this.options)if(e.id===t)return e;return null},onListboxClick(t){let e=t.target;if(!(e instanceof ue))return;t.stopImmediatePropagation(),t.stopPropagation();let i=e;if(i.disabledState)return;let r=!1;if(this._handlingSelectedness=!0,i.selected)(!this.required||this.multiple&&this.selectedOptions.length>1)&&(r=!0,i.selected=!1);else{if(!this.multiple)for(let o of this.selectedOptions)o.selected=!1;i.selected=!0,r=!0}this._value=this.value,this._handlingSelectedness=!1,this._updateFormAssociatedValue(),r&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}).css`:host(:disabled){cursor:not-allowed;pointer-events:none}:host([internals-disabled]){cursor:not-allowed;pointer-events:none}`.events({"mdw-list-option:changed"(t){if(t.stopPropagation(),this.multiple||this._handlingSelectedness)return;let e=t.target;if(!e.selected){this._handlingSelectedness=!0;for(let i of this.selectedOptions)i!==e&&(i.selected=!1);this._value=this.value,this._handlingSelectedness=!1}},focus(){this.focusCurrentOrFirst()},keydown(t){if(t.key==="Spacebar"||t.key===" "){if(!(t.target instanceof ue))return;t.stopPropagation(),t.preventDefault(),this.onListboxClick.call(this,t)}},click:"onListboxClick"}).childEvents({slot:{slotchange(){this.refreshTabIndexes();let t=0;for(let e of this.options)e._index=t++;this._value=this.value}}}).autoRegister("mdw-listbox");var _o=f.extend().mixin(x).mixin(X).mixin(E).mixin(De).mixin(K).mixin(ee).set({flow:"corner",_useScrim:!1,_cascader:null,_submenu:null}).define({kbdNavChildren(){let t=[...this.querySelectorAll("mdw-menu-item")],e=[...this.querySelectorAll(":scope mdw-menu mdw-menu-item")];return t.filter(i=>!e.includes(i))},_dialog(){return this.refs.dialog},cascader:{get(){var t;return(t=this._cascader)==null?void 0:t.deref()},set(t){this._cascader=t?new WeakRef(t):null}},submenu:{get(){var t;return(t=this._submenu)==null?void 0:t.deref()},set(t){this._submenu=t?new WeakRef(t):null}}}).recompose(({refs:{scrim:t}})=>{t.setAttribute("invisible","")}).css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);display:block;inline-size:auto;min-inline-size:calc(var(--mdw-menu__inline-base) * 2);max-inline-size:100vw;filter:var(--mdw-elevation__drop-shadow__2);background-color:rgb(var(--mdw-bg))}#form{display:contents}`.methods({showModal(...t){this._useScrim=!0;let e=this.showPopup(...t);return this._useScrim=!1,e},focus(){let[t]=this.kbdNavChildren;U(t)||this.focusNext(t)},cascade(t){this.cascader=t,this.showPopup(t,!0,"adjacent")}}).events({"mdw-menu-item:cascade"(t){let e=t.target,i=t.detail;t.stopPropagation();let o=this.getRootNode().getElementById(i);this.submenu=o,o.cascade(e)},"mdw-menu-item:cascader-blur"(){let t=this.submenu;t&&queueMicrotask(()=>{t&&t.matches(":focus-within,:focus")||t.close(!1)})},"~click"(t){this===t.target&&(t.stopPropagation(),this.close(!0))},keydown(t){if(this.open)switch(t.key){case"Tab":this.close()||(t.stopPropagation(),t.preventDefault());break;case"ArrowLeft":case"ArrowRight":if(getComputedStyle(this).direction==="rtl"){if(t.key==="ArrowLeft")break}else if(t.key==="ArrowRight")break;case"Escape":case"Esc":t.stopPropagation(),t.preventDefault(),this.close(!0);break;default:}},focusout(){this.open&&(this.modal||queueMicrotask(()=>{if(this.matches(":focus-within"))return;let{cascader:t,submenu:e}=this;t&&t.matches(":is(:focus-within,:focus)")||e&&e.matches(":is(:focus-within,:focus)")||this.close(!1)}))}}).autoRegister("mdw-menu");var fo=ue.extend().mixin(me).set({_cascadeTimeout:null,CASCADE_TIMEOUT:500,_cascading:!1}).define({type(){return this.radio!=null?"radio":this.checkbox!=null?"checkbox":null}}).observe({cascades:"string",_defaultValue:{attr:"value",reflect:!0,nullParser:String,empty:null}}).observe({defaultValue:{reflect:!1,get(){return this._defaultValue??""},set(t){this._defaultValue=t}},value:{reflect:!1,get(){return this._defaultValue??"on"},set(t){this._defaultValue=t}}}).overrides({formIPCEvent(t){if(t.target instanceof HTMLFormElement&&t.target!==this.form||this.type!=="radio")return;let[e,i]=t.detail;this.name===e&&i!==this.value&&(this.selected=!1)}}).expressions({computeTrailingIcon({trailingIcon:t,cascades:e}){return!t&&e?"arrow_right":t}}).methods({unscheduleCascade(){clearTimeout(this._cascadeTimeout),this._cascadeTimeout=null},scheduleCascade(){this._cascadeTimeout||(this._cascadeTimeout=setTimeout(this.cascade.bind(this),this.CASCADE_TIMEOUT))},cascade(){this.unscheduleCascade(),this._cascading=!0,this.dispatchEvent(new CustomEvent("mdw-menu-item:cascade",{detail:this.cascades,bubbles:!0})),this._cascading=!1}}).on({_selectedChanged(t,e){e?(this.elementInternals.setFormValue(this.value),this.type==="radio"&&this._notifyRadioChange(this.name,this.value)):this.elementInternals.setFormValue(null),this._selectedDirty&&this.dispatchEvent(new Event("change",{bubbles:!0}))}}).events({mouseenter(){this.disabledState||(de(this)||this.focus(),this.cascades&&this.scheduleCascade())},mouseout:"unscheduleCascade","~click"(){if(!this.disabledState){if(this.type==="radio"){if(this.required)return;this.selected=!0}else if(this.type==="checkbox"){if(this.required)return;this.selected=!this.selected;return}this.cascades&&this.cascade()}},keydown(t){if(!this.disabledState)switch(t.key){case"Enter":case" ":t.stopPropagation(),t.preventDefault(),this.click();break;case"ArrowLeft":case"ArrowRight":if(!this.cascades)break;if(getComputedStyle(this).direction==="rtl"){if(t.key==="ArrowRight")break}else if(t.key==="ArrowLeft")break;t.stopPropagation(),t.preventDefault(),this.cascade();break;default:}},blur(){this.cascades&&(this._cascading||this.dispatchEvent(new CustomEvent("mdw-menu-item:cascader-blur",{detail:this.cascades,bubbles:!0})))}}).recompose(({inline:t,html:e,refs:{checkbox:i,radio:r,anchor:o,trailing:n,trailingIcon:s}})=>{i.remove(),r.remove(),o.setAttribute("role",t(({checkbox:l,radio:a})=>l!=null?"menuitemcheckbox":a!=null?"menuitemradio":"menuitem")),o.setAttribute("ariaChecked",o.getAttribute("aria-selected")),o.after(e`
|
|
194
194
|
<mdw-icon id=selection
|
|
195
195
|
mdw-if=${({checkbox:l,radio:a})=>l??a??!1}
|
|
196
196
|
class=${({checkbox:l,radio:a})=>l||a||"leading"}
|
|
197
197
|
selected={selected} icon=check></mdw-icon>
|
|
198
|
-
`),n.setAttribute("type-style","label-large"),s.setAttribute("mdw-if","{computeTrailingIcon}"),s.setAttribute("icon","{computeTrailingIcon}")}).on({_formResetChanged(t,e){e&&(this._selected=this.defaultSelected)}}).css`:host{gap:12px;padding-inline:12px;cursor:pointer;white-space:nowrap}#content{padding-block:calc(4px + (var(--mdw-density) * 2px))}#icon{transition-duration:.1s;transition-property:opacity;will-change:opacity}#icon,#trailing{color:rgb(var(--mdw-color__on-surface-variant))}#selection{opacity:0;font-size:18px}#selection.trailing{font-size:24px}#selection[selected]{opacity:1}:host([disabled]){cursor:not-allowed}#anchor[selected]{background-color:transparent;color:inherit}#content[selected]{color:inherit}`.autoRegister("mdw-menu-item");var
|
|
198
|
+
`),n.setAttribute("type-style","label-large"),s.setAttribute("mdw-if","{computeTrailingIcon}"),s.setAttribute("icon","{computeTrailingIcon}")}).on({_formResetChanged(t,e){e&&(this._selected=this.defaultSelected)}}).css`:host{gap:12px;padding-inline:12px;cursor:pointer;white-space:nowrap}#content{padding-block:calc(4px + (var(--mdw-density) * 2px))}#icon{transition-duration:.1s;transition-property:opacity;will-change:opacity}#icon,#trailing{color:rgb(var(--mdw-color__on-surface-variant))}#selection{opacity:0;font-size:18px}#selection.trailing{font-size:24px}#selection[selected]{opacity:1}:host([disabled]){cursor:not-allowed}#anchor[selected]{background-color:transparent;color:inherit}#content[selected]{color:inherit}`.autoRegister("mdw-menu-item");var he=f.extend().mixin(x).mixin(N).mixin(J).mixin(re).mixin(L).set({stateLayer:!0}).observe({showLabel:"string",active:"boolean",icon:"string",src:"string",badge:"string",ariaLabel:"string"}).methods({focus(...t){this.refs.anchor.focus(...t)}}).expressions({_anchorAriaCurrent({active:t}){return t?"page":null},_anchorAriaLabelledby({ariaLabel:t}){return t?null:"slot"},_anchorHref({href:t}){return t??"#"},iconVariation({active:t}){return t?"filled":null},_customRippleState({active:t}){return t?null:"complete"}}).html`<mdw-icon id=icon aria-hidden=true src={src} active={active} icon={icon} variation={iconVariation}></mdw-icon><slot id=slot active={active} show-label={showLabel} aria-hidden=true></slot><mdw-badge part=badge id=badge badge={badge} show-label={showLabel} aria-hidden=true>{badge}</mdw-badge>`.recompose(({html:t,refs:{anchor:e,state:i,rippleContainer:r}})=>{e.setAttribute("aria-current","{_anchorAriaCurrent}"),e.setAttribute("aria-describedby","badge"),e.setAttribute("aria-label","{ariaLabel}"),e.setAttribute("aria-labelledby","{_anchorAriaLabelledby}"),e.setAttribute("href","{_anchorHref}"),e.before(t`
|
|
199
199
|
<mdw-shape id=shape active={active} shape-style=full>
|
|
200
200
|
<mdw-ripple id=ripple ripple-origin=center keep-alive hold-ripple ripple-state={_customRippleState}></mdw-ripple>
|
|
201
201
|
${i}
|
|
202
202
|
${r}
|
|
203
203
|
</mdw-shape>
|
|
204
|
-
`)}).css`:host{--mdw-badge__scale:0;--mdw-shape__size:var(--mdw-shape__full);--mdw-nav-item__offset-y:0;position:relative;display:grid;align-content:center;align-items:flex-start;grid-auto-flow:row;grid-auto-rows:minmax(20px,min-content);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:[icon] minmax(56px,1fr);justify-items:center;row-gap:4px;box-sizing:border-box;padding-inline:0;cursor:pointer;-webkit-user-select:none;user-select:none;font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__label-large__letter-spacing);text-align:center}:host(:not([color])){--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container)}:host([color]){background-color:transparent;color:rgb(var(--mdw-color__on-surface-variant))}#slot{display:contents;align-items:center;flex-direction:column;grid-area:label;justify-content:center;grid-column:1/4;grid-row:2;flex:1;cursor:inherit;outline:0;transform:translateY(var(--mdw-nav-item__offset-y));color:rgb(var(--mdw-color__on-surface-variant));transition:opacity,color,transform .2s;will-change:opacity,transform}#anchor{position:absolute;inset:0;outline:0;z-index:5}#shape{position:absolute;inset:50% auto auto 50%;overflow:hidden;block-size:100%;inline-size:100%;max-inline-size:56px;grid-column:icon;grid-row:1/1;transform:translate(-50%) translateY(-50%) translateY(var(--mdw-nav-item__offset-y));background-color:transparent;transition:transform .2s;will-change:transform}#icon{position:relative;align-self:center;grid-area:icon;transform:translateY(var(--mdw-nav-item__offset-y));z-index:3;color:rgb(var(--mdw-color__on-surface-variant));font-size:24px;transition:transform .2s;will-change:transform}#state{z-index:2}#badge{--mdw-badge__scale:0;position:absolute;top:50%;left:50%;overflow:hidden;max-inline-size:50%;grid-column:1/4;grid-row:1/2;transform:translateY(-100%) translateY(var(--mdw-nav-item__offset-y)) scale(var(--mdw-badge__scale));z-index:4;text-align:start;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;transition:transform .2s;will-change:transform}#badge[badge]{--mdw-badge__scale:1}#ripple{opacity:1;color:rgb(var(--mdw-bg))}#ripple-container{z-index:1}#shape[active],#icon[active]{color:rgb(var(--mdw-ink))}#slot[active]{color:inherit}:host([show-label]){--mdw-nav-item__offset-y:12px}:host([show-label=active][active]){--mdw-nav-item__offset-y:0}`.childEvents({anchor:{click(){return this.href!=null},keydown({key:t,repeat:e}){return t!==" "?!0:(e||this.click(),!1)}}}).extend(t=>class extends t{addRipple(...i){return this.active?super.addRipple(...i):null}}).autoRegister("mdw-nav-item");var bo=f.extend().mixin(L).mixin(x).observe({open:"boolean",autoClose:{type:"float",empty:728}}).set({color:"surface-container",_ariaRole:"navigation"}).html`<slot id=slot></slot>`.css`:host{--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);display:none;align-content:flex-start;align-items:flex-start;gap:8px;grid-auto-columns:minmax(48px,1fr);grid-auto-flow:column;overflow:hidden;box-sizing:border-box;min-block-size:80px;inline-size:100%;pointer-events:auto;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing);text-align:center}:host(:where([open])){display:grid}`.methods({onWindowResize(){let{autoClose:t}=this,e=window.innerWidth;this.open=t===-1||e<t}}).events({"~click"(t){if(t.target!==this&&t.target instanceof ue)for(let e of this.querySelectorAll("*"))e instanceof ue&&(e.active=e===t.target)}}).on({constructed(){window.addEventListener("resize",this.onWindowResize.bind(this))},connected(){this.onWindowResize()}}).autoRegister("mdw-nav-bar");var go=ue.extend().css`:host{grid-auto-rows:minmax(20px,min-content);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:auto [icon] minmax(56px,1fr) auto;padding-block:12px}#slot{display:block}:host(:empty){font-size:0;line-height:0}#slot[show-label]{grid-column:1/4;grid-row:2;opacity:0}#shape{grid-column:2;grid-row:1/1}#slot[show-label=never]{block-size:0}#slot[show-label=active][active]{opacity:1}`.autoRegister("mdw-nav-bar-item");var Gn="onscrollend"in window,Ue=f.extend().mixin(x).mixin(de).mixin(U).mixin(E).mixin(B).mixin(L).mixin(Y).observe({fixed:"boolean",open:"boolean",inlineEnd:"boolean",_lastComputedInlineSize:{type:"float",nullable:!1},_animationDuration:{type:"integer",value:0},_animationEasing:{value:"ease-out"},_dragDeltaX:"float",_dragStartX:"float",_translateX:{value:"-100%"},_lastChildScrollTime:"float",ontoggle:ee,onclose:ee,autoOpen:{type:"float",empty:-1},autoClose:{type:"float",empty:-1},fixedBreakpoint:{type:"float",empty:0},_isSideSheetRtl:"boolean",color:"string",fixedColor:"string"}).set({_scrim:null}).observe({_styles:{...se,get({fixed:t,fixedColor:e}){if(t&&e)return{backgroundColor:`rgb(var(--mdw-color__${e}))`}}},hostStyles:{...te,get({open:t,fixed:e,_isSideSheetRtl:i,_lastComputedInlineSize:r,_translateX:o,_animationDuration:n,_animationEasing:s}){let l=t||!e?0:`${-1*r}px`;return{styles:{marginLeft:i?0:l,marginRight:i?l:0,transform:e?"none":`translateX(${o})`},timing:{duration:n,easing:s}}}}}).html`<slot id=slot></slot>`.methods({checkForScrim(t=!1){let{open:e,fixed:i,_scrim:r}=this;e&&!i?(r||(r=new Lt,r.addEventListener("click",()=>{this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!0}))||(this.open=!0)}),this._scrim=r),this.before(r),r.hidden=!1):r&&(t||r.remove(),r.hidden=!0)},checkDragFinished(){let{open:t,_dragDeltaX:e,_lastComputedInlineSize:i,fixed:r,_isSideSheetRtl:o}=this;if(!t||r||e==null)return;let n=(e+i)/i;n<.5?(this._animationDuration=200*n,this._animationEasing="ease-out",this._translateX=o?"-100%":"100%",this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!1}))):(this._animationDuration=250*(.5*n),this._translateX="0",this._animationEasing="ease-in")},onWindowResize(){let{autoOpen:t,fixedBreakpoint:e,autoClose:i}=this,r=window.innerWidth,o=r>=e;this.open=o&&t>=0&&r>=t&&(i===-1||r<i),this.fixed=o}}).overrides({onResizeObserved(t){var e;this._lastComputedInlineSize=(e=t.borderBoxSize[0])==null?void 0:e.inlineSize}}).events({"~touchstart"(t){if(!t.touches.length)return;let{open:e,fixed:i,_isSideSheetRtl:r}=this;if(!e||i)return;let[{clientX:o,pageX:n}]=t.touches;o??=n-window.scrollX,this._dragStartX=r?window.innerWidth-o:o,this._dragDeltaX=0},"~touchmove"({touches:t}){if(!t.length)return;let{open:e,fixed:i,_lastChildScrollTime:r,_dragStartX:o,_isSideSheetRtl:n}=this;if(!e||i||o==null||r&&performance.now()-r<=(Gn?5e3:500))return;let[{clientX:s,pageX:l}]=t;s??=l-window.scrollX;let a=Math.min(n?window.innerWidth-s-o:s-o,0);this._animationDuration=0,this._dragDeltaX=a,this._translateX=`${n?-1*a:a}px`},touchcancel:"checkDragFinished","~touchend":"checkDragFinished","*~scroll"(){this.fixed||(this.checkDragFinished(),this._lastChildScrollTime=performance.now(),this._dragStartX=null,this._dragDeltaX=null)},"*scrollend"(){this.fixed||(this._lastChildScrollTime=null)}}).on({openChanged(t,e){this._animationDuration=e?250:200,this._translateX=e?"0":this.inlineEnd?"100%":"-100%",this._animationEasing=e?"ease-in":"ease-out",this.checkForScrim(!0),this.dispatchEvent(new Event("toggle"))},fixedChanged(){this._animationDuration=0,this.checkForScrim(!1)},constructed(){window.addEventListener("resize",this.onWindowResize.bind(this))},connected(){this.onWindowResize()},inlineEndChanged(t,e){this._isSideSheetRtl=he(this)?!e:e,this._translateX=this.open?"0":this.inlineEnd?"100%":"-100%"}}).css`:host{--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface-variant);position:fixed;inset-block:0;inset-inline:0 auto;display:inline-flex;overflow-y:auto;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;block-size:100vh;block-size:100dvh;min-block-size:100vh;min-block-size:100dvh;max-block-size:100%;max-inline-size:calc(100vw - 56px);grid-column:1;transform:translate(-100%);visibility:hidden;z-index:24;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:visibility .2s;will-change:transform,margin-inline-start,margin-inline-end,visibility}:host(:where([open])){visibility:inherit;transition-delay:0s}:host(:where[inline-end]){inset-inline:auto 0;transform:translate(100%)}:host(:where([fixed])){position:sticky;inset-inline:auto;max-inline-size:none;transform:none;z-index:auto}:host(:where([inline-end][fixed])){grid-column:3}`.autoRegister("mdw-side-sheet");var wo=Ue.extend().observe({shapeEnd:{type:"boolean",empty:!0},autoOpen:{type:"float",empty:1248},fixedBreakpoint:{type:"float",empty:1248}}).css`:host{--mdw-shape__size:var(--mdw-shape__large, 16px);--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px;--mdw-nav-item__badge__position:static;--mdw-nav-item__badge__transform:none;--mdw-nav-item__badge__grid-area:badge;--mdw-nav-item__label__padding-block:18px;--mdw-nav-item__label__padding-inline:52px 0;--mdw-nav-item__anchor__display:block;--mdw-nav-item__indicator__grid-area:auto;display:inline-block;inline-size:360px;max-inline-size:calc(100vw - 56px);padding-inline:12px}::slotted(mdw-divider){padding-inline:16px}`.autoRegister("mdw-nav-drawer");var xo=ue.extend().css`:host{align-self:stretch;display:flex;align-items:center;gap:12px;grid-template:"icon label badge" minmax(56px,min-content)/24px 1fr minmax(0,min-content);justify-items:flex-start;min-block-size:56px;padding-inline:16px 24px}#icon{grid-area:icon}#slot{display:block;text-align:start}:host([active]){color:rgb(var(--mdw-ink))}#shape{max-inline-size:none;grid-column:auto;grid-row:1/2}#badge-text{z-index:1}`.recompose(({html:t,refs:{badge:e}})=>{e.replaceWith(t`<span id=badge-text>{badge}</span>`)}).autoRegister("mdw-nav-drawer-item");var vo=Ue.extend().observe({align:{value:null},autoOpen:{type:"float",empty:728},autoClose:{type:"float",empty:1248},fixedBreakpoint:{type:"float",empty:728}}).recompose(({html:t,refs:{slot:e}})=>{e.before(t`<slot id=start name=start></slot>`),e.setAttribute("align","{align}")}).css`:host{align-self:flex-start;display:inline-grid;align-content:flex-start;flex-direction:column;gap:0;grid-template-rows:auto minmax(auto,1fr);grid-template-columns:100%;justify-items:stretch;overscroll-behavior:none;overscroll-behavior:contain;min-block-size:0;text-align:center}#start{display:flex;align-items:center;flex-direction:column;gap:12px;justify-content:center}#slot{align-self:center;display:flex;align-items:stretch;flex-direction:column;gap:12px;box-sizing:border-box;max-block-size:100%;inline-size:min-content}#slot[align=start]{align-self:flex-start}#slot[align=end]{align-self:flex-end}`.autoRegister("mdw-nav-rail");var yo=ue.extend().css`:host{grid-auto-flow:row;grid-auto-rows:minmax(20px,auto);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:[icon] minmax(72px,1fr);min-block-size:56px;flex:none;padding-inline:4px;font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing)}#slot{display:contents;overflow-wrap:anywhere;word-break:break-all;word-break:break-word}#badge{max-inline-size:40px;grid-column:1/2}`.autoRegister("mdw-nav-rail-item");var ko=f.extend().mixin(L).mixin(Y).observe({paneOne:{value:"flexible"},paneTwo:{value:null},paneTwoActive:"boolean",paneTwoBreakpoint:{type:"float",empty:720},_lastComputedInlineSize:{type:"float",nullable:!1}}).observe({_isMultipane({_lastComputedInlineSize:t,paneTwo:e,paneTwoBreakpoint:i}){return!!(e&&t>=i)}}).observe({_styles:{...se,get({_isMultipane:t,paneOne:e,paneTwoActive:i}){return t?`:host{grid-template-columns:${e==="fixed"?"360px":"1fr"} ${this.paneTwo==="fixed"?"360px":"1fr"}}`:i?":host{grid-template-columns:1fr 0}#slot{display:none}":":host{grid-template-columns:1fr 0}#two{display:none}"}}}).html`<slot id=slot mutli-pane={_isMultipane}></slot><slot id=two name=two mutli-pane={_isMultipane}></slot>`.css`:host{--mdw-pane__max-width:1040px;--mdw-pane__margin-inline:16px;--mdw-pane__padding-inline:max(var(--mdw-pane__margin-inline), calc((100% - var(--mdw-pane__max-width)) / 2));--mdw-pane__padding-block:16px;--mdw-pane__padding:var(--mdw-pane__padding-block) var(--mdw-pane__padding-inline);--mdw-pane__shape__size:0;display:grid;column-gap:var(--mdw-page__margin);grid-auto-columns:1fr;grid-auto-flow:column;block-size:100%;padding:0;font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}@media(min-width:648px){:host{--mdw-pane__margin-inline:24px;--mdw-pane__padding-block:24px}}@media(min-width:728px){:host{--mdw-pane__shape__size:var(--mdw-shape__large)}}#slot[multi-pane]{--mdw-pane__padding-inline:24px}#two[mutli-pane]{--mdw-pane__padding-inline:0 24px;position:sticky;inset-block:0;display:flex;flex-direction:column;overflow-y:auto;block-size:100vh;block-size:100dvh}`.overrides({onResizeObserved(t){var e;this._lastComputedInlineSize=(e=t.borderBoxSize[0])==null?void 0:e.inlineSize}}).autoRegister("mdw-page");var So=j.extend().mixin(E).css`:host{--mdw-shape__size:var(--mdw-pane__shape__size, 0);--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}`.autoRegister("mdw-pane");var Co=f.extend().mixin(x).observe({circle:"boolean",value:"float",max:"float",autoHide:"boolean",_determinateStyle:"string"}).observe({_valueAsFraction:{type:"float",get({value:t,max:e}){return t/(e||100)},changedCallback(t,e){this._determinateStyle=`
|
|
204
|
+
`)}).css`:host{--mdw-badge__scale:0;--mdw-shape__size:var(--mdw-shape__full);--mdw-nav-item__offset-y:0;position:relative;display:grid;align-content:center;align-items:flex-start;grid-auto-flow:row;grid-auto-rows:minmax(20px,min-content);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:[icon] minmax(56px,1fr);justify-items:center;row-gap:4px;box-sizing:border-box;padding-inline:0;cursor:pointer;-webkit-user-select:none;user-select:none;font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__label-large__letter-spacing);text-align:center}:host(:not([color])){--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container)}:host([color]){background-color:transparent;color:rgb(var(--mdw-color__on-surface-variant))}#slot{display:contents;align-items:center;flex-direction:column;grid-area:label;justify-content:center;grid-column:1/4;grid-row:2;flex:1;cursor:inherit;outline:0;transform:translateY(var(--mdw-nav-item__offset-y));color:rgb(var(--mdw-color__on-surface-variant));transition:opacity,color,transform .2s;will-change:opacity,transform}#anchor{position:absolute;inset:0;outline:0;z-index:5}#shape{position:absolute;inset:50% auto auto 50%;overflow:hidden;block-size:100%;inline-size:100%;max-inline-size:56px;grid-column:icon;grid-row:1/1;transform:translate(-50%) translateY(-50%) translateY(var(--mdw-nav-item__offset-y));background-color:transparent;transition:transform .2s;will-change:transform}#icon{position:relative;align-self:center;grid-area:icon;transform:translateY(var(--mdw-nav-item__offset-y));z-index:3;color:rgb(var(--mdw-color__on-surface-variant));font-size:24px;transition:transform .2s;will-change:transform}#state{z-index:2}#badge{--mdw-badge__scale:0;position:absolute;top:50%;left:50%;overflow:hidden;max-inline-size:50%;grid-column:1/4;grid-row:1/2;transform:translateY(-100%) translateY(var(--mdw-nav-item__offset-y)) scale(var(--mdw-badge__scale));z-index:4;text-align:start;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;transition:transform .2s;will-change:transform}#badge[badge]{--mdw-badge__scale:1}#ripple{opacity:1;color:rgb(var(--mdw-bg))}#ripple-container{z-index:1}#shape[active],#icon[active]{color:rgb(var(--mdw-ink))}#slot[active]{color:inherit}:host([show-label]){--mdw-nav-item__offset-y:12px}:host([show-label=active][active]){--mdw-nav-item__offset-y:0}`.childEvents({anchor:{click(){return this.href!=null},keydown({key:t,repeat:e}){return t!==" "?!0:(e||this.click(),!1)}}}).extend(t=>class extends t{addRipple(...i){return this.active?super.addRipple(...i):null}}).autoRegister("mdw-nav-item");var bo=f.extend().mixin(L).mixin(x).observe({open:"boolean",autoClose:{type:"float",empty:728}}).set({color:"surface-container",_ariaRole:"navigation"}).html`<slot id=slot></slot>`.css`:host{--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);display:none;align-content:flex-start;align-items:flex-start;gap:8px;grid-auto-columns:minmax(48px,1fr);grid-auto-flow:column;overflow:hidden;box-sizing:border-box;min-block-size:80px;inline-size:100%;pointer-events:auto;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing);text-align:center}:host(:where([open])){display:grid}`.methods({onWindowResize(){let{autoClose:t}=this,e=window.innerWidth;this.open=t===-1||e<t}}).events({"~click"(t){if(t.target!==this&&t.target instanceof he)for(let e of this.querySelectorAll("*"))e instanceof he&&(e.active=e===t.target)}}).on({constructed(){window.addEventListener("resize",this.onWindowResize.bind(this))},connected(){this.onWindowResize()}}).autoRegister("mdw-nav-bar");var go=he.extend().css`:host{grid-auto-rows:minmax(20px,min-content);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:auto [icon] minmax(56px,1fr) auto;padding-block:12px}#slot{display:block}:host(:empty){font-size:0;line-height:0}#slot[show-label]{grid-column:1/4;grid-row:2;opacity:0}#shape{grid-column:2;grid-row:1/1}#slot[show-label=never]{block-size:0}#slot[show-label=active][active]{opacity:1}`.autoRegister("mdw-nav-bar-item");var Gn="onscrollend"in window,Ue=f.extend().mixin(x).mixin(pe).mixin(X).mixin(E).mixin(B).mixin(L).mixin(W).observe({fixed:"boolean",open:"boolean",inlineEnd:"boolean",_lastComputedInlineSize:{type:"float",nullable:!1},_animationDuration:{type:"integer",value:0},_animationEasing:{value:"ease-out"},_dragDeltaX:"float",_dragStartX:"float",_translateX:{value:"-100%"},_lastChildScrollTime:"float",ontoggle:te,onclose:te,autoOpen:{type:"float",empty:-1},autoClose:{type:"float",empty:-1},fixedBreakpoint:{type:"float",empty:0},_isSideSheetRtl:"boolean",color:"string",fixedColor:"string"}).set({_scrim:null}).observe({_styles:{...ae,get({fixed:t,fixedColor:e}){if(t&&e)return{backgroundColor:`rgb(var(--mdw-color__${e}))`}}},hostStyles:{...ie,get({open:t,fixed:e,_isSideSheetRtl:i,_lastComputedInlineSize:r,_translateX:o,_animationDuration:n,_animationEasing:s}){let l=t||!e?0:`${-1*r}px`;return{styles:{marginLeft:i?0:l,marginRight:i?l:0,transform:e?"none":`translateX(${o})`},timing:{duration:n,easing:s}}}}}).html`<slot id=slot></slot>`.methods({checkForScrim(t=!1){let{open:e,fixed:i,_scrim:r}=this;e&&!i?(r||(r=new Lt,r.addEventListener("click",()=>{this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!0}))||(this.open=!0)}),this._scrim=r),this.before(r),r.hidden=!1):r&&(t||r.remove(),r.hidden=!0)},checkDragFinished(){let{open:t,_dragDeltaX:e,_lastComputedInlineSize:i,fixed:r,_isSideSheetRtl:o}=this;if(!t||r||e==null)return;let n=(e+i)/i;n<.5?(this._animationDuration=200*n,this._animationEasing="ease-out",this._translateX=o?"-100%":"100%",this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!1}))):(this._animationDuration=250*(.5*n),this._translateX="0",this._animationEasing="ease-in")},onWindowResize(){let{autoOpen:t,fixedBreakpoint:e,autoClose:i}=this,r=window.innerWidth,o=r>=e;this.open=o&&t>=0&&r>=t&&(i===-1||r<i),this.fixed=o}}).overrides({onResizeObserved(t){var e;this._lastComputedInlineSize=(e=t.borderBoxSize[0])==null?void 0:e.inlineSize}}).events({"~touchstart"(t){if(!t.touches.length)return;let{open:e,fixed:i,_isSideSheetRtl:r}=this;if(!e||i)return;let[{clientX:o,pageX:n}]=t.touches;o??=n-window.scrollX,this._dragStartX=r?window.innerWidth-o:o,this._dragDeltaX=0},"~touchmove"({touches:t}){if(!t.length)return;let{open:e,fixed:i,_lastChildScrollTime:r,_dragStartX:o,_isSideSheetRtl:n}=this;if(!e||i||o==null||r&&performance.now()-r<=(Gn?5e3:500))return;let[{clientX:s,pageX:l}]=t;s??=l-window.scrollX;let a=Math.min(n?window.innerWidth-s-o:s-o,0);this._animationDuration=0,this._dragDeltaX=a,this._translateX=`${n?-1*a:a}px`},touchcancel:"checkDragFinished","~touchend":"checkDragFinished","*~scroll"(){this.fixed||(this.checkDragFinished(),this._lastChildScrollTime=performance.now(),this._dragStartX=null,this._dragDeltaX=null)},"*scrollend"(){this.fixed||(this._lastChildScrollTime=null)}}).on({openChanged(t,e){this._animationDuration=e?250:200,this._translateX=e?"0":this.inlineEnd?"100%":"-100%",this._animationEasing=e?"ease-in":"ease-out",this.checkForScrim(!0),this.dispatchEvent(new Event("toggle"))},fixedChanged(){this._animationDuration=0,this.checkForScrim(!1)},constructed(){window.addEventListener("resize",this.onWindowResize.bind(this))},connected(){this.onWindowResize()},inlineEndChanged(t,e){this._isSideSheetRtl=_e(this)?!e:e,this._translateX=this.open?"0":this.inlineEnd?"100%":"-100%"}}).css`:host{--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface-variant);position:fixed;inset-block:0;inset-inline:0 auto;display:inline-flex;overflow-y:auto;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;block-size:100vh;block-size:100dvh;min-block-size:100vh;min-block-size:100dvh;max-block-size:100%;max-inline-size:calc(100vw - 56px);grid-column:1;transform:translate(-100%);visibility:hidden;z-index:24;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:visibility .2s;will-change:transform,margin-inline-start,margin-inline-end,visibility}:host(:where([open])){visibility:inherit;transition-delay:0s}:host(:where[inline-end]){inset-inline:auto 0;transform:translate(100%)}:host(:where([fixed])){position:sticky;inset-inline:auto;max-inline-size:none;transform:none;z-index:auto}:host(:where([inline-end][fixed])){grid-column:3}`.autoRegister("mdw-side-sheet");var wo=Ue.extend().observe({shapeEnd:{type:"boolean",empty:!0},autoOpen:{type:"float",empty:1248},fixedBreakpoint:{type:"float",empty:1248}}).css`:host{--mdw-shape__size:var(--mdw-shape__large, 16px);--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px;--mdw-nav-item__badge__position:static;--mdw-nav-item__badge__transform:none;--mdw-nav-item__badge__grid-area:badge;--mdw-nav-item__label__padding-block:18px;--mdw-nav-item__label__padding-inline:52px 0;--mdw-nav-item__anchor__display:block;--mdw-nav-item__indicator__grid-area:auto;display:inline-block;inline-size:360px;max-inline-size:calc(100vw - 56px);padding-inline:12px}::slotted(mdw-divider){padding-inline:16px}`.autoRegister("mdw-nav-drawer");var xo=he.extend().css`:host{align-self:stretch;display:flex;align-items:center;gap:12px;grid-template:"icon label badge" minmax(56px,min-content)/24px 1fr minmax(0,min-content);justify-items:flex-start;min-block-size:56px;padding-inline:16px 24px}#icon{grid-area:icon}#slot{display:block;text-align:start}:host([active]){color:rgb(var(--mdw-ink))}#shape{max-inline-size:none;grid-column:auto;grid-row:1/2}#badge-text{z-index:1}`.recompose(({html:t,refs:{badge:e}})=>{e.replaceWith(t`<span id=badge-text>{badge}</span>`)}).autoRegister("mdw-nav-drawer-item");var vo=Ue.extend().observe({align:{value:null},autoOpen:{type:"float",empty:728},autoClose:{type:"float",empty:1248},fixedBreakpoint:{type:"float",empty:728}}).recompose(({html:t,refs:{slot:e}})=>{e.before(t`<slot id=start name=start></slot>`),e.setAttribute("align","{align}")}).css`:host{align-self:flex-start;display:inline-grid;align-content:flex-start;flex-direction:column;gap:0;grid-template-rows:auto minmax(auto,1fr);grid-template-columns:100%;justify-items:stretch;overscroll-behavior:none;overscroll-behavior:contain;min-block-size:0;text-align:center}#start{display:flex;align-items:center;flex-direction:column;gap:12px;justify-content:center}#slot{align-self:center;display:flex;align-items:stretch;flex-direction:column;gap:12px;box-sizing:border-box;max-block-size:100%;inline-size:min-content}#slot[align=start]{align-self:flex-start}#slot[align=end]{align-self:flex-end}`.autoRegister("mdw-nav-rail");var yo=he.extend().css`:host{grid-auto-flow:row;grid-auto-rows:minmax(20px,auto);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:[icon] minmax(72px,1fr);min-block-size:56px;flex:none;padding-inline:4px;font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing)}#slot{display:contents;overflow-wrap:anywhere;word-break:break-all;word-break:break-word}#badge{max-inline-size:40px;grid-column:1/2}`.autoRegister("mdw-nav-rail-item");var ko=f.extend().mixin(L).mixin(W).observe({paneOne:{value:"flexible"},paneTwo:{value:null},paneTwoActive:"boolean",paneTwoBreakpoint:{type:"float",empty:720},_lastComputedInlineSize:{type:"float",nullable:!1}}).observe({_isMultipane({_lastComputedInlineSize:t,paneTwo:e,paneTwoBreakpoint:i}){return!!(e&&t>=i)}}).observe({_styles:{...ae,get({_isMultipane:t,paneOne:e,paneTwoActive:i}){return t?`:host{grid-template-columns:${e==="fixed"?"360px":"1fr"} ${this.paneTwo==="fixed"?"360px":"1fr"}}`:i?":host{grid-template-columns:1fr 0}#slot{display:none}":":host{grid-template-columns:1fr 0}#two{display:none}"}}}).html`<slot id=slot mutli-pane={_isMultipane}></slot><slot id=two name=two mutli-pane={_isMultipane}></slot>`.css`:host{--mdw-pane__max-width:1040px;--mdw-pane__margin-inline:16px;--mdw-pane__padding-inline:max(var(--mdw-pane__margin-inline), calc((100% - var(--mdw-pane__max-width)) / 2));--mdw-pane__padding-block:16px;--mdw-pane__padding:var(--mdw-pane__padding-block) var(--mdw-pane__padding-inline);--mdw-pane__shape__size:0;display:grid;column-gap:var(--mdw-page__margin);grid-auto-columns:1fr;grid-auto-flow:column;block-size:100%;padding:0;font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}@media(min-width:648px){:host{--mdw-pane__margin-inline:24px;--mdw-pane__padding-block:24px}}@media(min-width:728px){:host{--mdw-pane__shape__size:var(--mdw-shape__large)}}#slot[multi-pane]{--mdw-pane__padding-inline:24px}#two[mutli-pane]{--mdw-pane__padding-inline:0 24px;position:sticky;inset-block:0;display:flex;flex-direction:column;overflow-y:auto;block-size:100vh;block-size:100dvh}`.overrides({onResizeObserved(t){var e;this._lastComputedInlineSize=(e=t.borderBoxSize[0])==null?void 0:e.inlineSize}}).autoRegister("mdw-page");var So=j.extend().mixin(E).css`:host{--mdw-shape__size:var(--mdw-pane__shape__size, 0);--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}`.autoRegister("mdw-pane");var Co=f.extend().mixin(x).observe({circle:"boolean",value:"float",max:"float",autoHide:"boolean",_determinateStyle:"string"}).observe({_valueAsFraction:{type:"float",get({value:t,max:e}){return t/(e||100)},changedCallback(t,e){this._determinateStyle=`
|
|
205
205
|
--previous:${t??e??0};
|
|
206
206
|
--value:${e??0};
|
|
207
|
-
`}}}).expressions({isDeterminate({value:t}){return t!=null}}).define({position(){return this.refs.progress.position},labels(){return this.refs.progress.labels}}).html`<div id=determinate style={_determinateStyle}><progress id=progress value={value} max={max} circle={circle}></progress><div mdw-if={circle} id=circle><div id=semi1 class=semi></div><div id=semi2 class=semi></div></div></div><div mdw-if={!isDeterminate} id=indeterminate><div mdw-if={!circle} id=indeterminate-line><div id=line1 class=line value={value}></div><div id=line2 class=line value={value}></div></div><div mdw-if={circle} id=indeterminate-circle><div id=arc2 class=arc></div><div id=arc3 class=arc></div><div id=arc4 class=arc></div></div></div>`.css`:host{--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__primary);--mdw-progress__opacity__duration:.5s;position:relative;display:inline-block;overflow:hidden;vertical-align:middle;min-block-size:4px;inline-size:100%;opacity:1;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:opacity .5s 275ms}:host([auto-hide]){will-change:opacity}:host([auto-hide][value="100"]){opacity:0;transition:opacity 1s 1s}#determinate{--previous:0;--value:0}#progress{position:absolute;inset:0;box-sizing:border-box;block-size:100%;inline-size:100%;border:none;-moz-appearance:none;appearance:none;opacity:0;transform:scaleX(var(--value,0));transform-origin:0 0;background-color:currentColor;color:inherit;transition:transform 275ms,opacity var(--mdw-progress__opacity__duration);will-change:transform,opacity}#progress::-webkit-progress-bar{display:none}#progress::-moz-progress-bar{display:none;block-size:0}#progress[value]{opacity:1;transform:scaleX(var(--value,0))}`.css`:host{--mdw-progress__line1-head__timing:cubic-bezier(.2, .8, 0, 1);--mdw-progress__line1-tail__timing:cubic-bezier(.4, 0, 1, 1);--mdw-progress__line2-head__timing:cubic-bezier(0, .65, 0, 1);--mdw-progress__line2-tail__timing:cubic-bezier(.1, .45, 0, 1);--mdw-progress__line__duration:1.8s}@media(prefers-reduced-motion){:host{--mdw-progress__line__duration:18s}}.line{opacity:1;transition:opacity var(--mdw-progress__opacity__duration);will-change:opacity}.line,.line:after{position:absolute;inset:0;overflow:hidden;animation-duration:var(--mdw-progress__line__duration);animation-timing-function:linear;animation-iteration-count:infinite;animation-fill-mode:forwards}.line:after{content:"";background-color:currentColor;animation:inherit;will-change:transform}#line1{animation-name:l1h}#line2{animation-name:l2h}#line1:after{animation-name:l1t}#line2:after{animation-name:l2t}.line[value]{opacity:0;visibility:hidden;transition:opacity var(--mdw-progress__opacity__duration),visibility 1ms var(--mdw-progress__opacity__duration)}@keyframes l1h{0%{transform:translate(0)}70.4%{transform:translate(0);animation-timing-function:var(--mdw-progress__line1-head__timing)}to{transform:translate(100%)}}@keyframes l1t{0%{transform:translate(-100%)}55.6%{transform:translate(-100%);animation-timing-function:var(--mdw-progress__line1-tail__timing)}87.1%{transform:translate(0)}to{transform:translate(0)}}@keyframes l2h{0%{transform:translate(0)}18.5%{transform:translate(0);animation-timing-function:var(--mdw-progress__line2-head__timing)}65.72%{transform:translate(100%)}to{transform:translate(100%)}}@keyframes l2t{0%{transform:translate(-100%);animation-timing-function:var(--mdw-progress__line2-tail__timing)}41.67%{transform:translate(0)}to{transform:translate(0)}}`.css`:host{--mdw-progress__circle__timing:cubic-bezier(.4, 0, .2, 1);--mdw-progress__circle__margin:4px;--mdw-progress__circle__duration:5.4s;--mdw-progress__circle__duration__expand:667ms;--mdw-progress__circle__duration__collapse:667ms;--mdw-progress__circle__duration__fade-in:333ms;--mdw-progress__circle__duration__complete-end:333ms}@media(prefers-reduced-motion){:host{--mdw-progress__circle__duration:54s}}#circle{--startA:min(.5, var(--previous));--endA:min(.5, var(--value));--travelA:max( calc(var(--startA) - var(--endA)), calc(var(--endA) - var(--startA)) );--delayA:max(0, calc(var(--previous) - .5));--startB:max(0, calc(var(--previous) - .5));--endB:max(0, calc(var(--value) - .5));--travelB:max( calc(var(--startB) - var(--endB)), calc(var(--endB) - var(--startB)) );--delayB:max(0, .5 - calc(var(--previous)));position:absolute;inset:0}:host([circle]){block-size:48px;inline-size:48px}:host([circle]:not([color])){background-color:transparent}#progress[circle]{visibility:hidden}.semi{position:absolute;inset:var(--mdw-progress__circle__margin);overflow:hidden;box-sizing:border-box}#semi1{left:50%}#semi2{right:50%}.semi:after{content:"";position:absolute;inset:0;box-sizing:border-box;border:solid currentcolor 4px;transform:rotate(var(--rotation));background-color:transparent;border-radius:50%;transition:transform .4s;transition-timing-function:linear}#semi1:after{--rotation:min(180deg, calc(var(--value) * 360deg));left:-100%;clip-path:inset(0 50% 0 0);transition-delay:calc(var(--delayA) * var(--mdw-progress__circle__duration__expand));transition-duration:calc(var(--travelA) * var(--mdw-progress__circle__duration__expand))}#semi2:after{--rotation:max(0deg, calc(var(--value) * 360deg - 180deg));right:-100%;clip-path:inset(0 0 0 50%);transition-delay:calc(var(--delayB) * var(--mdw-progress__circle__duration__expand));transition-duration:calc(var(--travelB) * var(--mdw-progress__circle__duration__expand))}#indeterminate-circle{position:absolute;inset:0;display:block;animation:rotate-cw calc(var(--mdw-progress__circle__duration)/ 4) linear infinite}.arc{position:absolute;inset:var(--mdw-progress__circle__margin);overflow:hidden;box-sizing:border-box;animation:rotate-jump var(--mdw-progress__circle__duration) steps(1,end) infinite}.arc:after{content:"";position:absolute;inset:0;box-sizing:border-box;border:solid currentcolor 4px;background-color:transparent;border-radius:50%;animation:grow-shrink calc(var(--mdw-progress__circle__duration)/ 4) var(--mdw-progress__circle__timing) infinite}#arc2{bottom:50%;left:50%;transform-origin:0 100%}#arc3{top:50%;right:50%;transform-origin:100% 0}#arc4{top:50%;left:50%;transform-origin:0 0}#arc2:after{bottom:-100%;left:-100%;clip-path:polygon(0% 0%,50% 0%,50% 50%,100% 50%,100% 100%,0% 100%)}#arc3:after{top:-100%;right:-100%;clip-path:inset(0 50% 50% 0)}#arc4:after{top:-100%;left:-100%;clip-path:inset(0 50% 0 0)}@keyframes rotate-cw{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-jump{0%{transform:scaleX(1) rotate(0)}12.5%{transform:scaleX(-1) rotate(-270deg)}25%{transform:scaleX(1) rotate(270deg)}37.5%{transform:scaleX(-1) rotate(-180deg)}50%{transform:scaleX(1) rotate(180deg)}62.5%{transform:scaleX(-1) rotate(-90deg)}75%{transform:scaleX(1) rotate(90deg)}87.5%{transform:scaleX(-1) rotate(0)}to{transform:scaleX(1) rotate(0)}}@keyframes grow-shrink{0%{transform:rotate(3.6deg)}50%{transform:rotate(262.8deg)}to{transform:rotate(3.6deg)}}`.autoRegister("mdw-progress");var zo=f.extend().mixin(x).mixin(N).mixin(Q).mixin(K).mixin(we).set({type:"radio",stateLayer:!0}).html`<div id=radio errored={erroredState} selected={checked}><mdw-radio-icon id=icon errored={erroredState} disabled={disabledState} selected={checked} focused={focusedState} hovered={hoveredState}></mdw-radio-icon></div><slot id=slot></slot>`.rootEvents({click(t){let{control:e}=this.refs;t.target!==e&&(t.stopPropagation(),e.click())}}).recompose(({refs:{radio:t,rippleContainer:e,state:i}})=>{t.append(i,e)}).css`:host{--mdw-ink:var(--mdw-color__primary);--mdw-shape__size:var(--mdw-shape__full);display:inline-grid;align-items:baseline;gap:12px;grid-auto-flow:column;grid-template-rows:minmax(20px,auto);grid-template-columns:20px;justify-content:flex-start;cursor:pointer;transition:none .1s cubic-bezier(.4,0,1,1)}:host(:disabled){cursor:not-allowed;opacity:.38}:host([internals-disabled]){cursor:not-allowed;opacity:.38}:host(:empty){vertical-align:-11.5%;line-height:20px}#control{grid-column:1/1;cursor:inherit}#state{pointer-events:auto}#ripple-container,#state{top:50%;left:50%;block-size:40px;inline-size:40px;transform:translate(-50%) translateY(-50%);border-radius:50%}#radio{position:relative;display:inline-flex;grid-column:1/1;pointer-events:none;transform:translateY(11.5%);color:rgb(var(--mdw-color__on-surface))}#radio[selected]{color:rgb(var(--mdw-ink))}#radio[disabled]{color:rgb(var(--mdw-color__on-surface))}#radio[errored]{color:rgb(var(--mdw-color__error))}:host(:empty) #radio{transform:none}#icon{--mdw-ink:inherit;--disabled-opacity:1}`.autoRegister("mdw-radio");function ye(t){return t.observe({_scrollListenerPositionX:{type:"float",empty:0,reflect:!1},_scrollListenerPositionY:{type:"float",empty:0,reflect:!1},_scrollListenerLastIdle:{type:"float",empty:0},_scrollListenerLastScroll:{type:"float",empty:0},_scrollListenerLastResize:{type:"float",empty:0}}).set({_scroller:null,_scrollerScrollListener:null,_scrollerResizeListener:null,_scrollDebounce:null}).methods({_scrollListenerOnScrollIdle(){this._scrollListenerLastIdle=performance.now()},_scrollListenerOnScrollerScroll(e){this._scrollListenerPositionY=e.currentTarget===window?window.scrollY:e.currentTarget.scrollTop,this._scrollListenerPositionX=e.currentTarget===window?window.scrollX:e.currentTarget.scrollLeft,this._scrollListenerLastScroll=performance.now(),clearTimeout(this._scrollDebounce),this._scrollDebounce=setTimeout(()=>this._scrollListenerOnScrollIdle(),500)},_scrollListenerOnScrollerResize(e){this._scrollListenerLastResize=performance.now()},startScrollListener(e){return e??=window,e?(e===document.body&&(e=window),this._scroller=new WeakRef(e),this._scrollerScrollListener=this._scrollListenerOnScrollerScroll.bind(this),this._scrollerResizeListener=this._scrollListenerOnScrollerResize.bind(this),e.addEventListener("scroll",this._scrollerScrollListener,{passive:!0}),e.addEventListener("resize",this._scrollerResizeListener,{passive:!0}),this._scrollListenerPositionX=0,this._scrollListenerPositionY=0,!0):!1}}).define({_scrollListenerScroller(){return this._scroller.deref()}}).define({_scrollListenerScrollerScrollHeight(){let e=this._scrollListenerScroller;return e===window?document.documentElement.scrollHeight:e.scrollHeight},_scrollListenerScrollerClientHeight(){let e=this._scrollListenerScroller;return e===window?window.innerHeight:e.clientHeight}}).methods({_scrollListenerClear(e){var i;return e??=(i=this._scroller)==null?void 0:i.deref(),!e||!this._scrollerScrollListener?!1:(e.removeEventListener("scroll",this._scrollerScrollListener),!0)}})}var Eo=f.extend().mixin(ye).mixin(L).set({_bottomResizeObserver:null}).html`<slot id=start name=start></slot><div id=bottom><slot id=bottom-slot name=bottom></slot></div><div id=bottom-fixed><slot id=bottom-fixed-slot name=bottom-fixed></slot></div><slot id=slot></slot><slot id=end name=end></slot>`.observe({_bottomHeight:{type:"float",empty:0},_bottomOffsetY:{type:"float",empty:0},_bottomDuration:{type:"float",empty:0},_bottomEasing:{empty:"ease-in"}}).observe({_sharedBottomStyle({_bottomOffsetY:t,_bottomDuration:e,_bottomEasing:i,_bottomHeight:r}){return r?{styles:{transform:`translateY(${t}px)`},timing:{duration:e,easing:i}}:null}}).observe({_bottomSlotStyle:{...te,get({_sharedBottomStyle:t}){return t?{target:"bottom-slot",...t}:null}},_bottomFixedSlotStyle:{...te,get({_sharedBottomStyle:t}){return t?{target:"bottom-fixed-slot",...t}:null}}}).on({_scrollListenerPositionYChanged(t,e){let i=e-t;this._bottomDuration=0;let o=document.documentElement.scrollHeight-window.innerHeight-1-e,n=this._bottomHeight-o,s=0;n>0&&(s=n),this._bottomOffsetY=e===0||o<0?0:Math.max(0,Math.min(this._bottomOffsetY+i,this._bottomHeight-s))},_scrollListenerLastIdleChanged(){let{_bottomHeight:t,_bottomOffsetY:e}=this,i=(t-e)/t;if(!(i<=0)&&!(i>=1)){if(i<.5){let r=document.documentElement.scrollHeight-window.innerHeight-1,{_scrollListenerPositionY:o}=this,n=r-o,s=t-n;if(o!==0&&n>=0&&s<=0){this._bottomDuration=200,this._bottomEasing="ease-out",this._bottomOffsetY=t;return}}this._bottomDuration=250,this._bottomEasing="ease-in",this._bottomOffsetY=0}},connected(){(this._bottomResizeObserver??=new ResizeObserver(e=>{for(let{borderBoxSize:i}of e)this._bottomHeight=i[0].blockSize})).observe(this.refs.bottom),this.startScrollListener(window)},disconnected(){this._scrollListenerClear(),this._bottomResizeObserver.unobserve(this.refs.bottom)}}).css`:host{position:relative;display:grid;grid-template:"start top end" auto "start content end" minmax(auto,1fr) "start bottom end" auto/minmax(0px,auto) minmax(0px,100%) minmax(0px,auto);min-block-size:100vh;min-block-size:100dvh;font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#start{display:flex;grid-area:start}#slot{display:block;grid-area:content;overflow-x:clip}#end{display:none;grid-area:end;block-size:0}#bottom{position:sticky;inset-block-end:0;display:block;grid-area:bottom;overflow-y:hidden;pointer-events:none;z-index:1}#bottom-slot{position:sticky;inset-block-end:0;display:flex;flex-direction:column-reverse}#bottom-fixed{position:sticky;inset-block-end:0;display:block;grid-area:bottom;pointer-events:none;z-index:2}#bottom-fixed-slot{position:absolute;inset-block-end:100%;display:block}`.autoRegister("mdw-root");function lt(t){return t.mixin(ye).observe({_semiStickyHeight:{type:"float",empty:0},_semiStickyOffsetY:{type:"float",empty:0},_semiStickyTranslateY:{type:"float",empty:0},_semiStickyDuration:{type:"float",empty:0},_semiStickyEasing:{empty:"ease-in"},_semiStickyMeasured:"boolean",stickyAlways:"boolean",stickyParent:"boolean"}).methods({_refreshSemiStickyMetrics(){let e=window.getComputedStyle(this);this._semiStickyHeight=this.offsetHeight+Number.parseFloat(e.marginTop)+Number.parseFloat(e.marginBottom),this._semiStickyOffsetY=Number.parseFloat(e.marginTop),this._semiStickyMeasured=!0}}).observe({_semiStickyStyleStyle:{...te,get({_semiStickyMeasured:e,_semiStickyTranslateY:i,_semiStickyDuration:r,_semiStickyEasing:o}){return e?{styles:{transform:`translateY(${i}px)`},timing:{duration:r,easing:o}}:null}}}).on({_scrollListenerPositionYChanged(e,i){let r=i-e;this._semiStickyMeasured||this._refreshSemiStickyMetrics(),this._semiStickyDuration=0,this._semiStickyTranslateY=this.stickyAlways||i<this._semiStickyOffsetY?0:Math.min(Math.max(-this._semiStickyHeight,this._semiStickyTranslateY-r),0)},_scrollListenerLastIdleChanged(){if(this.stickyAlways)return;this._refreshSemiStickyMetrics();let e=this.offsetTop,o=(this._scrollListenerPositionY-e-this._semiStickyTranslateY)/this._semiStickyHeight;o<=0||o>=1||(o<=.5||e<this._semiStickyHeight?(this._semiStickyDuration=250,this._semiStickyEasing="ease-in",this._semiStickyTranslateY=0):(this._semiStickyDuration=200,this._semiStickyEasing="ease-out",this._semiStickyTranslateY=Math.max(this._semiStickyOffsetY-this._scrollListenerPositionY,-this._semiStickyHeight)))},connected(){this.startScrollListener(this.stickyParent?this.offsetParent:window)},disconnected(){this._scrollListenerClear()}})}var Vt=f.extend().mixin(x).mixin(E).mixin(Ne).mixin(lt).mixin(L).observe({_raised:"boolean",_headlineOpacity:{type:"float",default:0},headline:"string",size:{value:null},color:"string",raisedColor:"string"}).observe({_styles:{...se,get({raisedColor:t}){return t?`#raised-background:where([raised]){background-color:rgb(var(--mdw-color__${t}))}`:null}},_headlineStyle:{...te,get({size:t,_headlineOpacity:e}){return t!=="medium"&&t!=="large"?null:{target:"headline",styles:{opacity:e??0},timing:{duration:200}}}}}).expressions({_companionIf({size:t}){return t==="medium"||t==="large"}}).html`<div id=raised-background raised={_raised}></div><slot id=leading name=leading on-slotchange={refreshTabIndexes}></slot><div id=headline ink={ink} color={color} type-style={typeStyle} on-slotchange={refreshTabIndexes}>{headline}<slot id=headline-slot></slot></div><slot id=trailing name=trailing on-slotchange={refreshTabIndexes}></slot><div mdw-if={_companionIf} id=companion aria-hidden=true size={size} color={color} raised={_raised}><slot id=companion-slot name=companion size={size}>{headline}</slot></div>`.on({_scrollListenerPositionYChanged(t,e){if(this._raised=e>this._semiStickyOffsetY,this.size==="medium"||this.size==="large"){let i=this.refs.companion.scrollHeight,r=.5*i;this._headlineOpacity=Math.max(0,Math.min(1,(e-r)/(i-r)))}},_scrollListenerLastIdleChanged(){this._headlineOpacity>0&&(this._headlineOpacity=1)},_semiStickyTranslateYChanged(t,e){e===0&&(this._headlineOpacity=1)}}).css`:host{--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:sticky;inset-block-start:0;display:grid;align-items:center;gap:12px;grid-auto-flow:row;grid-template-rows:minmax(64px,min-content);grid-template-columns:minmax(auto,1fr) minmax(0,auto) minmax(auto,1fr);overflow-x:clip;overflow-y:visible;box-sizing:border-box;padding-inline:var(--mdw-pane__padding-inline,16px);pointer-events:auto;transform:translateY(0);z-index:5;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:grid-template-columns .1s;will-change:transform}#raised-background{position:absolute;inset:0;z-index:-1;background-color:transparent;transition:background-color .2s}#raised-background:where([raised]){background-color:rgb(var(--mdw-color__surface-container))}#leading{justify-self:flex-start;display:flex;align-items:center;grid-column:1;grid-row:1}#headline{display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;grid-row:1;font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing);text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition-duration:.2s;transition-property:transform,opacity,color,background-color}#trailing{justify-self:flex-end;display:flex;align-items:center;gap:8px;justify-content:flex-end;grid-column:3;grid-row:1;color:var(--mdw-color__on-surface-variant)}#companion{position:relative;display:flex;align-items:flex-end;margin-block-start:calc(28px - var(--mdw-typescale__headline-small__line-height));padding-block-end:20px;padding-inline:16px;background-color:rgb(var(--mdw-bg));box-shadow:none;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing);white-space:nowrap}#companion[size=large]{min-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height));margin-block-start:calc(68px - (2 * var(--mdw-typescale__headline-medium__line-height)));font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing);white-space:normal}@supports (width:1lh){#companion{margin-block-start:calc(28px - 1lh)}#companion[size=large]{min-block-size:2lh;margin-block-start:calc(68px - 2lh)}}#companion-slot{display:block;overflow-x:clip;overflow-y:hidden;text-overflow:ellipsis;text-transform:none;word-break:break-word}#companion-slot[size=large]{max-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height))}@supports (-webkit-line-clamp:2){#companion-slot[size=large]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-block-size:none}}#surface[size=small]{gap:4px;grid-template-columns:auto 1fr auto}#headline:is([size=medium],[size=large]){opacity:0;will-change:opacity}#companion:where([color=none],[color=transparent]),:host(:where([color=none],[color=transparent])){background-color:transparent}#companion[raised]:where([color=surface],[color=none],[color=transparent]){background-color:rgb(var(--mdw-color__surface-container))}`.autoRegister("mdw-top-app-bar");var Mo=Vt.extend().undefine("headline").undefine("size").undefine("_headlineStyle").observe({placeholder:{type:"string",empty:"Search"},color:{empty:"surface-container-high"},shapeStyle:{empty:"full"},kbdNav:{empty:"false"}}).define({input(){return this.refs.input.value},value:{get(){return this.refs.input.value},set(t){this.refs.input.value=t}}}).html`<mdw-input id=input placeholder={placeholder} aria-label={placeholder}></mdw-input>`.css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-shape__size:var(--mdw-shape__full);inset-block-start:8px;display:flex;align-items:center;gap:16px;margin-block:16px;padding-inline:16px;background-color:rgb(var(--mdw-bg))}#leading:not([slotted]),#trailing:not([slotted]){display:none}#input{--mdw-state__hovered-opacity:0;flex:1}`.methods({onSlotChange({currentTarget:t}){t.toggleAttribute("slotted",t.assignedNodes().length>=0)}}).childEvents({leading:{slotchange:"onSlotChange"},trailing:{slotchange:"onSlotChange"},input:{change(t){t.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))}}}).recompose(({refs:{companion:t,headline:e,input:i}})=>{t.remove(),e.replaceWith(i)}).autoRegister("mdw-search");var $t=_e.extend().observe({type:{empty:"radio"},innerSegmentedButton:"boolean"}).set({outlined:!0,focusableOnDisabled:!0}).recompose(({html:t,inline:e,refs:{icon:i,outline:r,control:o,slot:n,state:s}})=>{n.before(t`
|
|
207
|
+
`}}}).expressions({isDeterminate({value:t}){return t!=null}}).define({position(){return this.refs.progress.position},labels(){return this.refs.progress.labels}}).html`<div id=determinate style={_determinateStyle}><progress id=progress value={value} max={max} circle={circle}></progress><div mdw-if={circle} id=circle><div id=semi1 class=semi></div><div id=semi2 class=semi></div></div></div><div mdw-if={!isDeterminate} id=indeterminate><div mdw-if={!circle} id=indeterminate-line><div id=line1 class=line value={value}></div><div id=line2 class=line value={value}></div></div><div mdw-if={circle} id=indeterminate-circle><div id=arc2 class=arc></div><div id=arc3 class=arc></div><div id=arc4 class=arc></div></div></div>`.css`:host{--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__primary);--mdw-progress__opacity__duration:.5s;position:relative;display:inline-block;overflow:hidden;vertical-align:middle;min-block-size:4px;inline-size:100%;opacity:1;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:opacity .5s 275ms}:host([auto-hide]){will-change:opacity}:host([auto-hide][value="100"]){opacity:0;transition:opacity 1s 1s}#determinate{--previous:0;--value:0}#progress{position:absolute;inset:0;box-sizing:border-box;block-size:100%;inline-size:100%;border:none;-moz-appearance:none;appearance:none;opacity:0;transform:scaleX(var(--value,0));transform-origin:0 0;background-color:currentColor;color:inherit;transition:transform 275ms,opacity var(--mdw-progress__opacity__duration);will-change:transform,opacity}#progress::-webkit-progress-bar{display:none}#progress::-moz-progress-bar{display:none;block-size:0}#progress[value]{opacity:1;transform:scaleX(var(--value,0))}`.css`:host{--mdw-progress__line1-head__timing:cubic-bezier(.2, .8, 0, 1);--mdw-progress__line1-tail__timing:cubic-bezier(.4, 0, 1, 1);--mdw-progress__line2-head__timing:cubic-bezier(0, .65, 0, 1);--mdw-progress__line2-tail__timing:cubic-bezier(.1, .45, 0, 1);--mdw-progress__line__duration:1.8s}@media(prefers-reduced-motion){:host{--mdw-progress__line__duration:18s}}.line{opacity:1;transition:opacity var(--mdw-progress__opacity__duration);will-change:opacity}.line,.line:after{position:absolute;inset:0;overflow:hidden;animation-duration:var(--mdw-progress__line__duration);animation-timing-function:linear;animation-iteration-count:infinite;animation-fill-mode:forwards}.line:after{content:"";background-color:currentColor;animation:inherit;will-change:transform}#line1{animation-name:l1h}#line2{animation-name:l2h}#line1:after{animation-name:l1t}#line2:after{animation-name:l2t}.line[value]{opacity:0;visibility:hidden;transition:opacity var(--mdw-progress__opacity__duration),visibility 1ms var(--mdw-progress__opacity__duration)}@keyframes l1h{0%{transform:translate(0)}70.4%{transform:translate(0);animation-timing-function:var(--mdw-progress__line1-head__timing)}to{transform:translate(100%)}}@keyframes l1t{0%{transform:translate(-100%)}55.6%{transform:translate(-100%);animation-timing-function:var(--mdw-progress__line1-tail__timing)}87.1%{transform:translate(0)}to{transform:translate(0)}}@keyframes l2h{0%{transform:translate(0)}18.5%{transform:translate(0);animation-timing-function:var(--mdw-progress__line2-head__timing)}65.72%{transform:translate(100%)}to{transform:translate(100%)}}@keyframes l2t{0%{transform:translate(-100%);animation-timing-function:var(--mdw-progress__line2-tail__timing)}41.67%{transform:translate(0)}to{transform:translate(0)}}`.css`:host{--mdw-progress__circle__timing:cubic-bezier(.4, 0, .2, 1);--mdw-progress__circle__margin:4px;--mdw-progress__circle__duration:5.4s;--mdw-progress__circle__duration__expand:667ms;--mdw-progress__circle__duration__collapse:667ms;--mdw-progress__circle__duration__fade-in:333ms;--mdw-progress__circle__duration__complete-end:333ms}@media(prefers-reduced-motion){:host{--mdw-progress__circle__duration:54s}}#circle{--startA:min(.5, var(--previous));--endA:min(.5, var(--value));--travelA:max( calc(var(--startA) - var(--endA)), calc(var(--endA) - var(--startA)) );--delayA:max(0, calc(var(--previous) - .5));--startB:max(0, calc(var(--previous) - .5));--endB:max(0, calc(var(--value) - .5));--travelB:max( calc(var(--startB) - var(--endB)), calc(var(--endB) - var(--startB)) );--delayB:max(0, .5 - calc(var(--previous)));position:absolute;inset:0}:host([circle]){block-size:48px;inline-size:48px}:host([circle]:not([color])){background-color:transparent}#progress[circle]{visibility:hidden}.semi{position:absolute;inset:var(--mdw-progress__circle__margin);overflow:hidden;box-sizing:border-box}#semi1{left:50%}#semi2{right:50%}.semi:after{content:"";position:absolute;inset:0;box-sizing:border-box;border:solid currentcolor 4px;transform:rotate(var(--rotation));background-color:transparent;border-radius:50%;transition:transform .4s;transition-timing-function:linear}#semi1:after{--rotation:min(180deg, calc(var(--value) * 360deg));left:-100%;clip-path:inset(0 50% 0 0);transition-delay:calc(var(--delayA) * var(--mdw-progress__circle__duration__expand));transition-duration:calc(var(--travelA) * var(--mdw-progress__circle__duration__expand))}#semi2:after{--rotation:max(0deg, calc(var(--value) * 360deg - 180deg));right:-100%;clip-path:inset(0 0 0 50%);transition-delay:calc(var(--delayB) * var(--mdw-progress__circle__duration__expand));transition-duration:calc(var(--travelB) * var(--mdw-progress__circle__duration__expand))}#indeterminate-circle{position:absolute;inset:0;display:block;animation:rotate-cw calc(var(--mdw-progress__circle__duration)/ 4) linear infinite}.arc{position:absolute;inset:var(--mdw-progress__circle__margin);overflow:hidden;box-sizing:border-box;animation:rotate-jump var(--mdw-progress__circle__duration) steps(1,end) infinite}.arc:after{content:"";position:absolute;inset:0;box-sizing:border-box;border:solid currentcolor 4px;background-color:transparent;border-radius:50%;animation:grow-shrink calc(var(--mdw-progress__circle__duration)/ 4) var(--mdw-progress__circle__timing) infinite}#arc2{bottom:50%;left:50%;transform-origin:0 100%}#arc3{top:50%;right:50%;transform-origin:100% 0}#arc4{top:50%;left:50%;transform-origin:0 0}#arc2:after{bottom:-100%;left:-100%;clip-path:polygon(0% 0%,50% 0%,50% 50%,100% 50%,100% 100%,0% 100%)}#arc3:after{top:-100%;right:-100%;clip-path:inset(0 50% 50% 0)}#arc4:after{top:-100%;left:-100%;clip-path:inset(0 50% 0 0)}@keyframes rotate-cw{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-jump{0%{transform:scaleX(1) rotate(0)}12.5%{transform:scaleX(-1) rotate(-270deg)}25%{transform:scaleX(1) rotate(270deg)}37.5%{transform:scaleX(-1) rotate(-180deg)}50%{transform:scaleX(1) rotate(180deg)}62.5%{transform:scaleX(-1) rotate(-90deg)}75%{transform:scaleX(1) rotate(90deg)}87.5%{transform:scaleX(-1) rotate(0)}to{transform:scaleX(1) rotate(0)}}@keyframes grow-shrink{0%{transform:rotate(3.6deg)}50%{transform:rotate(262.8deg)}to{transform:rotate(3.6deg)}}`.autoRegister("mdw-progress");var zo=f.extend().mixin(x).mixin(N).mixin(J).mixin(Q).mixin(xe).set({type:"radio",stateLayer:!0}).html`<div id=radio errored={erroredState} selected={checked}><mdw-radio-icon id=icon errored={erroredState} disabled={disabledState} selected={checked} focused={focusedState} hovered={hoveredState}></mdw-radio-icon></div><slot id=slot></slot>`.rootEvents({click(t){let{control:e}=this.refs;t.target!==e&&(t.stopPropagation(),e.click())}}).recompose(({refs:{radio:t,rippleContainer:e,state:i}})=>{t.append(i,e)}).css`:host{--mdw-ink:var(--mdw-color__primary);--mdw-shape__size:var(--mdw-shape__full);display:inline-grid;align-items:baseline;gap:12px;grid-auto-flow:column;grid-template-rows:minmax(20px,auto);grid-template-columns:20px;justify-content:flex-start;cursor:pointer;transition:none .1s cubic-bezier(.4,0,1,1)}:host(:disabled){cursor:not-allowed;opacity:.38}:host([internals-disabled]){cursor:not-allowed;opacity:.38}:host(:empty){vertical-align:-11.5%;line-height:20px}#control{grid-column:1/1;cursor:inherit}#state{pointer-events:auto}#ripple-container,#state{top:50%;left:50%;block-size:40px;inline-size:40px;transform:translate(-50%) translateY(-50%);border-radius:50%}#radio{position:relative;display:inline-flex;grid-column:1/1;pointer-events:none;transform:translateY(11.5%);color:rgb(var(--mdw-color__on-surface))}#radio[selected]{color:rgb(var(--mdw-ink))}#radio[disabled]{color:rgb(var(--mdw-color__on-surface))}#radio[errored]{color:rgb(var(--mdw-color__error))}:host(:empty) #radio{transform:none}#icon{--mdw-ink:inherit;--disabled-opacity:1}`.autoRegister("mdw-radio");function ye(t){return t.observe({_scrollListenerPositionX:{type:"float",empty:0,reflect:!1},_scrollListenerPositionY:{type:"float",empty:0,reflect:!1},_scrollListenerLastIdle:{type:"float",empty:0},_scrollListenerLastScroll:{type:"float",empty:0},_scrollListenerLastResize:{type:"float",empty:0}}).set({_scroller:null,_scrollerScrollListener:null,_scrollerResizeListener:null,_scrollDebounce:null}).methods({_scrollListenerOnScrollIdle(){this._scrollListenerLastIdle=performance.now()},_scrollListenerOnScrollerScroll(e){this._scrollListenerPositionY=e.currentTarget===window?window.scrollY:e.currentTarget.scrollTop,this._scrollListenerPositionX=e.currentTarget===window?window.scrollX:e.currentTarget.scrollLeft,this._scrollListenerLastScroll=performance.now(),clearTimeout(this._scrollDebounce),this._scrollDebounce=setTimeout(()=>this._scrollListenerOnScrollIdle(),500)},_scrollListenerOnScrollerResize(e){this._scrollListenerLastResize=performance.now()},startScrollListener(e){return e??=window,e?(e===document.body&&(e=window),this._scroller=new WeakRef(e),this._scrollerScrollListener=this._scrollListenerOnScrollerScroll.bind(this),this._scrollerResizeListener=this._scrollListenerOnScrollerResize.bind(this),e.addEventListener("scroll",this._scrollerScrollListener,{passive:!0}),e.addEventListener("resize",this._scrollerResizeListener,{passive:!0}),this._scrollListenerPositionX=0,this._scrollListenerPositionY=0,!0):!1}}).define({_scrollListenerScroller(){return this._scroller.deref()}}).define({_scrollListenerScrollerScrollHeight(){let e=this._scrollListenerScroller;return e===window?document.documentElement.scrollHeight:e.scrollHeight},_scrollListenerScrollerClientHeight(){let e=this._scrollListenerScroller;return e===window?window.innerHeight:e.clientHeight}}).methods({_scrollListenerClear(e){var i;return e??=(i=this._scroller)==null?void 0:i.deref(),!e||!this._scrollerScrollListener?!1:(e.removeEventListener("scroll",this._scrollerScrollListener),!0)}})}var Eo=f.extend().mixin(ye).mixin(L).set({_bottomResizeObserver:null}).html`<slot id=start name=start></slot><div id=bottom><slot id=bottom-slot name=bottom></slot></div><div id=bottom-fixed><slot id=bottom-fixed-slot name=bottom-fixed></slot></div><slot id=slot></slot><slot id=end name=end></slot>`.observe({_bottomHeight:{type:"float",empty:0},_bottomOffsetY:{type:"float",empty:0},_bottomDuration:{type:"float",empty:0},_bottomEasing:{empty:"ease-in"}}).observe({_sharedBottomStyle({_bottomOffsetY:t,_bottomDuration:e,_bottomEasing:i,_bottomHeight:r}){return r?{styles:{transform:`translateY(${t}px)`},timing:{duration:e,easing:i}}:null}}).observe({_bottomSlotStyle:{...ie,get({_sharedBottomStyle:t}){return t?{target:"bottom-slot",...t}:null}},_bottomFixedSlotStyle:{...ie,get({_sharedBottomStyle:t}){return t?{target:"bottom-fixed-slot",...t}:null}}}).on({_scrollListenerPositionYChanged(t,e){let i=e-t;this._bottomDuration=0;let o=document.documentElement.scrollHeight-window.innerHeight-1-e,n=this._bottomHeight-o,s=0;n>0&&(s=n),this._bottomOffsetY=e===0||o<0?0:Math.max(0,Math.min(this._bottomOffsetY+i,this._bottomHeight-s))},_scrollListenerLastIdleChanged(){let{_bottomHeight:t,_bottomOffsetY:e}=this,i=(t-e)/t;if(!(i<=0)&&!(i>=1)){if(i<.5){let r=document.documentElement.scrollHeight-window.innerHeight-1,{_scrollListenerPositionY:o}=this,n=r-o,s=t-n;if(o!==0&&n>=0&&s<=0){this._bottomDuration=200,this._bottomEasing="ease-out",this._bottomOffsetY=t;return}}this._bottomDuration=250,this._bottomEasing="ease-in",this._bottomOffsetY=0}},connected(){(this._bottomResizeObserver??=new ResizeObserver(e=>{for(let{borderBoxSize:i}of e)this._bottomHeight=i[0].blockSize})).observe(this.refs.bottom),this.startScrollListener(window)},disconnected(){this._scrollListenerClear(),this._bottomResizeObserver.unobserve(this.refs.bottom)}}).css`:host{position:relative;display:grid;grid-template:"start top end" auto "start content end" minmax(auto,1fr) "start bottom end" auto/minmax(0px,auto) minmax(0px,100%) minmax(0px,auto);min-block-size:100vh;min-block-size:100dvh;font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#start{display:flex;grid-area:start}#slot{display:block;grid-area:content;overflow-x:clip}#end{display:none;grid-area:end;block-size:0}#bottom{position:sticky;inset-block-end:0;display:block;grid-area:bottom;overflow-y:hidden;pointer-events:none;z-index:1}#bottom-slot{position:sticky;inset-block-end:0;display:flex;flex-direction:column-reverse}#bottom-fixed{position:sticky;inset-block-end:0;display:block;grid-area:bottom;pointer-events:none;z-index:2}#bottom-fixed-slot{position:absolute;inset-block-end:100%;display:block}`.autoRegister("mdw-root");function lt(t){return t.mixin(ye).observe({_semiStickyHeight:{type:"float",empty:0},_semiStickyOffsetY:{type:"float",empty:0},_semiStickyTranslateY:{type:"float",empty:0},_semiStickyDuration:{type:"float",empty:0},_semiStickyEasing:{empty:"ease-in"},_semiStickyMeasured:"boolean",stickyAlways:"boolean",stickyParent:"boolean"}).methods({_refreshSemiStickyMetrics(){let e=window.getComputedStyle(this);this._semiStickyHeight=this.offsetHeight+Number.parseFloat(e.marginTop)+Number.parseFloat(e.marginBottom),this._semiStickyOffsetY=Number.parseFloat(e.marginTop),this._semiStickyMeasured=!0}}).observe({_semiStickyStyleStyle:{...ie,get({_semiStickyMeasured:e,_semiStickyTranslateY:i,_semiStickyDuration:r,_semiStickyEasing:o}){return e?{styles:{transform:`translateY(${i}px)`},timing:{duration:r,easing:o}}:null}}}).on({_scrollListenerPositionYChanged(e,i){let r=i-e;this._semiStickyMeasured||this._refreshSemiStickyMetrics(),this._semiStickyDuration=0,this._semiStickyTranslateY=this.stickyAlways||i<this._semiStickyOffsetY?0:Math.min(Math.max(-this._semiStickyHeight,this._semiStickyTranslateY-r),0)},_scrollListenerLastIdleChanged(){if(this.stickyAlways)return;this._refreshSemiStickyMetrics();let e=this.offsetTop,o=(this._scrollListenerPositionY-e-this._semiStickyTranslateY)/this._semiStickyHeight;o<=0||o>=1||(o<=.5||e<this._semiStickyHeight?(this._semiStickyDuration=250,this._semiStickyEasing="ease-in",this._semiStickyTranslateY=0):(this._semiStickyDuration=200,this._semiStickyEasing="ease-out",this._semiStickyTranslateY=Math.max(this._semiStickyOffsetY-this._scrollListenerPositionY,-this._semiStickyHeight)))},connected(){this.startScrollListener(this.stickyParent?this.offsetParent:window)},disconnected(){this._scrollListenerClear()}})}var Vt=f.extend().mixin(x).mixin(E).mixin(Ne).mixin(lt).mixin(L).observe({_raised:"boolean",_headlineOpacity:{type:"float",default:0},headline:"string",size:{value:null},color:"string",raisedColor:"string"}).observe({_styles:{...ae,get({raisedColor:t}){return t?`#raised-background:where([raised]){background-color:rgb(var(--mdw-color__${t}))}`:null}},_headlineStyle:{...ie,get({size:t,_headlineOpacity:e}){return t!=="medium"&&t!=="large"?null:{target:"headline",styles:{opacity:e??0},timing:{duration:200}}}}}).expressions({_companionIf({size:t}){return t==="medium"||t==="large"}}).html`<div id=raised-background raised={_raised}></div><slot id=leading name=leading on-slotchange={refreshTabIndexes}></slot><div id=headline ink={ink} color={color} type-style={typeStyle} on-slotchange={refreshTabIndexes}>{headline}<slot id=headline-slot></slot></div><slot id=trailing name=trailing on-slotchange={refreshTabIndexes}></slot><div mdw-if={_companionIf} id=companion aria-hidden=true size={size} color={color} raised={_raised}><slot id=companion-slot name=companion size={size}>{headline}</slot></div>`.on({_scrollListenerPositionYChanged(t,e){if(this._raised=e>this._semiStickyOffsetY,this.size==="medium"||this.size==="large"){let i=this.refs.companion.scrollHeight,r=.5*i;this._headlineOpacity=Math.max(0,Math.min(1,(e-r)/(i-r)))}},_scrollListenerLastIdleChanged(){this._headlineOpacity>0&&(this._headlineOpacity=1)},_semiStickyTranslateYChanged(t,e){e===0&&(this._headlineOpacity=1)}}).css`:host{--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:sticky;inset-block-start:0;display:grid;align-items:center;gap:12px;grid-auto-flow:row;grid-template-rows:minmax(64px,min-content);grid-template-columns:minmax(auto,1fr) minmax(0,auto) minmax(auto,1fr);overflow-x:clip;overflow-y:visible;box-sizing:border-box;padding-inline:var(--mdw-pane__padding-inline,16px);pointer-events:auto;transform:translateY(0);z-index:5;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:grid-template-columns .1s;will-change:transform}#raised-background{position:absolute;inset:0;z-index:-1;background-color:transparent;transition:background-color .2s}#raised-background:where([raised]){background-color:rgb(var(--mdw-color__surface-container))}#leading{justify-self:flex-start;display:flex;align-items:center;grid-column:1;grid-row:1}#headline{display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;grid-row:1;font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing);text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition-duration:.2s;transition-property:transform,opacity,color,background-color}#trailing{justify-self:flex-end;display:flex;align-items:center;gap:8px;justify-content:flex-end;grid-column:3;grid-row:1;color:var(--mdw-color__on-surface-variant)}#companion{position:relative;display:flex;align-items:flex-end;margin-block-start:calc(28px - var(--mdw-typescale__headline-small__line-height));padding-block-end:20px;padding-inline:16px;background-color:rgb(var(--mdw-bg));box-shadow:none;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing);white-space:nowrap}#companion[size=large]{min-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height));margin-block-start:calc(68px - (2 * var(--mdw-typescale__headline-medium__line-height)));font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing);white-space:normal}@supports (width:1lh){#companion{margin-block-start:calc(28px - 1lh)}#companion[size=large]{min-block-size:2lh;margin-block-start:calc(68px - 2lh)}}#companion-slot{display:block;overflow-x:clip;overflow-y:hidden;text-overflow:ellipsis;text-transform:none;word-break:break-word}#companion-slot[size=large]{max-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height))}@supports (-webkit-line-clamp:2){#companion-slot[size=large]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-block-size:none}}#surface[size=small]{gap:4px;grid-template-columns:auto 1fr auto}#headline:is([size=medium],[size=large]){opacity:0;will-change:opacity}#companion:where([color=none],[color=transparent]),:host(:where([color=none],[color=transparent])){background-color:transparent}#companion[raised]:where([color=surface],[color=none],[color=transparent]){background-color:rgb(var(--mdw-color__surface-container))}`.autoRegister("mdw-top-app-bar");var Mo=Vt.extend().undefine("headline").undefine("size").undefine("_headlineStyle").observe({placeholder:{type:"string",empty:"Search"},color:{empty:"surface-container-high"},shapeStyle:{empty:"full"},kbdNav:{empty:"false"}}).define({input(){return this.refs.input.value},value:{get(){return this.refs.input.value},set(t){this.refs.input.value=t}}}).html`<mdw-input id=input placeholder={placeholder} aria-label={placeholder}></mdw-input>`.css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-shape__size:var(--mdw-shape__full);inset-block-start:8px;display:flex;align-items:center;gap:16px;margin-block:16px;padding-inline:16px;background-color:rgb(var(--mdw-bg))}#leading:not([slotted]),#trailing:not([slotted]){display:none}#input{--mdw-state__hovered-opacity:0;flex:1}`.methods({onSlotChange({currentTarget:t}){t.toggleAttribute("slotted",t.assignedNodes().length>=0)}}).childEvents({leading:{slotchange:"onSlotChange"},trailing:{slotchange:"onSlotChange"},input:{change(t){t.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))}}}).recompose(({refs:{companion:t,headline:e,input:i}})=>{t.remove(),e.replaceWith(i)}).autoRegister("mdw-search");var $t=fe.extend().observe({type:{empty:"radio"},innerSegmentedButton:"boolean"}).set({outlined:!0,focusableOnDisabled:!0}).recompose(({html:t,inline:e,refs:{icon:i,outline:r,control:o,slot:n,state:s}})=>{n.before(t`
|
|
208
208
|
<div id=icons>
|
|
209
209
|
${i}
|
|
210
210
|
<mdw-icon selected={checked} id=check-icon aria-hidden=true icon=check variation=filled></mdw-icon>
|
|
211
211
|
</div>
|
|
212
|
-
`),i.removeAttribute("mdw-if"),i.setAttribute("has-icon","{hasIcon}"),i.setAttribute("selected","{checked}"),r.setAttribute("selected","{checked}"),r.setAttribute("inner-segmented-button","{innerSegmentedButton}"),r.setAttribute("shape-start","{shapeStart}"),r.setAttribute("shape-end","{shapeEnd}"),o.setAttribute("role","option"),o.setAttribute("aria-checked",e(({type:l,checked:a})=>l==="checkbox"?`${!!a}`:null)),o.setAttribute("aria-selected",e(({type:l,checked:a})=>l==="checkbox"?null:`${!!a}`)),s.setAttribute("state-disabled","focus")}).css`:host{--mdw-shape__size:0;--mdw-ink:var(--mdw-color__on-surface);gap:8px;min-inline-size:24px;padding-inline-start:max(12px,calc(16px + (var(--mdw-density) * 2px)));padding-inline-end:max(20px,calc(24px + (var(--mdw-density) * 2px)));color:rgb(var(--mdw-ink))}:host(:first-of-type){--mdw-shape__size:var(--mdw-shape__full);--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px}:host(:last-of-type){--mdw-shape__size:var(--mdw-shape__full);--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px}#outline{inset-inline-end:-1px;z-index:-1}:host(:last-of-type) #outline{inset-inline-end:0}#outline[selected]{background-color:rgb(var(--mdw-bg))}#icons{position:relative;display:inline-flex}#icon{box-sizing:border-box;inline-size:0;opacity:1}#icon[has-icon]{inline-size:18px;opacity:1}#icon[selected]{inline-size:18px;opacity:0}#check-icon{position:absolute;inset:0;display:block;overflow:visible;block-size:100%;margin:0;opacity:0;font-size:18px}#check-icon[selected]{opacity:1;font-size:18px}#icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#outline[disabled][selected]{background-color:rgba(var(--mdw-color__on-surface),.12)}`.autoRegister("mdw-segmented-button");var Ao=j.extend().mixin(Z).define({kbdNavQuery(){return $t.elementName}}).set({_ariaRole:"listbox"}).childEvents({slot:{slotchange:"refreshTabIndexes"}}).css`:host{--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container);display:inline-flex;align-items:stretch;flex-direction:row;justify-content:initial;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;min-inline-size:100%;flex:none}:host([color]){background-color:transparent}#slot{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;flex:none}`.on({constructed(){this.updateAriaProperty("ariaOrientation","horizontal")}}).autoRegister("mdw-segmented-button-group");var Io=f.extend().mixin(x).mixin(N).mixin(ge).mixin(xe).observe({trailingIcon:{empty:"arrow_drop_down"}}).overrides({controlTagName:"select",controlVoidElement:!1,type:"select-one"}).define({_select(){return this.refs.control},multiple:{value:!1},size:{value:1}}).html`<slot id=slot></slot>`.childEvents({slot:{slotchange(t){let e=this._select;e.replaceChildren(...t.currentTarget.assignedNodes().map(i=>i.cloneNode(!0))),this._value=e.value}}}).recompose(({template:t,refs:{slot:e,prefix:i,suffix:r,control:o}})=>{o.setAttribute("icon","{icon}"),t.append(e),i.remove(),r.remove()}).on({_formResetChanged(t,e){if(!e)return;let i=this.querySelector("option[selected]");this._select.value=(i==null?void 0:i.value)??""}}).css`#slot{display:none}#shape{padding:0;cursor:pointer}#shape[disabled]{cursor:not-allowed}#icon{position:absolute}#trailing-icon{position:absolute;inset-inline-end:16px}#control{padding-inline-start:16px;padding-inline-end:56px;accent-color:rgb(var(--mdw-ink));cursor:inherit}#control[icon]{margin-inline-start:40px;padding-inline-start:0}option{accent-color:rgb(var(--mdw-ink));min-block-size:var(--mdw-typescale__label-large__line-height);appearance:none;background-color:rgb(var(--mdw-color__surface))!important;border-radius:0;color:rgb(var(--mdw-color__on-surface))!important;font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__label-large__letter-spacing)}`.autoRegister("mdw-select");var To=!1;function Ht(){To||(kt('html[dir="rtl"]{--mdw-dir: -1;}'),To=!0)}Ht();function Xe(t,e=0){let i=Number.parseFloat(t);return Number.isNaN(i)?e:i}function Lo(t,e,i){let r=Xe(t),o=Xe(e),n=Xe(i,100);return(r-o)/(n-o)}var Po=f.extend().mixin(x).mixin(N).mixin(K).set({stateLayer:!0,type:"range"}).observe({ticks:"integer",_valueAsText:{nullable:!1},thumbLabel:{type:"string",reflect:"read"},_roundedValue:"float",_isHoveringThumb:"boolean",_lastDispatchedChangeValue:"string"}).methods({onControlMouseOrTouch(t){let e=t.currentTarget;if(e.disabled||this.disabledState)return;if(t.type==="touchend"){this._isHoveringThumb=!1;return}let i,r,o,n,s="touches"in t;if(s){if(t.touches.length){let[g]=t.touches;n=!0,{offsetX:i,clientX:r,pageX:o}=g}}else n=(t.buttons&1)===1&&(t.type==="mousedown"||e.matches(":active")),{offsetX:i,clientX:r,pageX:o}=t;i==null&&(r??=o-window.scrollX,i=r-e.getBoundingClientRect().left);let{clientWidth:l}=e,a=i/l;if(a>1?a=1:a<0&&(a=0),n){this._isHoveringThumb=!0;let{min:g,max:h,step:p}=this,_=Xe(g),b=Xe(h,100),w=Xe(p,1);he(this)&&(a=1-a);let y=a*(b-_)+_,S=Math.round(y/w)*w;if(w<1){let T=10**(-1*Math.floor(Math.log10(w)));S=Math.round(S*T)/T}if(this._roundedValue=S,this._valueAsText=S.toString(10),s&&Ct){t.type==="touchstart"&&t.preventDefault();let{_input:C}=this;C.valueAsNumber!==S&&(C.valueAsNumber=S,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}return}if(s)return;let c=Lo(this.value,this.min,this.max);he(this)&&(c=1-c);let d=c*l,m=d-20,u=d+20;this._isHoveringThumb=i>=m&&i<=u},onLeaveEvent({currentTarget:t}){ce(t)||(this._isHoveringThumb=!1)},onControlFinish(t){let e=t.currentTarget;e.disabled||(t.type==="click"&&t.preventDefault(),e.valueAsNumber=this._roundedValue,this._value=e.value,this._lastDispatchedChangeValue!==this._value&&(this._lastDispatchedChangeValue=this._value,this.dispatchEvent(new Event("change",{bubbles:!0}))))}}).events({blur:"onLeaveEvent",mouseout:"onLeaveEvent"}).childEvents({control:{"~mousedown":"onControlMouseOrTouch","~mousemove":"onControlMouseOrTouch","~mouseout":"onControlMouseOrTouch",touchstart:"onControlMouseOrTouch","~touchmove":"onControlMouseOrTouch","~touchleave":"onControlMouseOrTouch","~touchcancel":"onControlMouseOrTouch","~touchend":"onControlMouseOrTouch",touchend:"onControlFinish",click:"onControlFinish","~change"(t){this._lastDispatchedChangeValue===this._value&&t.stopPropagation(),this._lastDispatchedChangeValue=this._value}}}).expressions({computeTrackStyle({ticks:t,_valueAsText:e,min:i,max:r}){return[t?`--ticks:${t}`:null,`--value:${Lo(e,i,r)}`].filter(Boolean).join(";")||null},_thumbLabelHidden({_isHoveringThumb:t,focusedState:e}){return!t&&!e},_computedThumbLabel({thumbLabel:t,_valueAsText:e}){return t??e}}).html`<div id=track style={computeTrackStyle} aria-hidden=true disabled={disabledState}><div mdw-if={ticks} id=ticks></div><div id=track-active></div><div id=thumb-anchor><div id=thumb></div><div id=thumb-label hidden={_thumbLabelHidden} text={_computedThumbLabel}></div></div></div>`.recompose(({refs:{thumb:t,state:e,control:i}})=>{t.append(e),i.removeAttribute("aria-labelledby")}).on({valueChanged(t,e){this._valueAsText=e}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);display:block;vertical-align:middle;min-block-size:40px;min-inline-size:88px;background-color:transparent}:host,:host([color]){background-color:transparent}#control{inset:0;overflow:visible;block-size:100%;min-block-size:0;inline-size:100%;min-inline-size:0;appearance:none;cursor:pointer;transform:none;background-color:transparent}#control::-webkit-slider-runnable-track{margin-inline:-10px;appearance:none;background-color:transparent}@supports (-moz-appearance:none){#control{inset-inline:-10px;inline-size:calc(100% + 20px)}}#control::-moz-range-track{inline-size:calc(100% + 20px)!important;appearance:none}#control::-webkit-slider-thumb{display:block;block-size:20px;inline-size:20px;-webkit-appearance:none;cursor:inherit;transform:scale(2);background-color:transparent;border-radius:50%;box-shadow:none}#control::-moz-range-thumb{display:block;box-sizing:content-box;block-size:20px;inline-size:20px;border:none;appearance:none;cursor:inherit;transform:scale(2);background-color:transparent;border-radius:50%}#control[disabled]{cursor:not-allowed}#track{--value:.5;position:absolute;inset-block-start:50%;inset-inline:0;block-size:4px;margin-block-start:-2px;pointer-events:none;-webkit-user-select:none;user-select:none;background-color:rgb(var(--mdw-color__surface-container-highest));border-radius:inherit;color:rgb(var(--mdw-bg))}#thumb{position:absolute;inset-block-start:-18px;inset-inline-start:-20px;display:flex;align-items:center;justify-content:center;overflow:hidden;block-size:40px;inline-size:40px;pointer-events:none;border-radius:50%;color:currentColor}#thumb:before{content:"";display:block;block-size:20px;inline-size:20px;background-color:currentColor;border-radius:50%;transition:color .1s,background-color .1s}#ticks:after,#ticks:before{content:"";position:absolute;inset:0;padding-inline:2px;background-clip:content-box;background-image:radial-gradient(circle at 1px,currentColor 0,currentColor 1px,transparent 0);background-position:-1px 50%;background-repeat:repeat-x;background-size:calc(100% / (var(--ticks,0) + 1)) 2px}#ticks:before{color:rgb(var(--mdw-color__on-surface-variant))}#ticks:after{padding-inline-end:calc(100% - (100% * var(--value)) + 10px);z-index:1;color:rgb(var(--mdw-ink));will-change:padding-inline-end}#track-active{position:absolute;inset:0;overflow:hidden;border-radius:99px}#track-active:before{content:"";position:absolute;inset:0;transform:scaleX(var(--value));transform-origin:calc(100% * calc(-.5 * var(--mdw-dir,1) + .5)) 0;background-color:currentColor;will-change:transform}#thumb-anchor{position:absolute;inset-inline-start:calc(var(--value) * 100%);display:flex;align-items:flex-start;flex-direction:column;z-index:24;will-change:inset-inline-start,left,right}#thumb-label{position:absolute;left:0;inset-block-end:14px;display:flex;align-items:center;justify-content:center;box-sizing:content-box;margin-block-end:6px;transform:translate(-50%) scale(1);transform-origin:50% 100%;font-weight:var(--mdw-typescale__label-medium__font-weight);line-height:var(--mdw-typescale__label-medium__line-height);font-family:var(--mdw-typescale__label-medium__font-family);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing);transition:transform .2s;will-change:transform}#thumb-label:is([hidden],[text=""]){transform:translate(-50%) scale(0)}#thumb-label:before{content:attr(text);display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-block-size:28px;min-inline-size:28px;padding:4px;z-index:1;background-color:rgb(var(--mdw-bg));border-radius:14px;color:rgb(var(--mdw-ink))}#thumb-label:after{--x-start:4.1005px;--x-end: calc(100% - 4.1005px) ;--y: calc(100% - 9.9584px) ;content:"";position:absolute;inset:0;inset-block-end:-6px;clip-path:polygon(var(--x-start) var(--y),var(--x-end) var(--y),50% 100%,var(--x-start) var(--y));background-color:currentColor}#track[disabled]{--mdw-bg:var(--mdw-color__on-surface);cursor:not-allowed;opacity:.38;background-color:rgb(var(--mdw-color__on-surface),calc(.12 / .38))}`.autoRegister("mdw-slider");var Ro=f.extend().mixin(x).mixin(E).mixin(G).mixin(B).mixin(U).set({_ariaRole:"status",elevated:!0}).observe({open:"boolean",persistent:"boolean",action:"string",actionInk:{empty:"inverse-primary"},actionTypeStyle:{empty:"label-large"},closeButton:"boolean",closeIcon:{empty:"close"},closeInk:{empty:"inherit"},onaction:ee,ontoggle:ee}).methods({async close(){this.dispatchEvent(new Event("close",{cancelable:!0}))&&this.open&&(this.open=!1,window.getComputedStyle(this).transitionDuration!=="0s"&&await new Promise(t=>{this.addEventListener("transitionend",t,{once:!0})}))},show(){this.open=!0},update(t){this.textContent=t}}).html`<div id=content><slot id=slot></slot></div><mdw-button mdw-if={action} id=action class=button ink={actionInk} type-style={actionTypeStyle}>{action}</mdw-button><mdw-icon-button mdw-if={closeButton} id=close class=button icon={closeIcon} ink={closeInk}>Close</mdw-icon-button>`.childEvents({action:{"~click"(){this.dispatchEvent(new Event("action",{cancelable:!0}))&&this.close()}},close:{"~click"(){this.close()}}}).on({openChanged(){this.dispatchEvent(new Event("toggle"))}}).css`:host{--mdw-shape__size:var(--mdw-shape__small);--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface);--mdw-type__line-height:var(--mdw-typescale__body-medium__line-height);display:flex;align-items:center;grid-area:snackbar;padding-inline:16px;pointer-events:auto;filter:var(--mdw-elevation__drop-shadow__3);opacity:0;transform:translateY(25%) scaleY(.25);transform-origin:bottom center;visibility:hidden;z-index:22;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing);transition:transform .2s,opacity .2s,visibility .2s}:host([action]){gap:8px;padding-inline-end:8px}:host([close-button]){gap:4px;padding-inline-end:4px}:host([open]){opacity:1;transform:scale(1);visibility:inherit}#content{display:flex;align-items:center;flex:1;padding-block:max(2px,calc(14px + (var(--mdw-density) * 2px)))}#slot{display:block;overflow-x:hidden;overflow-y:hidden;max-block-size:calc(var(--mdw-type__line-height) * 2);text-align:start;text-overflow:ellipsis;text-transform:none;white-space:normal;word-break:break-word}@supports (width:1lh){#slot{max-block-size:2lh}}@supports (-webkit-line-clamp:1){#slot{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}}`.autoRegister("mdw-snackbar");var Oo=f.extend().mixin(L).html`<slot id=slot></slot>`.css`:host{display:grid;align-items:flex-end;grid-template:"snackbar" auto/minmax(auto,60ch);justify-content:center;margin:16px;pointer-events:none}@media(min-width:648px){:host{grid-template-columns:minmax(auto,1fr);margin:24px}}@media(min-width:1248px){:host{grid-template-columns:minmax(auto,60ch);justify-content:flex-start}}#slot{pointer-events:auto}`.autoRegister("mdw-snackbar-container");Ht();var Fo=f.extend().mixin(x).mixin(E).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean",selectedIcon:"string",unselectedIcon:"string",src:"string",selectedSrc:"string",unselectedSrc:"string",hovered:"boolean",pressed:"boolean",focused:"boolean",dragValue:"float",color:{empty:"primary"}}).observe({checked:{type:"boolean",get({selected:t}){return t},set(t){this.selected=t}},_active({disabled:t,pressed:e,focused:i,hovered:r}){return!t&&(e||i||r)}}).observe({_thumbColor({color:t,_active:e}){return e?`${t}-container`:""},_iconInk({disabled:t,selected:e,color:i}){return e?t?"on-surface":`on-${i}-container`:"surface-container-highest"}}).expressions({hasIcon({icon:t,src:e,unselectedIcon:i,unselectedSrc:r}){return!!(t||e||i||r)},iconVariation({selected:t}){return t?"filled":null}}).html`<div id=track selected={checked} disabled={disabled}><div id=thumb selected={checked} pressed={pressed} disabled={disabled}><mdw-box block id=thumb-shape selected={checked} pressed={pressed} hovered={hovered} focused={focused} icon={hasIcon} color={_thumbColor} active={_active} ink={_thumbInk} disabled={disabled}></mdw-box><mdw-icon ink={_iconInk} class=icon id=icon src={src} selected={checked} icon={icon} variation={iconVariation}></mdw-icon><mdw-icon ink={_iconInk} class=icon id=selected-icon src={selectedIconSrc} selected={checked} icon={selectedIcon} variation=filled></mdw-icon><mdw-icon ink={_iconInk} class=icon id=unselected-icon src={unselectedIconSrc} selected={checked} icon={unselectedIcon}></mdw-icon><slot id=slot selected={checked}></slot></div></div>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{checked}"),t.setAttribute("errored","{errored}"),t.setAttribute("disabled","{disabled}")}).on({dragValueChanged(t,e){e==null?(this.refs.thumb.style.removeProperty("--mdw-switch__value"),this.refs.thumb.style.removeProperty("transition-duration")):(this.refs.thumb.style.setProperty("--mdw-switch__value",`${e}`),this.refs.thumb.style.setProperty("transition-duration","0s"))}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);--mdw-shape__size:var(--mdw-shape__full);--mdw-switch__value:0;position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;block-size:32px;inline-size:52px;container-type:inline-size;container-name:switch-icon}:host([selected]){--mdw-switch__value:1}:host([disabled]){opacity:.38}#track{position:absolute;inset:0;background-color:rgb(var(--mdw-color__surface-container-highest));border-radius:inherit}#track[selected]{background-color:rgb(var(--mdw-bg))}#track[disabled]{background-color:rgba(var(--mdw-color__surface-container-highest),calc(.12/.38))}#track[disabled][selected]{background-color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#outline{border-width:2px;z-index:1;color:rgb(var(--mdw-color__outline))}#outline:is([pressed],[focused]){color:rgb(var(--mdw-color__outline))}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#outline[selected]{color:transparent}#thumb{--thumb-color:var(--mdw-ink);position:absolute;inset-block:0;inset-inline-start:0;display:flex;align-items:center;justify-content:center;transform:translate(calc(var(--mdw-dir,1) * var(--mdw-switch__value) * (52px - 100%)));border-radius:inherit;aspect-ratio:1/1}:dir(rtl) #thumb{--mdw-dir:-1}@supports (width:1cqw){#thumb{transform:translate(calc(var(--mdw-dir,1) * var(--mdw-switch__value) * (100cqw - 100%)))}}#slot{color:rgb(var(--mdw-color__on-surface))}#slot[selected]{color:rgb(var(--mdw-bg))}#thumb-shape{--mdw-shape__size:inherit;position:absolute;inset:2px;transform:scale(calc(16/28));z-index:0;border-radius:inherit}#thumb-shape[icon]{transform:scale(calc(24/28))}#thumb-shape:not([selected]){--mdw-bg:var(--mdw-color__outline);--mdw-ink:var(--mdw-color__surface-container-highest)}#thumb-shape[selected]{transform:scale(calc(24/28))}#thumb-shape[selected]:not([active]){--mdw-bg:var(--thumb-color)}#thumb-shape[pressed]:not([disabled]){transform:scale(1)}#thumb-shape[disabled]{background-color:rgb(var(--mdw-color__on-surface))}#thumb-shape[disabled][selected]{background-color:rgb(var(--mdw-color__surface))}.icon{position:absolute;top:50%;left:50%;opacity:0;transform:translate(-50%) translateY(-50%);font-size:16px}#icon,#unselected-icon{opacity:1}#unselected-icon[selected]{opacity:0}#selected-icon[selected]{opacity:1}#thumb[disabled]{color:rgb(var(--mdw-color__on-surface))}`.css`:host{--mdw-switch__transition-timing__collapse:cubic-bezier(.4, 0, 1, 1);--mdw-switch__transition-duration__collapse:375ms;--mdw-switch__transition-timing__expand:cubic-bezier(0, 0, .2, 1);--mdw-switch__transition-duration__expand:.5s;--scale-delay:var(--mdw-switch__transition-duration);--mdw-switch__transition-duration:var(--mdw-switch__transition-duration__collapse);--mdw-switch__transition-timing:var(--mdw-switch__transition-timing__collapse);--mdw-switch__transition-delay__color:calc(var(--mdw-switch__transition-duration) / 2);--mdw-switch__transition-delay__translate:calc(var(--mdw-switch__transition-duration) / 2);--mdw-switch__transition-delay__scale:calc(var(--mdw-switch__transition-duration) / 2);transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:calc(var(--mdw-switch__transition-duration) / 2);transition-timing-function:var(--mdw-switch__transition-timing)}#track{transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:background-color;transition-timing-function:inherit}#outline{transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:background-color,color;transition-timing-function:inherit}#thumb{transition-delay:var(--mdw-switch__transition-delay__translate);transition-duration:inherit;transition-property:transform;transition-timing-function:inherit}#thumb-shape,.icon{transition-delay:var(--mdw-switch__transition-delay__scale),var(--mdw-switch__transition-delay__color),var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:transform,background-color,color;transition-timing-function:inherit}:host([icon]){--mdw-switch__transition-delay__translate:0s}.icon{transition-property:transform,opacity,color}:host([selected]){--mdw-switch__transition-delay__color:0s;--mdw-switch__transition-delay__scale:0s;--mdw-switch__transition-duration:var(--mdw-switch__transition-duration__expand);--mdw-switch__transition-timing:var(--mdw-switch__transition-timing__expand)}:host([selected][pressed]){--mdw-switch__transition-delay__translate:0s}:host(:not([selected])){--mdw-switch__transition-delay__translate:0s}:host([pressed]:not([selected])){--mdw-switch__transition-delay__scale:0s}`.autoRegister("mdw-switch-icon");var No=f.extend().mixin(x).mixin(K).mixin(N).mixin(we).set({type:"checkbox",stateLayer:!0}).observe({icon:"string",selectedIcon:"string",unselectedIcon:"string",src:"string",selectedSrc:"string",unselectedSrc:"string"}).html`<mdw-switch-icon id=switch color={color} ink={ink} selected={checked} hovered={hoveredState} focused={focusedState} pressed={pressedState} disabled={disabledState} icon={icon} selected-icon={selectedIcon} unselected-icon={unselectedIcon} src={src} selected-src={selectedSrc} unselected-src={unselectedSrc}></mdw-switch-icon><slot id=slot></slot>`.recompose(({refs:{switch:t,state:e,control:i}})=>{t.append(e,i),i.setAttribute("role","switch")}).methods({onControlMouseOrTouch(t){let e=t.currentTarget;if(e.disabled||this.disabledState||t.type==="touchend")return;let i,r,o,n;if("touches"in t){if(t.touches.length){let[p]=t.touches;n=!0,{offsetX:i,clientX:r,pageX:o}=p}}else n=(t.buttons&1)===1&&(t.type==="mousedown"||e.matches(":active")),{offsetX:i,clientX:r,pageX:o}=t;if(!n)return;i==null&&(r??=o-window.scrollX,i=r-e.getBoundingClientRect().left);let{clientWidth:l}=e,a=i/l;a>1?a=1:a<0&&(a=0);let c=this.refs.switch,d=c.dragValue;d==null&&(d=this.checked?1:0);let m=i-l/2,u=c.clientWidth-c.clientHeight,g=m/u,h=Math.max(Math.min(d+g,1),0)}}).childEvents({control:{"~pointermove":"onControlMouseOrTouch"}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);position:relative;display:inline-flex;align-items:center;gap:12px;vertical-align:middle;cursor:pointer}#control{cursor:inherit}#touch-target{z-index:0}#label{display:contents;cursor:pointer}#switch{--mdw-bg:inherit;--mdw-ink:inherit;flex:1;pointer-events:none}#state{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:40px;inline-size:100%;min-inline-size:40px;pointer-events:none;transform:translate(-50%) translateY(-50%);border-radius:50%}#state[touched]{--mdw-state__pressed-opacity:0}:host(:disabled){--mdw-ink:var(--mdw-color__on-surface);--mdw-bg:var(--mdw-color__surface);cursor:not-allowed;opacity:.38}:host([internals-disabled]){--mdw-ink:var(--mdw-color__on-surface);--mdw-bg:var(--mdw-color__surface);cursor:not-allowed;opacity:.38}#switch[disabled]{opacity:1}`.autoRegister("mdw-switch");var Ie=f.extend().mixin(E).mixin(N).mixin(Q).mixin(ye).mixin(ie).mixin(L).define({stateTargetElement(){return this.refs.anchor}}).set({stateLayer:!0}).observe({active:"boolean",icon:"string",src:"string",ariaLabel:"string"}).methods({focus(t){this.refs.anchor.focus(t)},computeLabelMetrics(){let{slot:t,icon:e}=this.refs,i=t.clientWidth?t:e;return{width:i.clientWidth,left:i.offsetLeft}}}).expressions({anchorAriaControls({href:t}){return t!=null&&t.startsWith("#")?t.slice(1):null},anchorAriaSelected({active:t}){return`${t}`},anchorAriaDisabled({disabledState:t}){return`${t}`},anchorHref({href:t}){return t??"#"},iconIf({icon:t,src:e}){return t||e},iconVariation({active:t}){return t?"filled":null}}).html`<mdw-icon mdw-if={iconIf} id=icon aria-hidden=true src={src} active={active} icon={icon} variation={iconVariation}></mdw-icon><slot id=slot></slot>`.recompose(({refs:{anchor:t,icon:e,slot:i,state:r}})=>{t.setAttribute("role","tab"),t.setAttribute("aria-label","{ariaLabel}"),t.setAttribute("aria-controls","{anchorAriaControls}"),t.setAttribute("aria-selected","{anchorAriaSelected}"),t.setAttribute("aria-disabled","{anchorAriaDisabled}"),t.setAttribute("disabled","{disabledState}"),t.append(e,i),r.setAttribute("state-disabled","focus")}).events({keydown(t){t.key===" "&&(t.preventDefault(),this.refs.anchor.click())}}).childEvents({anchor:{click(t){if(this.disabledState){t.preventDefault(),t.stopPropagation();return}let{href:e}=this;if(!e){t.preventDefault();return}if(e.startsWith("#")){let r=this.getRootNode().querySelector(e);if(!r)return;t.preventDefault();let o=Oe?"instant":"smooth";r.scrollTo({top:0,behavior:o}),r.offsetParent.scrollTo({left:r.offsetLeft,behavior:"smooth"})}}}}).css`:host{display:inline-flex;min-inline-size:64px;flex:none;cursor:pointer}#anchor{display:flex;align-items:center;flex-direction:column;justify-content:center;box-sizing:border-box;block-size:100%;inline-size:100%;flex:1;padding-block:6px;padding-inline:12px;cursor:pointer;outline:0;color:inherit;text-decoration:inherit}#icon{padding-block:4px;font-size:24px}#anchor[disabled],#shape[disabled]{cursor:not-allowed;background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}:host([active]){color:rgb(var(--mdw-ink))}#slot{display:block;overflow-x:hidden;overflow-y:hidden;max-block-size:var(--mdw-typescale__title-small__line-height);max-inline-size:100%;cursor:inherit;outline:0;opacity:var(--mdw-nav-item__anchor__opacity, 1);transform:translateY(var(--mdw-nav-item__offset-y,0));color:inherit;font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing);text-align:center;text-decoration:inherit;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition:opacity,color,transform .2s;will-change:opacity,transform}`.autoRegister("mdw-tab");var Ui=new Set,Xi;function ct(t){return t.observe({pageIsRTL:{type:"boolean",value:document.documentElement.dir==="rtl"}}).on({connected(){Xi||(Xi=new MutationObserver(()=>{let e=document.documentElement.dir==="rtl";for(let i of Ui)i.pageIsRTL=e}),Xi.observe(document.documentElement,{attributeFilter:["dir"]})),Ui.add(this)},disconnected(){Ui.delete(this)}})}var Do=f.extend().mixin(x).mixin(Z).mixin(Y).mixin(ct).mixin(E).mixin(lt).observe({scrollable:"boolean"}).set({_tabContentRef:null,_tabContentScrollListener:null,_tabCollection:null,_tabMetrics:null,_isRTL:null}).define({tabContent:{get(){var t;return(t=this._tabContentRef)==null?void 0:t.deref()},set(t){var i;let e=(i=this._tabContentRef)==null?void 0:i.deref();e&&e.removeEventListener("scroll",this._tabContentScrollListener),t?(this._tabContentRef=new WeakRef(t),this._tabContentScrollListener=this.observeTabContent.bind(this),t.addEventListener("scroll",this._tabContentScrollListener),this.observeTabContent()):this._tabContentRef=null}}}).observe({tabContentId:"string",active:"boolean",secondary:"boolean",_indicatorStyle:{value:"opacity: 0"},color:{empty:"surface-primary"}}).define({tabs(){return this._tabCollection??=this.getElementsByTagName(Ie.elementName)}}).observe({_selectedIndex:{type:"integer",empty:-1,changedCallback(t,e){this.active=e!==-1}}}).define({kbdNavQuery(){return Ie.elementName},ariaOrientationDefault(){return"horizontal"},childTabItems(){return this.querySelectorAll(Ie.elementName)},tabMetrics(){return this._tabMetrics??=[...this.tabs].map((t,e)=>(t instanceof Ie||customElements.upgrade(t),{left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,label:t.computeLabelMetrics(),tab:t,index:e}))},selectedIndex:{get(){let t=0;for(let e of this.tabs){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.tabs)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedItem:{get(){for(let t of this.tabs)if(t.active)return t;return null},set(t){let e=0;for(let i of this.tabs){if(i===t)return this.selectedIndex=e,t;e++}return null}}}).methods({clearCache(){this._tabMetrics=null},searchForTabContent(){let{tabContentId:t,isConnected:e}=this;if(!t||!e)return;let i=this.getRootNode();this.tabContent=i.getElementById(t)},updateIndicatorByTab(t){t??=this.selectedItem??this.tabs.item(0);let e=this.tabMetrics.find(o=>o.tab===t);if(!e)return;let i=this.secondary?e.width:e.label.width,r=this.secondary?e.left:e.left+e.label.left;this._indicatorStyle=`--width: ${i}; --offset: ${r}px`},updateIndicator(t=!1){this.updateIndicatorByTab(),t||this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByPosition(t){let e=this.tabMetrics,i=Math.min(Math.max(t,0),1),r=(e.length-1)*i,o=Math.floor(r),n=Math.ceil(r),s=e[o];if(!s)return;let l=e[n],a,c,d;if(s===l)a=this.secondary?s.width:s.label.width,c=s.tab,d=s.center;else{let m=1-(r-o),u=1-m,g=m*(this.secondary?s.width:s.label.width),h=u*(this.secondary?l.width:l.label.width),p=m>u?o:n,_=l.center-s.center;a=g+h,c=this.tabMetrics[p].tab,d=s.center+_*u}if(!c.active){for(let m of this.tabs)m.active=m===c;this.active=!0}this._indicatorStyle=`--width: ${a}; --offset: ${d-a/2}px`,this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByIndex(t){this.updateIndicatorByTab(this.tabs.item(t??this._selectedIndex))},observeTabContent(){let t=this.tabContent;if(!t)return;let e=t.scrollLeft;this.pageIsRTL&&(e*=-1);let i=t.clientWidth,r=t.scrollWidth-i,o=r===0?0:e/r;this.updateIndicatorByPosition(o)},onResizeObserved(){this.clearCache(),this.updateIndicator()}}).set({ariaRole:"tablist"}).html`<slot id=slot ink={ink} type-style={typeStyle} scrollable={scrollable}></slot><div id=indicator aria-hidden=true style={_indicatorStyle} active={active} secondary={secondary}><div id=indicator-start class=indicator-piece></div><div id=indicator-center class=indicator-piece></div><div id=indicator-end class=indicator-piece></div></div>`.on({constructed(){document.addEventListener("DOMContentLoaded",()=>this.searchForTabContent(),{once:!0})},connected(){this.searchForTabContent()},pageIsRTLChanged(){this.clearCache(),this.updateIndicator()},activeChanged(t,e){e&&this.updateIndicator()},secondaryChanged(){this.updateIndicator()},_selectedIndexChanged(t,e){this.updateIndicatorByIndex(e)},tabContentIdChanged(){this.searchForTabContent()}}).events({"~click"({target:t}){t!==this&&t instanceof Ie}}).childEvents({slot:{slotchange(){this.clearCache(),this.updateIndicator(),this.searchForTabContent()}}}).css`:host{--mdw-ink:var(--mdw-color__primary);--mdw-bg:var(--mdw-color__surface);position:relative;inset-block-start:0;inset-inline:0;display:grid;align-items:stretch;grid-auto-columns:minmax(auto,1fr);grid-auto-flow:column;justify-content:space-evenly;overflow-y:hidden;box-sizing:border-box;min-block-size:48px;inline-size:100%;flex:none;z-index:4;color:inherit;text-align:center;will-change:transform}:host(:where([color])){background-color:rgb(var(--mdw-bg))}#indicator{--corner:3;--width:24;--offset:0;--visibility:0;--transition-ratio:1;position:absolute;inset-block-end:0;inset-inline:0;overflow-y:clip;block-size:3px;inline-size:100%;pointer-events:none;opacity:1;transform:translateY(calc(100% * (1 - var(--visibility))));color:inherit;transition:transform .2s;will-change:transform}.indicator-piece{position:absolute;inset-block:0;opacity:1;transform-origin:0 0;z-index:1;background-color:currentColor;transition:transform;transition-duration:calc(.2s * var(--transition-ratio));will-change:transform}#indicator-start{left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset));border-top-left-radius:calc(1px * var(--corner))}#indicator-center{--precision:100;position:absolute;left:calc(1px * var(--corner));inline-size:calc(1px * var(--precision));transform:translate(var(--offset)) scaleX(calc((var(--width) - (2 * var(--corner)))/ var(--precision)))}#indicator-end{position:absolute;left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset)) translate(calc(-2px * var(--corner))) translate(calc(var(--width) * 1px));border-top-right-radius:calc(1px * var(--corner))}#indicator[active]{--visibility:1;color:rgb(var(--mdw-ink))}#indicator[secondary]{--corner:0}:host([scrollable]){display:flex;justify-content:initial}#slot[scrollable]{display:inline-flex;inline-size:0;flex:1;padding-inline:48px}`.autoRegister("mdw-tab-list");var Bt=j.extend().mixin(B).set({_ariaRole:"tabpanel"}).observe({active:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"false":"true")}},peeking:"boolean"}).css`:host{overflow-y:auto;scroll-snap-align:center;min-block-size:100%;max-block-size:100%;min-inline-size:100%;max-inline-size:100%;visibility:hidden;will-change:visibility}:host(:is([active],[peeking])){visibility:inherit!important}`.autoRegister("mdw-tab-panel");var Vo=f.extend().mixin(Y).set({_panelNodes:[],_panelMetrics:null}).observe({_selectedIndex:{type:"integer",empty:-1}}).define({panels(){return this._panelNodes},panelMetrics(){return this._panelMetrics??=[...this._panelNodes].map((t,e)=>({left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,index:e}))}}).define({selectedIndex:{get(){let t=0;for(let e of this.panels){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.panels)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedPanel:{get(){return this.panels.find(t=>t.active)},set(t){let e=this.panels.indexOf(t);return e===-1?null:(this.selectedIndex=e,t)}}}).html`<slot id=slot></slot>`.methods({onResizeObserved(){this._panelMetrics=null,this.updatePanels()},updatePanels(){let t=this.scrollLeft,e=this.clientWidth,i=t+e;for(let r of this.panelMetrics){let n=(t>r.right||i<r.left?0:t>=r.left?r.right-t:i-r.left)/e,s=this.panels[r.index];s.active=n>=.5,s.peeking=n>0&&n<.5}}}).childEvents({slot:{slotchange(t){let e=t.currentTarget;this._panelNodes=e.assignedElements().filter(i=>i.tagName===Bt.elementName.toUpperCase()),this._panelMetrics=null,this.updatePanels()}}}).events({scroll:"updatePanels"}).css`:host{display:grid;grid-auto-columns:100%;grid-auto-flow:column;grid-template-columns:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;flex-grow:1;-webkit-scroll-snap-type-x:mandatory;scroll-snap-type-x:mandatory;-webkit-scroll-snap-points-x:repeat(100%);scroll-snap-points-x:repeat(100%);overscroll-behavior-x:none;will-change:transform}`.autoRegister("mdw-tab-content");var jt={nullParser:String,value:""},$o=f.extend().mixin(x).mixin(N).mixin(ge).mixin(xe).mixin(Y).set({supportsCSSLineHeightUnit:CSS.supports("height","1lh"),type:"textarea",_resizing:!1}).overrides({controlTagName:"textarea",controlVoidElement:!1}).observe({fixed:{type:"boolean"},minRows:{attr:"minrows",type:"integer",nullable:!1},maxRows:{attr:"maxrows",type:"integer",nullable:!1},_lineHeight:"string",cols:{type:"integer",empty:0},dirName:{attr:"dirname",...jt},maxLength:{attr:"maxlength",type:"integer",empty:0},minLength:{attr:"minlength",type:"integer",empty:0},placeholder:jt,rows:{type:"integer",empty:1},wrap:jt,defaultValueAttr:{attr:"value",...jt}}).define({_textarea(){return this.refs.control}}).define({defaultValue:{get(){return this._textarea.defaultValue},set(t){let e=this._textarea.defaultValue;this._textarea.defaultValue=t;let i=this._textarea.defaultValue;e!==i&&this.propChangedCallback("defaultValue",e,i),this.textContent=this._textarea.defaultValue}},textLength(){return this._textarea.textLength},select(){return this._textarea.select},selectionDirection:{get(){return this._textarea.selectionDirection},set(t){this._textarea.selectionDirection=t}},selectionStart:{get(){return this._textarea.selectionStart},set(t){this._textarea.selectionStart=t}},selectionEnd:{get(){return this._textarea.selectionEnd},set(t){this._textarea.selectionEnd=t}},setRangeText(){return this._textarea.setRangeText},setSelectionRange(){return this._textarea.setSelectionRange}}).methods({resize(){if(this._resizing)return;this._resizing=!0;let t=this._textarea,e=t.style.getPropertyValue("height");if(!this.supportsCSSLineHeightUnit){let{lineHeight:i}=window.getComputedStyle(t);this._lineHeight=i}if(this.minRows>1&&t.rows<this.minRows?t.rows=this.minRows:this.maxRows&&t.rows>this.maxRows&&(t.rows=this.maxRows),!this.fixed){for(;t.clientHeight<t.scrollHeight&&(e&&(t.style.removeProperty("height"),e=null),!(this.maxRows&&t.rows===this.maxRows));){let i=t.clientHeight;if(t.rows++,i===t.clientHeight){t.rows--;break}}for(;!e&&t.clientHeight>=t.scrollHeight&&!(t.rows===1||this.minRows>1&&t.rows===this.minRows);){let i=t.clientHeight;if(t.rows--,i===t.clientHeight||t.scrollHeight>t.clientHeight){t.rows++;break}}}t.selectionEnd===t.value.length&&(t.scrollTop=t.scrollHeight),this.rows=t.rows,this._resizing=!1},onResizeObserved(){this.matches(":active")||this.resize()}}).childEvents({slot:{slotchange({currentTarget:t}){let e=this.refs.control,i=e.defaultValue;e.replaceChildren(...t.assignedNodes().map(o=>o.cloneNode(!0)));let r=e.defaultValue;i!==r&&this.propChangedCallback("defaultValue",i,r)}},control:{input(){this.resize()}}}).recompose(({refs:{control:t}})=>{t.removeAttribute("placeholder"),t.setAttribute("rows","{rows}"),t.setAttribute("input-prefix","{inputPrefix}"),t.setAttribute("input-suffix","{inputSuffix}"),t.setAttribute("fixed","{fixed}"),t.setAttribute("icon","{icon}")}).on({defaultValueAttrChanged(t,e){this.defaultValue=e},defaultValueChanged(){this._value=this._textarea.value,this.resize()},_lineHeightChanged(t,e){this.refs.shape.style.setProperty("--line-height",e)},minRowsChanged(t,e){this.refs.shape.style.setProperty("--min-rows",`${e||"none"}`),this.resize()},maxRowsChanged(t,e){this.refs.shape.style.setProperty("--max-rows",`${e||"none"}`),this.resize()},rowsChanged(){this.resize()},_formResetChanged(t,e){e&&(this._textarea.value=this.defaultValue,this._value=this._textarea.value)},attrs:{cols:F("cols","control"),dirname:F("dirname","control"),minlength:F("minlength","control"),maxlength:F("maxlength","control"),placeholder:F("placeholder","control"),minrows:F("minrows","control"),maxrows:F("maxrows","control")}}).css`:host{display:inline-grid;grid-auto-flow:row;grid-template-rows:minmax(0,100%)}:host(:is([filled][label])){--control__margin-top:calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top:0px;--control__padding-bottom:calc((var(--mdw-text-field__ratio) * 8px) - 1px);--control__margin-bottom:1px}#shape{--max-rows:none;--line-height:var(--mdw-typescale__body-large__line-height);--expected-height:calc(var(--line-height) + var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom));max-block-size:100%;grid-row:1/1;padding:0}@supports (height:1lh){#shape{--line-height:1lh}}#slot{display:none}#control{-ms-overflow-style:-ms-autohiding-scrollbar;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:content-box;block-size:min-content;min-block-size:var(--line-height);max-block-size:calc(100% - (var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom)));inline-size:calc(100% - 32px)!important;padding-inline:16px;form-sizing:normal}#control[minrows]{min-block-size:calc((var(--min-rows) * var(--line-height)))}#control[maxrows]{max-block-size:calc((var(--max-rows) * var(--line-height)))}#icon{margin-inline-end:16px}#control[icon]{padding-inline-start:0}#control:is([icon],[input-prefix]){padding-inline-start:0}#control:is([trailing-icon],[input-suffix]){padding-inline-end:0}#suffix{padding-inline-end:16px}mdw-icon{align-self:flex-start;margin-block-start:calc((var(--expected-height) - var(--mdw-icon__size))/ 2)}#control[fixed]{resize:none}`.autoRegister("mdw-textarea");var Ho=We.extend().set({_baseAriaLevel:7}).css`:host{font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__title-medium__font);letter-spacing:var(--mdw-typescale__title-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing)}`.autoRegister("mdw-title");return Ko(Kn);})();
|
|
212
|
+
`),i.removeAttribute("mdw-if"),i.setAttribute("has-icon","{hasIcon}"),i.setAttribute("selected","{checked}"),r.setAttribute("selected","{checked}"),r.setAttribute("inner-segmented-button","{innerSegmentedButton}"),r.setAttribute("shape-start","{shapeStart}"),r.setAttribute("shape-end","{shapeEnd}"),o.setAttribute("role","option"),o.setAttribute("aria-checked",e(({type:l,checked:a})=>l==="checkbox"?`${!!a}`:null)),o.setAttribute("aria-selected",e(({type:l,checked:a})=>l==="checkbox"?null:`${!!a}`)),s.setAttribute("state-disabled","focus")}).css`:host{--mdw-shape__size:0;--mdw-ink:var(--mdw-color__on-surface);gap:8px;min-inline-size:24px;padding-inline-start:max(12px,calc(16px + (var(--mdw-density) * 2px)));padding-inline-end:max(20px,calc(24px + (var(--mdw-density) * 2px)));color:rgb(var(--mdw-ink))}:host(:first-of-type){--mdw-shape__size:var(--mdw-shape__full);--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px}:host(:last-of-type){--mdw-shape__size:var(--mdw-shape__full);--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px}#outline{inset-inline-end:-1px;z-index:-1}:host(:last-of-type) #outline{inset-inline-end:0}#outline[selected]{background-color:rgb(var(--mdw-bg))}#icons{position:relative;display:inline-flex}#icon{box-sizing:border-box;inline-size:0;opacity:1}#icon[has-icon]{inline-size:18px;opacity:1}#icon[selected]{inline-size:18px;opacity:0}#check-icon{position:absolute;inset:0;display:block;overflow:visible;block-size:100%;margin:0;opacity:0;font-size:18px}#check-icon[selected]{opacity:1;font-size:18px}#icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#outline[disabled][selected]{background-color:rgba(var(--mdw-color__on-surface),.12)}`.autoRegister("mdw-segmented-button");var Ao=j.extend().mixin(ee).define({kbdNavQuery(){return $t.elementName}}).set({_ariaRole:"listbox"}).childEvents({slot:{slotchange:"refreshTabIndexes"}}).css`:host{--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container);display:inline-flex;align-items:stretch;flex-direction:row;justify-content:initial;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;min-inline-size:100%;flex:none}:host([color]){background-color:transparent}#slot{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;flex:none}`.on({constructed(){this.updateAriaProperty("ariaOrientation","horizontal")}}).autoRegister("mdw-segmented-button-group");var Io=f.extend().mixin(x).mixin(N).mixin(we).mixin(ve).observe({trailingIcon:{empty:"arrow_drop_down"}}).overrides({controlTagName:"select",controlVoidElement:!1,type:"select-one"}).define({_select(){return this.refs.control},multiple:{value:!1},size:{value:1}}).html`<slot id=slot></slot>`.childEvents({slot:{slotchange(t){let e=this._select;e.replaceChildren(...t.currentTarget.assignedNodes().map(i=>i.cloneNode(!0))),this._value=e.value}}}).recompose(({template:t,refs:{slot:e,prefix:i,suffix:r,control:o}})=>{o.setAttribute("icon","{icon}"),t.append(e),i.remove(),r.remove()}).on({_formResetChanged(t,e){if(!e)return;let i=this.querySelector("option[selected]");this._select.value=(i==null?void 0:i.value)??""}}).css`#slot{display:none}#shape{padding:0;cursor:pointer}#shape[disabled]{cursor:not-allowed}#icon{position:absolute}#trailing-icon{position:absolute;inset-inline-end:16px}#control{padding-inline-start:16px;padding-inline-end:56px;accent-color:rgb(var(--mdw-ink));cursor:inherit}#control[icon]{margin-inline-start:40px;padding-inline-start:0}option{accent-color:rgb(var(--mdw-ink));min-block-size:var(--mdw-typescale__label-large__line-height);appearance:none;background-color:rgb(var(--mdw-color__surface))!important;border-radius:0;color:rgb(var(--mdw-color__on-surface))!important;font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__label-large__letter-spacing)}`.autoRegister("mdw-select");var To=!1;function Ht(){To||(kt('html[dir="rtl"]{--mdw-dir: -1;}'),To=!0)}Ht();function Xe(t,e=0){let i=Number.parseFloat(t);return Number.isNaN(i)?e:i}function Lo(t,e,i){let r=Xe(t),o=Xe(e),n=Xe(i,100);return(r-o)/(n-o)}var Ro=f.extend().mixin(x).mixin(N).mixin(Q).set({stateLayer:!0,type:"range"}).observe({ticks:"integer",_valueAsText:{nullable:!1},thumbLabel:{type:"string",reflect:"read"},_roundedValue:"float",_isHoveringThumb:"boolean",_lastDispatchedChangeValue:"string"}).methods({onControlMouseOrTouch(t){let e=t.currentTarget;if(e.disabled||this.disabledState)return;if(t.type==="touchend"){this._isHoveringThumb=!1;return}let i,r,o,n,s="touches"in t;if(s){if(t.touches.length){let[g]=t.touches;n=!0,{offsetX:i,clientX:r,pageX:o}=g}}else n=(t.buttons&1)===1&&(t.type==="mousedown"||e.matches(":active")),{offsetX:i,clientX:r,pageX:o}=t;i==null&&(r??=o-window.scrollX,i=r-e.getBoundingClientRect().left);let{clientWidth:l}=e,a=i/l;if(a>1?a=1:a<0&&(a=0),n){this._isHoveringThumb=!0;let{min:g,max:_,step:m}=this,u=Xe(g),b=Xe(_,100),w=Xe(m,1);_e(this)&&(a=1-a);let y=a*(b-u)+u,S=Math.round(y/w)*w;if(w<1){let T=10**(-1*Math.floor(Math.log10(w)));S=Math.round(S*T)/T}if(this._roundedValue=S,this._valueAsText=S.toString(10),s&&Ct){t.type==="touchstart"&&t.preventDefault();let{_input:C}=this;C.valueAsNumber!==S&&(C.valueAsNumber=S,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}return}if(s)return;let c=Lo(this.value,this.min,this.max);_e(this)&&(c=1-c);let d=c*l,p=d-20,h=d+20;this._isHoveringThumb=i>=p&&i<=h},onLeaveEvent({currentTarget:t}){de(t)||(this._isHoveringThumb=!1)},onControlFinish(t){let e=t.currentTarget;e.disabled||(t.type==="click"&&t.preventDefault(),e.valueAsNumber=this._roundedValue,this._value=e.value,this._lastDispatchedChangeValue!==this._value&&(this._lastDispatchedChangeValue=this._value,this.dispatchEvent(new Event("change",{bubbles:!0}))))}}).events({blur:"onLeaveEvent",mouseout:"onLeaveEvent"}).childEvents({control:{"~mousedown":"onControlMouseOrTouch","~mousemove":"onControlMouseOrTouch","~mouseout":"onControlMouseOrTouch",touchstart:"onControlMouseOrTouch","~touchmove":"onControlMouseOrTouch","~touchleave":"onControlMouseOrTouch","~touchcancel":"onControlMouseOrTouch","~touchend":"onControlMouseOrTouch",touchend:"onControlFinish",click:"onControlFinish","~change"(t){this._lastDispatchedChangeValue===this._value&&t.stopPropagation(),this._lastDispatchedChangeValue=this._value}}}).expressions({computeTrackStyle({ticks:t,_valueAsText:e,min:i,max:r}){return[t?`--ticks:${t}`:null,`--value:${Lo(e,i,r)}`].filter(Boolean).join(";")||null},_thumbLabelHidden({_isHoveringThumb:t,focusedState:e}){return!t&&!e},_computedThumbLabel({thumbLabel:t,_valueAsText:e}){return t??e}}).html`<div id=track style={computeTrackStyle} aria-hidden=true disabled={disabledState}><div mdw-if={ticks} id=ticks></div><div id=track-active></div><div id=thumb-anchor><div id=thumb></div><div id=thumb-label hidden={_thumbLabelHidden} text={_computedThumbLabel}></div></div></div>`.recompose(({refs:{thumb:t,state:e,control:i}})=>{t.append(e),i.removeAttribute("aria-labelledby")}).on({valueChanged(t,e){this._valueAsText=e}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);display:block;vertical-align:middle;min-block-size:40px;min-inline-size:88px;background-color:transparent}:host,:host([color]){background-color:transparent}#control{inset:0;overflow:visible;block-size:100%;min-block-size:0;inline-size:100%;min-inline-size:0;appearance:none;cursor:pointer;transform:none;background-color:transparent}#control::-webkit-slider-runnable-track{margin-inline:-10px;appearance:none;background-color:transparent}@supports (-moz-appearance:none){#control{inset-inline:-10px;inline-size:calc(100% + 20px)}}#control::-moz-range-track{inline-size:calc(100% + 20px)!important;appearance:none}#control::-webkit-slider-thumb{display:block;block-size:20px;inline-size:20px;-webkit-appearance:none;cursor:inherit;transform:scale(2);background-color:transparent;border-radius:50%;box-shadow:none}#control::-moz-range-thumb{display:block;box-sizing:content-box;block-size:20px;inline-size:20px;border:none;appearance:none;cursor:inherit;transform:scale(2);background-color:transparent;border-radius:50%}#control[disabled]{cursor:not-allowed}#track{--value:.5;position:absolute;inset-block-start:50%;inset-inline:0;block-size:4px;margin-block-start:-2px;pointer-events:none;-webkit-user-select:none;user-select:none;background-color:rgb(var(--mdw-color__surface-container-highest));border-radius:inherit;color:rgb(var(--mdw-bg))}#thumb{position:absolute;inset-block-start:-18px;inset-inline-start:-20px;display:flex;align-items:center;justify-content:center;overflow:hidden;block-size:40px;inline-size:40px;pointer-events:none;border-radius:50%;color:currentColor}#thumb:before{content:"";display:block;block-size:20px;inline-size:20px;background-color:currentColor;border-radius:50%;transition:color .1s,background-color .1s}#ticks:after,#ticks:before{content:"";position:absolute;inset:0;padding-inline:2px;background-clip:content-box;background-image:radial-gradient(circle at 1px,currentColor 0,currentColor 1px,transparent 0);background-position:-1px 50%;background-repeat:repeat-x;background-size:calc(100% / (var(--ticks,0) + 1)) 2px}#ticks:before{color:rgb(var(--mdw-color__on-surface-variant))}#ticks:after{padding-inline-end:calc(100% - (100% * var(--value)) + 10px);z-index:1;color:rgb(var(--mdw-ink));will-change:padding-inline-end}#track-active{position:absolute;inset:0;overflow:hidden;border-radius:99px}#track-active:before{content:"";position:absolute;inset:0;transform:scaleX(var(--value));transform-origin:calc(100% * calc(-.5 * var(--mdw-dir,1) + .5)) 0;background-color:currentColor;will-change:transform}#thumb-anchor{position:absolute;inset-inline-start:calc(var(--value) * 100%);display:flex;align-items:flex-start;flex-direction:column;z-index:24;will-change:inset-inline-start,left,right}#thumb-label{position:absolute;left:0;inset-block-end:14px;display:flex;align-items:center;justify-content:center;box-sizing:content-box;margin-block-end:6px;transform:translate(-50%) scale(1);transform-origin:50% 100%;font-weight:var(--mdw-typescale__label-medium__font-weight);line-height:var(--mdw-typescale__label-medium__line-height);font-family:var(--mdw-typescale__label-medium__font-family);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing);transition:transform .2s;will-change:transform}#thumb-label:is([hidden],[text=""]){transform:translate(-50%) scale(0)}#thumb-label:before{content:attr(text);display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-block-size:28px;min-inline-size:28px;padding:4px;z-index:1;background-color:rgb(var(--mdw-bg));border-radius:14px;color:rgb(var(--mdw-ink))}#thumb-label:after{--x-start:4.1005px;--x-end: calc(100% - 4.1005px) ;--y: calc(100% - 9.9584px) ;content:"";position:absolute;inset:0;inset-block-end:-6px;clip-path:polygon(var(--x-start) var(--y),var(--x-end) var(--y),50% 100%,var(--x-start) var(--y));background-color:currentColor}#track[disabled]{--mdw-bg:var(--mdw-color__on-surface);cursor:not-allowed;opacity:.38;background-color:rgb(var(--mdw-color__on-surface),calc(.12 / .38))}`.autoRegister("mdw-slider");var Po=f.extend().mixin(x).mixin(E).mixin(K).mixin(B).mixin(X).set({_ariaRole:"status",elevated:!0}).observe({open:"boolean",persistent:"boolean",action:"string",actionInk:{empty:"inverse-primary"},actionTypeStyle:{empty:"label-large"},closeButton:"boolean",closeIcon:{empty:"close"},closeInk:{empty:"inherit"},onaction:te,ontoggle:te}).methods({async close(){this.dispatchEvent(new Event("close",{cancelable:!0}))&&this.open&&(this.open=!1,window.getComputedStyle(this).transitionDuration!=="0s"&&await new Promise(t=>{this.addEventListener("transitionend",t,{once:!0})}))},show(){this.open=!0},update(t){this.textContent=t}}).html`<div id=content><slot id=slot></slot></div><mdw-button mdw-if={action} id=action class=button ink={actionInk} type-style={actionTypeStyle}>{action}</mdw-button><mdw-icon-button mdw-if={closeButton} id=close class=button icon={closeIcon} ink={closeInk}>Close</mdw-icon-button>`.childEvents({action:{"~click"(){this.dispatchEvent(new Event("action",{cancelable:!0}))&&this.close()}},close:{"~click"(){this.close()}}}).on({openChanged(){this.dispatchEvent(new Event("toggle"))}}).css`:host{--mdw-shape__size:var(--mdw-shape__small);--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface);--mdw-type__line-height:var(--mdw-typescale__body-medium__line-height);display:flex;align-items:center;grid-area:snackbar;padding-inline:16px;pointer-events:auto;filter:var(--mdw-elevation__drop-shadow__3);opacity:0;transform:translateY(25%) scaleY(.25);transform-origin:bottom center;visibility:hidden;z-index:22;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing);transition:transform .2s,opacity .2s,visibility .2s}:host([action]){gap:8px;padding-inline-end:8px}:host([close-button]){gap:4px;padding-inline-end:4px}:host([open]){opacity:1;transform:scale(1);visibility:inherit}#content{display:flex;align-items:center;flex:1;padding-block:max(2px,calc(14px + (var(--mdw-density) * 2px)))}#slot{display:block;overflow-x:hidden;overflow-y:hidden;max-block-size:calc(var(--mdw-type__line-height) * 2);text-align:start;text-overflow:ellipsis;text-transform:none;white-space:normal;word-break:break-word}@supports (width:1lh){#slot{max-block-size:2lh}}@supports (-webkit-line-clamp:1){#slot{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}}`.autoRegister("mdw-snackbar");var Oo=f.extend().mixin(L).html`<slot id=slot></slot>`.css`:host{display:grid;align-items:flex-end;grid-template:"snackbar" auto/minmax(auto,60ch);justify-content:center;margin:16px;pointer-events:none}@media(min-width:648px){:host{grid-template-columns:minmax(auto,1fr);margin:24px}}@media(min-width:1248px){:host{grid-template-columns:minmax(auto,60ch);justify-content:flex-start}}#slot{pointer-events:auto}`.autoRegister("mdw-snackbar-container");Ht();var Fo=f.extend().mixin(x).mixin(E).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean",selectedIcon:"string",unselectedIcon:"string",src:"string",selectedSrc:"string",unselectedSrc:"string",hovered:"boolean",pressed:"boolean",focused:"boolean",dragValue:"float",color:{empty:"primary"}}).observe({checked:{type:"boolean",get({selected:t}){return t},set(t){this.selected=t}},_active({disabled:t,pressed:e,focused:i,hovered:r}){return!t&&(e||i||r)}}).observe({_thumbColor({color:t,_active:e}){return e?`${t}-container`:""},_iconInk({disabled:t,selected:e,color:i}){return e?t?"on-surface":`on-${i}-container`:"surface-container-highest"}}).expressions({hasIcon({icon:t,src:e,unselectedIcon:i,unselectedSrc:r}){return!!(t||e||i||r)},iconVariation({selected:t}){return t?"filled":null}}).html`<div id=track selected={checked} disabled={disabled}><div id=thumb selected={checked} pressed={pressed} disabled={disabled}><mdw-box block id=thumb-shape selected={checked} pressed={pressed} hovered={hovered} focused={focused} icon={hasIcon} color={_thumbColor} active={_active} ink={_thumbInk} disabled={disabled}></mdw-box><mdw-icon ink={_iconInk} class=icon id=icon src={src} selected={checked} icon={icon} variation={iconVariation}></mdw-icon><mdw-icon ink={_iconInk} class=icon id=selected-icon src={selectedIconSrc} selected={checked} icon={selectedIcon} variation=filled></mdw-icon><mdw-icon ink={_iconInk} class=icon id=unselected-icon src={unselectedIconSrc} selected={checked} icon={unselectedIcon}></mdw-icon><slot id=slot selected={checked}></slot></div></div>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{checked}"),t.setAttribute("errored","{errored}"),t.setAttribute("disabled","{disabled}")}).on({dragValueChanged(t,e){e==null?(this.refs.thumb.style.removeProperty("--mdw-switch__value"),this.refs.thumb.style.removeProperty("transition-duration")):(this.refs.thumb.style.setProperty("--mdw-switch__value",`${e}`),this.refs.thumb.style.setProperty("transition-duration","0s"))}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);--mdw-shape__size:var(--mdw-shape__full);--mdw-switch__value:0;position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;block-size:32px;inline-size:52px;container-type:inline-size;container-name:switch-icon}:host([selected]){--mdw-switch__value:1}:host([disabled]){opacity:.38}#track{position:absolute;inset:0;background-color:rgb(var(--mdw-color__surface-container-highest));border-radius:inherit}#track[selected]{background-color:rgb(var(--mdw-bg))}#track[disabled]{background-color:rgba(var(--mdw-color__surface-container-highest),calc(.12/.38))}#track[disabled][selected]{background-color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#outline{border-width:2px;z-index:1;color:rgb(var(--mdw-color__outline))}#outline:is([pressed],[focused]){color:rgb(var(--mdw-color__outline))}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#outline[selected]{color:transparent}#thumb{--thumb-color:var(--mdw-ink);position:absolute;inset-block:0;inset-inline-start:0;display:flex;align-items:center;justify-content:center;transform:translate(calc(var(--mdw-dir,1) * var(--mdw-switch__value) * (52px - 100%)));border-radius:inherit;aspect-ratio:1/1}:dir(rtl) #thumb{--mdw-dir:-1}@supports (width:1cqw){#thumb{transform:translate(calc(var(--mdw-dir,1) * var(--mdw-switch__value) * (100cqw - 100%)))}}#slot{color:rgb(var(--mdw-color__on-surface))}#slot[selected]{color:rgb(var(--mdw-bg))}#thumb-shape{--mdw-shape__size:inherit;position:absolute;inset:2px;transform:scale(calc(16/28));z-index:0;border-radius:inherit}#thumb-shape[icon]{transform:scale(calc(24/28))}#thumb-shape:not([selected]){--mdw-bg:var(--mdw-color__outline);--mdw-ink:var(--mdw-color__surface-container-highest)}#thumb-shape[selected]{transform:scale(calc(24/28))}#thumb-shape[selected]:not([active]){--mdw-bg:var(--thumb-color)}#thumb-shape[pressed]:not([disabled]){transform:scale(1)}#thumb-shape[disabled]{background-color:rgb(var(--mdw-color__on-surface))}#thumb-shape[disabled][selected]{background-color:rgb(var(--mdw-color__surface))}.icon{position:absolute;top:50%;left:50%;opacity:0;transform:translate(-50%) translateY(-50%);font-size:16px}#icon,#unselected-icon{opacity:1}#unselected-icon[selected]{opacity:0}#selected-icon[selected]{opacity:1}#thumb[disabled]{color:rgb(var(--mdw-color__on-surface))}`.css`:host{--mdw-switch__transition-timing__collapse:cubic-bezier(.4, 0, 1, 1);--mdw-switch__transition-duration__collapse:375ms;--mdw-switch__transition-timing__expand:cubic-bezier(0, 0, .2, 1);--mdw-switch__transition-duration__expand:.5s;--scale-delay:var(--mdw-switch__transition-duration);--mdw-switch__transition-duration:var(--mdw-switch__transition-duration__collapse);--mdw-switch__transition-timing:var(--mdw-switch__transition-timing__collapse);--mdw-switch__transition-delay__color:calc(var(--mdw-switch__transition-duration) / 2);--mdw-switch__transition-delay__translate:calc(var(--mdw-switch__transition-duration) / 2);--mdw-switch__transition-delay__scale:calc(var(--mdw-switch__transition-duration) / 2);transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:calc(var(--mdw-switch__transition-duration) / 2);transition-timing-function:var(--mdw-switch__transition-timing)}#track{transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:background-color;transition-timing-function:inherit}#outline{transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:background-color,color;transition-timing-function:inherit}#thumb{transition-delay:var(--mdw-switch__transition-delay__translate);transition-duration:inherit;transition-property:transform;transition-timing-function:inherit}#thumb-shape,.icon{transition-delay:var(--mdw-switch__transition-delay__scale),var(--mdw-switch__transition-delay__color),var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:transform,background-color,color;transition-timing-function:inherit}:host([icon]){--mdw-switch__transition-delay__translate:0s}.icon{transition-property:transform,opacity,color}:host([selected]){--mdw-switch__transition-delay__color:0s;--mdw-switch__transition-delay__scale:0s;--mdw-switch__transition-duration:var(--mdw-switch__transition-duration__expand);--mdw-switch__transition-timing:var(--mdw-switch__transition-timing__expand)}:host([selected][pressed]){--mdw-switch__transition-delay__translate:0s}:host(:not([selected])){--mdw-switch__transition-delay__translate:0s}:host([pressed]:not([selected])){--mdw-switch__transition-delay__scale:0s}`.autoRegister("mdw-switch-icon");var No=f.extend().mixin(x).mixin(Q).mixin(N).mixin(xe).set({type:"checkbox",stateLayer:!0}).observe({icon:"string",selectedIcon:"string",unselectedIcon:"string",src:"string",selectedSrc:"string",unselectedSrc:"string"}).html`<mdw-switch-icon id=switch color={color} ink={ink} selected={checked} hovered={hoveredState} focused={focusedState} pressed={pressedState} disabled={disabledState} icon={icon} selected-icon={selectedIcon} unselected-icon={unselectedIcon} src={src} selected-src={selectedSrc} unselected-src={unselectedSrc}></mdw-switch-icon><slot id=slot></slot>`.recompose(({refs:{switch:t,state:e,control:i}})=>{t.append(e,i),i.setAttribute("role","switch")}).methods({onControlMouseOrTouch(t){let e=t.currentTarget;if(e.disabled||this.disabledState||t.type==="touchend")return;let i,r,o,n;if("touches"in t){if(t.touches.length){let[m]=t.touches;n=!0,{offsetX:i,clientX:r,pageX:o}=m}}else n=(t.buttons&1)===1&&(t.type==="mousedown"||e.matches(":active")),{offsetX:i,clientX:r,pageX:o}=t;if(!n)return;i==null&&(r??=o-window.scrollX,i=r-e.getBoundingClientRect().left);let{clientWidth:l}=e,a=i/l;a>1?a=1:a<0&&(a=0);let c=this.refs.switch,d=c.dragValue;d==null&&(d=this.checked?1:0);let p=i-l/2,h=c.clientWidth-c.clientHeight,g=p/h,_=Math.max(Math.min(d+g,1),0)}}).childEvents({control:{"~pointermove":"onControlMouseOrTouch"}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);position:relative;display:inline-flex;align-items:center;gap:12px;vertical-align:middle;cursor:pointer}#control{cursor:inherit}#touch-target{z-index:0}#label{display:contents;cursor:pointer}#switch{--mdw-bg:inherit;--mdw-ink:inherit;flex:1;pointer-events:none}#state{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:40px;inline-size:100%;min-inline-size:40px;pointer-events:none;transform:translate(-50%) translateY(-50%);border-radius:50%}#state[touched]{--mdw-state__pressed-opacity:0}:host(:disabled){--mdw-ink:var(--mdw-color__on-surface);--mdw-bg:var(--mdw-color__surface);cursor:not-allowed;opacity:.38}:host([internals-disabled]){--mdw-ink:var(--mdw-color__on-surface);--mdw-bg:var(--mdw-color__surface);cursor:not-allowed;opacity:.38}#switch[disabled]{opacity:1}`.autoRegister("mdw-switch");var Ie=f.extend().mixin(E).mixin(N).mixin(J).mixin(ye).mixin(re).mixin(L).define({stateTargetElement(){return this.refs.anchor}}).set({stateLayer:!0}).observe({active:"boolean",icon:"string",src:"string",ariaLabel:"string"}).methods({focus(t){this.refs.anchor.focus(t)},computeLabelMetrics(){let{slot:t,icon:e}=this.refs,i=t.clientWidth?t:e;return{width:i.clientWidth,left:i.offsetLeft}}}).expressions({anchorAriaControls({href:t}){return t!=null&&t.startsWith("#")?t.slice(1):null},anchorAriaSelected({active:t}){return`${t}`},anchorAriaDisabled({disabledState:t}){return`${t}`},anchorHref({href:t}){return t??"#"},iconIf({icon:t,src:e}){return t||e},iconVariation({active:t}){return t?"filled":null}}).html`<mdw-icon mdw-if={iconIf} id=icon aria-hidden=true src={src} active={active} icon={icon} variation={iconVariation}></mdw-icon><slot id=slot></slot>`.recompose(({refs:{anchor:t,icon:e,slot:i,state:r}})=>{t.setAttribute("role","tab"),t.setAttribute("aria-label","{ariaLabel}"),t.setAttribute("aria-controls","{anchorAriaControls}"),t.setAttribute("aria-selected","{anchorAriaSelected}"),t.setAttribute("aria-disabled","{anchorAriaDisabled}"),t.setAttribute("disabled","{disabledState}"),t.append(e,i),r.setAttribute("state-disabled","focus")}).events({keydown(t){t.key===" "&&(t.preventDefault(),this.refs.anchor.click())}}).childEvents({anchor:{click(t){if(this.disabledState){t.preventDefault(),t.stopPropagation();return}let{href:e}=this;if(!e){t.preventDefault();return}if(e.startsWith("#")){let r=this.getRootNode().querySelector(e);if(!r)return;t.preventDefault();let o=Oe?"instant":"smooth";r.scrollTo({top:0,behavior:o}),r.offsetParent.scrollTo({left:r.offsetLeft,behavior:"smooth"})}}}}).css`:host{display:inline-flex;min-inline-size:64px;flex:none;cursor:pointer}#anchor{display:flex;align-items:center;flex-direction:column;justify-content:center;box-sizing:border-box;block-size:100%;inline-size:100%;flex:1;padding-block:6px;padding-inline:12px;cursor:pointer;outline:0;color:inherit;text-decoration:inherit}#icon{padding-block:4px;font-size:24px}#anchor[disabled],#shape[disabled]{cursor:not-allowed;background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}:host([active]){color:rgb(var(--mdw-ink))}#slot{display:block;overflow-x:hidden;overflow-y:hidden;max-block-size:var(--mdw-typescale__title-small__line-height);max-inline-size:100%;cursor:inherit;outline:0;opacity:var(--mdw-nav-item__anchor__opacity, 1);transform:translateY(var(--mdw-nav-item__offset-y,0));color:inherit;font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing);text-align:center;text-decoration:inherit;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition:opacity,color,transform .2s;will-change:opacity,transform}`.autoRegister("mdw-tab");var Ui=new Set,Xi;function ct(t){return t.observe({pageIsRTL:{type:"boolean",value:document.documentElement.dir==="rtl"}}).on({connected(){Xi||(Xi=new MutationObserver(()=>{let e=document.documentElement.dir==="rtl";for(let i of Ui)i.pageIsRTL=e}),Xi.observe(document.documentElement,{attributeFilter:["dir"]})),Ui.add(this)},disconnected(){Ui.delete(this)}})}var Do=f.extend().mixin(x).mixin(ee).mixin(W).mixin(ct).mixin(E).mixin(lt).observe({scrollable:"boolean"}).set({_tabContentRef:null,_tabContentScrollListener:null,_tabCollection:null,_tabMetrics:null,_isRTL:null}).define({tabContent:{get(){var t;return(t=this._tabContentRef)==null?void 0:t.deref()},set(t){var i;let e=(i=this._tabContentRef)==null?void 0:i.deref();e&&e.removeEventListener("scroll",this._tabContentScrollListener),t?(this._tabContentRef=new WeakRef(t),this._tabContentScrollListener=this.observeTabContent.bind(this),t.addEventListener("scroll",this._tabContentScrollListener),this.observeTabContent()):this._tabContentRef=null}}}).observe({tabContentId:"string",active:"boolean",secondary:"boolean",_indicatorStyle:{value:"opacity: 0"},color:{empty:"surface-primary"}}).define({tabs(){return this._tabCollection??=this.getElementsByTagName(Ie.elementName)}}).observe({_selectedIndex:{type:"integer",empty:-1,changedCallback(t,e){this.active=e!==-1}}}).define({kbdNavQuery(){return Ie.elementName},ariaOrientationDefault(){return"horizontal"},childTabItems(){return this.querySelectorAll(Ie.elementName)},tabMetrics(){return this._tabMetrics??=[...this.tabs].map((t,e)=>(t instanceof Ie||customElements.upgrade(t),{left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,label:t.computeLabelMetrics(),tab:t,index:e}))},selectedIndex:{get(){let t=0;for(let e of this.tabs){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.tabs)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedItem:{get(){for(let t of this.tabs)if(t.active)return t;return null},set(t){let e=0;for(let i of this.tabs){if(i===t)return this.selectedIndex=e,t;e++}return null}}}).methods({clearCache(){this._tabMetrics=null},searchForTabContent(){let{tabContentId:t,isConnected:e}=this;if(!t||!e)return;let i=this.getRootNode();this.tabContent=i.getElementById(t)},updateIndicatorByTab(t){t??=this.selectedItem??this.tabs.item(0);let e=this.tabMetrics.find(o=>o.tab===t);if(!e)return;let i=this.secondary?e.width:e.label.width,r=this.secondary?e.left:e.left+e.label.left;this._indicatorStyle=`--width: ${i}; --offset: ${r}px`},updateIndicator(t=!1){this.updateIndicatorByTab(),t||this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByPosition(t){let e=this.tabMetrics,i=Math.min(Math.max(t,0),1),r=(e.length-1)*i,o=Math.floor(r),n=Math.ceil(r),s=e[o];if(!s)return;let l=e[n],a,c,d;if(s===l)a=this.secondary?s.width:s.label.width,c=s.tab,d=s.center;else{let p=1-(r-o),h=1-p,g=p*(this.secondary?s.width:s.label.width),_=h*(this.secondary?l.width:l.label.width),m=p>h?o:n,u=l.center-s.center;a=g+_,c=this.tabMetrics[m].tab,d=s.center+u*h}if(!c.active){for(let p of this.tabs)p.active=p===c;this.active=!0}this._indicatorStyle=`--width: ${a}; --offset: ${d-a/2}px`,this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByIndex(t){this.updateIndicatorByTab(this.tabs.item(t??this._selectedIndex))},observeTabContent(){let t=this.tabContent;if(!t)return;let e=t.scrollLeft;this.pageIsRTL&&(e*=-1);let i=t.clientWidth,r=t.scrollWidth-i,o=r===0?0:e/r;this.updateIndicatorByPosition(o)},onResizeObserved(){this.clearCache(),this.updateIndicator()}}).set({ariaRole:"tablist"}).html`<slot id=slot ink={ink} type-style={typeStyle} scrollable={scrollable}></slot><div id=indicator aria-hidden=true style={_indicatorStyle} active={active} secondary={secondary}><div id=indicator-start class=indicator-piece></div><div id=indicator-center class=indicator-piece></div><div id=indicator-end class=indicator-piece></div></div>`.on({constructed(){document.addEventListener("DOMContentLoaded",()=>this.searchForTabContent(),{once:!0})},connected(){this.searchForTabContent()},pageIsRTLChanged(){this.clearCache(),this.updateIndicator()},activeChanged(t,e){e&&this.updateIndicator()},secondaryChanged(){this.updateIndicator()},_selectedIndexChanged(t,e){this.updateIndicatorByIndex(e)},tabContentIdChanged(){this.searchForTabContent()}}).events({"~click"({target:t}){t!==this&&t instanceof Ie}}).childEvents({slot:{slotchange(){this.clearCache(),this.updateIndicator(),this.searchForTabContent()}}}).css`:host{--mdw-ink:var(--mdw-color__primary);--mdw-bg:var(--mdw-color__surface);position:relative;inset-block-start:0;inset-inline:0;display:grid;align-items:stretch;grid-auto-columns:minmax(auto,1fr);grid-auto-flow:column;justify-content:space-evenly;overflow-y:hidden;box-sizing:border-box;min-block-size:48px;inline-size:100%;flex:none;z-index:4;color:inherit;text-align:center;will-change:transform}:host(:where([color])){background-color:rgb(var(--mdw-bg))}#indicator{--corner:3;--width:24;--offset:0;--visibility:0;--transition-ratio:1;position:absolute;inset-block-end:0;inset-inline:0;overflow-y:clip;block-size:3px;inline-size:100%;pointer-events:none;opacity:1;transform:translateY(calc(100% * (1 - var(--visibility))));color:inherit;transition:transform .2s;will-change:transform}.indicator-piece{position:absolute;inset-block:0;opacity:1;transform-origin:0 0;z-index:1;background-color:currentColor;transition:transform;transition-duration:calc(.2s * var(--transition-ratio));will-change:transform}#indicator-start{left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset));border-top-left-radius:calc(1px * var(--corner))}#indicator-center{--precision:100;position:absolute;left:calc(1px * var(--corner));inline-size:calc(1px * var(--precision));transform:translate(var(--offset)) scaleX(calc((var(--width) - (2 * var(--corner)))/ var(--precision)))}#indicator-end{position:absolute;left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset)) translate(calc(-2px * var(--corner))) translate(calc(var(--width) * 1px));border-top-right-radius:calc(1px * var(--corner))}#indicator[active]{--visibility:1;color:rgb(var(--mdw-ink))}#indicator[secondary]{--corner:0}:host([scrollable]){display:flex;justify-content:initial}#slot[scrollable]{display:inline-flex;inline-size:0;flex:1;padding-inline:48px}`.autoRegister("mdw-tab-list");var Bt=j.extend().mixin(B).set({_ariaRole:"tabpanel"}).observe({active:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"false":"true")}},peeking:"boolean"}).css`:host{overflow-y:auto;scroll-snap-align:center;min-block-size:100%;max-block-size:100%;min-inline-size:100%;max-inline-size:100%;visibility:hidden;will-change:visibility}:host(:is([active],[peeking])){visibility:inherit!important}`.autoRegister("mdw-tab-panel");var Vo=f.extend().mixin(W).set({_panelNodes:[],_panelMetrics:null}).observe({_selectedIndex:{type:"integer",empty:-1}}).define({panels(){return this._panelNodes},panelMetrics(){return this._panelMetrics??=[...this._panelNodes].map((t,e)=>({left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,index:e}))}}).define({selectedIndex:{get(){let t=0;for(let e of this.panels){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.panels)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedPanel:{get(){return this.panels.find(t=>t.active)},set(t){let e=this.panels.indexOf(t);return e===-1?null:(this.selectedIndex=e,t)}}}).html`<slot id=slot></slot>`.methods({onResizeObserved(){this._panelMetrics=null,this.updatePanels()},updatePanels(){let t=this.scrollLeft,e=this.clientWidth,i=t+e;for(let r of this.panelMetrics){let n=(t>r.right||i<r.left?0:t>=r.left?r.right-t:i-r.left)/e,s=this.panels[r.index];s.active=n>=.5,s.peeking=n>0&&n<.5}}}).childEvents({slot:{slotchange(t){let e=t.currentTarget;this._panelNodes=e.assignedElements().filter(i=>i.tagName===Bt.elementName.toUpperCase()),this._panelMetrics=null,this.updatePanels()}}}).events({scroll:"updatePanels"}).css`:host{display:grid;grid-auto-columns:100%;grid-auto-flow:column;grid-template-columns:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;flex-grow:1;-webkit-scroll-snap-type-x:mandatory;scroll-snap-type-x:mandatory;-webkit-scroll-snap-points-x:repeat(100%);scroll-snap-points-x:repeat(100%);overscroll-behavior-x:none;will-change:transform}`.autoRegister("mdw-tab-content");var jt={nullParser:String,value:""},$o=f.extend().mixin(x).mixin(N).mixin(we).mixin(ve).mixin(W).set({supportsCSSLineHeightUnit:CSS.supports("height","1lh"),type:"textarea",_resizing:!1}).overrides({controlTagName:"textarea",controlVoidElement:!1}).observe({fixed:{type:"boolean"},minRows:{attr:"minrows",type:"integer",nullable:!1},maxRows:{attr:"maxrows",type:"integer",nullable:!1},_lineHeight:"string",cols:{type:"integer",empty:0},dirName:{attr:"dirname",...jt},maxLength:{attr:"maxlength",type:"integer",empty:0},minLength:{attr:"minlength",type:"integer",empty:0},placeholder:jt,rows:{type:"integer",empty:1},wrap:jt,defaultValueAttr:{attr:"value",...jt}}).define({_textarea(){return this.refs.control}}).define({defaultValue:{get(){return this._textarea.defaultValue},set(t){let e=this._textarea.defaultValue;this._textarea.defaultValue=t;let i=this._textarea.defaultValue;e!==i&&this.propChangedCallback("defaultValue",e,i),this.textContent=this._textarea.defaultValue}},textLength(){return this._textarea.textLength},select(){return this._textarea.select},selectionDirection:{get(){return this._textarea.selectionDirection},set(t){this._textarea.selectionDirection=t}},selectionStart:{get(){return this._textarea.selectionStart},set(t){this._textarea.selectionStart=t}},selectionEnd:{get(){return this._textarea.selectionEnd},set(t){this._textarea.selectionEnd=t}},setRangeText(){return this._textarea.setRangeText},setSelectionRange(){return this._textarea.setSelectionRange}}).methods({resize(){if(this._resizing)return;this._resizing=!0;let t=this._textarea,e=t.style.getPropertyValue("height");if(!this.supportsCSSLineHeightUnit){let{lineHeight:i}=window.getComputedStyle(t);this._lineHeight=i}if(this.minRows>1&&t.rows<this.minRows?t.rows=this.minRows:this.maxRows&&t.rows>this.maxRows&&(t.rows=this.maxRows),!this.fixed){for(;t.clientHeight<t.scrollHeight&&(e&&(t.style.removeProperty("height"),e=null),!(this.maxRows&&t.rows===this.maxRows));){let i=t.clientHeight;if(t.rows++,i===t.clientHeight){t.rows--;break}}for(;!e&&t.clientHeight>=t.scrollHeight&&!(t.rows===1||this.minRows>1&&t.rows===this.minRows);){let i=t.clientHeight;if(t.rows--,i===t.clientHeight||t.scrollHeight>t.clientHeight){t.rows++;break}}}t.selectionEnd===t.value.length&&(t.scrollTop=t.scrollHeight),this.rows=t.rows,this._resizing=!1},onResizeObserved(){this.matches(":active")||this.resize()}}).overrides({_onSetValue(t){this._textarea.value=t,this._value=this._textarea.value,this.resize()}}).childEvents({slot:{slotchange({currentTarget:t}){let e=this.refs.control,i=e.defaultValue;e.replaceChildren(...t.assignedNodes().map(o=>o.cloneNode(!0)));let r=e.defaultValue;i!==r&&this.propChangedCallback("defaultValue",i,r)}},control:{input(){this.resize()}}}).recompose(({refs:{control:t}})=>{t.removeAttribute("placeholder"),t.setAttribute("rows","{rows}"),t.setAttribute("input-prefix","{inputPrefix}"),t.setAttribute("input-suffix","{inputSuffix}"),t.setAttribute("fixed","{fixed}"),t.setAttribute("icon","{icon}")}).on({defaultValueAttrChanged(t,e){this.defaultValue=e},defaultValueChanged(){this._value=this._textarea.value,this.resize()},_lineHeightChanged(t,e){this.refs.shape.style.setProperty("--line-height",e)},minRowsChanged(t,e){this.refs.shape.style.setProperty("--min-rows",`${e||"none"}`),this.resize()},maxRowsChanged(t,e){this.refs.shape.style.setProperty("--max-rows",`${e||"none"}`),this.resize()},rowsChanged(){this.resize()},_formResetChanged(t,e){e&&this._onSetValue(this.defaultValue)},attrs:{cols:F("cols","control"),dirname:F("dirname","control"),minlength:F("minlength","control"),maxlength:F("maxlength","control"),placeholder:F("placeholder","control"),minrows:F("minrows","control"),maxrows:F("maxrows","control")}}).css`:host{display:inline-grid;grid-auto-flow:row;grid-template-rows:minmax(0,100%)}:host(:is([filled][label])){--control__margin-top:calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top:0px;--control__padding-bottom:calc((var(--mdw-text-field__ratio) * 8px) - 1px);--control__margin-bottom:1px}#shape{--max-rows:none;--line-height:var(--mdw-typescale__body-large__line-height);--expected-height:calc(var(--line-height) + var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom));max-block-size:100%;grid-row:1/1;padding:0}@supports (height:1lh){#shape{--line-height:1lh}}#slot{display:none}#control{-ms-overflow-style:-ms-autohiding-scrollbar;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:content-box;block-size:min-content;min-block-size:var(--line-height);max-block-size:calc(100% - (var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom)));inline-size:calc(100% - 32px)!important;padding-inline:16px;form-sizing:normal}#control[minrows]{min-block-size:calc((var(--min-rows) * var(--line-height)))}#control[maxrows]{max-block-size:calc((var(--max-rows) * var(--line-height)))}#icon{margin-inline-end:16px}#control[icon]{padding-inline-start:0}#control:is([icon],[input-prefix]){padding-inline-start:0}#control:is([trailing-icon],[input-suffix]){padding-inline-end:0}#suffix{padding-inline-end:16px}mdw-icon{align-self:flex-start;margin-block-start:calc((var(--expected-height) - var(--mdw-icon__size))/ 2)}#control[fixed]{resize:none}`.autoRegister("mdw-textarea");var Ho=We.extend().set({_baseAriaLevel:7}).css`:host{font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__title-medium__font);letter-spacing:var(--mdw-typescale__title-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing)}`.autoRegister("mdw-title");return Ko(Kn);})();
|
|
213
213
|
|
|
214
214
|
(typeof globalThis !== 'undefined' ? globalThis : window)['@shortfuse/materialdesignweb'] = f2e635f4_1f55_4b3a_8064_72d0aa34d496;
|
|
215
215
|
|