/*! For license information please see 50030.ad1c3ccc30550b11.js.LICENSE.txt */
export const __rspack_esm_id="50030";export const __rspack_esm_ids=["50030"];export const __webpack_modules__={4720(t,e,n){n.d(e,{Y:()=>d});var s=n(62826),i=n(97735),o=(n(18111),n(22489),n(20116),n(96196)),r=n(99591);class c extends o.WF{get chips(){return this.childElements.filter(t=>t instanceof r.v)}render(){return o.qy`<slot @slotchange="${this.updateTabIndices}"></slot>`}handleKeyDown(t){const e="ArrowLeft"===t.key,n="ArrowRight"===t.key,s="Home"===t.key,i="End"===t.key;if(!(e||n||s||i))return;const{chips:o}=this;if(o.length<2)return;if(t.preventDefault(),s||i){return o[s?0:o.length-1].focus({trailing:i}),void this.updateTabIndices()}const r="rtl"===getComputedStyle(this).direction?e:n,c=o.find(t=>t.matches(":focus-within"));if(!c){return(r?o[0]:o[o.length-1]).focus({trailing:!r}),void this.updateTabIndices()}const a=o.indexOf(c);let d=r?a+1:a-1;for(;d!==a;){d>=o.length?d=0:d<0&&(d=o.length-1);const t=o[d];if(!t.disabled||t.alwaysFocusable){t.focus({trailing:!r}),this.updateTabIndices();break}r?d++:d--}}updateTabIndices(){const{chips:t}=this;let e;for(const n of t){const t=n.alwaysFocusable||!n.disabled;n.matches(":focus-within")&&t?e=n:(t&&!e&&(e=n),n.tabIndex=-1)}e&&(e.tabIndex=0)}constructor(){super(),this.internals=this.attachInternals(),o.S$||(this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar")}}(0,s.Cg)([(0,i.KN)()],c.prototype,"childElements",void 0);const a=o.AH`:host{display:flex;flex-wrap:wrap;gap:8px}`;let d=class extends c{};d.styles=[a],d=(0,s.Cg)([(0,i.EM)("md-chip-set")],d)},2045(t,e,n){n.d(e,{q:()=>i});let s={};function i(){return s}},6439(t,e,n){function s(t){return e=>{const n=(t?Math[t]:Math.trunc)(e);return 0===n?0:n}}n.d(e,{u:()=>s})},74816(t,e,n){n.d(e,{x:()=>i});n(18111),n(20116),n(61701);var s=n(73420);function i(t,...e){const n=s.w.bind(null,t||e.find(t=>"object"==typeof t));return e.map(n)}},9160(t,e,n){n.d(e,{_P:()=>r,my:()=>s,s0:()=>o,w4:()=>i});Math.pow(10,8);const s=6048e5,i=864e5,o=36e5,r=Symbol.for("constructDateFrom")},73420(t,e,n){n.d(e,{w:()=>i});var s=n(9160);function i(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&s._P in t?t[s._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},3952(t,e,n){n.d(e,{m:()=>a});var s=n(83504);function i(t){const e=(0,s.a)(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}var o=n(74816),r=n(9160),c=n(35932);function a(t,e,n){const[s,a]=(0,o.x)(n?.in,t,e),d=(0,c.o)(s),u=(0,c.o)(a),h=+d-i(d),l=+u-i(u);return Math.round((h-l)/r.w4)}},6946(t,e,n){n.d(e,{c:()=>o});var s=n(74816),i=n(3952);function o(t,e,n){const[o,c]=(0,s.x)(n?.in,t,e),a=r(o,c),d=Math.abs((0,i.m)(o,c));o.setDate(o.getDate()-a*d);const u=a*(d-Number(r(o,c)===-a));return 0===u?0:u}function r(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}},35932(t,e,n){n.d(e,{o:()=>i});var s=n(83504);function i(t,e){const n=(0,s.a)(t,e?.in);return n.setHours(0,0,0,0),n}},52640(t,e,n){n.d(e,{k:()=>o});var s=n(2045),i=n(83504);function o(t,e){const n=(0,s.q)(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=(0,i.a)(t,e?.in),c=r.getDay(),a=(c<o?7:0)+c-o;return r.setDate(r.getDate()-a),r.setHours(0,0,0,0),r}},83504(t,e,n){n.d(e,{a:()=>i});var s=n(73420);function i(t,e){return(0,s.w)(e||t,t)}},3890(t,e,n){n.d(e,{T:()=>l});n(18111),n(20116);var s=n(5055),i=n(63937),o=n(37540);class r{disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}constructor(t){this.G=t}}class c{get(){return this.Y}pause(){this.Y??=new Promise(t=>this.Z=t)}resume(){this.Z?.(),this.Y=this.Z=void 0}constructor(){this.Y=void 0,this.Z=void 0}}var a=n(42017);const d=t=>!(0,i.sO)(t)&&"function"==typeof t.then,u=1073741823;class h extends o.Kq{render(...t){return t.find(t=>!d(t))??s.c0}update(t,e){const n=this._$Cbt;let i=n.length;this._$Cbt=e;const o=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$Cwt);t++){const s=e[t];if(!d(s))return this._$Cwt=t,s;t<i&&s===n[t]||(this._$Cwt=u,i=0,Promise.resolve(s).then(async t=>{for(;r.get();)await r.get();const e=o.deref();if(void 0!==e){const n=e._$Cbt.indexOf(s);n>-1&&n<e._$Cwt&&(e._$Cwt=n,e.setValue(t))}}))}return s.c0}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}constructor(){super(...arguments),this._$Cwt=u,this._$Cbt=[],this._$CK=new r(this),this._$CX=new c}}const l=(0,a.u$)(h)}};
//# sourceMappingURL=50030.ad1c3ccc30550b11.js.map