0
Loading
var t,e,n,r,i,a,o,s,l,c,u,d,h,p,f,m,v,g,y,b,E,_,T,I,S,A,C,w,x,O,R,L,M,D,N,k,P,F,H=Object.defineProperty,B=Object.getPrototypeOf,U=Reflect.get,j=t=>{throw TypeError(t)},V=(t,e,n)=>((t,e,n)=>e in t?H(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n),$=(t,e,n)=>e.has(t)||j("Cannot "+n),W=(t,e,n)=>($(t,e,"read from private field"),n?n.call(t):e.get(t)),z=(t,e,n)=>e.has(t)?j("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),G=(t,e,n,r)=>($(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),X=(t,e,n)=>($(t,e,"access private method"),n);const K=!1;var q=Array.isArray,Z=Array.prototype.indexOf,Y=Array.from,Q=Object.defineProperty,J=Object.getOwnPropertyDescriptor,tt=Object.getOwnPropertyDescriptors,et=Object.prototype,nt=Array.prototype,rt=Object.getPrototypeOf,it=Object.isExtensible;function at(t){return"function"==typeof t}const ot=()=>{};function st(t){for(var e=0;e0||Gt.length>0}function qt(t){if(0===zt.length&&!fe){var e=zt;queueMicrotask(()=>{e===zt&&Xt()})}zt.push(t)}function Zt(){var t;zt.length>0&&Xt(),Gt.length>0&&(t=Gt,Gt=[],st(t))}function Yt(){const t=Tn.b;return null===t&&function(){throw new Error("https://svelte.dev/e/await_outside_boundary")}(),t}function Qt(t){var e=2050,n=null!==bn&&2&bn.f?bn:null;null===Tn||null!==n&&0!==(n.f&dt)?e|=dt:Tn.f|=_t;return{ctx:kt,deps:null,effects:null,equals:Lt,f:e,fn:t,reactions:null,rv:0,v:Rt,wv:0,parent:null!=n?n:Tn,ac:null}}function Jt(t,e){let n=Tn;null===n&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var r=n.b,i=void 0,a=Te(Rt),o=null,s=!bn;return function(t){qe(4718592,t,!0)}(()=>{var e;try{var n=t();o&&Promise.resolve(n).catch(()=>{})}catch(h){n=Promise.reject(h)}var l=()=>n;i=null!=(e=null==o?void 0:o.then(l,l))?e:Promise.resolve(n),o=i;var c=le,u=r.is_pending();s&&(r.update_pending_count(1),u||c.increment());const d=(t,e=void 0)=>{o=null,u||c.activate(),e?e!==xt&&(a.f|=St,Ce(a,e)):(0!==(a.f&St)&&(a.f^=St),Ce(a,t)),s&&(r.update_pending_count(-1),u||c.decrement()),oe()};if(i.then(d,t=>d(null,t||"unknown")),c)return()=>{queueMicrotask(()=>c.neuter())}}),new Promise(t=>{!function e(n){function r(){n===i?t(a):e(i)}n.then(r,r)}(i)})}function te(t){const e=Qt(t);return An(e),e}function ee(t){const e=Qt(t);return e.equals=Nt,e}function ne(t){var e=t.effects;if(null!==e){t.effects=null;for(var n=0;nJt(t))).then(e=>{null==l||l.activate(),u();try{n([...t.map(r),...e])}catch(i){0===(c.f>)&&$t(i,c)}null==l||l.deactivate(),oe()}).catch(t=>{d.error(t)})}else n(t.map(r))}function oe(){In(null),_n(null),Pt(null)}const se=new Set;let le=null,ce=null,ue=new Set,de=[],he=null,pe=!1,fe=!1;t=new WeakMap,e=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakSet,p=function(t){var e;t.f^=pt;for(var n=t.first;null!==n;){var r=n.f,i=!!(96&r);if(!(i&&0!==(r&pt)||0!==(r&vt)||this.skipped_effects.has(n))&&null!==n.fn){if(i)n.f^=pt;else if(4&r)W(this,l).push(n);else if(0===(r&pt)){if(0!==(r&It))((null==(e=n.b)?void 0:e.is_pending())?W(this,o):W(this,a)).push(n);else kn(n)&&(0!==(n.f<)&&W(this,c).push(n),Un(n))}var s=n.first;if(null!==s){n=s;continue}}var u=n.parent;for(n=n.next;null===n&&null!==u;)n=u.next,u=u.parent}},f=function(t){for(const e of t){(0!==(e.f&ft)?W(this,u):W(this,d)).push(e),Gn(e,pt)}t.length=0},m=function(){if(!W(this,i))for(const t of W(this,e))t();W(this,e).clear()};let me=class v{constructor(){z(this,h),V(this,"current",new Map),z(this,t,new Map),z(this,e,new Set),z(this,n,0),z(this,r,null),z(this,i,!1),z(this,a,[]),z(this,o,[]),z(this,s,[]),z(this,l,[]),z(this,c,[]),z(this,u,[]),z(this,d,[]),V(this,"skipped_effects",new Set)}process(t){var e;de=[],ce=null;for(const n of t)X(this,h,p).call(this,n);if(0===W(this,a).length&&0===W(this,n)){X(this,h,m).call(this);var i=W(this,s),u=W(this,l);G(this,s,[]),G(this,l,[]),G(this,c,[]),ce=le,le=null,be(i),be(u),null===le?le=this:se.delete(this),null==(e=W(this,r))||e.resolve()}else X(this,h,f).call(this,W(this,s)),X(this,h,f).call(this,W(this,l)),X(this,h,f).call(this,W(this,c));for(const n of W(this,a))Un(n);for(const n of W(this,o))Un(n);G(this,a,[]),G(this,o,[])}capture(e,n){W(this,t).has(e)||W(this,t).set(e,n),this.current.set(e,e.v)}activate(){le=this}deactivate(){le=null,ce=null;for(const t of ue)if(ue.delete(t),t(),null!==le)break}neuter(){G(this,i,!0)}flush(){de.length>0?ve():X(this,h,m).call(this),le===this&&(0===W(this,n)&&se.delete(this),this.deactivate())}increment(){G(this,n,W(this,n)+1)}decrement(){if(G(this,n,W(this,n)-1),0===W(this,n)){for(const t of W(this,u))Gn(t,ft),Ee(t);for(const t of W(this,d))Gn(t,mt),Ee(t);G(this,s,[]),G(this,l,[]),this.flush()}else this.deactivate()}add_callback(t){W(this,e).add(t)}settled(){var t,e,n;return(null!=(t=W(this,r))?t:G(this,r,{promise:new Promise((t,r)=>{e=t,n=r}),resolve:e,reject:n})).promise}static ensure(){if(null===le){const t=le=new v;se.add(le),fe||v.enqueue(()=>{le===t&&t.flush()})}return le}static enqueue(t){qt(t)}};function ve(){var t=mn;pe=!0;try{var e=0;for(vn(!0);de.length>0;){var n=me.ensure();if(e++>1e3)K,ge();n.process(de),_e.clear()}}finally{pe=!1,vn(t),he=null}}function ge(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(t){$t(t,he)}}let ye=null;function be(t){var e=t.length;if(0!==e){for(var n=0;n0)){_e.clear();for(const t of ye)Un(t);ye=[]}}ye=null}}function Ee(t){for(var e=he=t;null!==e.parent;){var n=(e=e.parent).f;if(pe&&e===Tn&&0!==(n<))return;if(96&n){if(0===(n&pt))return;e.f^=pt}}de.push(e)}const _e=new Map;function Te(t,e){return{f:0,v:t,reactions:null,equals:Lt,rv:0,wv:0}}function Ie(t,e){const n=Te(t);return An(n),n}function Se(t,e=!1,n=!0){const r=Te(t);return e||(r.equals=Nt),r}function Ae(t,e,n=!1){return null===bn||En&&0===(bn.f&Et)||!(4325394&bn.f)||(null==Sn?void 0:Sn.includes(t))||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),Ce(t,n?Re(e):e)}function Ce(t,e){if(!t.equals(e)){var n=t.v;gn?_e.set(t,e):_e.set(t,n),t.v=e,me.ensure().capture(t,n),2&t.f&&(0!==(t.f&ft)&&re(t),Gn(t,0===(t.f&dt)?pt:mt)),t.wv=Nn(),Oe(t,ft),null===Tn||0===(Tn.f&pt)||96&Tn.f||(null===xn?function(t){xn=t}([t]):xn.push(t))}return e}function we(t,e=1){var n=Vn(t),r=1===e?n++:n--;return Ae(t,n),r}function xe(t){Ae(t,t.v+1)}function Oe(t,e){var n=t.reactions;if(null!==n)for(var r=n.length,i=0;i{if(Ln===a)return t();var e=bn,n=Ln;_n(null),Mn(a);var r=t();return _n(e),Mn(n),r};return r&&n.set("length",Ie(t.length)),new Proxy(t,{defineProperty(t,e,r){"value"in r&&!1!==r.configurable&&!1!==r.enumerable&&!1!==r.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var i=n.get(e);return void 0===i?i=o(()=>{var t=Ie(r.value);return n.set(e,t),t}):Ae(i,r.value,!0),!0},deleteProperty(t,e){var r=n.get(e);if(void 0===r){if(e in t){const t=o(()=>Ie(Rt));n.set(e,t),xe(i)}}else Ae(r,Rt),xe(i);return!0},get(e,r,i){var a;if(r===At)return t;var s=n.get(r),l=r in e;if(void 0!==s||l&&!(null==(a=J(e,r))?void 0:a.writable)||(s=o(()=>Ie(Re(l?e[r]:Rt))),n.set(r,s)),void 0!==s){var c=Vn(s);return c===Rt?void 0:c}return Reflect.get(e,r,i)},getOwnPropertyDescriptor(t,e){var r=Reflect.getOwnPropertyDescriptor(t,e);if(r&&"value"in r){var i=n.get(e);i&&(r.value=Vn(i))}else if(void 0===r){var a=n.get(e),o=null==a?void 0:a.v;if(void 0!==a&&o!==Rt)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(t,e){var r;if(e===At)return!0;var i=n.get(e),a=void 0!==i&&i.v!==Rt||Reflect.has(t,e);if((void 0!==i||null!==Tn&&(!a||(null==(r=J(t,e))?void 0:r.writable)))&&(void 0===i&&(i=o(()=>Ie(a?Re(t[e]):Rt)),n.set(e,i)),Vn(i)===Rt))return!1;return a},set(t,e,a,s){var l,c=n.get(e),u=e in t;if(r&&"length"===e)for(var d=a;dIe(Rt)),n.set(d+"",h))}void 0===c?u&&!(null==(l=J(t,e))?void 0:l.writable)||(Ae(c=o(()=>Ie(void 0)),Re(a)),n.set(e,c)):(u=c.v!==Rt,Ae(c,o(()=>Re(a))));var p=Reflect.getOwnPropertyDescriptor(t,e);if((null==p?void 0:p.set)&&p.set.call(s,a),!u){if(r&&"string"==typeof e){var f=n.get("length"),m=Number(e);Number.isInteger(m)&&m>=f.v&&Ae(f,m+1)}xe(i)}return!0},ownKeys(t){Vn(i);var e=Reflect.ownKeys(t).filter(t=>{var e=n.get(t);return void 0===e||e.v!==Rt});for(var[r,a]of n)a.v===Rt||r in t||e.push(r);return e},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Le(t){try{if(null!==t&&"object"==typeof t&&At in t)return t[At]}catch(Sd){}return t}function Me(t,e){return Object.is(Le(t),Le(e))}var De,Ne,ke,Pe,Fe;function He(t=""){return document.createTextNode(t)}function Be(t){return Pe.call(t)}function Ue(t){return Fe.call(t)}function je(t,e){return Be(t)}function Ve(t,e){var n=Be(t);return n instanceof Comment&&""===n.data?Ue(n):n}function $e(t,e=1,n=!1){let r=t;for(;e--;)r=Ue(r);return r}function We(t,e){if(e){const e=document.body;t.autofocus=!0,qt(()=>{document.activeElement===e&&t.focus()})}}let ze=!1;function Ge(t){var e=bn,n=Tn;_n(null),In(null);try{return t()}finally{_n(e),In(n)}}function Xe(t,e,n,r=n){t.addEventListener(e,()=>Ge(n));const i=t.__on_r;t.__on_r=i?()=>{i(),r(!0)}:()=>r(!0),ze||(ze=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)null==(e=n.__on_r)||e.call(n)})},{capture:!0}))}function Ke(t){null===Tn&&null===bn&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),null!==bn&&0!==(bn.f&dt)&&null===Tn&&function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}(),gn&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function qe(t,e,n,r=!0){var i,a=Tn;null!==a&&0!==(a.f&vt)&&(t|=vt);var o={ctx:kt,deps:null,nodes_start:null,nodes_end:null,f:t|ft,first:null,fn:e,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Un(o),o.f|=yt}catch(c){throw sn(o),c}else null!==e&&Ee(o);if(r){var s=o;if(n&&null===s.deps&&null===s.teardown&&null===s.nodes_start&&s.first===s.last&&0===(s.f&_t)&&(s=s.first),null!==s&&(s.parent=a,null!==a&&function(t,e){var n=e.last;null===n?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}(s,a),null!==bn&&2&bn.f&&0===(t&ut))){var l=bn;(null!=(i=l.effects)?i:l.effects=[]).push(s)}}return o}function Ze(t){const e=qe(8,null,!1);return Gn(e,pt),e.teardown=t,e}function Ye(t){var e;Ke();var n=Tn.f;if(!(!bn&&0!==(n&ct)&&0===(n&yt)))return Qe(t);var r=kt;(null!=(e=r.e)?e:r.e=[]).push(t)}function Qe(t){return qe(1048580,t,!1)}function Je(t){return qe(4,t,!1)}function tn(t,e=0){return qe(8|e,t,!0)}function en(t,e=[],n=[]){ae(e,n,e=>{qe(8,()=>t(...e.map(Vn)),!0)})}function nn(t,e=0){return qe(lt|e,t,!0)}function rn(t,e=!0){return qe(524320,t,!0,e)}function an(t){var e=t.teardown;if(null!==e){const t=gn,n=bn;yn(!0),_n(null);try{e.call(null)}finally{yn(t),_n(n)}}}function on(t,e=!1){var n=t.first;for(t.first=t.last=null;null!==n;){const t=n.ac;null!==t&&Ge(()=>{t.abort(xt)});var r=n.next;0!==(n.f&ut)?n.parent=null:sn(n,e),n=r}}function sn(t,e=!0){var n=!1;(e||262144&t.f)&&null!==t.nodes_start&&null!==t.nodes_end&&(ln(t.nodes_start,t.nodes_end),n=!0),on(t,e&&!n),Bn(t,0),Gn(t,gt);var r=t.transitions;if(null!==r)for(const a of r)a.stop();an(t);var i=t.parent;null!==i&&null!==i.first&&cn(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function ln(t,e){for(;null!==t;){var n=t===e?null:Ue(t);t.remove(),t=n}}function cn(t){var e=t.parent,n=t.prev,r=t.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==e&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function un(t,e){var n=[];hn(t,n,!0),dn(n,()=>{sn(t),e&&e()})}function dn(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function hn(t,e,n){if(0===(t.f&vt)){if(t.f^=vt,null!==t.transitions)for(const r of t.transitions)(r.is_global||n)&&e.push(r);for(var r=t.first;null!==r;){var i=r.next;hn(r,e,!!(0!==(r.f&bt)||0!==(r.f&ct))&&n),r=i}}}function pn(t){fn(t,!0)}function fn(t,e){if(0!==(t.f&vt)){t.f^=vt,0===(t.f&pt)&&(Gn(t,ft),Ee(t));for(var n=t.first;null!==n;){var r=n.next;fn(n,!!(0!==(n.f&bt)||0!==(n.f&ct))&&e),n=r}if(null!==t.transitions)for(const n of t.transitions)(n.is_global||e)&&n.in()}}let mn=!1;function vn(t){mn=t}let gn=!1;function yn(t){gn=t}let bn=null,En=!1;function _n(t){bn=t}let Tn=null;function In(t){Tn=t}let Sn=null;function An(t){null!==bn&&(null===Sn?Sn=[t]:Sn.push(t))}let Cn=null,wn=0,xn=null;let On=1,Rn=0,Ln=Rn;function Mn(t){Ln=t}let Dn=!1;function Nn(){return++On}function kn(t){var e,n,r=t.f;if(0!==(r&ft))return!0;if(0!==(r&mt)){var i=t.deps,a=0!==(r&dt);if(null!==i){var o,s,l=0!==(r&ht),c=a&&null!==Tn&&!Dn,u=i.length;if((l||c)&&(null===Tn||0===(Tn.f>))){var d=t,h=d.parent;for(o=0;ot.wv)return!0}a&&(null===Tn||Dn)||Gn(t,pt)}return!1}function Pn(t,e,n=!0){var r=t.reactions;if(null!==r&&!(null==Sn?void 0:Sn.includes(t)))for(var i=0;i{t.ac.abort(xt)}),t.ac=null);try{t.f|=Tt;var p=(0,t.fn)(),f=t.deps;if(null!==Cn){var m;if(Bn(t,wn),null!==f&&wn>0)for(f.length=wn+Cn.length,m=0;mnull==n?void 0:n.call(this,t))}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?qt(()=>{e.addEventListener(t,i,r)}):e.addEventListener(t,i,r),i}function ir(t,e,n,r={}){var i=rr(e,t,n,r);return()=>{t.removeEventListener(e,i,r)}}function ar(t,e,n,r,i){var a={capture:r,passive:i},o=rr(t,e,n,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ze(()=>{e.removeEventListener(t,o,a)})}function or(t){for(var e=0;eo||r});var d=bn,h=Tn;_n(null),In(null);try{for(var p,f=[];null!==o;){var m=o.assignedSlot||o.parentNode||o.host||null;try{var v=o["__"+i];if(null!=v&&(!o.disabled||t.target===o))if(q(v)){var[g,...y]=v;g.apply(o,[t,...y])}else v.call(o,t)}catch(b){p?f.push(b):p=b}if(t.cancelBubble||m===n||null===m)break;o=m}if(p){for(let t of f)queueMicrotask(()=>{throw t});throw p}}finally{t.__root=n,delete t.currentTarget,_n(d),In(h)}}}function cr(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("","\x3c!----\x3e"),e.content}function ur(t,e){var n=Tn;null===n.nodes_start&&(n.nodes_start=t,n.nodes_end=e)}function dr(t,e){var n,r=!!(1&e),i=!!(2&e),a=!t.startsWith("");return()=>{void 0===n&&(n=cr(a?t:""+t),r||(n=Be(n)));var e=i||ke?document.importNode(n,!0):n.cloneNode(!0);r?ur(Be(e),e.lastChild):ur(e,e);return e}}function hr(t,e,n="svg"){var r,i=!t.startsWith(""),a="<".concat(n,">").concat(i?t:""+t,"");return()=>{if(!r){var t=cr(a);r=Be(Be(t))}var e=r.cloneNode(!0);return ur(e,e),e}}function pr(t,e){return hr(t,0,"svg")}function fr(t=""){var e=He(t+"");return ur(e,e),e}function mr(){var t=document.createDocumentFragment(),e=document.createComment(""),n=He();return t.append(e,n),ur(e,n),t}function vr(t,e){null!==t&&t.before(e)}function gr(t,e){var n,r=null==e?"":"object"==typeof e?e+"":e;r!==(null!=(n=t.__t)?n:t.__t=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function yr(t,e){return function(t,{target:e,anchor:n,props:r={},events:i,context:a,intro:o=!0}){!function(){if(void 0===De){De=window,Ne=document,ke=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Pe=J(e,"firstChild").get,Fe=J(e,"nextSibling").get,it(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),it(n)&&(n.__t=void 0)}}();var s=new Set,l=t=>{for(var n=0;nnew Promise(n=>{t.outro?un(e,()=>{sn(e),n(void 0)}):(sn(e),n(void 0))})}(()=>{var o=null!=n?n:e.appendChild(He());return rn(()=>{a&&(Bt({}),kt.c=a);i&&(r.$$events=i),c=t(o,r)||{},a&&Ut()}),()=>{var t;for(var r of s){e.removeEventListener(r,lr);var i=br.get(r);0===--i?(document.removeEventListener(r,lr),br.delete(r)):br.set(r,i)}nr.delete(l),o!==n&&(null==(t=o.parentNode)||t.removeChild(o))}});return Er.set(c,u),c}(t,e)}const br=new Map;let Er=new WeakMap;function _r(t,e,n=!1){var r=t,i=null,a=null,o=Rt,s=!1;const l=(t,e=!0)=>{s=!0,d(e,t)};var c=null;function u(){null!==c&&(c.lastChild.remove(),r.before(c),c=null);var t=o?i:a,e=o?a:i;t&&pn(t),e&&un(e,()=>{o?a=null:i=null})}const d=(t,e)=>{if(o!==(o=t)){var n=!1,s=r;n,o?null!=i||(i=e&&rn(()=>e(s))):null!=a||(a=e&&rn(()=>e(s))),u()}};nn(()=>{s=!1,e(l),s||d(null,null)},n?bt:0)}function Tr(t,e,n){var r,i,a=t,o=Rt,s=null,l=Dt;function c(){r&&un(r),null!==s&&(s.lastChild.remove(),a.before(s),s=null),r=i}nn(()=>{if(l(o,o=e())){var t=a,r=!1;r,i=rn(()=>n(t)),c()}})}function Ir(t,e){return e}function Sr(t,e,n,r,i,a=null){var o=t,s={flags:e,items:new Map,first:null};!(4&e)||(o=t.appendChild(He()));var l,c,u=null,d=!1,h=new Map,p=ee(()=>{var t=n();return q(t)?t:null==t?[]:Y(t)});function f(){!function(t,e,n,r,i,a,o,s,l){var c,u,d,h,p,f,m,v,g,y,b=!!(8&o),E=!!(3&o),_=e.length,T=n.items,I=n.first,S=I,A=null,C=[],w=[];if(b)for(y=0;y<_;y+=1)v=s(m=e[y],y),void 0!==(g=T.get(v))&&(null==(c=g.a)||c.measure(),(null!=f?f:f=new Set).add(g));for(y=0;y<_;y+=1)if(v=s(m=e[y],y),void 0!==(g=T.get(v))){if(E&&Ar(g,m,y,o),0!==(g.e.f&vt)&&(pn(g.e),b&&(null==(u=g.a)||u.unfix(),(null!=f?f:f=new Set).delete(g))),g!==S){if(void 0!==p&&p.has(g)){if(C.length0){var P=4&o&&0===_?i:null;if(b){for(y=0;y0&&0===i.length&&null!==n;if(s){var l=n.parentNode;l.textContent="",l.append(n),r.clear(),xr(t,e[0].prev,e[a-1].next)}dn(i,()=>{for(var n=0;n{var t;if(void 0!==f)for(g of f)null==(t=g.a)||t.apply()});for(var F of(t.first=n.first&&n.first.e,t.last=A&&A.e,r.values()))sn(F.e);r.clear()}(c,l,s,h,o,i,e,r,n),null!==a&&(0===l.length?u?pn(u):u=rn(()=>a(o)):null!==u&&un(u,()=>{u=null}))}nn(()=>{null!=c||(c=Tn);var t=(l=Vn(p)).length;d&&0===t||(d=0===t,f(),Vn(p))})}function Ar(t,e,n,r){1&r&&Ce(t.v,e),2&r?Ce(t.i,n):t.i=n}function Cr(t,e,n,r,i,a,o,s,l,c,u){var d=!!(1&l)?!(16&l)?Se(i,!1,!1):Te(i):i,h=2&l?Te(o):o,p={i:h,v:d,k:a,a:null,e:null,prev:n,next:r};try{if(null===t)document.createDocumentFragment().append(t=He());return p.e=rn(()=>s(t,d,h,c),false),p.e.prev=n&&n.e,p.e.next=r&&r.e,null===n?u||(e.first=p):(n.next=p,n.e.next=p.e),null!==r&&(r.prev=p,r.e.prev=p.e),p}finally{}}function wr(t,e,n){for(var r=t.next?t.next.e.nodes_start:n,i=e?e.e.nodes_start:n,a=t.e.nodes_start;null!==a&&a!==r;){var o=Ue(a);i.before(a),a=o}}function xr(t,e,n){null===e?t.first=n:(e.next=n,e.e.next=n&&n.e),null!==n&&(n.prev=e,n.e.prev=e&&e.e)}function Or(t,e,n=!1,r=!1,i=!1){var a=t,o="";en(()=>{var t,i=Tn;if(o!==(o=null!=(t=e())?t:"")&&(null!==i.nodes_start&&(ln(i.nodes_start,i.nodes_end),i.nodes_start=i.nodes_end=null),""!==o)){var s=o+"";n?s="".concat(s,""):r&&(s="".concat(s,""));var l=cr(s);if((n||r)&&(l=Be(l)),ur(Be(l),l.lastChild),n||r)for(;Be(l);)a.before(Be(l));else a.before(l)}})}function Rr(t,e,...n){var r,i=t,a=ot;nn(()=>{a!==(a=e())&&(r&&(sn(r),r=null),r=rn(()=>a(i,...n)))},bt)}function Lr(t,e,n){var r,i,a=t,o=null,s=null;function l(){i&&(un(i),i=null),o&&(o.lastChild.remove(),a.before(o),o=null),i=s,s=null}nn(()=>{if(r!==(r=e())){var t=!1;if(r){var i=a;t,s=rn(()=>n(i,r))}l()}},bt)}function Mr(t,e,n,r,i,a){var o,s,l,c=null,u=t;nn(()=>{const t=e()||null;var n="svg"===t?"http://www.w3.org/2000/svg":null;t!==o&&(l&&(null===t?un(l,()=>{l=null,s=null}):t===s?pn(l):sn(l)),t&&t!==s&&(l=rn(()=>{if(ur(c=n?document.createElementNS(n,t):document.createElement(t),c),r){var e=c.appendChild(He());r(c,e)}Tn.nodes_end=c,u.before(c)})),(o=t)&&(s=o))},bt)}function Dr(t,e,n){Je(()=>{var r=Wn(()=>e(t,null==n?void 0:n())||{});if(n&&(null==r?void 0:r.update)){var i=!1,a={};tn(()=>{var t=n();!function(t){if("object"==typeof t&&t&&!(t instanceof EventTarget))if(At in t)Xn(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];"object"==typeof n&&n&&At in n&&Xn(n)}}(t),i&&Mt(a,t)&&(a=t,r.update(t))}),i=!0}if(null==r?void 0:r.destroy)return()=>r.destroy()})}function Nr(t,e){var n,r=void 0;nn(()=>{r!==(r=e())&&(n&&(sn(n),n=null),r&&(n=rn(()=>{Je(()=>r(t))})))})}function kr(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e=0;){var s=o+a;0!==o&&!Fr.includes(r[o-1])||s!==r.length&&!Fr.includes(r[s])?o=s:r=(0===o?"":r.substring(0,o))+r.substring(s+1)}return""===r?null:r}(n,r,a);null==s?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s),t.__className=n}else if(a&&i!==a)for(var l in a){var c=!!a[l];null!=i&&c===!!i[l]||t.classList.toggle(l,c)}return a}function jr(t,e={},n,r){for(var i in n){var a=n[i];e[i]!==a&&(null==n[i]?t.style.removeProperty(i):t.style.setProperty(i,a,r))}}function Vr(t,e,n,r){if(t.__style!==e){var i=function(t,e){if(e){var n,r,i="";if(Array.isArray(e)?(n=e[0],r=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,o=0,s=!1,l=[];n&&l.push(...Object.keys(n).map(Br)),r&&l.push(...Object.keys(r).map(Br));var c=0,u=-1;const e=t.length;for(var d=0;d{var r=void 0,s={},l="SELECT"===t.nodeName,c=!1;if(nn(()=>{var u=e(...n.map(Vn)),d=function(t,e,n,r){var i=Qr(t),a=i[Xr],o=!i[Kr],s=e||{},l="OPTION"===t.tagName;for(var c in e)c in n||(n[c]=null);n.class?n.class=Pr(n.class):n[zr]&&(n.class=null),n[Gr]&&(null!=n.style||(n.style=null));var u=ti(t);for(const v in n){let c=n[v];if(l&&"value"===v&&null==c)t.value=t.__value="",s[v]=c;else if("class"!==v)if("style"!==v){var d=s[v];if(c!==d||void 0===c&&t.hasAttribute(v)){s[v]=c;var h=v[0]+v[1];if("$$"!==h)if("on"===h){const e={},n="$$"+v;let r=v.slice(2);var p=Zn(r);if(Kn(r)&&(r=r.slice(0,-7),e.capture=!0),!p&&d){if(null!=c)continue;t.removeEventListener(r,s[n],e),s[n]=null}if(null!=c)if(p)t["__".concat(r)]=c,or([r]);else{let i=function(t){s[v].call(this,t)};s[n]=rr(r,t,i,e)}else p&&(t["__".concat(r)]=void 0)}else if("style"===v)Zr(t,v,c);else if("autofocus"===v)We(t,Boolean(c));else if(a||"__value"!==v&&("value"!==v||null==c))if("selected"===v&&l)qr(t,c);else{var f=v;o||(f=Qn(f));var m="defaultValue"===f||"defaultChecked"===f;if(null!=c||a||m)m||u.includes(f)&&(a||"string"!=typeof c)?(t[f]=c,f in i&&(i[f]=Rt)):"function"!=typeof c&&Zr(t,f,c);else if(i[v]=null,"value"===f||"checked"===f){let n=t;const r=void 0===e;if("value"===f){let t=n.defaultValue;n.removeAttribute(f),n.defaultValue=t,n.value=n.__value=r?t:null}else{let t=n.defaultChecked;n.removeAttribute(f),n.defaultChecked=t,n.checked=!!r&&t}}else t.removeAttribute(v)}else t.value=t.__value=c}}else Vr(t,c,null==e?void 0:e[Gr],n[Gr]),s[v]=c,s[Gr]=n[Gr];else Ur(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,c,r,null==e?void 0:e[zr],n[zr]),s[v]=c,s[zr]=n[zr]}return s}(t,r,u,i,a,o);c&&l&&"value"in u&&$r(t,u.value);for(let t of Object.getOwnPropertySymbols(s))u[t]||sn(s[t]);for(let e of Object.getOwnPropertySymbols(u)){var h=u[e];"@attach"!==e.description||r&&h===r[e]||(s[e]&&sn(s[e]),s[e]=rn(()=>Nr(t,()=>h))),d[e]=h}r=d}),l){var u=t;Je(()=>{$r(u,r.value,!0),function(t){var e=new MutationObserver(()=>{$r(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ze(()=>{e.disconnect()})}(u)})}c=!0})}function Qr(t){var e;return null!=(e=t.__attributes)?e:t.__attributes={[Xr]:t.nodeName.includes("-"),[Kr]:"http://www.w3.org/1999/xhtml"===t.namespaceURI}}var Jr=new Map;function ti(t){var e,n=t.getAttribute("is")||t.nodeName,r=Jr.get(n);if(r)return r;Jr.set(n,r=[]);for(var i=t,a=Element.prototype;a!==i;){for(var o in e=tt(i))e[o].set&&r.push(o);i=rt(i)}return r}function ei(t,e,n=e){var r=new WeakSet;Xe(t,"input",async i=>{var a=i?t.defaultValue:t.value;if(a=ni(t)?ri(a):a,n(a),null!==le&&r.add(le),await jn(),a!==(a=e())){var o=t.selectionStart,s=t.selectionEnd;t.value=null!=a?a:"",null!==s&&(t.selectionStart=o,t.selectionEnd=Math.min(s,t.value.length))}}),null==Wn(e)&&t.value&&(n(ni(t)?ri(t.value):t.value),null!==le&&r.add(le)),tn(()=>{var n=e();if(t===document.activeElement){var i=null!=ce?ce:le;if(r.has(i))return}ni(t)&&n===ri(t.value)||("date"!==t.type||n||t.value)&&n!==t.value&&(t.value=null!=n?n:"")})}function ni(t){var e=t.type;return"number"===e||"range"===e}function ri(t){return""===t?null:+t}const ii=class{constructor(t){z(this,b),z(this,v,new WeakMap),z(this,g),z(this,y),G(this,y,t)}observe(t,e){var n=W(this,v).get(t)||new Set;return n.add(e),W(this,v).set(t,n),X(this,b,E).call(this).observe(t,W(this,y)),()=>{var n=W(this,v).get(t);n.delete(e),0===n.size&&(W(this,v).delete(t),W(this,g).unobserve(t))}}};v=new WeakMap,g=new WeakMap,y=new WeakMap,b=new WeakSet,E=function(){var t;return null!=(t=W(this,g))?t:G(this,g,new ResizeObserver(t=>{for(var e of t)for(var n of(ii.entries.set(e.target,e),W(this,v).get(e.target)||[]))n(e)}))},V(ii,"entries",new WeakMap);var ai=new ii({box:"border-box"});function oi(t,e,n){var r=ai.observe(t,()=>n(t[e]));Je(()=>(Wn(()=>n(t[e])),r))}function si(t,e){return t===e||(null==t?void 0:t[At])===e}function li(t={},e,n,r){return Je(()=>{var r,i;return tn(()=>{r=i,i=[],Wn(()=>{t!==n(...i)&&(e(t,...i),r&&si(n(...r),t)&&e(null,...r))})}),()=>{qt(()=>{i&&si(n(...i),t)&&e(null,...i)})}}),t}function ci(t,e,n){if(null==t)return e(void 0),ot;const r=Wn(()=>t.subscribe(e,n));return r.unsubscribe?()=>r.unsubscribe():r}const ui=[];function di(t,e){return{subscribe:hi(t,e).subscribe}}function hi(t,e=ot){let n=null;const r=new Set;function i(e){if(Mt(t,e)&&(t=e,n)){const e=!ui.length;for(const n of r)n[1](),ui.push(n,t);if(e){for(let t=0;t{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}function pi(t){let e;return ci(t,t=>e=t)(),e}let fi=!1,mi=Symbol();function vi(t,e,n){var r;const i=null!=(r=n[e])?r:n[e]={store:null,source:Se(void 0),unsubscribe:ot};if(i.store!==t&&!(mi in n))if(i.unsubscribe(),i.store=null!=t?t:null,null==t)i.source.v=void 0,i.unsubscribe=ot;else{var a=!0;i.unsubscribe=ci(t,t=>{a?i.source.v=t:Ae(i.source,t)}),a=!1}return t&&mi in n?pi(t):Vn(i.source)}function gi(t,e){return t.set(e),e}function yi(){const t={};return[t,function(){Ze(()=>{for(var e in t){t[e].unsubscribe()}Q(t,mi,{enumerable:!1,value:!0})})}]}const bi={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set:(t,e)=>!1,getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e))return e in t.props?{enumerable:!0,configurable:!0,value:t.props[e]}:void 0},has:(t,e)=>!t.exclude.includes(e)&&e in t.props,ownKeys:t=>Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))};function Ei(t,e,n){return new Proxy({props:t,exclude:e},bi)}const _i={get(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(at(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r)return r[e]}},set(t,e,n){let r=t.props.length;for(;r--;){let i=t.props[r];at(i)&&(i=i());const a=J(i,e);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(at(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r){const t=J(r,e);return t&&!t.configurable&&(t.configurable=!0),t}}},has(t,e){if(e===At||e===Ct)return!1;for(let n of t.props)if(at(n)&&(n=n()),null!=n&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(at(n)&&(n=n()),n){for(const t in n)e.includes(t)||e.push(t);for(const t of Object.getOwnPropertySymbols(n))e.includes(t)||e.push(t)}return e}};function Ti(...t){return new Proxy({props:t},_i)}function Ii(t,e,n,r){var i,a,o,s,l=!!(8&n),c=!!(16&n),u=r,d=!0,h=()=>(d&&(d=!1,u=c?Wn(r):r),u);if(l){var p=At in t||Ct in t;o=null!=(a=null==(i=J(t,e))?void 0:i.set)?a:p&&e in t?n=>t[e]=n:void 0}var f,m=!1;if(l?[s,m]=function(t){var e=fi;try{return fi=!1,[t(),fi]}finally{fi=e}}(()=>t[e]):s=t[e],void 0===s&&void 0!==r&&(s=h(),o&&(!function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),o(s))),f=()=>{var n=t[e];return void 0===n?h():(d=!0,n)},!(4&n))return f;if(o){var v=t.$$legacy;return function(t,e){return arguments.length>0?((!e||v||m)&&o(e?f():t),t):f()}}var g=!1,y=(1&n?Qt:ee)(()=>(g=!1,f()));l&&Vn(y);var b=Tn;return function(t,e){if(arguments.length>0){const n=e?Vn(y):l?Re(t):t;return Ae(y,n),g=!0,void 0!==u&&(u=n),t}return gn&&g||0!==(b.f>)?y.v:Vn(y)}}function Si(t){null===kt&&Ot(),Ye(()=>{const e=Wn(t);if("function"==typeof e)return e})}function Ai(t){null===kt&&Ot(),Si(()=>()=>Wn(t))}"undefined"!=typeof window&&(null!=(I=(T=null!=(_=window.__svelte)?_:window.__svelte={}).v)?I:T.v=new Set).add("5") /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */;var Ci={CLOSING:"mdc-snackbar--closing",OPEN:"mdc-snackbar--open",OPENING:"mdc-snackbar--opening"},wi={ACTION_SELECTOR:".mdc-snackbar__action",ARIA_LIVE_LABEL_TEXT_ATTR:"data-mdc-snackbar-label-text",CLOSED_EVENT:"MDCSnackbar:closed",CLOSING_EVENT:"MDCSnackbar:closing",DISMISS_SELECTOR:".mdc-snackbar__dismiss",LABEL_SELECTOR:".mdc-snackbar__label",OPENED_EVENT:"MDCSnackbar:opened",OPENING_EVENT:"MDCSnackbar:opening",REASON_ACTION:"action",REASON_DISMISS:"dismiss",SURFACE_SELECTOR:".mdc-snackbar__surface"},xi={DEFAULT_AUTO_DISMISS_TIMEOUT_MS:5e3,INDETERMINATE:-1,MAX_AUTO_DISMISS_TIMEOUT_MS:1e4,MIN_AUTO_DISMISS_TIMEOUT_MS:4e3,SNACKBAR_ANIMATION_CLOSE_TIME_MS:75,SNACKBAR_ANIMATION_OPEN_TIME_MS:150,ARIA_LIVE_DELAY_MS:1e3},Oi=xi.ARIA_LIVE_DELAY_MS,Ri=wi.ARIA_LIVE_LABEL_TEXT_ATTR;var Li=function(t,e){return(Li=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Mi(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Li(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Di=function(){return Di=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ki(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Pi(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i=e))throw new Error("\n timeoutMs must be an integer in the range "+e+"–"+n+"\n (or "+xi.INDETERMINATE+" to disable), but got '"+t+"'");this.autoDismissTimeoutMs=t},e.prototype.getCloseOnEscape=function(){return this.closeOnEscape},e.prototype.setCloseOnEscape=function(t){this.closeOnEscape=t},e.prototype.handleKeyDown=function(t){("Escape"===t.key||27===t.keyCode)&&this.getCloseOnEscape()&&this.close(Wi)},e.prototype.handleActionButtonClick=function(t){this.close($i)},e.prototype.handleActionIconClick=function(t){this.close(Wi)},e.prototype.clearAutoDismissTimer=function(){clearTimeout(this.autoDismissTimer),this.autoDismissTimer=0},e.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(Ci.OPENING),this.adapter.removeClass(Ci.CLOSING)},e.prototype.runNextAnimationFrame=function(t){var e=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(function(){e.animationFrame=0,clearTimeout(e.animationTimer),e.animationTimer=setTimeout(t,0)})},e}(Fi);const Gi=Object.freeze(Object.defineProperty({__proto__:null,applyPassive: /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return e=!0,!1}},r=function(){};t.document.addEventListener("test",r,n),t.document.removeEventListener("test",r,n)}catch(i){e=!1}return e}(t)&&{passive:!0}}},Symbol.toStringTag,{value:"Module"})); /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var Xi="mdc-dom-focus-sentinel",Ki=function(){function t(t,e){void 0===e&&(e={}),this.root=t,this.options=e,this.elFocusedBeforeTrapFocus=null}return t.prototype.trapFocus=function(){var t=this.getFocusableElements(this.root);if(0===t.length)throw new Error("FocusTrap: Element must have at least one focusable child.");this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,this.wrapTabFocus(this.root),this.options.skipInitialFocus||this.focusInitialElement(t,this.options.initialFocusEl)},t.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll("."+Xi)).forEach(function(t){t.parentElement.removeChild(t)}),!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus&&this.elFocusedBeforeTrapFocus.focus()},t.prototype.wrapTabFocus=function(t){var e=this,n=this.createSentinel(),r=this.createSentinel();n.addEventListener("focus",function(){var n=e.getFocusableElements(t);n.length>0&&n[n.length-1].focus()}),r.addEventListener("focus",function(){var n=e.getFocusableElements(t);n.length>0&&n[0].focus()}),t.insertBefore(n,t.children[0]),t.appendChild(r)},t.prototype.focusInitialElement=function(t,e){var n=0;e&&(n=Math.max(t.indexOf(e),0)),t[n].focus()},t.prototype.getFocusableElements=function(t){return[].slice.call(t.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter(function(t){var e="true"===t.getAttribute("aria-disabled")||null!=t.getAttribute("disabled")||null!=t.getAttribute("hidden")||"true"===t.getAttribute("aria-hidden"),n=t.tabIndex>=0&&t.getBoundingClientRect().width>0&&!t.classList.contains(Xi)&&!e,r=!1;if(n){var i=getComputedStyle(t);r="none"===i.display||"hidden"===i.visibility}return n&&!r})},t.prototype.createSentinel=function(){var t=document.createElement("div");return t.setAttribute("tabindex","0"),t.setAttribute("aria-hidden","true"),t.classList.add(Xi),t},t}();const qi=Object.freeze(Object.defineProperty({__proto__:null,FocusTrap:Ki},Symbol.toStringTag,{value:"Module"})); /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var Zi="Unknown",Yi="Backspace",Qi="Enter",Ji="Spacebar",ta="PageUp",ea="PageDown",na="End",ra="Home",ia="ArrowLeft",aa="ArrowUp",oa="ArrowRight",sa="ArrowDown",la="Delete",ca="Escape",ua="Tab",da=new Set;da.add(Yi),da.add(Qi),da.add(Ji),da.add(ta),da.add(ea),da.add(na),da.add(ra),da.add(ia),da.add(aa),da.add(oa),da.add(sa),da.add(la),da.add(ca),da.add(ua);var ha=8,pa=13,fa=32,ma=33,va=34,ga=35,ya=36,ba=37,Ea=38,_a=39,Ta=40,Ia=46,Sa=27,Aa=9,Ca=new Map;Ca.set(ha,Yi),Ca.set(pa,Qi),Ca.set(fa,Ji),Ca.set(ma,ta),Ca.set(va,ea),Ca.set(ga,na),Ca.set(ya,ra),Ca.set(ba,ia),Ca.set(Ea,aa),Ca.set(_a,oa),Ca.set(Ta,sa),Ca.set(Ia,la),Ca.set(Sa,ca),Ca.set(Aa,ua);var wa=new Set;function xa(t){var e=t.key;if(da.has(e))return e;var n=Ca.get(t.keyCode);return n||Zi}function Oa(t){return Object.entries(t).filter(([t,e])=>""!==t&&e).map(([t])=>t).join(" ")}function Ra(t,e,n,r={bubbles:!0}){if("undefined"==typeof Event)throw new Error("Event not defined.");if(!t)throw new Error("Tried to dispatch event without element.");const i=new CustomEvent(e,Object.assign(Object.assign({},r),{detail:n}));return null==t||t.dispatchEvent(i),i}function La(t,e){let n=Object.getOwnPropertyNames(t);const r={};for(let i=0;i{for(let[n,r]of Object.entries(t))r.forEach((t,e)=>{t()})}),this.elementMap.clear()}}function Na(t,e){let n=[];if(e)for(let r=0;r1?n.push(a(t,i[1])):n.push(a(t))}return{update(t){if((t&&t.length||0)!=n.length)throw new Error("You must not change the length of an actions array.");if(t)for(let e=0;e1?r.update(n[1]):r.update()}}},destroy(){for(let t=0;t
");function Fa(t,e){Bt(e,!0);const{closest:n}=Bi;let r=()=>{};function i(t){return t===r}let a,o,s=Ii(e,"use",19,()=>[]),l=Ii(e,"class",3,""),c=Ii(e,"leading",3,!1),u=Ii(e,"timeoutMs",3,5e3),d=Ii(e,"closeOnEscape",3,!0),h=Ii(e,"labelText",3,r),p=Ii(e,"actionButtonText",3,r),f=Ii(e,"surface$use",19,()=>[]),m=Ii(e,"surface$class",3,""),v=Ei(e,["$$slots","$$events","$$legacy","use","class","variant","leading","timeoutMs","closeOnEscape","labelText","actionButtonText","surface$use","surface$class","children"]),g=Ie(void 0),y=Re({}),b=new Promise(t=>o=t);function E(t){y[t]||(y[t]=!0)}function _(t){t in y&&!y[t]||(y[t]=!1)}function T(){var t;return null!=(t=S().querySelector(".mdc-snackbar__label"))?t:document.createElement("div")}function I(){var t;return null!=(t=S().querySelector(".mdc-snackbar__action"))?t:document.createElement("button")}function S(){return a}Ht("SMUI:label:context","snackbar"),Ye(()=>{Vn(g)&&Vn(g).getTimeoutMs()!==u()&&Vn(g).setTimeoutMs(u())}),Ye(()=>{Vn(g)&&Vn(g).getCloseOnEscape()!==d()&&Vn(g).setCloseOnEscape(d())}),Ye(()=>{Vn(g)&&!i(h())&&T().textContent!==h()&&(T().textContent=h())}),Ye(()=>{Vn(g)&&!i(p())&&I().textContent!==p()&&(I().textContent=p())}),Si(()=>(Ae(g,new zi({addClass:E,announce:()=>function(t,e){void 0===e&&(e=t);var n=t.getAttribute("aria-live"),r=e.textContent.trim();if(r&&n){t.setAttribute("aria-live","off"),e.textContent="";var i=document.createElement("span");i.setAttribute("style","display: inline-block; width: 0; height: 1px;"),i.textContent=" ",e.appendChild(i),e.setAttribute(Ri,r),setTimeout(function(){t.setAttribute("aria-live",n),e.removeAttribute(Ri),e.textContent=r},Oi)}}(T()),notifyClosed:t=>Ra(S(),"SMUISnackbarClosed",t?{reason:t}:{}),notifyClosing:t=>Ra(S(),"SMUISnackbarClosing",t?{reason:t}:{}),notifyOpened:()=>Ra(S(),"SMUISnackbarOpened"),notifyOpening:()=>Ra(S(),"SMUISnackbarOpening"),removeClass:_}),!0),Vn(g).init(),()=>{var t;null==(t=Vn(g))||t.destroy()}));var A={open:function(){ka=ka.then(()=>{var t;return null==(t=Vn(g))||t.open(),b})},forceOpen:function(){var t;return null==(t=Vn(g))?void 0:t.open()},close:function(t){var e;return null==(e=Vn(g))?void 0:e.close(t)},isOpen:function(){if(null==Vn(g))throw new Error("Instance is undefined.");return Vn(g).isOpen()},getLabelElement:T,getActionButtonElement:I,getElement:S},C=Pa(),w=t=>{var n;Vn(g)&&Vn(g).handleKeyDown(t),null==(n=e.onkeydown)||n.call(e,t)},x=t=>{var n;o(),b=new Promise(t=>o=t),null==(n=e.onSMUISnackbarClosed)||n.call(e,t)};Yr(C,(t,e)=>({class:t,...e,onkeydown:w,onSMUISnackbarClosed:x}),[()=>Oa({"mdc-snackbar":!0,"mdc-snackbar--stacked":"stacked"===e.variant,"mdc-snackbar--leading":c(),...y,[l()]:!0}),()=>La(v,["surface$"])]);var O=je(C),R=t=>{var r;!function(t){const e=t.target;Vn(g)&&(n(e,".mdc-snackbar__action")?Vn(g).handleActionButtonClick(t):n(e,".mdc-snackbar__dismiss")&&Vn(g).handleActionIconClick(t))}(t),null==(r=e.surface$onclick)||r.call(e,t)};return Yr(O,(t,e)=>({class:t,role:"status","aria-relevant":"additions",...e,onclick:R}),[()=>Oa({"mdc-snackbar__surface":!0,[m()]:!0}),()=>Ma(v,"surface$")]),Rr(je(O),()=>{var t;return null!=(t=e.children)?t:ot}),Dr(O,(t,e)=>null==Na?void 0:Na(t,e),f),li(C,t=>a=t,()=>a),Dr(C,(t,e)=>null==Na?void 0:Na(t,e),s),vr(t,C),Ut(A)}function Ha(t,e){Bt(e,!0);let n,r=Ii(e,"use",19,()=>[]),i=Ii(e,"class",3,""),a=Ii(e,"component",3,ja),o=Ii(e,"tag",3,"span"),s=Ei(e,["$$slots","$$events","$$legacy","use","class","component","tag","children"]);const l=Ft("SMUI:label:context"),c=Ft("SMUI:label:tabindex");var u={getElement:function(){return n.getElement()}},d=mr(),h=Ve(d);{let t=te(()=>Oa({"mdc-button__label":"button"===l,"mdc-fab__label":"fab"===l,"mdc-tab__text-label":"tab"===l,"mdc-image-list__label":"image-list"===l,"mdc-snackbar__label":"snackbar"===l,"mdc-banner__text":"banner"===l,"mdc-segmented-button__label":"segmented-button"===l,"mdc-data-table__pagination-rows-per-page-label":"data-table:pagination"===l,"mdc-data-table__header-cell-label":"data-table:sortable-header-cell"===l,[i()]:!0}));Lr(h,a,(i,a)=>{li(a(i,Ti({get tag(){return o()},get use(){return r()},get class(){return Vn(t)}},()=>"snackbar"===l?{"aria-atomic":"false"}:{},{get tabindex(){return c}},()=>s,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n)})}return vr(t,d),Ut(u)}function Ba(t,e){Bt(e,!0);let n,r=Ii(e,"use",19,()=>[]),i=Ii(e,"class",3,""),a=Ii(e,"on",3,!1),o=Ii(e,"component",3,ja),s=Ii(e,"tag",3,"i"),l=Ei(e,["$$slots","$$events","$$legacy","use","class","on","component","tag","children"]);const c=te(()=>"svg"===s()||o()===za),u=Ft("SMUI:icon:context");var d={getElement:function(){return n.getElement()}},h=mr(),p=Ve(h);{let t=te(()=>Oa({"mdc-button__icon":"button"===u,"mdc-fab__icon":"fab"===u,"mdc-icon-button__icon":"icon-button"===u,"mdc-icon-button__icon--on":"icon-button"===u&&a(),"mdc-tab__icon":"tab"===u,"mdc-banner__icon":"banner"===u,"mdc-segmented-button__icon":"segmented-button"===u,[i()]:!0}));Lr(p,o,(i,a)=>{li(a(i,Ti({get tag(){return s()},get use(){return r()},get class(){return Vn(t)},"aria-hidden":"true"},()=>Vn(c)?{focusable:"false",tabindex:"-1"}:{},()=>l,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n)})}return vr(t,h),Ut(d)}var Ua=pr("");function ja(t,e){Bt(e,!0);let n=Ii(e,"use",19,()=>[]),r=Ii(e,"tag",3,"div"),i=Ei(e,["$$slots","$$events","$$legacy","use","tag","children"]);const a=te(()=>["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].indexOf(r())>-1);let o;var s={getElement:function(){return o}},l=mr(),c=Ve(l),u=t=>{var r=Ua();Yr(r,()=>({...i})),Rr(je(r),()=>{var t;return null!=(t=e.children)?t:ot}),li(r,t=>o=t,()=>o),Dr(r,(t,e)=>null==Na?void 0:Na(t,e),n),vr(t,r)},d=t=>{var s=mr(),l=Ve(s),c=t=>{var e=mr();Mr(Ve(e),r,0,(t,e)=>{li(t,t=>o=t,()=>o),Dr(t,(t,e)=>null==Na?void 0:Na(t,e),n),Yr(t,()=>({...i}))}),vr(t,e)},u=t=>{var a=mr();Mr(Ve(a),r,0,(t,r)=>{li(t,t=>o=t,()=>o),Dr(t,(t,e)=>null==Na?void 0:Na(t,e),n),Yr(t,()=>({...i}));var a=mr();Rr(Ve(a),()=>{var t;return null!=(t=e.children)?t:ot}),vr(r,a)}),vr(t,a)};_r(l,t=>{Vn(a)?t(c):t(u,!1)},!0),vr(t,s)};return _r(c,t=>{"svg"===r()?t(u):t(d,!1)}),vr(t,l),Ut(s)}var Va,$a,Wa=pr("");function za(t,e){Bt(e,!0),console&&console.warn&&console.warn('The @smui/common Svg component is deprecated. You can use `tag="svg"` now.');let n,r=Ii(e,"use",19,()=>[]),i=Ei(e,["$$slots","$$events","$$legacy","use","children"]);var a={getElement:function(){return n}},o=Wa();return Yr(o,()=>({...i})),Rr(je(o),()=>{var t;return null!=(t=e.children)?t:ot}),li(o,t=>n=t,()=>n),Dr(o,(t,e)=>null==Na?void 0:Na(t,e),r),vr(t,o),Ut(a)}function Ga(t,e){Bt(e,!0);const[n,r]=yi(),i=hi(e.value);Ht(e.key,i),Ye(()=>{gi(i,e.value)}),Ai(()=>{i.set(void 0)});var a=mr();Rr(Ve(a),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,a),Ut(),r()}function Xa(t,e){Bt(e,!0);let n,r=Ii(e,"use",19,()=>[]),i=Ii(e,"class",3,""),a=Ii(e,"component",3,ja),o=Ii(e,"tag",3,"div"),s=Ii(e,"_smuiClass",3,""),l=Ii(e,"_smuiClassMap",23,()=>({})),c=Ii(e,"_smuiContexts",19,()=>({})),u=Ii(e,"_smuiProps",19,()=>({})),d=Ei(e,["$$slots","$$events","$$legacy","use","class","component","tag","_smuiClass","_smuiClassMap","_smuiContexts","_smuiProps","children"]);const h=[];Object.entries(l()).forEach(([t,e])=>{const n=Ft(e);n&&"subscribe"in n&&h.push(n.subscribe(e=>{l()[t]=e}))});for(let v in c())c().hasOwnProperty(v)&&Ht(v,c()[v]);Ai(()=>{for(const t of h)t()});var p={getElement:function(){return n.getElement()}},f=mr(),m=Ve(f);{let t=te(()=>Oa({[s()]:!0,...l(),[i()]:!0}));Lr(m,a,(i,a)=>{li(a(i,Ti({get tag(){return o()},get use(){return r()},get class(){return Vn(t)}},u,()=>d,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n)})}return vr(t,f),Ut(p)} /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var Ka={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"};(Va={})[""+Ka.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",Va[""+Ka.LIST_ITEM_CLASS]="mdc-list-item",Va[""+Ka.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",Va[""+Ka.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",Va[""+Ka.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",Va[""+Ka.ROOT]="mdc-list";var qa=(($a={})[""+Ka.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",$a[""+Ka.LIST_ITEM_CLASS]="mdc-deprecated-list-item",$a[""+Ka.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",$a[""+Ka.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",$a[""+Ka.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",$a[""+Ka.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",$a[""+Ka.ROOT]="mdc-deprecated-list",$a),Za={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+Ka.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+Ka.LIST_ITEM_CLASS+" a,\n ."+qa[Ka.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+qa[Ka.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+Ka.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+Ka.LIST_ITEM_CLASS+" a,\n ."+Ka.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+Ka.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+qa[Ka.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+qa[Ka.LIST_ITEM_CLASS]+" a,\n ."+qa[Ka.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+qa[Ka.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},Ya={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},Qa=["input","button","textarea","select"],Ja=function(t){var e=t.target;if(e){var n=(""+e.tagName).toLowerCase();-1===Qa.indexOf(n)&&t.preventDefault()}};function to(t,e){var n,r=t.nextChar,i=t.focusItemAtIndex,a=t.sortedIndexByFirstChar,o=t.focusedItemIndex,s=t.skipFocus,l=t.isItemAtIndexDisabled;return clearTimeout(e.bufferClearTimeout),e.bufferClearTimeout=setTimeout(function(){no(e)},Ya.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),e.typeaheadBuffer=e.typeaheadBuffer+r,n=1===e.typeaheadBuffer.length?function(t,e,n,r){var i=r.typeaheadBuffer[0],a=t.get(i);if(!a)return-1;if(i===r.currentFirstChar&&a[r.sortedIndexCursor].index===e){r.sortedIndexCursor=(r.sortedIndexCursor+1)%a.length;var o=a[r.sortedIndexCursor].index;if(!n(o))return o}r.currentFirstChar=i;var s,l=-1;for(s=0;se&&!n(a[s].index)){l=s;break}if(-1!==l)return r.sortedIndexCursor=l,a[r.sortedIndexCursor].index;return-1}(a,o,l,e):function(t,e,n){var r=n.typeaheadBuffer[0],i=t.get(r);if(!i)return-1;var a=i[n.sortedIndexCursor];if(0===a.text.lastIndexOf(n.typeaheadBuffer,0)&&!e(a.index))return a.index;var o=(n.sortedIndexCursor+1)%i.length,s=-1;for(;o!==n.sortedIndexCursor;){var l=i[o],c=0===l.text.lastIndexOf(n.typeaheadBuffer,0),u=!e(l.index);if(c&&u){s=o;break}o=(o+1)%i.length}if(-1!==s)return n.sortedIndexCursor=s,i[n.sortedIndexCursor].index;return-1}(a,l,e),-1===n||s||i(n),n}function eo(t){return t.typeaheadBuffer.length>0}function no(t){t.typeaheadBuffer=""}function ro(t,e){var n=t.event,r=t.isTargetListItem,i=t.focusedItemIndex,a=t.focusItemAtIndex,o=t.sortedIndexByFirstChar,s=t.isItemAtIndexDisabled,l="ArrowLeft"===xa(n),c="ArrowUp"===xa(n),u="ArrowRight"===xa(n),d="ArrowDown"===xa(n),h="Home"===xa(n),p="End"===xa(n),f="Enter"===xa(n),m="Spacebar"===xa(n);return n.altKey||n.ctrlKey||n.metaKey||l||c||u||d||h||p||f?-1:m||1!==n.key.length?m?(r&&Ja(n),r&&eo(e)?to({focusItemAtIndex:a,focusedItemIndex:i,nextChar:" ",sortedIndexByFirstChar:o,skipFocus:!1,isItemAtIndexDisabled:s},e):-1):-1:(Ja(n),to({focusItemAtIndex:a,focusedItemIndex:i,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:o,skipFocus:!1,isItemAtIndexDisabled:s},e))} /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var io=["Alt","Control","Meta","Shift"];function ao(t){var e=new Set(t?io.filter(function(e){return t.getModifierState(e)}):[]);return function(t){return t.every(function(t){return e.has(t)})&&t.length===e.size}}var oo=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.wrapFocus=!1,r.isVertical=!0,r.isSingleSelectionList=!1,r.areDisabledItemsFocusable=!0,r.selectedIndex=Ya.UNSET_INDEX,r.focusedItemIndex=Ya.UNSET_INDEX,r.useActivatedClass=!1,r.useSelectedAttr=!1,r.ariaCurrentAttrValue=null,r.isCheckboxList=!1,r.isRadioList=!1,r.lastSelectedIndex=null,r.hasTypeahead=!1,r.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},r.sortedIndexByFirstChar=new Map,r}return Mi(e,t),Object.defineProperty(e,"strings",{get:function(){return Za},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return Ka},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Ya},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),e.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},e.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},e.prototype.setWrapFocus=function(t){this.wrapFocus=t},e.prototype.setVerticalOrientation=function(t){this.isVertical=t},e.prototype.setSingleSelection=function(t){this.isSingleSelectionList=t,t&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},e.prototype.setDisabledItemsFocusable=function(t){this.areDisabledItemsFocusable=t},e.prototype.maybeInitializeSingleSelection=function(){var t=this.getSelectedIndexFromDOM();t!==Ya.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(t,Ka.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=t)},e.prototype.getSelectedIndexFromDOM=function(){for(var t=Ya.UNSET_INDEX,e=this.adapter.getListItemCount(),n=0;n=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},e.prototype.handleFocusOut=function(t){var e=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout(function(){e.adapter.isFocusInsideList()||e.setTabindexToFirstSelectedOrFocusedItem()},0)},e.prototype.isIndexDisabled=function(t){return this.adapter.listItemAtIndexHasClass(t,Ka.LIST_ITEM_DISABLED_CLASS)},e.prototype.handleKeydown=function(t,e,n){var r,i=this,a="ArrowLeft"===xa(t),o="ArrowUp"===xa(t),s="ArrowRight"===xa(t),l="ArrowDown"===xa(t),c="Home"===xa(t),u="End"===xa(t),d="Enter"===xa(t),h="Spacebar"===xa(t),p=this.isVertical&&l||!this.isVertical&&s,f=this.isVertical&&o||!this.isVertical&&a,m="A"===t.key||"a"===t.key,v=ao(t);if(this.adapter.isRootFocused()){if((f||u)&&v([]))t.preventDefault(),this.focusLastElement();else if((p||c)&&v([]))t.preventDefault(),this.focusFirstElement();else if(f&&v(["Shift"])&&this.isCheckboxList){t.preventDefault(),-1!==(y=this.focusLastElement())&&this.setSelectedIndexOnAction(y,!1)}else if(p&&v(["Shift"])&&this.isCheckboxList){t.preventDefault(),-1!==(y=this.focusFirstElement())&&this.setSelectedIndexOnAction(y,!1)}this.hasTypeahead&&ro({event:t,focusItemAtIndex:function(t){i.focusItemAtIndex(t)},focusedItemIndex:-1,isTargetListItem:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return i.isIndexDisabled(t)}},this.typeaheadState)}else{var g=this.adapter.getFocusedElementIndex();if(!(-1===g&&(g=n)<0)){if(p&&v([]))Ja(t),this.focusNextElement(g);else if(f&&v([]))Ja(t),this.focusPrevElement(g);else if(p&&v(["Shift"])&&this.isCheckboxList){Ja(t),-1!==(y=this.focusNextElement(g))&&this.setSelectedIndexOnAction(y,!1)}else if(f&&v(["Shift"])&&this.isCheckboxList){var y;Ja(t),-1!==(y=this.focusPrevElement(g))&&this.setSelectedIndexOnAction(y,!1)}else if(c&&v([]))Ja(t),this.focusFirstElement();else if(u&&v([]))Ja(t),this.focusLastElement();else if(c&&v(["Control","Shift"])&&this.isCheckboxList){if(Ja(t),this.isIndexDisabled(g))return;this.focusFirstElement(),this.toggleCheckboxRange(0,g,g)}else if(u&&v(["Control","Shift"])&&this.isCheckboxList){if(Ja(t),this.isIndexDisabled(g))return;this.focusLastElement(),this.toggleCheckboxRange(g,this.adapter.getListItemCount()-1,g)}else if(m&&v(["Control"])&&this.isCheckboxList)t.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===Ya.UNSET_INDEX?[]:this.selectedIndex,!0);else if((d||h)&&v([])){if(e){if((b=t.target)&&"A"===b.tagName&&d)return;if(Ja(t),this.isIndexDisabled(g))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(g,!1),this.adapter.notifyAction(g))}}else if((d||h)&&v(["Shift"])&&this.isCheckboxList){var b;if((b=t.target)&&"A"===b.tagName&&d)return;if(Ja(t),this.isIndexDisabled(g))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(r=this.lastSelectedIndex)&&void 0!==r?r:g,g,g),this.adapter.notifyAction(g))}if(this.hasTypeahead)ro({event:t,focusItemAtIndex:function(t){i.focusItemAtIndex(t)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return i.isIndexDisabled(t)}},this.typeaheadState)}}},e.prototype.handleClick=function(t,e,n){var r,i=ao(n);t!==Ya.UNSET_INDEX&&(this.isIndexDisabled(t)||(i([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(t,e),this.adapter.notifyAction(t)):this.isCheckboxList&&i(["Shift"])&&(this.toggleCheckboxRange(null!==(r=this.lastSelectedIndex)&&void 0!==r?r:t,t,t),this.adapter.notifyAction(t))))},e.prototype.focusNextElement=function(t){var e=this.adapter.getListItemCount(),n=t,r=null;do{if(++n>=e){if(!this.wrapFocus)return t;n=0}if(n===r)return-1;r=null!=r?r:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},e.prototype.focusPrevElement=function(t){var e=this.adapter.getListItemCount(),n=t,r=null;do{if(--n<0){if(!this.wrapFocus)return t;n=e-1}if(n===r)return-1;r=null!=r?r:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},e.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},e.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},e.prototype.focusInitialElement=function(){var t=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(t),t},e.prototype.setEnabled=function(t,e){this.isIndexValid(t,!1)&&(e?(this.adapter.removeClassForElementIndex(t,Ka.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,Za.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(t,Ka.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,Za.ARIA_DISABLED,"true")))},e.prototype.setSingleSelectionAtIndex=function(t,e){if(void 0===e&&(e={}),this.selectedIndex!==t||e.forceUpdate){var n=Ka.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=Ka.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==Ya.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(t),this.setTabindexAtIndex(t),t!==Ya.UNSET_INDEX&&this.adapter.addClassForElementIndex(t,n),this.selectedIndex=t,e.isUserInteraction&&!e.forceUpdate&&this.adapter.notifySelectionChange([t])}},e.prototype.setAriaForSingleSelectionAtIndex=function(t){this.selectedIndex===Ya.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(t,Za.ARIA_CURRENT));var e=null!==this.ariaCurrentAttrValue,n=e?Za.ARIA_CURRENT:Za.ARIA_SELECTED;if(this.selectedIndex!==Ya.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),t!==Ya.UNSET_INDEX){var r=e?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(t,n,r)}},e.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?Za.ARIA_SELECTED:Za.ARIA_CHECKED},e.prototype.setRadioAtIndex=function(t,e){void 0===e&&(e={});var n=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(t,!0),(this.selectedIndex!==t||e.forceUpdate)&&(this.selectedIndex!==Ya.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),this.adapter.setAttributeForElementIndex(t,n,"true"),this.selectedIndex=t,e.isUserInteraction&&!e.forceUpdate&&this.adapter.notifySelectionChange([t]))},e.prototype.setCheckboxAtIndex=function(t,e){void 0===e&&(e={});for(var n=this.selectedIndex,r=e.isUserInteraction?new Set(n===Ya.UNSET_INDEX?[]:n):null,i=this.getSelectionAttribute(),a=[],o=0;o=0;l!==s&&a.push(o),this.adapter.setCheckedCheckboxOrRadioAtIndex(o,l),this.adapter.setAttributeForElementIndex(o,i,l?"true":"false")}this.selectedIndex=t,e.isUserInteraction&&a.length&&this.adapter.notifySelectionChange(a)},e.prototype.toggleCheckboxRange=function(t,e,n){this.lastSelectedIndex=n;for(var r=new Set(this.selectedIndex===Ya.UNSET_INDEX?[]:this.selectedIndex),i=!(null==r?void 0:r.has(n)),a=ki([t,e].sort(),2),o=a[0],s=a[1],l=this.getSelectionAttribute(),c=[],u=o;u<=s;u++){if(!this.isIndexDisabled(u))i!==r.has(u)&&(c.push(u),this.adapter.setCheckedCheckboxOrRadioAtIndex(u,i),this.adapter.setAttributeForElementIndex(u,l,""+i),i?r.add(u):r.delete(u))}c.length&&(this.selectedIndex=Pi([],ki(r)),this.adapter.notifySelectionChange(c))},e.prototype.setTabindexAtIndex=function(t){this.focusedItemIndex===Ya.UNSET_INDEX&&0!==t?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==t&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===t||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),t!==Ya.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,"tabindex","0")},e.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},e.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var t=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(t)},e.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?"number"==typeof this.selectedIndex&&this.selectedIndex!==Ya.UNSET_INDEX?this.selectedIndex:this.selectedIndex instanceof Array&&this.selectedIndex.length>0?this.selectedIndex.reduce(function(t,e){return Math.min(t,e)}):0:Math.max(this.focusedItemIndex,0)},e.prototype.isIndexValid=function(t,e){var n=this;if(void 0===e&&(e=!0),t instanceof Array){if(!this.isCheckboxList&&e)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===t.length||t.some(function(t){return n.isIndexInRange(t)})}if("number"==typeof t){if(this.isCheckboxList&&e)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return this.isIndexInRange(t)||this.isSingleSelectionList&&t===Ya.UNSET_INDEX}return!1},e.prototype.isIndexInRange=function(t){var e=this.adapter.getListItemCount();return t>=0&&t-1)&&r.push(i);this.setCheckboxAtIndex(r,{isUserInteraction:e})}},e.prototype.typeaheadMatchItem=function(t,e,n){var r=this;return void 0===n&&(n=!1),to({focusItemAtIndex:function(t){r.focusItemAtIndex(t)},focusedItemIndex:e||this.focusedItemIndex,nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(t){return r.isIndexDisabled(t)}},this.typeaheadState)},e.prototype.typeaheadInitSortedIndex=function(){return function(t,e){for(var n=new Map,r=0;r"); /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */function po(t,e){Bt(e,!0);const{FocusTrap:n}=qi;let r,i,a=Ii(e,"use",19,()=>[]),o=Ii(e,"class",3,""),s=Ii(e,"open",15,!1),l=Ii(e,"fixed",3,!0),c=Ei(e,["$$slots","$$events","$$legacy","use","class","variant","open","fixed","children"]),u=Ie(void 0),d=new Da,h=Ie(Re({})),p=Ie(null),f=Ie(!1);Ht("SMUI:list:nav",!0),Ht("SMUI:list:item:nav",!0),Ht("SMUI:list:wrapFocus",!0),Ye(()=>{Vn(u)&&Vn(u).isOpen()!==s()&&(s()?Vn(u).open():Vn(u).close())});let m=e.variant;function v(){var t,n;Vn(f)&&d.off(Vn(f),"SMUIDrawerScrimClick",E),"modal"===e.variant&&(Ae(f,null!=(n=null==(t=_().parentNode)?void 0:t.querySelector(".mdc-drawer-scrim"))&&n,!0),Vn(f)&&d.on(Vn(f),"SMUIDrawerScrimClick",E));const r="dismissible"===e.variant?co:"modal"===e.variant?uo:void 0;return r?new r({addClass:y,removeClass:b,hasClass:g,elementHasClass:(t,e)=>t.classList.contains(e),saveFocus:()=>Ae(p,document.activeElement,!0),restoreFocus:()=>{Vn(p)&&"focus"in Vn(p)&&_().contains(document.activeElement)&&Vn(p).focus()},focusActiveNavigationItem:()=>{const t=_().querySelector(".mdc-list-item--activated,.mdc-deprecated-list-item--activated");t&&t.focus()},notifyClose:()=>{s(!1),Ra(_(),"SMUIDrawerClosed")},notifyOpen:()=>{s(!0),Ra(_(),"SMUIDrawerOpened")},trapFocus:()=>i.trapFocus(),releaseFocus:()=>i.releaseFocus()}):void 0}function g(t){return t in Vn(h)?Vn(h)[t]:_().classList.contains(t)}function y(t){Vn(h)[t]||(Vn(h)[t]=!0)}function b(t){t in Vn(h)&&!Vn(h)[t]||(Vn(h)[t]=!1)}function E(){Vn(u)&&"handleScrimClick"in Vn(u)&&Vn(u).handleScrimClick()}function _(){return r}Ye(()=>{m!==e.variant&&(m=e.variant,Vn(u)&&Vn(u).destroy(),Ae(h,{},!0),Ae(u,v(),!0),Vn(u)&&Vn(u).init())}),Si(()=>{i=new n(r,{skipInitialFocus:!0}),Ae(u,v(),!0),Vn(u)&&Vn(u).init()}),Ai(()=>{Vn(u)&&Vn(u).destroy(),Vn(f)&&d.off(Vn(f),"SMUIDrawerScrimClick",E),d.clear()});var T={setOpen:function(t){s(t)},isOpen:function(){return s()},getElement:_},I=ho(),S=t=>{var n;Vn(u)&&Vn(u).handleKeydown(t),null==(n=e.onkeydown)||n.call(e,t)},A=t=>{var n;Vn(u)&&Vn(u).handleTransitionEnd(t),null==(n=e.ontransitionend)||n.call(e,t)};return Yr(I,t=>({class:t,...c,onkeydown:S,ontransitionend:A}),[()=>Oa({"mdc-drawer":!0,"mdc-drawer--dismissible":"dismissible"===e.variant,"mdc-drawer--modal":"modal"===e.variant,"smui-drawer__absolute":"modal"===e.variant&&!l(),...Vn(h),[o()]:!0})]),Rr(je(I),()=>{var t;return null!=(t=e.children)?t:ot}),li(I,t=>r=t,()=>r),Dr(I,(t,e)=>null==Na?void 0:Na(t,e),a),vr(t,I),Ut(T)}function fo(t,e){Bt(e,!0);let n,r=Ei(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return li(Xa(t,Ti({_smuiClass:"mdc-drawer__content",tag:"div"},()=>r,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n),Ut(i)}function mo(t,e){Bt(e,!0);let n,r=Ii(e,"use",19,()=>[]),i=Ii(e,"class",3,""),a=Ii(e,"fixed",3,!0),o=Ii(e,"component",3,ja),s=Ii(e,"tag",3,"div"),l=Ei(e,["$$slots","$$events","$$legacy","use","class","fixed","component","tag","children"]);function c(){return n.getElement()}var u={getElement:c},d=mr(),h=Ve(d);{let t=te(()=>Oa({"mdc-drawer-scrim":!0,"smui-drawer-scrim__absolute":!a(),[i()]:!0}));Lr(h,o,(i,a)=>{li(a(i,Ti({get tag(){return s()},get use(){return r()},get class(){return Vn(t)}},()=>l,{onclick:t=>{var n,r;r=t,Ra(c(),"SMUIDrawerScrimClick",r),null==(n=e.onclick)||n.call(e,t)},children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n)})}return vr(t,d),Ut(u)} /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var vo,go={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},yo={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},bo={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}; /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var Eo=["touchstart","pointerdown","mousedown","keydown"],_o=["touchend","pointerup","mouseup","contextmenu"],To=[],Io=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return go},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return yo},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return bo},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var r=e.cssClasses,i=r.ROOT,a=r.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(a),t.layoutInternal())})}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var n=e.cssClasses,r=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(r),t.adapter.removeClass(i),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},e.prototype.setUnbounded=function(t){var n=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var r=Ni(Eo),i=r.next();!i.done;i=r.next()){var a=i.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(o){e={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=Ni(_o),i=r.next();!i.done;i=r.next()){var a=i.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(o){e={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var n=Ni(Eo),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterInteractionHandler(i,this.activateHandler)}}catch(a){t={error:a}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=Ni(_o),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterDocumentInteractionHandler(i,this.deactivateHandler)}}catch(a){t={error:a}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,n=e.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(n[e],null)})},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&To.length>0&&To.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(To.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){To=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())}))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,n=e.strings,r=n.VAR_FG_TRANSLATE_START,i=n.VAR_FG_TRANSLATE_END,a=e.cssClasses,o=a.FG_DEACTIVATION,s=a.FG_ACTIVATION,l=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",u="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),h=d.startPoint,p=d.endPoint;c=h.x+"px, "+h.y+"px",u=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(r,c),this.adapter.updateCssVariable(i,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(o),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},l)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,n){if(!t)return{x:0,y:0};var r,i,a=e.x,o=e.y,s=a+n.left,l=o+n.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-s,i=c.changedTouches[0].pageY-l}else{var u=t;r=u.pageX-s,i=u.pageY-l}return{x:r,y:i}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,n=e.cssClasses.FG_DEACTIVATION,r=this.activationState,i=r.hasDeactivationUXRun,a=r.isActivated;(i||!a)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(n)},bo.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=Di({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?n:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(n*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,n=t.VAR_FG_SIZE,r=t.VAR_LEFT,i=t.VAR_TOP,a=t.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(a,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},e}(Fi),So={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},Ao={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},Co=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.hasToggledAriaLabel=!1,r}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return So},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Ao},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this.adapter.getAttr(Ao.DATA_ARIA_LABEL_ON),e=this.adapter.getAttr(Ao.DATA_ARIA_LABEL_OFF);if(t&&e){if(null!==this.adapter.getAttr(Ao.ARIA_PRESSED))throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(Ao.ARIA_PRESSED,String(this.isOn()))},e.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},e.prototype.isOn=function(){return this.adapter.hasClass(So.ICON_BUTTON_ON)},e.prototype.toggle=function(t){if(void 0===t&&(t=!this.isOn()),t?this.adapter.addClass(So.ICON_BUTTON_ON):this.adapter.removeClass(So.ICON_BUTTON_ON),this.hasToggledAriaLabel){var e=t?this.adapter.getAttr(Ao.DATA_ARIA_LABEL_ON):this.adapter.getAttr(Ao.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(Ao.ARIA_LABEL,e||"")}else this.adapter.setAttr(Ao.ARIA_PRESSED,""+t)},e}(Fi);const{applyPassive:wo}=Gi,{matches:xo}=Bi;function Oo(t,{ripple:e=!0,surface:n=!1,unbounded:r=!1,disabled:i=!1,color:a,active:o,rippleElement:s,eventTarget:l,activeTarget:c,addClass:u=e=>t.classList.add(e),removeClass:d=e=>t.classList.remove(e),addStyle:h=(e,n)=>t.style.setProperty(e,n),initPromise:p=Promise.resolve()}={}){let f,m,v=new Da,g=Ft("SMUI:addLayoutListener"),y=o,b=l,E=c;function _(){n?(u("mdc-ripple-surface"),"primary"===a?(u("smui-ripple-surface--primary"),d("smui-ripple-surface--secondary")):"secondary"===a?(d("smui-ripple-surface--primary"),u("smui-ripple-surface--secondary")):(d("smui-ripple-surface--primary"),d("smui-ripple-surface--secondary"))):(d("mdc-ripple-surface"),d("smui-ripple-surface--primary"),d("smui-ripple-surface--secondary")),f&&y!==o&&(y=o,o?f.activate():!1===o&&f.deactivate()),e&&!f?(f=new Io({addClass:u,browserSupportsCssVars:()=>function(t,e){void 0===e&&(e=!1);var n,r=t.CSS;if("boolean"==typeof vo&&!e)return vo;if(!r||"function"!=typeof r.supports)return!1;var i=r.supports("--css-vars","yes"),a=r.supports("(--css-vars: yes)")&&r.supports("color","#00000000");return n=i||a,e||(vo=n),n}(window),computeBoundingRect:()=>(s||t).getBoundingClientRect(),containsEventTarget:e=>t.contains(e),deregisterDocumentInteractionHandler:(t,e)=>v.off(document.documentElement,t,e),deregisterInteractionHandler:(e,n)=>v.off(l||t,e,n),deregisterResizeHandler:t=>window.removeEventListener("resize",t),getWindowPageOffset:()=>{var t,e;return{x:null!==(t=window.pageXOffset)&&void 0!==t?t:window.scrollX,y:null!==(e=window.pageYOffset)&&void 0!==e?e:window.scrollY}},isSurfaceActive:()=>null==o?xo(c||t,":active"):o,isSurfaceDisabled:()=>!!i,isUnbounded:()=>!!r,registerDocumentInteractionHandler:(t,e)=>{const n=wo();v.on(document.documentElement,t,e,"boolean"==typeof n?{capture:n}:n)},registerInteractionHandler:(e,n)=>{const r=wo();v.on(l||t,e,n,"boolean"==typeof r?{capture:r}:r)},registerResizeHandler:t=>v.on(window,"resize",t),removeClass:d,updateCssVariable:h}),p.then(()=>{f&&(f.init(),f.setUnbounded(r))})):f&&!e&&p.then(()=>{f&&(f.destroy(),f=void 0,v.clear())}),!f||b===l&&E===c||(b=l,E=c,f.destroy(),requestAnimationFrame(()=>{f&&(f.init(),f.setUnbounded(r))})),!e&&r&&u("mdc-ripple-upgraded--unbounded")}return _(),g&&(m=g(function(){f&&f.layout()})),{update(f){({ripple:e,surface:n,unbounded:r,disabled:i,color:a,active:o,rippleElement:s,eventTarget:l,activeTarget:c,addClass:u,removeClass:d,addStyle:h,initPromise:p}=Object.assign({ripple:!0,surface:!1,unbounded:!1,disabled:!1,color:void 0,active:void 0,rippleElement:void 0,eventTarget:void 0,activeTarget:void 0,addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),addStyle:(e,n)=>t.style.setProperty(e,n),initPromise:Promise.resolve()},f)),_()},destroy(){f&&(f.destroy(),f=void 0,v.clear(),d("mdc-ripple-surface"),d("smui-ripple-surface--primary"),d("smui-ripple-surface--secondary")),m&&m()}}}var Ro=dr('
'),Lo=dr('
',1);function Mo(t,e){Bt(e,!0);let n=()=>{};function r(t){return t===n}let i,a,o=Ii(e,"use",19,()=>[]),s=Ii(e,"class",3,""),l=Ii(e,"style",3,""),c=Ii(e,"ripple",3,!0),u=Ii(e,"toggle",3,!1),d=Ii(e,"pressed",15,n),h=Ii(e,"touch",3,!1),p=Ii(e,"displayFlex",3,!0),f=Ii(e,"size",3,"normal"),m=Ii(e,"component",3,ja),v=Ii(e,"tag",19,()=>null==e.href?"button":"a"),g=Ei(e,["$$slots","$$events","$$legacy","use","class","style","ripple","color","toggle","pressed","ariaLabelOn","ariaLabelOff","touch","displayFlex","size","href","action","component","tag","children"]),y=Ie(Re({})),b=Re({}),E=Ie(Re({})),_=Ft("SMUI:icon-button:context"),T=Ft("SMUI:icon-button:aria-describedby");const I=te(()=>{if("data-table:pagination"!==_)return"dialog:header"===_||"dialog:sheet"===_?{"data-mdc-dialog-action":e.action}:{action:e.action};switch(e.action){case"first-page":return{"data-first-page":"true"};case"prev-page":return{"data-prev-page":"true"};case"next-page":return{"data-next-page":"true"};case"last-page":return{"data-last-page":"true"};default:return{"data-action":"true"}}});let S=!!e.disabled;Ye(()=>{if(S!=!!e.disabled){if(i){const t=M();"blur"in t&&t.blur()}S=!!e.disabled}}),Ht("SMUI:icon:context","icon-button");let A=null;function C(t){return t in Vn(y)?Vn(y)[t]:M().classList.contains(t)}function w(t){Vn(y)[t]||(Vn(y)[t]=!0)}function x(t){t in Vn(y)&&!Vn(y)[t]||(Vn(y)[t]=!1)}function O(t,e){b[t]!=e&&(""===e||null==e?delete b[t]:b[t]=e)}function R(t){var e;return t in Vn(E)?null!=(e=Vn(E)[t])?e:null:M().getAttribute(t)}function L(t,e){Vn(E)[t]!==e&&(Vn(E)[t]=e)}function M(){return i.getElement()}Ye(()=>{i&&M()&&u()!==A&&(u()&&!a?(a=new Co({addClass:w,hasClass:C,notifyChange:t=>{!function(t){d(t.isOn)}(t),Ra(M(),"SMUIIconButtonToggleChange",t)},removeClass:x,getAttr:R,setAttr:L}),a.init()):!u()&&a&&(a.destroy(),a=void 0,Ae(y,{},!0),Ae(E,{},!0)),A=u())}),Ye(()=>{a&&!r(d())&&a.isOn()!==d()&&a.toggle(d())}),Ai(()=>{a&&a.destroy()});var D={getElement:M},N=mr(),k=Ve(N);{let t=te(()=>[[Oo,{ripple:c(),unbounded:!0,color:e.color,disabled:!!e.disabled,addClass:w,removeClass:x,addStyle:O}],...o()]),n=te(()=>Oa({"mdc-icon-button":!0,"mdc-icon-button--on":!r(d())&&d(),"mdc-icon-button--touch":h(),"mdc-icon-button--display-flex":p(),"smui-icon-button--size-button":"button"===f(),"smui-icon-button--size-mini":"mini"===f(),"mdc-icon-button--reduced-size":"mini"===f()||"button"===f(),"mdc-card__action":"card:action"===_,"mdc-card__action--icon":"card:action"===_,"mdc-top-app-bar__navigation-icon":"top-app-bar:navigation"===_,"mdc-top-app-bar__action-item":"top-app-bar:action"===_,"mdc-snackbar__dismiss":"snackbar:actions"===_,"mdc-data-table__pagination-button":"data-table:pagination"===_,"mdc-data-table__sort-icon-button":"data-table:sortable-header-cell"===_,"mdc-dialog__close":("dialog:header"===_||"dialog:sheet"===_)&&"close"===e.action,...Vn(y),[s()]:!0})),u=te(()=>Object.entries(b).map(([t,e])=>"".concat(t,": ").concat(e,";")).concat([l()]).join(" ")),S=te(()=>r(d())?null:d()?"true":"false"),A=te(()=>d()?e.ariaLabelOn:e.ariaLabelOff);Lr(k,m,(r,o)=>{li(o(r,Ti({get tag(){return v()},get use(){return Vn(t)},get class(){return Vn(n)},get style(){return Vn(u)},get"aria-pressed"(){return Vn(S)},get"aria-label"(){return Vn(A)},get"data-aria-label-on"(){return e.ariaLabelOn},get"data-aria-label-off"(){return e.ariaLabelOff},get"aria-describedby"(){return T},get href(){return e.href}},()=>Vn(I),()=>Vn(E),()=>g,{onclick:t=>{var n;a&&a.handleClick(),"top-app-bar:navigation"===_&&Ra(M(),"SMUITopAppBarIconButtonNav"),null==(n=e.onclick)||n.call(e,t),t.currentTarget.blur()},children:(t,n)=>{var r=Lo(),i=$e(Ve(r),2);Rr(i,()=>{var t;return null!=(t=e.children)?t:ot});var a=$e(i),o=t=>{vr(t,Ro())};_r(a,t=>{h()&&t(o)}),vr(t,r)},$$slots:{default:!0}})),t=>i=t,()=>i)})}return vr(t,N),Ut(D)}function Do(t,e){Bt(e,!0);const{closest:n,matches:r}=Bi;let i,a=Ft("SMUI:list:nav"),o=Ii(e,"use",19,()=>[]),s=Ii(e,"class",3,""),l=Ii(e,"nonInteractive",3,!1),c=Ii(e,"dense",3,!1),u=Ii(e,"textualList",3,!1),d=Ii(e,"avatarList",3,!1),h=Ii(e,"iconList",3,!1),p=Ii(e,"imageList",3,!1),f=Ii(e,"thumbnailList",3,!1),m=Ii(e,"videoList",3,!1),v=Ii(e,"twoLine",3,!1),g=Ii(e,"threeLine",3,!1),y=Ii(e,"vertical",3,!0),b=Ii(e,"wrapFocus",19,()=>{var t;return null!=(t=Ft("SMUI:list:wrapFocus"))&&t}),E=Ii(e,"singleSelection",3,!1),_=Ii(e,"disabledItemsFocusable",3,!1),T=Ii(e,"selectedIndex",31,()=>-1),I=Ii(e,"radioList",3,!1),S=Ii(e,"checkList",3,!1),A=Ii(e,"hasTypeahead",3,!1),C=Ii(e,"component",3,ja),w=Ii(e,"tag",3,a?"nav":"ul"),x=Ei(e,["$$slots","$$events","$$legacy","use","class","nonInteractive","dense","textualList","avatarList","iconList","imageList","thumbnailList","videoList","twoLine","threeLine","vertical","wrapFocus","singleSelection","disabledItemsFocusable","selectedIndex","radioList","checkList","hasTypeahead","component","tag","children"]),O=Ie(void 0),R=[],L=Ft("SMUI:list:role");const M=new WeakMap;let D,N=Ft("SMUI:dialog:selection"),k=Ft("SMUI:addLayoutListener");Ht("SMUI:list:nonInteractive",l()),Ht("SMUI:separator:context","list"),L||(E()?(L="listbox",Ht("SMUI:list:item:role","option")):I()?(L="radiogroup",Ht("SMUI:list:item:role","radio")):S()?(L="group",Ht("SMUI:list:item:role","checkbox")):(L="list",Ht("SMUI:list:item:role",void 0))),Ye(()=>{Vn(O)&&Vn(O).setVerticalOrientation(y())}),Ye(()=>{Vn(O)&&Vn(O).setWrapFocus(b())}),Ye(()=>{Vn(O)&&Vn(O).setHasTypeahead(A())}),Ye(()=>{Vn(O)&&Vn(O).setSingleSelection(E())}),Ye(()=>{Vn(O)&&Vn(O).setDisabledItemsFocusable(_())}),Ye(()=>{Vn(O)&&E()&&K()!==T()&&Vn(O).setSelectedIndex(T())}),k&&(D=k(X)),Ht("SMUI:list:item:mount",t=>{R.push(t),M.set(t.element,t),E()&&t.selected&&T(G(t.element))}),Ht("SMUI:list:item:unmount",t=>{var e;const n=null!=(e=t&&R.findIndex(e=>e===t))?e:-1;-1!==n&&(R.splice(n,1),M.delete(t.element))});const P=Ft("SMUI:list:mount"),F=Ft("SMUI:list:unmount");function H(){return null==i?[]:[...Z().children].map(t=>M.get(t)).filter(t=>t&&t._smui_list_item_accessor)}function B(t,e){var n;const r=H()[t];return null!=(n=r&&r.hasClass(e))&&n}function U(t,e){const n=H()[t];n&&n.addClass(e)}function j(t,e){const n=H()[t];n&&n.removeClass(e)}function V(t,e,n){const r=H()[t];r&&r.addAttr(e,n)}function $(t,e){const n=H()[t];n&&n.removeAttr(e)}function W(t,e){const n=H()[t];return n?n.getAttr(e):null}function z(t){var e;const n=H()[t];return null!=(e=n&&n.getPrimaryText())?e:""}function G(t){const e=n(t,".mdc-deprecated-list-item, .mdc-deprecated-list");return e&&r(e,".mdc-deprecated-list-item")?H().map(t=>null==t?void 0:t.element).indexOf(e):-1}function X(){if(!Vn(O))throw new Error("Instance is undefined.");return Vn(O).layout()}function K(){if(!Vn(O))throw new Error("Instance is undefined.");return Vn(O).getSelectedIndex()}function q(t){const e=H()[t];e&&"focus"in e.element&&e.element.focus()}function Z(){return i.getElement()}Si(()=>{Ae(O,new oo({addClassForElementIndex:U,focusItemAtIndex:q,getAttributeForElementIndex:(t,e)=>{var n,r;return null!=(r=null==(n=H()[t])?void 0:n.getAttr(e))?r:null},getFocusedElementIndex:()=>document.activeElement?H().map(t=>t.element).indexOf(document.activeElement):-1,getListItemCount:()=>R.length,getPrimaryTextAtIndex:z,hasCheckboxAtIndex:t=>{var e,n;return null!=(n=null==(e=H()[t])?void 0:e.hasCheckbox)&&n},hasRadioAtIndex:t=>{var e,n;return null!=(n=null==(e=H()[t])?void 0:e.hasRadio)&&n},isCheckboxCheckedAtIndex:t=>{var e;const n=H()[t];return null!=(e=(null==n?void 0:n.hasCheckbox)&&n.checked)&&e},isFocusInsideList:()=>null!=i&&Z()!==document.activeElement&&Z().contains(document.activeElement),isRootFocused:()=>null!=i&&document.activeElement===Z(),listItemAtIndexHasClass:B,notifyAction:t=>{T(t),null!=i&&Ra(Z(),"SMUIListAction",{index:t})},notifySelectionChange:t=>{null!=i&&Ra(Z(),"SMUIListSelectionChange",{changedIndices:t})},removeClassForElementIndex:j,setAttributeForElementIndex:V,setCheckedCheckboxOrRadioAtIndex:(t,e)=>{H()[t].checked=e},setTabIndexForListItemChildren:(t,e)=>{const n=H()[t];Array.prototype.forEach.call(n.element.querySelectorAll("button:not(:disabled), a"),t=>{t.setAttribute("tabindex",e)})}}),!0);const t={get element(){return Z()},get items(){return R},get typeaheadInProgress(){if(!Vn(O))throw new Error("Instance is undefined.");return Vn(O).isTypeaheadInProgress()},typeaheadMatchItem(t,e){if(!Vn(O))throw new Error("Instance is undefined.");return Vn(O).typeaheadMatchItem(t,e,!0)},getOrderedList:H,focusItemAtIndex:q,addClassForElementIndex:U,removeClassForElementIndex:j,setAttributeForElementIndex:V,removeAttributeForElementIndex:$,getAttributeFromElementIndex:W,getPrimaryTextAtIndex:z};return P&&P(t),Vn(O).init(),Vn(O).layout(),()=>{var e;F&&F(t),null==(e=Vn(O))||e.destroy()}}),Ai(()=>{D&&D()});var Y={layout:X,setEnabled:function(t,e){if(!Vn(O))throw new Error("Instance is undefined.");return Vn(O).setEnabled(t,e)},getTypeaheadInProgress:function(){if(!Vn(O))throw new Error("Instance is undefined.");return Vn(O).isTypeaheadInProgress()},getSelectedIndex:K,getFocusedItemIndex:function(){if(!Vn(O))throw new Error("Instance is undefined.");return Vn(O).getFocusedItemIndex()},focusItemAtIndex:q,getElement:Z},Q=mr(),J=Ve(Q);{let t=te(()=>Oa({"mdc-deprecated-list":!0,"mdc-deprecated-list--non-interactive":l(),"mdc-deprecated-list--dense":c(),"mdc-deprecated-list--textual-list":u(),"mdc-deprecated-list--avatar-list":d()||N,"mdc-deprecated-list--icon-list":h(),"mdc-deprecated-list--image-list":p(),"mdc-deprecated-list--thumbnail-list":f(),"mdc-deprecated-list--video-list":m(),"mdc-deprecated-list--two-line":v(),"smui-list--three-line":g()&&!v(),[s()]:!0}));Lr(J,C,(n,a)=>{li(a(n,Ti({get tag(){return w()},get use(){return o()},get class(){return Vn(t)},get role(){return L}},()=>x,{onkeydown:t=>{var n,r;r=t,Vn(O)&&r.target&&Vn(O).handleKeydown(r,r.target.classList.contains("mdc-deprecated-list-item"),G(r.target)),null==(n=e.onkeydown)||n.call(e,t)},onfocusin:t=>{var n,r;r=t,Vn(O)&&r.target&&Vn(O).handleFocusIn(G(r.target)),null==(n=e.onfocusin)||n.call(e,t)},onfocusout:t=>{var n,r;r=t,Vn(O)&&r.target&&Vn(O).handleFocusOut(G(r.target)),null==(n=e.onfocusout)||n.call(e,t)},onclick:t=>{var n,i;i=t,Vn(O)&&i.target&&Vn(O).handleClick(G(i.target),!r(i.target,'input[type="checkbox"], input[type="radio"]'),i),null==(n=e.onclick)||n.call(e,t)},onSMUIAction:t=>{var n;!function(t){if(I()||S()){const e=G(t.target);if(-1!==e){const n=H()[e];n&&(I()&&!n.checked||S())&&(r(t.detail.target,'input[type="checkbox"], input[type="radio"]')||(n.checked=!n.checked),n.activateRipple(),window.requestAnimationFrame(()=>{n.deactivateRipple()}))}}}(t),null==(n=e.onSMUIAction)||n.call(e,t)},children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>i=t,()=>i)})}return vr(t,Q),Ut(Y)}let No=0;var ko=dr(''),Po=dr("",1);function Fo(t,e){Bt(e,!0);let n=()=>{};let r,i=Ft("SMUI:list:item:nav"),a=Ii(e,"use",19,()=>[]),o=Ii(e,"class",3,""),s=Ii(e,"style",3,""),l=Ii(e,"nonInteractive",19,()=>{var t;return null!=(t=Ft("SMUI:list:nonInteractive"))&&t}),c=Ii(e,"ripple",19,()=>!l()),u=Ii(e,"wrapper",3,!1),d=Ii(e,"activated",15,!1),h=Ii(e,"role",19,()=>u()?"presentation":Ft("SMUI:list:item:role")),p=Ii(e,"selected",15,!1),f=Ii(e,"disabled",3,!1),m=Ii(e,"skipRestoreFocus",3,!1),v=Ii(e,"tabindex",15,n),g=Ii(e,"inputId",19,()=>"SMUI-form-field-list-"+No++),y=Ii(e,"component",3,ja),b=Ii(e,"tag",19,()=>i?e.href?"a":"span":"li"),E=Ei(e,["$$slots","$$events","$$legacy","use","class","style","color","nonInteractive","ripple","wrapper","activated","role","selected","disabled","skipRestoreFocus","tabindex","inputId","href","component","tag","children"]);Ht("SMUI:list:nonInteractive",void 0),Ht("SMUI:list:item:role",void 0);let _=Re({}),T=Re({}),I=Re({}),S=Ie(void 0),A=Ie(void 0);const C=te(()=>v()===n?l()||f()||!(p()||Vn(S)&&Vn(S).checked)?-1:0:v());Ht("SMUI:generic:input:props",{id:g()}),Ht("SMUI:separator:context",void 0),Ht("SMUI:generic:input:mount",t=>{("_smui_checkbox_accessor"in t||"_smui_radio_accessor"in t)&&Ae(S,t,!0)}),Ht("SMUI:generic:input:unmount",()=>{Ae(S,void 0)});const w=Ft("SMUI:list:item:mount"),x=Ft("SMUI:list:item:unmount");function O(t){return t in _?_[t]:H().classList.contains(t)}function R(t){_[t]||(_[t]=!0)}function L(t){t in _&&!_[t]||(_[t]=!1)}function M(t,e){T[t]!=e&&(""===e||null==e?delete T[t]:T[t]=e)}function D(t){var e;return t in I?null!=(e=I[t])?e:null:H().getAttribute(t)}function N(t,e){I[t]!==e&&(I[t]=e)}function k(t){t in I&&null==I[t]||(I[t]=void 0)}function P(t){f()||Ra(H(),"SMUIAction",t)}function F(){var t,e,n;const r=H(),i=r.querySelector(".mdc-deprecated-list-item__primary-text");if(i)return null!=(t=i.textContent)?t:"";const a=r.querySelector(".mdc-deprecated-list-item__text");return a?null!=(e=a.textContent)?e:"":null!=(n=r.textContent)?n:""}function H(){return r.getElement()}Si(()=>{if(!p()&&!l()){let t=!0,e=r.getElement();for(;e.previousElementSibling;)if(e=e.previousElementSibling,1===e.nodeType&&e.classList.contains("mdc-deprecated-list-item")&&!e.classList.contains("mdc-deprecated-list-item--disabled")){t=!1;break}t&&Ae(A,window.requestAnimationFrame(()=>function(t){let e=!0;for(;t.nextElementSibling;)if(1===(t=t.nextElementSibling).nodeType&&t.classList.contains("mdc-deprecated-list-item")){const n=t.attributes.getNamedItem("tabindex");if(n&&"0"===n.value){e=!1;break}}e&&v(0)}(e)),!0)}const t={_smui_list_item_accessor:!0,get element(){return H()},get selected(){return p()},set selected(t){p(t)},hasClass:O,addClass:R,removeClass:L,getAttr:D,addAttr:N,removeAttr:k,getPrimaryText:F,get checked(){var t;return null!=(t=Vn(S)&&Vn(S).checked)&&t},set checked(t){Vn(S)&&(Vn(S).checked=!!t)},get hasCheckbox(){return!(!Vn(S)||!("_smui_checkbox_accessor"in Vn(S)))},get hasRadio(){return!(!Vn(S)||!("_smui_radio_accessor"in Vn(S)))},activateRipple(){Vn(S)&&Vn(S).activateRipple()},deactivateRipple(){Vn(S)&&Vn(S).deactivateRipple()},getValue:()=>e.value,action:P,get tabindex(){return Vn(C)},set tabindex(t){v(t)},get disabled(){return f()},get activated(){return d()},set activated(t){d(t)}};return w&&w(t),()=>{x&&x(t)}}),Ai(()=>{Vn(A)&&window.cancelAnimationFrame(Vn(A))});var B={action:P,getPrimaryText:F,getElement:H},U=mr(),j=Ve(U);{let t=te(()=>[...l()?[]:[[Oo,{ripple:!Vn(S),unbounded:!1,color:(d()||p())&&null==e.color?"primary":e.color,disabled:f(),addClass:R,removeClass:L,addStyle:M}]],...a()]),n=te(()=>Oa({"mdc-deprecated-list-item":!u(),"mdc-deprecated-list-item__wrapper":u(),"mdc-deprecated-list-item--activated":d(),"mdc-deprecated-list-item--selected":p(),"mdc-deprecated-list-item--disabled":f(),"mdc-menu-item--selected":!i&&"menuitem"===h()&&p(),"smui-menu-item--non-interactive":l(),..._,[o()]:!0})),v=te(()=>Object.entries(T).map(([t,e])=>"".concat(t,": ").concat(e,";")).concat([s()]).join(" ")),g=te(()=>m()||void 0);Lr(j,y,(a,o)=>{li(o(a,Ti({get tag(){return b()},get use(){return Vn(t)},get class(){return Vn(n)},get style(){return Vn(v)}},()=>i&&d()?{"aria-current":"page"}:{},()=>!i||u()?{role:h()}:{},()=>i||"option"!==h()?{}:{"aria-selected":p()?"true":"false"},()=>i||"radio"!==h()&&"checkbox"!==h()?{}:{"aria-checked":Vn(S)&&Vn(S).checked?"true":"false"},()=>i?{}:{"aria-disabled":f()?"true":"false"},{get"data-menu-item-skip-restore-focus"(){return Vn(g)},get tabindex(){return Vn(C)},get href(){return e.href}},()=>I,()=>E,{onclick:t=>{var n;P(t),null==(n=e.onclick)||n.call(e,t),t.currentTarget.blur()},onkeydown:t=>{var n;!function(t){const e="Enter"===t.key,n="Space"===t.key;(e||n)&&P(t)}(t),null==(n=e.onkeydown)||n.call(e,t)},children:(t,n)=>{var r=Po(),i=Ve(r),a=t=>{vr(t,ko())};_r(i,t=>{c()&&t(a)}),Rr($e(i),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>r=t,()=>r)})}return vr(t,U),Ut(B)}function Ho(t,e){Bt(e,!0);let n,r=Ei(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return li(Xa(t,Ti({_smuiClass:"mdc-deprecated-list-item__text",tag:"span"},()=>r,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n),Ut(i)}var Bo=dr("");function Uo(t,e){Bt(e,!0);let n,r=Ii(e,"use",19,()=>[]),i=Ii(e,"class",3,""),a=Ei(e,["$$slots","$$events","$$legacy","use","class","children"]),o=Ft("SMUI:list:graphic:menu-selection-group");var s={getElement:function(){return n}},l=Bo();return Yr(l,t=>({class:t,...a}),[()=>Oa({"mdc-deprecated-list-item__graphic":!0,"mdc-menu__selection-group-icon":o,[i()]:!0})]),Rr(je(l),()=>{var t;return null!=(t=e.children)?t:ot}),li(l,t=>n=t,()=>n),Dr(l,(t,e)=>null==Na?void 0:Na(t,e),r),vr(t,l),Ut(s)}function jo(t,e){Bt(e,!0);let n,r=Ft("SMUI:list:item:nav"),i=Ft("SMUI:separator:context"),a=Ii(e,"use",19,()=>[]),o=Ii(e,"class",3,""),s=Ii(e,"padded",3,!1),l=Ii(e,"inset",3,!1),c=Ii(e,"insetLeading",3,!1),u=Ii(e,"insetTrailing",3,!1),d=Ii(e,"insetPadding",3,!1),h=Ii(e,"component",3,ja),p=Ii(e,"tag",3,r||"list"!==i?"hr":"li"),f=Ei(e,["$$slots","$$events","$$legacy","use","class","padded","inset","insetLeading","insetTrailing","insetPadding","component","tag","children"]);var m={getElement:function(){return n.getElement()}},v=mr(),g=Ve(v);{let t=te(()=>Oa({"mdc-deprecated-list-divider":!0,"mdc-deprecated-list-divider--padded":s(),"mdc-deprecated-list-divider--inset":l(),"mdc-deprecated-list-divider--inset-leading":c(),"mdc-deprecated-list-divider--inset-trailing":u(),"mdc-deprecated-list-divider--inset-padding":d(),[o()]:!0}));Lr(g,h,(e,r)=>{li(r(e,Ti({get tag(){return p()},get use(){return a()},get class(){return Vn(t)},role:"separator"},()=>f)),t=>n=t,()=>n)})}return vr(t,v),Ut(m)} /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var Vo,$o,Wo,zo,Go,Xo="mdc-slider--disabled",Ko="mdc-slider--discrete",qo="mdc-slider--range",Zo="mdc-slider__thumb--focused",Yo="mdc-slider__thumb--top",Qo="mdc-slider__thumb--with-indicator",Jo="mdc-slider--tick-marks",ts=1,es=0,ns=5,rs="aria-valuetext",is="disabled",as="min",os="max",ss="value",ls="step",cs="data-min-range",us="--slider-value-indicator-caret-left",ds="--slider-value-indicator-caret-right",hs="--slider-value-indicator-caret-transform",ps="--slider-value-indicator-container-left",fs="--slider-value-indicator-container-right",ms="--slider-value-indicator-container-transform",vs=function(){function t(){this.rafIDs=new Map}return t.prototype.request=function(t,e){var n=this;this.cancel(t);var r=requestAnimationFrame(function(r){n.rafIDs.delete(t),e(r)});this.rafIDs.set(t,r)},t.prototype.cancel=function(t){var e=this.rafIDs.get(t);e&&(cancelAnimationFrame(e),this.rafIDs.delete(t))},t.prototype.cancelAll=function(){var t=this;this.rafIDs.forEach(function(e,n){t.cancel(n)})},t.prototype.getQueue=function(){var t=[];return this.rafIDs.forEach(function(e,n){t.push(n)}),t},t}(),gs={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}};function ys(t,e){if(function(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}(t)&&e in gs){var n=t.document.createElement("div"),r=gs[e],i=r.standard,a=r.prefixed;return i in n.style?i:a}return e} /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */($o=Vo||(Vo={}))[$o.ACTIVE=0]="ACTIVE",$o[$o.INACTIVE=1]="INACTIVE",(zo=Wo||(Wo={}))[zo.START=1]="START",zo[zo.END=2]="END",(Go||(Go={})).SLIDER_UPDATE="slider_update";var bs="undefined"!=typeof window,Es=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.initialStylesRemoved=!1,r.isDisabled=!1,r.isDiscrete=!1,r.step=ts,r.minRange=es,r.hasTickMarks=!1,r.isRange=!1,r.thumb=null,r.downEventClientX=null,r.startThumbKnobWidth=0,r.endThumbKnobWidth=0,r.animFrame=new vs,r}return Mi(e,t),Object.defineProperty(e,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(){return 0},getValueIndicatorContainerWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this;this.isDisabled=this.adapter.hasClass(Xo),this.isDiscrete=this.adapter.hasClass(Ko),this.hasTickMarks=this.adapter.hasClass(Jo),this.isRange=this.adapter.hasClass(qo);var e=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(as,this.isRange?Wo.START:Wo.END),as),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(os,Wo.END),os),r=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(ss,Wo.END),ss),i=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(ss,Wo.START),ss):e,a=this.adapter.getInputAttribute(ls,Wo.END),o=a?this.convertAttributeValueToNumber(a,ls):this.step,s=this.adapter.getAttribute(cs),l=s?this.convertAttributeValueToNumber(s,cs):this.minRange;this.validateProperties({min:e,max:n,value:r,valueStart:i,step:o,minRange:l}),this.min=e,this.max=n,this.value=r,this.valueStart=i,this.step=o,this.minRange=l,this.numDecimalPlaces=_s(this.step),this.valueBeforeDownEvent=r,this.valueStartBeforeDownEvent=i,this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){t.handleInputChange(Wo.START)},this.inputEndChangeListener=function(){t.handleInputChange(Wo.END)},this.inputStartFocusListener=function(){t.handleInputFocus(Wo.START)},this.inputEndFocusListener=function(){t.handleInputFocus(Wo.END)},this.inputStartBlurListener=function(){t.handleInputBlur(Wo.START)},this.inputEndBlurListener=function(){t.handleInputBlur(Wo.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},e.prototype.destroy=function(){this.deregisterEventHandlers()},e.prototype.setMin=function(t){this.min=t,this.isRange||(this.valueStart=t),this.updateUI()},e.prototype.setMax=function(t){this.max=t,this.updateUI()},e.prototype.getMin=function(){return this.min},e.prototype.getMax=function(){return this.max},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t){if(this.isRange&&t= start thumb value ("+this.valueStart+") + min range ("+this.minRange+")");this.updateValue(t,Wo.END)},e.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},e.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value-this.minRange)throw new Error("start thumb value ("+t+") must be <= end thumb value ("+this.value+") - min range ("+this.minRange+")");this.updateValue(t,Wo.START)},e.prototype.setStep=function(t){this.step=t,this.numDecimalPlaces=_s(t),this.updateUI()},e.prototype.setMinRange=function(t){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");if(t<0)throw new Error("`minRange` must be non-negative. Current value: "+t);if(this.value-this.valueStart=n.left&&t<=n.right,a=t>=r.left&&t<=r.right;return i&&a?null:i?Wo.START:a?Wo.END:ethis.value?Wo.END:e-this.valueStart<=this.value-e?Wo.START:Wo.END},e.prototype.getThumbFromMoveEvent=function(t){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw new Error("`downEventClientX` is null after move event.");return Math.abs(this.downEventClientX-t)this.value-this.minRange?this.value-this.minRange:this.isRange&&e===Wo.END&&te+n?(this.adapter.setThumbStyleProperty(us,n+"px",t),this.adapter.setThumbStyleProperty(ds,"auto",t),this.adapter.setThumbStyleProperty(hs,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(ps,"0",t),this.adapter.setThumbStyleProperty(fs,"auto",t),this.adapter.setThumbStyleProperty(ms,"none",t)):r/2>i-e+n?(this.adapter.setThumbStyleProperty(us,"auto",t),this.adapter.setThumbStyleProperty(ds,n+"px",t),this.adapter.setThumbStyleProperty(hs,"translateX(50%)",t),this.adapter.setThumbStyleProperty(ps,"auto",t),this.adapter.setThumbStyleProperty(fs,"0",t),this.adapter.setThumbStyleProperty(ms,"none",t)):(this.adapter.setThumbStyleProperty(us,"50%",t),this.adapter.setThumbStyleProperty(ds,"auto",t),this.adapter.setThumbStyleProperty(hs,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(ps,"50%",t),this.adapter.setThumbStyleProperty(fs,"auto",t),this.adapter.setThumbStyleProperty(ms,"translateX(-50%)",t))}},e.prototype.removeInitialStyles=function(t){if(!this.initialStylesRemoved){var e=t?"right":"left";this.adapter.removeThumbStyleProperty(e,Wo.END),this.isRange&&this.adapter.removeThumbStyleProperty(e,Wo.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},e.prototype.resetTrackAndThumbAnimation=function(){var t=this;if(this.isDiscrete){var e=bs?ys(window,"transition"):"transition",n="none 0s ease 0s";this.adapter.setThumbStyleProperty(e,n,Wo.END),this.isRange&&this.adapter.setThumbStyleProperty(e,n,Wo.START),this.adapter.setTrackActiveStyleProperty(e,n),requestAnimationFrame(function(){t.adapter.removeThumbStyleProperty(e,Wo.END),t.adapter.removeTrackActiveStyleProperty(e),t.isRange&&t.adapter.removeThumbStyleProperty(e,Wo.START)})}},e.prototype.updateOverlappingThumbsUI=function(t,e,n){var r=!1;if(this.adapter.isRTL()){var i=t-this.startThumbKnobWidth/2;r=e+this.endThumbKnobWidth/2>=i}else{r=t+this.startThumbKnobWidth/2>=e-this.endThumbKnobWidth/2}r?(this.adapter.addThumbClass(Yo,n||Wo.END),this.adapter.removeThumbClass(Yo,n===Wo.START?Wo.END:Wo.START)):(this.adapter.removeThumbClass(Yo,Wo.START),this.adapter.removeThumbClass(Yo,Wo.END))},e.prototype.convertAttributeValueToNumber=function(t,e){if(null===t)throw new Error("MDCSliderFoundation: `"+e+"` must be non-null.");var n=Number(t);if(isNaN(n))throw new Error("MDCSliderFoundation: `"+e+"` value is `"+t+"`, but must be a number.");return n},e.prototype.validateProperties=function(t){var e=t.min,n=t.max,r=t.value,i=t.valueStart,a=t.step,o=t.minRange;if(e>=n)throw new Error("MDCSliderFoundation: min must be strictly less than max. Current: [min: "+e+", max: "+n+"]");if(a<=0)throw new Error("MDCSliderFoundation: step must be a positive number. Current step: "+a);if(this.isRange){if(rn||in)throw new Error("MDCSliderFoundation: values must be in [min, max] range. Current values: [start value: "+i+", end value: "+r+", min: "+e+", max: "+n+"]");if(i>r)throw new Error("MDCSliderFoundation: start value must be <= end value. Current values: [start value: "+i+", end value: "+r+"]");if(o<0)throw new Error("MDCSliderFoundation: minimum range must be non-negative. Current min range: "+o);if(r-in)throw new Error("MDCSliderFoundation: value must be in [min, max] range. Current values: [value: "+r+", min: "+e+", max: "+n+"]");l=(r-e)/a;if(!Number.isInteger(parseFloat(l.toFixed(6))))throw new Error("MDCSliderFoundation: Slider value must be valid based on the step value ("+a+"). Current value: "+r)}},e.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),e.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(Wo.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(Wo.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(Wo.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(Wo.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(Wo.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(Wo.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(Wo.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(Wo.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(Wo.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(Wo.END,"blur",this.inputEndBlurListener)},e.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),e.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(Wo.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(Wo.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(Wo.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(Wo.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(Wo.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(Wo.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(Wo.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(Wo.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(Wo.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(Wo.END,"blur",this.inputEndBlurListener)},e.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},e.SUPPORTS_POINTER_EVENTS=bs&&Boolean(window.PointerEvent)&&!(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),e}(Fi);function _s(t){var e=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(t));if(!e)return 0;var n=e[1]||"",r=e[2]||0;return Math.max(0,("0"===n?0:n.length)-Number(r))}var Ts=dr(" ",1),Is=dr(""),Ss=dr("
"),As=dr('
'),Cs=dr('
'),ws=dr('
'),xs=dr('
',1),Os=dr('
'),Rs=dr('
'),Ls=dr('
');function Ms(t,e){var n;Bt(e,!0);let r,i,a,o,s,l,c=Ii(e,"use",19,()=>[]),u=Ii(e,"class",3,""),d=Ii(e,"disabled",3,!1),h=Ii(e,"range",3,!1),p=Ii(e,"discrete",3,!1),f=Ii(e,"tickMarks",3,!1),m=Ii(e,"step",3,1),v=Ii(e,"min",3,0),g=Ii(e,"max",3,100),y=Ii(e,"minRange",3,0),b=Ii(e,"value",15),E=Ii(e,"start",15),_=Ii(e,"end",15),T=Ii(e,"valueToAriaValueTextFn",3,t=>"".concat(t)),I=Ii(e,"hideFocusStylesForPointerEvents",3,!1),S=Ii(e,"input$class",3,""),A=Ei(e,["$$slots","$$events","$$legacy","use","class","disabled","range","discrete","tickMarks","step","min","max","minRange","value","start","end","valueToAriaValueTextFn","hideFocusStylesForPointerEvents","input$class"]),C=Ie(void 0),w=new Da,x=Ie(void 0),O=Ie(void 0),R=Re({}),L=Re({}),M=Re({}),D=Re({}),N=Re({}),k=Re({}),P=Re({}),F=Re({}),H=Ie(!1),B=Ie(!1),U=Ie(Re([])),j=null!=(n=Ft("SMUI:generic:input:props"))?n:{},V=Ft("SMUI:addLayoutListener"),$=v();Ye(()=>{v()!==$&&(Vn(C)&&Vn(C).setMin(v()),$=v())});let W=g();Ye(()=>{g()!==W&&(Vn(C)&&Vn(C).setMax(g()),W=g())});let z=m();Ye(()=>{m()!==z&&(Vn(C)&&Vn(C).setStep(m()),z=m())});let G=p();Ye(()=>{p()!==G&&(Vn(C)&&Vn(C).setIsDiscrete(p()),G=p())});let X=f();if(Ye(()=>{f()!==X&&(Vn(C)&&Vn(C).setHasTickMarks(f()),X=f())}),f()&&m()>0){const t=g()+Math.abs(v());if(h()&&"number"==typeof E()&&"number"==typeof _()){const e=E()+Math.abs(v()),n=_()+Math.abs(v());Ae(U,[...Array(e/m()).map(()=>Vo.INACTIVE),...Array(t/m()-e/m()-(t-n)/m()+1).map(()=>Vo.ACTIVE),...Array((t-n)/m()).map(()=>Vo.INACTIVE)],!0)}else if("number"==typeof b()){const e=b()+Math.abs(v());Ae(U,[...Array(e/m()+1).map(()=>Vo.ACTIVE),...Array((t-e)/m()).map(()=>Vo.INACTIVE)],!0)}}if(h()&&"number"==typeof E()&&"number"==typeof _()){const t=(_()-E())/(g()-v()),e=E()/(g()-v()),n=_()/(g()-v());k.transform="scaleX(".concat(t,")"),P.left="calc(".concat(100*n,"% -24px)"),F.left="calc(".concat(100*e,"% -24px)")}else if("number"==typeof b()){const t=b()/(g()-v());k.transform="scaleX(".concat(t,")"),P.left="calc(".concat(100*t,"% -24px)")}V&&(l=V(dt));let K=b(),q=E(),Z=_();Ye(()=>{Vn(C)&&(K!==b()&&"number"==typeof b()&&Vn(C).setValue(b()),q!==E()&&"number"==typeof E()&&Vn(C).setValueStart(E()),Z!==_()&&"number"==typeof _()&&Vn(C).setValue(_()),K=b(),q=E(),Z=_(),Vn(C).layout())});const Y=Ft("SMUI:generic:input:mount"),Q=Ft("SMUI:generic:input:unmount");function J(t){return t in R?R[t]:ht().classList.contains(t)}function tt(t){R[t]||(R[t]=!0)}function et(t){t in R&&!R[t]||(R[t]=!1)}function nt(t,e){h()&&e===Wo.START?L[t]||(L[t]=!0):M[t]||(M[t]=!0)}function rt(t,e){h()&&e===Wo.START?t in L&&!L[t]||(L[t]=!1):t in M&&!M[t]||(M[t]=!1)}function it(t,e,n){h()&&n===Wo.START?F[t]!=e&&(""===e||null==e?delete F[t]:F[t]=e):P[t]!=e&&(""===e||null==e?delete P[t]:P[t]=e)}function at(t,e){h()&&e===Wo.START?t in F&&delete F[t]:t in P&&delete P[t]}function ot(t,e){var n,r,i,a,o,s;return h()&&e===Wo.START?"value"===t?"".concat(E()):t in N?null!=(n=N[t])?n:null:null!=(i=null==(r=Vn(O))?void 0:r.getAttribute(t))?i:null:"value"===t?"".concat(h()?_():b()):t in D?null!=(a=D[t])?a:null:null!=(s=null==(o=Vn(x))?void 0:o.getAttribute(t))?s:null}function st(t,e,n){h()&&n===Wo.START?N[t]!==e&&(N[t]=e):D[t]!==e&&(D[t]=e)}function lt(t,e){h()&&e===Wo.START?t in N&&null==N[t]||(N[t]=void 0):t in D&&null==D[t]||(D[t]=void 0)}function ct(t,e){k[t]!=e&&(""===e||null==e?delete k[t]:k[t]=e)}function ut(t){t in k&&delete k[t]}function dt(){var t;return null==(t=Vn(C))?void 0:t.layout()}function ht(){return r}Si(()=>{Ae(C,new Es({hasClass:J,addClass:tt,removeClass:et,addThumbClass:nt,removeThumbClass:rt,getAttribute:t=>ht().getAttribute(t),getInputValue:t=>{var e;return"".concat(null!=(e=h()?t===Wo.START?E():_():b())?e:0)},setInputValue:(t,e)=>{h()?e===Wo.START?(E(Number(t)),q=E()):(_(Number(t)),Z=_()):(b(Number(t)),K=b())},getInputAttribute:ot,setInputAttribute:st,removeInputAttribute:lt,focusInput:t=>{var e;h()&&t===Wo.START&&Vn(O)?Vn(O).focus():null==(e=Vn(x))||e.focus()},isInputFocused:t=>(h()&&t===Wo.START?Vn(O):Vn(x))===document.activeElement,shouldHideFocusStylesForPointerEvents:()=>I(),getThumbKnobWidth:t=>{var e;return(null!=(e=h()&&t===Wo.START?s:o)?e:o).getBoundingClientRect().width},getThumbBoundingClientRect:t=>{var e;return(null!=(e=h()&&t===Wo.START?a:i)?e:i).getBoundingClientRect()},getBoundingClientRect:()=>ht().getBoundingClientRect(),getValueIndicatorContainerWidth:t=>{var e;return(null!=(e=h()&&t===Wo.START?a:i)?e:i).querySelector(".mdc-slider__value-indicator-container").getBoundingClientRect().width},isRTL:()=>"rtl"===getComputedStyle(ht()).direction,setThumbStyleProperty:it,removeThumbStyleProperty:at,setTrackActiveStyleProperty:ct,removeTrackActiveStyleProperty:ut,setValueIndicatorText:(t,e)=>{},getValueToAriaValueTextFn:()=>T(),updateTickMarks:t=>{Ae(U,t,!0)},setPointerCapture:t=>{ht().setPointerCapture(t)},emitChangeEvent:(t,e)=>{Ra(ht(),"SMUISliderChange",{value:t,thumb:e})},emitInputEvent:(t,e)=>{Ra(ht(),"SMUISliderInput",{value:t,thumb:e})},emitDragStartEvent:(t,e)=>{h()&&e===Wo.START?Ae(B,!0):Ae(H,!0)},emitDragEndEvent:(t,e)=>{h()&&e===Wo.START?Ae(B,!1):Ae(H,!1)},registerEventHandler:(t,e)=>w.on(ht(),t,e),deregisterEventHandler:(t,e)=>w.off(ht(),t,e),registerThumbEventHandler:(t,e,n)=>{const r=h()&&t===Wo.START?a:i;r&&w.on(r,e,n)},deregisterThumbEventHandler:(t,e,n)=>{const r=h()&&t===Wo.START?a:i;r&&w.off(r,e,n)},registerInputEventHandler:(t,e,n)=>{const r=h()&&t===Wo.START?Vn(O):Vn(x);r&&w.on(r,e,n)},deregisterInputEventHandler:(t,e,n)=>{const r=h()&&t===Wo.START?Vn(O):Vn(x);r&&w.off(r,e,n)},registerBodyEventHandler:(t,e)=>w.on(document.body,t,e),deregisterBodyEventHandler:(t,e)=>w.off(document.body,t,e),registerWindowEventHandler:(t,e)=>w.on(window,t,e),deregisterWindowEventHandler:(t,e)=>w.off(window,t,e)}),!0);const t={get element(){return ht()},activateRipple(){d()||Ae(H,!0)},deactivateRipple(){Ae(H,!1)}};return Y&&Y(t),Vn(C).init(),Vn(C).layout({skipUpdateUI:!0}),()=>{var e;Q&&Q(t),null==(e=Vn(C))||e.destroy(),w.clear()}}),Ai(()=>{l&&l()});var pt={layout:dt,getId:function(){return j&&j.id},getElement:ht},ft=Ls();Yr(ft,(t,e)=>({class:t,...h()?{"data-min-range":"".concat(y())}:{},...e}),[()=>Object.entries({"mdc-slider":!0,"mdc-slider--range":h(),"mdc-slider--discrete":p(),"mdc-slider--tick-marks":p()&&f(),"mdc-slider--disabled":d(),...R,[u()]:!0}).filter(([t,e])=>""!==t&&e).map(([t])=>t).join(" "),()=>La(A,["input$"])]);var mt=je(ft),vt=t=>{var n=Ts(),r=Ve(n),i=t=>{var n;Ra(ht(),"blur",t),null==(n=e.input$onblur)||n.call(e,t)},a=t=>{var n;Ra(ht(),"focus",t),null==(n=e.input$onfocus)||n.call(e,t)};Yr(r,(t,e)=>({class:t,type:"range",disabled:d(),step:m(),min:v(),max:_(),...N,...e,onblur:i,onfocus:a}),[()=>Oa({"mdc-slider__input":!0,[S()]:!0}),()=>Ma(A,"input$")],void 0,void 0,!0),li(r,t=>Ae(O,t),()=>Vn(O));var o=$e(r,2),s=t=>{var n;Ra(ht(),"blur",t),null==(n=e.input$onblur)||n.call(e,t)},l=t=>{var n;Ra(ht(),"focus",t),null==(n=e.input$onfocus)||n.call(e,t)};Yr(o,(t,e)=>({class:t,type:"range",disabled:d(),step:m(),min:E(),max:g(),...j,...D,...e,onblur:s,onfocus:l}),[()=>Oa({"mdc-slider__input":!0,[S()]:!0}),()=>Ma(A,"input$")],void 0,void 0,!0),li(o,t=>Ae(x,t),()=>Vn(x)),ei(r,E),ei(o,_),vr(t,n)},gt=t=>{var n=Is(),r=t=>{var n;Ra(ht(),"blur",t),null==(n=e.input$onblur)||n.call(e,t)},i=t=>{var n;Ra(ht(),"focus",t),null==(n=e.input$onfocus)||n.call(e,t)};Yr(n,(t,e)=>({class:t,type:"range",disabled:d(),step:m(),min:v(),max:g(),...j,...D,...e,onblur:r,onfocus:i}),[()=>Oa({"mdc-slider__input":!0,[S()]:!0}),()=>Ma(A,"input$")],void 0,void 0,!0),li(n,t=>Ae(x,t),()=>Vn(x)),ei(n,b),vr(t,n)};_r(mt,t=>{h()?t(vt):t(gt,!1)});var yt=$e(mt,2),bt=$e(je(yt),2),Et=je(bt),_t=$e(bt,2),Tt=t=>{var e=As();Sr(e,21,()=>Vn(U),Ir,(t,e)=>{var n=Ss();en(()=>Ur(n,1,Pr(Vn(e)===Vo.ACTIVE?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"))),vr(t,n)}),vr(t,e)};_r(_t,t=>{p()&&f()&&m()>0&&t(Tt)});var It=$e(yt,2),St=t=>{var e=xs(),n=Ve(e),r=je(n),l=t=>{var e=Cs(),n=je(e),r=je(n),i=je(r);en(()=>gr(i,E())),vr(t,e)};_r(r,t=>{p()&&t(l)}),li($e(r,2),t=>s=t,()=>s),li(n,t=>a=t,()=>a),Dr(n,(t,e)=>null==Oo?void 0:Oo(t,e),()=>({unbounded:!0,disabled:d(),active:Vn(B),eventTarget:Vn(O),activeTarget:Vn(O),addClass:t=>nt(t,Wo.START),removeClass:t=>rt(t,Wo.START),addStyle:(t,e)=>it(t,e,Wo.START)}));var c=$e(n,2),u=je(c),h=t=>{var e=ws(),n=je(e),r=je(n),i=je(r);en(()=>gr(i,_())),vr(t,e)};_r(u,t=>{p()&&t(h)}),li($e(u,2),t=>o=t,()=>o),li(c,t=>i=t,()=>i),Dr(c,(t,e)=>null==Oo?void 0:Oo(t,e),()=>({unbounded:!0,disabled:d(),active:Vn(H),eventTarget:Vn(x),activeTarget:Vn(x),addClass:t=>nt(t,Wo.END),removeClass:t=>rt(t,Wo.END),addStyle:(t,e)=>it(t,e,Wo.END)})),en((t,e,r,i)=>{Ur(n,1,t),Vr(n,e),Ur(c,1,r),Vr(c,i)},[()=>Pr(Oa({"mdc-slider__thumb":!0,...L})),()=>Object.entries(F).map(([t,e])=>"".concat(t,": ").concat(e,";")).join(" "),()=>Pr(Oa({"mdc-slider__thumb":!0,...M})),()=>Object.entries(P).map(([t,e])=>"".concat(t,": ").concat(e,";")).join(" ")]),vr(t,e)},At=t=>{var e=Rs(),n=je(e),r=t=>{var e=Os(),n=je(e),r=je(n),i=je(r);en(()=>gr(i,b())),vr(t,e)};_r(n,t=>{p()&&t(r)}),li($e(n,2),t=>o=t,()=>o),li(e,t=>i=t,()=>i),Dr(e,(t,e)=>null==Oo?void 0:Oo(t,e),()=>({unbounded:!0,disabled:d(),active:Vn(H),eventTarget:Vn(x),activeTarget:Vn(x),addClass:t=>nt(t,Wo.END),removeClass:t=>rt(t,Wo.END),addStyle:(t,e)=>it(t,e,Wo.END)})),en((t,n)=>{Ur(e,1,t),Vr(e,n)},[()=>Pr(Oa({"mdc-slider__thumb":!0,...M})),()=>Object.entries(P).map(([t,e])=>"".concat(t,": ").concat(e,";")).join(" ")]),vr(t,e)};return _r(It,t=>{h()?t(St):t(At,!1)}),li(ft,t=>r=t,()=>r),Dr(ft,(t,e)=>null==Na?void 0:Na(t,e),c),en(t=>Vr(Et,t),[()=>Object.entries(k).map(([t,e])=>"".concat(t,": ").concat(e,";")).join(" ")]),vr(t,ft),Ut(pt)}var Ds="top",Ns="bottom",ks="right",Ps="left",Fs="auto",Hs=[Ds,Ns,ks,Ps],Bs="start",Us="end",js="viewport",Vs="popper",$s=Hs.reduce(function(t,e){return t.concat([e+"-"+Bs,e+"-"+Us])},[]),Ws=[].concat(Hs,[Fs]).reduce(function(t,e){return t.concat([e,e+"-"+Bs,e+"-"+Us])},[]),zs=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Gs(t){return t?(t.nodeName||"").toLowerCase():null}function Xs(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ks(t){return t instanceof Xs(t).Element||t instanceof Element}function qs(t){return t instanceof Xs(t).HTMLElement||t instanceof HTMLElement}function Zs(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Xs(t).ShadowRoot||t instanceof ShadowRoot)}const Ys={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];qs(i)&&Gs(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var r=e.elements[t],i=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});qs(r)&&Gs(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(t){r.removeAttribute(t)}))})}},requires:["computeStyles"]};function Qs(t){return t.split("-")[0]}var Js=Math.max,tl=Math.min,el=Math.round;function nl(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function rl(){return!/^((?!chrome|android).)*safari/i.test(nl())}function il(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,a=1;e&&qs(t)&&(i=t.offsetWidth>0&&el(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&el(r.height)/t.offsetHeight||1);var o=(Ks(t)?Xs(t):window).visualViewport,s=!rl()&&n,l=(r.left+(s&&o?o.offsetLeft:0))/i,c=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function al(t){var e=il(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function ol(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Zs(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sl(t){return Xs(t).getComputedStyle(t)}function ll(t){return["table","td","th"].indexOf(Gs(t))>=0}function cl(t){return((Ks(t)?t.ownerDocument:t.document)||window.document).documentElement}function ul(t){return"html"===Gs(t)?t:t.assignedSlot||t.parentNode||(Zs(t)?t.host:null)||cl(t)}function dl(t){return qs(t)&&"fixed"!==sl(t).position?t.offsetParent:null}function hl(t){for(var e=Xs(t),n=dl(t);n&&ll(n)&&"static"===sl(n).position;)n=dl(n);return n&&("html"===Gs(n)||"body"===Gs(n)&&"static"===sl(n).position)?e:n||function(t){var e=/firefox/i.test(nl());if(/Trident/i.test(nl())&&qs(t)&&"fixed"===sl(t).position)return null;var n=ul(t);for(Zs(n)&&(n=n.host);qs(n)&&["html","body"].indexOf(Gs(n))<0;){var r=sl(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function pl(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fl(t,e,n){return Js(t,tl(e,n))}function ml(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function vl(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}function gl(t){return t.split("-")[1]}var yl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bl(t){var e,n=t.popper,r=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,h=o.x,p=void 0===h?0:h,f=o.y,m=void 0===f?0:f,v="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Ps,E=Ds,_=window;if(c){var T=hl(n),I="clientHeight",S="clientWidth";if(T===Xs(n)&&"static"!==sl(T=cl(n)).position&&"absolute"===s&&(I="scrollHeight",S="scrollWidth"),i===Ds||(i===Ps||i===ks)&&a===Us)E=Ns,m-=(d&&T===_&&_.visualViewport?_.visualViewport.height:T[I])-r.height,m*=l?1:-1;if(i===Ps||(i===Ds||i===Ns)&&a===Us)b=ks,p-=(d&&T===_&&_.visualViewport?_.visualViewport.width:T[S])-r.width,p*=l?1:-1}var A,C=Object.assign({position:s},c&&yl),w=!0===u?function(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:el(n*i)/i||0,y:el(r*i)/i||0}}({x:p,y:m},Xs(n)):{x:p,y:m};return p=w.x,m=w.y,l?Object.assign({},C,((A={})[E]=y?"0":"",A[b]=g?"0":"",A.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",A)):Object.assign({},C,((e={})[E]=y?m+"px":"",e[b]=g?p+"px":"",e.transform="",e))}var El={passive:!0};var _l={left:"right",right:"left",bottom:"top",top:"bottom"};function Tl(t){return t.replace(/left|right|bottom|top/g,function(t){return _l[t]})}var Il={start:"end",end:"start"};function Sl(t){return t.replace(/start|end/g,function(t){return Il[t]})}function Al(t){var e=Xs(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Cl(t){return il(cl(t)).left+Al(t).scrollLeft}function wl(t){var e=sl(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function xl(t){return["html","body","#document"].indexOf(Gs(t))>=0?t.ownerDocument.body:qs(t)&&wl(t)?t:xl(ul(t))}function Ol(t,e){var n;void 0===e&&(e=[]);var r=xl(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),a=Xs(r),o=i?[a].concat(a.visualViewport||[],wl(r)?r:[]):r,s=e.concat(o);return i?s:s.concat(Ol(ul(o)))}function Rl(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ll(t,e,n){return e===js?Rl(function(t,e){var n=Xs(t),r=cl(t),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=rl();(c||!c&&"fixed"===e)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+Cl(t),y:l}}(t,n)):Ks(e)?function(t,e){var n=il(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):Rl(function(t){var e,n=cl(t),r=Al(t),i=null==(e=t.ownerDocument)?void 0:e.body,a=Js(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Js(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Cl(t),l=-r.scrollTop;return"rtl"===sl(i||n).direction&&(s+=Js(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}(cl(t)))}function Ml(t,e,n,r){var i="clippingParents"===e?function(t){var e=Ol(ul(t)),n=["absolute","fixed"].indexOf(sl(t).position)>=0&&qs(t)?hl(t):t;return Ks(n)?e.filter(function(t){return Ks(t)&&ol(t,n)&&"body"!==Gs(t)}):[]}(t):[].concat(e),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(e,n){var i=Ll(t,n,r);return e.top=Js(i.top,e.top),e.right=tl(i.right,e.right),e.bottom=tl(i.bottom,e.bottom),e.left=Js(i.left,e.left),e},Ll(t,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Dl(t){var e,n=t.reference,r=t.element,i=t.placement,a=i?Qs(i):null,o=i?gl(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case Ds:e={x:s,y:n.y-r.height};break;case Ns:e={x:s,y:n.y+n.height};break;case ks:e={x:n.x+n.width,y:l};break;case Ps:e={x:n.x-r.width,y:l};break;default:e={x:n.x,y:n.y}}var c=a?pl(a):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Bs:e[c]=e[c]-(n[u]/2-r[u]/2);break;case Us:e[c]=e[c]+(n[u]/2-r[u]/2)}}return e}function Nl(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,a=n.strategy,o=void 0===a?t.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?js:c,d=n.elementContext,h=void 0===d?Vs:d,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,v=void 0===m?0:m,g=ml("number"!=typeof v?v:vl(v,Hs)),y=h===Vs?"reference":Vs,b=t.rects.popper,E=t.elements[f?y:h],_=Ml(Ks(E)?E:E.contextElement||cl(t.elements.popper),l,u,o),T=il(t.elements.reference),I=Dl({reference:T,element:b,placement:i}),S=Rl(Object.assign({},b,I)),A=h===Vs?S:T,C={top:_.top-A.top+g.top,bottom:A.bottom-_.bottom+g.bottom,left:_.left-A.left+g.left,right:A.right-_.right+g.right},w=t.modifiersData.offset;if(h===Vs&&w){var x=w[i];Object.keys(C).forEach(function(t){var e=[ks,Ns].indexOf(t)>=0?1:-1,n=[Ds,Ns].indexOf(t)>=0?"y":"x";C[t]+=x[n]*e})}return C}function kl(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Pl(t){return[Ds,ks,Ns,Ps].some(function(e){return t[e]>=0})}function Fl(t,e,n){void 0===n&&(n=!1);var r,i,a=qs(e),o=qs(e)&&function(t){var e=t.getBoundingClientRect(),n=el(e.width)/t.offsetWidth||1,r=el(e.height)/t.offsetHeight||1;return 1!==n||1!==r}(e),s=cl(e),l=il(t,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Gs(e)||wl(s))&&(c=(r=e)!==Xs(r)&&qs(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Al(r)),qs(e)?((u=il(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=Cl(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Hl(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}}),r.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||i(t)}),r}var Bl={placement:"bottom",modifiers:[],strategy:"absolute"};function Ul(){for(var t=arguments.length,e=new Array(t),n=0;n=0?-1:1,a="function"==typeof n?n(Object.assign({},e,{placement:t})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Ps,ks].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,e.rects,a),t},{}),s=o[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,v=e.options.placement,g=Qs(v),y=l||(g===v||!f?[Tl(v)]:function(t){if(Qs(t)===Fs)return[];var e=Tl(t);return[Sl(t),e,Sl(e)]}(v)),b=[v].concat(y).reduce(function(t,n){return t.concat(Qs(n)===Fs?function(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ws:l,u=gl(r),d=u?s?$s:$s.filter(function(t){return gl(t)===u}):Hs,h=d.filter(function(t){return c.indexOf(t)>=0});0===h.length&&(h=d);var p=h.reduce(function(e,n){return e[n]=Nl(t,{placement:n,boundary:i,rootBoundary:a,padding:o})[Qs(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}(e,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),E=e.rects.reference,_=e.rects.popper,T=new Map,I=!0,S=b[0],A=0;A=0,R=O?"width":"height",L=Nl(e,{placement:C,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),M=O?x?ks:Ps:x?Ns:Ds;E[R]>_[R]&&(M=Tl(M));var D=Tl(M),N=[];if(a&&N.push(L[w]<=0),s&&N.push(L[M]<=0,L[D]<=0),N.every(function(t){return t})){S=C,I=!1;break}T.set(C,N)}if(I)for(var k=function(t){var e=b.find(function(e){var n=T.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return S=e,"break"},P=f?3:1;P>0;P--){if("break"===k(P))break}e.placement!==S&&(e.modifiersData[r]._skip=!0,e.placement=S,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,v=Nl(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=Qs(e.placement),y=gl(e.placement),b=!y,E=pl(g),_="x"===E?"y":"x",T=e.modifiersData.popperOffsets,I=e.rects.reference,S=e.rects.popper,A="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,C="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),w=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,x={x:0,y:0};if(T){if(a){var O,R="y"===E?Ds:Ps,L="y"===E?Ns:ks,M="y"===E?"height":"width",D=T[E],N=D+v[R],k=D-v[L],P=p?-S[M]/2:0,F=y===Bs?I[M]:S[M],H=y===Bs?-S[M]:-I[M],B=e.elements.arrow,U=p&&B?al(B):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=j[R],$=j[L],W=fl(0,I[M],U[M]),z=b?I[M]/2-P-W-V-C.mainAxis:F-W-V-C.mainAxis,G=b?-I[M]/2+P+W+$+C.mainAxis:H+W+$+C.mainAxis,X=e.elements.arrow&&hl(e.elements.arrow),K=X?"y"===E?X.clientTop||0:X.clientLeft||0:0,q=null!=(O=null==w?void 0:w[E])?O:0,Z=D+G-q,Y=fl(p?tl(N,D+z-q-K):N,D,p?Js(k,Z):k);T[E]=Y,x[E]=Y-D}if(s){var Q,J="x"===E?Ds:Ps,tt="x"===E?Ns:ks,et=T[_],nt="y"===_?"height":"width",rt=et+v[J],it=et-v[tt],at=-1!==[Ds,Ps].indexOf(g),ot=null!=(Q=null==w?void 0:w[_])?Q:0,st=at?rt:et-I[nt]-S[nt]-ot+C.altAxis,lt=at?et+I[nt]+S[nt]-ot-C.altAxis:it,ct=p&&at?(dt=fl(st,et,ut=lt))>ut?ut:dt:fl(p?st:rt,et,p?lt:it);T[_]=ct,x[_]=ct-et}var ut,dt;e.modifiersData[r]=x}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=t.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Qs(n.placement),l=pl(s),c=[Ps,ks].indexOf(s)>=0?"height":"width";if(a&&o){var u=function(t,e){return ml("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:vl(t,Hs))}(i.padding,n),d=al(a),h="y"===l?Ds:Ps,p="y"===l?Ns:ks,f=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],v=hl(a),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=f/2-m/2,b=u[h],E=g-d[c]-u[p],_=g/2-d[c]/2+y,T=fl(b,_,E),I=l;n.modifiersData[r]=((e={})[I]=T,e.centerOffset=T-_,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&ol(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=Nl(e,{elementContext:"reference"}),s=Nl(e,{altBoundary:!0}),l=kl(o,r),c=kl(s,i,a),u=Pl(l),d=Pl(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),$l=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Wl=["difference","intersection","symmetricDifference","union"],zl=!1;const Gl=class extends Set{constructor(t){if(super(),z(this,x),z(this,S,new Map),z(this,A,Ie(0)),z(this,C,Ie(0)),z(this,w,Ln||-1),t){for(var e of t)super.add(e);W(this,C).v=super.size}zl||X(this,x,R).call(this)}has(t){var e=super.has(t),n=W(this,S),r=n.get(t);if(void 0===r){if(!e)return Vn(W(this,A)),!1;r=X(this,x,O).call(this,!0),n.set(t,r)}return Vn(r),e}add(t){return super.has(t)||(super.add(t),Ae(W(this,C),super.size),xe(W(this,A))),this}delete(t){var e=super.delete(t),n=W(this,S),r=n.get(t);return void 0!==r&&(n.delete(t),Ae(r,!1)),e&&(Ae(W(this,C),super.size),xe(W(this,A))),e}clear(){if(0!==super.size){super.clear();var t=W(this,S);for(var e of t.values())Ae(e,!1);t.clear(),Ae(W(this,C),0),xe(W(this,A))}}keys(){return this.values()}values(){return Vn(W(this,A)),super.values()}entries(){return Vn(W(this,A)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return Vn(W(this,C))}};S=new WeakMap,A=new WeakMap,C=new WeakMap,w=new WeakMap,x=new WeakSet,O=function(t){return Ln===W(this,w)?Ie(t):Te(t)},R=function(){zl=!0;var t=Gl.prototype,e=Set.prototype;for(const n of $l)t[n]=function(...t){return Vn(W(this,A)),e[n].apply(this,t)};for(const n of Wl)t[n]=function(...t){Vn(W(this,A));var r=e[n].apply(this,t);return new Gl(r)}};let Xl=Gl;const Kl=class extends Map{constructor(t){if(super(),z(this,k),z(this,L,new Map),z(this,M,Ie(0)),z(this,D,Ie(0)),z(this,N,Ln||-1),t){for(var[e,n]of t)super.set(e,n);W(this,D).v=super.size}}has(t){var e=W(this,L),n=e.get(t);if(void 0===n){if(void 0===super.get(t))return Vn(W(this,M)),!1;n=X(this,k,P).call(this,0),e.set(t,n)}return Vn(n),!0}forEach(t,e){X(this,k,F).call(this),super.forEach(t,e)}get(t){var e=W(this,L),n=e.get(t);if(void 0===n){if(void 0===super.get(t))return void Vn(W(this,M));n=X(this,k,P).call(this,0),e.set(t,n)}return Vn(n),super.get(t)}set(t,e){var n,r=W(this,L),i=r.get(t),a=super.get(t),o=super.set(t,e),s=W(this,M);if(void 0===i)i=X(this,k,P).call(this,0),r.set(t,i),Ae(W(this,D),super.size),xe(s);else if(a!==e){xe(i);var l=null===s.reactions?null:new Set(s.reactions);(null===l||!(null==(n=i.reactions)?void 0:n.every(t=>l.has(t))))&&xe(s)}return o}delete(t){var e=W(this,L),n=e.get(t),r=super.delete(t);return void 0!==n&&(e.delete(t),Ae(W(this,D),super.size),Ae(n,-1),xe(W(this,M))),r}clear(){if(0!==super.size){super.clear();var t=W(this,L);for(var e of(Ae(W(this,D),0),t.values()))Ae(e,-1);xe(W(this,M)),t.clear()}}keys(){return Vn(W(this,M)),super.keys()}values(){return X(this,k,F).call(this),super.values()}entries(){return X(this,k,F).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return Vn(W(this,D)),super.size}};L=new WeakMap,M=new WeakMap,D=new WeakMap,N=new WeakMap,k=new WeakSet,P=function(t){return Ln===W(this,N)?Ie(t):Te(t)},F=function(){Vn(W(this,M));var t=W(this,L);if(W(this,D).v!==t.size)for(var e of((t,e,n)=>U(B(t),n,e))(Kl.prototype,this,"keys").call(this))if(!t.has(e)){var n=X(this,k,P).call(this,0);t.set(e,n)}for([,n]of W(this,L))Vn(n)};let ql=Kl;var Zl,Yl,Ql;(Yl=Zl||(Zl={})).assertEqual=t=>{},Yl.assertIs=function(t){},Yl.assertNever=function(t){throw new Error},Yl.arrayToEnum=t=>{const e={};for(const n of t)e[n]=n;return e},Yl.getValidEnumValues=t=>{const e=Yl.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(const r of e)n[r]=t[r];return Yl.objectValues(n)},Yl.objectValues=t=>Yl.objectKeys(t).map(function(e){return t[e]}),Yl.objectKeys="function"==typeof Object.keys?t=>Object.keys(t):t=>{const e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e},Yl.find=(t,e)=>{for(const n of t)if(e(n))return n},Yl.isInteger="function"==typeof Number.isInteger?t=>Number.isInteger(t):t=>"number"==typeof t&&Number.isFinite(t)&&Math.floor(t)===t,Yl.joinValues=function(t,e=" | "){return t.map(t=>"string"==typeof t?"'".concat(t,"'"):t).join(e)},Yl.jsonStringifyReplacer=(t,e)=>"bigint"==typeof e?e.toString():e,(Ql||(Ql={})).mergeShapes=(t,e)=>({...t,...e});const Jl=Zl.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),tc=t=>{switch(typeof t){case"undefined":return Jl.undefined;case"string":return Jl.string;case"number":return Number.isNaN(t)?Jl.nan:Jl.number;case"boolean":return Jl.boolean;case"function":return Jl.function;case"bigint":return Jl.bigint;case"symbol":return Jl.symbol;case"object":return Array.isArray(t)?Jl.array:null===t?Jl.null:t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch?Jl.promise:"undefined"!=typeof Map&&t instanceof Map?Jl.map:"undefined"!=typeof Set&&t instanceof Set?Jl.set:"undefined"!=typeof Date&&t instanceof Date?Jl.date:Jl.object;default:return Jl.unknown}},ec=Zl.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class nc extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=t}format(t){const e=t||function(t){return t.message},n={_errors:[]},r=t=>{for(const i of t.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(e(i));else{let t=n,r=0;for(;rt.message){const e={},n=[];for(const r of this.issues)if(r.path.length>0){const n=r.path[0];e[n]=e[n]||[],e[n].push(t(r))}else n.push(t(r));return{formErrors:n,fieldErrors:e}}get formErrors(){return this.flatten()}}nc.create=t=>new nc(t);const rc=(t,e)=>{let n;switch(t.code){case ec.invalid_type:n=t.received===Jl.undefined?"Required":"Expected ".concat(t.expected,", received ").concat(t.received);break;case ec.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(t.expected,Zl.jsonStringifyReplacer));break;case ec.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(Zl.joinValues(t.keys,", "));break;case ec.invalid_union:n="Invalid input";break;case ec.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(Zl.joinValues(t.options));break;case ec.invalid_enum_value:n="Invalid enum value. Expected ".concat(Zl.joinValues(t.options),", received '").concat(t.received,"'");break;case ec.invalid_arguments:n="Invalid function arguments";break;case ec.invalid_return_type:n="Invalid function return type";break;case ec.invalid_date:n="Invalid date";break;case ec.invalid_string:"object"==typeof t.validation?"includes"in t.validation?(n='Invalid input: must include "'.concat(t.validation.includes,'"'),"number"==typeof t.validation.position&&(n="".concat(n," at one or more positions greater than or equal to ").concat(t.validation.position))):"startsWith"in t.validation?n='Invalid input: must start with "'.concat(t.validation.startsWith,'"'):"endsWith"in t.validation?n='Invalid input: must end with "'.concat(t.validation.endsWith,'"'):Zl.assertNever(t.validation):n="regex"!==t.validation?"Invalid ".concat(t.validation):"Invalid";break;case ec.too_small:n="array"===t.type?"Array must contain ".concat(t.exact?"exactly":t.inclusive?"at least":"more than"," ").concat(t.minimum," element(s)"):"string"===t.type?"String must contain ".concat(t.exact?"exactly":t.inclusive?"at least":"over"," ").concat(t.minimum," character(s)"):"number"===t.type||"bigint"===t.type?"Number must be ".concat(t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than ").concat(t.minimum):"date"===t.type?"Date must be ".concat(t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(t.minimum))):"Invalid input";break;case ec.too_big:n="array"===t.type?"Array must contain ".concat(t.exact?"exactly":t.inclusive?"at most":"less than"," ").concat(t.maximum," element(s)"):"string"===t.type?"String must contain ".concat(t.exact?"exactly":t.inclusive?"at most":"under"," ").concat(t.maximum," character(s)"):"number"===t.type?"Number must be ".concat(t.exact?"exactly":t.inclusive?"less than or equal to":"less than"," ").concat(t.maximum):"bigint"===t.type?"BigInt must be ".concat(t.exact?"exactly":t.inclusive?"less than or equal to":"less than"," ").concat(t.maximum):"date"===t.type?"Date must be ".concat(t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(t.maximum))):"Invalid input";break;case ec.custom:n="Invalid input";break;case ec.invalid_intersection_types:n="Intersection results could not be merged";break;case ec.not_multiple_of:n="Number must be a multiple of ".concat(t.multipleOf);break;case ec.not_finite:n="Number must be finite";break;default:n=e.defaultError,Zl.assertNever(t)}return{message:n}};let ic=rc;function ac(t,e){const n=ic,r=(t=>{const{data:e,path:n,errorMaps:r,issueData:i}=t,a=[...n,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";const l=r.filter(t=>!!t).slice().reverse();for(const c of l)s=c(o,{data:e,defaultError:s}).message;return{...i,path:a,message:s}})({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===rc?void 0:rc].filter(t=>!!t)});t.common.issues.push(r)}class oc{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(t,e){const n=[];for(const r of e){if("aborted"===r.status)return sc;"dirty"===r.status&&t.dirty(),n.push(r.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,e){const n=[];for(const r of e){const t=await r.key,e=await r.value;n.push({key:t,value:e})}return oc.mergeObjectSync(t,n)}static mergeObjectSync(t,e){const n={};for(const r of e){const{key:e,value:i}=r;if("aborted"===e.status)return sc;if("aborted"===i.status)return sc;"dirty"===e.status&&t.dirty(),"dirty"===i.status&&t.dirty(),"__proto__"===e.value||void 0===i.value&&!r.alwaysSet||(n[e.value]=i.value)}return{status:t.value,value:n}}}const sc=Object.freeze({status:"aborted"}),lc=t=>({status:"dirty",value:t}),cc=t=>({status:"valid",value:t}),uc=t=>"aborted"===t.status,dc=t=>"dirty"===t.status,hc=t=>"valid"===t.status,pc=t=>"undefined"!=typeof Promise&&t instanceof Promise;var fc,mc;(mc=fc||(fc={})).errToObj=t=>"string"==typeof t?{message:t}:t||{},mc.toString=t=>"string"==typeof t?t:null==t?void 0:t.message;class vc{constructor(t,e,n,r){this._cachedPath=[],this.parent=t,this.data=e,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const gc=(t,e)=>{if(hc(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new nc(t.common.issues);return this._error=e,this._error}}};function yc(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:i}=t;if(e&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(e)return{errorMap:e,description:i};return{errorMap:(e,i)=>{var a,o;const{message:s}=t;return"invalid_enum_value"===e.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!=(a=null!=s?s:r)?a:i.defaultError}:"invalid_type"!==e.code?{message:i.defaultError}:{message:null!=(o=null!=s?s:n)?o:i.defaultError}},description:i}}class bc{get description(){return this._def.description}_getType(t){return tc(t.data)}_getOrReturnCtx(t,e){return e||{common:t.parent.common,data:t.data,parsedType:tc(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new oc,ctx:{common:t.parent.common,data:t.data,parsedType:tc(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const e=this._parse(t);if(pc(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(t){const e=this._parse(t);return Promise.resolve(e)}parse(t,e){const n=this.safeParse(t,e);if(n.success)return n.data;throw n.error}safeParse(t,e){var n;const r={common:{issues:[],async:null!=(n=null==e?void 0:e.async)&&n,contextualErrorMap:null==e?void 0:e.errorMap},path:(null==e?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:tc(t)},i=this._parseSync({data:t,path:r.path,parent:r});return gc(r,i)}"~validate"(t){var e,n;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:tc(t)};if(!this["~standard"].async)try{const e=this._parseSync({data:t,path:[],parent:r});return hc(e)?{value:e.value}:{issues:r.common.issues}}catch(i){(null==(n=null==(e=null==i?void 0:i.message)?void 0:e.toLowerCase())?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(t=>hc(t)?{value:t.value}:{issues:r.common.issues})}async parseAsync(t,e){const n=await this.safeParseAsync(t,e);if(n.success)return n.data;throw n.error}async safeParseAsync(t,e){const n={common:{issues:[],contextualErrorMap:null==e?void 0:e.errorMap,async:!0},path:(null==e?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:tc(t)},r=this._parse({data:t,path:n.path,parent:n}),i=await(pc(r)?r:Promise.resolve(r));return gc(n,i)}refine(t,e){const n=t=>"string"==typeof e||void 0===e?{message:e}:"function"==typeof e?e(t):e;return this._refinement((e,r)=>{const i=t(e),a=()=>r.addIssue({code:ec.custom,...n(e)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(t=>!!t||(a(),!1)):!!i||(a(),!1)})}refinement(t,e){return this._refinement((n,r)=>!!t(n)||(r.addIssue("function"==typeof e?e(n,r):e),!1))}_refinement(t){return new gu({schema:this,typeName:Cu.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return yu.create(this,this._def)}nullable(){return bu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return nu.create(this)}promise(){return vu.create(this,this._def)}or(t){return au.create([this,t],this._def)}and(t){return su.create(this,t,this._def)}transform(t){return new gu({...yc(this._def),schema:this,typeName:Cu.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const e="function"==typeof t?t:()=>t;return new Eu({...yc(this._def),innerType:this,defaultValue:e,typeName:Cu.ZodDefault})}brand(){return new Iu({typeName:Cu.ZodBranded,type:this,...yc(this._def)})}catch(t){const e="function"==typeof t?t:()=>t;return new _u({...yc(this._def),innerType:this,catchValue:e,typeName:Cu.ZodCatch})}describe(t){return new(0,this.constructor)({...this._def,description:t})}pipe(t){return Su.create(this,t)}readonly(){return Au.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ec=/^c[^\s-]{8,}$/i,_c=/^[0-9a-z]+$/,Tc=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Ic=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Sc=/^[a-z0-9_-]{21}$/i,Ac=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Cc=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,wc=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let xc;const Oc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Rc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Lc=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Mc=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Dc=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Nc=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,kc="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Pc=new RegExp("^".concat(kc,"$"));function Fc(t){let e="[0-5]\\d";t.precision?e="".concat(e,"\\.\\d{").concat(t.precision,"}"):null==t.precision&&(e="".concat(e,"(\\.\\d+)?"));const n=t.precision?"+":"?";return"([01]\\d|2[0-3]):[0-5]\\d(:".concat(e,")").concat(n)}function Hc(t){return new RegExp("^".concat(Fc(t),"$"))}function Bc(t){let e="".concat(kc,"T").concat(Fc(t));const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e="".concat(e,"(").concat(n.join("|"),")"),new RegExp("^".concat(e,"$"))}function Uc(t,e){return!("v4"!==e&&e||!Oc.test(t))||!("v6"!==e&&e||!Lc.test(t))}function jc(t,e){if(!Ac.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return"object"==typeof i&&null!==i&&((!("typ"in i)||"JWT"===(null==i?void 0:i.typ))&&(!!i.alg&&(!e||i.alg===e)))}catch(Sd){return!1}}function Vc(t,e){return!("v4"!==e&&e||!Rc.test(t))||!("v6"!==e&&e||!Mc.test(t))}class $c extends bc{_parse(t){this._def.coerce&&(t.data=String(t.data));if(this._getType(t)!==Jl.string){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.string,received:e.parsedType}),sc}const e=new oc;let n;for(const r of this._def.checks)if("min"===r.kind)t.data.lengthr.value&&(n=this._getOrReturnCtx(t,n),ac(n,{code:ec.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),e.dirty());else if("length"===r.kind){const i=t.data.length>r.value,a=t.data.lengtht.test(e),{validation:e,code:ec.invalid_string,...fc.errToObj(n)})}_addCheck(t){return new $c({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...fc.errToObj(t)})}url(t){return this._addCheck({kind:"url",...fc.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...fc.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...fc.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...fc.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...fc.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...fc.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...fc.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...fc.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...fc.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...fc.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...fc.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...fc.errToObj(t)})}datetime(t){var e,n;return"string"==typeof t?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:void 0===(null==t?void 0:t.precision)?null:null==t?void 0:t.precision,offset:null!=(e=null==t?void 0:t.offset)&&e,local:null!=(n=null==t?void 0:t.local)&&n,...fc.errToObj(null==t?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return"string"==typeof t?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:void 0===(null==t?void 0:t.precision)?null:null==t?void 0:t.precision,...fc.errToObj(null==t?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...fc.errToObj(t)})}regex(t,e){return this._addCheck({kind:"regex",regex:t,...fc.errToObj(e)})}includes(t,e){return this._addCheck({kind:"includes",value:t,position:null==e?void 0:e.position,...fc.errToObj(null==e?void 0:e.message)})}startsWith(t,e){return this._addCheck({kind:"startsWith",value:t,...fc.errToObj(e)})}endsWith(t,e){return this._addCheck({kind:"endsWith",value:t,...fc.errToObj(e)})}min(t,e){return this._addCheck({kind:"min",value:t,...fc.errToObj(e)})}max(t,e){return this._addCheck({kind:"max",value:t,...fc.errToObj(e)})}length(t,e){return this._addCheck({kind:"length",value:t,...fc.errToObj(e)})}nonempty(t){return this.min(1,fc.errToObj(t))}trim(){return new $c({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new $c({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new $c({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>"datetime"===t.kind)}get isDate(){return!!this._def.checks.find(t=>"date"===t.kind)}get isTime(){return!!this._def.checks.find(t=>"time"===t.kind)}get isDuration(){return!!this._def.checks.find(t=>"duration"===t.kind)}get isEmail(){return!!this._def.checks.find(t=>"email"===t.kind)}get isURL(){return!!this._def.checks.find(t=>"url"===t.kind)}get isEmoji(){return!!this._def.checks.find(t=>"emoji"===t.kind)}get isUUID(){return!!this._def.checks.find(t=>"uuid"===t.kind)}get isNANOID(){return!!this._def.checks.find(t=>"nanoid"===t.kind)}get isCUID(){return!!this._def.checks.find(t=>"cuid"===t.kind)}get isCUID2(){return!!this._def.checks.find(t=>"cuid2"===t.kind)}get isULID(){return!!this._def.checks.find(t=>"ulid"===t.kind)}get isIP(){return!!this._def.checks.find(t=>"ip"===t.kind)}get isCIDR(){return!!this._def.checks.find(t=>"cidr"===t.kind)}get isBase64(){return!!this._def.checks.find(t=>"base64"===t.kind)}get isBase64url(){return!!this._def.checks.find(t=>"base64url"===t.kind)}get minLength(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxLength(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.valuer?n:r;return Number.parseInt(t.toFixed(i).replace(".",""))%Number.parseInt(e.toFixed(i).replace(".",""))/10**i}$c.create=t=>{var e;return new $c({checks:[],typeName:Cu.ZodString,coerce:null!=(e=null==t?void 0:t.coerce)&&e,...yc(t)})};class zc extends bc{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){this._def.coerce&&(t.data=Number(t.data));if(this._getType(t)!==Jl.number){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.number,received:e.parsedType}),sc}let e;const n=new oc;for(const r of this._def.checks)if("int"===r.kind)Zl.isInteger(t.data)||(e=this._getOrReturnCtx(t,e),ac(e,{code:ec.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty());else if("min"===r.kind){(r.inclusive?t.datar.value:t.data>=r.value)&&(e=this._getOrReturnCtx(t,e),ac(e,{code:ec.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else"multipleOf"===r.kind?0!==Wc(t.data,r.value)&&(e=this._getOrReturnCtx(t,e),ac(e,{code:ec.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(t.data)||(e=this._getOrReturnCtx(t,e),ac(e,{code:ec.not_finite,message:r.message}),n.dirty()):Zl.assertNever(r);return{status:n.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,fc.toString(e))}gt(t,e){return this.setLimit("min",t,!1,fc.toString(e))}lte(t,e){return this.setLimit("max",t,!0,fc.toString(e))}lt(t,e){return this.setLimit("max",t,!1,fc.toString(e))}setLimit(t,e,n,r){return new zc({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:n,message:fc.toString(r)}]})}_addCheck(t){return new zc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:fc.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:fc.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:fc.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:fc.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:fc.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:fc.toString(e)})}finite(t){return this._addCheck({kind:"finite",message:fc.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:fc.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:fc.toString(t)})}get minValue(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.value"int"===t.kind||"multipleOf"===t.kind&&Zl.isInteger(t.value))}get isFinite(){let t=null,e=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===e||n.value>e)&&(e=n.value):"max"===n.kind&&(null===t||n.valuenew zc({checks:[],typeName:Cu.ZodNumber,coerce:(null==t?void 0:t.coerce)||!1,...yc(t)});class Gc extends bc{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch(Sd){return this._getInvalidInput(t)}if(this._getType(t)!==Jl.bigint)return this._getInvalidInput(t);let e;const n=new oc;for(const r of this._def.checks)if("min"===r.kind){(r.inclusive?t.datar.value:t.data>=r.value)&&(e=this._getOrReturnCtx(t,e),ac(e,{code:ec.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else"multipleOf"===r.kind?t.data%r.value!==BigInt(0)&&(e=this._getOrReturnCtx(t,e),ac(e,{code:ec.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):Zl.assertNever(r);return{status:n.value,value:t.data}}_getInvalidInput(t){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.bigint,received:e.parsedType}),sc}gte(t,e){return this.setLimit("min",t,!0,fc.toString(e))}gt(t,e){return this.setLimit("min",t,!1,fc.toString(e))}lte(t,e){return this.setLimit("max",t,!0,fc.toString(e))}lt(t,e){return this.setLimit("max",t,!1,fc.toString(e))}setLimit(t,e,n,r){return new Gc({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:n,message:fc.toString(r)}]})}_addCheck(t){return new Gc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:fc.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:fc.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:fc.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:fc.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:fc.toString(e)})}get minValue(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.value{var e;return new Gc({checks:[],typeName:Cu.ZodBigInt,coerce:null!=(e=null==t?void 0:t.coerce)&&e,...yc(t)})};class Xc extends bc{_parse(t){this._def.coerce&&(t.data=Boolean(t.data));if(this._getType(t)!==Jl.boolean){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.boolean,received:e.parsedType}),sc}return cc(t.data)}}Xc.create=t=>new Xc({typeName:Cu.ZodBoolean,coerce:(null==t?void 0:t.coerce)||!1,...yc(t)});class Kc extends bc{_parse(t){this._def.coerce&&(t.data=new Date(t.data));if(this._getType(t)!==Jl.date){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.date,received:e.parsedType}),sc}if(Number.isNaN(t.data.getTime())){return ac(this._getOrReturnCtx(t),{code:ec.invalid_date}),sc}const e=new oc;let n;for(const r of this._def.checks)"min"===r.kind?t.data.getTime()r.value&&(n=this._getOrReturnCtx(t,n),ac(n,{code:ec.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),e.dirty()):Zl.assertNever(r);return{status:e.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Kc({...this._def,checks:[...this._def.checks,t]})}min(t,e){return this._addCheck({kind:"min",value:t.getTime(),message:fc.toString(e)})}max(t,e){return this._addCheck({kind:"max",value:t.getTime(),message:fc.toString(e)})}get minDate(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return null!=t?new Date(t):null}get maxDate(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.valuenew Kc({checks:[],coerce:(null==t?void 0:t.coerce)||!1,typeName:Cu.ZodDate,...yc(t)});class qc extends bc{_parse(t){if(this._getType(t)!==Jl.symbol){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.symbol,received:e.parsedType}),sc}return cc(t.data)}}qc.create=t=>new qc({typeName:Cu.ZodSymbol,...yc(t)});class Zc extends bc{_parse(t){if(this._getType(t)!==Jl.undefined){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.undefined,received:e.parsedType}),sc}return cc(t.data)}}Zc.create=t=>new Zc({typeName:Cu.ZodUndefined,...yc(t)});class Yc extends bc{_parse(t){if(this._getType(t)!==Jl.null){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.null,received:e.parsedType}),sc}return cc(t.data)}}Yc.create=t=>new Yc({typeName:Cu.ZodNull,...yc(t)});class Qc extends bc{constructor(){super(...arguments),this._any=!0}_parse(t){return cc(t.data)}}Qc.create=t=>new Qc({typeName:Cu.ZodAny,...yc(t)});class Jc extends bc{constructor(){super(...arguments),this._unknown=!0}_parse(t){return cc(t.data)}}Jc.create=t=>new Jc({typeName:Cu.ZodUnknown,...yc(t)});class tu extends bc{_parse(t){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.never,received:e.parsedType}),sc}}tu.create=t=>new tu({typeName:Cu.ZodNever,...yc(t)});class eu extends bc{_parse(t){if(this._getType(t)!==Jl.undefined){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.void,received:e.parsedType}),sc}return cc(t.data)}}eu.create=t=>new eu({typeName:Cu.ZodVoid,...yc(t)});class nu extends bc{_parse(t){const{ctx:e,status:n}=this._processInputParams(t),r=this._def;if(e.parsedType!==Jl.array)return ac(e,{code:ec.invalid_type,expected:Jl.array,received:e.parsedType}),sc;if(null!==r.exactLength){const t=e.data.length>r.exactLength.value,i=e.data.lengthr.maxLength.value&&(ac(e,{code:ec.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),e.common.async)return Promise.all([...e.data].map((t,n)=>r.type._parseAsync(new vc(e,t,e.path,n)))).then(t=>oc.mergeArray(n,t));const i=[...e.data].map((t,n)=>r.type._parseSync(new vc(e,t,e.path,n)));return oc.mergeArray(n,i)}get element(){return this._def.type}min(t,e){return new nu({...this._def,minLength:{value:t,message:fc.toString(e)}})}max(t,e){return new nu({...this._def,maxLength:{value:t,message:fc.toString(e)}})}length(t,e){return new nu({...this._def,exactLength:{value:t,message:fc.toString(e)}})}nonempty(t){return this.min(1,t)}}function ru(t){if(t instanceof iu){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=yu.create(ru(r))}return new iu({...t._def,shape:()=>e})}return t instanceof nu?new nu({...t._def,type:ru(t.element)}):t instanceof yu?yu.create(ru(t.unwrap())):t instanceof bu?bu.create(ru(t.unwrap())):t instanceof lu?lu.create(t.items.map(t=>ru(t))):t}nu.create=(t,e)=>new nu({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Cu.ZodArray,...yc(e)});class iu extends bc{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const t=this._def.shape(),e=Zl.objectKeys(t);return this._cached={shape:t,keys:e},this._cached}_parse(t){if(this._getType(t)!==Jl.object){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.object,received:e.parsedType}),sc}const{status:e,ctx:n}=this._processInputParams(t),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof tu&&"strip"===this._def.unknownKeys))for(const s in n.data)i.includes(s)||a.push(s);const o=[];for(const s of i){const t=r[s],e=n.data[s];o.push({key:{status:"valid",value:s},value:t._parse(new vc(n,e,n.path,s)),alwaysSet:s in n.data})}if(this._def.catchall instanceof tu){const t=this._def.unknownKeys;if("passthrough"===t)for(const e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===t)a.length>0&&(ac(n,{code:ec.unrecognized_keys,keys:a}),e.dirty());else if("strip"!==t)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const t=this._def.catchall;for(const e of a){const r=n.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new vc(n,r,n.path,e)),alwaysSet:e in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const t=[];for(const e of o){const n=await e.key,r=await e.value;t.push({key:n,value:r,alwaysSet:e.alwaysSet})}return t}).then(t=>oc.mergeObjectSync(e,t)):oc.mergeObjectSync(e,o)}get shape(){return this._def.shape()}strict(t){return fc.errToObj,new iu({...this._def,unknownKeys:"strict",...void 0!==t?{errorMap:(e,n)=>{var r,i,a,o;const s=null!=(a=null==(i=(r=this._def).errorMap)?void 0:i.call(r,e,n).message)?a:n.defaultError;return"unrecognized_keys"===e.code?{message:null!=(o=fc.errToObj(t).message)?o:s}:{message:s}}}:{}})}strip(){return new iu({...this._def,unknownKeys:"strip"})}passthrough(){return new iu({...this._def,unknownKeys:"passthrough"})}extend(t){return new iu({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new iu({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Cu.ZodObject})}setKey(t,e){return this.augment({[t]:e})}catchall(t){return new iu({...this._def,catchall:t})}pick(t){const e={};for(const n of Zl.objectKeys(t))t[n]&&this.shape[n]&&(e[n]=this.shape[n]);return new iu({...this._def,shape:()=>e})}omit(t){const e={};for(const n of Zl.objectKeys(this.shape))t[n]||(e[n]=this.shape[n]);return new iu({...this._def,shape:()=>e})}deepPartial(){return ru(this)}partial(t){const e={};for(const n of Zl.objectKeys(this.shape)){const r=this.shape[n];t&&!t[n]?e[n]=r:e[n]=r.optional()}return new iu({...this._def,shape:()=>e})}required(t){const e={};for(const n of Zl.objectKeys(this.shape))if(t&&!t[n])e[n]=this.shape[n];else{let t=this.shape[n];for(;t instanceof yu;)t=t._def.innerType;e[n]=t}return new iu({...this._def,shape:()=>e})}keyof(){return pu(Zl.objectKeys(this.shape))}}iu.create=(t,e)=>new iu({shape:()=>t,unknownKeys:"strip",catchall:tu.create(),typeName:Cu.ZodObject,...yc(e)}),iu.strictCreate=(t,e)=>new iu({shape:()=>t,unknownKeys:"strict",catchall:tu.create(),typeName:Cu.ZodObject,...yc(e)}),iu.lazycreate=(t,e)=>new iu({shape:t,unknownKeys:"strip",catchall:tu.create(),typeName:Cu.ZodObject,...yc(e)});class au extends bc{_parse(t){const{ctx:e}=this._processInputParams(t),n=this._def.options;if(e.common.async)return Promise.all(n.map(async t=>{const n={...e,common:{...e.common,issues:[]},parent:null};return{result:await t._parseAsync({data:e.data,path:e.path,parent:n}),ctx:n}})).then(function(t){for(const e of t)if("valid"===e.result.status)return e.result;for(const r of t)if("dirty"===r.result.status)return e.common.issues.push(...r.ctx.common.issues),r.result;const n=t.map(t=>new nc(t.ctx.common.issues));return ac(e,{code:ec.invalid_union,unionErrors:n}),sc});{let t;const r=[];for(const a of n){const n={...e,common:{...e.common,issues:[]},parent:null},i=a._parseSync({data:e.data,path:e.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||t||(t={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(t)return e.common.issues.push(...t.ctx.common.issues),t.result;const i=r.map(t=>new nc(t));return ac(e,{code:ec.invalid_union,unionErrors:i}),sc}}get options(){return this._def.options}}function ou(t,e){const n=tc(t),r=tc(e);if(t===e)return{valid:!0,data:t};if(n===Jl.object&&r===Jl.object){const n=Zl.objectKeys(e),r=Zl.objectKeys(t).filter(t=>-1!==n.indexOf(t)),i={...t,...e};for(const a of r){const n=ou(t[a],e[a]);if(!n.valid)return{valid:!1};i[a]=n.data}return{valid:!0,data:i}}if(n===Jl.array&&r===Jl.array){if(t.length!==e.length)return{valid:!1};const n=[];for(let r=0;rnew au({options:t,typeName:Cu.ZodUnion,...yc(e)});class su extends bc{_parse(t){const{status:e,ctx:n}=this._processInputParams(t),r=(t,r)=>{if(uc(t)||uc(r))return sc;const i=ou(t.value,r.value);return i.valid?((dc(t)||dc(r))&&e.dirty(),{status:e.value,value:i.data}):(ac(n,{code:ec.invalid_intersection_types}),sc)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([t,e])=>r(t,e)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}su.create=(t,e,n)=>new su({left:t,right:e,typeName:Cu.ZodIntersection,...yc(n)});class lu extends bc{_parse(t){const{status:e,ctx:n}=this._processInputParams(t);if(n.parsedType!==Jl.array)return ac(n,{code:ec.invalid_type,expected:Jl.array,received:n.parsedType}),sc;if(n.data.lengththis._def.items.length&&(ac(n,{code:ec.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const r=[...n.data].map((t,e)=>{const r=this._def.items[e]||this._def.rest;return r?r._parse(new vc(n,t,n.path,e)):null}).filter(t=>!!t);return n.common.async?Promise.all(r).then(t=>oc.mergeArray(e,t)):oc.mergeArray(e,r)}get items(){return this._def.items}rest(t){return new lu({...this._def,rest:t})}}lu.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new lu({items:t,typeName:Cu.ZodTuple,rest:null,...yc(e)})};class cu extends bc{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:e,ctx:n}=this._processInputParams(t);if(n.parsedType!==Jl.map)return ac(n,{code:ec.invalid_type,expected:Jl.map,received:n.parsedType}),sc;const r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([t,e],a)=>({key:r._parse(new vc(n,t,n.path,[a,"key"])),value:i._parse(new vc(n,e,n.path,[a,"value"]))}));if(n.common.async){const t=new Map;return Promise.resolve().then(async()=>{for(const n of a){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return sc;"dirty"!==r.status&&"dirty"!==i.status||e.dirty(),t.set(r.value,i.value)}return{status:e.value,value:t}})}{const t=new Map;for(const n of a){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return sc;"dirty"!==r.status&&"dirty"!==i.status||e.dirty(),t.set(r.value,i.value)}return{status:e.value,value:t}}}}cu.create=(t,e,n)=>new cu({valueType:e,keyType:t,typeName:Cu.ZodMap,...yc(n)});class uu extends bc{_parse(t){const{status:e,ctx:n}=this._processInputParams(t);if(n.parsedType!==Jl.set)return ac(n,{code:ec.invalid_type,expected:Jl.set,received:n.parsedType}),sc;const r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(ac(n,{code:ec.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),e.dirty());const i=this._def.valueType;function a(t){const n=new Set;for(const r of t){if("aborted"===r.status)return sc;"dirty"===r.status&&e.dirty(),n.add(r.value)}return{status:e.value,value:n}}const o=[...n.data.values()].map((t,e)=>i._parse(new vc(n,t,n.path,e)));return n.common.async?Promise.all(o).then(t=>a(t)):a(o)}min(t,e){return new uu({...this._def,minSize:{value:t,message:fc.toString(e)}})}max(t,e){return new uu({...this._def,maxSize:{value:t,message:fc.toString(e)}})}size(t,e){return this.min(t,e).max(t,e)}nonempty(t){return this.min(1,t)}}uu.create=(t,e)=>new uu({valueType:t,minSize:null,maxSize:null,typeName:Cu.ZodSet,...yc(e)});class du extends bc{get schema(){return this._def.getter()}_parse(t){const{ctx:e}=this._processInputParams(t);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}du.create=(t,e)=>new du({getter:t,typeName:Cu.ZodLazy,...yc(e)});class hu extends bc{_parse(t){if(t.data!==this._def.value){const e=this._getOrReturnCtx(t);return ac(e,{received:e.data,code:ec.invalid_literal,expected:this._def.value}),sc}return{status:"valid",value:t.data}}get value(){return this._def.value}}function pu(t,e){return new fu({values:t,typeName:Cu.ZodEnum,...yc(e)})}hu.create=(t,e)=>new hu({value:t,typeName:Cu.ZodLiteral,...yc(e)});class fu extends bc{_parse(t){if("string"!=typeof t.data){const e=this._getOrReturnCtx(t),n=this._def.values;return ac(e,{expected:Zl.joinValues(n),received:e.parsedType,code:ec.invalid_type}),sc}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const e=this._getOrReturnCtx(t),n=this._def.values;return ac(e,{received:e.data,code:ec.invalid_enum_value,options:n}),sc}return cc(t.data)}get options(){return this._def.values}get enum(){const t={};for(const e of this._def.values)t[e]=e;return t}get Values(){const t={};for(const e of this._def.values)t[e]=e;return t}get Enum(){const t={};for(const e of this._def.values)t[e]=e;return t}extract(t,e=this._def){return fu.create(t,{...this._def,...e})}exclude(t,e=this._def){return fu.create(this.options.filter(e=>!t.includes(e)),{...this._def,...e})}}fu.create=pu;class mu extends bc{_parse(t){const e=Zl.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Jl.string&&n.parsedType!==Jl.number){const t=Zl.objectValues(e);return ac(n,{expected:Zl.joinValues(t),received:n.parsedType,code:ec.invalid_type}),sc}if(this._cache||(this._cache=new Set(Zl.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const t=Zl.objectValues(e);return ac(n,{received:n.data,code:ec.invalid_enum_value,options:t}),sc}return cc(t.data)}get enum(){return this._def.values}}mu.create=(t,e)=>new mu({values:t,typeName:Cu.ZodNativeEnum,...yc(e)});class vu extends bc{unwrap(){return this._def.type}_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==Jl.promise&&!1===e.common.async)return ac(e,{code:ec.invalid_type,expected:Jl.promise,received:e.parsedType}),sc;const n=e.parsedType===Jl.promise?e.data:Promise.resolve(e.data);return cc(n.then(t=>this._def.type.parseAsync(t,{path:e.path,errorMap:e.common.contextualErrorMap})))}}vu.create=(t,e)=>new vu({type:t,typeName:Cu.ZodPromise,...yc(e)});class gu extends bc{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Cu.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:e,ctx:n}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:t=>{ac(n,t),t.fatal?e.abort():e.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){const t=r.transform(n.data,i);if(n.common.async)return Promise.resolve(t).then(async t=>{if("aborted"===e.value)return sc;const r=await this._def.schema._parseAsync({data:t,path:n.path,parent:n});return"aborted"===r.status?sc:"dirty"===r.status||"dirty"===e.value?lc(r.value):r});{if("aborted"===e.value)return sc;const r=this._def.schema._parseSync({data:t,path:n.path,parent:n});return"aborted"===r.status?sc:"dirty"===r.status||"dirty"===e.value?lc(r.value):r}}if("refinement"===r.type){const t=t=>{const e=r.refinement(t,i);if(n.common.async)return Promise.resolve(e);if(e instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return t};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?sc:("dirty"===r.status&&e.dirty(),t(r.value),{status:e.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?sc:("dirty"===n.status&&e.dirty(),t(n.value).then(()=>({status:e.value,value:n.value}))))}if("transform"===r.type){if(!1===n.common.async){const t=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!hc(t))return sc;const a=r.transform(t.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(t=>hc(t)?Promise.resolve(r.transform(t.value,i)).then(t=>({status:e.value,value:t})):sc)}Zl.assertNever(r)}}gu.create=(t,e,n)=>new gu({schema:t,typeName:Cu.ZodEffects,effect:e,...yc(n)}),gu.createWithPreprocess=(t,e,n)=>new gu({schema:e,effect:{type:"preprocess",transform:t},typeName:Cu.ZodEffects,...yc(n)});class yu extends bc{_parse(t){return this._getType(t)===Jl.undefined?cc(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}yu.create=(t,e)=>new yu({innerType:t,typeName:Cu.ZodOptional,...yc(e)});class bu extends bc{_parse(t){return this._getType(t)===Jl.null?cc(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bu.create=(t,e)=>new bu({innerType:t,typeName:Cu.ZodNullable,...yc(e)});class Eu extends bc{_parse(t){const{ctx:e}=this._processInputParams(t);let n=e.data;return e.parsedType===Jl.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Eu.create=(t,e)=>new Eu({innerType:t,typeName:Cu.ZodDefault,defaultValue:"function"==typeof e.default?e.default:()=>e.default,...yc(e)});class _u extends bc{_parse(t){const{ctx:e}=this._processInputParams(t),n={...e,common:{...e.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return pc(r)?r.then(t=>({status:"valid",value:"valid"===t.status?t.value:this._def.catchValue({get error(){return new nc(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new nc(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}_u.create=(t,e)=>new _u({innerType:t,typeName:Cu.ZodCatch,catchValue:"function"==typeof e.catch?e.catch:()=>e.catch,...yc(e)});class Tu extends bc{_parse(t){if(this._getType(t)!==Jl.nan){const e=this._getOrReturnCtx(t);return ac(e,{code:ec.invalid_type,expected:Jl.nan,received:e.parsedType}),sc}return{status:"valid",value:t.data}}}Tu.create=t=>new Tu({typeName:Cu.ZodNaN,...yc(t)});class Iu extends bc{_parse(t){const{ctx:e}=this._processInputParams(t),n=e.data;return this._def.type._parse({data:n,path:e.path,parent:e})}unwrap(){return this._def.type}}class Su extends bc{_parse(t){const{status:e,ctx:n}=this._processInputParams(t);if(n.common.async){return(async()=>{const t=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===t.status?sc:"dirty"===t.status?(e.dirty(),lc(t.value)):this._def.out._parseAsync({data:t.value,path:n.path,parent:n})})()}{const t=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===t.status?sc:"dirty"===t.status?(e.dirty(),{status:"dirty",value:t.value}):this._def.out._parseSync({data:t.value,path:n.path,parent:n})}}static create(t,e){return new Su({in:t,out:e,typeName:Cu.ZodPipeline})}}class Au extends bc{_parse(t){const e=this._def.innerType._parse(t),n=t=>(hc(t)&&(t.value=Object.freeze(t.value)),t);return pc(e)?e.then(t=>n(t)):n(e)}unwrap(){return this._def.innerType}}var Cu,wu;Au.create=(t,e)=>new Au({innerType:t,typeName:Cu.ZodReadonly,...yc(e)}),(wu=Cu||(Cu={})).ZodString="ZodString",wu.ZodNumber="ZodNumber",wu.ZodNaN="ZodNaN",wu.ZodBigInt="ZodBigInt",wu.ZodBoolean="ZodBoolean",wu.ZodDate="ZodDate",wu.ZodSymbol="ZodSymbol",wu.ZodUndefined="ZodUndefined",wu.ZodNull="ZodNull",wu.ZodAny="ZodAny",wu.ZodUnknown="ZodUnknown",wu.ZodNever="ZodNever",wu.ZodVoid="ZodVoid",wu.ZodArray="ZodArray",wu.ZodObject="ZodObject",wu.ZodUnion="ZodUnion",wu.ZodDiscriminatedUnion="ZodDiscriminatedUnion",wu.ZodIntersection="ZodIntersection",wu.ZodTuple="ZodTuple",wu.ZodRecord="ZodRecord",wu.ZodMap="ZodMap",wu.ZodSet="ZodSet",wu.ZodFunction="ZodFunction",wu.ZodLazy="ZodLazy",wu.ZodLiteral="ZodLiteral",wu.ZodEnum="ZodEnum",wu.ZodEffects="ZodEffects",wu.ZodNativeEnum="ZodNativeEnum",wu.ZodOptional="ZodOptional",wu.ZodNullable="ZodNullable",wu.ZodDefault="ZodDefault",wu.ZodCatch="ZodCatch",wu.ZodPromise="ZodPromise",wu.ZodBranded="ZodBranded",wu.ZodPipeline="ZodPipeline",wu.ZodReadonly="ZodReadonly",$c.create,zc.create,Gc.create,Xc.create,Kc.create,tu.create;const xu=nu.create,Ou=iu.create;au.create,su.create,lu.create,fu.create,vu.create,yu.create,bu.create;const Ru=gu.createWithPreprocess,Lu={string:t=>$c.create({...t,coerce:!0}),number:t=>zc.create({...t,coerce:!0}),boolean:t=>Xc.create({...t,coerce:!0}),bigint:t=>Gc.create({...t,coerce:!0}),date:t=>Kc.create({...t,coerce:!0})};const Mu=(()=>{let t=0;return()=>(t+=1,"u".concat("0000".concat((Math.random()*36**4|0).toString(36)).slice(-4)).concat(t))})();function Du(t){const e=[];for(let n=0,r=t.length;n{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>e(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}async function Uu(t,e,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width","".concat(e)),i.setAttribute("height","".concat(n)),i.setAttribute("viewBox","0 0 ".concat(e," ").concat(n)),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(t),async function(t){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(t)).then(encodeURIComponent).then(t=>"data:image/svg+xml;charset=utf-8,".concat(t))}(i)}const ju=(t,e)=>{if(t instanceof e)return!0;const n=Object.getPrototypeOf(t);return null!==n&&(n.constructor.name===e.name||ju(n,e))};function Vu(t,e,n,r){const i=".".concat(t,":").concat(e),a=n.cssText?function(t){const e=t.getPropertyValue("content");return"".concat(t.cssText," content: '").concat(e.replace(/'|"/g,""),"';")}(n):function(t,e){return ku(e).map(e=>{const n=t.getPropertyValue(e),r=t.getPropertyPriority(e);return"".concat(e,": ").concat(n).concat(r?" !important":"",";")}).join(" ")}(n,r);return document.createTextNode("".concat(i,"{").concat(a,"}"))}function $u(t,e,n,r){const i=window.getComputedStyle(t,n),a=i.getPropertyValue("content");if(""===a||"none"===a)return;const o=Mu();try{e.className="".concat(e.className," ").concat(o)}catch(l){return}const s=document.createElement("style");s.appendChild(Vu(o,n,i,r)),e.appendChild(s)}const Wu="application/font-woff",zu="image/jpeg",Gu={woff:Wu,woff2:Wu,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:zu,jpeg:zu,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Xu(t){const e=function(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}(t).toLowerCase();return Gu[e]||""}function Ku(t){return-1!==t.search(/^(data:)/)}async function qu(t,e,n){const r=await fetch(t,e);if(404===r.status)throw new Error('Resource "'.concat(r.url,'" not found'));const i=await r.blob();return new Promise((t,e)=>{const a=new FileReader;a.onerror=e,a.onloadend=()=>{try{t(n({res:r,result:a.result}))}catch(i){e(i)}},a.readAsDataURL(i)})}const Zu={};async function Yu(t,e,n){const r=function(t,e,n){let r=t.replace(/\?.*/,"");return n&&(r=t),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),e?"[".concat(e,"]").concat(r):r}(t,e,n.includeQueryParams);if(null!=Zu[r])return Zu[r];let i;n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());try{const r=await qu(t,n.fetchRequestInit,({res:t,result:n})=>(e||(e=t.headers.get("Content-Type")||""),function(t){return t.split(/,/)[1]}(n)));i=function(t,e){return"data:".concat(e,";base64,").concat(t)}(r,e)}catch(a){i=n.imagePlaceholder||"";let e="Failed to fetch resource: ".concat(t);a&&(e="string"==typeof a?a:a.message),e&&console.warn(e)}return Zu[r]=i,i}async function Qu(t,e){return ju(t,HTMLCanvasElement)?async function(t){const e=t.toDataURL();return"data:,"===e?t.cloneNode(!1):Bu(e)}(t):ju(t,HTMLVideoElement)?async function(t,e){if(t.currentSrc){const e=document.createElement("canvas"),n=e.getContext("2d");return e.width=t.clientWidth,e.height=t.clientHeight,null==n||n.drawImage(t,0,0,e.width,e.height),Bu(e.toDataURL())}const n=t.poster,r=Xu(n);return Bu(await Yu(n,r,e))}(t,e):ju(t,HTMLIFrameElement)?async function(t,e){var n;try{if(null===(n=null==t?void 0:t.contentDocument)||void 0===n?void 0:n.body)return await nd(t.contentDocument.body,e,!0)}catch(r){}return t.cloneNode(!1)}(t,e):t.cloneNode(td(t))}const Ju=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase(),td=t=>null!=t.tagName&&"SVG"===t.tagName.toUpperCase();function ed(t,e,n){return ju(e,Element)&&(function(t,e,n){const r=e.style;if(!r)return;const i=window.getComputedStyle(t);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):ku(n).forEach(n=>{let a=i.getPropertyValue(n);if("font-size"===n&&a.endsWith("px")){const t=Math.floor(parseFloat(a.substring(0,a.length-2)))-.1;a="".concat(t,"px")}ju(t,HTMLIFrameElement)&&"display"===n&&"inline"===a&&(a="block"),"d"===n&&e.getAttribute("d")&&(a="path(".concat(e.getAttribute("d"),")")),r.setProperty(n,a,i.getPropertyPriority(n))})}(t,e,n),function(t,e,n){$u(t,e,":before",n),$u(t,e,":after",n)}(t,e,n),function(t,e){ju(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),ju(t,HTMLInputElement)&&e.setAttribute("value",t.value)}(t,e),function(t,e){if(ju(t,HTMLSelectElement)){const n=e,r=Array.from(n.children).find(e=>t.value===e.getAttribute("value"));r&&r.setAttribute("selected","")}}(t,e)),e}async function nd(t,e,n){return n||!e.filter||e.filter(t)?Promise.resolve(t).then(t=>Qu(t,e)).then(n=>async function(t,e,n){var r,i;if(td(e))return e;let a=[];return a=Ju(t)&&t.assignedNodes?Du(t.assignedNodes()):ju(t,HTMLIFrameElement)&&(null===(r=t.contentDocument)||void 0===r?void 0:r.body)?Du(t.contentDocument.body.childNodes):Du((null!==(i=t.shadowRoot)&&void 0!==i?i:t).childNodes),0===a.length||ju(t,HTMLVideoElement)||await a.reduce((t,r)=>t.then(()=>nd(r,n)).then(t=>{t&&e.appendChild(t)}),Promise.resolve()),e}(t,n,e)).then(n=>ed(t,n,e)).then(t=>async function(t,e){const n=t.querySelectorAll?t.querySelectorAll("use"):[];if(0===n.length)return t;const r={};for(let a=0;a{for(;;){const[n,,r]=id.exec(t)||[];if(!r)return"";if(r===e)return"src: ".concat(n,";")}}):t}(t,n),i=function(t){const e=[];return t.replace(rd,(t,n,r)=>(e.push(r),t)),e.filter(t=>!Ku(t))}(r);return i.reduce((t,r)=>t.then(t=>od(t,r,e,n)),Promise.resolve(r))}async function cd(t,e,n){var r;const i=null===(r=e.style)||void 0===r?void 0:r.getPropertyValue(t);if(i){const r=await ld(i,null,n);return e.style.setProperty(t,r,e.style.getPropertyPriority(t)),!0}return!1}async function ud(t,e){ju(t,Element)&&(await async function(t,e){await cd("background",t,e)||await cd("background-image",t,e),await cd("mask",t,e)||await cd("-webkit-mask",t,e)||await cd("mask-image",t,e)||await cd("-webkit-mask-image",t,e)}(t,e),await async function(t,e){const n=ju(t,HTMLImageElement);if((!n||Ku(t.src))&&(!ju(t,SVGImageElement)||Ku(t.href.baseVal)))return;const r=n?t.src:t.href.baseVal,i=await Yu(r,Xu(r),e);await new Promise((r,a)=>{t.onload=r,t.onerror=e.onImageErrorHandler?(...t)=>{try{r(e.onImageErrorHandler(...t))}catch(n){a(n)}}:a;const o=t;o.decode&&(o.decode=r),"lazy"===o.loading&&(o.loading="eager"),n?(t.srcset="",t.src=i):t.href.baseVal=i})}(t,e),await async function(t,e){const n=Du(t.childNodes).map(t=>ud(t,e));await Promise.all(n).then(()=>t)}(t,e))}const dd={};async function hd(t){let e=dd[t];if(null!=e)return e;const n=await fetch(t);return e={url:t,cssText:await n.text()},dd[t]=e,e}async function pd(t,e){let n=t.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,t.url).href),qu(a,e.fetchRequestInit,({result:t})=>(n=n.replace(i,"url(".concat(t,")")),[i,t]))});return Promise.all(i).then(()=>n)}function fd(t){if(null==t)return[];const e=[];let n=t.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const t=r.exec(n);if(null===t)break;e.push(t[0])}n=n.replace(r,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let t=i.exec(n);if(null===t){if(t=a.exec(n),null===t)break;i.lastIndex=a.lastIndex}else a.lastIndex=i.lastIndex;e.push(t[0])}return e}async function md(t,e){if(null==t.ownerDocument)throw new Error("Provided element is not within a Document");const n=Du(t.ownerDocument.styleSheets),r=await async function(t,e){const n=[],r=[];return t.forEach(n=>{if("cssRules"in n)try{Du(n.cssRules||[]).forEach((t,i)=>{if(t.type===CSSRule.IMPORT_RULE){let a=i+1;const o=hd(t.href).then(t=>pd(t,e)).then(t=>fd(t).forEach(t=>{try{n.insertRule(t,t.startsWith("@import")?a+=1:n.cssRules.length)}catch(e){console.error("Error inserting rule from remote css",{rule:t,error:e})}})).catch(t=>{console.error("Error loading remote css",t.toString())});r.push(o)}})}catch(Sd){const a=t.find(t=>null==t.href)||document.styleSheets[0];null!=n.href&&r.push(hd(n.href).then(t=>pd(t,e)).then(t=>fd(t).forEach(t=>{a.insertRule(t,a.cssRules.length)})).catch(t=>{console.error("Error loading remote stylesheet",t)})),console.error("Error inlining remote css file",Sd)}}),Promise.all(r).then(()=>(t.forEach(t=>{if("cssRules"in t)try{Du(t.cssRules||[]).forEach(t=>{n.push(t)})}catch(Sd){console.error("Error while reading CSS rules from ".concat(t.href),Sd)}}),n))}(n,e);return function(t){return t.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>sd(t.style.getPropertyValue("src")))}(r)}function vd(t){return t.trim().replace(/["']/g,"")}async function gd(t,e){const n=await md(t,e),r=function(t){const e=new Set;return function t(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(t=>{e.add(vd(t))}),Array.from(n.children).forEach(e=>{e instanceof HTMLElement&&t(e)})}(t),e}(t);return(await Promise.all(n.filter(t=>r.has(vd(t.style.getPropertyValue("font-family")||t.style.fontFamily))).map(t=>{const n=t.parentStyleSheet?t.parentStyleSheet.href:null;return ld(t.cssText,n,e)}))).join("\n")}async function yd(t,e={}){const{width:n,height:r}=Fu(t,e),i=await nd(t,e,!0);await async function(t,e){const n=null!=e.fontEmbedCSS?e.fontEmbedCSS:e.skipFonts?null:await gd(t,e);if(n){const e=document.createElement("style"),r=document.createTextNode(n);e.appendChild(r),t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}(i,e),await ud(i,e),function(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width="".concat(e.width,"px")),e.height&&(n.height="".concat(e.height,"px"));const r=e.style;null!=r&&Object.keys(r).forEach(t=>{n[t]=r[t]})}(i,e);return await Uu(i,n,r)}async function bd(t,e={}){const{width:n,height:r}=Fu(t,e),i=await yd(t,e),a=await Bu(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=e.pixelRatio||function(){let t,e;try{e=process}catch(Sd){}const n=e&&e.env?e.env.devicePixelRatio:null;return n&&(t=parseInt(n,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}(),c=e.canvasWidth||n,u=e.canvasHeight||r;return o.width=c*l,o.height=u*l,e.skipAutoScale||function(t){(t.width>Hu||t.height>Hu)&&(t.width>Hu&&t.height>Hu?t.width>t.height?(t.height*=Hu/t.width,t.width=Hu):(t.width*=Hu/t.height,t.height=Hu):t.width>Hu?(t.height*=Hu/t.width,t.width=Hu):(t.width*=Hu/t.height,t.height=Hu))}(o),o.style.width="".concat(c),o.style.height="".concat(u),e.backgroundColor&&(s.fillStyle=e.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function Ed(t,e={}){const n=await bd(t,e),r=await function(t,e={}){return t.toBlob?new Promise(n=>{t.toBlob(n,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(n=>{const r=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=r.length,a=new Uint8Array(i);for(let t=0;t=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),Od=new Map([[46,Id.DOT],[91,Id.BRACKET_LEFT],[93,Id.BRACKET_RIGHT],[40,Id.PAREN_LEFT],[41,Id.PAREN_RIGHT],[44,Id.COMMA],[63,Id.QUESTION],[58,Id.COLON],[36,Id.DOLLAR]]),Rd=new Map;for(const[mT,vT]of Od.entries())Rd.set(mT,{type:vT,value:String.fromCharCode(mT)});function Ld(t){return t>=48&&t<=57}function Md(t){return t>=97&&t<=122||t>=65&&t<=90||95===t}function Dd(t){return Md(t)||Ld(t)}function Nd(t){return Cd.has(t)}var kd;!function(t){t[t.Program=0]="Program",t[t.Literal=1]="Literal",t[t.Identifier=2]="Identifier",t[t.MemberExpression=3]="MemberExpression",t[t.CallExpression=4]="CallExpression",t[t.BinaryExpression=5]="BinaryExpression",t[t.UnaryExpression=6]="UnaryExpression",t[t.ConditionalExpression=7]="ConditionalExpression"}(kd||(kd={}));const Pd=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),Fd={type:kd.Literal,value:null},Hd={type:kd.Literal,value:!0},Bd={type:kd.Literal,value:!1};function Ud(t){const e=(t=>{const e=t,n=e.length,r=new Array(Math.ceil(n/3));let i=0,a=0;function o(t){const r=a+1;a++;let i="",o=!1;for(;a{let e=0;const n=t.length,r=()=>e>=n?null:t[e],i=()=>t[e++],a=t=>{const e=r();return null!==e&&e.type===t},o=t=>t.type===Id.OPERATOR?Pd.get(t.value)||-1:t.type===Id.DOT||t.type===Id.BRACKET_LEFT?9:t.type===Id.QUESTION?1:-1,s=t=>{let n,o;if(i().type===Id.DOT){if(!a(Id.IDENTIFIER)){const t=r();throw new Td("Expected property name",e,t?t.value:"")}const t=i();n={type:kd.Identifier,name:t.value},o=!1}else{if(n=c(0),!a(Id.BRACKET_RIGHT)){const t=r();throw new Td("Expected closing bracket",e,t?t.value:"")}i(),o=!0}return{type:kd.MemberExpression,object:t,property:n,computed:o}},l=()=>{const t=r();if(!t)throw new Td("Unexpected end of input",e,"");if(t.type===Id.OPERATOR&&("!"===t.value||"-"===t.value)){i();const e=l();return{type:kd.UnaryExpression,operator:t.value,argument:e,prefix:!0}}switch(t.type){case Id.NUMBER:return i(),{type:kd.Literal,value:Number(t.value)};case Id.STRING:return i(),{type:kd.Literal,value:t.value};case Id.BOOLEAN:return i(),"true"===t.value?Hd:Bd;case Id.NULL:return i(),Fd;case Id.IDENTIFIER:return i(),{type:kd.Identifier,name:t.value};case Id.FUNCTION:return(()=>{const t=i(),n=[];if(!a(Id.PAREN_LEFT)){const t=r();throw new Td("Expected opening parenthesis after function name",e,t?t.value:"")}for(i();;){if(a(Id.PAREN_RIGHT)){i();break}if(!r()){const t=r();throw new Td("Expected closing parenthesis",e,t?t.value:"")}if(n.length>0){if(!a(Id.COMMA)){const t=r();throw new Td("Expected comma between function arguments",e,t?t.value:"")}i()}const t=c(0);n.push(t)}return{type:kd.CallExpression,callee:{type:kd.Identifier,name:t.value},arguments:n}})();case Id.PAREN_LEFT:{i();const t=c(0);if(!a(Id.PAREN_RIGHT)){const t=r();throw new Td("Expected closing parenthesis",e,t?t.value:"")}return i(),t}default:throw new Td("Unexpected token: ".concat(t.type),e,t.value)}},c=(u=0)=>{let d=l();for(;e")}i();const n=c(0);d={type:kd.ConditionalExpression,test:d,consequent:t,alternate:n}}}return d},u=c();return{type:kd.Program,body:u}})(e),r=((t={},e={})=>({context:t,functions:e}))({},_d);return(t={})=>((t,e,n)=>{let r=e;n&&(r={...e,context:{...e.context,...n}});const i=t=>{switch(t.type){case kd.Literal:return t.value;case kd.Identifier:return(t=>{if(!(t.name in r.context))throw new Td("Undefined variable: ".concat(t.name));return r.context[t.name]})(t);case kd.MemberExpression:return(t=>{const e=i(t.object);if(null==e)throw new Td("Cannot access property of null or undefined");return e[t.computed?i(t.property):t.property.name]})(t);case kd.CallExpression:return(t=>{const e=r.functions[t.callee.name];if(!e)throw new Td("Undefined function: ".concat(t.callee.name));return e(...t.arguments.map(t=>i(t)))})(t);case kd.BinaryExpression:return(t=>{if("&&"===t.operator){const e=i(t.left);return e?i(t.right):e}if("||"===t.operator)return i(t.left)||i(t.right);const e=i(t.left),n=i(t.right);switch(t.operator){case"+":return e+n;case"-":return e-n;case"*":return e*n;case"/":return e/n;case"%":return e%n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e{const e=i(t.argument);if(t.prefix)switch(t.operator){case"!":return!e;case"-":if("number"!=typeof e)throw new Td("Cannot apply unary - to non-number: ".concat(e));return-e;default:throw new Td("Unknown operator: ".concat(t.operator))}throw new Td("Postfix operators are not supported: ".concat(t.operator))})(t);case kd.ConditionalExpression:return(t=>{const e=i(t.test);return i(e?t.consequent:t.alternate)})(t);default:throw new Td("Evaluation error: Unsupported node type: ".concat(t.type))}};return i(t.body)})(n,r,t)}function jd(t,e={}){return Ud(t)(e)} /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var Vd={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item"},$d={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128},Wd={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"},zd=function(t){function e(n){return t.call(this,Di(Di({},e.defaultAdapter),n))||this}return Mi(e,t),Object.defineProperty(e,"strings",{get:function(){return Wd},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return Vd},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return $d},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},getTopAppBarHeight:function(){return 0},notifyNavigationIconClicked:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}},enumerable:!1,configurable:!0}),e.prototype.handleTargetScroll=function(){},e.prototype.handleWindowResize=function(){},e.prototype.handleNavigationClick=function(){this.adapter.notifyNavigationIconClicked()},e}(Fi),Gd=function(t){function e(e){var n=t.call(this,e)||this;return n.wasDocked=!0,n.isDockedShowing=!0,n.currentAppBarOffsetTop=0,n.isCurrentlyBeingResized=!1,n.resizeThrottleId=0,n.resizeDebounceId=0,n.lastScrollPosition=n.adapter.getViewportScrollY(),n.topAppBarHeight=n.adapter.getTopAppBarHeight(),n}return Mi(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.adapter.setStyle("top","")},e.prototype.handleTargetScroll=function(){var t=Math.max(this.adapter.getViewportScrollY(),0),e=t-this.lastScrollPosition;this.lastScrollPosition=t,this.isCurrentlyBeingResized||(this.currentAppBarOffsetTop-=e,this.currentAppBarOffsetTop>0?this.currentAppBarOffsetTop=0:Math.abs(this.currentAppBarOffsetTop)>this.topAppBarHeight&&(this.currentAppBarOffsetTop=-this.topAppBarHeight),this.moveTopAppBar())},e.prototype.handleWindowResize=function(){var t=this;this.resizeThrottleId||(this.resizeThrottleId=setTimeout(function(){t.resizeThrottleId=0,t.throttledResizeHandler()},$d.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized=!0,this.resizeDebounceId&&clearTimeout(this.resizeDebounceId),this.resizeDebounceId=setTimeout(function(){t.handleTargetScroll(),t.isCurrentlyBeingResized=!1,t.resizeDebounceId=0},$d.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},e.prototype.checkForUpdate=function(){var t=-this.topAppBarHeight,e=this.currentAppBarOffsetTop<0,n=this.currentAppBarOffsetTop>t,r=e&&n;if(r)this.wasDocked=!1;else{if(!this.wasDocked)return this.wasDocked=!0,!0;if(this.isDockedShowing!==n)return this.isDockedShowing=n,!0}return r},e.prototype.moveTopAppBar=function(){if(this.checkForUpdate()){var t=this.currentAppBarOffsetTop;Math.abs(t)>=this.topAppBarHeight&&(t=-128),this.adapter.setStyle("top",t+"px")}},e.prototype.throttledResizeHandler=function(){var t=this.adapter.getTopAppBarHeight();this.topAppBarHeight!==t&&(this.wasDocked=!1,this.currentAppBarOffsetTop-=this.topAppBarHeight-t,this.topAppBarHeight=t),this.handleTargetScroll()},e}(zd),Xd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.wasScrolled=!1,e}return Mi(e,t),e.prototype.handleTargetScroll=function(){this.adapter.getViewportScrollY()<=0?this.wasScrolled&&(this.adapter.removeClass(Vd.FIXED_SCROLLED_CLASS),this.wasScrolled=!1):this.wasScrolled||(this.adapter.addClass(Vd.FIXED_SCROLLED_CLASS),this.wasScrolled=!0)},e}(Gd),Kd=function(t){function e(e){var n=t.call(this,e)||this;return n.collapsed=!1,n.isAlwaysCollapsed=!1,n}return Mi(e,t),Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return this.collapsed},enumerable:!1,configurable:!0}),e.prototype.init=function(){t.prototype.init.call(this),this.adapter.getTotalActionItems()>0&&this.adapter.addClass(Vd.SHORT_HAS_ACTION_ITEM_CLASS),this.setAlwaysCollapsed(this.adapter.hasClass(Vd.SHORT_COLLAPSED_CLASS))},e.prototype.setAlwaysCollapsed=function(t){this.isAlwaysCollapsed=!!t,this.isAlwaysCollapsed?this.collapse():this.maybeCollapseBar()},e.prototype.getAlwaysCollapsed=function(){return this.isAlwaysCollapsed},e.prototype.handleTargetScroll=function(){this.maybeCollapseBar()},e.prototype.maybeCollapseBar=function(){this.isAlwaysCollapsed||(this.adapter.getViewportScrollY()<=0?this.collapsed&&this.uncollapse():this.collapsed||this.collapse())},e.prototype.uncollapse=function(){this.adapter.removeClass(Vd.SHORT_COLLAPSED_CLASS),this.collapsed=!1},e.prototype.collapse=function(){this.adapter.addClass(Vd.SHORT_COLLAPSED_CLASS),this.collapsed=!0},e}(zd),qd=dr("
");function Zd(t,e){Bt(e,!0);let n=()=>{};function r(t){return t===n}let i=Ii(e,"use",19,()=>[]),a=Ii(e,"class",3,""),o=Ii(e,"style",3,""),s=Ii(e,"variant",3,"standard"),l=Ii(e,"color",3,"primary"),c=Ii(e,"collapsed",15,n),u=Ii(e,"prominent",3,!1),d=Ii(e,"dense",3,!1),h=Ei(e,["$$slots","$$events","$$legacy","use","class","style","variant","color","collapsed","prominent","dense","scrollTarget","children"]);const p=!r(c())&&!!c();let f;r(c())&&c(!1);let m,v=Ie(void 0),g=new Da,y=Ie(Re({})),b=Ie(Re({})),E=Ie(void 0),_=di({variant:s(),prominent:u(),dense:d()},t=>{Ae(E,t,!0)});Ye(()=>{Vn(E)&&Vn(E)({variant:s(),prominent:u(),dense:d()})}),Ye(()=>{Vn(v)&&"short"===s()&&"setAlwaysCollapsed"in Vn(v)&&Vn(v).setAlwaysCollapsed(p)}),Ye(()=>{m!==e.scrollTarget&&(m&&g.off(m,"scroll",x),e.scrollTarget&&g.on(e.scrollTarget,"scroll",x),m=e.scrollTarget)});let T=s();function I(){return new({static:zd,short:Kd,fixed:Xd,standard:Gd}[s()]||Gd)({hasClass:S,addClass:A,removeClass:C,setStyle:w,getTopAppBarHeight:()=>O().clientHeight,notifyNavigationIconClicked:()=>Ra(O(),"SMUITopAppBarNav"),getViewportScrollY:()=>null==e.scrollTarget?window.pageYOffset:e.scrollTarget.scrollTop,getTotalActionItems:()=>O().querySelectorAll(".mdc-top-app-bar__action-item").length})}function S(t){return t in Vn(y)?Vn(y)[t]:O().classList.contains(t)}function A(t){Vn(y)[t]||(Vn(y)[t]=!0)}function C(t){t in Vn(y)&&!Vn(y)[t]||(Vn(y)[t]=!1)}function w(t,e){Vn(b)[t]!=e&&(""===e||null==e?delete Vn(b)[t]:Vn(b)[t]=e)}function x(){Vn(v)&&(Vn(v).handleTargetScroll(),"short"===s()&&c("isCollapsed"in Vn(v)&&Vn(v).isCollapsed))}function O(){return f}Ye(()=>{T!==s()&&Vn(v)&&(T=s(),Vn(v).destroy(),Ae(y,{},!0),Ae(b,{},!0),Ae(v,I(),!0),Vn(v).init())}),Si(()=>(Ae(v,I(),!0),Vn(v).init(),()=>{var t;null==(t=Vn(v))||t.destroy(),g.clear()}));var R={getPropStore:function(){return _},getElement:O},L=qd();ar("resize",De,()=>"short"!==s()&&"fixed"!==s()&&Vn(v)&&Vn(v).handleWindowResize()),ar("scroll",De,()=>null==e.scrollTarget&&x());var M=t=>{var n;Vn(v)&&Vn(v).handleNavigationClick(),null==(n=e.onSMUITopAppBarIconButtonNav)||n.call(e,t)};return Yr(L,(t,e)=>({class:t,style:e,...h,onSMUITopAppBarIconButtonNav:M}),[()=>Oa({"mdc-top-app-bar":!0,"mdc-top-app-bar--short":"short"===s(),"mdc-top-app-bar--short-collapsed":c(),"mdc-top-app-bar--fixed":"fixed"===s(),"smui-top-app-bar--static":"static"===s(),"smui-top-app-bar--color-secondary":"secondary"===l(),"mdc-top-app-bar--prominent":u(),"mdc-top-app-bar--dense":d(),...Vn(y),[a()]:!0}),()=>Object.entries(Vn(b)).map(([t,e])=>"".concat(t,": ").concat(e,";")).concat([o()]).join(" ")]),Rr(je(L),()=>{var t;return null!=(t=e.children)?t:ot}),li(L,t=>f=t,()=>f),Dr(L,(t,e)=>null==Na?void 0:Na(t,e),i),vr(t,L),Ut(R)}function Yd(t,e){Bt(e,!0);let n,r=Ei(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return li(Xa(t,Ti({_smuiClass:"mdc-top-app-bar__row",tag:"div"},()=>r,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n),Ut(i)}var Qd=dr("
");function Jd(t,e){Bt(e,!0);let n,r=Ii(e,"use",19,()=>[]),i=Ii(e,"class",3,""),a=Ii(e,"align",3,"start"),o=Ii(e,"toolbar",3,!1),s=Ei(e,["$$slots","$$events","$$legacy","use","class","align","toolbar","children"]);Ht("SMUI:icon-button:context",o()?"top-app-bar:action":"top-app-bar:navigation"),Ht("SMUI:button:context",o()?"top-app-bar:action":"top-app-bar:navigation");var l={getElement:function(){return n}},c=Qd();return Yr(c,t=>({class:t,...o()?{role:"toolbar"}:{},...s}),[()=>Oa({"mdc-top-app-bar__section":!0,"mdc-top-app-bar__section--align-start":"start"===a(),"mdc-top-app-bar__section--align-end":"end"===a(),[i()]:!0})]),Rr(je(c),()=>{var t;return null!=(t=e.children)?t:ot}),li(c,t=>n=t,()=>n),Dr(c,(t,e)=>null==Na?void 0:Na(t,e),r),vr(t,c),Ut(l)}var th=dr('
'),eh=dr('
',1);function nh(t,e){Bt(e,!0);let n,r=Ii(e,"use",19,()=>[]),i=Ii(e,"class",3,""),a=Ii(e,"style",3,""),o=Ii(e,"ripple",3,!0),s=Ii(e,"color",3,"primary"),l=Ii(e,"variant",3,"text"),c=Ii(e,"touch",3,!1),u=Ii(e,"action",3,"close"),d=Ii(e,"defaultAction",3,!1),h=Ii(e,"secondary",3,!1),p=Ii(e,"component",3,ja),f=Ii(e,"tag",19,()=>null==e.href?"button":"a"),m=Ei(e,["$$slots","$$events","$$legacy","use","class","style","ripple","color","variant","touch","href","action","defaultAction","secondary","component","tag","children"]),v=Re({}),g=Re({}),y=Ft("SMUI:button:context");const b=te(()=>"dialog:action"===y&&null!=u()?{"data-mdc-dialog-action":u()}:{action:u()}),E=te(()=>"dialog:action"===y&&d()?{"data-mdc-dialog-button-default":""}:{}),_=te(()=>"banner"===y?{}:{secondary:h()});let T=e.disabled;function I(t){v[t]||(v[t]=!0)}function S(t){t in v&&!v[t]||(v[t]=!1)}function A(t,e){g[t]!=e&&(""===e||null==e?delete g[t]:g[t]=e)}function C(){return n.getElement()}Ye(()=>{if(T!==e.disabled){if(n){const t=C();"blur"in t&&t.blur()}T=m.disabled}}),Ht("SMUI:label:context","button"),Ht("SMUI:icon:context","button");var w={getElement:C},x=mr(),O=Ve(x);{let t=te(()=>[[Oo,{ripple:o(),unbounded:!1,color:s(),disabled:!!e.disabled,addClass:I,removeClass:S,addStyle:A}],...r()]),u=te(()=>Oa({"mdc-button":!0,"mdc-button--raised":"raised"===l(),"mdc-button--unelevated":"unelevated"===l(),"mdc-button--outlined":"outlined"===l(),"smui-button--color-secondary":"secondary"===s(),"mdc-button--touch":c(),"mdc-card__action":"card:action"===y,"mdc-card__action--button":"card:action"===y,"mdc-dialog__button":"dialog:action"===y,"mdc-top-app-bar__navigation-icon":"top-app-bar:navigation"===y,"mdc-top-app-bar__action-item":"top-app-bar:action"===y,"mdc-snackbar__action":"snackbar:actions"===y,"mdc-banner__secondary-action":"banner"===y&&h(),"mdc-banner__primary-action":"banner"===y&&!h(),"mdc-tooltip__action":"tooltip:rich-actions"===y,...v,[i()]:!0})),d=te(()=>Object.entries(g).map(([t,e])=>"".concat(t,": ").concat(e,";")).concat([a()]).join(" "));Lr(O,p,(r,i)=>{li(i(r,Ti({get tag(){return f()},get use(){return Vn(t)},get class(){return Vn(u)},get style(){return Vn(d)}},()=>Vn(b),()=>Vn(E),()=>Vn(_),{get href(){return e.href}},()=>m,{onclick:t=>{var n;"banner"===y&&Ra(C(),h()?"SMUIBannerButtonSecondaryActionClick":"SMUIBannerButtonPrimaryActionClick"),null==(n=e.onclick)||n.call(e,t),t.currentTarget.blur()},children:(t,n)=>{var r=eh(),i=$e(Ve(r),2);Rr(i,()=>{var t;return null!=(t=e.children)?t:ot});var a=$e(i),o=t=>{vr(t,th())};_r(a,t=>{c()&&t(o)}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n)})}return vr(t,x),Ut(w)} /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var rh,ih,ah={CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked",FULLSCREEN:"mdc-dialog--fullscreen",SCROLL_DIVIDER_HEADER:"mdc-dialog-scroll-divider-header",SCROLL_DIVIDER_FOOTER:"mdc-dialog-scroll-divider-footer",SURFACE_SCRIM_SHOWN:"mdc-dialog__surface-scrim--shown",SURFACE_SCRIM_SHOWING:"mdc-dialog__surface-scrim--showing",SURFACE_SCRIM_HIDING:"mdc-dialog__surface-scrim--hiding",SCRIM_HIDDEN:"mdc-dialog__scrim--hidden"},oh={ACTION_ATTRIBUTE:"data-mdc-dialog-action",BUTTON_DEFAULT_ATTRIBUTE:"data-mdc-dialog-button-default",BUTTON_SELECTOR:".mdc-dialog__button",CLOSED_EVENT:"MDCDialog:closed",CLOSE_ACTION:"close",CLOSING_EVENT:"MDCDialog:closing",CONTAINER_SELECTOR:".mdc-dialog__container",CONTENT_SELECTOR:".mdc-dialog__content",DESTROY_ACTION:"destroy",INITIAL_FOCUS_ATTRIBUTE:"data-mdc-dialog-initial-focus",OPENED_EVENT:"MDCDialog:opened",OPENING_EVENT:"MDCDialog:opening",SCRIM_SELECTOR:".mdc-dialog__scrim",SUPPRESS_DEFAULT_PRESS_SELECTOR:["textarea",".mdc-menu .mdc-list-item",".mdc-menu .mdc-deprecated-list-item"].join(", "),SURFACE_SELECTOR:".mdc-dialog__surface"},sh={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150};(ih=rh||(rh={})).POLL_SCROLL_POS="poll_scroll_position",ih.POLL_LAYOUT_CHANGE="poll_layout_change";var lh=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.dialogOpen=!1,r.isFullscreen=!1,r.animationFrame=0,r.animationTimer=0,r.escapeKeyAction=oh.CLOSE_ACTION,r.scrimClickAction=oh.CLOSE_ACTION,r.autoStackButtons=!0,r.areButtonsStacked=!1,r.suppressDefaultPressSelector=oh.SUPPRESS_DEFAULT_PRESS_SELECTOR,r.animFrame=new vs,r.contentScrollHandler=function(){r.handleScrollEvent()},r.windowResizeHandler=function(){r.layout()},r.windowOrientationChangeHandler=function(){r.layout()},r}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ah},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return oh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return sh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addBodyClass:function(){},addClass:function(){},areButtonsStacked:function(){return!1},clickDefaultButton:function(){},eventTargetMatches:function(){return!1},getActionFromEvent:function(){return""},getInitialFocusEl:function(){return null},hasClass:function(){return!1},isContentScrollable:function(){return!1},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},releaseFocus:function(){},removeBodyClass:function(){},removeClass:function(){},reverseButtons:function(){},trapFocus:function(){},registerContentEventHandler:function(){},deregisterContentEventHandler:function(){},isScrollableContentAtTop:function(){return!1},isScrollableContentAtBottom:function(){return!1},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.hasClass(ah.STACKED)&&this.setAutoStackButtons(!1),this.isFullscreen=this.adapter.hasClass(ah.FULLSCREEN)},e.prototype.destroy=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.handleAnimationTimerEnd()),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.animFrame.cancelAll(),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler)},e.prototype.open=function(t){var e=this;this.dialogOpen=!0,this.adapter.notifyOpening(),this.adapter.addClass(ah.OPENING),this.isFullscreen&&this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler),t&&t.isAboveFullscreenDialog&&this.adapter.addClass(ah.SCRIM_HIDDEN),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler),this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),this.runNextAnimationFrame(function(){e.adapter.addClass(ah.OPEN),e.adapter.addBodyClass(ah.SCROLL_LOCK),e.layout(),e.animationTimer=setTimeout(function(){e.handleAnimationTimerEnd(),e.adapter.trapFocus(e.adapter.getInitialFocusEl()),e.adapter.notifyOpened()},sh.DIALOG_ANIMATION_OPEN_TIME_MS)})},e.prototype.close=function(t){var e=this;void 0===t&&(t=""),this.dialogOpen&&(this.dialogOpen=!1,this.adapter.notifyClosing(t),this.adapter.addClass(ah.CLOSING),this.adapter.removeClass(ah.OPEN),this.adapter.removeBodyClass(ah.SCROLL_LOCK),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=setTimeout(function(){e.adapter.releaseFocus(),e.handleAnimationTimerEnd(),e.adapter.notifyClosed(t)},sh.DIALOG_ANIMATION_CLOSE_TIME_MS))},e.prototype.showSurfaceScrim=function(){var t=this;this.adapter.addClass(ah.SURFACE_SCRIM_SHOWING),this.runNextAnimationFrame(function(){t.adapter.addClass(ah.SURFACE_SCRIM_SHOWN)})},e.prototype.hideSurfaceScrim=function(){this.adapter.removeClass(ah.SURFACE_SCRIM_SHOWN),this.adapter.addClass(ah.SURFACE_SCRIM_HIDING)},e.prototype.handleSurfaceScrimTransitionEnd=function(){this.adapter.removeClass(ah.SURFACE_SCRIM_HIDING),this.adapter.removeClass(ah.SURFACE_SCRIM_SHOWING)},e.prototype.isOpen=function(){return this.dialogOpen},e.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction},e.prototype.setEscapeKeyAction=function(t){this.escapeKeyAction=t},e.prototype.getScrimClickAction=function(){return this.scrimClickAction},e.prototype.setScrimClickAction=function(t){this.scrimClickAction=t},e.prototype.getAutoStackButtons=function(){return this.autoStackButtons},e.prototype.setAutoStackButtons=function(t){this.autoStackButtons=t},e.prototype.getSuppressDefaultPressSelector=function(){return this.suppressDefaultPressSelector},e.prototype.setSuppressDefaultPressSelector=function(t){this.suppressDefaultPressSelector=t},e.prototype.layout=function(){var t=this;this.animFrame.request(rh.POLL_LAYOUT_CHANGE,function(){t.layoutInternal()})},e.prototype.handleClick=function(t){if(this.adapter.eventTargetMatches(t.target,oh.SCRIM_SELECTOR)&&""!==this.scrimClickAction)this.close(this.scrimClickAction);else{var e=this.adapter.getActionFromEvent(t);e&&this.close(e)}},e.prototype.handleKeydown=function(t){var e="Enter"===t.key||13===t.keyCode;if(e&&!this.adapter.getActionFromEvent(t)){var n=t.composedPath?t.composedPath()[0]:t.target,r=!this.suppressDefaultPressSelector||!this.adapter.eventTargetMatches(n,this.suppressDefaultPressSelector);e&&r&&this.adapter.clickDefaultButton()}},e.prototype.handleDocumentKeydown=function(t){("Escape"===t.key||27===t.keyCode)&&""!==this.escapeKeyAction&&this.close(this.escapeKeyAction)},e.prototype.handleScrollEvent=function(){var t=this;this.animFrame.request(rh.POLL_SCROLL_POS,function(){t.toggleScrollDividerHeader(),t.toggleScrollDividerFooter()})},e.prototype.layoutInternal=function(){this.autoStackButtons&&this.detectStackedButtons(),this.toggleScrollableClasses()},e.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(ah.OPENING),this.adapter.removeClass(ah.CLOSING)},e.prototype.runNextAnimationFrame=function(t){var e=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(function(){e.animationFrame=0,clearTimeout(e.animationTimer),e.animationTimer=setTimeout(t,0)})},e.prototype.detectStackedButtons=function(){this.adapter.removeClass(ah.STACKED);var t=this.adapter.areButtonsStacked();t&&this.adapter.addClass(ah.STACKED),t!==this.areButtonsStacked&&(this.adapter.reverseButtons(),this.areButtonsStacked=t)},e.prototype.toggleScrollableClasses=function(){this.adapter.removeClass(ah.SCROLLABLE),this.adapter.isContentScrollable()&&(this.adapter.addClass(ah.SCROLLABLE),this.isFullscreen&&(this.toggleScrollDividerHeader(),this.toggleScrollDividerFooter()))},e.prototype.toggleScrollDividerHeader=function(){this.adapter.isScrollableContentAtTop()?this.adapter.hasClass(ah.SCROLL_DIVIDER_HEADER)&&this.adapter.removeClass(ah.SCROLL_DIVIDER_HEADER):this.adapter.addClass(ah.SCROLL_DIVIDER_HEADER)},e.prototype.toggleScrollDividerFooter=function(){this.adapter.isScrollableContentAtBottom()?this.adapter.hasClass(ah.SCROLL_DIVIDER_FOOTER)&&this.adapter.removeClass(ah.SCROLL_DIVIDER_FOOTER):this.adapter.addClass(ah.SCROLL_DIVIDER_FOOTER)},e}(Fi),ch=dr('
'),uh=dr('
',1);function dh(t,e){var n;Bt(e,!0);const r=()=>vi(R,"$aboveFullscreenShown",i),[i,a]=yi(),{FocusTrap:o}=qi,{closest:s,matches:l}=Bi;let c,u,d,h=Ii(e,"use",19,()=>[]),p=Ii(e,"class",3,""),f=Ii(e,"open",15,!1),m=Ii(e,"selection",3,!1),v=Ii(e,"escapeKeyAction",3,"close"),g=Ii(e,"scrimClickAction",3,"close"),y=Ii(e,"autoStackButtons",3,!0),b=Ii(e,"fullscreen",3,!1),E=Ii(e,"sheet",3,!1),_=Ii(e,"noContentPadding",3,!1),T=Ii(e,"container$class",3,""),I=Ii(e,"surface$class",3,""),S=Ei(e,["$$slots","$$events","$$legacy","use","class","open","selection","escapeKeyAction","scrimClickAction","autoStackButtons","fullscreen","sheet","noContentPadding","container$class","surface$class","children","over"]),A=Ie(void 0),C=new Da,w=Re({}),x=hi(!1),O=Ft("SMUI:dialog:aboveFullscreen"),R=null!=(n=Ft("SMUI:dialog:aboveFullscreenShown"))?n:hi(!1),L=Ft("SMUI:addLayoutListener"),M=[];Ht("SMUI:dialog:actions:reversed",x),Ht("SMUI:addLayoutListener",t=>(M.push(t),()=>{const e=M.indexOf(t);e>=0&&M.splice(e,1)})),Ht("SMUI:dialog:selection",m()),Ht("SMUI:dialog:aboveFullscreen",O||b()),Ht("SMUI:dialog:aboveFullscreenShown",R),E()&&Ht("SMUI:icon-button:context","dialog:sheet"),Ye(()=>{Vn(A)&&Vn(A).getEscapeKeyAction()!==v()&&Vn(A).setEscapeKeyAction(v())}),Ye(()=>{Vn(A)&&Vn(A).getScrimClickAction()!==g()&&Vn(A).setScrimClickAction(g())}),Ye(()=>{Vn(A)&&Vn(A).getAutoStackButtons()!==y()&&Vn(A).setAutoStackButtons(y())}),Ye(()=>{y()||gi(x,!0)}),L&&(d=L(B)),Ye(()=>{Vn(A)&&Vn(A).isOpen()!==f()&&(f()?Vn(A).open({isAboveFullscreenDialog:!!O}):Vn(A).close())});let D=r();function N(t){return t in w?w[t]:U().classList.contains(t)}function k(t){w[t]||(w[t]=!0)}function P(t){t in w&&!w[t]||(w[t]=!1)}function F(){return U().querySelector(".mdc-dialog__content")}function H(){return U().querySelector("[data-mdc-dialog-initial-focus]")}function B(){var t;return null==(t=Vn(A))?void 0:t.layout()}function U(){return c}Ye(()=>{b()&&Vn(A)&&D!==r()&&(D=r(),r()?Vn(A).showSurfaceScrim():Vn(A).hideSurfaceScrim())}),Si(()=>{var t;return u=new o(c,{initialFocusEl:null!=(t=H())?t:void 0}),Ae(A,new lh({addBodyClass:t=>document.body.classList.add(t),addClass:k,areButtonsStacked:()=>{return t=[].slice.call(U().querySelectorAll(".mdc-dialog__button")),e=new Set,[].forEach.call(t,function(t){return e.add(t.offsetTop)}),e.size>1;var t,e},clickDefaultButton:()=>{const t=U().querySelector("[data-mdc-dialog-button-default]");t&&t.click()},eventTargetMatches:(t,e)=>!!t&&l(t,e),getActionFromEvent:t=>{if(!t.target)return"";const e=s(t.target,"[data-mdc-dialog-action]");return e&&e.getAttribute("data-mdc-dialog-action")},getInitialFocusEl:H,hasClass:N,isContentScrollable:()=>{return!!(t=F())&&t.scrollHeight>t.offsetHeight;var t},notifyClosed:t=>{f(!1),Ra(U(),"SMUIDialogClosed",t?{action:t}:{})},notifyClosing:t=>Ra(U(),"SMUIDialogClosing",t?{action:t}:{}),notifyOpened:()=>Ra(U(),"SMUIDialogOpened",{}),notifyOpening:()=>Ra(U(),"SMUIDialogOpening",{}),releaseFocus:()=>u.releaseFocus(),removeBodyClass:t=>document.body.classList.remove(t),removeClass:P,reverseButtons:()=>{gi(x,!0)},trapFocus:()=>u.trapFocus(),registerContentEventHandler:(t,e)=>{const n=F();n instanceof HTMLElement&&C.on(n,t,e)},deregisterContentEventHandler:(t,e)=>{const n=F();n instanceof HTMLElement&&C.off(n,t,e)},isScrollableContentAtTop:()=>{return!!(t=F())&&0===t.scrollTop;var t},isScrollableContentAtBottom:()=>{return!!(t=F())&&Math.ceil(t.scrollHeight-t.scrollTop)===t.clientHeight;var t},registerWindowEventHandler:(t,e)=>C.on(window,t,e),deregisterWindowEventHandler:(t,e)=>C.off(window,t,e)}),!0),Vn(A).init(),()=>{var t;null==(t=Vn(A))||t.destroy(),C.clear()}}),Ai(()=>{d&&d()});var j={isOpen:function(){return f()},setOpen:function(t){f(t)},layout:B,getElement:U},V=uh();ar("resize",De,()=>f()&&Vn(A)&&Vn(A).layout()),ar("orientationchange",De,()=>f()&&Vn(A)&&Vn(A).layout()),ar("keydown",Ne.body,t=>Vn(A)&&Vn(A).handleDocumentKeydown(t));var $=Ve(V),W=t=>{var n;O&&gi(R,!0),requestAnimationFrame(()=>{M.forEach(t=>t())}),null==(n=e.onSMUIDialogOpening)||n.call(e,t)},z=t=>{var n;M.forEach(t=>t()),null==(n=e.onSMUIDialogOpened)||n.call(e,t)},G=t=>{var n;O&&gi(R,!1),null==(n=e.onSMUIDialogClosed)||n.call(e,t)},X=t=>{var n;Vn(A)&&Vn(A).handleClick(t),null==(n=e.onclick)||n.call(e,t)},K=t=>{var n;Vn(A)&&Vn(A).handleKeydown(t),null==(n=e.onkeydown)||n.call(e,t)};Yr($,(t,e)=>({class:t,role:"alertdialog","aria-modal":"true",...e,onSMUIDialogOpening:W,onSMUIDialogOpened:z,onSMUIDialogClosed:G,onclick:X,onkeydown:K}),[()=>Oa({"mdc-dialog":!0,"mdc-dialog--stacked":!y(),"mdc-dialog--fullscreen":b(),"mdc-dialog--sheet":E(),"mdc-dialog--no-content-padding":_(),"smui-dialog--selection":m(),...w,[p()]:!0}),()=>La(S,["container$","surface$"])]);var q=je($);Yr(q,(t,e)=>({class:t,...e}),[()=>Oa({"mdc-dialog__container":!0,[T()]:!0}),()=>Ma(S,"container$")]);var Z=je(q);Yr(Z,(t,e)=>({class:t,role:"alertdialog","aria-modal":"true",...e}),[()=>Oa({"mdc-dialog__surface":!0,[I()]:!0}),()=>Ma(S,"surface$")]);var Y=je(Z);Rr(Y,()=>{var t;return null!=(t=e.children)?t:ot});var Q=$e(Y,2),J=t=>{var e=ch();ar("transitionend",e,()=>Vn(A)&&Vn(A).handleSurfaceScrimTransitionEnd()),vr(t,e)};_r(Q,t=>{b()&&t(J)}),li($,t=>c=t,()=>c),Dr($,(t,e)=>null==Na?void 0:Na(t,e),h),Rr($e($,2),()=>{var t;return null!=(t=e.over)?t:ot}),vr(t,V);var tt=Ut(j);return a(),tt}function hh(t,e){Bt(e,!0);let n,r=Ei(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return li(Xa(t,Ti({_smuiClass:"mdc-dialog__title",tag:"h2"},()=>r,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n),Ut(i)}function ph(t,e){Bt(e,!0);let n,r=Ei(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return li(Xa(t,Ti({_smuiClass:"mdc-dialog__content",tag:"div"},()=>r,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n),Ut(i)}function fh(t,e){Bt(e,!0);let n,r=Ei(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return li(Xa(t,Ti({_smuiClass:"mdc-dialog__actions",_smuiClassMap:{"smui-dialog__actions--reversed":"SMUI:dialog:actions:reversed"},_smuiContexts:{"SMUI:button:context":"dialog:action"},tag:"div"},()=>r,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n),Ut(i)} /** * @license * Copyright 2017 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var mh={ROOT:"mdc-form-field"},vh={LABEL_SELECTOR:".mdc-form-field > label"},gh=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.click=function(){r.handleClick()},r}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return mh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return vh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){t.adapter.deactivateInputRipple()})},e}(Fi);let yh=0;var bh,Eh,_h,Th=dr("
");function Ih(t,e){Bt(e,!0);let n,r,i=Ii(e,"use",19,()=>[]),a=Ii(e,"class",3,""),o=Ii(e,"align",3,"start"),s=Ii(e,"noWrap",3,!1),l=Ii(e,"inputId",19,()=>"SMUI-form-field-"+yh++),c=Ii(e,"label$use",19,()=>[]),u=Ei(e,["$$slots","$$events","$$legacy","use","class","align","noWrap","inputId","label$use","children","label"]),d=Ie(void 0),h=new Da,p=Ie(void 0);Ht("SMUI:generic:input:props",{id:l()}),Ht("SMUI:generic:input:mount",t=>{Ae(p,t,!0)}),Ht("SMUI:generic:input:unmount",()=>{Ae(p,void 0)}),Si(()=>(Ae(d,new gh({activateInputRipple:()=>{Vn(p)&&Vn(p).activateRipple()},deactivateInputRipple:()=>{Vn(p)&&Vn(p).deactivateRipple()},deregisterInteractionHandler:(t,e)=>h.off(r,t,e),registerInteractionHandler:(t,e)=>h.on(r,t,e)}),!0),Vn(d).init(),()=>{var t;null==(t=Vn(d))||t.destroy(),h.clear()}));var f={getElement:function(){return n}},m=Th();Yr(m,(t,e)=>({class:t,...e}),[()=>Oa({"mdc-form-field":!0,"mdc-form-field--align-end":"end"===o(),"mdc-form-field--nowrap":s(),[a()]:!0}),()=>La(u,["label$"])]);var v=je(m);Rr(v,()=>{var t;return null!=(t=e.children)?t:ot});var g=$e(v,2);return Yr(g,t=>({for:l(),...t}),[()=>Ma(u,"label$")]),Rr(je(g),()=>{var t;return null!=(t=e.label)?t:ot}),li(g,t=>r=t,()=>r),Dr(g,(t,e)=>null==Na?void 0:Na(t,e),c),li(m,t=>n=t,()=>n),Dr(m,(t,e)=>null==Na?void 0:Na(t,e),i),vr(t,m),Ut(f)} /** * @license * Copyright 2021 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ /** * @license * Copyright 2021 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ function Sh(t,e,n){var r=function(t,e){var n=new Map;Ah.has(t)||Ah.set(t,{isEnabled:!0,getObservers:function(t){var e=n.get(t)||[];return n.has(t)||n.set(t,e),e},installedProperties:new Set});var r=Ah.get(t);if(r.installedProperties.has(e))return r;var i=function(t,e){var n,r=t;for(;r&&!(n=Object.getOwnPropertyDescriptor(r,e));)r=Object.getPrototypeOf(r);return n}(t,e)||{configurable:!0,enumerable:!0,value:t[e],writable:!0},a=Di({},i),o=i.get,s=i.set;if("value"in i){delete a.value,delete a.writable;var l=i.value;o=function(){return l},i.writable&&(s=function(t){l=t})}o&&(a.get=function(){return o.call(this)});s&&(a.set=function(t){var n,i,a=o?o.call(this):t;if(s.call(this,t),r.isEnabled&&(!o||t!==a))try{for(var l=Ni(r.getObservers(e)),c=l.next();!c.done;c=l.next()){(0,c.value)(t,a)}}catch(u){n={error:u}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}});return r.installedProperties.add(e),Object.defineProperty(t,e,a),r}(t,e),i=r.getObservers(e);return i.push(n),function(){i.splice(i.indexOf(n),1)}}(Eh=bh||(bh={})).PROCESSING="mdc-switch--processing",Eh.SELECTED="mdc-switch--selected",Eh.UNSELECTED="mdc-switch--unselected",(_h||(_h={})).RIPPLE=".mdc-switch__ripple";var Ah=new WeakMap; /** * @license * Copyright 2021 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var Ch=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mi(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.observe(this.adapter.state,{disabled:this.onDisabledChange,processing:this.onProcessingChange,selected:this.onSelectedChange})},e.prototype.initFromDOM=function(){this.setObserversEnabled(this.adapter.state,!1),this.adapter.state.selected=this.adapter.hasClass(bh.SELECTED),this.onSelectedChange(),this.adapter.state.disabled=this.adapter.isDisabled(),this.adapter.state.processing=this.adapter.hasClass(bh.PROCESSING),this.setObserversEnabled(this.adapter.state,!0),this.stopProcessingIfDisabled()},e.prototype.onDisabledChange=function(){this.adapter.setDisabled(this.adapter.state.disabled)},e.prototype.onProcessingChange=function(){this.toggleClass(this.adapter.state.processing,bh.PROCESSING)},e.prototype.onSelectedChange=function(){this.adapter.setAriaChecked(String(this.adapter.state.selected)),this.toggleClass(this.adapter.state.selected,bh.SELECTED),this.toggleClass(!this.adapter.state.selected,bh.UNSELECTED)},e.prototype.toggleClass=function(t,e){t?this.adapter.addClass(e):this.adapter.removeClass(e)},e}(function(t){function e(e){var n=t.call(this,e)||this;return n.handleClick=n.handleClick.bind(n),n}return Mi(e,t),e.prototype.init=function(){this.observe(this.adapter.state,{disabled:this.stopProcessingIfDisabled,processing:this.stopProcessingIfDisabled})},e.prototype.handleClick=function(){this.adapter.state.disabled||(this.adapter.state.selected=!this.adapter.state.selected)},e.prototype.stopProcessingIfDisabled=function(){this.adapter.state.disabled&&(this.adapter.state.processing=!1)},e}(function(t){function e(e){var n=t.call(this,e)||this;return n.unobserves=new Set,n}return Mi(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unobserve()},e.prototype.observe=function(t,e){var n,r,i=this,a=[];try{for(var o=Ni(Object.keys(e)),s=o.next();!s.done;s=o.next()){var l=s.value,c=e[l].bind(this);a.push(this.observeProperty(t,l,c))}}catch(d){n={error:d}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var u=function(){var t,e;try{for(var n=Ni(a),r=n.next();!r.done;r=n.next()){(0,r.value)()}}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}i.unobserves.delete(u)};return this.unobserves.add(u),u},e.prototype.observeProperty=function(t,e,n){return Sh(t,e,n)},e.prototype.setObserversEnabled=function(t,e){!function(t,e){var n=Ah.get(t);n&&(n.isEnabled=e)}(t,e)},e.prototype.unobserve=function(){var t,e;try{for(var n=Ni(Pi([],ki(this.unobserves))),r=n.next();!r.done;r=n.next()){(0,r.value)()}}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e}(Fi))),wh=dr('
'),xh=dr('
'),Oh=dr(''); /** * @license * Copyright 2021 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */function Rh(t,e){var n;Bt(e,!0);let r=()=>{};function i(t){return t===r}let a,o=Ii(e,"use",19,()=>[]),s=Ii(e,"class",3,""),l=Ii(e,"disabled",15,!1),c=Ii(e,"focusRing",3,!1),u=Ii(e,"color",3,"primary"),d=Ii(e,"group",11,r),h=Ii(e,"checked",15,r),p=Ii(e,"value",3,null),f=Ii(e,"processing",7,!1),m=Ii(e,"icons",3,!0),v=Ii(e,"icons$use",19,()=>[]),g=Ii(e,"icons$class",3,""),y=Ei(e,["$$slots","$$events","$$legacy","use","class","disabled","focusRing","color","group","checked","value","processing","icons","icons$use","icons$class"]),b=Ie(void 0),E=Re({}),_=Ie(void 0),T=Ie(!1),I=Re(null!=(n=Ft("SMUI:generic:input:props"))?n:{}),S=Ie(Re(i(d())?!i(h())&&h():-1!==d().findIndex(t=>t===p()))),A={get disabled(){return l()},set disabled(t){l(t)},get processing(){return f()},set processing(t){f(t)},get selected(){return Vn(S)},set selected(t){Ae(S,t,!0)}},C=h(),w=i(d())?[]:[...d()],x=Vn(S);Ye(()=>{let t=!1;if(!i(d()))if(x!==Vn(S)){const e=d().findIndex(t=>t===p());Vn(S)&&-1===e?d().push(p()):Vn(S)||-1===e||d().splice(e,1),t=!0}else{const t=w.findIndex(t=>t===p()),e=d().findIndex(t=>t===p());t>-1&&-1===e?A.selected=!1:e>-1&&-1===t&&(A.selected=!0)}i(h())?x!==Vn(S)&&(t=!0):h()!==Vn(S)&&(h()===C?(h(Vn(S)),t=!0):A.selected=h()),C=h(),w=i(d())?[]:[...d()],x=Vn(S),t&&N()&&Ra(N(),"SMUISwitchChange",{selected:Vn(S),value:p()})});const O=Ft("SMUI:generic:input:mount"),R=Ft("SMUI:generic:input:unmount");function L(t){return t in E?E[t]:N().classList.contains(t)}function M(t){E[t]||(E[t]=!0)}function D(t){t in E&&!E[t]||(E[t]=!1)}function N(){return a}Si(()=>{Ae(b,new Ch({addClass:M,hasClass:L,isDisabled:()=>l(),removeClass:D,setAriaChecked:()=>{},setDisabled:t=>{l(t)},state:A}),!0);const t={get element(){return N()},get checked(){return Vn(S)},set checked(t){Vn(S)!==t&&(A.selected=t,N()&&Ra(N(),"SMUISwitchChange",{selected:t,value:p()}))},activateRipple(){l()||Ae(T,!0)},deactivateRipple(){Ae(T,!1)}};return O&&O(t),Vn(b).init(),Vn(b).initFromDOM(),()=>{var e;R&&R(t),null==(e=Vn(b))||e.destroy()}});var k={getId:function(){return I&&I.id},getElement:N},P=Oh(),F=t=>{var n;Vn(b)&&Vn(b).handleClick(),null==(n=e.onclick)||n.call(e,t),t.stopPropagation(),t.currentTarget.blur()};Yr(P,(t,e)=>({class:t,type:"button",role:"switch","aria-checked":Vn(S)?"true":"false",disabled:l(),...I,...e,onclick:F}),[()=>Oa({"mdc-switch":!0,"mdc-switch--unselected":!Vn(S),"mdc-switch--selected":Vn(S),"mdc-switch--processing":f(),"smui-switch--color-secondary":"secondary"===u(),...E,[s()]:!0}),()=>La(y,["icons$"])]);var H=$e(je(P),2),B=je(H),U=$e(je(B),2);li(U,t=>Ae(_,t),()=>Vn(_));var j=$e(U,2),V=t=>{var e=wh();Yr(e,(t,e)=>({class:t,...e}),[()=>Oa({"mdc-switch__icons":!0,[g()]:!0}),()=>Ma(y,"icons$")]),Dr(e,(t,e)=>null==Na?void 0:Na(t,e),v),vr(t,e)};_r(j,t=>{m()&&t(V)});var $=$e(H,2),W=t=>{vr(t,xh())};return _r($,t=>{c()&&t(W)}),li(P,t=>a=t,()=>a),Dr(P,(t,e)=>null==Na?void 0:Na(t,e),o),Dr(P,(t,e)=>null==Oo?void 0:Oo(t,e),()=>({unbounded:!0,color:u(),active:Vn(T),rippleElement:Vn(_),disabled:l(),addClass:M,removeClass:D})),vr(t,P),Ut(k)} /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var Lh={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},Mh=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.shakeAnimationEndHandler=function(){r.handleShakeAnimationEnd()},r}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Lh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.getWidth=function(){return this.adapter.getWidth()},e.prototype.shake=function(t){var n=e.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.float=function(t){var n=e.cssClasses,r=n.LABEL_FLOAT_ABOVE,i=n.LABEL_SHAKE;t?this.adapter.addClass(r):(this.adapter.removeClass(r),this.adapter.removeClass(i))},e.prototype.setRequired=function(t){var n=e.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.handleShakeAnimationEnd=function(){var t=e.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},e}(Fi),Dh={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},Nh=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.transitionEndHandler=function(t){r.handleTransitionEnd(t)},r}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Dh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},e.prototype.activate=function(){this.adapter.removeClass(Dh.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(Dh.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter.addClass(Dh.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var e=this.adapter.hasClass(Dh.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter.removeClass(Dh.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(Dh.LINE_RIPPLE_DEACTIVATING))},e}(Fi),kh={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},Ph={NOTCH_ELEMENT_PADDING:8},Fh={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},Hh=function(t){function e(n){return t.call(this,Di(Di({},e.defaultAdapter),n))||this}return Mi(e,t),Object.defineProperty(e,"strings",{get:function(){return kh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return Fh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Ph},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.notch=function(t){var n=e.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=Ph.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(t),this.adapter.addClass(n)},e.prototype.closeNotch=function(){var t=e.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(t),this.adapter.removeNotchWidthProperty()},e}(Fi),Bh={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},Uh={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"},jh={LABEL_SCALE:.75},Vh=["pattern","min","max","required","step","minlength","maxlength"],$h=["color","date","datetime-local","month","range","time","week"],Wh=["mousedown","touchstart"],zh=["click","keydown"],Gh=function(t){function e(n,r){void 0===r&&(r={});var i=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return i.isFocused=!1,i.receivedUserInput=!1,i.valid=!0,i.useNativeValidation=!0,i.validateOnValueChange=!0,i.helperText=r.helperText,i.characterCounter=r.characterCounter,i.leadingIcon=r.leadingIcon,i.trailingIcon=r.trailingIcon,i.inputFocusHandler=function(){i.activateFocus()},i.inputBlurHandler=function(){i.deactivateFocus()},i.inputInputHandler=function(){i.handleInput()},i.setPointerXOffset=function(t){i.setTransformOrigin(t)},i.textFieldInteractionHandler=function(){i.handleTextFieldInteraction()},i.validationAttributeChangeHandler=function(t){i.handleValidationAttributeChange(t)},i}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Uh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Bh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return jh},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldAlwaysFloat",{get:function(){var t=this.getNativeInput().type;return $h.indexOf(t)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t,e,n,r;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var i=Ni(Wh),a=i.next();!a.done;a=i.next()){var o=a.value;this.adapter.registerInputInteractionHandler(o,this.setPointerXOffset)}}catch(c){t={error:c}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}try{for(var s=Ni(zh),l=s.next();!l.done;l=s.next()){o=l.value;this.adapter.registerTextFieldInteractionHandler(o,this.textFieldInteractionHandler)}}catch(u){n={error:u}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},e.prototype.destroy=function(){var t,e,n,r;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var i=Ni(Wh),a=i.next();!a.done;a=i.next()){var o=a.value;this.adapter.deregisterInputInteractionHandler(o,this.setPointerXOffset)}}catch(c){t={error:c}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}try{for(var s=Ni(zh),l=s.next();!l.done;l=s.next()){o=l.value;this.adapter.deregisterTextFieldInteractionHandler(o,this.textFieldInteractionHandler)}}catch(u){n={error:u}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},e.prototype.handleTextFieldInteraction=function(){var t=this.adapter.getNativeInput();t&&t.disabled||(this.receivedUserInput=!0)},e.prototype.handleValidationAttributeChange=function(t){var e=this;t.some(function(t){return Vh.indexOf(t)>-1&&(e.styleValidity(!0),e.adapter.setLabelRequired(e.getNativeInput().required),!0)}),t.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},e.prototype.notchOutline=function(t){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(t){var e=this.adapter.getLabelWidth()*jh.LABEL_SCALE;this.adapter.notchOutline(e)}else this.adapter.closeOutline()},e.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText||!this.helperText.isPersistent()&&this.helperText.isValidation()&&this.valid||this.helperText.showToScreenReader()},e.prototype.setTransformOrigin=function(t){if(!this.isDisabled()&&!this.adapter.hasOutline()){var e=t.touches,n=e?e[0]:t,r=n.target.getBoundingClientRect(),i=n.clientX-r.left;this.adapter.setLineRippleTransformOrigin(i)}},e.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},e.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},e.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var t=this.isValid();this.styleValidity(t),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},e.prototype.getValue=function(){return this.getNativeInput().value},e.prototype.setValue=function(t){if(this.getValue()!==t&&(this.getNativeInput().value=t),this.setcharacterCounter(t.length),this.validateOnValueChange){var e=this.isValid();this.styleValidity(e)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},e.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},e.prototype.setValid=function(t){this.valid=t,this.styleValidity(t);var e=!t&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(e)},e.prototype.setValidateOnValueChange=function(t){this.validateOnValueChange=t},e.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},e.prototype.setUseNativeValidation=function(t){this.useNativeValidation=t},e.prototype.isDisabled=function(){return this.getNativeInput().disabled},e.prototype.setDisabled=function(t){this.getNativeInput().disabled=t,this.styleDisabled(t)},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon&&this.trailingIcon.setAriaLabel(t)},e.prototype.setTrailingIconContent=function(t){this.trailingIcon&&this.trailingIcon.setContent(t)},e.prototype.setcharacterCounter=function(t){if(this.characterCounter){var e=this.getNativeInput().maxLength;if(-1===e)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(t,e)}},e.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},e.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},e.prototype.styleValidity=function(t){var n=e.cssClasses.INVALID;if(t?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText){if(this.helperText.setValidity(t),!this.helperText.isValidation())return;var r=this.helperText.isVisible(),i=this.helperText.getId();r&&i?this.adapter.setInputAttr(Bh.ARIA_DESCRIBEDBY,i):this.adapter.removeInputAttr(Bh.ARIA_DESCRIBEDBY)}},e.prototype.styleFocused=function(t){var n=e.cssClasses.FOCUSED;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.styleDisabled=function(t){var n=e.cssClasses,r=n.DISABLED,i=n.INVALID;t?(this.adapter.addClass(r),this.adapter.removeClass(i)):this.adapter.removeClass(r),this.leadingIcon&&this.leadingIcon.setDisabled(t),this.trailingIcon&&this.trailingIcon.setDisabled(t)},e.prototype.styleFloating=function(t){var n=e.cssClasses.LABEL_FLOATING;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},e}(Fi),Xh={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},Kh={ROOT:"mdc-text-field__icon"},qh=["click","keydown"],Zh=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.savedTabIndex=null,r.interactionHandler=function(t){r.handleInteraction(t)},r}return Mi(e,t),Object.defineProperty(e,"strings",{get:function(){return Xh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return Kh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t,e;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=Ni(qh),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.registerInteractionHandler(i,this.interactionHandler)}}catch(a){t={error:a}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.destroy=function(){var t,e;try{for(var n=Ni(qh),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterInteractionHandler(i,this.interactionHandler)}}catch(a){t={error:a}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.setDisabled=function(t){this.savedTabIndex&&(t?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",Xh.ICON_ROLE)))},e.prototype.setAriaLabel=function(t){this.adapter.setAttr("aria-label",t)},e.prototype.setContent=function(t){this.adapter.setContent(t)},e.prototype.handleInteraction=function(t){var e="Enter"===t.key||13===t.keyCode;("click"===t.type||e)&&(t.preventDefault(),this.adapter.notifyIconAction())},e}(Fi),Yh=dr(""),Qh=dr(""); /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */function Jh(t,e){var n;Bt(e,!0);let r,i=Ii(e,"use",19,()=>[]),a=Ii(e,"class",3,""),o=Ii(e,"style",3,""),s=Ii(e,"floatAbove",15,!1),l=Ii(e,"required",15,!1),c=Ii(e,"wrapped",3,!1),u=Ei(e,["$$slots","$$events","$$legacy","use","class","style","for","floatAbove","required","wrapped","children"]),d=Ie(void 0),h=new Da,p=Re({}),f=Re({}),m=null!=(n=Ft("SMUI:generic:input:props"))?n:{},v=s();Ye(()=>{Vn(d)&&v!==s()&&(v=s(),Vn(d).float(s()))});let g=l();Ye(()=>{Vn(d)&&g!==l()&&(g=l(),Vn(d).setRequired(l()))});const y=Ft("SMUI:floating-label:mount"),b=Ft("SMUI:floating-label:unmount");function E(t){p[t]||(p[t]=!0)}function _(t){t in p&&!p[t]||(p[t]=!1)}function T(t,e){f[t]!=e&&(""===e||null==e?delete f[t]:f[t]=e)}function I(t){t in f&&delete f[t]}function S(){return r}Si(()=>{Ae(d,new Mh({addClass:E,removeClass:_,getWidth:()=>{var t,e;const n=S(),r=n.cloneNode(!0);null==(t=n.parentNode)||t.appendChild(r),r.classList.add("smui-floating-label--remove-transition"),r.classList.add("smui-floating-label--force-size"),r.classList.remove("mdc-floating-label--float-above");const i=r.scrollWidth;return null==(e=n.parentNode)||e.removeChild(r),i},registerInteractionHandler:(t,e)=>h.on(S(),t,e),deregisterInteractionHandler:(t,e)=>h.off(S(),t,e)}),!0);const t={get element(){return S()},addStyle:T,removeStyle:I};return y&&y(t),Vn(d).init(),()=>{var e;b&&b(t),null==(e=Vn(d))||e.destroy(),h.clear()}});var A={shake:function(t){var e;null==(e=Vn(d))||e.shake(t)},float:function(t){s(t)},setRequired:function(t){l(t)},getWidth:function(){if(null==Vn(d))throw new Error("Instance is undefined.");return Vn(d).getWidth()},getElement:S},C=mr(),w=Ve(C),x=t=>{var n=Yh();Yr(n,(t,e)=>({class:t,style:e,...u}),[()=>Oa({"mdc-floating-label":!0,"mdc-floating-label--float-above":s(),"mdc-floating-label--required":l(),...p,[a()]:!0}),()=>Object.entries(f).map(([t,e])=>"".concat(t,": ").concat(e,";")).concat([o()]).join(" ")]),Rr(je(n),()=>{var t;return null!=(t=e.children)?t:ot}),li(n,t=>r=t,()=>r),Dr(n,(t,e)=>null==Na?void 0:Na(t,e),i),vr(t,n)},O=t=>{var n=Qh();Yr(n,(t,n)=>({class:t,style:n,for:e.for||(m?m.id:void 0),...u}),[()=>Oa({"mdc-floating-label":!0,"mdc-floating-label--float-above":s(),"mdc-floating-label--required":l(),...p,[a()]:!0}),()=>Object.entries(f).map(([t,e])=>"".concat(t,": ").concat(e,";")).concat([o()]).join(" ")]),Rr(je(n),()=>{var t;return null!=(t=e.children)?t:ot}),li(n,t=>r=t,()=>r),Dr(n,(t,e)=>null==Na?void 0:Na(t,e),i),vr(t,n)};return _r(w,t=>{c()?t(x):t(O,!1)}),vr(t,C),Ut(A)}var tp=dr("
");function ep(t,e){Bt(e,!0);let n,r=Ii(e,"use",19,()=>[]),i=Ii(e,"class",3,""),a=Ii(e,"style",3,""),o=Ii(e,"active",3,!1),s=Ei(e,["$$slots","$$events","$$legacy","use","class","style","active"]),l=Ie(void 0),c=new Da,u=Re({}),d=Re({});function h(t){return t in u?u[t]:v().classList.contains(t)}function p(t){u[t]||(u[t]=!0)}function f(t){t in u&&!u[t]||(u[t]=!1)}function m(t,e){d[t]!=e&&(""===e||null==e?delete d[t]:d[t]=e)}function v(){return n}Si(()=>(Ae(l,new Nh({addClass:p,removeClass:f,hasClass:h,setStyle:m,registerEventHandler:(t,e)=>c.on(v(),t,e),deregisterEventHandler:(t,e)=>c.off(v(),t,e)}),!0),Vn(l).init(),()=>{var t;null==(t=Vn(l))||t.destroy(),c.clear()}));var g={activate:function(){var t;null==(t=Vn(l))||t.activate()},deactivate:function(){var t;null==(t=Vn(l))||t.deactivate()},setRippleCenter:function(t){var e;null==(e=Vn(l))||e.setRippleCenter(t)},getElement:v},y=tp();return Yr(y,(t,e)=>({class:t,style:e,...s}),[()=>Oa({"mdc-line-ripple":!0,"mdc-line-ripple--active":o(),...u,[i()]:!0}),()=>Object.entries(d).map(([t,e])=>"".concat(t,": ").concat(e,";")).concat([a()]).join(" ")]),li(y,t=>n=t,()=>n),Dr(y,(t,e)=>null==Na?void 0:Na(t,e),r),vr(t,y),Ut(g)}var np=dr('
'),rp=dr('
');function ip(t,e){Bt(e,!0);let n,r,i=Ii(e,"use",19,()=>[]),a=Ii(e,"class",3,""),o=Ii(e,"notched",3,!1),s=Ii(e,"noLabel",3,!1),l=Ei(e,["$$slots","$$events","$$legacy","use","class","notched","noLabel","children"]),c=Ie(void 0),u=Ie(void 0),d=Re({}),h=Re({});function p(t){d[t]||(d[t]=!0)}function f(t){t in d&&!d[t]||(d[t]=!1)}Ye(()=>{Vn(u)!==r&&(Vn(u)?(Vn(u).addStyle("transition-duration","0s"),p("mdc-notched-outline--upgraded"),requestAnimationFrame(()=>{Vn(u)&&Vn(u).removeStyle("transition-duration")})):f("mdc-notched-outline--upgraded"),r=Vn(u))}),Ht("SMUI:floating-label:mount",t=>{Ae(u,t,!0)}),Ht("SMUI:floating-label:unmount",()=>{Ae(u,void 0)}),Si(()=>(Ae(c,new Hh({addClass:p,removeClass:f,setNotchWidthProperty:t=>{return n=t+"px",void(h[e="width"]!=n&&(""===n||null==n?delete h[e]:h[e]=n));var e,n},removeNotchWidthProperty:()=>{var t;(t="width")in h&&delete h[t]}}),!0),Vn(c).init(),()=>{var t;null==(t=Vn(c))||t.destroy()}));var m={notch:function(t){var e;null==(e=Vn(c))||e.notch(t)},closeNotch:function(){var t;null==(t=Vn(c))||t.closeNotch()},getElement:function(){return n}},v=rp();Yr(v,t=>({class:t,...l}),[()=>Oa({"mdc-notched-outline":!0,"mdc-notched-outline--notched":o(),"mdc-notched-outline--no-label":s(),...d,[a()]:!0})]);var g=$e(je(v),2),y=t=>{var n=np();Rr(je(n),()=>{var t;return null!=(t=e.children)?t:ot}),en(t=>Vr(n,t),[()=>Object.entries(h).map(([t,e])=>"".concat(t,": ").concat(e,";")).join(" ")]),vr(t,n)};return _r(g,t=>{s()||t(y)}),li(v,t=>n=t,()=>n),Dr(v,(t,e)=>null==Na?void 0:Na(t,e),i),vr(t,v),Ut(m)}var ap=dr("
");function op(t,e){Bt(e,!0);let n,r=Ii(e,"use",19,()=>[]),i=Ii(e,"class",3,""),a=Ii(e,"variant",3,"raised"),o=Ii(e,"square",3,!1),s=Ii(e,"color",3,"default"),l=Ii(e,"elevation",3,1),c=Ii(e,"transition",3,!1),u=Ei(e,["$$slots","$$events","$$legacy","use","class","variant","square","color","elevation","transition","children"]);var d={getElement:function(){return n}},h=ap();return Yr(h,t=>({class:t,...u}),[()=>Oa({"smui-paper":!0,"smui-paper--raised":"raised"===a(),"smui-paper--unelevated":"unelevated"===a(),"smui-paper--outlined":"outlined"===a(),["smui-paper--elevation-z"+l()]:0!==l()&&"raised"===a(),"smui-paper--rounded":!o(),["smui-paper--color-"+s()]:"default"!==s(),"smui-paper-transition":c(),[i()]:!0})]),Rr(je(h),()=>{var t;return null!=(t=e.children)?t:ot}),li(h,t=>n=t,()=>n),Dr(h,(t,e)=>null==Na?void 0:Na(t,e),r),vr(t,h),Ut(d)}function sp(t,e){Bt(e,!0);let n,r=Ei(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return li(Xa(t,Ti({_smuiClass:"smui-paper__content",tag:"div"},()=>r,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n),Ut(i)}function lp(t,e){Bt(e,!0);let n,r=Ei(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return li(Xa(t,Ti({_smuiClass:"smui-paper__title",tag:"h5"},()=>r,{children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>n=t,()=>n),Ut(i)} /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var cp,up,dp,hp,pp={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},fp={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},mp={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};(up=cp||(cp={}))[up.BOTTOM=1]="BOTTOM",up[up.CENTER=2]="CENTER",up[up.RIGHT=4]="RIGHT",up[up.FLIP_RTL=8]="FLIP_RTL",(hp=dp||(dp={}))[hp.TOP_LEFT=0]="TOP_LEFT",hp[hp.TOP_RIGHT=4]="TOP_RIGHT",hp[hp.BOTTOM_LEFT=1]="BOTTOM_LEFT",hp[hp.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",hp[hp.TOP_START=8]="TOP_START",hp[hp.TOP_END=12]="TOP_END",hp[hp.BOTTOM_START=9]="BOTTOM_START",hp[hp.BOTTOM_END=13]="BOTTOM_END"; /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var vp,gp,yp=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.isSurfaceOpen=!1,r.isQuickOpen=!1,r.isHoistedElement=!1,r.isFixedPosition=!1,r.isHorizontallyCenteredOnViewport=!1,r.maxHeight=0,r.openBottomBias=0,r.openAnimationEndTimerId=0,r.closeAnimationEndTimerId=0,r.animationRequestId=0,r.anchorCorner=dp.TOP_START,r.originCorner=dp.TOP_START,r.anchorMargin={top:0,right:0,bottom:0,left:0},r.position={x:0,y:0},r}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return pp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return fp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return mp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"Corner",{get:function(){return dp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=e.cssClasses,n=t.ROOT,r=t.OPEN;if(!this.adapter.hasClass(n))throw new Error(n+" class required in root element.");this.adapter.hasClass(r)&&(this.isSurfaceOpen=!0)},e.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},e.prototype.setAnchorCorner=function(t){this.anchorCorner=t},e.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^cp.RIGHT},e.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},e.prototype.setIsHoisted=function(t){this.isHoistedElement=t},e.prototype.setFixedPosition=function(t){this.isFixedPosition=t},e.prototype.isFixed=function(){return this.isFixedPosition},e.prototype.setAbsolutePosition=function(t,e){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(e)?e:0},e.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},e.prototype.setQuickOpen=function(t){this.isQuickOpen=t},e.prototype.setMaxHeight=function(t){this.maxHeight=t},e.prototype.setOpenBottomBias=function(t){this.openBottomBias=t},e.prototype.isOpen=function(){return this.isSurfaceOpen},e.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(e.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(e.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(e.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout(function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(e.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()},mp.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},e.prototype.close=function(t){var n=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(e.cssClasses.OPEN),this.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(e.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){n.adapter.removeClass(e.cssClasses.OPEN),n.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout(function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(e.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()},mp.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},e.prototype.handleBodyClick=function(t){var e=t.target;this.adapter.isElementInContainer(e)||this.close()},e.prototype.handleKeydown=function(t){var e=t.keyCode;("Escape"===t.key||27===e)&&this.close()},e.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var n=this.getoriginCorner(),r=this.getMenuSurfaceMaxHeight(n),i=this.hasBit(n,cp.BOTTOM)?"bottom":"top",a=this.hasBit(n,cp.RIGHT)?"right":"left",o=this.getHorizontalOriginOffset(n),s=this.getVerticalOriginOffset(n),l=this.measurements,c=l.anchorSize,u=l.surfaceSize,d=((t={})[a]=o,t[i]=s,t);c.width/u.width>mp.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(a="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(d),this.adapter.setTransformOrigin(a+" "+i),this.adapter.setPosition(d),this.adapter.setMaxHeight(r?r+"px":""),this.hasBit(n,cp.BOTTOM)||this.adapter.addClass(e.cssClasses.IS_OPEN_BELOW)},e.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),e=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),r=this.adapter.getWindowScroll();return t||(t={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:t,bodySize:e,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:n.width-t.right,bottom:n.height-t.bottom,left:t.left},viewportSize:n,windowScroll:r}},e.prototype.getoriginCorner=function(){var t,n,r=this.originCorner,i=this.measurements,a=i.viewportDistance,o=i.anchorSize,s=i.surfaceSize,l=e.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,cp.BOTTOM)?(t=a.top-l+this.anchorMargin.bottom,n=a.bottom-l-this.anchorMargin.bottom):(t=a.top-l+this.anchorMargin.top,n=a.bottom-l+o.height-this.anchorMargin.top),!(n-s.height>0)&&t>n+this.openBottomBias&&(r=this.setBit(r,cp.BOTTOM));var c,u,d=this.adapter.isRtl(),h=this.hasBit(this.anchorCorner,cp.FLIP_RTL),p=this.hasBit(this.anchorCorner,cp.RIGHT)||this.hasBit(r,cp.RIGHT),f=!1;(f=d&&h?!p:p)?(c=a.left+o.width+this.anchorMargin.right,u=a.right-this.anchorMargin.right):(c=a.left+this.anchorMargin.left,u=a.right+o.width-this.anchorMargin.left);var m=c-s.width>0,v=u-s.width>0,g=this.hasBit(r,cp.FLIP_RTL)&&this.hasBit(r,cp.RIGHT);return v&&g&&d||!m&&g?r=this.unsetBit(r,cp.RIGHT):(m&&f&&d||m&&!f&&p||!v&&c>=u)&&(r=this.setBit(r,cp.RIGHT)),r},e.prototype.getMenuSurfaceMaxHeight=function(t){if(this.maxHeight>0)return this.maxHeight;var n=this.measurements.viewportDistance,r=0,i=this.hasBit(t,cp.BOTTOM),a=this.hasBit(this.anchorCorner,cp.BOTTOM),o=e.numbers.MARGIN_TO_EDGE;return i?(r=n.top+this.anchorMargin.top-o,a||(r+=this.measurements.anchorSize.height)):(r=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-o,a&&(r-=this.measurements.anchorSize.height)),r},e.prototype.getHorizontalOriginOffset=function(t){var e=this.measurements.anchorSize,n=this.hasBit(t,cp.RIGHT),r=this.hasBit(this.anchorCorner,cp.RIGHT);if(n){var i=r?e.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?i-(this.measurements.viewportSize.width-this.measurements.bodySize.width):i}return r?e.width-this.anchorMargin.right:this.anchorMargin.left},e.prototype.getVerticalOriginOffset=function(t){var e=this.measurements.anchorSize,n=this.hasBit(t,cp.BOTTOM),r=this.hasBit(this.anchorCorner,cp.BOTTOM);return n?r?e.height-this.anchorMargin.top:-this.anchorMargin.bottom:r?e.height+this.anchorMargin.bottom:this.anchorMargin.top},e.prototype.adjustPositionForHoistedElement=function(t){var e,n,r=this.measurements,i=r.windowScroll,a=r.viewportDistance,o=r.surfaceSize,s=r.viewportSize,l=Object.keys(t);try{for(var c=Ni(l),u=c.next();!u.done;u=c.next()){var d=u.value,h=t[d]||0;!this.isHorizontallyCenteredOnViewport||"left"!==d&&"right"!==d?(h+=a[d],this.isFixedPosition||("top"===d?h+=i.y:"bottom"===d?h-=i.y:"left"===d?h+=i.x:h-=i.x),t[d]=h):t[d]=(s.width-o.width)/2}}catch(p){e={error:p}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}},e.prototype.maybeRestoreFocus=function(){var t=this,e=this.adapter.isFocused(),n=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,r=n.activeElement&&this.adapter.isElementInContainer(n.activeElement);(e||r)&&setTimeout(function(){t.adapter.restoreFocus()},mp.TOUCH_EVENT_WAIT_MS)},e.prototype.hasBit=function(t,e){return Boolean(t&e)},e.prototype.setBit=function(t,e){return t|e},e.prototype.unsetBit=function(t,e){return t^e},e.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},e}(Fi),bp={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},Ep={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},_p={FOCUS_ROOT_INDEX:-1}; /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */(gp=vp||(vp={}))[gp.NONE=0]="NONE",gp[gp.LIST_ROOT=1]="LIST_ROOT",gp[gp.FIRST_ITEM=2]="FIRST_ITEM",gp[gp.LAST_ITEM=3]="LAST_ITEM"; /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var Tp=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.closeAnimationEndTimerId=0,r.defaultFocusState=vp.LIST_ROOT,r.selectedIndex=-1,r}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return bp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Ep},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return _p},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},e.prototype.handleKeydown=function(t){var e=t.key,n=t.keyCode;("Tab"===e||9===n)&&this.adapter.closeSurface(!0)},e.prototype.handleItemAction=function(t){var e=this,n=this.adapter.getElementIndex(t);if(!(n<0)){this.adapter.notifySelected({index:n});var r="true"===this.adapter.getAttributeFromElementAtIndex(n,Ep.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(r),this.closeAnimationEndTimerId=setTimeout(function(){var n=e.adapter.getElementIndex(t);n>=0&&e.adapter.isSelectableItemAtIndex(n)&&e.setSelectedIndex(n)},yp.numbers.TRANSITION_CLOSE_DURATION)}},e.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case vp.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case vp.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case vp.NONE:break;default:this.adapter.focusListRoot()}},e.prototype.setDefaultFocusState=function(t){this.defaultFocusState=t},e.prototype.getSelectedIndex=function(){return this.selectedIndex},e.prototype.setSelectedIndex=function(t){if(this.validatedIndex(t),!this.adapter.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var e=this.adapter.getSelectedSiblingOfItemAtIndex(t);e>=0&&(this.adapter.removeAttributeFromElementAtIndex(e,Ep.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(e,bp.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,bp.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,Ep.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=t},e.prototype.setEnabled=function(t,e){this.validatedIndex(t),e?(this.adapter.removeClassFromElementAtIndex(t,Ka.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,Ep.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,Ka.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,Ep.ARIA_DISABLED_ATTR,"true"))},e.prototype.validatedIndex=function(t){var e=this.adapter.getMenuItemCount();if(!(t>=0&&t=this.adapter.getMenuItemCount()||(t===Ap.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(t).trim()),this.adapter.setSelectedIndex(t),e&&this.adapter.closeMenu(),n||this.lastSelectedIndex===t||this.handleChange(),this.lastSelectedIndex=t)},e.prototype.setValue=function(t,e){void 0===e&&(e=!1);var n=this.adapter.getMenuItemValues().indexOf(t);this.setSelectedIndex(n,!1,e)},e.prototype.getValue=function(){var t=this.adapter.getSelectedIndex(),e=this.adapter.getMenuItemValues();return t!==Ap.UNSET_INDEX?e[t]:""},e.prototype.getDisabled=function(){return this.disabled},e.prototype.setDisabled=function(t){this.disabled=t,this.disabled?(this.adapter.addClass(Ip.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(Ip.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},e.prototype.openMenu=function(){this.adapter.addClass(Ip.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.layout=function(){if(this.adapter.hasLabel()){var t=this.getValue().length>0,e=this.adapter.hasClass(Ip.FOCUSED),n=t||e,r=this.adapter.hasClass(Ip.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(r)}},e.prototype.layoutOptions=function(){var t=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(t,!1,!0)},e.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var t=this.getSelectedIndex(),e=t>=0?t:0;this.adapter.focusMenuItemAtIndex(e)}},e.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},e.prototype.handleMenuClosed=function(){this.adapter.removeClass(Ip.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},e.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(Ip.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.handleMenuItemAction=function(t){this.setSelectedIndex(t,!0)},e.prototype.handleFocus=function(){this.adapter.addClass(Ip.FOCUSED),this.layout(),this.adapter.activateBottomLine()},e.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},e.prototype.handleClick=function(t){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(t),this.openMenu()))},e.prototype.handleKeydown=function(t){if(!this.isMenuOpen&&this.adapter.hasClass(Ip.FOCUSED)){var e=xa(t)===Qi,n=xa(t)===Ji,r=xa(t)===aa,i=xa(t)===sa;if(!(t.ctrlKey||t.metaKey)&&(!n&&t.key&&1===t.key.length||n&&this.adapter.isTypeaheadInProgress())){var a=n?" ":t.key,o=this.adapter.typeaheadMatchItem(a,this.getSelectedIndex());return o>=0&&this.setSelectedIndex(o),void t.preventDefault()}(e||n||r||i)&&(this.openMenu(),t.preventDefault())}},e.prototype.notchOutline=function(t){if(this.adapter.hasOutline()){var e=this.adapter.hasClass(Ip.FOCUSED);if(t){var n=Ap.LABEL_SCALE,r=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(r)}else e||this.adapter.closeOutline()}},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},e.prototype.setUseDefaultValidation=function(t){this.useDefaultValidation=t},e.prototype.setValid=function(t){this.useDefaultValidation||(this.customValidity=t),this.adapter.setSelectAnchorAttr("aria-invalid",(!t).toString()),t?(this.adapter.removeClass(Ip.INVALID),this.adapter.removeMenuClass(Ip.MENU_INVALID)):(this.adapter.addClass(Ip.INVALID),this.adapter.addMenuClass(Ip.MENU_INVALID)),this.syncHelperTextValidity(t)},e.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(Ip.REQUIRED)&&!this.adapter.hasClass(Ip.DISABLED)?this.getSelectedIndex()!==Ap.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},e.prototype.setRequired=function(t){t?this.adapter.addClass(Ip.REQUIRED):this.adapter.removeClass(Ip.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",t.toString()),this.adapter.setLabelRequired(t)},e.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},e.prototype.init=function(){var t=this.adapter.getAnchorElement();t&&(this.adapter.setMenuAnchorElement(t),this.adapter.setMenuAnchorCorner(dp.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(Ip.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(Ip.INVALID)),this.layout(),this.layoutOptions()},e.prototype.blur=function(){this.adapter.removeClass(Ip.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(Ip.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.syncHelperTextValidity=function(t){if(this.helperText){this.helperText.setValidity(t);var e=this.helperText.isVisible(),n=this.helperText.getId();e&&n?this.adapter.setSelectAnchorAttr(Sp.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(Sp.ARIA_DESCRIBEDBY)}},e.prototype.setClickDebounceTimeout=function(){var t=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){t.recentlyClicked=!1},Ap.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},e}(Fi),wp={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},xp={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},Op=function(t){function e(n){return t.call(this,Di(Di({},e.defaultAdapter),n))||this}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return xp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return wp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),e.prototype.getId=function(){return this.adapter.getAttr("id")},e.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(wp.ARIA_HIDDEN)},e.prototype.setContent=function(t){this.adapter.setContent(t)},e.prototype.setValidation=function(t){t?this.adapter.addClass(xp.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(xp.HELPER_TEXT_VALIDATION_MSG)},e.prototype.setValidationMsgPersistent=function(t){t?this.adapter.addClass(xp.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(xp.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},e.prototype.getIsValidation=function(){return this.adapter.hasClass(xp.HELPER_TEXT_VALIDATION_MSG)},e.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(xp.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},e.prototype.setValidity=function(t){if(this.adapter.hasClass(xp.HELPER_TEXT_VALIDATION_MSG)){var e=this.adapter.hasClass(xp.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!t||e)return this.showToScreenReader(),void(t?this.adapter.removeAttr(wp.ROLE):this.adapter.setAttr(wp.ROLE,"alert"));this.adapter.removeAttr(wp.ROLE),this.hide()}},e.prototype.showToScreenReader=function(){this.adapter.removeAttr(wp.ARIA_HIDDEN)},e.prototype.hide=function(){this.adapter.setAttr(wp.ARIA_HIDDEN,"true")},e}(Fi),Rp=dr("
"); /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */function Lp(t,{addClass:e=e=>t.classList.add(e),removeClass:n=e=>t.classList.remove(e)}={}){return e("mdc-menu-surface--anchor"),{destroy(){n("mdc-menu-surface--anchor")}}}function Mp(t,e){Bt(e,!0);const{closest:n}=Bi;let r,i=Ii(e,"use",19,()=>[]),a=Ii(e,"class",3,""),o=Ii(e,"open",15,!1),s=Ii(e,"anchorElement",15),l=Ii(e,"managed",3,!1),c=Ei(e,["$$slots","$$events","$$legacy","use","class","open","anchorElement","managed","children"]),u=Ie(void 0),d=Ie(void 0),h=Ie(void 0);Ht("SMUI:menu-surface:mount",t=>{Vn(d)||Ae(d,t,!0)});const p=Ft("SMUI:list:mount");Ht("SMUI:list:mount",t=>{Vn(h)||Ae(h,t,!0),p&&p(t)});const f=Ft("SMUI:menu:mount"),m=Ft("SMUI:menu:unmount");function v(){return r.getElement()}Si(()=>(Ae(u,new Tp({addClassToElementAtIndex:(t,e)=>{if(null==Vn(h))throw new Error("List accessor is undefined.");Vn(h).addClassForElementIndex(t,e)},removeClassFromElementAtIndex:(t,e)=>{if(null==Vn(h))throw new Error("List accessor is undefined.");Vn(h).removeClassForElementIndex(t,e)},addAttributeToElementAtIndex:(t,e,n)=>{if(null==Vn(h))throw new Error("List accessor is undefined.");Vn(h).setAttributeForElementIndex(t,e,n)},removeAttributeFromElementAtIndex:(t,e)=>{if(null==Vn(h))throw new Error("List accessor is undefined.");Vn(h).removeAttributeForElementIndex(t,e)},getAttributeFromElementAtIndex:(t,e)=>{if(null==Vn(h))throw new Error("List accessor is undefined.");return Vn(h).getAttributeFromElementIndex(t,e)},elementContainsClass:(t,e)=>t.classList.contains(e),closeSurface:t=>{var e;l()||(null==(e=Vn(d))||e.closeProgrammatic(t),Ra(v(),"SMUIMenuClosedProgrammatically"))},getElementIndex:t=>{if(null==Vn(h))throw new Error("List accessor is undefined.");return Vn(h).getOrderedList().map(t=>t.element).indexOf(t)},notifySelected:t=>{if(null==Vn(h))throw new Error("List accessor is undefined.");Ra(v(),"SMUIMenuSelected",{index:t.index,item:Vn(h).getOrderedList()[t.index].element})},getMenuItemCount:()=>{if(null==Vn(h))throw new Error("List accessor is undefined.");return Vn(h).items.length},focusItemAtIndex:t=>{if(null==Vn(h))throw new Error("List accessor is undefined.");Vn(h).focusItemAtIndex(t)},focusListRoot:()=>{if(null==Vn(h))throw new Error("List accessor is undefined.");"focus"in Vn(h).element&&Vn(h).element.focus()},isSelectableItemAtIndex:t=>{if(null==Vn(h))throw new Error("List accessor is undefined.");return!!n(Vn(h).getOrderedList()[t].element,".".concat(bp.MENU_SELECTION_GROUP))},getSelectedSiblingOfItemAtIndex:t=>{if(null==Vn(h))throw new Error("List accessor is undefined.");const e=Vn(h).getOrderedList(),r=n(e[t].element,".".concat(bp.MENU_SELECTION_GROUP)),i=null==r?void 0:r.querySelector(".".concat(bp.MENU_SELECTED_LIST_ITEM));return i?e.map(t=>t.element).indexOf(i):-1}}),!0),f&&f(Vn(u)),Vn(u).init(),()=>{var t;m&&Vn(u)&&m(Vn(u)),null==(t=Vn(u))||t.destroy()}));var g={isOpen:function(){return o()},setOpen:function(t){o(t)},setDefaultFocusState:function(t){if(null==Vn(u))throw new Error("Instance is undefined.");Vn(u).setDefaultFocusState(t)},getSelectedIndex:function(){if(null==Vn(u))throw new Error("Instance is undefined.");return Vn(u).getSelectedIndex()},getMenuSurface:function(){return r},getElement:v};{let n=te(()=>Oa({"mdc-menu":!0,[a()]:!0}));li(function(t,e){Bt(e,!0);let n,r=Ii(e,"use",19,()=>[]),i=Ii(e,"class",3,""),a=Ii(e,"style",3,""),o=Ii(e,"static",3,!1),s=Ii(e,"anchor",3,!0),l=Ii(e,"fixed",3,!1),c=Ii(e,"open",31,()=>Re(o())),u=Ii(e,"managed",3,!1),d=Ii(e,"fullWidth",3,!1),h=Ii(e,"quickOpen",3,!1),p=Ii(e,"anchorElement",15),f=Ii(e,"anchorMargin",19,()=>({top:0,right:0,bottom:0,left:0})),m=Ii(e,"maxHeight",3,0),v=Ii(e,"horizontallyCenteredOnViewport",3,!1),g=Ii(e,"openBottomBias",3,0),y=Ii(e,"neverRestoreFocus",3,!1),b=Ei(e,["$$slots","$$events","$$legacy","use","class","style","static","anchor","fixed","open","managed","fullWidth","quickOpen","anchorElement","anchorCorner","anchorMargin","maxHeight","horizontallyCenteredOnViewport","openBottomBias","neverRestoreFocus","children"]),E=Ie(void 0),_=Re({}),T=Re({}),I=Ie(void 0);Ht("SMUI:list:role","menu"),Ht("SMUI:list:item:role","menuitem"),Ye(()=>{var t,e,r;n&&s()&&!(null==(t=n.parentElement)?void 0:t.classList.contains("mdc-menu-surface--anchor"))&&(null==(e=n.parentElement)||e.classList.add("mdc-menu-surface--anchor"),p(null!=(r=n.parentElement)?r:void 0))}),Ye(()=>{Vn(E)&&Vn(E).isOpen()!==c()&&(c()?Vn(E).open():Vn(E).close())}),Ye(()=>{Vn(E)&&Vn(E).setQuickOpen(h())}),Ye(()=>{Vn(E)&&Vn(E).setFixedPosition(l())}),Ye(()=>{Vn(E)&&Vn(E).setMaxHeight(m())}),Ye(()=>{Vn(E)&&Vn(E).setIsHorizontallyCenteredOnViewport(v())});const S=dp;Ye(()=>{Vn(E)&&null!=e.anchorCorner&&("string"==typeof e.anchorCorner?Vn(E).setAnchorCorner(S[e.anchorCorner]):Vn(E).setAnchorCorner(e.anchorCorner))}),Ye(()=>{Vn(E)&&Vn(E).setAnchorMargin(f())}),Ye(()=>{Vn(E)&&Vn(E).setOpenBottomBias(g())});const A=Ft("SMUI:menu-surface:mount"),C=Ft("SMUI:menu-surface:unmount");function w(t){return t in _?_[t]:L().classList.contains(t)}function x(t){_[t]||(_[t]=!0)}function O(t){t in _&&!_[t]||(_[t]=!1)}function R(t){var e;null==(e=Vn(E))||e.close(t),c(!1)}function L(){return n}Si(()=>{Ae(E,new yp({addClass:x,removeClass:O,hasClass:w,hasAnchor:()=>!!p(),notifyClose:()=>{u()||c(o()),c()||Ra(L(),"SMUIMenuSurfaceClosed")},notifyClosing:()=>{u()||c(o()),c()||Ra(L(),"SMUIMenuSurfaceClosing")},notifyOpen:()=>{u()||c(!0),c()&&Ra(L(),"SMUIMenuSurfaceOpened")},notifyOpening:()=>{c()||Ra(L(),"SMUIMenuSurfaceOpening")},isElementInContainer:t=>L().contains(t),isRtl:()=>"rtl"===getComputedStyle(L()).getPropertyValue("direction"),setTransformOrigin:t=>{T["transform-origin"]=t},isFocused:()=>document.activeElement===L(),saveFocus:()=>{var t;Ae(I,null!=(t=document.activeElement)?t:void 0,!0)},restoreFocus:()=>{!y()&&(!n||L().contains(document.activeElement))&&Vn(I)&&document.contains(Vn(I))&&"focus"in Vn(I)&&Vn(I).focus()},getInnerDimensions:()=>({width:L().offsetWidth,height:L().offsetHeight}),getAnchorDimensions:()=>p()?p().getBoundingClientRect():null,getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:t=>{T.left="left"in t?"".concat(t.left,"px"):"",T.right="right"in t?"".concat(t.right,"px"):"",T.top="top"in t?"".concat(t.top,"px"):"",T.bottom="bottom"in t?"".concat(t.bottom,"px"):""},setMaxHeight:t=>{T["max-height"]=t}}),!0);const t={get open(){return c()},set open(t){c(t)},closeProgrammatic:R};return A&&A(t),Vn(E).init(),()=>{var e,n;C&&C(t);const r=Vn(E).isHoistedElement;null==(e=Vn(E))||e.destroy(),r&&(null==(n=L().parentNode)||n.removeChild(L()))}}),Ai(()=>{var t;s()&&L()&&(null==(t=L().parentElement)||t.classList.remove("mdc-menu-surface--anchor"))});var M={isOpen:function(){return c()},setOpen:function(t){c(t)},setAbsolutePosition:function(t,e){if(null==Vn(E))throw new Error("Instance is not defined.");return Vn(E).setAbsolutePosition(t,e)},setIsHoisted:function(t){if(null==Vn(E))throw new Error("Instance is not defined.");return Vn(E).setIsHoisted(t)},isFixed:function(){if(null==Vn(E))throw new Error("Instance is not defined.");return Vn(E).isFixed()},flipCornerHorizontally:function(){if(null==Vn(E))throw new Error("Instance is not defined.");return Vn(E).flipCornerHorizontally()},getElement:L},D=Rp();ar("click",Ne.body,function(t){Vn(E)&&c()&&!u()&&Vn(E).handleBodyClick(t)},!0);var N=t=>{var n;Vn(E)&&!u()&&Vn(E).handleKeydown(t),null==(n=e.onkeydown)||n.call(e,t)};return Yr(D,(t,e)=>({class:t,style:e,role:"dialog",...b,onkeydown:N}),[()=>Oa({"mdc-menu-surface":!0,"mdc-menu-surface--fixed":l(),"mdc-menu-surface--open":o(),"smui-menu-surface--static":o(),"mdc-menu-surface--fullwidth":d(),..._,[i()]:!0}),()=>Object.entries(T).map(([t,e])=>"".concat(t,": ").concat(e,";")).concat([a()]).join(" ")]),Rr(je(D),()=>{var t;return null!=(t=e.children)?t:ot}),li(D,t=>n=t,()=>n),Dr(D,(t,e)=>null==Na?void 0:Na(t,e),r),vr(t,D),Ut(M)}(t,Ti({get use(){return i()},get class(){return Vn(n)},get managed(){return l()}},()=>c,{onkeydown:t=>{var n,r;r=t,Vn(u)&&Vn(u).handleKeydown(r),null==(n=e.onkeydown)||n.call(e,t)},onSMUIMenuSurfaceOpened:t=>{var n;Vn(u)&&Vn(u).handleMenuSurfaceOpened(),null==(n=e.onSMUIMenuSurfaceOpened)||n.call(e,t)},onSMUIListAction:t=>{var n;Vn(u)&&Vn(h)&&Vn(u).handleItemAction(Vn(h).getOrderedList()[t.detail.index].element),null==(n=e.onSMUIListAction)||n.call(e,t)},get open(){return o()},set open(t){o(t)},get anchorElement(){return s()},set anchorElement(t){s(t)},children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.children)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>r=t,()=>r)}return Ut(g)} /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var Dp={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},Np={CONTENT_SELECTOR:".mdc-tab-indicator__content"},kp=function(t){function e(n){return t.call(this,Di(Di({},e.defaultAdapter),n))||this}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Dp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Np},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},e}(Fi),Pp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mi(e,t),e.prototype.activate=function(){this.adapter.addClass(kp.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(kp.cssClasses.ACTIVE)},e}(kp),Fp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mi(e,t),e.prototype.activate=function(t){if(t){var e=this.computeContentClientRect(),n=t.width/e.width,r=t.left-e.left;this.adapter.addClass(kp.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+r+"px) scaleX("+n+")"),this.computeContentClientRect(),this.adapter.removeClass(kp.cssClasses.NO_TRANSITION),this.adapter.addClass(kp.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(kp.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(kp.cssClasses.ACTIVE)},e}(kp),Hp={ACTIVE:"mdc-tab--active"},Bp={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"},Up=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.focusOnActivate=!0,r}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Hp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Bp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),e.prototype.handleClick=function(){this.adapter.notifyInteracted()},e.prototype.isActive=function(){return this.adapter.hasClass(Hp.ACTIVE)},e.prototype.setFocusOnActivate=function(t){this.focusOnActivate=t},e.prototype.activate=function(t){this.adapter.addClass(Hp.ACTIVE),this.adapter.setAttr(Bp.ARIA_SELECTED,"true"),this.adapter.setAttr(Bp.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate&&this.adapter.focus()},e.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(Hp.ACTIVE),this.adapter.setAttr(Bp.ARIA_SELECTED,"false"),this.adapter.setAttr(Bp.TABINDEX,"-1"),this.adapter.deactivateIndicator())},e.prototype.computeDimensions=function(){var t=this.adapter.getOffsetWidth(),e=this.adapter.getOffsetLeft(),n=this.adapter.getContentOffsetWidth(),r=this.adapter.getContentOffsetLeft();return{contentLeft:e+r,contentRight:e+r+n,rootLeft:e,rootRight:e+t}},e}(Fi),jp=dr("");function Vp(t,e){Bt(e,!0);let n,r,i=Ii(e,"use",19,()=>[]),a=Ii(e,"class",3,""),o=Ii(e,"active",15,!1),s=Ii(e,"type",3,"underline"),l=Ii(e,"transition",3,"slide"),c=Ii(e,"content$use",19,()=>[]),u=Ii(e,"content$class",3,""),d=Ei(e,["$$slots","$$events","$$legacy","use","class","active","type","transition","content$use","content$class","children"]),h=Ie(void 0),p=Ie(Re({})),f=Ie(Re({})),m=Re([]),v=l();var g;function y(){return new({fade:Pp,slide:Fp}[l()]||Fp)({addClass:(...t)=>b(()=>function(t){Vn(p)[t]||(Vn(p)[t]=!0)}(...t)),removeClass:(...t)=>b(()=>function(t){t in Vn(p)&&!Vn(p)[t]||(Vn(p)[t]=!1)}(...t)),computeContentClientRect:E,setContentStyleProperty:(...t)=>b(()=>function(t,e){Vn(f)[t]!=e&&(""===e||null==e?delete Vn(f)[t]:Vn(f)[t]=e)}(...t))})}function b(t){m.length?m[m.length-1].push(t):t()}function E(){return m.push([]),r.getBoundingClientRect()}Ye(()=>{v!==l()&&(v=l(),Vn(h)&&Vn(h).destroy(),Ae(p,{},!0),Ae(f,{},!0),Ae(h,y(),!0),Vn(h).init())}),g=()=>{m.length&&requestAnimationFrame(()=>{var t;const e=null!=(t=m.shift())?t:[];for(const n of e)n()})},Ke(),qe(1048584,g,!0),Si(()=>(Ae(h,y(),!0),Vn(h).init(),()=>{var t;null==(t=Vn(h))||t.destroy()}));var _={activate:function(t){var e;o(!0),null==(e=Vn(h))||e.activate(t)},deactivate:function(){var t;o(!1),null==(t=Vn(h))||t.deactivate()},computeContentClientRect:E,getElement:function(){return n}},T=jp();Yr(T,(t,e)=>({class:t,...e}),[()=>Oa({"mdc-tab-indicator":!0,"mdc-tab-indicator--active":o(),"mdc-tab-indicator--fade":"fade"===l(),...Vn(p),[a()]:!0}),()=>La(d,["content$"])]);var I=je(T);return Yr(I,(t,e,n)=>({class:t,style:e,"aria-hidden":"icon"===s()?"true":void 0,...n}),[()=>Oa({"mdc-tab-indicator__content":!0,"mdc-tab-indicator__content--underline":"underline"===s(),"mdc-tab-indicator__content--icon":"icon"===s(),[u()]:!0}),()=>Object.entries(Vn(f)).map(([t,e])=>"".concat(t,": ").concat(e,";")).join(" "),()=>Ma(d,"content$")]),Rr(je(I),()=>{var t;return null!=(t=e.children)?t:ot}),li(I,t=>r=t,()=>r),Dr(I,(t,e)=>null==Na?void 0:Na(t,e),c),li(T,t=>n=t,()=>n),Dr(T,(t,e)=>null==Na?void 0:Na(t,e),i),vr(t,T),Ut(_)}var $p=dr(' ',1);function Wp(t,e){Bt(e,!0);const n=t=>{{let n=te(()=>Ma(y,"tabIndicator$"));li(Vp(t,Ti(()=>Vn(n),{get active(){return Vn(A)},set active(t){Ae(A,t,!0)},children:(t,n)=>{var r=mr();Rr(Ve(r),()=>{var t;return null!=(t=e.tabIndicator)?t:ot}),vr(t,r)},$$slots:{default:!0}})),t=>a=t,()=>a)}};let r,i,a,o=Ii(e,"use",19,()=>[]),s=Ii(e,"class",3,""),l=Ii(e,"style",3,""),c=Ii(e,"ripple",3,!0),u=Ii(e,"stacked",3,!1),d=Ii(e,"minWidth",3,!1),h=Ii(e,"indicatorSpanOnlyContent",3,!1),p=Ii(e,"href",3,void 0),f=Ii(e,"content$use",19,()=>[]),m=Ii(e,"content$class",3,""),v=Ii(e,"component",3,ja),g=Ii(e,"tag",19,()=>null==p()?"button":"a"),y=Ei(e,["$$slots","$$events","$$legacy","use","class","style","tab","ripple","stacked","minWidth","indicatorSpanOnlyContent","href","content$use","content$class","component","tag","children","tabIndicator"]),b=Ie(void 0),E=Re({}),_=Re({}),T=Re({}),I=Ft("SMUI:tab:focusOnActivate");const S=Ft("SMUI:tab:initialActive");let A=Ie(Re(null!=S.active&&S.key(e.tab)===S.active)),C=Ie(!1);if(Ht("SMUI:label:context","tab"),Ht("SMUI:icon:context","tab"),!e.tab)throw new Error("The tab property is required! It should be passed down from the TabBar to the Tab.");let w=!1;Ye(()=>{Vn(b)?w||(w=!0,Vn(b).setFocusOnActivate(I)):w=!1});const x=Ft("SMUI:tab:mount"),O=Ft("SMUI:tab:unmount");function R(t){return t in E?E[t]:H().classList.contains(t)}function L(t){E[t]||(E[t]=!0)}function M(t){t in E&&!E[t]||(E[t]=!1)}function D(t,e){_[t]!=e&&(""===e||null==e?delete _[t]:_[t]=e)}function N(t,e){T[t]!==e&&(T[t]=e)}function k(t,e){var n,r,i;Ae(A,!0),e&&(null==(n=Vn(b))||n.setFocusOnActivate(!1)),null==(r=Vn(b))||r.activate(t),e&&(null==(i=Vn(b))||i.setFocusOnActivate(I))}function P(){var t;Ae(A,!1),null==(t=Vn(b))||t.deactivate()}function F(){H().focus()}function H(){return r.getElement()}Si(()=>{Ae(b,new Up({setAttr:N,addClass:L,removeClass:M,hasClass:R,activateIndicator:t=>a.activate(t),deactivateIndicator:()=>a.deactivate(),notifyInteracted:()=>Ra(H(),"SMUITabInteracted",{tabId:e.tab}),getOffsetLeft:()=>H().offsetLeft,getOffsetWidth:()=>H().offsetWidth,getContentOffsetLeft:()=>i.offsetLeft,getContentOffsetWidth:()=>i.offsetWidth,focus:F}),!0);const t={tabId:e.tab,get element(){return H()},get active(){return Vn(A)},forceAccessible(t){Ae(C,t,!0)},computeIndicatorClientRect:()=>a.computeContentClientRect(),computeDimensions:()=>{if(null==Vn(b))throw new Error("Instance is undefined.");return Vn(b).computeDimensions()},focus:F,activate:k,deactivate:P};return x&&x(t),Vn(b).init(),()=>{var e;O&&O(t),null==(e=Vn(b))||e.destroy()}});var B={activate:k,deactivate:P,focus:F,getElement:H},U=mr(),j=Ve(U);{let t=te(()=>[[Oo,{ripple:c(),unbounded:!1,addClass:L,removeClass:M,addStyle:D}],...o()]),a=te(()=>Oa({"mdc-tab":!0,"mdc-tab--active":Vn(A),"mdc-tab--stacked":u(),"mdc-tab--min-width":d(),...E,[s()]:!0})),I=te(()=>Object.entries(_).map(([t,e])=>"".concat(t,": ").concat(e,";")).concat([l()]).join(" ")),S=te(()=>Vn(A)?"true":"false"),w=te(()=>Vn(A)||Vn(C)?"0":"-1"),x=te(()=>La(y,["content$","tabIndicator$"]));Lr(j,v,(o,s)=>{li(s(o,Ti({get tag(){return g()},get use(){return Vn(t)},get class(){return Vn(a)},get style(){return Vn(I)},role:"tab",get"aria-selected"(){return Vn(S)},get tabindex(){return Vn(w)},get href(){return p()}},()=>T,()=>Vn(x),{onclick:t=>{var n;null==(n=e.onclick)||n.call(e,t),!t.defaultPrevented&&Vn(b)&&Vn(b).handleClick()},children:(t,r)=>{var a=$p(),o=Ve(a);Yr(o,(t,e)=>({class:t,...e}),[()=>Oa({"mdc-tab__content":!0,[m()]:!0}),()=>Ma(y,"content$")]);var s=je(o);Rr(s,()=>{var t;return null!=(t=e.children)?t:ot});var l=$e(s,2),c=t=>{n(t)};_r(l,t=>{h()&&t(c)}),li(o,t=>i=t,()=>i),Dr(o,(t,e)=>null==Na?void 0:Na(t,e),f);var u=$e(o,2),d=t=>{n(t)};_r(u,t=>{h()||t(d)}),vr(t,a)},$$slots:{default:!0}})),t=>r=t,()=>r)})}return vr(t,U),Ut(B)} /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var zp,Gp={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},Xp={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},Kp=function(){return function(t){this.adapter=t}}(),qp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mi(e,t),e.prototype.getScrollPositionRTL=function(){var t=this.adapter.getScrollAreaScrollLeft(),e=this.calculateScrollEdges().right;return Math.round(e-t)},e.prototype.scrollToRTL=function(t){var e=this.calculateScrollEdges(),n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(e.right-t);return{finalScrollPosition:r,scrollDelta:r-n}},e.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(e-t);return{finalScrollPosition:n,scrollDelta:n-e}},e.prototype.getAnimatingScrollPosition=function(t){return t},e.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},e.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.left,t),e.right)},e}(Kp),Zp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mi(e,t),e.prototype.getScrollPositionRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft();return Math.round(t-e)},e.prototype.scrollToRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(-t);return{finalScrollPosition:n,scrollDelta:n-e}},e.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(e-t);return{finalScrollPosition:n,scrollDelta:n-e}},e.prototype.getAnimatingScrollPosition=function(t,e){return t-e},e.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-t,right:0}},e.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.max(Math.min(e.right,t),e.left)},e}(Kp),Yp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mi(e,t),e.prototype.getScrollPositionRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft();return Math.round(e-t)},e.prototype.scrollToRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(t);return{finalScrollPosition:n,scrollDelta:e-n}},e.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(e+t);return{finalScrollPosition:n,scrollDelta:e-n}},e.prototype.getAnimatingScrollPosition=function(t,e){return t+e},e.prototype.calculateScrollEdges=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},e.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.right,t),e.left)},e}(Kp),Qp=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.isAnimating=!1,r}return Mi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Gp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Xp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-t+"px"),this.adapter.addScrollAreaClass(e.cssClasses.SCROLL_AREA_SCROLL)},e.prototype.getScrollPosition=function(){if(this.isRTL())return this.computeCurrentScrollPositionRTL();var t=this.calculateCurrentTranslateX();return this.adapter.getScrollAreaScrollLeft()-t},e.prototype.handleInteraction=function(){this.isAnimating&&this.stopScrollAnimation()},e.prototype.handleTransitionEnd=function(t){var n=t.target;this.isAnimating&&this.adapter.eventTargetMatchesSelector(n,e.strings.CONTENT_SELECTOR)&&(this.isAnimating=!1,this.adapter.removeClass(e.cssClasses.ANIMATING))},e.prototype.incrementScroll=function(t){0!==t&&this.animate(this.getIncrementScrollOperation(t))},e.prototype.incrementScrollImmediate=function(t){if(0!==t){var e=this.getIncrementScrollOperation(t);0!==e.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(e.finalScrollPosition))}},e.prototype.scrollTo=function(t){this.isRTL()?this.scrollToImplRTL(t):this.scrollToImpl(t)},e.prototype.getRTLScroller=function(){return this.rtlScrollerInstance||(this.rtlScrollerInstance=this.rtlScrollerFactory()),this.rtlScrollerInstance},e.prototype.calculateCurrentTranslateX=function(){var t=this.adapter.getScrollContentStyleValue("transform");if("none"===t)return 0;var e=/\((.+?)\)/.exec(t);if(!e)return 0;var n=ki(e[1].split(","),6);n[0],n[1],n[2],n[3];var r=n[4];return n[5],parseFloat(r)},e.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.left,t),e.right)},e.prototype.computeCurrentScrollPositionRTL=function(){var t=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(t)},e.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},e.prototype.scrollToImpl=function(t){var e=this.getScrollPosition(),n=this.clampScrollValue(t),r=n-e;this.animate({finalScrollPosition:n,scrollDelta:r})},e.prototype.scrollToImplRTL=function(t){var e=this.getRTLScroller().scrollToRTL(t);this.animate(e)},e.prototype.getIncrementScrollOperation=function(t){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(t);var e=this.getScrollPosition(),n=t+e,r=this.clampScrollValue(n);return{finalScrollPosition:r,scrollDelta:r-e}},e.prototype.animate=function(t){var n=this;0!==t.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame(function(){n.adapter.addClass(e.cssClasses.ANIMATING),n.adapter.setScrollContentStyleProperty("transform","none")}),this.isAnimating=!0)},e.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var t=this.getAnimatingScrollPosition();this.adapter.removeClass(e.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(t)},e.prototype.getAnimatingScrollPosition=function(){var t=this.calculateCurrentTranslateX(),e=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(e,t):e-t},e.prototype.rtlScrollerFactory=function(){var t=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(t-1);var e=this.adapter.getScrollAreaScrollLeft();if(e<0)return this.adapter.setScrollAreaScrollLeft(t),new Zp(this.adapter);var n=this.adapter.computeScrollAreaClientRect(),r=this.adapter.computeScrollContentClientRect(),i=Math.round(r.right-n.right);return this.adapter.setScrollAreaScrollLeft(t),i===e?new Yp(this.adapter):new qp(this.adapter)},e.prototype.isRTL=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},e}(Fi); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var Jp={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},tf={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},ef=new Set;ef.add(Jp.ARROW_LEFT_KEY),ef.add(Jp.ARROW_RIGHT_KEY),ef.add(Jp.END_KEY),ef.add(Jp.HOME_KEY),ef.add(Jp.ENTER_KEY),ef.add(Jp.SPACE_KEY);var nf=new Map;nf.set(tf.ARROW_LEFT_KEYCODE,Jp.ARROW_LEFT_KEY),nf.set(tf.ARROW_RIGHT_KEYCODE,Jp.ARROW_RIGHT_KEY),nf.set(tf.END_KEYCODE,Jp.END_KEY),nf.set(tf.HOME_KEYCODE,Jp.HOME_KEY),nf.set(tf.ENTER_KEYCODE,Jp.ENTER_KEY),nf.set(tf.SPACE_KEYCODE,Jp.SPACE_KEY);var rf=function(t){function e(n){var r=t.call(this,Di(Di({},e.defaultAdapter),n))||this;return r.useAutomaticActivation=!1,r}return Mi(e,t),Object.defineProperty(e,"strings",{get:function(){return Jp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return tf},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),e.prototype.setUseAutomaticActivation=function(t){this.useAutomaticActivation=t},e.prototype.activateTab=function(t){var e,n=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(t)&&t!==n&&(-1!==n&&(this.adapter.deactivateTabAtIndex(n),e=this.adapter.getTabIndicatorClientRectAtIndex(n)),this.adapter.activateTabAtIndex(t,e),this.scrollIntoView(t),this.adapter.notifyTabActivated(t))},e.prototype.handleKeyDown=function(t){var e=this.getKeyFromEvent(t);if(void 0!==e)if(this.isActivationKey(e)||t.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(e))return;var n=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),e);this.adapter.setActiveTab(n),this.scrollIntoView(n)}else{var r=this.adapter.getFocusedTabIndex();if(this.isActivationKey(e))this.adapter.setActiveTab(r);else{n=this.determineTargetFromKey(r,e);this.adapter.focusTabAtIndex(n),this.scrollIntoView(n)}}},e.prototype.handleTabInteraction=function(t){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(t.detail.tabId))},e.prototype.scrollIntoView=function(t){this.indexIsInRange(t)&&(0!==t?t!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(t):this.scrollIntoViewImpl(t):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},e.prototype.determineTargetFromKey=function(t,e){var n=this.isRTL(),r=this.adapter.getTabListLength()-1,i=t;return e===Jp.END_KEY?i=r:e===Jp.ARROW_LEFT_KEY&&!n||e===Jp.ARROW_RIGHT_KEY&&n?i-=1:e===Jp.ARROW_RIGHT_KEY&&!n||e===Jp.ARROW_LEFT_KEY&&n?i+=1:i=0,i<0?i=r:i>r&&(i=0),i},e.prototype.calculateScrollIncrement=function(t,e,n,r){var i=this.adapter.getTabDimensionsAtIndex(e),a=i.contentLeft-n-r,o=i.contentRight-n-tf.EXTRA_SCROLL_AMOUNT,s=a+tf.EXTRA_SCROLL_AMOUNT;return et?Math.max(s,0):Math.min(l,0)},e.prototype.findAdjacentTabIndexClosestToEdge=function(t,e,n,r){var i=e.rootLeft-n,a=e.rootRight-n-r,o=i+a;return i<0||o<0?t-1:a>0||o>0?t+1:-1},e.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(t,e,n,r,i){var a=i-e.rootLeft-r-n,o=i-e.rootRight-n,s=a+o;return a>0||s>0?t+1:o<0||s<0?t-1:-1},e.prototype.getKeyFromEvent=function(t){return ef.has(t.key)?t.key:nf.get(t.keyCode)},e.prototype.isActivationKey=function(t){return t===Jp.SPACE_KEY||t===Jp.ENTER_KEY},e.prototype.indexIsInRange=function(t){return t>=0&&t
");function of(t,e){Bt(e,!0);const{matches:n}=Bi;let r,i,a,o=Ii(e,"use",19,()=>[]),s=Ii(e,"class",3,""),l=Ii(e,"align",3,void 0),c=Ii(e,"scrollArea$use",19,()=>[]),u=Ii(e,"scrollArea$class",3,""),d=Ii(e,"scrollContent$use",19,()=>[]),h=Ii(e,"scrollContent$class",3,""),p=Ei(e,["$$slots","$$events","$$legacy","use","class","align","scrollArea$use","scrollArea$class","scrollContent$use","scrollContent$class","children"]),f=Ie(void 0),m=Re({}),v=Re({}),g=Re({}),y=Re({});function b(t){m[t]||(m[t]=!0)}function E(t){t in m&&!m[t]||(m[t]=!1)}function _(t){v[t]||(v[t]=!0)}function T(t,e){g[t]!=e&&(""===e||null==e?delete g[t]:g[t]=e)}function I(t,e){y[t]!=e&&(""===e||null==e?delete y[t]:y[t]=e)}function S(t){return t in y?y[t]:getComputedStyle(a).getPropertyValue(t)}Si(()=>(Ae(f,new Qp({eventTargetMatchesSelector:(t,e)=>n(t,e),addClass:b,removeClass:E,addScrollAreaClass:_,setScrollAreaStyleProperty:T,setScrollContentStyleProperty:I,getScrollContentStyleValue:S,setScrollAreaScrollLeft:t=>i.scrollLeft=t,getScrollAreaScrollLeft:()=>i.scrollLeft,getScrollContentOffsetWidth:()=>a.offsetWidth,getScrollAreaOffsetWidth:()=>i.offsetWidth,computeScrollAreaClientRect:()=>i.getBoundingClientRect(),computeScrollContentClientRect:()=>a.getBoundingClientRect(),computeHorizontalScrollbarHeight:()=>function(t,e){if(void 0===e&&(e=!0),e&&void 0!==zp)return zp;var n=t.createElement("div");n.classList.add(Gp.SCROLL_TEST),t.body.appendChild(n);var r=n.offsetHeight-n.clientHeight;return t.body.removeChild(n),e&&(zp=r),r}(document)}),!0),Vn(f).init(),()=>{var t;null==(t=Vn(f))||t.destroy()}));var A={getScrollPosition:function(){if(null==Vn(f))throw new Error("Instance is undefined.");return Vn(f).getScrollPosition()},getScrollContentWidth:function(){return a.offsetWidth},incrementScroll:function(t){var e;null==(e=Vn(f))||e.incrementScroll(t)},scrollTo:function(t){var e;null==(e=Vn(f))||e.scrollTo(t)},getElement:function(){return r}},C=af();Yr(C,(t,e)=>({class:t,...e}),[()=>Oa({"mdc-tab-scroller":!0,"mdc-tab-scroller--align-start":"start"===l(),"mdc-tab-scroller--align-end":"end"===l(),"mdc-tab-scroller--align-center":"center"===l(),...m,[s()]:!0}),()=>La(p,["scrollArea$","scrollContent$"])]);var w=je(C),x=t=>{var n;Vn(f)&&Vn(f).handleInteraction(),null==(n=e.scrollArea$onwheel)||n.call(e,t)},O=t=>{var n;Vn(f)&&Vn(f).handleInteraction(),null==(n=e.scrollArea$ontouchstart)||n.call(e,t)},R=t=>{var n;Vn(f)&&Vn(f).handleInteraction(),null==(n=e.scrollArea$onpointerdown)||n.call(e,t)},L=t=>{var n;Vn(f)&&Vn(f).handleInteraction(),null==(n=e.scrollArea$onmousedown)||n.call(e,t)},M=t=>{var n;Vn(f)&&Vn(f).handleInteraction(),null==(n=e.scrollArea$onkeydown)||n.call(e,t)};Yr(w,(t,e,n)=>({class:t,style:e,...n,onwheel:x,ontouchstart:O,onpointerdown:R,onmousedown:L,onkeydown:M}),[()=>Oa({"mdc-tab-scroller__scroll-area":!0,...v,[u()]:!0}),()=>Object.entries(g).map(([t,e])=>"".concat(t,": ").concat(e,";")).join(" "),()=>Ma(p,"scrollArea$")]);var D=je(w),N=t=>{var n;Vn(f)&&Vn(f).handleTransitionEnd(t),null==(n=e.scrollContent$ontransitionend)||n.call(e,t)};return Yr(D,(t,e,n)=>({class:t,style:e,...n,ontransitionend:N}),[()=>Oa({"mdc-tab-scroller__scroll-content":!0,[h()]:!0}),()=>Object.entries(y).map(([t,e])=>"".concat(t,": ").concat(e,";")).join(" "),()=>Ma(p,"scrollContent$")]),Rr(je(D),()=>{var t;return null!=(t=e.children)?t:ot}),li(D,t=>a=t,()=>a),Dr(D,(t,e)=>null==Na?void 0:Na(t,e),d),li(w,t=>i=t,()=>i),Dr(w,(t,e)=>null==Na?void 0:Na(t,e),c),li(C,t=>r=t,()=>r),Dr(C,(t,e)=>null==Na?void 0:Na(t,e),o),vr(t,C),Ut(A)}var sf=dr("
");function lf(t,e){Bt(e,!0);let n,r,i=Ii(e,"use",19,()=>[]),a=Ii(e,"class",3,""),o=Ii(e,"tabs",19,()=>[]),s=Ii(e,"key",3,t=>t),l=Ii(e,"focusOnActivate",3,!0),c=Ii(e,"focusOnProgrammatic",3,!1),u=Ii(e,"useAutomaticActivation",3,!0),d=Ii(e,"active",15),h=Ii(e,"tabindex",3,0),p=Ei(e,["$$slots","$$events","$$legacy","use","class","tabs","key","focusOnActivate","focusOnProgrammatic","useAutomaticActivation","active","tabindex","tab"]),f=Ie(void 0),m=Ie(Re(null==d()?-1:o().findIndex(t=>d()&&s()(t)===s()(d())))),v=Re({}),g=Ie(new WeakMap),y=!1;Ht("SMUI:tab:focusOnActivate",l()),Ht("SMUI:tab:initialActive",{active:null==d()?null:s()(d()),key:s()}),Ye(()=>{(null==d()&&-1!==Vn(m)||null!=d()&&-1===Vn(m)||null!=d()&&s()(d())!==s()(o()[Vn(m)]))&&(Ae(m,o().findIndex(t=>d()&&s()(t)===s()(d())),!0),Vn(f)&&(y=!c(),Vn(f).activateTab(Vn(m)),y=!1))}),Ye(()=>{if(o().length){const t=o()[0]instanceof Object?Vn(g).get(o()[0]):v[o()[0]];t&&t.forceAccessible(-1===Vn(m))}});let b=!1;function E(t){return t instanceof Object?Vn(g).get(t):v[t]}function _(){return n}Ye(()=>{Vn(f)?b||(b=!0,Vn(f).setUseAutomaticActivation(u())):b=!1}),Ht("SMUI:tab:mount",t=>{!function(t,e){t instanceof Object?(Vn(g).set(t,e),Ae(g,Vn(g))):v[t]=e}(t.tabId,t)}),Ht("SMUI:tab:unmount",t=>{var e;(e=t.tabId)instanceof Object?(Vn(g).delete(e),Ae(g,Vn(g))):delete v[e]}),Si(()=>(Ae(f,new rf({scrollTo:t=>r.scrollTo(t),incrementScroll:t=>r.incrementScroll(t),getScrollPosition:()=>r.getScrollPosition(),getScrollContentWidth:()=>r.getScrollContentWidth(),getOffsetWidth:()=>_().offsetWidth,isRTL:()=>"rtl"===getComputedStyle(_()).getPropertyValue("direction"),setActiveTab:t=>{var e;d(o()[t]),Ae(m,t,!0),null==(e=Vn(f))||e.activateTab(t)},activateTabAtIndex:(t,e)=>{var n;return null==(n=E(o()[t]))?void 0:n.activate(e,y)},deactivateTabAtIndex:t=>{var e;return null==(e=E(o()[t]))?void 0:e.deactivate()},focusTabAtIndex:t=>{var e;return null==(e=E(o()[t]))?void 0:e.focus()},getTabIndicatorClientRectAtIndex:t=>{var e,n;return null!=(n=null==(e=E(o()[t]))?void 0:e.computeIndicatorClientRect())?n:new DOMRect},getTabDimensionsAtIndex:t=>{var e,n;return null!=(n=null==(e=E(o()[t]))?void 0:e.computeDimensions())?n:{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:()=>{var t;for(let e=0;e{const t=o().map(t=>{var e;return null==(e=E(t))?void 0:e.element}),e=document.activeElement;return t.indexOf(e)},getIndexOfTabById:t=>o().findIndex(e=>s()(e)===s()(t)),getTabListLength:()=>o().length,notifyTabActivated:t=>Ra(_(),"SMUITabBarActivated",{index:t})}),!0),Vn(f).init(),()=>{var t;null==(t=Vn(f))||t.destroy()}));var T={scrollIntoView:function(t){var e;null==(e=Vn(f))||e.scrollIntoView(t)},getElement:_},I=sf(),S=t=>{var n;Vn(f)&&Vn(f).handleKeyDown(t),null==(n=e.onkeydown)||n.call(e,t)},A=t=>{var n;Vn(f)&&Vn(f).handleTabInteraction(t),null==(n=e.onSMUITabInteracted)||n.call(e,t)};Yr(I,(t,e)=>({class:t,role:"tablist",tabindex:h(),...e,onkeydown:S,onSMUITabInteracted:A}),[()=>Oa({"mdc-tab-bar":!0,[a()]:!0}),()=>La(p,["tabScroller$"])]);var C=je(I);{let t=te(()=>Ma(p,"tabScroller$"));li(of(C,Ti(()=>Vn(t),{children:(t,n)=>{var r=mr();Sr(Ve(r),17,o,t=>s()(t),(t,n)=>{var r=mr();Rr(Ve(r),()=>e.tab,()=>Vn(n)),vr(t,r)}),vr(t,r)},$$slots:{default:!0}})),t=>r=t,()=>r)}return li(I,t=>n=t,()=>n),Dr(I,(t,e)=>null==Na?void 0:Na(t,e),i),vr(t,I),Ut(T)} /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:cf,setPrototypeOf:uf,isFrozen:df,getPrototypeOf:hf,getOwnPropertyDescriptor:pf}=Object;let{freeze:ff,seal:mf,create:vf}=Object,{apply:gf,construct:yf}="undefined"!=typeof Reflect&&Reflect;ff||(ff=function(t){return t}),mf||(mf=function(t){return t}),gf||(gf=function(t,e,n){return t.apply(e,n)}),yf||(yf=function(t,e){return new t(...e)});const bf=Nf(Array.prototype.forEach),Ef=Nf(Array.prototype.lastIndexOf),_f=Nf(Array.prototype.pop),Tf=Nf(Array.prototype.push),If=Nf(Array.prototype.splice),Sf=Nf(String.prototype.toLowerCase),Af=Nf(String.prototype.toString),Cf=Nf(String.prototype.match),wf=Nf(String.prototype.replace),xf=Nf(String.prototype.indexOf),Of=Nf(String.prototype.trim),Rf=Nf(Object.prototype.hasOwnProperty),Lf=Nf(RegExp.prototype.test),Mf=(Df=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:Sf;uf&&uf(t,null);let r=e.length;for(;r--;){let i=e[r];if("string"==typeof i){const t=n(i);t!==i&&(df(e)||(e[r]=t),i=t)}t[i]=!0}return t}function Pf(t){for(let e=0;e/gm),Qf=mf(/\$\{[\w\W]*/gm),Jf=mf(/^data-[\-\w.\u00B7-\uFFFF]+$/),tm=mf(/^aria-[\-\w]+$/),em=mf(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nm=mf(/^(?:\w+script|data):/i),rm=mf(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),im=mf(/^html$/i),am=mf(/^[a-z][.\w]*(-[.\w]+)+$/i);var om=Object.freeze({__proto__:null,ARIA_ATTR:tm,ATTR_WHITESPACE:rm,CUSTOM_ELEMENT:am,DATA_ATTR:Jf,DOCTYPE_NAME:im,ERB_EXPR:Yf,IS_ALLOWED_URI:em,IS_SCRIPT_OR_DATA:nm,MUSTACHE_EXPR:Zf,TMPLIT_EXPR:Qf});const sm=1,lm=3,cm=7,um=8,dm=9;var hm=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=e=>t(e);if(n.version="3.2.6",n.removed=[],!e||!e.document||e.document.nodeType!==dm||!e.Element)return n.isSupported=!1,n;let{document:r}=e;const i=r,a=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=e,m=c.prototype,v=Hf(m,"cloneNode"),g=Hf(m,"remove"),y=Hf(m,"nextSibling"),b=Hf(m,"childNodes"),E=Hf(m,"parentNode");if("function"==typeof s){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let _,T="";const{implementation:I,createNodeIterator:S,createDocumentFragment:A,getElementsByTagName:C}=r,{importNode:w}=i;let x={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof cf&&"function"==typeof E&&I&&void 0!==I.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:R,TMPLIT_EXPR:L,DATA_ATTR:M,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:k,CUSTOM_ELEMENT:P}=om;let{IS_ALLOWED_URI:F}=om,H=null;const B=kf({},[...Bf,...Uf,...jf,...$f,...zf]);let U=null;const j=kf({},[...Gf,...Xf,...Kf,...qf]);let V=Object.seal(vf(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$=null,W=null,z=!0,G=!0,X=!1,K=!0,q=!1,Z=!0,Y=!1,Q=!1,J=!1,tt=!1,et=!1,nt=!1,rt=!0,it=!1,at=!0,ot=!1,st={},lt=null;const ct=kf({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ut=null;const dt=kf({},["audio","video","img","source","image","track"]);let ht=null;const pt=kf({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",mt="http://www.w3.org/2000/svg",vt="http://www.w3.org/1999/xhtml";let gt=vt,yt=!1,bt=null;const Et=kf({},[ft,mt,vt],Af);let _t=kf({},["mi","mo","mn","ms","mtext"]),Tt=kf({},["annotation-xml"]);const It=kf({},["title","style","font","a","script"]);let St=null;const At=["application/xhtml+xml","text/html"];let Ct=null,wt=null;const xt=r.createElement("form"),Ot=function(t){return t instanceof RegExp||t instanceof Function},Rt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!wt||wt!==t){if(t&&"object"==typeof t||(t={}),t=Ff(t),St=-1===At.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Ct="application/xhtml+xml"===St?Af:Sf,H=Rf(t,"ALLOWED_TAGS")?kf({},t.ALLOWED_TAGS,Ct):B,U=Rf(t,"ALLOWED_ATTR")?kf({},t.ALLOWED_ATTR,Ct):j,bt=Rf(t,"ALLOWED_NAMESPACES")?kf({},t.ALLOWED_NAMESPACES,Af):Et,ht=Rf(t,"ADD_URI_SAFE_ATTR")?kf(Ff(pt),t.ADD_URI_SAFE_ATTR,Ct):pt,ut=Rf(t,"ADD_DATA_URI_TAGS")?kf(Ff(dt),t.ADD_DATA_URI_TAGS,Ct):dt,lt=Rf(t,"FORBID_CONTENTS")?kf({},t.FORBID_CONTENTS,Ct):ct,$=Rf(t,"FORBID_TAGS")?kf({},t.FORBID_TAGS,Ct):Ff({}),W=Rf(t,"FORBID_ATTR")?kf({},t.FORBID_ATTR,Ct):Ff({}),st=!!Rf(t,"USE_PROFILES")&&t.USE_PROFILES,z=!1!==t.ALLOW_ARIA_ATTR,G=!1!==t.ALLOW_DATA_ATTR,X=t.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,q=t.SAFE_FOR_TEMPLATES||!1,Z=!1!==t.SAFE_FOR_XML,Y=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,et=t.RETURN_DOM_FRAGMENT||!1,nt=t.RETURN_TRUSTED_TYPE||!1,J=t.FORCE_BODY||!1,rt=!1!==t.SANITIZE_DOM,it=t.SANITIZE_NAMED_PROPS||!1,at=!1!==t.KEEP_CONTENT,ot=t.IN_PLACE||!1,F=t.ALLOWED_URI_REGEXP||em,gt=t.NAMESPACE||vt,_t=t.MATHML_TEXT_INTEGRATION_POINTS||_t,Tt=t.HTML_INTEGRATION_POINTS||Tt,V=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Ot(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Ot(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),q&&(G=!1),et&&(tt=!0),st&&(H=kf({},zf),U=[],!0===st.html&&(kf(H,Bf),kf(U,Gf)),!0===st.svg&&(kf(H,Uf),kf(U,Xf),kf(U,qf)),!0===st.svgFilters&&(kf(H,jf),kf(U,Xf),kf(U,qf)),!0===st.mathMl&&(kf(H,$f),kf(U,Kf),kf(U,qf))),t.ADD_TAGS&&(H===B&&(H=Ff(H)),kf(H,t.ADD_TAGS,Ct)),t.ADD_ATTR&&(U===j&&(U=Ff(U)),kf(U,t.ADD_ATTR,Ct)),t.ADD_URI_SAFE_ATTR&&kf(ht,t.ADD_URI_SAFE_ATTR,Ct),t.FORBID_CONTENTS&&(lt===ct&&(lt=Ff(lt)),kf(lt,t.FORBID_CONTENTS,Ct)),at&&(H["#text"]=!0),Y&&kf(H,["html","head","body"]),H.table&&(kf(H,["tbody"]),delete $.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Mf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Mf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=t.TRUSTED_TYPES_POLICY,T=_.createHTML("")}else void 0===_&&(_=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(a){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(f,a)),null!==_&&"string"==typeof T&&(T=_.createHTML(""));ff&&ff(t),wt=t}},Lt=kf({},[...Uf,...jf,...Vf]),Mt=kf({},[...$f,...Wf]),Dt=function(t){Tf(n.removed,{element:t});try{E(t).removeChild(t)}catch(e){g(t)}},Nt=function(t,e){try{Tf(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(r){Tf(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(tt||et)try{Dt(e)}catch(r){}else try{e.setAttribute(t,"")}catch(r){}},kt=function(t){let e=null,n=null;if(J)t=""+t;else{const e=Cf(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===St&>===vt&&(t=''+t+"");const i=_?_.createHTML(t):t;if(gt===vt)try{e=(new p).parseFromString(i,St)}catch(o){}if(!e||!e.documentElement){e=I.createDocument(gt,"template",null);try{e.documentElement.innerHTML=yt?T:i}catch(o){}}const a=e.body||e.documentElement;return t&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),gt===vt?C.call(e,Y?"html":"body")[0]:Y?e.documentElement:a},Pt=function(t){return S.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ft=function(t){return t instanceof h&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ht=function(t){return"function"==typeof l&&t instanceof l};function Bt(t,e,r){bf(t,t=>{t.call(n,e,r,wt)})}const Ut=function(t){let e=null;if(Bt(x.beforeSanitizeElements,t,null),Ft(t))return Dt(t),!0;const r=Ct(t.nodeName);if(Bt(x.uponSanitizeElement,t,{tagName:r,allowedTags:H}),Z&&t.hasChildNodes()&&!Ht(t.firstElementChild)&&Lf(/<[/\w!]/g,t.innerHTML)&&Lf(/<[/\w!]/g,t.textContent))return Dt(t),!0;if(t.nodeType===cm)return Dt(t),!0;if(Z&&t.nodeType===um&&Lf(/<[/\w]/g,t.data))return Dt(t),!0;if(!H[r]||$[r]){if(!$[r]&&Vt(r)){if(V.tagNameCheck instanceof RegExp&&Lf(V.tagNameCheck,r))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(r))return!1}if(at&&!lt[r]){const e=E(t)||t.parentNode,n=b(t)||t.childNodes;if(n&&e){for(let r=n.length-1;r>=0;--r){const i=v(n[r],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,y(t))}}}return Dt(t),!0}return t instanceof c&&!function(t){let e=E(t);e&&e.tagName||(e={namespaceURI:gt,tagName:"template"});const n=Sf(t.tagName),r=Sf(e.tagName);return!!bt[t.namespaceURI]&&(t.namespaceURI===mt?e.namespaceURI===vt?"svg"===n:e.namespaceURI===ft?"svg"===n&&("annotation-xml"===r||_t[r]):Boolean(Lt[n]):t.namespaceURI===ft?e.namespaceURI===vt?"math"===n:e.namespaceURI===mt?"math"===n&&Tt[r]:Boolean(Mt[n]):t.namespaceURI===vt?!(e.namespaceURI===mt&&!Tt[r])&&!(e.namespaceURI===ft&&!_t[r])&&!Mt[n]&&(It[n]||!Lt[n]):!("application/xhtml+xml"!==St||!bt[t.namespaceURI]))}(t)?(Dt(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Lf(/<\/no(script|embed|frames)/i,t.innerHTML)?(q&&t.nodeType===lm&&(e=t.textContent,bf([O,R,L],t=>{e=wf(e,t," ")}),t.textContent!==e&&(Tf(n.removed,{element:t.cloneNode()}),t.textContent=e)),Bt(x.afterSanitizeElements,t,null),!1):(Dt(t),!0)},jt=function(t,e,n){if(rt&&("id"===e||"name"===e)&&(n in r||n in xt))return!1;if(G&&!W[e]&&Lf(M,e));else if(z&&Lf(D,e));else if(!U[e]||W[e]){if(!(Vt(t)&&(V.tagNameCheck instanceof RegExp&&Lf(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&Lf(V.attributeNameCheck,e)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(e))||"is"===e&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&Lf(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(ht[e]);else if(Lf(F,wf(n,k,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==xf(n,"data:")||!ut[t]){if(X&&!Lf(N,wf(n,k,"")));else if(n)return!1}else;return!0},Vt=function(t){return"annotation-xml"!==t&&Cf(t,P)},$t=function(t){Bt(x.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Ft(t))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let i=e.length;for(;i--;){const o=e[i],{name:s,namespaceURI:l,value:c}=o,u=Ct(s),d=c;let h="value"===s?d:Of(d);if(r.attrName=u,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,Bt(x.uponSanitizeAttribute,t,r),h=r.attrValue,!it||"id"!==u&&"name"!==u||(Nt(s,t),h="user-content-"+h),Z&&Lf(/((--!?|])>)|<\/(style|title)/i,h)){Nt(s,t);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Nt(s,t);continue}if(!K&&Lf(/\/>/i,h)){Nt(s,t);continue}q&&bf([O,R,L],t=>{h=wf(h,t," ")});const p=Ct(t.nodeName);if(jt(p,u,h)){if(_&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(l);else switch(f.getAttributeType(p,u)){case"TrustedHTML":h=_.createHTML(h);break;case"TrustedScriptURL":h=_.createScriptURL(h)}if(h!==d)try{l?t.setAttributeNS(l,s,h):t.setAttribute(s,h),Ft(t)?Dt(t):_f(n.removed)}catch(a){Nt(s,t)}}else Nt(s,t)}Bt(x.afterSanitizeAttributes,t,null)},Wt=function t(e){let n=null;const r=Pt(e);for(Bt(x.beforeSanitizeShadowDOM,e,null);n=r.nextNode();)Bt(x.uponSanitizeShadowNode,n,null),Ut(n),$t(n),n.content instanceof o&&t(n.content);Bt(x.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,c=null;if(yt=!t,yt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ht(t)){if("function"!=typeof t.toString)throw Mf("toString is not a function");if("string"!=typeof(t=t.toString()))throw Mf("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Q||Rt(e),n.removed=[],"string"==typeof t&&(ot=!1),ot){if(t.nodeName){const e=Ct(t.nodeName);if(!H[e]||$[e])throw Mf("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)r=kt("\x3c!----\x3e"),a=r.ownerDocument.importNode(t,!0),a.nodeType===sm&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!tt&&!q&&!Y&&-1===t.indexOf("<"))return _&&nt?_.createHTML(t):t;if(r=kt(t),!r)return tt?null:nt?T:""}r&&J&&Dt(r.firstChild);const u=Pt(ot?t:r);for(;s=u.nextNode();)Ut(s),$t(s),s.content instanceof o&&Wt(s.content);if(ot)return t;if(tt){if(et)for(c=A.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(U.shadowroot||U.shadowrootmode)&&(c=w.call(i,c,!0)),c}let d=Y?r.outerHTML:r.innerHTML;return Y&&H["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Lf(im,r.ownerDocument.doctype.name)&&(d="\n"+d),q&&bf([O,R,L],t=>{d=wf(d,t," ")}),_&&nt?_.createHTML(d):d},n.setConfig=function(){Rt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){wt=null,Q=!1},n.isValidAttribute=function(t,e,n){wt||Rt({});const r=Ct(t),i=Ct(e);return jt(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&Tf(x[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=Ef(x[t],e);return-1===n?void 0:If(x[t],n,1)[0]}return _f(x[t])},n.removeHooks=function(t){x[t]=[]},n.removeAllHooks=function(){x={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(); /*! * Cropper.js v1.6.2 * https://fengyuanchen.github.io/cropperjs * * Copyright 2015-present Chen Fengyuan * Released under the MIT license * * Date: 2024-04-21T07:43:05.335Z */function pm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function fm(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&t<1/0};function gv(t){return void 0===t}function yv(t){return"object"===vm(t)&&null!==t}var bv=Object.prototype.hasOwnProperty;function Ev(t){if(!yv(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&bv.call(n,"isPrototypeOf")}catch(r){return!1}}function _v(t){return"function"==typeof t}var Tv=Array.prototype.slice;function Iv(t){return Array.from?Array.from(t):Tv.call(t)}function Sv(t,e){return t&&_v(e)&&(Array.isArray(t)||mv(t.length)?Iv(t).forEach(function(n,r){e.call(t,n,r,t)}):yv(t)&&Object.keys(t).forEach(function(n){e.call(t,t[n],n,t)})),t}var Av=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&n.forEach(function(e){yv(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t},Cv=/\.\d*(?:0|9){12}\d*$/;function wv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return Cv.test(t)?Math.round(t*e)/e:t}var xv=/^width|height|left|top|marginLeft|marginTop$/;function Ov(t,e){var n=t.style;Sv(e,function(t,e){xv.test(e)&&mv(t)&&(t="".concat(t,"px")),n[e]=t})}function Rv(t,e){if(e)if(mv(t.length))Sv(t,function(t){Rv(t,e)});else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function Lv(t,e){e&&(mv(t.length)?Sv(t,function(t){Lv(t,e)}):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function Mv(t,e,n){e&&(mv(t.length)?Sv(t,function(t){Mv(t,e,n)}):n?Rv(t,e):Lv(t,e))}var Dv=/([a-z\d])([A-Z])/g;function Nv(t){return t.replace(Dv,"$1-$2").toLowerCase()}function kv(t,e){return yv(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Nv(e)))}function Pv(t,e,n){yv(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(Nv(e)),n)}var Fv=/\s\s*/,Hv=function(){var t=!1;if(_m){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});Tm.addEventListener("test",n,r),Tm.removeEventListener("test",n,r)}return t}();function Bv(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(Fv).forEach(function(e){if(!Hv){var a=t.listeners;a&&a[e]&&a[e][n]&&(i=a[e][n],delete a[e][n],0===Object.keys(a[e]).length&&delete a[e],0===Object.keys(a).length&&delete t.listeners)}t.removeEventListener(e,i,r)})}function Uv(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(Fv).forEach(function(e){if(r.once&&!Hv){var a=t.listeners,o=void 0===a?{}:a;i=function(){delete o[e][n],t.removeEventListener(e,i,r);for(var a=arguments.length,s=new Array(a),l=0;l1&&void 0!==arguments[1]?arguments[1]:"contain",a=vv(r),o=vv(n);if(a&&o){var s=n*e;"contain"===i&&s>r||"cover"===i&&s=8&&(a=l+u)}}}if(a){var d,h,p=n.getUint16(a,r);for(h=0;h=0?i:200),height:Math.max(n.offsetHeight,a>=0?a:100)};this.containerData=o,Ov(r,{width:o.width,height:o.height}),Rv(t,Um),Lv(r,Um)},initCanvas:function(){var t=this.containerData,e=this.imageData,n=this.options.viewMode,r=Math.abs(e.rotate)%180==90,i=r?e.naturalHeight:e.naturalWidth,a=r?e.naturalWidth:e.naturalHeight,o=i/a,s=t.width,l=t.height;t.height*o>t.width?3===n?s=t.height*o:l=t.width/o:3===n?l=t.width/o:s=t.height*o;var c={aspectRatio:o,naturalWidth:i,naturalHeight:a,width:s,height:l};this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.left=(t.width-c.width)/2,c.top=(t.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCanvasData=Av({},c)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=n.viewMode,s=i.aspectRatio,l=this.cropped&&a;if(t){var c=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;o>1?(c=Math.max(c,r.width),u=Math.max(u,r.height),3===o&&(u*s>c?c=u*s:u=c/s)):o>0&&(c?c=Math.max(c,l?a.width:0):u?u=Math.max(u,l?a.height:0):l&&(c=a.width,(u=a.height)*s>c?c=u*s:u=c/s));var d=qv({aspectRatio:s,width:c,height:u});c=d.width,u=d.height,i.minWidth=c,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(e)if(o>(l?0:1)){var h=r.width-i.width,p=r.height-i.height;i.minLeft=Math.min(0,h),i.minTop=Math.min(0,p),i.maxLeft=Math.max(0,h),i.maxTop=Math.max(0,p),l&&this.limited&&(i.minLeft=Math.min(a.left,a.left+(a.width-i.width)),i.minTop=Math.min(a.top,a.top+(a.height-i.height)),i.maxLeft=a.left,i.maxTop=a.top,2===o&&(i.width>=r.width&&(i.minLeft=Math.min(0,h),i.maxLeft=Math.max(0,h)),i.height>=r.height&&(i.minTop=Math.min(0,p),i.maxTop=Math.max(0,p))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(t,e){var n=this.canvasData,r=this.imageData;if(e){var i=function(t){var e=t.width,n=t.height,r=t.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:e};var i=r%90*Math.PI/180,a=Math.sin(i),o=Math.cos(i),s=e*o+n*a,l=e*a+n*o;return r>90?{width:l,height:s}:{width:s,height:l}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),a=i.width,o=i.height,s=n.width*(a/n.naturalWidth),l=n.height*(o/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(l-n.height)/2,n.width=s,n.height=l,n.aspectRatio=a/o,n.naturalWidth=a,n.naturalHeight=o,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighte.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=e.left+(e.width-i.width)/2,i.top=e.top+(e.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=Av({},i)},limitCropBox:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=this.limited,s=n.aspectRatio;if(t){var l=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,u=o?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,d=o?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;l=Math.min(l,r.width),c=Math.min(c,r.height),s&&(l&&c?c*s>l?c=l/s:l=c*s:l?c=l/s:c&&(l=c*s),d*s>u?d=u/s:u=d*s),a.minWidth=Math.min(l,u),a.minHeight=Math.min(c,d),a.maxWidth=u,a.maxHeight=d}e&&(o?(a.minLeft=Math.max(0,i.left),a.minTop=Math.max(0,i.top),a.maxLeft=Math.min(r.width,i.left+i.width)-a.width,a.maxTop=Math.min(r.height,i.top+i.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=r.width-a.width,a.maxTop=r.height-a.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=e.width&&n.height>=e.height?xm:Cm),Ov(this.cropBox,Av({width:n.width,height:n.height},Xv({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),jv(this.element,Zm,this.getData())}},tg={initPreview:function(){var t=this.element,e=this.crossOrigin,n=this.options.preview,r=e?this.crossOriginUrl:this.url,i=t.alt||"The image to preview",a=document.createElement("img");if(e&&(a.crossOrigin=e),a.src=r,a.alt=i,this.viewBox.appendChild(a),this.viewBoxImage=a,n){var o=n;"string"==typeof n?o=t.ownerDocument.querySelectorAll(n):n.querySelector&&(o=[n]),this.previews=o,Sv(o,function(t){var n=document.createElement("img");Pv(t,Gm,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(n.crossOrigin=e),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(n)})}},resetPreview:function(){Sv(this.previews,function(t){var e=kv(t,Gm);Ov(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(yv(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(Nv(e)))}(t,Gm)})},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,a=t.width,o=t.height,s=n.left-e.left-t.left,l=n.top-e.top-t.top;this.cropped&&!this.disabled&&(Ov(this.viewBoxImage,Av({width:a,height:o},Xv(Av({translateX:-s,translateY:-l},t)))),Sv(this.previews,function(e){var n=kv(e,Gm),c=n.width,u=n.height,d=c,h=u,p=1;r&&(h=i*(p=c/r)),i&&h>u&&(d=r*(p=u/i),h=u),Ov(e,{width:d,height:h}),Ov(e.getElementsByTagName("img")[0],Av({width:a*p,height:o*p},Xv(Av({translateX:-s*p,translateY:-l*p},t))))}))}},eg={bind:function(){var t=this.element,e=this.options,n=this.cropper;_v(e.cropstart)&&Uv(t,Jm,e.cropstart),_v(e.cropmove)&&Uv(t,Qm,e.cropmove),_v(e.cropend)&&Uv(t,Ym,e.cropend),_v(e.crop)&&Uv(t,Zm,e.crop),_v(e.zoom)&&Uv(t,sv,e.zoom),Uv(n,ev,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&Uv(n,ov,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Uv(n,tv,this.onDblclick=this.dblclick.bind(this)),Uv(t.ownerDocument,nv,this.onCropMove=this.cropMove.bind(this)),Uv(t.ownerDocument,rv,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&Uv(window,av,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;_v(e.cropstart)&&Bv(t,Jm,e.cropstart),_v(e.cropmove)&&Bv(t,Qm,e.cropmove),_v(e.cropend)&&Bv(t,Ym,e.cropend),_v(e.crop)&&Bv(t,Zm,e.crop),_v(e.zoom)&&Bv(t,sv,e.zoom),Bv(n,ev,this.onCropStart),e.zoomable&&e.zoomOnWheel&&Bv(n,ov,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Bv(n,tv,this.onDblclick),Bv(t.ownerDocument,nv,this.onCropMove),Bv(t.ownerDocument,rv,this.onCropEnd),e.responsive&&Bv(window,av,this.onResize)}},ng={resize:function(){if(!this.disabled){var t,e,n=this.options,r=this.container,i=this.containerData,a=r.offsetWidth/i.width,o=r.offsetHeight/i.height,s=Math.abs(a-1)>Math.abs(o-1)?a:o;if(1!==s)n.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(Sv(t,function(e,n){t[n]=e*s})),this.setCropBoxData(Sv(e,function(t,n){e[n]=t*s})))}},dblclick:function(){var t,e;this.disabled||this.options.dragMode===qm||this.setDragMode((t=this.dragBox,e=Hm,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?Km:Xm))},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,t)))},cropStart:function(t){var e=t.buttons,n=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(mv(e)&&1!==e||mv(n)&&0!==n||t.ctrlKey))){var r,i=this.options,a=this.pointers;t.changedTouches?Sv(t.changedTouches,function(t){a[t.identifier]=Kv(t)}):a[t.pointerId||0]=Kv(t),r=Object.keys(a).length>1&&i.zoomable&&i.zoomOnTouch?Om:kv(t.target,zm),cv.test(r)&&!1!==jv(this.element,Jm,{originalEvent:t,action:r})&&(t.preventDefault(),this.action=r,this.cropping=!1,r===wm&&(this.cropping=!0,Rv(this.dragBox,$m)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==jv(this.element,Qm,{originalEvent:t,action:e})&&(t.changedTouches?Sv(t.changedTouches,function(t){Av(n[t.identifier]||{},Kv(t,!0))}):Av(n[t.pointerId||0]||{},Kv(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?Sv(t.changedTouches,function(t){delete n[t.identifier]}):delete n[t.pointerId||0],e&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Mv(this.dragBox,$m,this.cropped&&this.options.modal)),jv(this.element,Ym,{originalEvent:t,action:e}))}}},rg={change:function(t){var e,n=this.options,r=this.canvasData,i=this.containerData,a=this.cropBoxData,o=this.pointers,s=this.action,l=n.aspectRatio,c=a.left,u=a.top,d=a.width,h=a.height,p=c+d,f=u+h,m=0,v=0,g=i.width,y=i.height,b=!0;!l&&t.shiftKey&&(l=d&&h?d/h:1),this.limited&&(m=a.minLeft,v=a.minTop,g=m+Math.min(i.width,r.width,r.left+r.width),y=v+Math.min(i.height,r.height,r.top+r.height));var E=o[Object.keys(o)[0]],_={x:E.endX-E.startX,y:E.endY-E.startY},T=function(t){switch(t){case Rm:p+_.x>g&&(_.x=g-p);break;case Lm:c+_.xy&&(_.y=y-f)}};switch(s){case Cm:c+=_.x,u+=_.y;break;case Rm:if(_.x>=0&&(p>=g||l&&(u<=v||f>=y))){b=!1;break}T(Rm),(d+=_.x)<0&&(s=Lm,c-=d=-d),l&&(h=d/l,u+=(a.height-h)/2);break;case Dm:if(_.y<=0&&(u<=v||l&&(c<=m||p>=g))){b=!1;break}T(Dm),h-=_.y,u+=_.y,h<0&&(s=Mm,u-=h=-h),l&&(d=h*l,c+=(a.width-d)/2);break;case Lm:if(_.x<=0&&(c<=m||l&&(u<=v||f>=y))){b=!1;break}T(Lm),d-=_.x,c+=_.x,d<0&&(s=Rm,c-=d=-d),l&&(h=d/l,u+=(a.height-h)/2);break;case Mm:if(_.y>=0&&(f>=y||l&&(c<=m||p>=g))){b=!1;break}T(Mm),(h+=_.y)<0&&(s=Dm,u-=h=-h),l&&(d=h*l,c+=(a.width-d)/2);break;case Nm:if(l){if(_.y<=0&&(u<=v||p>=g)){b=!1;break}T(Dm),h-=_.y,u+=_.y,d=h*l}else T(Dm),T(Rm),_.x>=0?pv&&(h-=_.y,u+=_.y):(h-=_.y,u+=_.y);d<0&&h<0?(s=Fm,u-=h=-h,c-=d=-d):d<0?(s=km,c-=d=-d):h<0&&(s=Pm,u-=h=-h);break;case km:if(l){if(_.y<=0&&(u<=v||c<=m)){b=!1;break}T(Dm),h-=_.y,u+=_.y,d=h*l,c+=a.width-d}else T(Dm),T(Lm),_.x<=0?c>m?(d-=_.x,c+=_.x):_.y<=0&&u<=v&&(b=!1):(d-=_.x,c+=_.x),_.y<=0?u>v&&(h-=_.y,u+=_.y):(h-=_.y,u+=_.y);d<0&&h<0?(s=Pm,u-=h=-h,c-=d=-d):d<0?(s=Nm,c-=d=-d):h<0&&(s=Fm,u-=h=-h);break;case Fm:if(l){if(_.x<=0&&(c<=m||f>=y)){b=!1;break}T(Lm),d-=_.x,c+=_.x,h=d/l}else T(Mm),T(Lm),_.x<=0?c>m?(d-=_.x,c+=_.x):_.y>=0&&f>=y&&(b=!1):(d-=_.x,c+=_.x),_.y>=0?f=0&&(p>=g||f>=y)){b=!1;break}T(Rm),h=(d+=_.x)/l}else T(Mm),T(Rm),_.x>=0?p=0&&f>=y&&(b=!1):d+=_.x,_.y>=0?fMath.abs(n)&&(n=l)})}),n}(o),t),b=!1;break;case wm:if(!_.x||!_.y){b=!1;break}e=Vv(this.cropper),c=E.startX-e.left,u=E.startY-e.top,d=a.minWidth,h=a.minHeight,_.x>0?s=_.y>0?Pm:Nm:_.x<0&&(c-=d,s=_.y>0?Fm:km),_.y<0&&(u-=h),this.cropped||(Lv(this.cropBox,Um),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}b&&(a.width=d,a.height=h,a.left=c,a.top=u,this.action=s,this.renderCropBox()),Sv(o,function(t){t.startX=t.endX,t.startY=t.endY})}},ig={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Rv(this.dragBox,$m),Lv(this.cropBox,Um),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Av({},this.initialImageData),this.canvasData=Av({},this.initialCanvasData),this.cropBoxData=Av({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Av(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Lv(this.dragBox,$m),Rv(this.cropBox,Um)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,Sv(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Lv(this.cropper,Bm)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Rv(this.cropper,Bm)),this},destroy:function(){var t=this.element;return t[Am]?(t[Am]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(gv(t)?t:r+Number(t),gv(e)?e:i+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(mv(t)&&(n.left=t,r=!0),mv(e)&&(n.top=e,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var r=this.options,i=this.canvasData,a=i.width,o=i.height,s=i.naturalWidth,l=i.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*t,u=l*t;if(!1===jv(this.element,sv,{ratio:t,oldRatio:a/s,originalEvent:n}))return this;if(n){var d=this.pointers,h=Vv(this.cropper),p=d&&Object.keys(d).length?function(t){var e=0,n=0,r=0;return Sv(t,function(t){var i=t.startX,a=t.startY;e+=i,n+=a,r+=1}),{pageX:e/=r,pageY:n/=r}}(d):{pageX:n.pageX,pageY:n.pageY};i.left-=(c-a)*((p.pageX-h.left-i.left)/a),i.top-=(u-o)*((p.pageY-h.top-i.top)/o)}else Ev(e)&&mv(e.x)&&mv(e.y)?(i.left-=(c-a)*((e.x-i.left)/a),i.top-=(u-o)*((e.y-i.top)/o)):(i.left-=(c-a)/2,i.top-=(u-o)/2);i.width=c,i.height=u,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return mv(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,mv(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(mv(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(mv(t)&&(n.scaleX=t,r=!0),mv(e)&&(n.scaleY=e,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,a=this.cropBoxData;if(this.ready&&this.cropped){t={x:a.left-i.left,y:a.top-i.top,width:a.width,height:a.height};var o=r.width/r.naturalWidth;if(Sv(t,function(e,n){t[n]=e/o}),e){var s=Math.round(t.y+t.height),l=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=l-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=r.rotate||0),n.scalable&&(t.scaleX=r.scaleX||1,t.scaleY=r.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&Ev(t)){var a=!1;e.rotatable&&mv(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,a=!0),e.scalable&&(mv(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,a=!0),mv(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var o=n.width/n.naturalWidth;mv(t.x)&&(i.left=t.x*o+r.left),mv(t.y)&&(i.top=t.y*o+r.top),mv(t.width)&&(i.width=t.width*o),mv(t.height)&&(i.height=t.height*o),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?Av({},this.containerData):{}},getImageData:function(){return this.sized?Av({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&Sv(["left","top","width","height","naturalWidth","naturalHeight"],function(n){e[n]=t[n]}),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&Ev(t)&&(mv(t.left)&&(e.left=t.left),mv(t.top)&&(e.top=t.top),mv(t.width)?(e.width=t.width,e.height=t.width/n):mv(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&Ev(t)&&(mv(t.left)&&(r.left=t.left),mv(t.top)&&(r.top=t.top),mv(t.width)&&t.width!==r.width&&(e=!0,r.width=t.width),mv(t.height)&&t.height!==r.height&&(n=!0,r.height=t.height),i&&(e?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,n=function(t,e,n,r){var i=e.aspectRatio,a=e.naturalWidth,o=e.naturalHeight,s=e.rotate,l=void 0===s?0:s,c=e.scaleX,u=void 0===c?1:c,d=e.scaleY,h=void 0===d?1:d,p=n.aspectRatio,f=n.naturalWidth,m=n.naturalHeight,v=r.fillColor,g=void 0===v?"transparent":v,y=r.imageSmoothingEnabled,b=void 0===y||y,E=r.imageSmoothingQuality,_=void 0===E?"low":E,T=r.maxWidth,I=void 0===T?1/0:T,S=r.maxHeight,A=void 0===S?1/0:S,C=r.minWidth,w=void 0===C?0:C,x=r.minHeight,O=void 0===x?0:x,R=document.createElement("canvas"),L=R.getContext("2d"),M=qv({aspectRatio:p,width:I,height:A}),D=qv({aspectRatio:p,width:w,height:O},"cover"),N=Math.min(M.width,Math.max(D.width,f)),k=Math.min(M.height,Math.max(D.height,m)),P=qv({aspectRatio:i,width:I,height:A}),F=qv({aspectRatio:i,width:w,height:O},"cover"),H=Math.min(P.width,Math.max(F.width,a)),B=Math.min(P.height,Math.max(F.height,o)),U=[-H/2,-B/2,H,B];return R.width=wv(N),R.height=wv(k),L.fillStyle=g,L.fillRect(0,0,N,k),L.save(),L.translate(N/2,k/2),L.rotate(l*Math.PI/180),L.scale(u,h),L.imageSmoothingEnabled=b,L.imageSmoothingQuality=_,L.drawImage.apply(L,[t].concat(bm(U.map(function(t){return Math.floor(wv(t))})))),L.restore(),R}(this.image,this.imageData,e,t);if(!this.cropped)return n;var r=this.getData(t.rounded),i=r.x,a=r.y,o=r.width,s=r.height,l=n.width/Math.floor(e.naturalWidth);1!==l&&(i*=l,a*=l,o*=l,s*=l);var c=o/s,u=qv({aspectRatio:c,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),d=qv({aspectRatio:c,width:t.minWidth||0,height:t.minHeight||0},"cover"),h=qv({aspectRatio:c,width:t.width||(1!==l?n.width:o),height:t.height||(1!==l?n.height:s)}),p=h.width,f=h.height;p=Math.min(u.width,Math.max(d.width,p)),f=Math.min(u.height,Math.max(d.height,f));var m=document.createElement("canvas"),v=m.getContext("2d");m.width=wv(p),m.height=wv(f),v.fillStyle=t.fillColor||"transparent",v.fillRect(0,0,p,f);var g=t.imageSmoothingEnabled,y=void 0===g||g,b=t.imageSmoothingQuality;v.imageSmoothingEnabled=y,b&&(v.imageSmoothingQuality=b);var E,_,T,I,S,A,C=n.width,w=n.height,x=i,O=a;x<=-o||x>C?(x=0,E=0,T=0,S=0):x<=0?(T=-x,x=0,S=E=Math.min(C,o+x)):x<=C&&(T=0,S=E=Math.min(o,C-x)),E<=0||O<=-s||O>w?(O=0,_=0,I=0,A=0):O<=0?(I=-O,O=0,A=_=Math.min(w,s+O)):O<=w&&(I=0,A=_=Math.min(s,w-O));var R=[x,O,E,_];if(S>0&&A>0){var L=p/o;R.push(T*L,I*L,S*L,A*L)}return v.drawImage.apply(v,[n].concat(bm(R.map(function(t){return Math.floor(wv(t))})))),m},setAspectRatio:function(t){var e=this.options;return this.disabled||gv(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i=t===Xm,a=e.movable&&t===Km;t=i||a?t:qm,e.dragMode=t,Pv(n,zm,t),Mv(n,Hm,i),Mv(n,Wm,a),e.cropBoxMovable||(Pv(r,zm,t),Mv(r,Hm,i),Mv(r,Wm,a))}return this}},ag=Tm.Cropper,og=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||!hv.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Av({},pv,Ev(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return e=t,r=[{key:"noConflict",value:function(){return window.Cropper=ag,t}},{key:"setDefaults",value:function(t){Av(pv,Ev(t)&&t)}}],(n=[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e[Am]){if(e[Am]=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(uv.test(t))dv.test(t)?this.read((i=t.replace(Yv,""),a=atob(i),o=new ArrayBuffer(a.length),Sv(s=new Uint8Array(o),function(t,e){s[e]=a.charCodeAt(e)}),o)):this.clone();else{var i,a,o,s,l=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=c,l.onerror=c,l.ontimeout=c,l.onprogress=function(){l.getResponseHeader("content-type")!==lv&&l.abort()},l.onload=function(){e.read(l.response)},l.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&zv(t)&&n.crossOrigin&&(t=Gv(t)),l.open("GET",t,!0),l.responseType="arraybuffer",l.withCredentials="use-credentials"===n.crossOrigin,l.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=Qv(t),i=0,a=1,o=1;if(r>1){this.url=function(t,e){for(var n=[],r=new Uint8Array(t);r.length>0;)n.push(Zv.apply(null,Iv(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}(t,lv);var s=function(t){var e=0,n=1,r=1;switch(t){case 2:n=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90}return{rotate:e,scaleX:n,scaleY:r}}(r);i=s.rotate,a=s.scaleX,o=s.scaleY}e.rotatable&&(n.rotate=i),e.scalable&&(n.scaleX=a,n.scaleY=o),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,n=t.crossOrigin,r=e;this.options.checkCrossOrigin&&zv(e)&&(n||(n="anonymous"),r=Gv(e)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||e,i.alt=t.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),Rv(i,jm),t.parentNode.insertBefore(i,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=Tm.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Tm.navigator.userAgent),r=function(e,n){Av(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.initialImageData=Av({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||n){var i=document.createElement("img"),a=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||a.removeChild(i)},i.src=e.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(i))}else r(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,r=t.parentNode,i=document.createElement("div");i.innerHTML='
';var a=i.querySelector(".".concat(Am,"-container")),o=a.querySelector(".".concat(Am,"-canvas")),s=a.querySelector(".".concat(Am,"-drag-box")),l=a.querySelector(".".concat(Am,"-crop-box")),c=l.querySelector(".".concat(Am,"-face"));this.container=r,this.cropper=a,this.canvas=o,this.dragBox=s,this.cropBox=l,this.viewBox=a.querySelector(".".concat(Am,"-view-box")),this.face=c,o.appendChild(n),Rv(t,Um),r.insertBefore(a,t.nextSibling),Lv(n,jm),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,Rv(l,Um),e.guides||Rv(l.getElementsByClassName("".concat(Am,"-dashed")),Um),e.center||Rv(l.getElementsByClassName("".concat(Am,"-center")),Um),e.background&&Rv(a,"".concat(Am,"-bg")),e.highlight||Rv(c,Vm),e.cropBoxMovable&&(Rv(c,Wm),Pv(c,zm,Cm)),e.cropBoxResizable||(Rv(l.getElementsByClassName("".concat(Am,"-line")),Um),Rv(l.getElementsByClassName("".concat(Am,"-point")),Um)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),_v(e.ready)&&Uv(t,iv,e.ready,{once:!0}),jv(t,iv)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var t=this.cropper.parentNode;t&&t.removeChild(this.cropper),Lv(this.element,Um)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&gm(e.prototype,n),r&&gm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();Av(og.prototype,Jv,tg,eg,ng,rg,ig);var sg,lg,cg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ug={};function dg(){if(lg)return sg;lg=1;var t=function(t){return t&&t.Math===Math&&t};return sg=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof cg&&cg)||t("object"==typeof sg&&sg)||function(){return this}()||Function("return this")()}var hg,pg,fg,mg,vg,gg,yg,bg,Eg={};function _g(){return pg?hg:(pg=1,hg=function(t){try{return!!t()}catch(e){return!0}})}function Tg(){if(mg)return fg;mg=1;var t=_g();return fg=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Ig(){if(gg)return vg;gg=1;var t=_g();return vg=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function Sg(){if(bg)return yg;bg=1;var t=Ig(),e=Function.prototype.call;return yg=t?e.bind(e):function(){return e.apply(e,arguments)},yg}var Ag,Cg,wg,xg,Og,Rg,Lg,Mg,Dg,Ng,kg,Pg,Fg,Hg,Bg,Ug,jg,Vg,$g,Wg,zg,Gg,Xg,Kg,qg,Zg,Yg,Qg,Jg,ty,ey,ny,ry,iy,ay,oy,sy,ly,cy,uy,dy,hy={};function py(){return wg?Cg:(wg=1,Cg=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function fy(){if(Og)return xg;Og=1;var t=Ig(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return xg=t?r:function(t){return function(){return n.apply(t,arguments)}},xg}function my(){if(Lg)return Rg;Lg=1;var t=fy(),e=t({}.toString),n=t("".slice);return Rg=function(t){return n(e(t),8,-1)}}function vy(){return kg?Ng:(kg=1,Ng=function(t){return null==t})}function gy(){if(Fg)return Pg;Fg=1;var t=vy(),e=TypeError;return Pg=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function yy(){if(Bg)return Hg;Bg=1;var t=function(){if(Dg)return Mg;Dg=1;var t=fy(),e=_g(),n=my(),r=Object,i=t("".split);return Mg=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):r(t)}:r}(),e=gy();return Hg=function(n){return t(e(n))}}function by(){if(jg)return Ug;jg=1;var t="object"==typeof document&&document.all;return Ug=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function Ey(){if($g)return Vg;$g=1;var t=by();return Vg=function(e){return"object"==typeof e?null!==e:t(e)}}function _y(){if(zg)return Wg;zg=1;var t=dg(),e=by();return Wg=function(n,r){return arguments.length<2?(i=t[n],e(i)?i:void 0):t[n]&&t[n][r];var i},Wg}function Ty(){if(Xg)return Gg;Xg=1;var t=fy();return Gg=t({}.isPrototypeOf)}function Iy(){if(Yg)return Zg;Yg=1;var t,e,n=dg(),r=function(){if(qg)return Kg;qg=1;var t=dg().navigator,e=t&&t.userAgent;return Kg=e?String(e):""}(),i=n.process,a=n.Deno,o=i&&i.versions||a&&a.version,s=o&&o.v8;return s&&(e=(t=s.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),Zg=e}function Sy(){if(Jg)return Qg;Jg=1;var t=Iy(),e=_g(),n=dg().String;return Qg=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Ay(){if(ey)return ty;ey=1;var t=Sy();return ty=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Cy(){if(ry)return ny;ry=1;var t=_y(),e=by(),n=Ty(),r=Ay(),i=Object;return ny=r?function(t){return"symbol"==typeof t}:function(r){var a=t("Symbol");return e(a)&&n(a.prototype,i(r))}}function wy(){if(sy)return oy;sy=1;var t=by(),e=function(){if(ay)return iy;ay=1;var t=String;return iy=function(e){try{return t(e)}catch(n){return"Object"}}}(),n=TypeError;return oy=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function xy(){if(cy)return ly;cy=1;var t=wy(),e=vy();return ly=function(n,r){var i=n[r];return e(i)?void 0:t(i)},ly}var Oy,Ry,Ly,My,Dy,Ny,ky,Py,Fy,Hy,By,Uy,jy,Vy,$y,Wy,zy,Gy,Xy,Ky,qy,Zy,Yy,Qy,Jy={exports:{}};function tb(){return Ry?Oy:(Ry=1,Oy=!1)}function eb(){if(My)return Ly;My=1;var t=dg(),e=Object.defineProperty;return Ly=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(i){t[n]=r}return r}}function nb(){if(Dy)return Jy.exports;Dy=1;var t=tb(),e=dg(),n=eb(),r="__core-js_shared__",i=Jy.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.45.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Jy.exports}function rb(){if(ky)return Ny;ky=1;var t=nb();return Ny=function(e,n){return t[e]||(t[e]=n||{})}}function ib(){if(Fy)return Py;Fy=1;var t=gy(),e=Object;return Py=function(n){return e(t(n))}}function ab(){if(By)return Hy;By=1;var t=fy(),e=ib(),n=t({}.hasOwnProperty);return Hy=Object.hasOwn||function(t,r){return n(e(t),r)}}function ob(){if(jy)return Uy;jy=1;var t=fy(),e=0,n=Math.random(),r=t(1.1.toString);return Uy=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function sb(){if($y)return Vy;$y=1;var t=dg(),e=rb(),n=ab(),r=ob(),i=Sy(),a=Ay(),o=t.Symbol,s=e("wks"),l=a?o.for||o:o&&o.withoutSetter||r;return Vy=function(t){return n(s,t)||(s[t]=i&&n(o,t)?o[t]:l("Symbol."+t)),s[t]}}function lb(){if(zy)return Wy;zy=1;var t=Sg(),e=Ey(),n=Cy(),r=xy(),i=function(){if(dy)return uy;dy=1;var t=Sg(),e=by(),n=Ey(),r=TypeError;return uy=function(i,a){var o,s;if("string"===a&&e(o=i.toString)&&!n(s=t(o,i)))return s;if(e(o=i.valueOf)&&!n(s=t(o,i)))return s;if("string"!==a&&e(o=i.toString)&&!n(s=t(o,i)))return s;throw new r("Can't convert object to primitive value")}}(),a=sb(),o=TypeError,s=a("toPrimitive");return Wy=function(a,l){if(!e(a)||n(a))return a;var c,u=r(a,s);if(u){if(void 0===l&&(l="default"),c=t(u,a,l),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===l&&(l="number"),i(a,l)}}function cb(){if(Xy)return Gy;Xy=1;var t=lb(),e=Cy();return Gy=function(n){var r=t(n,"string");return e(r)?r:r+""}}function ub(){if(qy)return Ky;qy=1;var t=dg(),e=Ey(),n=t.document,r=e(n)&&e(n.createElement);return Ky=function(t){return r?n.createElement(t):{}}}function db(){if(Yy)return Zy;Yy=1;var t=Tg(),e=_g(),n=ub();return Zy=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function hb(){if(Qy)return Eg;Qy=1;var t=Tg(),e=Sg(),n=function(){if(Ag)return hy;Ag=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return hy.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,hy}(),r=py(),i=yy(),a=cb(),o=ab(),s=db(),l=Object.getOwnPropertyDescriptor;return Eg.f=t?l:function(t,c){if(t=i(t),c=a(c),s)try{return l(t,c)}catch(u){}if(o(t,c))return r(!e(n.f,t,c),t[c])},Eg}var pb,fb,mb,vb,gb,yb,bb,Eb={};function _b(){if(fb)return pb;fb=1;var t=Tg(),e=_g();return pb=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Tb(){if(vb)return mb;vb=1;var t=Ey(),e=String,n=TypeError;return mb=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function Ib(){if(gb)return Eb;gb=1;var t=Tg(),e=db(),n=_b(),r=Tb(),i=cb(),a=TypeError,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return Eb.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&u in n&&!n[u]){var a=s(t,e);a&&a[u]&&(t[e]=n.value,n={configurable:c in n?n[c]:a[c],enumerable:l in n?n[l]:a[l],writable:!1})}return o(t,e,n)}:o:function(t,n,s){if(r(t),n=i(n),r(s),e)try{return o(t,n,s)}catch(l){}if("get"in s||"set"in s)throw new a("Accessors not supported");return"value"in s&&(t[n]=s.value),t},Eb}function Sb(){if(bb)return yb;bb=1;var t=Tg(),e=Ib(),n=py();return yb=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t}}var Ab,Cb,wb,xb,Ob,Rb,Lb,Mb,Db,Nb,kb,Pb,Fb,Hb,Bb,Ub={exports:{}};function jb(){if(Mb)return Lb;Mb=1;var t=rb(),e=ob(),n=t("keys");return Lb=function(t){return n[t]||(n[t]=e(t))}}function Vb(){return Nb?Db:(Nb=1,Db={})}function $b(){if(Pb)return kb;Pb=1;var t,e,n,r=function(){if(Rb)return Ob;Rb=1;var t=dg(),e=by(),n=t.WeakMap;return Ob=e(n)&&/native code/.test(String(n))}(),i=dg(),a=Ey(),o=Sb(),s=ab(),l=nb(),c=jb(),u=Vb(),d="Object already initialized",h=i.TypeError,p=i.WeakMap;if(r||l.state){var f=l.state||(l.state=new p);f.get=f.get,f.has=f.has,f.set=f.set,t=function(t,e){if(f.has(t))throw new h(d);return e.facade=t,f.set(t,e),e},e=function(t){return f.get(t)||{}},n=function(t){return f.has(t)}}else{var m=c("state");u[m]=!0,t=function(t,e){if(s(t,m))throw new h(d);return e.facade=t,o(t,m,e),e},e=function(t){return s(t,m)?t[m]:{}},n=function(t){return s(t,m)}}return kb={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!a(n)||(r=e(n)).type!==t)throw new h("Incompatible receiver, "+t+" required");return r}}}}function Wb(){if(Fb)return Ub.exports;Fb=1;var t=fy(),e=_g(),n=by(),r=ab(),i=Tg(),a=function(){if(Cb)return Ab;Cb=1;var t=Tg(),e=ab(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),a=i&&"something"===function(){}.name,o=i&&(!t||t&&r(n,"name").configurable);return Ab={EXISTS:i,PROPER:a,CONFIGURABLE:o}}().CONFIGURABLE,o=function(){if(xb)return wb;xb=1;var t=fy(),e=by(),n=nb(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),wb=n.inspectSource}(),s=$b(),l=s.enforce,c=s.get,u=String,d=Object.defineProperty,h=t("".slice),p=t("".replace),f=t([].join),m=i&&!e(function(){return 8!==d(function(){},"length",{value:8}).length}),v=String(String).split("String"),g=Ub.exports=function(t,e,n){"Symbol("===h(u(e),0,7)&&(e="["+p(u(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||a&&t.name!==e)&&(i?d(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&r(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?i&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(s){}var o=l(t);return r(o,"source")||(o.source=f(v,"string"==typeof e?e:"")),t};return Function.prototype.toString=g(function(){return n(this)&&c(this).source||o(this)},"toString"),Ub.exports}function zb(){if(Bb)return Hb;Bb=1;var t=by(),e=Ib(),n=Wb(),r=eb();return Hb=function(i,a,o,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:a;if(t(o)&&n(o,c,s),s.global)l?i[a]=o:r(a,o);else{try{s.unsafe?i[a]&&(l=!0):delete i[a]}catch(u){}l?i[a]=o:e.f(i,a,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i}}var Gb,Xb,Kb,qb,Zb,Yb,Qb,Jb,tE,eE,nE,rE,iE,aE,oE,sE,lE,cE={};function uE(){if(qb)return Kb;qb=1;var t=function(){if(Xb)return Gb;Xb=1;var t=Math.ceil,e=Math.floor;return Gb=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}();return Kb=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function dE(){if(Jb)return Qb;Jb=1;var t=uE(),e=Math.min;return Qb=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function hE(){if(rE)return nE;rE=1;var t=yy(),e=function(){if(Yb)return Zb;Yb=1;var t=uE(),e=Math.max,n=Math.min;return Zb=function(r,i){var a=t(r);return a<0?e(a+i,0):n(a,i)}}(),n=function(){if(eE)return tE;eE=1;var t=dE();return tE=function(e){return t(e.length)}}(),r=function(r){return function(i,a,o){var s=t(i),l=n(s);if(0===l)return!r&&-1;var c,u=e(o,l);if(r&&a!=a){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((r||u in s)&&s[u]===a)return r||u||0;return!r&&-1}};return nE={includes:r(!0),indexOf:r(!1)}}function pE(){if(aE)return iE;aE=1;var t=fy(),e=ab(),n=yy(),r=hE().indexOf,i=Vb(),a=t([].push);return iE=function(t,o){var s,l=n(t),c=0,u=[];for(s in l)!e(i,s)&&e(l,s)&&a(u,s);for(;o.length>c;)e(l,s=o[c++])&&(~r(u,s)||a(u,s));return u}}function fE(){return sE?oE:(sE=1,oE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var mE,vE,gE,yE,bE,EE,_E,TE,IE,SE,AE,CE,wE,xE,OE,RE,LE,ME,DE,NE,kE,PE,FE,HE,BE,UE,jE,VE={};function $E(){if(gE)return vE;gE=1;var t=_y(),e=fy(),n=function(){if(lE)return cE;lE=1;var t=pE(),e=fE().concat("length","prototype");return cE.f=Object.getOwnPropertyNames||function(n){return t(n,e)},cE}(),r=(mE||(mE=1,VE.f=Object.getOwnPropertySymbols),VE),i=Tb(),a=e([].concat);return vE=t("Reflect","ownKeys")||function(t){var e=n.f(i(t)),o=r.f;return o?a(e,o(t)):e}}function WE(){if(IE)return TE;IE=1;var t=dg(),e=hb().f,n=Sb(),r=zb(),i=eb(),a=function(){if(bE)return yE;bE=1;var t=ab(),e=$E(),n=hb(),r=Ib();return yE=function(i,a,o){for(var s=e(a),l=r.f,c=n.f,u=0;u]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return HE=function(t,l,c,u,d,h){var p=c+t.length,f=u.length,m=s;return void 0!==d&&(d=e(d),m=o),i(h,m,function(e,i){var o;switch(r(i,0)){case"$":return"$";case"&":return t;case"`":return a(l,0,c);case"'":return a(l,p);case"<":o=d[a(i,1,-1)];break;default:var s=+i;if(0===s)return e;if(s>f){var h=n(s/10);return 0===h?e:h<=f?void 0===u[h-1]?r(i,1):u[h-1]+r(i,1):e}o=u[s-1]}return void 0===o?"":o})}}function ZE(){if(UE)return ug;UE=1;var t=WE(),e=Sg(),n=fy(),r=gy(),i=by(),a=Ey(),o=function(){if(AE)return SE;AE=1;var t=Ey(),e=my(),n=sb()("match");return SE=function(r){var i;return t(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===e(r))}}(),s=GE(),l=xy(),c=KE(),u=qE(),d=sb(),h=tb(),p=d("replace"),f=TypeError,m=n("".indexOf),v=n("".replace),g=n("".slice),y=Math.max;return t({target:"String",proto:!0},{replaceAll:function(t,n){var d,b,E,_,T,I,S,A,C,w,x=r(this),O=0,R="";if(a(t)){if((d=o(t))&&(b=s(r(c(t))),!~m(b,"g")))throw new f("`.replaceAll` does not allow non-global regexes");if(E=l(t,p))return e(E,t,x,n);if(h&&d)return v(s(x),t,n)}for(_=s(x),T=s(t),(I=i(n))||(n=s(n)),S=T.length,A=y(1,S),C=m(_,T);-1!==C;)w=I?s(n(T,C,_)):u(T,_,C,[],void 0,n),R+=g(_,O,C)+w,O=C+S,C=C+A>_.length?-1:m(_,T,C+A);return O<_.length&&(R+=g(_,O)),R}}),ug}var YE,QE,JE={};var t_,e_,n_,r_,i_,a_,o_,s_,l_,c_,u_,d_,h_,p_,f_={};function m_(){if(n_)return f_;n_=1;var t=Tg(),e=_b(),n=Ib(),r=Tb(),i=yy(),a=function(){if(e_)return t_;e_=1;var t=pE(),e=fE();return t_=Object.keys||function(n){return t(n,e)}}();return f_.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var o,s=i(e),l=a(e),c=l.length,u=0;c>u;)n.f(t,o=l[u++],s[o]);return t},f_}function v_(){if(o_)return a_;o_=1;var t,e=Tb(),n=m_(),r=fE(),i=Vb(),a=function(){if(i_)return r_;i_=1;var t=_y();return r_=t("document","documentElement")}(),o=ub(),s=jb(),l="prototype",c="script",u=s("IE_PROTO"),d=function(){},h=function(t){return"<"+c+">"+t+""},p=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},f=function(){try{t=new ActiveXObject("htmlfile")}catch(u){}var e,n,i;f="undefined"!=typeof document?document.domain&&t?p(t):(n=o("iframe"),i="java"+c+":",n.style.display="none",a.appendChild(n),n.src=String(i),(e=n.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):p(t);for(var s=r.length;s--;)delete f[l][r[s]];return f()};return i[u]=!0,a_=Object.create||function(t,r){var i;return null!==t?(d[l]=e(t),i=new d,d[l]=null,i[u]=t):i=f(),void 0===r?i:n.f(i,r)}}function g_(){if(h_)return d_;h_=1;var t,e,n=Sg(),r=fy(),i=GE(),a=XE(),o=function(){if(QE)return YE;QE=1;var t=_g(),e=dg().RegExp,n=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=n||t(function(){return!e("a","y").sticky}),i=n||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return YE={BROKEN_CARET:i,MISSED_STICKY:r,UNSUPPORTED_Y:n}}(),s=rb(),l=v_(),c=$b().get,u=function(){if(l_)return s_;l_=1;var t=_g(),e=dg().RegExp;return s_=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),d=function(){if(u_)return c_;u_=1;var t=_g(),e=dg().RegExp;return c_=t(function(){var t=e("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})}(),h=s("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,f=p,m=r("".charAt),v=r("".indexOf),g=r("".replace),y=r("".slice),b=(e=/b*/g,n(p,t=/a/,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=o.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];return(b||_||E||u||d)&&(f=function(t){var e,r,o,s,u,d,T,I=this,S=c(I),A=i(t),C=S.raw;if(C)return C.lastIndex=I.lastIndex,e=n(f,C,A),I.lastIndex=C.lastIndex,e;var w=S.groups,x=E&&I.sticky,O=n(a,I),R=I.source,L=0,M=A;if(x&&(O=g(O,"y",""),-1===v(O,"g")&&(O+="g"),M=y(A,I.lastIndex),I.lastIndex>0&&(!I.multiline||I.multiline&&"\n"!==m(A,I.lastIndex-1))&&(R="(?: "+R+")",M=" "+M,L++),r=new RegExp("^(?:"+R+")",O)),_&&(r=new RegExp("^"+R+"$(?!\\s)",O)),b&&(o=I.lastIndex),s=n(p,x?r:I,M),x?s?(s.input=y(s.input,L),s[0]=y(s[0],L),s.index=I.lastIndex,I.lastIndex+=s[0].length):I.lastIndex=0:b&&s&&(I.lastIndex=I.global?s.index+s[0].length:o),_&&s&&s.length>1&&n(h,s[0],r,function(){for(u=1;u=p?t?"":void 0:(c=a(d,h))<55296||c>56319||h+1===p||(u=a(d,h+1))<56320||u>57343?t?i(d,h):c:t?o(d,h,h+2):u-56320+(c-55296<<10)+65536}};return I_={codeAt:s(!1),charAt:s(!0)}}().charAt;return A_=function(e,n,r){return n+(r?t(e,n).length:1)}}function $_(){if(O_)return j_;O_=1;var t=function(){if(E_)return b_;E_=1;var t=Ig(),e=Function.prototype,n=e.apply,r=e.call;return b_="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),b_}(),e=Sg(),n=fy(),r=function(){if(T_)return __;T_=1,y_();var t=Sg(),e=zb(),n=g_(),r=_g(),i=sb(),a=Sb(),o=i("species"),s=RegExp.prototype;return __=function(l,c,u,d){var h=i(l),p=!r(function(){var t={};return t[h]=function(){return 7},7!==""[l](t)}),f=p&&!r(function(){var t=!1,e=/a/;return"split"===l&&((e={}).constructor={},e.constructor[o]=function(){return e},e.flags="",e[h]=/./[h]),e.exec=function(){return t=!0,null},e[h](""),!t});if(!p||!f||u){var m=/./[h],v=c(h,""[l],function(e,r,i,a,o){var l=r.exec;return l===n||l===s.exec?p&&!o?{done:!0,value:t(m,r,i,a)}:{done:!0,value:t(e,i,r,a)}:{done:!1}});e(String.prototype,l,v[0]),e(s,h,v[1])}d&&a(s[h],"sham",!0)}}(),i=_g(),a=Tb(),o=by(),s=Ey(),l=uE(),c=dE(),u=GE(),d=gy(),h=V_(),p=xy(),f=qE(),m=KE(),v=function(){if(x_)return w_;x_=1;var t=Sg(),e=Tb(),n=by(),r=my(),i=g_(),a=TypeError;return w_=function(o,s){var l=o.exec;if(n(l)){var c=t(l,o,s);return null!==c&&e(c),c}if("RegExp"===r(o))return t(i,o,s);throw new a("RegExp#exec called on incompatible receiver")}}(),g=sb()("replace"),y=Math.max,b=Math.min,E=n([].concat),_=n([].push),T=n("".indexOf),I=n("".slice),S=function(t){return void 0===t?t:String(t)},A="$0"==="a".replace(/./,"$0"),C=!!/./[g]&&""===/./[g]("a","$0");return r("replace",function(n,r,i){var A=C?"$":"$0";return[function(t,n){var i=d(this),a=s(t)?p(t,g):void 0;return a?e(a,t,i,n):e(r,u(i),t,n)},function(e,n){var s=a(this),d=u(e);if("string"==typeof n&&-1===T(n,A)&&-1===T(n,"$<")){var p=i(r,s,d,n);if(p.done)return p.value}var g=o(n);g||(n=u(n));var C,w=u(m(s)),x=-1!==T(w,"g");x&&(C=-1!==T(w,"u"),s.lastIndex=0);for(var O,R=[];null!==(O=v(s,d))&&(_(R,O),x);){""===u(O[0])&&(s.lastIndex=h(d,c(s.lastIndex),C))}for(var L="",M=0,D=0;D=M&&(L+=I(d,M,P)+N,M=P+k.length)}return L+I(d,M)}]},!!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})||!A||C),j_}function W_(){if(D_)return M_;D_=1,y_(),$_(),ZE();var t=function(){if(L_)return R_;L_=1;var t=dg(),e=fy();return R_=function(n,r){return e(t[n].prototype[r])}}();return M_=t("String","replaceAll")}function z_(){if(F_)return P_;F_=1;var t=function(){if(k_)return N_;k_=1;var t=W_();return N_=t}();return P_=t}function G_(){if(B_)return H_;B_=1,jE||(jE=1,ZE());var t=z_();return H_=t}U_||(U_=1,G_());var X_=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n0},t.prototype.connect_=function(){K_&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Q_?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){K_&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;Y_.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),tT=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),hT="undefined"!=typeof WeakMap?new WeakMap:new X_,pT=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=J_.getInstance(),r=new dT(e,n,this);hT.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(t){pT.prototype[t]=function(){var e;return(e=hT.get(this))[t].apply(e,arguments)}});var fT=void 0!==q_.ResizeObserver?q_.ResizeObserver:pT;export{La as $,je as A,Ae as B,Ii as C,Rr as D,ot as E,Dr as F,en as G,Ur as H,Pr as I,Xa as J,Ti as K,Ei as L,Si as M,jd as N,Yr as O,Oa as P,Na as Q,Je as R,ql as S,ei as T,Ft as U,Ht as V,Gh as W,Da as X,Gi as Y,_r as Z,$e as _,Xl as a,Ga as a0,Oo as a1,Ma as a2,ip as a3,Jh as a4,fr as a5,gr as a6,Ra as a7,ep as a8,dh as a9,or as aA,Ho as aB,ar as aC,Zr as aD,we as aE,ir as aF,hm as aG,Ms as aH,oi as aI,Ba as aJ,og as aK,po as aL,mo as aM,fo as aN,Uo as aO,jo as aP,Zd as aQ,Yd as aR,Jd as aS,Fa as aT,fT as aU,yr as aV,hh as aa,ph as ab,Ih as ac,Rh as ad,nh as ae,Ha as af,fh as ag,Op as ah,gi as ai,Cp as aj,Mp as ak,Do as al,Lp as am,vi as an,yi as ao,Fo as ap,lf as aq,Wp as ar,op as as,sp as at,Sr as au,lp as av,Vr as aw,Mo as ax,Ir as ay,Zh as az,Ru as b,Lu as c,xu as d,Ed as e,Vn as f,pi as g,Ye as h,Ai as i,dr as j,Tr as k,li as l,vr as m,Ut as n,Ou as o,Re as p,Bt as q,di as r,Ie as s,jn as t,te as u,Vl as v,hi as w,mr as x,Ve as y,Or as z};
0