0
Loading
!function(){function t(t,n,r,i){var a=e(M(1&i?t.prototype:t),n,r);return 2&i&&"function"==typeof a?function(t){return a.apply(r,t)}:a}function e(){return e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=M(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},e.apply(null,arguments)}function n(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 r(t){for(var e=1;e3?(i=p===r)&&(s=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=t):a[0]<=h&&((i=n<2&&hr||r>p)&&(a[4]=n,a[5]=r,f.n=p,o=0))}if(i||n>1)return u;throw d=!0,r}return function(i,l,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===l&&h(l,p),o=l,s=p;(e=o<2?t:s)||!d;){a||(o?o<3?(o>1&&(f.n=-1),h(o,s)):f.n=s:f.v=s);try{if(c=2,a){if(o||(i="next"),e=a[i]){if(!(e=e.call(a,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,o<2&&(o=0)}else 1===o&&(e=a.return)&&e.call(a),o<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=t}else if((e=(d=f.n<0)?s:n.call(r,f))!==u)break}catch(e){a=t,o=1,s=e}finally{c=1}}return{value:e,done:d}}}(n,i,o),!0),l}var u={};function c(){}function l(){}function d(){}e=Object.getPrototypeOf;var f=[][r]?e(e([][r]())):(a(e={},r,function(){return this}),e),h=d.prototype=c.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,a(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return l.prototype=d,a(h,"constructor",d),a(d,"constructor",l),l.displayName="GeneratorFunction",a(d,o,"GeneratorFunction"),a(h),a(h,o,"Generator"),a(h,r,function(){return this}),a(h,"toString",function(){return"[object Generator]"}),(i=function(){return{w:s,m:p}})()}function a(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}a=function(t,e,n,r){function o(e,n){a(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},a(t,e,n,r)}function o(t){return d(t)||b(t)||_(t)||l()}function s(t,e,n,r,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(t){s(a,r,i,o,u,"next",t)}function u(t){s(a,r,i,o,u,"throw",t)}o(void 0)})}}function c(t,e){return d(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||_(t,e)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t){if(Array.isArray(t))return t}function f(t,e){p(t,e),e.add(t)}function h(t,e,n){p(t,e),e.set(t,n)}function p(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function v(t,e,n){return t.set(g(t,e),n),n}function m(t,e){return t.get(g(t,e))}function g(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function y(t){return function(t){if(Array.isArray(t))return T(t)}(t)||b(t)||_(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function E(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=_(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _(t,e){if(t){if("string"==typeof t)return T(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:{};return eh(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. */,O:ii,P:za,Q:qa,R:vn,T:ui,U:Ft,V:Ht,Z:kr,_:on,a0:function(t,e){Bt(e,!0);var n=c(Oi(),2),r=(n[0],n[1]),i=Si(e.value);Ht(e.key,i),hn(function(){xi(i,e.value)}),Pi(function(){i.set(void 0)});var a=Ar();Fr(an(a),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,a),Ut(),r()},a1:Fo,a2:Xa,a3:function(t,e){Bt(e,!0);var n,i=Di(e,"use",19,function(){return[]}),a=Di(e,"class",3,""),o=Di(e,"notched",3,!1),s=Di(e,"noLabel",3,!1),u=Ri(e,["$$slots","$$events","$$legacy","use","class","notched","noLabel","children"]),l=We(void 0),d=We(void 0),f=Ye({}),h=Ye({}),p=void 0;function v(t){f[t]||(f[t]=!0)}function m(t){t in f&&!f[t]||(f[t]=!1)}hn(function(){ir(d)!==p&&(ir(d)?(ir(d).addStyle("transition-duration","0s"),v("mdc-notched-outline--upgraded"),requestAnimationFrame(function(){ir(d)&&ir(d).removeStyle("transition-duration")})):m("mdc-notched-outline--upgraded"),p=ir(d))}),Ht("SMUI:floating-label:mount",function(t){Xe(d,t,!0)}),Ht("SMUI:floating-label:unmount",function(){Xe(d,void 0)}),Ni(function(){return Xe(l,new jh({addClass:v,removeClass:m,setNotchWidthProperty:function(t){return n=t+"px",void(h[e="width"]!=n&&(""===n||null==n?delete h[e]:h[e]=n));var e,n},removeNotchWidthProperty:function(){var t;(t="width")in h&&delete h[t]}}),!0),ir(l).init(),function(){var t;null===(t=ir(l))||void 0===t||t.destroy()}});var g={notch:function(t){var e;null===(e=ir(l))||void 0===e||e.notch(t)},closeNotch:function(){var t;null===(t=ir(l))||void 0===t||t.closeNotch()},getElement:function(){return n}},y=np();ii(y,function(t){return r({class:t},u)},[function(){return za(r(r({"mdc-notched-outline":!0,"mdc-notched-outline--notched":o(),"mdc-notched-outline--no-label":s()},f),{},D({},a(),!0)))}]);var b=on(rn(y),2),E=function(t){var n=ep();Fr(rn(n),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),gn(function(t){return qr(n,t)},[function(){return Object.entries(h).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).join(" ")}]),Cr(t,n)};return kr(b,function(t){s()||t(E)}),bi(y,function(t){return n=t},function(){return n}),Ur(y,function(t,e){return null==qa?void 0:qa(t,e)},i),Cr(t,y),Ut(g)},a4:function(t,e){var n;Bt(e,!0);var i,a=Di(e,"use",19,function(){return[]}),o=Di(e,"class",3,""),s=Di(e,"style",3,""),u=Di(e,"floatAbove",15,!1),l=Di(e,"required",15,!1),d=Di(e,"wrapped",3,!1),f=Ri(e,["$$slots","$$events","$$legacy","use","class","style","for","floatAbove","required","wrapped","children"]),h=We(void 0),p=new Ka,v=Ye({}),m=Ye({}),g=null!==(n=Ft("SMUI:generic:input:props"))&&void 0!==n?n:{},y=u();hn(function(){ir(h)&&y!==u()&&(y=u(),ir(h).float(u()))});var b=l();hn(function(){ir(h)&&b!==l()&&(b=l(),ir(h).setRequired(l()))});var E=Ft("SMUI:floating-label:mount"),_=Ft("SMUI:floating-label:unmount");function T(t){v[t]||(v[t]=!0)}function S(t){t in v&&!v[t]||(v[t]=!1)}function I(t,e){m[t]!=e&&(""===e||null==e?delete m[t]:m[t]=e)}function A(t){t in m&&delete m[t]}function C(){return i}Ni(function(){Xe(h,new Nh({addClass:T,removeClass:S,getWidth:function(){var t,e,n=C(),r=n.cloneNode(!0);null===(t=n.parentNode)||void 0===t||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");var i=r.scrollWidth;return null===(e=n.parentNode)||void 0===e||e.removeChild(r),i},registerInteractionHandler:function(t,e){return p.on(C(),t,e)},deregisterInteractionHandler:function(t,e){return p.off(C(),t,e)}}),!0);var t={get element(){return C()},addStyle:I,removeStyle:A};return E&&E(t),ir(h).init(),function(){var e;_&&_(t),null===(e=ir(h))||void 0===e||e.destroy(),p.clear()}});var w={shake:function(t){var e;null===(e=ir(h))||void 0===e||e.shake(t)},float:function(t){u(t)},setRequired:function(t){l(t)},getWidth:function(){if(null==ir(h))throw new Error("Instance is undefined.");return ir(h).getWidth()},getElement:C},x=Ar(),O=an(x),k=function(t){var n=Qh();ii(n,function(t,e){return r({class:t,style:e},f)},[function(){return za(r(r({"mdc-floating-label":!0,"mdc-floating-label--float-above":u(),"mdc-floating-label--required":l()},v),{},D({},o(),!0)))},function(){return Object.entries(m).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).concat([s()]).join(" ")}]),Fr(rn(n),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),bi(n,function(t){return i=t},function(){return i}),Ur(n,function(t,e){return null==qa?void 0:qa(t,e)},a),Cr(t,n)},R=function(t){var n=Jh();ii(n,function(t,n){return r({class:t,style:n,for:e.for||(g?g.id:void 0)},f)},[function(){return za(r(r({"mdc-floating-label":!0,"mdc-floating-label--float-above":u(),"mdc-floating-label--required":l()},v),{},D({},o(),!0)))},function(){return Object.entries(m).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).concat([s()]).join(" ")}]),Fr(rn(n),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),bi(n,function(t){return i=t},function(){return i}),Ur(n,function(t,e){return null==qa?void 0:qa(t,e)},a),Cr(t,n)};return kr(O,function(t){d()?t(k):t(R,!1)}),Cr(t,x),Ut(w)},a5:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=tn(t+"");return Tr(e,e),e},a6:wr,a7:Wa,a8:function(t,e){Bt(e,!0);var n,i=Di(e,"use",19,function(){return[]}),a=Di(e,"class",3,""),o=Di(e,"style",3,""),s=Di(e,"active",3,!1),u=Ri(e,["$$slots","$$events","$$legacy","use","class","style","active"]),l=We(void 0),d=new Ka,f=Ye({}),h=Ye({});function p(t){return t in f?f[t]:y().classList.contains(t)}function v(t){f[t]||(f[t]=!0)}function m(t){t in f&&!f[t]||(f[t]=!1)}function g(t,e){h[t]!=e&&(""===e||null==e?delete h[t]:h[t]=e)}function y(){return n}Ni(function(){return Xe(l,new Fh({addClass:v,removeClass:m,hasClass:p,setStyle:g,registerEventHandler:function(t,e){return d.on(y(),t,e)},deregisterEventHandler:function(t,e){return d.off(y(),t,e)}}),!0),ir(l).init(),function(){var t;null===(t=ir(l))||void 0===t||t.destroy(),d.clear()}});var b={activate:function(){var t;null===(t=ir(l))||void 0===t||t.activate()},deactivate:function(){var t;null===(t=ir(l))||void 0===t||t.deactivate()},setRippleCenter:function(t){var e;null===(e=ir(l))||void 0===e||e.setRippleCenter(t)},getElement:y},E=tp();return ii(E,function(t,e){return r({class:t,style:e},u)},[function(){return za(r(r({"mdc-line-ripple":!0,"mdc-line-ripple--active":s()},f),{},D({},a(),!0)))},function(){return Object.entries(h).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).concat([o()]).join(" ")}]),bi(E,function(t){return n=t},function(){return n}),Ur(E,function(t,e){return null==qa?void 0:qa(t,e)},i),Cr(t,E),Ut(b)},a9:function(t,e){var n;Bt(e,!0);var i,a,o,s=function(){return wi(M,"$aboveFullscreenShown",l)},u=c(Oi(),2),l=u[0],d=u[1],f=la.FocusTrap,h=ta.closest,p=ta.matches,v=Di(e,"use",19,function(){return[]}),m=Di(e,"class",3,""),g=Di(e,"open",15,!1),y=Di(e,"selection",3,!1),b=Di(e,"escapeKeyAction",3,"close"),E=Di(e,"scrimClickAction",3,"close"),_=Di(e,"autoStackButtons",3,!0),T=Di(e,"fullscreen",3,!1),S=Di(e,"sheet",3,!1),I=Di(e,"noContentPadding",3,!1),A=Di(e,"container$class",3,""),C=Di(e,"surface$class",3,""),w=Ri(e,["$$slots","$$events","$$legacy","use","class","open","selection","escapeKeyAction","scrimClickAction","autoStackButtons","fullscreen","sheet","noContentPadding","container$class","surface$class","children","over"]),x=We(void 0),O=new Ka,k=Ye({}),R=Si(!1),L=Ft("SMUI:dialog:aboveFullscreen"),M=null!==(n=Ft("SMUI:dialog:aboveFullscreenShown"))&&void 0!==n?n:Si(!1),N=Ft("SMUI:addLayoutListener"),P=[];Ht("SMUI:dialog:actions:reversed",R),Ht("SMUI:addLayoutListener",function(t){return P.push(t),function(){var e=P.indexOf(t);e>=0&&P.splice(e,1)}}),Ht("SMUI:dialog:selection",y()),Ht("SMUI:dialog:aboveFullscreen",L||T()),Ht("SMUI:dialog:aboveFullscreenShown",M),S()&&Ht("SMUI:icon-button:context","dialog:sheet");hn(function(){ir(x)&&ir(x).getEscapeKeyAction()!==b()&&ir(x).setEscapeKeyAction(b())}),hn(function(){ir(x)&&ir(x).getScrimClickAction()!==E()&&ir(x).setScrimClickAction(E())}),hn(function(){ir(x)&&ir(x).getAutoStackButtons()!==_()&&ir(x).setAutoStackButtons(_())}),hn(function(){_()||xi(R,!0)}),N&&(o=N(z));hn(function(){ir(x)&&ir(x).isOpen()!==g()&&(g()?ir(x).open({isAboveFullscreenDialog:!!L}):ir(x).close())});var F=s();function B(t){return t in k?k[t]:W().classList.contains(t)}function U(t){k[t]||(k[t]=!0)}function j(t){t in k&&!k[t]||(k[t]=!1)}function V(){return W().querySelector(".mdc-dialog__content")}function $(){return W().querySelector("[data-mdc-dialog-initial-focus]")}function z(){var t;return null===(t=ir(x))||void 0===t?void 0:t.layout()}function W(){return i}hn(function(){T()&&ir(x)&&F!==s()&&(F=s(),s()?ir(x).showSurfaceScrim():ir(x).hideSurfaceScrim())}),Ni(function(){var t;return a=new f(i,{initialFocusEl:null!==(t=$())&&void 0!==t?t:void 0}),Xe(x,new gh({addBodyClass:function(t){return document.body.classList.add(t)},addClass:U,areButtonsStacked:function(){return t=[].slice.call(W().querySelectorAll(".mdc-dialog__button")),e=new Set,[].forEach.call(t,function(t){return e.add(t.offsetTop)}),e.size>1;var t,e; /** * @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. */},clickDefaultButton:function(){var t=W().querySelector("[data-mdc-dialog-button-default]");t&&t.click()},eventTargetMatches:function(t,e){return!!t&&p(t,e)},getActionFromEvent:function(t){if(!t.target)return"";var e=h(t.target,"[data-mdc-dialog-action]");return e&&e.getAttribute("data-mdc-dialog-action")},getInitialFocusEl:$,hasClass:B,isContentScrollable:function(){return!!(t=V())&&t.scrollHeight>t.offsetHeight; /** * @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 t},notifyClosed:function(t){g(!1),Wa(W(),"SMUIDialogClosed",t?{action:t}:{})},notifyClosing:function(t){return Wa(W(),"SMUIDialogClosing",t?{action:t}:{})},notifyOpened:function(){return Wa(W(),"SMUIDialogOpened",{})},notifyOpening:function(){return Wa(W(),"SMUIDialogOpening",{})},releaseFocus:function(){return a.releaseFocus()},removeBodyClass:function(t){return document.body.classList.remove(t)},removeClass:j,reverseButtons:function(){xi(R,!0)},trapFocus:function(){return a.trapFocus()},registerContentEventHandler:function(t,e){var n=V();n instanceof HTMLElement&&O.on(n,t,e)},deregisterContentEventHandler:function(t,e){var n=V();n instanceof HTMLElement&&O.off(n,t,e)},isScrollableContentAtTop:function(){return!!(t=V())&&0===t.scrollTop;var t},isScrollableContentAtBottom:function(){return!!(t=V())&&Math.ceil(t.scrollHeight-t.scrollTop)===t.clientHeight;var t},registerWindowEventHandler:function(t,e){return O.on(window,t,e)},deregisterWindowEventHandler:function(t,e){return O.off(window,t,e)}}),!0),ir(x).init(),function(){var t;null===(t=ir(x))||void 0===t||t.destroy(),O.clear()}}),Pi(function(){o&&o()});var G={isOpen:function(){return g()},setOpen:function(t){g(t)},layout:z,getElement:W},X=bh();yr("resize",He,function(){return g()&&ir(x)&&ir(x).layout()}),yr("orientationchange",He,function(){return g()&&ir(x)&&ir(x).layout()}),yr("keydown",Be.body,function(t){return ir(x)&&ir(x).handleDocumentKeydown(t)});var K=an(X),q=function(t){var n;L&&xi(M,!0),requestAnimationFrame(function(){P.forEach(function(t){return t()})}),null===(n=e.onSMUIDialogOpening)||void 0===n||n.call(e,t)},Z=function(t){var n;P.forEach(function(t){return t()}),null===(n=e.onSMUIDialogOpened)||void 0===n||n.call(e,t)},Y=function(t){var n;L&&xi(M,!1),null===(n=e.onSMUIDialogClosed)||void 0===n||n.call(e,t)},Q=function(t){var n;ir(x)&&ir(x).handleClick(t),null===(n=e.onclick)||void 0===n||n.call(e,t)},J=function(t){var n;ir(x)&&ir(x).handleKeydown(t),null===(n=e.onkeydown)||void 0===n||n.call(e,t)};ii(K,function(t,e){return r(r({class:t,role:"alertdialog","aria-modal":"true"},e),{},{onSMUIDialogOpening:q,onSMUIDialogOpened:Z,onSMUIDialogClosed:Y,onclick:Q,onkeydown:J})},[function(){return za(r(r({"mdc-dialog":!0,"mdc-dialog--stacked":!_(),"mdc-dialog--fullscreen":T(),"mdc-dialog--sheet":S(),"mdc-dialog--no-content-padding":I(),"smui-dialog--selection":y()},k),{},D({},m(),!0)))},function(){return Ga(w,["container$","surface$"])}]);var tt=rn(K);ii(tt,function(t,e){return r({class:t},e)},[function(){return za(D({"mdc-dialog__container":!0},A(),!0))},function(){return Xa(w,"container$")}]);var et=rn(tt);ii(et,function(t,e){return r({class:t,role:"alertdialog","aria-modal":"true"},e)},[function(){return za(D({"mdc-dialog__surface":!0},C(),!0))},function(){return Xa(w,"surface$")}]);var nt=rn(et);Fr(nt,function(){var t;return null!==(t=e.children)&&void 0!==t?t:H});var rt=on(nt,2),it=function(t){var e=yh();yr("transitionend",e,function(){return ir(x)&&ir(x).handleSurfaceScrimTransitionEnd()}),Cr(t,e)};kr(rt,function(t){T()&&t(it)}),bi(K,function(t){return i=t},function(){return i}),Ur(K,function(t,e){return null==qa?void 0:qa(t,e)},v),Fr(on(K,2),function(){var t;return null!==(t=e.over)&&void 0!==t?t:H}),Cr(t,X);var at=Ut(G);return d(),at},aA:br,aB:function(t,e){Bt(e,!0);var n,r=Ri(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return bi(io(t,Mi({_smuiClass:"mdc-deprecated-list-item__text",tag:"span"},function(){return r},{children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n}),Ut(i)},aC:yr,aD:ni,aE:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=ir(t),r=1===e?n++:n--;return Xe(t,n),r},aF:gr,aH:function(t,e){var n;Bt(e,!0);var i,a,o,s,u=Di(e,"use",19,function(){return[]}),l=Di(e,"class",3,""),d=Di(e,"disabled",3,!1),f=Di(e,"range",3,!1),h=Di(e,"discrete",3,!1),p=Di(e,"tickMarks",3,!1),v=Di(e,"step",3,1),m=Di(e,"min",3,0),g=Di(e,"max",3,100),b=Di(e,"minRange",3,0),E=Di(e,"value",15),_=Di(e,"start",15),T=Di(e,"end",15),S=Di(e,"valueToAriaValueTextFn",3,function(t){return"".concat(t)}),I=Di(e,"hideFocusStylesForPointerEvents",3,!1),A=Di(e,"input$class",3,""),C=Ri(e,["$$slots","$$events","$$legacy","use","class","disabled","range","discrete","tickMarks","step","min","max","minRange","value","start","end","valueToAriaValueTextFn","hideFocusStylesForPointerEvents","input$class"]),w=We(void 0),x=new Ka,O=We(void 0),k=We(void 0),R=void 0,L=void 0,M=Ye({}),N=Ye({}),P=Ye({}),F=Ye({}),H=Ye({}),B=Ye({}),U=Ye({}),j=Ye({}),V=We(!1),$=We(!1),z=We(Ye([])),W=null!==(n=Ft("SMUI:generic:input:props"))&&void 0!==n?n:{},G=Ft("SMUI:addLayoutListener"),X=m();hn(function(){m()!==X&&(ir(w)&&ir(w).setMin(m()),X=m())});var K=g();hn(function(){g()!==K&&(ir(w)&&ir(w).setMax(g()),K=g())});var q=v();hn(function(){v()!==q&&(ir(w)&&ir(w).setStep(v()),q=v())});var Z=h();hn(function(){h()!==Z&&(ir(w)&&ir(w).setIsDiscrete(h()),Z=h())});var Y=p();if(hn(function(){p()!==Y&&(ir(w)&&ir(w).setHasTickMarks(p()),Y=p())}),p()&&v()>0){var Q=g()+Math.abs(m());if(f()&&"number"==typeof _()&&"number"==typeof T()){var J=_()+Math.abs(m()),tt=T()+Math.abs(m());Xe(z,[].concat(y(Array(J/v()).map(function(){return zo.INACTIVE})),y(Array(Q/v()-J/v()-(Q-tt)/v()+1).map(function(){return zo.ACTIVE})),y(Array((Q-tt)/v()).map(function(){return zo.INACTIVE}))),!0)}else if("number"==typeof E()){var et=E()+Math.abs(m());Xe(z,[].concat(y(Array(et/v()+1).map(function(){return zo.ACTIVE})),y(Array((Q-et)/v()).map(function(){return zo.INACTIVE}))),!0)}}if(f()&&"number"==typeof _()&&"number"==typeof T()){var nt=(T()-_())/(g()-m()),rt=_()/(g()-m()),it=T()/(g()-m());B.transform="scaleX(".concat(nt,")"),U.left="calc(".concat(100*it,"% -24px)"),j.left="calc(".concat(100*rt,"% -24px)")}else if("number"==typeof E()){var at=E()/(g()-m());B.transform="scaleX(".concat(at,")"),U.left="calc(".concat(100*at,"% -24px)")}G&&(s=G(St));var ot=E(),st=_(),ut=T();hn(function(){ir(w)&&(ot!==E()&&"number"==typeof E()&&ir(w).setValue(E()),st!==_()&&"number"==typeof _()&&ir(w).setValueStart(_()),ut!==T()&&"number"==typeof T()&&ir(w).setValue(T()),ot=E(),st=_(),ut=T(),ir(w).layout())});var ct=Ft("SMUI:generic:input:mount"),lt=Ft("SMUI:generic:input:unmount");function dt(t){return t in M?M[t]:It().classList.contains(t)}function ft(t){M[t]||(M[t]=!0)}function ht(t){t in M&&!M[t]||(M[t]=!1)}function pt(t,e){f()&&e===Wo.START?N[t]||(N[t]=!0):P[t]||(P[t]=!0)}function vt(t,e){f()&&e===Wo.START?t in N&&!N[t]||(N[t]=!1):t in P&&!P[t]||(P[t]=!1)}function mt(t,e,n){f()&&n===Wo.START?j[t]!=e&&(""===e||null==e?delete j[t]:j[t]=e):U[t]!=e&&(""===e||null==e?delete U[t]:U[t]=e)}function gt(t,e){f()&&e===Wo.START?t in j&&delete j[t]:t in U&&delete U[t]}function yt(t,e){var n,r,i,a,o,s;return f()&&e===Wo.START?"value"===t?"".concat(_()):t in H?null!==(n=H[t])&&void 0!==n?n:null:null!==(r=null===(i=ir(k))||void 0===i?void 0:i.getAttribute(t))&&void 0!==r?r:null:"value"===t?"".concat(f()?T():E()):t in F?null!==(a=F[t])&&void 0!==a?a:null:null!==(o=null===(s=ir(O))||void 0===s?void 0:s.getAttribute(t))&&void 0!==o?o:null}function bt(t,e,n){f()&&n===Wo.START?H[t]!==e&&(H[t]=e):F[t]!==e&&(F[t]=e)}function Et(t,e){f()&&e===Wo.START?t in H&&null==H[t]||(H[t]=void 0):t in F&&null==F[t]||(F[t]=void 0)}function _t(t,e){B[t]!=e&&(""===e||null==e?delete B[t]:B[t]=e)}function Tt(t){t in B&&delete B[t]}function St(){var t;return null===(t=ir(w))||void 0===t?void 0:t.layout()}function It(){return i}Ni(function(){Xe(w,new Es({hasClass:dt,addClass:ft,removeClass:ht,addThumbClass:pt,removeThumbClass:vt,getAttribute:function(t){return It().getAttribute(t)},getInputValue:function(t){var e;return"".concat(null!==(e=f()?t===Wo.START?_():T():E())&&void 0!==e?e:0)},setInputValue:function(t,e){f()?e===Wo.START?(_(Number(t)),st=_()):(T(Number(t)),ut=T()):(E(Number(t)),ot=E())},getInputAttribute:yt,setInputAttribute:bt,removeInputAttribute:Et,focusInput:function(t){var e;f()&&t===Wo.START&&ir(k)?ir(k).focus():null===(e=ir(O))||void 0===e||e.focus()},isInputFocused:function(t){return(f()&&t===Wo.START?ir(k):ir(O))===document.activeElement},shouldHideFocusStylesForPointerEvents:function(){return I()},getThumbKnobWidth:function(t){var e;return(null!==(e=f()&&t===Wo.START?L:o)&&void 0!==e?e:o).getBoundingClientRect().width},getThumbBoundingClientRect:function(t){var e;return(null!==(e=f()&&t===Wo.START?R:a)&&void 0!==e?e:a).getBoundingClientRect()},getBoundingClientRect:function(){return It().getBoundingClientRect()},getValueIndicatorContainerWidth:function(t){var e;return(null!==(e=f()&&t===Wo.START?R:a)&&void 0!==e?e:a).querySelector(".mdc-slider__value-indicator-container").getBoundingClientRect().width},isRTL:function(){return"rtl"===getComputedStyle(It()).direction},setThumbStyleProperty:mt,removeThumbStyleProperty:gt,setTrackActiveStyleProperty:_t,removeTrackActiveStyleProperty:Tt,setValueIndicatorText:function(t,e){},getValueToAriaValueTextFn:function(){return S()},updateTickMarks:function(t){Xe(z,t,!0)},setPointerCapture:function(t){It().setPointerCapture(t)},emitChangeEvent:function(t,e){Wa(It(),"SMUISliderChange",{value:t,thumb:e})},emitInputEvent:function(t,e){Wa(It(),"SMUISliderInput",{value:t,thumb:e})},emitDragStartEvent:function(t,e){f()&&e===Wo.START?Xe($,!0):Xe(V,!0)},emitDragEndEvent:function(t,e){f()&&e===Wo.START?Xe($,!1):Xe(V,!1)},registerEventHandler:function(t,e){return x.on(It(),t,e)},deregisterEventHandler:function(t,e){return x.off(It(),t,e)},registerThumbEventHandler:function(t,e,n){var r=f()&&t===Wo.START?R:a;r&&x.on(r,e,n)},deregisterThumbEventHandler:function(t,e,n){var r=f()&&t===Wo.START?R:a;r&&x.off(r,e,n)},registerInputEventHandler:function(t,e,n){var r=f()&&t===Wo.START?ir(k):ir(O);r&&x.on(r,e,n)},deregisterInputEventHandler:function(t,e,n){var r=f()&&t===Wo.START?ir(k):ir(O);r&&x.off(r,e,n)},registerBodyEventHandler:function(t,e){return x.on(document.body,t,e)},deregisterBodyEventHandler:function(t,e){return x.off(document.body,t,e)},registerWindowEventHandler:function(t,e){return x.on(window,t,e)},deregisterWindowEventHandler:function(t,e){return x.off(window,t,e)}}),!0);var t={get element(){return It()},activateRipple:function(){d()||Xe(V,!0)},deactivateRipple:function(){Xe(V,!1)}};return ct&&ct(t),ir(w).init(),ir(w).layout({skipUpdateUI:!0}),function(){var e;lt&<(t),null===(e=ir(w))||void 0===e||e.destroy(),x.clear()}}),Pi(function(){s&&s()});var At={layout:St,getId:function(){return W&&W.id},getElement:It},Ct=Rs();ii(Ct,function(t,e){return r(r({class:t},f()?{"data-min-range":"".concat(b())}:{}),e)},[function(){return Object.entries(r(r({"mdc-slider":!0,"mdc-slider--range":f(),"mdc-slider--discrete":h(),"mdc-slider--tick-marks":h()&&p(),"mdc-slider--disabled":d()},M),{},D({},l(),!0))).filter(function(t){var e=c(t,2),n=e[0],r=e[1];return""!==n&&r}).map(function(t){return c(t,1)[0]}).join(" ")},function(){return Ga(C,["input$"])}]);var wt=rn(Ct),xt=function(t){var n=Ts(),i=an(n),a=function(t){var n;Wa(It(),"blur",t),null===(n=e.input$onblur)||void 0===n||n.call(e,t)},o=function(t){var n;Wa(It(),"focus",t),null===(n=e.input$onfocus)||void 0===n||n.call(e,t)};ii(i,function(t,e){return r(r(r({class:t,type:"range",disabled:d(),step:v(),min:m(),max:T()},H),e),{},{onblur:a,onfocus:o})},[function(){return za(D({"mdc-slider__input":!0},A(),!0))},function(){return Xa(C,"input$")}],void 0,void 0,!0),bi(i,function(t){return Xe(k,t)},function(){return ir(k)});var s=on(i,2),u=function(t){var n;Wa(It(),"blur",t),null===(n=e.input$onblur)||void 0===n||n.call(e,t)},c=function(t){var n;Wa(It(),"focus",t),null===(n=e.input$onfocus)||void 0===n||n.call(e,t)};ii(s,function(t,e){return r(r(r(r({class:t,type:"range",disabled:d(),step:v(),min:_(),max:g()},W),F),e),{},{onblur:u,onfocus:c})},[function(){return za(D({"mdc-slider__input":!0},A(),!0))},function(){return Xa(C,"input$")}],void 0,void 0,!0),bi(s,function(t){return Xe(O,t)},function(){return ir(O)}),ui(i,_),ui(s,T),Cr(t,n)},Ot=function(t){var n=Ss(),i=function(t){var n;Wa(It(),"blur",t),null===(n=e.input$onblur)||void 0===n||n.call(e,t)},a=function(t){var n;Wa(It(),"focus",t),null===(n=e.input$onfocus)||void 0===n||n.call(e,t)};ii(n,function(t,e){return r(r(r(r({class:t,type:"range",disabled:d(),step:v(),min:m(),max:g()},W),F),e),{},{onblur:i,onfocus:a})},[function(){return za(D({"mdc-slider__input":!0},A(),!0))},function(){return Xa(C,"input$")}],void 0,void 0,!0),bi(n,function(t){return Xe(O,t)},function(){return ir(O)}),ui(n,E),Cr(t,n)};kr(wt,function(t){f()?t(xt):t(Ot,!1)});var kt=on(wt,2),Rt=on(rn(kt),2),Lt=rn(Rt),Mt=on(Rt,2),Dt=function(t){var e=As();Lr(e,21,function(){return ir(z)},Rr,function(t,e){var n=Is();gn(function(){return Xr(n,1,$r(ir(e)===zo.ACTIVE?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"))}),Cr(t,n)}),Cr(t,e)};kr(Mt,function(t){h()&&p()&&v()>0&&t(Dt)});var Nt=on(kt,2),Pt=function(t){var e=xs(),n=an(e),i=rn(n),s=function(t){var e=Cs(),n=rn(e),r=rn(n),i=rn(r);gn(function(){return wr(i,_())}),Cr(t,e)};kr(i,function(t){h()&&t(s)}),bi(on(i,2),function(t){return L=t},function(){return L}),bi(n,function(t){return R=t},function(){return R}),Ur(n,function(t,e){return null==Fo?void 0:Fo(t,e)},function(){return{unbounded:!0,disabled:d(),active:ir($),eventTarget:ir(k),activeTarget:ir(k),addClass:function(t){return pt(t,Wo.START)},removeClass:function(t){return vt(t,Wo.START)},addStyle:function(t,e){return mt(t,e,Wo.START)}}});var u=on(n,2),l=rn(u),f=function(t){var e=ws(),n=rn(e),r=rn(n),i=rn(r);gn(function(){return wr(i,T())}),Cr(t,e)};kr(l,function(t){h()&&t(f)}),bi(on(l,2),function(t){return o=t},function(){return o}),bi(u,function(t){return a=t},function(){return a}),Ur(u,function(t,e){return null==Fo?void 0:Fo(t,e)},function(){return{unbounded:!0,disabled:d(),active:ir(V),eventTarget:ir(O),activeTarget:ir(O),addClass:function(t){return pt(t,Wo.END)},removeClass:function(t){return vt(t,Wo.END)},addStyle:function(t,e){return mt(t,e,Wo.END)}}}),gn(function(t,e,r,i){Xr(n,1,t),qr(n,e),Xr(u,1,r),qr(u,i)},[function(){return $r(za(r({"mdc-slider__thumb":!0},N)))},function(){return Object.entries(j).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).join(" ")},function(){return $r(za(r({"mdc-slider__thumb":!0},P)))},function(){return Object.entries(U).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).join(" ")}]),Cr(t,e)},Ht=function(t){var e=ks(),n=rn(e),i=function(t){var e=Os(),n=rn(e),r=rn(n),i=rn(r);gn(function(){return wr(i,E())}),Cr(t,e)};kr(n,function(t){h()&&t(i)}),bi(on(n,2),function(t){return o=t},function(){return o}),bi(e,function(t){return a=t},function(){return a}),Ur(e,function(t,e){return null==Fo?void 0:Fo(t,e)},function(){return{unbounded:!0,disabled:d(),active:ir(V),eventTarget:ir(O),activeTarget:ir(O),addClass:function(t){return pt(t,Wo.END)},removeClass:function(t){return vt(t,Wo.END)},addStyle:function(t,e){return mt(t,e,Wo.END)}}}),gn(function(t,n){Xr(e,1,t),qr(e,n)},[function(){return $r(za(r({"mdc-slider__thumb":!0},P)))},function(){return Object.entries(U).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).join(" ")}]),Cr(t,e)};return kr(Nt,function(t){f()?t(Pt):t(Ht,!1)}),bi(Ct,function(t){return i=t},function(){return i}),Ur(Ct,function(t,e){return null==qa?void 0:qa(t,e)},u),gn(function(t){return qr(Lt,t)},[function(){return Object.entries(B).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).join(" ")}]),Cr(t,Ct),Ut(At)},aI:function(t,e,n){var r=gi.observe(t,function(){return n(t[e])});vn(function(){return or(function(){return n(t[e])}),r})},aJ:function(t,e){Bt(e,!0);var n,r=Di(e,"use",19,function(){return[]}),i=Di(e,"class",3,""),a=Di(e,"on",3,!1),o=Di(e,"component",3,Ja),s=Di(e,"tag",3,"i"),u=Ri(e,["$$slots","$$events","$$legacy","use","class","on","component","tag","children"]),c=te(function(){return"svg"===s()||o()===ro}),l=Ft("SMUI:icon:context");var d={getElement:function(){return n.getElement()}},f=Ar(),h=an(f),p=te(function(){return za(D({"mdc-button__icon":"button"===l,"mdc-fab__icon":"fab"===l,"mdc-icon-button__icon":"icon-button"===l,"mdc-icon-button__icon--on":"icon-button"===l&&a(),"mdc-tab__icon":"tab"===l,"mdc-banner__icon":"banner"===l,"mdc-segmented-button__icon":"segmented-button"===l},i(),!0))});return Hr(h,o,function(t,i){bi(i(t,Mi({get tag(){return s()},get use(){return r()},get class(){return ir(p)},"aria-hidden":"true"},function(){return ir(c)?{focusable:"false",tabindex:"-1"}:{}},function(){return u},{children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n})}),Cr(t,f),Ut(d)},aL:function(t,e){Bt(e,!0);var n,i,a=la.FocusTrap,o=Di(e,"use",19,function(){return[]}),s=Di(e,"class",3,""),u=Di(e,"open",15,!1),c=Di(e,"fixed",3,!0),l=Ri(e,["$$slots","$$events","$$legacy","use","class","variant","open","fixed","children"]),d=We(void 0),f=new Ka,h=We(Ye({})),p=We(null),v=We(!1);Ht("SMUI:list:nav",!0),Ht("SMUI:list:item:nav",!0),Ht("SMUI:list:wrapFocus",!0),hn(function(){ir(d)&&ir(d).isOpen()!==u()&&(u()?ir(d).open():ir(d).close())});var m=e.variant;function g(){var t,n;(ir(v)&&f.off(ir(v),"SMUIDrawerScrimClick",_),"modal"===e.variant)&&(Xe(v,null!==(t=null===(n=T().parentNode)||void 0===n?void 0:n.querySelector(".mdc-drawer-scrim"))&&void 0!==t&&t,!0),ir(v)&&f.on(ir(v),"SMUIDrawerScrimClick",_));var r="dismissible"===e.variant?_o:"modal"===e.variant?To:void 0;return r?new r({addClass:b,removeClass:E,hasClass:y,elementHasClass:function(t,e){return t.classList.contains(e)},saveFocus:function(){return Xe(p,document.activeElement,!0)},restoreFocus:function(){ir(p)&&"focus"in ir(p)&&T().contains(document.activeElement)&&ir(p).focus()},focusActiveNavigationItem:function(){var t=T().querySelector(".mdc-list-item--activated,.mdc-deprecated-list-item--activated");t&&t.focus()},notifyClose:function(){u(!1),Wa(T(),"SMUIDrawerClosed")},notifyOpen:function(){u(!0),Wa(T(),"SMUIDrawerOpened")},trapFocus:function(){return i.trapFocus()},releaseFocus:function(){return i.releaseFocus()}}):void 0}function y(t){return t in ir(h)?ir(h)[t]:T().classList.contains(t)}function b(t){ir(h)[t]||(ir(h)[t]=!0)}function E(t){t in ir(h)&&!ir(h)[t]||(ir(h)[t]=!1)}function _(){ir(d)&&"handleScrimClick"in ir(d)&&ir(d).handleScrimClick()}function T(){return n}hn(function(){m!==e.variant&&(m=e.variant,ir(d)&&ir(d).destroy(),Xe(h,{},!0),Xe(d,g(),!0),ir(d)&&ir(d).init())}),Ni(function(){i=new a(n,{skipInitialFocus:!0}),Xe(d,g(),!0),ir(d)&&ir(d).init()}),Pi(function(){ir(d)&&ir(d).destroy(),ir(v)&&f.off(ir(v),"SMUIDrawerScrimClick",_),f.clear()});var S={setOpen:function(t){u(t)},isOpen:function(){return u()},getElement:T},I=So(),A=function(t){var n;ir(d)&&ir(d).handleKeydown(t),null===(n=e.onkeydown)||void 0===n||n.call(e,t)},C=function(t){var n;ir(d)&&ir(d).handleTransitionEnd(t),null===(n=e.ontransitionend)||void 0===n||n.call(e,t)};return ii(I,function(t){return r(r({class:t},l),{},{onkeydown:A,ontransitionend:C})},[function(){return za(r(r({"mdc-drawer":!0,"mdc-drawer--dismissible":"dismissible"===e.variant,"mdc-drawer--modal":"modal"===e.variant,"smui-drawer__absolute":"modal"===e.variant&&!c()},ir(h)),{},D({},s(),!0)))}]),Fr(rn(I),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),bi(I,function(t){return n=t},function(){return n}),Ur(I,function(t,e){return null==qa?void 0:qa(t,e)},o),Cr(t,I),Ut(S)},aM:function(t,e){Bt(e,!0);var n,r=Di(e,"use",19,function(){return[]}),i=Di(e,"class",3,""),a=Di(e,"fixed",3,!0),o=Di(e,"component",3,Ja),s=Di(e,"tag",3,"div"),u=Ri(e,["$$slots","$$events","$$legacy","use","class","fixed","component","tag","children"]);function c(){return n.getElement()}var l={getElement:c},d=Ar(),f=an(d),h=te(function(){return za(D({"mdc-drawer-scrim":!0,"smui-drawer-scrim__absolute":!a()},i(),!0))});return Hr(f,o,function(t,i){bi(i(t,Mi({get tag(){return s()},get use(){return r()},get class(){return ir(h)}},function(){return u},{onclick:function(t){var n;!function(t){Wa(c(),"SMUIDrawerScrimClick",t)}(t),null===(n=e.onclick)||void 0===n||n.call(e,t)},children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n})}),Cr(t,d),Ut(l)} /** * @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. */,aN:function(t,e){Bt(e,!0);var n,r=Ri(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return bi(io(t,Mi({_smuiClass:"mdc-drawer__content",tag:"div"},function(){return r},{children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n}),Ut(i)},aO:function(t,e){Bt(e,!0);var n,i=Di(e,"use",19,function(){return[]}),a=Di(e,"class",3,""),o=Ri(e,["$$slots","$$events","$$legacy","use","class","children"]),s=Ft("SMUI:list:graphic:menu-selection-group");var u={getElement:function(){return n}},c=$o();return ii(c,function(t){return r({class:t},o)},[function(){return za(D({"mdc-deprecated-list-item__graphic":!0,"mdc-menu__selection-group-icon":s},a(),!0))}]),Fr(rn(c),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),bi(c,function(t){return n=t},function(){return n}),Ur(c,function(t,e){return null==qa?void 0:qa(t,e)},i),Cr(t,c),Ut(u)},aP:function(t,e){Bt(e,!0);var n,r=Ft("SMUI:list:item:nav"),i=Ft("SMUI:separator:context"),a=Di(e,"use",19,function(){return[]}),o=Di(e,"class",3,""),s=Di(e,"padded",3,!1),u=Di(e,"inset",3,!1),c=Di(e,"insetLeading",3,!1),l=Di(e,"insetTrailing",3,!1),d=Di(e,"insetPadding",3,!1),f=Di(e,"component",3,Ja),h=Di(e,"tag",3,r||"list"!==i?"hr":"li"),p=Ri(e,["$$slots","$$events","$$legacy","use","class","padded","inset","insetLeading","insetTrailing","insetPadding","component","tag","children"]);var v={getElement:function(){return n.getElement()}},m=Ar(),g=an(m),y=te(function(){return za(D({"mdc-deprecated-list-divider":!0,"mdc-deprecated-list-divider--padded":s(),"mdc-deprecated-list-divider--inset":u(),"mdc-deprecated-list-divider--inset-leading":c(),"mdc-deprecated-list-divider--inset-trailing":l(),"mdc-deprecated-list-divider--inset-padding":d()},o(),!0))});return Hr(g,f,function(t,e){bi(e(t,Mi({get tag(){return h()},get use(){return a()},get class(){return ir(y)},role:"separator"},function(){return p})),function(t){return n=t},function(){return n})}),Cr(t,m),Ut(v)} /** * @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. */,aQ:function(t,e){Bt(e,!0);var n=function(){};function i(t){return t===n}var a,o=Di(e,"use",19,function(){return[]}),s=Di(e,"class",3,""),u=Di(e,"style",3,""),l=Di(e,"variant",3,"standard"),d=Di(e,"color",3,"primary"),f=Di(e,"collapsed",15,n),h=Di(e,"prominent",3,!1),p=Di(e,"dense",3,!1),v=Ri(e,["$$slots","$$events","$$legacy","use","class","style","variant","color","collapsed","prominent","dense","scrollTarget","children"]),m=!i(f())&&!!f();i(f())&&f(!1);var g=We(void 0),y=new Ka,b=We(Ye({})),E=We(Ye({})),_=We(void 0),T=Ti({variant:l(),prominent:h(),dense:p()},function(t){Xe(_,t,!0)});hn(function(){ir(_)&&ir(_)({variant:l(),prominent:h(),dense:p()})}),hn(function(){ir(g)&&"short"===l()&&"setAlwaysCollapsed"in ir(g)&&ir(g).setAlwaysCollapsed(m)});var S=void 0;hn(function(){S!==e.scrollTarget&&(S&&y.off(S,"scroll",k),e.scrollTarget&&y.on(e.scrollTarget,"scroll",k),S=e.scrollTarget)});var I=l();function A(){return new({static:ah,short:uh,fixed:sh,standard:oh}[l()]||oh)({hasClass:C,addClass:w,removeClass:x,setStyle:O,getTopAppBarHeight:function(){return R().clientHeight},notifyNavigationIconClicked:function(){return Wa(R(),"SMUITopAppBarNav")},getViewportScrollY:function(){return null==e.scrollTarget?window.pageYOffset:e.scrollTarget.scrollTop},getTotalActionItems:function(){return R().querySelectorAll(".mdc-top-app-bar__action-item").length}})}function C(t){return t in ir(b)?ir(b)[t]:R().classList.contains(t)}function w(t){ir(b)[t]||(ir(b)[t]=!0)}function x(t){t in ir(b)&&!ir(b)[t]||(ir(b)[t]=!1)}function O(t,e){ir(E)[t]!=e&&(""===e||null==e?delete ir(E)[t]:ir(E)[t]=e)}function k(){ir(g)&&(ir(g).handleTargetScroll(),"short"===l()&&f("isCollapsed"in ir(g)&&ir(g).isCollapsed))}function R(){return a}hn(function(){I!==l()&&ir(g)&&(I=l(),ir(g).destroy(),Xe(b,{},!0),Xe(E,{},!0),Xe(g,A(),!0),ir(g).init())}),Ni(function(){return Xe(g,A(),!0),ir(g).init(),function(){var t;null===(t=ir(g))||void 0===t||t.destroy(),y.clear()}});var L={getPropStore:function(){return T},getElement:R},M=ch();yr("resize",He,function(){return"short"!==l()&&"fixed"!==l()&&ir(g)&&ir(g).handleWindowResize()}),yr("scroll",He,function(){return null==e.scrollTarget&&k()});var N=function(t){var n;ir(g)&&ir(g).handleNavigationClick(),null===(n=e.onSMUITopAppBarIconButtonNav)||void 0===n||n.call(e,t)};return ii(M,function(t,e){return r(r({class:t,style:e},v),{},{onSMUITopAppBarIconButtonNav:N})},[function(){return za(r(r({"mdc-top-app-bar":!0,"mdc-top-app-bar--short":"short"===l(),"mdc-top-app-bar--short-collapsed":f(),"mdc-top-app-bar--fixed":"fixed"===l(),"smui-top-app-bar--static":"static"===l(),"smui-top-app-bar--color-secondary":"secondary"===d(),"mdc-top-app-bar--prominent":h(),"mdc-top-app-bar--dense":p()},ir(b)),{},D({},s(),!0)))},function(){return Object.entries(ir(E)).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).concat([u()]).join(" ")}]),Fr(rn(M),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),bi(M,function(t){return a=t},function(){return a}),Ur(M,function(t,e){return null==qa?void 0:qa(t,e)},o),Cr(t,M),Ut(L)},aR:function(t,e){Bt(e,!0);var n,r=Ri(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return bi(io(t,Mi({_smuiClass:"mdc-top-app-bar__row",tag:"div"},function(){return r},{children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n}),Ut(i)},aS:function(t,e){Bt(e,!0);var n,i=Di(e,"use",19,function(){return[]}),a=Di(e,"class",3,""),o=Di(e,"align",3,"start"),s=Di(e,"toolbar",3,!1),u=Ri(e,["$$slots","$$events","$$legacy","use","class","align","toolbar","children"]);Ht("SMUI:icon-button:context",s()?"top-app-bar:action":"top-app-bar:navigation"),Ht("SMUI:button:context",s()?"top-app-bar:action":"top-app-bar:navigation");var c={getElement:function(){return n}},l=lh();return ii(l,function(t){return r(r({class:t},s()?{role:"toolbar"}:{}),u)},[function(){return za(D({"mdc-top-app-bar__section":!0,"mdc-top-app-bar__section--align-start":"start"===o(),"mdc-top-app-bar__section--align-end":"end"===o()},a(),!0))}]),Fr(rn(l),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),bi(l,function(t){return n=t},function(){return n}),Ur(l,function(t,e){return null==qa?void 0:qa(t,e)},i),Cr(t,l),Ut(c)},aT:function(t,e){Bt(e,!0);var n=ta.closest,i=function(){};function a(t){return t===i}var o,s,u=Di(e,"use",19,function(){return[]}),c=Di(e,"class",3,""),l=Di(e,"leading",3,!1),d=Di(e,"timeoutMs",3,5e3),f=Di(e,"closeOnEscape",3,!0),h=Di(e,"labelText",3,i),p=Di(e,"actionButtonText",3,i),v=Di(e,"surface$use",19,function(){return[]}),m=Di(e,"surface$class",3,""),g=Ri(e,["$$slots","$$events","$$legacy","use","class","variant","leading","timeoutMs","closeOnEscape","labelText","actionButtonText","surface$use","surface$class","children"]),y=We(void 0),b=Ye({}),E=new Promise(function(t){return s=t});function _(t){b[t]||(b[t]=!0)}function T(t){t in b&&!b[t]||(b[t]=!1)}function S(){var t;return null!==(t=A().querySelector(".mdc-snackbar__label"))&&void 0!==t?t:document.createElement("div")}function I(){var t;return null!==(t=A().querySelector(".mdc-snackbar__action"))&&void 0!==t?t:document.createElement("button")}function A(){return o}Ht("SMUI:label:context","snackbar"),hn(function(){ir(y)&&ir(y).getTimeoutMs()!==d()&&ir(y).setTimeoutMs(d())}),hn(function(){ir(y)&&ir(y).getCloseOnEscape()!==f()&&ir(y).setCloseOnEscape(f())}),hn(function(){ir(y)&&!a(h())&&S().textContent!==h()&&(S().textContent=h())}),hn(function(){ir(y)&&!a(p())&&I().textContent!==p()&&(I().textContent=p())}),Ni(function(){return Xe(y,new oa({addClass:_,announce:function(){return function(t,e){void 0===e&&(e=t);var n=t.getAttribute("aria-live"),r=e.textContent.trim();if(!r||!n)return;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(Wi,r),setTimeout(function(){t.setAttribute("aria-live",n),e.removeAttribute(Wi),e.textContent=r},zi)}(S())},notifyClosed:function(t){return Wa(A(),"SMUISnackbarClosed",t?{reason:t}:{})},notifyClosing:function(t){return Wa(A(),"SMUISnackbarClosing",t?{reason:t}:{})},notifyOpened:function(){return Wa(A(),"SMUISnackbarOpened")},notifyOpening:function(){return Wa(A(),"SMUISnackbarOpening")},removeClass:T}),!0),ir(y).init(),function(){var t;null===(t=ir(y))||void 0===t||t.destroy()}});var C={open:function(){Za=Za.then(function(){var t;return null===(t=ir(y))||void 0===t||t.open(),E})},forceOpen:function(){var t;return null===(t=ir(y))||void 0===t?void 0:t.open()},close:function(t){var e;return null===(e=ir(y))||void 0===e?void 0:e.close(t)},isOpen:function(){if(null==ir(y))throw new Error("Instance is undefined.");return ir(y).isOpen()},getLabelElement:S,getActionButtonElement:I,getElement:A},w=Ya(),x=function(t){var n;ir(y)&&ir(y).handleKeyDown(t),null===(n=e.onkeydown)||void 0===n||n.call(e,t)},O=function(t){var n;s(),E=new Promise(function(t){return s=t}),null===(n=e.onSMUISnackbarClosed)||void 0===n||n.call(e,t)};ii(w,function(t,e){return r(r({class:t},e),{},{onkeydown:x,onSMUISnackbarClosed:O})},[function(){return za(r(r({"mdc-snackbar":!0,"mdc-snackbar--stacked":"stacked"===e.variant,"mdc-snackbar--leading":l()},b),{},D({},c(),!0)))},function(){return Ga(g,["surface$"])}]);var k=rn(w),R=function(t){var r;!function(t){var e=t.target;ir(y)&&(n(e,".mdc-snackbar__action")?ir(y).handleActionButtonClick(t):n(e,".mdc-snackbar__dismiss")&&ir(y).handleActionIconClick(t))}(t),null===(r=e.surface$onclick)||void 0===r||r.call(e,t)};return ii(k,function(t,e){return r(r({class:t,role:"status","aria-relevant":"additions"},e),{},{onclick:R})},[function(){return za(D({"mdc-snackbar__surface":!0},m(),!0))},function(){return Xa(g,"surface$")}]),Fr(rn(k),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Ur(k,function(t,e){return null==qa?void 0:qa(t,e)},v),bi(w,function(t){return o=t},function(){return o}),Ur(w,function(t,e){return null==qa?void 0:qa(t,e)},u),Cr(t,w),Ut(C)},aV:function(t,e){return function(t,e){var n=e.target,r=e.anchor,i=e.props,a=void 0===i?{}:i,o=e.events,s=e.context;e.intro;!function(){if(void 0!==He)return;He=window,Be=document,Ue=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;je=I(e,"firstChild").get,Ve=I(e,"nextSibling").get,P(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0);P(n)&&(n.__t=void 0)}();var u=new Set,c=function(t){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(n){t.outro?An(e,function(){Tn(e),n(void 0)}):(Tn(e),n(void 0))})}}(function(){var e=null!=r?r:n.appendChild(tn());return bn(function(){s&&(Bt({}),Nt.c=s);o&&(a.$$events=o),l=t(e,a)||{},s&&Ut()}),function(){var t,i,a=E(u);try{for(a.s();!(t=a.n()).done;){var o=t.value;n.removeEventListener(o,Er);var s=xr.get(o);0===--s?(document.removeEventListener(o,Er),xr.delete(o)):xr.set(o,s)}}catch(l){a.e(l)}finally{a.f()}(vr.delete(c),e!==r)&&(null===(i=e.parentNode)||void 0===i||i.removeChild(e))}});return Or.set(l,d),l}(t,e)},aa:function(t,e){Bt(e,!0);var n,r=Ri(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return bi(io(t,Mi({_smuiClass:"mdc-dialog__title",tag:"h2"},function(){return r},{children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n}),Ut(i)},ab:function(t,e){Bt(e,!0);var n,r=Ri(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return bi(io(t,Mi({_smuiClass:"mdc-dialog__content",tag:"div"},function(){return r},{children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n}),Ut(i)},ac:function(t,e){Bt(e,!0);var n,i,a=Di(e,"use",19,function(){return[]}),o=Di(e,"class",3,""),s=Di(e,"align",3,"start"),u=Di(e,"noWrap",3,!1),c=Di(e,"inputId",19,function(){return"SMUI-form-field-"+Ah++}),l=Di(e,"label$use",19,function(){return[]}),d=Ri(e,["$$slots","$$events","$$legacy","use","class","align","noWrap","inputId","label$use","children","label"]),f=We(void 0),h=new Ka,p=We(void 0);Ht("SMUI:generic:input:props",{id:c()}),Ht("SMUI:generic:input:mount",function(t){Xe(p,t,!0)}),Ht("SMUI:generic:input:unmount",function(){Xe(p,void 0)}),Ni(function(){return Xe(f,new Ih({activateInputRipple:function(){ir(p)&&ir(p).activateRipple()},deactivateInputRipple:function(){ir(p)&&ir(p).deactivateRipple()},deregisterInteractionHandler:function(t,e){return h.off(i,t,e)},registerInteractionHandler:function(t,e){return h.on(i,t,e)}}),!0),ir(f).init(),function(){var t;null===(t=ir(f))||void 0===t||t.destroy(),h.clear()}});var v={getElement:function(){return n}},m=Ch();ii(m,function(t,e){return r({class:t},e)},[function(){return za(D({"mdc-form-field":!0,"mdc-form-field--align-end":"end"===s(),"mdc-form-field--nowrap":u()},o(),!0))},function(){return Ga(d,["label$"])}]);var g=rn(m);Fr(g,function(){var t;return null!==(t=e.children)&&void 0!==t?t:H});var y=on(g,2);return ii(y,function(t){return r({for:c()},t)},[function(){return Xa(d,"label$")}]),Fr(rn(y),function(){var t;return null!==(t=e.label)&&void 0!==t?t:H}),bi(y,function(t){return i=t},function(){return i}),Ur(y,function(t,e){return null==qa?void 0:qa(t,e)},l),bi(m,function(t){return n=t},function(){return n}),Ur(m,function(t,e){return null==qa?void 0:qa(t,e)},a),Cr(t,m),Ut(v)} /** * @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. */,ad:function(t,e){var n;Bt(e,!0);var i=function(){};function a(t){return t===i}var o,s=Di(e,"use",19,function(){return[]}),u=Di(e,"class",3,""),c=Di(e,"disabled",15,!1),l=Di(e,"focusRing",3,!1),d=Di(e,"color",3,"primary"),f=Di(e,"group",11,i),h=Di(e,"checked",15,i),p=Di(e,"value",3,null),v=Di(e,"processing",7,!1),m=Di(e,"icons",3,!0),g=Di(e,"icons$use",19,function(){return[]}),b=Di(e,"icons$class",3,""),E=Ri(e,["$$slots","$$events","$$legacy","use","class","disabled","focusRing","color","group","checked","value","processing","icons","icons$use","icons$class"]),_=We(void 0),T=Ye({}),S=We(void 0),I=We(!1),A=Ye(null!==(n=Ft("SMUI:generic:input:props"))&&void 0!==n?n:{}),C=We(Ye(a(f())?!a(h())&&h():-1!==f().findIndex(function(t){return t===p()}))),w={get disabled(){return c()},set disabled(t){c(t)},get processing(){return v()},set processing(t){v(t)},get selected(){return ir(C)},set selected(t){Xe(C,t,!0)}},x=h(),O=a(f())?[]:y(f()),k=ir(C);hn(function(){var t=!1;if(!a(f()))if(k!==ir(C)){var e=f().findIndex(function(t){return t===p()});ir(C)&&-1===e?f().push(p()):ir(C)||-1===e||f().splice(e,1),t=!0}else{var n=O.findIndex(function(t){return t===p()}),r=f().findIndex(function(t){return t===p()});n>-1&&-1===r?w.selected=!1:r>-1&&-1===n&&(w.selected=!0)}a(h())?k!==ir(C)&&(t=!0):h()!==ir(C)&&(h()===x?(h(ir(C)),t=!0):w.selected=h()),x=h(),O=a(f())?[]:y(f()),k=ir(C),t&&F()&&Wa(F(),"SMUISwitchChange",{selected:ir(C),value:p()})});var R=Ft("SMUI:generic:input:mount"),L=Ft("SMUI:generic:input:unmount");function M(t){return t in T?T[t]:F().classList.contains(t)}function N(t){T[t]||(T[t]=!0)}function P(t){t in T&&!T[t]||(T[t]=!1)}function F(){return o}Ni(function(){Xe(_,new kh({addClass:N,hasClass:M,isDisabled:function(){return c()},removeClass:P,setAriaChecked:function(){},setDisabled:function(t){c(t)},state:w}),!0);var t={get element(){return F()},get checked(){return ir(C)},set checked(t){ir(C)!==t&&(w.selected=t,F()&&Wa(F(),"SMUISwitchChange",{selected:t,value:p()}))},activateRipple:function(){c()||Xe(I,!0)},deactivateRipple:function(){Xe(I,!1)}};return R&&R(t),ir(_).init(),ir(_).initFromDOM(),function(){var e;L&&L(t),null===(e=ir(_))||void 0===e||e.destroy()}});var H={getId:function(){return A&&A.id},getElement:F},B=Mh(),U=function(t){var n;ir(_)&&ir(_).handleClick(),null===(n=e.onclick)||void 0===n||n.call(e,t),t.stopPropagation(),t.currentTarget.blur()};ii(B,function(t,e){return r(r(r({class:t,type:"button",role:"switch","aria-checked":ir(C)?"true":"false",disabled:c()},A),e),{},{onclick:U})},[function(){return za(r(r({"mdc-switch":!0,"mdc-switch--unselected":!ir(C),"mdc-switch--selected":ir(C),"mdc-switch--processing":v(),"smui-switch--color-secondary":"secondary"===d()},T),{},D({},u(),!0)))},function(){return Ga(E,["icons$"])}]);var j=on(rn(B),2),V=rn(j),$=on(rn(V),2);bi($,function(t){return Xe(S,t)},function(){return ir(S)});var z=on($,2),W=function(t){var e=Rh();ii(e,function(t,e){return r({class:t},e)},[function(){return za(D({"mdc-switch__icons":!0},b(),!0))},function(){return Xa(E,"icons$")}]),Ur(e,function(t,e){return null==qa?void 0:qa(t,e)},g),Cr(t,e)};kr(z,function(t){m()&&t(W)});var G=on(j,2),X=function(t){Cr(t,Lh())};return kr(G,function(t){l()&&t(X)}),bi(B,function(t){return o=t},function(){return o}),Ur(B,function(t,e){return null==qa?void 0:qa(t,e)},s),Ur(B,function(t,e){return null==Fo?void 0:Fo(t,e)},function(){return{unbounded:!0,color:d(),active:ir(I),rippleElement:ir(S),disabled:c(),addClass:N,removeClass:P}}),Cr(t,B),Ut(H)} /** * @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. */,ae:function(t,e){Bt(e,!0);var n,i=Di(e,"use",19,function(){return[]}),a=Di(e,"class",3,""),o=Di(e,"style",3,""),s=Di(e,"ripple",3,!0),u=Di(e,"color",3,"primary"),l=Di(e,"variant",3,"text"),d=Di(e,"touch",3,!1),f=Di(e,"action",3,"close"),h=Di(e,"defaultAction",3,!1),p=Di(e,"secondary",3,!1),v=Di(e,"component",3,Ja),m=Di(e,"tag",19,function(){return null==e.href?"button":"a"}),g=Ri(e,["$$slots","$$events","$$legacy","use","class","style","ripple","color","variant","touch","href","action","defaultAction","secondary","component","tag","children"]),b=Ye({}),E=Ye({}),_=Ft("SMUI:button:context"),T=te(function(){return"dialog:action"===_&&null!=f()?{"data-mdc-dialog-action":f()}:{action:f()}}),S=te(function(){return"dialog:action"===_&&h()?{"data-mdc-dialog-button-default":""}:{}}),I=te(function(){return"banner"===_?{}:{secondary:p()}}),A=e.disabled;function C(t){b[t]||(b[t]=!0)}function w(t){t in b&&!b[t]||(b[t]=!1)}function x(t,e){E[t]!=e&&(""===e||null==e?delete E[t]:E[t]=e)}function O(){return n.getElement()}hn(function(){if(A!==e.disabled){if(n){var t=O();"blur"in t&&t.blur()}A=g.disabled}}),Ht("SMUI:label:context","button"),Ht("SMUI:icon:context","button");var k={getElement:O},R=Ar(),L=an(R),M=te(function(){return[[Fo,{ripple:s(),unbounded:!1,color:u(),disabled:!!e.disabled,addClass:C,removeClass:w,addStyle:x}]].concat(y(i()))}),N=te(function(){return za(r(r({"mdc-button":!0,"mdc-button--raised":"raised"===l(),"mdc-button--unelevated":"unelevated"===l(),"mdc-button--outlined":"outlined"===l(),"smui-button--color-secondary":"secondary"===u(),"mdc-button--touch":d(),"mdc-card__action":"card:action"===_,"mdc-card__action--button":"card:action"===_,"mdc-dialog__button":"dialog:action"===_,"mdc-top-app-bar__navigation-icon":"top-app-bar:navigation"===_,"mdc-top-app-bar__action-item":"top-app-bar:action"===_,"mdc-snackbar__action":"snackbar:actions"===_,"mdc-banner__secondary-action":"banner"===_&&p(),"mdc-banner__primary-action":"banner"===_&&!p(),"mdc-tooltip__action":"tooltip:rich-actions"===_},b),{},D({},a(),!0)))}),P=te(function(){return Object.entries(E).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).concat([o()]).join(" ")});return Hr(L,v,function(t,r){bi(r(t,Mi({get tag(){return m()},get use(){return ir(M)},get class(){return ir(N)},get style(){return ir(P)}},function(){return ir(T)},function(){return ir(S)},function(){return ir(I)},{get href(){return e.href}},function(){return g},{onclick:function(t){var n;"banner"===_&&Wa(O(),p()?"SMUIBannerButtonSecondaryActionClick":"SMUIBannerButtonPrimaryActionClick"),null===(n=e.onclick)||void 0===n||n.call(e,t),t.currentTarget.blur()},children:function(t,n){var r=fh(),i=on(an(r),2);Fr(i,function(){var t;return null!==(t=e.children)&&void 0!==t?t:H});var a=on(i),o=function(t){Cr(t,dh())};kr(a,function(t){d()&&t(o)}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n})}),Cr(t,R),Ut(k)},af:function(t,e){Bt(e,!0);var n,r=Di(e,"use",19,function(){return[]}),i=Di(e,"class",3,""),a=Di(e,"component",3,Ja),o=Di(e,"tag",3,"span"),s=Ri(e,["$$slots","$$events","$$legacy","use","class","component","tag","children"]),u=Ft("SMUI:label:context"),c=Ft("SMUI:label:tabindex");var l={getElement:function(){return n.getElement()}},d=Ar(),f=an(d),h=te(function(){return za(D({"mdc-button__label":"button"===u,"mdc-fab__label":"fab"===u,"mdc-tab__text-label":"tab"===u,"mdc-image-list__label":"image-list"===u,"mdc-snackbar__label":"snackbar"===u,"mdc-banner__text":"banner"===u,"mdc-segmented-button__label":"segmented-button"===u,"mdc-data-table__pagination-rows-per-page-label":"data-table:pagination"===u,"mdc-data-table__header-cell-label":"data-table:sortable-header-cell"===u},i(),!0))});return Hr(f,a,function(t,i){bi(i(t,Mi({get tag(){return o()},get use(){return r()},get class(){return ir(h)}},function(){return"snackbar"===u?{"aria-atomic":"false"}:{}},{get tabindex(){return c}},function(){return s},{children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n})}),Cr(t,d),Ut(l)},ag:function(t,e){Bt(e,!0);var n,r=Ri(e,["$$slots","$$events","$$legacy","children"]);var i={getElement:function(){return n.getElement()}};return bi(io(t,Mi({_smuiClass:"mdc-dialog__actions",_smuiClassMap:{"smui-dialog__actions--reversed":"SMUI:dialog:actions:reversed"},_smuiContexts:{"SMUI:button:context":"dialog:action"},tag:"div"},function(){return r},{children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return 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. */,ai:xi,ak:function(t,e){Bt(e,!0);var n,r=ta.closest,i=Di(e,"use",19,function(){return[]}),a=Di(e,"class",3,""),o=Di(e,"open",15,!1),s=Di(e,"anchorElement",15),u=Di(e,"managed",3,!1),c=Ri(e,["$$slots","$$events","$$legacy","use","class","open","anchorElement","managed","children"]),l=We(void 0),d=We(void 0),f=We(void 0);Ht("SMUI:menu-surface:mount",function(t){ir(d)||Xe(d,t,!0)});var h=Ft("SMUI:list:mount");Ht("SMUI:list:mount",function(t){ir(f)||Xe(f,t,!0),h&&h(t)});var p=Ft("SMUI:menu:mount"),v=Ft("SMUI:menu:unmount");function m(){return n.getElement()}Ni(function(){return Xe(l,new pp({addClassToElementAtIndex:function(t,e){if(null==ir(f))throw new Error("List accessor is undefined.");ir(f).addClassForElementIndex(t,e)},removeClassFromElementAtIndex:function(t,e){if(null==ir(f))throw new Error("List accessor is undefined.");ir(f).removeClassForElementIndex(t,e)},addAttributeToElementAtIndex:function(t,e,n){if(null==ir(f))throw new Error("List accessor is undefined.");ir(f).setAttributeForElementIndex(t,e,n)},removeAttributeFromElementAtIndex:function(t,e){if(null==ir(f))throw new Error("List accessor is undefined.");ir(f).removeAttributeForElementIndex(t,e)},getAttributeFromElementAtIndex:function(t,e){if(null==ir(f))throw new Error("List accessor is undefined.");return ir(f).getAttributeFromElementIndex(t,e)},elementContainsClass:function(t,e){return t.classList.contains(e)},closeSurface:function(t){var e;u()||(null===(e=ir(d))||void 0===e||e.closeProgrammatic(t),Wa(m(),"SMUIMenuClosedProgrammatically"))},getElementIndex:function(t){if(null==ir(f))throw new Error("List accessor is undefined.");return ir(f).getOrderedList().map(function(t){return t.element}).indexOf(t)},notifySelected:function(t){if(null==ir(f))throw new Error("List accessor is undefined.");Wa(m(),"SMUIMenuSelected",{index:t.index,item:ir(f).getOrderedList()[t.index].element})},getMenuItemCount:function(){if(null==ir(f))throw new Error("List accessor is undefined.");return ir(f).items.length},focusItemAtIndex:function(t){if(null==ir(f))throw new Error("List accessor is undefined.");ir(f).focusItemAtIndex(t)},focusListRoot:function(){if(null==ir(f))throw new Error("List accessor is undefined.");"focus"in ir(f).element&&ir(f).element.focus()},isSelectableItemAtIndex:function(t){if(null==ir(f))throw new Error("List accessor is undefined.");return!!r(ir(f).getOrderedList()[t].element,".".concat(dp.MENU_SELECTION_GROUP))},getSelectedSiblingOfItemAtIndex:function(t){if(null==ir(f))throw new Error("List accessor is undefined.");var e=ir(f).getOrderedList(),n=r(e[t].element,".".concat(dp.MENU_SELECTION_GROUP)),i=null==n?void 0:n.querySelector(".".concat(dp.MENU_SELECTED_LIST_ITEM));return i?e.map(function(t){return t.element}).indexOf(i):-1}}),!0),p&&p(ir(l)),ir(l).init(),function(){var t;v&&ir(l)&&v(ir(l)),null===(t=ir(l))||void 0===t||t.destroy()}});var g={isOpen:function(){return o()},setOpen:function(t){o(t)},setDefaultFocusState:function(t){if(null==ir(l))throw new Error("Instance is undefined.");ir(l).setDefaultFocusState(t)},getSelectedIndex:function(){if(null==ir(l))throw new Error("Instance is undefined.");return ir(l).getSelectedIndex()},getMenuSurface:function(){return n},getElement:m},y=te(function(){return za(D({"mdc-menu":!0},a(),!0))});return bi(_p(t,Mi({get use(){return i()},get class(){return ir(y)},get managed(){return u()}},function(){return c},{onkeydown:function(t){var n;!function(t){ir(l)&&ir(l).handleKeydown(t)}(t),null===(n=e.onkeydown)||void 0===n||n.call(e,t)},onSMUIMenuSurfaceOpened:function(t){var n;ir(l)&&ir(l).handleMenuSurfaceOpened(),null===(n=e.onSMUIMenuSurfaceOpened)||void 0===n||n.call(e,t)},onSMUIListAction:function(t){var n;ir(l)&&ir(f)&&ir(l).handleItemAction(ir(f).getOrderedList()[t.detail.index].element),null===(n=e.onSMUIListAction)||void 0===n||n.call(e,t)},get open(){return o()},set open(t){o(t)},get anchorElement(){return s()},set anchorElement(t){s(t)},children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n}),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. */,al:function(t,e){Bt(e,!0);var n,r,i=ta.closest,a=ta.matches,o=Ft("SMUI:list:nav"),s=Di(e,"use",19,function(){return[]}),u=Di(e,"class",3,""),c=Di(e,"nonInteractive",3,!1),l=Di(e,"dense",3,!1),d=Di(e,"textualList",3,!1),f=Di(e,"avatarList",3,!1),h=Di(e,"iconList",3,!1),p=Di(e,"imageList",3,!1),v=Di(e,"thumbnailList",3,!1),m=Di(e,"videoList",3,!1),g=Di(e,"twoLine",3,!1),b=Di(e,"threeLine",3,!1),E=Di(e,"vertical",3,!0),_=Di(e,"wrapFocus",19,function(){var t;return null!==(t=Ft("SMUI:list:wrapFocus"))&&void 0!==t&&t}),T=Di(e,"singleSelection",3,!1),S=Di(e,"disabledItemsFocusable",3,!1),I=Di(e,"selectedIndex",31,function(){return-1}),A=Di(e,"radioList",3,!1),C=Di(e,"checkList",3,!1),w=Di(e,"hasTypeahead",3,!1),x=Di(e,"component",3,Ja),O=Di(e,"tag",3,o?"nav":"ul"),k=Ri(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"]),R=We(void 0),L=[],M=Ft("SMUI:list:role"),N=new WeakMap,P=Ft("SMUI:dialog:selection"),F=Ft("SMUI:addLayoutListener");Ht("SMUI:list:nonInteractive",c()),Ht("SMUI:separator:context","list"),M||(T()?(M="listbox",Ht("SMUI:list:item:role","option")):A()?(M="radiogroup",Ht("SMUI:list:item:role","radio")):C()?(M="group",Ht("SMUI:list:item:role","checkbox")):(M="list",Ht("SMUI:list:item:role",void 0)));hn(function(){ir(R)&&ir(R).setVerticalOrientation(E())}),hn(function(){ir(R)&&ir(R).setWrapFocus(_())}),hn(function(){ir(R)&&ir(R).setHasTypeahead(w())}),hn(function(){ir(R)&&ir(R).setSingleSelection(T())}),hn(function(){ir(R)&&ir(R).setDisabledItemsFocusable(S())}),hn(function(){ir(R)&&T()&&Y()!==I()&&ir(R).setSelectedIndex(I())}),F&&(r=F(Z));Ht("SMUI:list:item:mount",function(t){L.push(t),N.set(t.element,t),T()&&t.selected&&I(q(t.element))}),Ht("SMUI:list:item:unmount",function(t){var e,n=null!==(e=t&&L.findIndex(function(e){return e===t}))&&void 0!==e?e:-1;-1!==n&&(L.splice(n,1),N.delete(t.element))});var B=Ft("SMUI:list:mount"),U=Ft("SMUI:list:unmount");function j(){return null==n?[]:y(J().children).map(function(t){return N.get(t)}).filter(function(t){return t&&t._smui_list_item_accessor})}function V(t,e){var n,r=j()[t];return null!==(n=r&&r.hasClass(e))&&void 0!==n&&n}function $(t,e){var n=j()[t];n&&n.addClass(e)}function z(t,e){var n=j()[t];n&&n.removeClass(e)}function W(t,e,n){var r=j()[t];r&&r.addAttr(e,n)}function G(t,e){var n=j()[t];n&&n.removeAttr(e)}function X(t,e){var n=j()[t];return n?n.getAttr(e):null}function K(t){var e,n=j()[t];return null!==(e=n&&n.getPrimaryText())&&void 0!==e?e:""}function q(t){var e=i(t,".mdc-deprecated-list-item, .mdc-deprecated-list");return e&&a(e,".mdc-deprecated-list-item")?j().map(function(t){return null==t?void 0:t.element}).indexOf(e):-1}function Z(){if(!ir(R))throw new Error("Instance is undefined.");return ir(R).layout()}function Y(){if(!ir(R))throw new Error("Instance is undefined.");return ir(R).getSelectedIndex()}function Q(t){var e=j()[t];e&&"focus"in e.element&&e.element.focus()}function J(){return n.getElement()}Ni(function(){Xe(R,new yo({addClassForElementIndex:$,focusItemAtIndex:Q,getAttributeForElementIndex:function(t,e){var n,r;return null!==(n=null===(r=j()[t])||void 0===r?void 0:r.getAttr(e))&&void 0!==n?n:null},getFocusedElementIndex:function(){return document.activeElement?j().map(function(t){return t.element}).indexOf(document.activeElement):-1},getListItemCount:function(){return L.length},getPrimaryTextAtIndex:K,hasCheckboxAtIndex:function(t){var e,n;return null!==(e=null===(n=j()[t])||void 0===n?void 0:n.hasCheckbox)&&void 0!==e&&e},hasRadioAtIndex:function(t){var e,n;return null!==(e=null===(n=j()[t])||void 0===n?void 0:n.hasRadio)&&void 0!==e&&e},isCheckboxCheckedAtIndex:function(t){var e,n=j()[t];return null!==(e=(null==n?void 0:n.hasCheckbox)&&n.checked)&&void 0!==e&&e},isFocusInsideList:function(){return null!=n&&J()!==document.activeElement&&J().contains(document.activeElement)},isRootFocused:function(){return null!=n&&document.activeElement===J()},listItemAtIndexHasClass:V,notifyAction:function(t){I(t),null!=n&&Wa(J(),"SMUIListAction",{index:t})},notifySelectionChange:function(t){null!=n&&Wa(J(),"SMUIListSelectionChange",{changedIndices:t})},removeClassForElementIndex:z,setAttributeForElementIndex:W,setCheckedCheckboxOrRadioAtIndex:function(t,e){j()[t].checked=e},setTabIndexForListItemChildren:function(t,e){var n=j()[t];Array.prototype.forEach.call(n.element.querySelectorAll("button:not(:disabled), a"),function(t){t.setAttribute("tabindex",e)})}}),!0);var t={get element(){return J()},get items(){return L},get typeaheadInProgress(){if(!ir(R))throw new Error("Instance is undefined.");return ir(R).isTypeaheadInProgress()},typeaheadMatchItem:function(t,e){if(!ir(R))throw new Error("Instance is undefined.");return ir(R).typeaheadMatchItem(t,e,!0)},getOrderedList:j,focusItemAtIndex:Q,addClassForElementIndex:$,removeClassForElementIndex:z,setAttributeForElementIndex:W,removeAttributeForElementIndex:G,getAttributeFromElementIndex:X,getPrimaryTextAtIndex:K};return B&&B(t),ir(R).init(),ir(R).layout(),function(){var e;U&&U(t),null===(e=ir(R))||void 0===e||e.destroy()}}),Pi(function(){r&&r()});var tt={layout:Z,setEnabled:function(t,e){if(!ir(R))throw new Error("Instance is undefined.");return ir(R).setEnabled(t,e)},getTypeaheadInProgress:function(){if(!ir(R))throw new Error("Instance is undefined.");return ir(R).isTypeaheadInProgress()},getSelectedIndex:Y,getFocusedItemIndex:function(){if(!ir(R))throw new Error("Instance is undefined.");return ir(R).getFocusedItemIndex()},focusItemAtIndex:Q,getElement:J},et=Ar(),nt=an(et),rt=te(function(){return za(D({"mdc-deprecated-list":!0,"mdc-deprecated-list--non-interactive":c(),"mdc-deprecated-list--dense":l(),"mdc-deprecated-list--textual-list":d(),"mdc-deprecated-list--avatar-list":f()||P,"mdc-deprecated-list--icon-list":h(),"mdc-deprecated-list--image-list":p(),"mdc-deprecated-list--thumbnail-list":v(),"mdc-deprecated-list--video-list":m(),"mdc-deprecated-list--two-line":g(),"smui-list--three-line":b()&&!g()},u(),!0))});return Hr(nt,x,function(t,r){bi(r(t,Mi({get tag(){return O()},get use(){return s()},get class(){return ir(rt)},get role(){return M}},function(){return k},{onkeydown:function(t){var n;!function(t){ir(R)&&t.target&&ir(R).handleKeydown(t,t.target.classList.contains("mdc-deprecated-list-item"),q(t.target))}(t),null===(n=e.onkeydown)||void 0===n||n.call(e,t)},onfocusin:function(t){var n;!function(t){ir(R)&&t.target&&ir(R).handleFocusIn(q(t.target))}(t),null===(n=e.onfocusin)||void 0===n||n.call(e,t)},onfocusout:function(t){var n;!function(t){ir(R)&&t.target&&ir(R).handleFocusOut(q(t.target))}(t),null===(n=e.onfocusout)||void 0===n||n.call(e,t)},onclick:function(t){var n;!function(t){ir(R)&&t.target&&ir(R).handleClick(q(t.target),!a(t.target,'input[type="checkbox"], input[type="radio"]'),t)}(t),null===(n=e.onclick)||void 0===n||n.call(e,t)},onSMUIAction:function(t){var n;!function(t){if(A()||C()){var e=q(t.target);if(-1!==e){var n=j()[e];n&&(A()&&!n.checked||C())&&(a(t.detail.target,'input[type="checkbox"], input[type="radio"]')||(n.checked=!n.checked),n.activateRipple(),window.requestAnimationFrame(function(){n.deactivateRipple()}))}}}(t),null===(n=e.onSMUIAction)||void 0===n||n.call(e,t)},children:function(t,n){var r=Ar();Fr(an(r),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return n=t},function(){return n})}),Cr(t,et),Ut(tt)},am:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.addClass,r=void 0===n?function(e){return t.classList.add(e)}:n,i=e.removeClass,a=void 0===i?function(e){return t.classList.remove(e)}:i;return r("mdc-menu-surface--anchor"),{destroy:function(){a("mdc-menu-surface--anchor")}}},an:wi,ao:Oi,ap:function(t,e){Bt(e,!0);var n=function(){};var i,a=Ft("SMUI:list:item:nav"),o=Di(e,"use",19,function(){return[]}),s=Di(e,"class",3,""),u=Di(e,"style",3,""),l=Di(e,"nonInteractive",19,function(){var t;return null!==(t=Ft("SMUI:list:nonInteractive"))&&void 0!==t&&t}),d=Di(e,"ripple",19,function(){return!l()}),f=Di(e,"wrapper",3,!1),h=Di(e,"activated",15,!1),p=Di(e,"role",19,function(){return f()?"presentation":Ft("SMUI:list:item:role")}),v=Di(e,"selected",15,!1),m=Di(e,"disabled",3,!1),g=Di(e,"skipRestoreFocus",3,!1),b=Di(e,"tabindex",15,n),E=Di(e,"inputId",19,function(){return"SMUI-form-field-list-"+Uo++}),_=Di(e,"component",3,Ja),T=Di(e,"tag",19,function(){return a?e.href?"a":"span":"li"}),S=Ri(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);var I=Ye({}),A=Ye({}),C=Ye({}),w=We(void 0),x=We(void 0),O=te(function(){return b()===n?l()||m()||!(v()||ir(w)&&ir(w).checked)?-1:0:b()});Ht("SMUI:generic:input:props",{id:E()}),Ht("SMUI:separator:context",void 0),Ht("SMUI:generic:input:mount",function(t){("_smui_checkbox_accessor"in t||"_smui_radio_accessor"in t)&&Xe(w,t,!0)}),Ht("SMUI:generic:input:unmount",function(){Xe(w,void 0)});var k=Ft("SMUI:list:item:mount"),R=Ft("SMUI:list:item:unmount");function L(t){return t in I?I[t]:$().classList.contains(t)}function M(t){I[t]||(I[t]=!0)}function N(t){t in I&&!I[t]||(I[t]=!1)}function P(t,e){A[t]!=e&&(""===e||null==e?delete A[t]:A[t]=e)}function F(t){var e;return t in C?null!==(e=C[t])&&void 0!==e?e:null:$().getAttribute(t)}function B(t,e){C[t]!==e&&(C[t]=e)}function U(t){t in C&&null==C[t]||(C[t]=void 0)}function j(t){m()||Wa($(),"SMUIAction",t)}function V(){var t,e,n=$(),r=n.querySelector(".mdc-deprecated-list-item__primary-text");if(r)return null!==(e=r.textContent)&&void 0!==e?e:"";var i,a=n.querySelector(".mdc-deprecated-list-item__text");return a?null!==(i=a.textContent)&&void 0!==i?i:"":null!==(t=n.textContent)&&void 0!==t?t:""}function $(){return i.getElement()}Ni(function(){if(!v()&&!l()){for(var t=!0,n=i.getElement();n.previousElementSibling;)if(1===(n=n.previousElementSibling).nodeType&&n.classList.contains("mdc-deprecated-list-item")&&!n.classList.contains("mdc-deprecated-list-item--disabled")){t=!1;break}t&&Xe(x,window.requestAnimationFrame(function(){return function(t){for(var e=!0;t.nextElementSibling;)if(1===(t=t.nextElementSibling).nodeType&&t.classList.contains("mdc-deprecated-list-item")){var n=t.attributes.getNamedItem("tabindex");if(n&&"0"===n.value){e=!1;break}}e&&b(0)}(n)}),!0)}var r={_smui_list_item_accessor:!0,get element(){return $()},get selected(){return v()},set selected(t){v(t)},hasClass:L,addClass:M,removeClass:N,getAttr:F,addAttr:B,removeAttr:U,getPrimaryText:V,get checked(){var t;return null!==(t=ir(w)&&ir(w).checked)&&void 0!==t&&t},set checked(t){ir(w)&&(ir(w).checked=!!t)},get hasCheckbox(){return!(!ir(w)||!("_smui_checkbox_accessor"in ir(w)))},get hasRadio(){return!(!ir(w)||!("_smui_radio_accessor"in ir(w)))},activateRipple:function(){ir(w)&&ir(w).activateRipple()},deactivateRipple:function(){ir(w)&&ir(w).deactivateRipple()},getValue:function(){return e.value},action:j,get tabindex(){return ir(O)},set tabindex(t){b(t)},get disabled(){return m()},get activated(){return h()},set activated(t){h(t)}};return k&&k(r),function(){R&&R(r)}}),Pi(function(){ir(x)&&window.cancelAnimationFrame(ir(x))});var z={action:j,getPrimaryText:V,getElement:$},W=Ar(),G=an(W),X=te(function(){return[].concat(y(l()?[]:[[Fo,{ripple:!ir(w),unbounded:!1,color:(h()||v())&&null==e.color?"primary":e.color,disabled:m(),addClass:M,removeClass:N,addStyle:P}]]),y(o()))}),K=te(function(){return za(r(r({"mdc-deprecated-list-item":!f(),"mdc-deprecated-list-item__wrapper":f(),"mdc-deprecated-list-item--activated":h(),"mdc-deprecated-list-item--selected":v(),"mdc-deprecated-list-item--disabled":m(),"mdc-menu-item--selected":!a&&"menuitem"===p()&&v(),"smui-menu-item--non-interactive":l()},I),{},D({},s(),!0)))}),q=te(function(){return Object.entries(A).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).concat([u()]).join(" ")}),Z=te(function(){return g()||void 0});return Hr(G,_,function(t,n){bi(n(t,Mi({get tag(){return T()},get use(){return ir(X)},get class(){return ir(K)},get style(){return ir(q)}},function(){return a&&h()?{"aria-current":"page"}:{}},function(){return!a||f()?{role:p()}:{}},function(){return a||"option"!==p()?{}:{"aria-selected":v()?"true":"false"}},function(){return a||"radio"!==p()&&"checkbox"!==p()?{}:{"aria-checked":ir(w)&&ir(w).checked?"true":"false"}},function(){return a?{}:{"aria-disabled":m()?"true":"false"}},{get"data-menu-item-skip-restore-focus"(){return ir(Z)},get tabindex(){return ir(O)},get href(){return e.href}},function(){return C},function(){return S},{onclick:function(t){var n;j(t),null===(n=e.onclick)||void 0===n||n.call(e,t),t.currentTarget.blur()},onkeydown:function(t){var n;!function(t){var e="Enter"===t.key,n="Space"===t.key;(e||n)&&j(t)}(t),null===(n=e.onkeydown)||void 0===n||n.call(e,t)},children:function(t,n){var r=Vo(),i=an(r),a=function(t){Cr(t,jo())};kr(i,function(t){d()&&t(a)}),Fr(on(i),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(t,r)},$$slots:{default:!0}})),function(t){return i=t},function(){return i})}),Cr(t,W),Ut(z)},aq:function(t,e){Bt(e,!0);var n,i,a=Di(e,"use",19,function(){return[]}),o=Di(e,"class",3,""),s=Di(e,"tabs",19,function(){return[]}),u=Di(e,"key",3,function(t){return t}),c=Di(e,"focusOnActivate",3,!0),l=Di(e,"focusOnProgrammatic",3,!1),d=Di(e,"useAutomaticActivation",3,!0),f=Di(e,"active",15),h=Di(e,"tabindex",3,0),p=Ri(e,["$$slots","$$events","$$legacy","use","class","tabs","key","focusOnActivate","focusOnProgrammatic","useAutomaticActivation","active","tabindex","tab"]),v=We(void 0),m=We(Ye(null==f()?-1:s().findIndex(function(t){return f()&&u()(t)===u()(f())}))),g=Ye({}),y=We(new WeakMap),b=!1;Ht("SMUI:tab:focusOnActivate",c()),Ht("SMUI:tab:initialActive",{active:null==f()?null:u()(f()),key:u()}),hn(function(){(null==f()&&-1!==ir(m)||null!=f()&&-1===ir(m)||null!=f()&&u()(f())!==u()(s()[ir(m)]))&&(Xe(m,s().findIndex(function(t){return f()&&u()(t)===u()(f())}),!0),ir(v)&&(b=!l(),ir(v).activateTab(ir(m)),b=!1))}),hn(function(){if(s().length){var t=s()[0]instanceof Object?ir(y).get(s()[0]):g[s()[0]];t&&t.forceAccessible(-1===ir(m))}});var E=!1;function _(t){return t instanceof Object?ir(y).get(t):g[t]}function T(){return n}hn(function(){ir(v)?E||(E=!0,ir(v).setUseAutomaticActivation(d())):E=!1}),Ht("SMUI:tab:mount",function(t){!function(t,e){t instanceof Object?(ir(y).set(t,e),Xe(y,ir(y))):g[t]=e}(t.tabId,t)}),Ht("SMUI:tab:unmount",function(t){var e;(e=t.tabId)instanceof Object?(ir(y).delete(e),Xe(y,ir(y))):delete g[e]}),Ni(function(){return Xe(v,new zp({scrollTo:function(t){return i.scrollTo(t)},incrementScroll:function(t){return i.incrementScroll(t)},getScrollPosition:function(){return i.getScrollPosition()},getScrollContentWidth:function(){return i.getScrollContentWidth()},getOffsetWidth:function(){return T().offsetWidth},isRTL:function(){return"rtl"===getComputedStyle(T()).getPropertyValue("direction")},setActiveTab:function(t){var e;f(s()[t]),Xe(m,t,!0),null===(e=ir(v))||void 0===e||e.activateTab(t)},activateTabAtIndex:function(t,e){var n;return null===(n=_(s()[t]))||void 0===n?void 0:n.activate(e,b)},deactivateTabAtIndex:function(t){var e;return null===(e=_(s()[t]))||void 0===e?void 0:e.deactivate()},focusTabAtIndex:function(t){var e;return null===(e=_(s()[t]))||void 0===e?void 0:e.focus()},getTabIndicatorClientRectAtIndex:function(t){var e,n;return null!==(e=null===(n=_(s()[t]))||void 0===n?void 0:n.computeIndicatorClientRect())&&void 0!==e?e:new DOMRect},getTabDimensionsAtIndex:function(t){var e,n;return null!==(e=null===(n=_(s()[t]))||void 0===n?void 0:n.computeDimensions())&&void 0!==e?e:{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){for(var t=0;t2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t,a="";gn(function(){var t,o=Fn;if(a!==(a=null!==(t=e())&&void 0!==t?t:"")&&(null!==o.nodes_start&&(Sn(o.nodes_start,o.nodes_end),o.nodes_start=o.nodes_end=null),""!==a)){var s=a+"";n?s="".concat(s,""):r&&(s="".concat(s,""));var u=_r(s);if((n||r)&&(u=en(u)),Tr(en(u),u.lastChild),n||r)for(;en(u);)i.before(en(u));else i.before(u)}})}});var d=!1,p=Array.isArray,b=Array.prototype.indexOf,_=Array.from,T=Object.defineProperty,I=Object.getOwnPropertyDescriptor,R=Object.getOwnPropertyDescriptors,L=Object.prototype,M=Array.prototype,N=Object.getPrototypeOf,P=Object.isExtensible;function F(t){return"function"==typeof t}var H=e("E",function(){});function B(t){for(var e=0;e0||Gt.length>0}function qt(t){if(0===Wt.length&&!pe){var e=Wt;queueMicrotask(function(){e===Wt&&Xt()})}Wt.push(t)}function Zt(){var t;Wt.length>0&&Xt(),Gt.length>0&&(t=Gt,Gt=[],B(t))}function Yt(){var t=Fn.b;return null===t&&function(){throw new Error("https://svelte.dev/e/await_outside_boundary")}(),t}function Qt(t){var e=U|Z,n=null!==Dn&&0!==(Dn.f&U)?Dn:null;return null===Fn||null!==n&&0!==(n.f&X)?e|=X:Fn.f|=it,{ctx:Nt,deps:null,effects:null,equals:kt,f:e,fn:t,reactions:null,rv:0,v:At,wv:0,parent:null!=n?n:Fn,ac:null}}function Jt(t,e){var n=Fn;null===n&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var r=n.b,i=void 0,a=ze(At),o=null,s=!Dn;return function(t){dn(st|it,t,!0)}(function(){var e,n;try{var u=t();o&&Promise.resolve(u).catch(function(){})}catch(h){u=Promise.reject(h)}var c=function(){return u};i=null!==(e=null===(n=o)||void 0===n?void 0:n.then(c,c))&&void 0!==e?e:Promise.resolve(u),o=i;var l=ue,d=r.is_pending();s&&(r.update_pending_count(1),d||l.increment());var f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;o=null,d||l.activate(),e?e!==ft&&(a.f|=ut,Ke(a,e)):(0!==(a.f&ut)&&(a.f^=ut),Ke(a,t)),s&&(r.update_pending_count(-1),d||l.decrement()),oe()};if(i.then(f,function(t){return f(null,t||"unknown")}),l)return function(){queueMicrotask(function(){return l.neuter()})}}),new Promise(function(t){!function e(n){function r(){n===i?t(a):e(i)}n.then(r,r)}(i)})}function te(t){var e=Qt(t);return Un(e),e}function ee(t){var e=Qt(t);return e.equals=Mt,e}function ne(t){var e=t.effects;if(null!==e){t.effects=null;for(var n=0;n0?Me():g(we,this,Re).call(this),ue===this&&(0===m(ge,this)&&se.delete(this),this.deactivate())}},{key:"increment",value:function(){v(ge,this,m(ge,this)+1)}},{key:"decrement",value:function(){if(v(ge,this,m(ge,this)-1),0===m(ge,this)){var t,e=E(m(Ae,this));try{for(e.s();!(t=e.n()).done;){var n=t.value;ur(n,Z),Fe(n)}}catch(o){e.e(o)}finally{e.f()}var r,i=E(m(Ce,this));try{for(i.s();!(r=i.n()).done;){var a=r.value;ur(a,Y),Fe(a)}}catch(o){i.e(o)}finally{i.f()}v(Te,this,[]),v(Se,this,[]),this.flush()}else this.deactivate()}},{key:"add_callback",value:function(t){m(me,this).add(t)}},{key:"settled",value:function(){var t,e,n;return(null!==(t=m(ye,this))&&void 0!==t?t:v(ye,this,{promise:new Promise(function(t,r){e=t,n=r}),resolve:e,reject:n})).promise}}],[{key:"ensure",value:function(){if(null===ue){var e=ue=new t;se.add(ue),pe||t.enqueue(function(){ue===e&&e.flush()})}return ue}},{key:"enqueue",value:function(t){qt(t)}}])}();function Oe(t){t.f^=q;for(var e=t.first;null!==e;){var n=e.f,r=0!==(n&(z|W));if(!(r&&0!==(n&q)||0!==(n&Q)||this.skipped_effects.has(e))&&null!==e.fn){if(r)e.f^=q;else if(0!==(n&j))m(Se,this).push(e);else if(0===(n&q)){var i;if(0!==(n&st))(null!==(i=e.b)&&void 0!==i&&i.is_pending()?m(_e,this):m(Ee,this)).push(e);else Zn(e)&&(0!==(e.f&$)&&m(Ie,this).push(e),er(e))}var a=e.first;if(null!==a){e=a;continue}}var o=e.parent;for(e=e.next;null===e&&null!==o;)e=o.next,o=o.parent}}function ke(t){var e,n=E(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;(0!==(r.f&Z)?m(Ae,this):m(Ce,this)).push(r),ur(r,q)}}catch(i){n.e(i)}finally{n.f()}t.length=0}function Re(){if(!m(be,this)){var t,e=E(m(me,this));try{for(e.s();!(t=e.n()).done;){(0,t.value)()}}catch(n){e.e(n)}finally{e.f()}}m(me,this).clear()}function Le(t){var e=pe;pe=!0;try{for(;;){var n;if(Zt(),0===de.length&&!Kt())if(null===(n=ue)||void 0===n||n.flush(),0===de.length)return void(fe=null);Me()}}finally{pe=e}}function Me(){var t=kn;he=!0;try{var e=0;for(Rn(!0);de.length>0;){var n=xe.ensure();if(e++>1e3)De();n.process(de),$e.clear()}}finally{he=!1,Rn(t),fe=null}}function De(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(t){$t(t,fe)}}var Ne=null;function Pe(t){var e=t.length;if(0!==e){for(var n=0;n0){$e.clear();var a,o=E(Ne);try{for(o.s();!(a=o.n()).done;){er(a.value)}}catch(s){o.e(s)}finally{o.f()}Ne=[]}}Ne=null}}function Fe(t){for(var e=fe=t;null!==e.parent;){var n=(e=e.parent).f;if(he&&e===Fn&&0!==(n&$))return;if(0!==(n&(W|z))){if(0===(n&q))return;e.f^=q}}de.push(e)}var He,Be,Ue,je,Ve,$e=new Map;function ze(t,e){return{f:0,v:t,reactions:null,equals:kt,rv:0,wv:0}}function We(t,e){var n=ze(t);return Un(n),n}function Ge(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ze(t);return e||(n.equals=Mt),n}function Xe(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return null===Dn||Nn&&0===(Dn.f&nt)||0===(Dn.f&(U|$|st|nt))||null!==(n=Bn)&&void 0!==n&&n.includes(t)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),Ke(t,r?Ye(e):e)}function Ke(t,e){if(!t.equals(e)){var n=t.v;Ln?$e.set(t,e):$e.set(t,n),t.v=e,xe.ensure().capture(t,n),0!==(t.f&U)&&(0!==(t.f&Z)&&re(t),ur(t,0===(t.f&X)?q:Y)),t.wv=qn(),Ze(t,Z),null!==Fn&&0!==(Fn.f&q)&&0===(Fn.f&(z|W))&&(null===$n?function(t){$n=t}([t]):$n.push(t))}return e}function qe(t){Xe(t,t.v+1)}function Ze(t,e){var n=t.reactions;if(null!==n)for(var r=n.length,i=0;i=p.v&&Xe(p,v+1)}qe(i)}return!0},ownKeys:function(t){ir(i);var e,r=Reflect.ownKeys(t).filter(function(t){var e=n.get(t);return void 0===e||e.v!==At}),a=E(n);try{for(a.s();!(e=a.n()).done;){var o=c(e.value,2),s=o[0];o[1].v===At||s in t||r.push(s)}}catch(u){a.e(u)}finally{a.f()}return r},setPrototypeOf:function(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Qe(t){try{if(null!==t&&"object"===S(t)&&ct in t)return t[ct]}catch(e){}return t}function Je(t,e){return Object.is(Qe(t),Qe(e))}function tn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return document.createTextNode(t)}function en(t){return je.call(t)}function nn(t){return Ve.call(t)}function rn(t,e){return en(t)}function an(t,e){var n=en(t);return n instanceof Comment&&""===n.data?nn(n):n}function on(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t;e--;)n=nn(n);return n}var sn=!1;function un(t){var e=Dn,n=Fn;Pn(null),Hn(null);try{return t()}finally{Pn(e),Hn(n)}}function cn(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;t.addEventListener(e,function(){return un(n)});var i=t.__on_r;t.__on_r=i?function(){i(),r(!0)}:function(){return r(!0)},sn||(sn=!0,document.addEventListener("reset",function(t){Promise.resolve().then(function(){if(!t.defaultPrevented){var e,n=E(t.target.elements);try{for(n.s();!(e=n.n()).done;){var r,i=e.value;null===(r=i.__on_r)||void 0===r||r.call(i)}}catch(a){n.e(a)}finally{n.f()}}})},{capture:!0}))}function ln(t){null===Fn&&null===Dn&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),null!==Dn&&0!==(Dn.f&X)&&null===Fn&&function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}(),Ln&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function dn(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=Fn;null!==i&&0!==(i.f&Q)&&(t|=Q);var a={ctx:Nt,deps:null,nodes_start:null,nodes_end:null,f:t|Z,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{er(a),a.f|=tt}catch(o){throw Tn(a),o}else null!==e&&Fe(a);if(r){var o=a;if(n&&null===o.deps&&null===o.teardown&&null===o.nodes_start&&o.first===o.last&&0===(o.f&it)&&(o=o.first),null!==o&&(o.parent=i,null!==i&&function(t,e){var n=e.last;null===n?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}(o,i),null!==Dn&&0!==(Dn.f&U)&&0===(t&W))){var s,u=Dn;(null!==(s=u.effects)&&void 0!==s?s:u.effects=[]).push(o)}}return a}function fn(t){var e=dn(V,null,!1);return ur(e,q),e.teardown=t,e}function hn(t){ln();var e=Fn.f;if(!(!Dn&&0!==(e&z)&&0===(e&tt)))return pn(t);var n,r=Nt;(null!==(n=r.e)&&void 0!==n?n:r.e=[]).push(t)}function pn(t){return dn(j|at,t,!1)}function vn(t){return dn(j,t,!1)}function mn(t){return dn(V|(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),t,!0)}function gn(t){ae(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],function(e){dn(V,function(){return t.apply(void 0,y(e.map(ir)))},!0)})}function yn(t){return dn($|(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),t,!0)}function bn(t){return dn(z|it,t,!0,!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}function En(t){var e=t.teardown;if(null!==e){var n=Ln,r=Dn;Mn(!0),Pn(null);try{e.call(null)}finally{Mn(n),Pn(r)}}}function _n(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.first;t.first=t.last=null;for(var r,i=function(){var t=n.ac;null!==t&&un(function(){t.abort(ft)}),r=n.next,0!==(n.f&W)?n.parent=null:Tn(n,e),n=r};null!==n;)i()}function Tn(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1;!e&&0===(t.f&rt)||null===t.nodes_start||null===t.nodes_end||(Sn(t.nodes_start,t.nodes_end),n=!0),_n(t,e&&!n),tr(t,0),ur(t,J);var r=t.transitions;if(null!==r){var i,a=E(r);try{for(a.s();!(i=a.n()).done;){i.value.stop()}}catch(s){a.e(s)}finally{a.f()}}En(t);var o=t.parent;null!==o&&null!==o.first&&In(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Sn(t,e){for(;null!==t;){var n=t===e?null:nn(t);t.remove(),t=n}}function In(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 An(t,e){var n=[];wn(t,n,!0),Cn(n,function(){Tn(t),e&&e()})}function Cn(t,e){var n=t.length;if(n>0){var r,i=function(){return--n||e()},a=E(t);try{for(a.s();!(r=a.n()).done;){r.value.out(i)}}catch(o){a.e(o)}finally{a.f()}}else e()}function wn(t,e,n){if(0===(t.f&Q)){if(t.f^=Q,null!==t.transitions){var r,i=E(t.transitions);try{for(i.s();!(r=i.n()).done;){var a=r.value;(a.is_global||n)&&e.push(a)}}catch(u){i.e(u)}finally{i.f()}}for(var o=t.first;null!==o;){var s=o.next;wn(o,e,!!(0!==(o.f&et)||0!==(o.f&z))&&n),o=s}}}function xn(t){On(t,!0)}function On(t,e){if(0!==(t.f&Q)){t.f^=Q,0===(t.f&q)&&(ur(t,Z),Fe(t));for(var n=t.first;null!==n;){var r=n.next;On(n,!!(0!==(n.f&et)||0!==(n.f&z))&&e),n=r}if(null!==t.transitions){var i,a=E(t.transitions);try{for(a.s();!(i=a.n()).done;){var o=i.value;(o.is_global||e)&&o.in()}}catch(s){a.e(s)}finally{a.f()}}}}var kn=!1;function Rn(t){kn=t}var Ln=!1;function Mn(t){Ln=t}var Dn=null,Nn=!1;function Pn(t){Dn=t}var Fn=null;function Hn(t){Fn=t}var Bn=null;function Un(t){null!==Dn&&(null===Bn?Bn=[t]:Bn.push(t))}var jn=null,Vn=0,$n=null;var zn=1,Wn=0,Gn=Wn;function Xn(t){Gn=t}var Kn=!1;function qn(){return++zn}function Zn(t){var e=t.f;if(0!==(e&Z))return!0;if(0!==(e&Y)){var n=t.deps,r=0!==(e&X);if(null!==n){var i,a,o=0!==(e&K),s=r&&null!==Fn&&!Kn,u=n.length;if((o||s)&&(null===Fn||0===(Fn.f&J))){var c=t,l=c.parent;for(i=0;it.wv)return!0}r&&(null===Fn||Kn)||ur(t,q)}return!1}function Yn(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.reactions;if(null!==i&&(null===(n=Bn)||void 0===n||!n.includes(t)))for(var a=0;a0)for(h.length=Vn+jn.length,p=0;p1&&void 0!==arguments[1]?arguments[1]:new Set;if(!("object"!==S(t)||null===t||t instanceof EventTarget||e.has(t))){for(var n in e.add(t),t instanceof Date&&t.getTime(),t)try{cr(t[n],e)}catch(Rf){}var r=N(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){var i=R(r);for(var a in i){var o=i[a].get;if(o)try{o.call(t)}catch(Rf){}}}}}var lr=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];var dr={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};var fr=["touchstart","touchmove"];function hr(t){return fr.includes(t)}var pr=new Set,vr=new Set;function mr(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};function i(t){var i=this;if(r.capture||Er.call(e,t),!t.cancelBubble)return un(function(){return null==n?void 0:n.call(i,t)})}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?qt(function(){e.addEventListener(t,i,r)}):e.addEventListener(t,i,r),i}function gr(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=mr(e,t,n,r);return function(){t.removeEventListener(e,i,r)}}function yr(t,e,n,r,i){var a={capture:r,passive:i},o=mr(t,e,n,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&fn(function(){e.removeEventListener(t,o,a)})}function br(t){for(var e=0;e","\x3c!----\x3e"),e.content}function Tr(t,e){var n=Fn;null===n.nodes_start&&(n.nodes_start=t,n.nodes_end=e)}function Sr(t,e){var n,r=0!==(e&St),i=0!==(e&It),a=!t.startsWith("");return function(){void 0===n&&(n=_r(a?t:""+t),r||(n=en(n)));var e=i||Ue?document.importNode(n,!0):n.cloneNode(!0);r?Tr(en(e),e.lastChild):Tr(e,e);return e}}function Ir(t,e){return function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"svg",i=!t.startsWith(""),a="<".concat(r,">").concat(i?t:""+t,"");return function(){if(!n){var t=en(_r(a));n=en(t)}var e=n.cloneNode(!0);return Tr(e,e),e}}(t,e,"svg")}function Ar(){var t=document.createDocumentFragment(),e=document.createComment(""),n=tn();return t.append(e,n),Tr(e,n),t}function Cr(t,e){null!==t&&t.before(e)}function wr(t,e){var n,r=null==e?"":"object"===S(e)?e+"":e;r!==(null!==(n=t.__t)&&void 0!==n?n:t.__t=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}var xr=new Map;var Or=new WeakMap;function kr(t,e){var n=t,r=null,i=null,a=At,o=!1,s=function(t){o=!0,l(!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t)},u=null;function c(){null!==u&&(u.lastChild.remove(),n.before(u),u=null);var t=a?r:i,e=a?i:r;t&&xn(t),e&&An(e,function(){a?i=null:r=null})}var l=function(t,e){if(a!==(a=t)){var o=!1,s=n;o,a?null!=r||(r=e&&bn(function(){return e(s)})):null!=i||(i=e&&bn(function(){return e(s)})),c()}};yn(function(){o=!1,e(s),o||l(null,null)},arguments.length>2&&void 0!==arguments[2]&&arguments[2]?et:0)}function Rr(t,e){return e}function Lr(t,e,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=t,s={flags:e,items:new Map,first:null};0!==(e&mt)&&(o=t.appendChild(tn()));var u,c,l=null,d=!1,f=new Map,h=ee(function(){var t=n();return p(t)?t:null==t?[]:_(t)});function v(){!function(t,e,n,r,i,a,o,s,u){var c,l,d,f,h,p,v=0!==(o>),m=0!==(o&(pt|vt)),g=e.length,y=n.items,b=n.first,T=b,S=null,I=[],A=[];if(v)for(p=0;p0){var P=0!==(o&mt)&&0===g?i:null;if(v){for(p=0;p0&&0===i.length&&null!==n;if(s){var u=n.parentNode;u.textContent="",u.append(n),r.clear(),Pr(t,e[0].prev,e[a-1].next)}Cn(i,function(){for(var n=0;n2?n-2:0),i=2;i1&&void 0!==arguments[1]&&arguments[1]?" !important;":";",n="";for(var r in t){var i=t[r];null!=i&&""!==i&&(n+=" "+r+": "+i+e)}return n}function Gr(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function Xr(t,e,n,r,i,a){var o=t.__className;if(o!==n||void 0===o){var s=function(t,e,n){var r=null==t?"":""+t;if(e&&(r=r?r+" "+e:e),n)for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;0!==o&&!zr.includes(r[o-1])||s!==r.length&&!zr.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 u in a){var c=!!a[u];null!=i&&c===!!i[u]||t.classList.toggle(u,c)}return a}function Kr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;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 qr(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,u=[];n&&u.push.apply(u,y(Object.keys(n).map(Gr))),r&&u.push.apply(u,y(Object.keys(r).map(Gr)));for(var c=0,l=-1,d=t.length,f=0;f2&&void 0!==arguments[2]&&arguments[2];if(t.multiple){if(null==e)return;if(!p(e))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");var r,i=E(t.options);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.selected=e.includes(Yr(a))}}catch(u){i.e(u)}finally{i.f()}}else{var o,s=E(t.options);try{for(s.s();!(o=s.n()).done;){if(Je(Yr(a=o.value),e))return void(a.selected=!0)}}catch(u){s.e(u)}finally{s.f()}n&&void 0===e||(t.selectedIndex=-1)}}function Yr(t){return"__value"in t?t.__value:t.value}var Qr=Symbol("class"),Jr=Symbol("style"),ti=Symbol("is custom element"),ei=Symbol("is html");function ni(t,e,n,r){var i=ai(t);i[e]!==(i[e]=n)&&("loading"===e&&(t[dt]=n),null==n?t.removeAttribute(e):"string"!=typeof n&&si(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function ri(t,e,n,r){var i,a=ai(t),o=a[ti],s=!a[ei],u=e||{},c="OPTION"===t.tagName;for(var l in e)l in n||(n[l]=null);(n.class?n.class=$r(n.class):n[Qr]&&(n.class=null),n[Jr])&&(null!==(i=n.style)&&void 0!==i||(n.style=null));var d,f,h,p,v,m,g=si(t),y=function(i){var l=n[i];if(c&&"value"===i&&null==l)return t.value=t.__value="",u[i]=l,0;if("class"===i)return d="http://www.w3.org/1999/xhtml"===t.namespaceURI,Xr(t,d,l,r,null==e?void 0:e[Qr],n[Qr]),u[i]=l,u[Qr]=n[Qr],0;if("style"===i)return qr(t,l,null==e?void 0:e[Jr],n[Jr]),u[i]=l,u[Jr]=n[Jr],0;if(l===(f=u[i])&&(void 0!==l||!t.hasAttribute(i)))return 0;if(u[i]=l,"$$"===(h=i[0]+i[1]))return 0;if("on"===h){var y={},b="$$"+i,E=i.slice(2);if(p=function(t){return lr.includes(t)}(E),function(t){return t.endsWith("capture")&&"gotpointercapture"!==t&&"lostpointercapture"!==t}(E)&&(E=E.slice(0,-7),y.capture=!0),!p&&f){if(null!=l)return 0;t.removeEventListener(E,u[b],y),u[b]=null}if(null!=l)if(p)t["__".concat(E)]=l,br([E]);else{u[b]=mr(E,t,function(t){u[i].call(this,t)},y)}else p&&(t["__".concat(E)]=void 0)}else if("style"===i)ni(t,i,l);else if("autofocus"===i)!function(t,e){if(e){var n=document.body;t.autofocus=!0,qt(function(){document.activeElement===n&&t.focus()})}}(t,Boolean(l));else if(o||"__value"!==i&&("value"!==i||null==l))if("selected"===i&&c)!function(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}(t,l);else if(v=i,s||(v=function(t){var e;return t=t.toLowerCase(),null!==(e=dr[t])&&void 0!==e?e:t}(v)),m="defaultValue"===v||"defaultChecked"===v,null!=l||o||m)m||g.includes(v)&&(o||"string"!=typeof l)?(t[v]=l,v in a&&(a[v]=At)):"function"!=typeof l&&ni(t,v,l);else if(a[i]=null,"value"===v||"checked"===v){var _=t,T=void 0===e;if("value"===v){var S=_.defaultValue;_.removeAttribute(v),_.defaultValue=S,_.value=_.__value=T?S:null}else{var I=_.defaultChecked;_.removeAttribute(v),_.defaultChecked=I,_.checked=!!T&&I}}else t.removeAttribute(i);else t.value=t.__value=l};for(var b in n)y(b);return u}function ii(t,e){var n=arguments.length>4?arguments[4]:void 0,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6&&void 0!==arguments[6]&&arguments[6];ae(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],function(a){var o=void 0,s={},u="SELECT"===t.nodeName,c=!1;if(yn(function(){var l=e.apply(void 0,y(a.map(ir))),d=ri(t,o,l,n,r,i);c&&u&&"value"in l&&Zr(t,l.value);var f,h=E(Object.getOwnPropertySymbols(s));try{for(h.s();!(f=h.n()).done;){var p=f.value;l[p]||Tn(s[p])}}catch(_){h.e(_)}finally{h.f()}var v,m=E(Object.getOwnPropertySymbols(l));try{for(m.s();!(v=m.n()).done;){var g=v.value,b=l[g];g.description!==xt||o&&b===o[g]||(s[g]&&Tn(s[g]),s[g]=bn(function(){return jr(t,function(){return b})})),d[g]=b}}catch(_){m.e(_)}finally{m.f()}o=d}),u){var l=t;vn(function(){Zr(l,o.value,!0),function(t){var e=new MutationObserver(function(){Zr(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),fn(function(){e.disconnect()})}(l)})}c=!0})}function ai(t){var e;return null!==(e=t.__attributes)&&void 0!==e?e:t.__attributes=D(D({},ti,t.nodeName.includes("-")),ei,t.namespaceURI===Ct)}var oi=new Map;function si(t){var e,n=t.getAttribute("is")||t.nodeName,r=oi.get(n);if(r)return r;oi.set(n,r=[]);for(var i=t,a=Element.prototype;a!==i;){for(var o in e=R(i))e[o].set&&r.push(o);i=N(i)}return r}function ui(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=new WeakSet;cn(t,"input",function(){var a=u(i().m(function a(o){var s,u,c;return i().w(function(i){for(;;)switch(i.n){case 0:return s=o?t.defaultValue:t.value,s=ci(t)?li(s):s,n(s),null!==ue&&r.add(ue),i.n=1,nr();case 1:s!==(s=e())&&(u=t.selectionStart,c=t.selectionEnd,t.value=null!=s?s:"",null!==c&&(t.selectionStart=u,t.selectionEnd=Math.min(c,t.value.length)));case 2:return i.a(2)}},a)}));return function(t){return a.apply(this,arguments)}}()),null==or(e)&&t.value&&(n(ci(t)?li(t.value):t.value),null!==ue&&r.add(ue)),mn(function(){var n=e();if(t===document.activeElement){var i=null!=ce?ce:ue;if(r.has(i))return}ci(t)&&n===li(t.value)||("date"!==t.type||n||t.value)&&n!==t.value&&(t.value=null!=n?n:"")})}function ci(t){var e=t.type;return"number"===e||"range"===e}function li(t){return""===t?null:+t}var di=new WeakMap,fi=new WeakMap,hi=new WeakMap,pi=new WeakSet,vi=function(){return A(function t(e){C(this,t),f(this,pi),h(this,di,new WeakMap),h(this,fi,void 0),h(this,hi,void 0),v(hi,this,e)},[{key:"observe",value:function(t,e){var n=this,r=m(di,this).get(t)||new Set;return r.add(e),m(di,this).set(t,r),g(pi,this,mi).call(this).observe(t,m(hi,this)),function(){var r=m(di,n).get(t);r.delete(e),0===r.size&&(m(di,n).delete(t),m(fi,n).unobserve(t))}}}])}();function mi(){var t,e=this;return null!==(t=m(fi,this))&&void 0!==t?t:v(fi,this,new ResizeObserver(function(t){var r,i=E(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;n.entries.set(a.target,a);var o,s=E(m(di,e).get(a.target)||[]);try{for(s.s();!(o=s.n()).done;){(0,o.value)(a)}}catch(u){s.e(u)}finally{s.f()}}}catch(u){i.e(u)}finally{i.f()}}))}n=vi,D(vi,"entries",new WeakMap);var gi=new vi({box:"border-box"});function yi(t,e){return t===e||(null==t?void 0:t[ct])===e}function bi(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return vn(function(){var r,i;return mn(function(){r=i,i=[],or(function(){t!==n.apply(void 0,y(i))&&(e.apply(void 0,[t].concat(y(i))),r&&yi(n.apply(void 0,y(r)),t)&&e.apply(void 0,[null].concat(y(r))))})}),function(){qt(function(){i&&yi(n.apply(void 0,y(i)),t)&&e.apply(void 0,[null].concat(y(i)))})}}),t}function Ei(t,e,n){if(null==t)return e(void 0),H;var r=or(function(){return t.subscribe(e,n)});return r.unsubscribe?function(){return r.unsubscribe()}:r}var _i=[];function Ti(t,e){return{subscribe:Si(t,e).subscribe}}function Si(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,n=null,r=new Set;function i(e){if(Rt(t,e)&&(t=e,n)){var i,a=!_i.length,o=E(r);try{for(o.s();!(i=o.n()).done;){var s=i.value;s[1](),_i.push(s,t)}}catch(c){o.e(c)}finally{o.f()}if(a){for(var u=0;u<_i.length;u+=2)_i[u][0](_i[u+1]);_i.length=0}}}function a(e){i(e(t))}return{set:i,update:a,subscribe:function(o){var s=[o,arguments.length>1&&void 0!==arguments[1]?arguments[1]:H];return r.add(s),1===r.size&&(n=e(i,a)||H),o(t),function(){r.delete(s),0===r.size&&n&&(n(),n=null)}}}}function Ii(t){var e;return Ei(t,function(t){return e=t})(),e}var Ai=!1,Ci=Symbol();function wi(t,e,n){var r,i=null!==(r=n[e])&&void 0!==r?r:n[e]={store:null,source:Ge(void 0),unsubscribe:H};if(i.store!==t&&!(Ci in n))if(i.unsubscribe(),i.store=null!=t?t:null,null==t)i.source.v=void 0,i.unsubscribe=H;else{var a=!0;i.unsubscribe=Ei(t,function(t){a?i.source.v=t:Xe(i.source,t)}),a=!1}return t&&Ci in n?Ii(t):ir(i.source)}function xi(t,e){return t.set(e),e}function Oi(){var t={};return[t,function(){fn(function(){for(var e in t){t[e].unsubscribe()}T(t,Ci,{enumerable:!1,value:!0})})}]}var ki={get:function(t,e){if(!t.exclude.includes(e))return t.props[e]},set:function(t,e){return!1},getOwnPropertyDescriptor:function(t,e){if(!t.exclude.includes(e))return e in t.props?{enumerable:!0,configurable:!0,value:t.props[e]}:void 0},has:function(t,e){return!t.exclude.includes(e)&&e in t.props},ownKeys:function(t){return Reflect.ownKeys(t.props).filter(function(e){return!t.exclude.includes(e)})}};function Ri(t,e,n){return new Proxy({props:t,exclude:e},ki)}var Li={get:function(t,e){for(var n=t.props.length;n--;){var r=t.props[n];if(F(r)&&(r=r()),"object"===S(r)&&null!==r&&e in r)return r[e]}},set:function(t,e,n){for(var r=t.props.length;r--;){var i=t.props[r];F(i)&&(i=i());var a=I(i,e);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor:function(t,e){for(var n=t.props.length;n--;){var r=t.props[n];if(F(r)&&(r=r()),"object"===S(r)&&null!==r&&e in r){var i=I(r,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has:function(t,e){if(e===ct||e===lt)return!1;var n,r=E(t.props);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(F(i)&&(i=i()),null!=i&&e in i)return!0}}catch(a){r.e(a)}finally{r.f()}return!1},ownKeys:function(t){var e,n=[],r=E(t.props);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(F(i)&&(i=i()),i){for(var a in i)n.includes(a)||n.push(a);var o,s=E(Object.getOwnPropertySymbols(i));try{for(s.s();!(o=s.n()).done;){var u=o.value;n.includes(u)||n.push(u)}}catch(c){s.e(c)}finally{s.f()}}}}catch(c){r.e(c)}finally{r.f()}return n}};function Mi(){for(var t=arguments.length,e=new Array(t),n=0;n0?((!e||y||m)&&i(e?v():t),t):v()}}var b=!1,E=(0!==(n&bt)?Qt:ee)(function(){return b=!1,v()});o&&ir(E);var _=Fn;return function(t,e){if(arguments.length>0){var n=e?ir(E):o?Ye(t):t;return Xe(E,n),b=!0,void 0!==u&&(u=n),t}return Ln&&b||0!==(_.f&J)?E.v:ir(E)}}function Ni(t){null===Nt&&ht(),hn(function(){var e=or(t);if("function"==typeof e)return e})}function Pi(t){null===Nt&&ht(),Ni(function(){return function(){return or(t)}})}var Fi,Hi,Bi,Ui;"undefined"!=typeof window&&(null!==(Hi=(Fi=null!==(Ui=(Bi=window).__svelte)&&void 0!==Ui?Ui:Bi.__svelte={}).v)&&void 0!==Hi?Hi:Fi.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 ji={CLOSING:"mdc-snackbar--closing",OPEN:"mdc-snackbar--open",OPENING:"mdc-snackbar--opening"},Vi={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"},$i={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},zi=$i.ARIA_LIVE_DELAY_MS,Wi=Vi.ARIA_LIVE_LABEL_TEXT_ATTR;var Gi=function(t,e){return Gi=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])},Gi(t,e)};function Xi(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}Gi(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Ki=function(){return Ki=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 Zi(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 Yi(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 "+$i.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(aa)},e.prototype.handleActionButtonClick=function(t){this.close(ia)},e.prototype.handleActionIconClick=function(t){this.close(aa)},e.prototype.clearAutoDismissTimer=function(){clearTimeout(this.autoDismissTimer),this.autoDismissTimer=0},e.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(ji.OPENING),this.adapter.removeClass(ji.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}(Qi); /** * @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 sa=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"}));e("Y",sa); /** * @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 ua="mdc-dom-focus-sentinel",ca=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("."+ua)).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(ua)&&!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(ua),t},t}(),la=Object.freeze(Object.defineProperty({__proto__:null,FocusTrap:ca},Symbol.toStringTag,{value:"Module"})),da="Unknown",fa="Backspace",ha="Enter",pa="Spacebar",va="PageUp",ma="PageDown",ga="End",ya="Home",ba="ArrowLeft",Ea="ArrowUp",_a="ArrowRight",Ta="ArrowDown",Sa="Delete",Ia="Escape",Aa="Tab",Ca=new Set;Ca.add(fa),Ca.add(ha),Ca.add(pa),Ca.add(va),Ca.add(ma),Ca.add(ga),Ca.add(ya),Ca.add(ba),Ca.add(Ea),Ca.add(_a),Ca.add(Ta),Ca.add(Sa),Ca.add(Ia),Ca.add(Aa);var wa=8,xa=13,Oa=32,ka=33,Ra=34,La=35,Ma=36,Da=37,Na=38,Pa=39,Fa=40,Ha=46,Ba=27,Ua=9,ja=new Map;ja.set(wa,fa),ja.set(xa,ha),ja.set(Oa,pa),ja.set(ka,va),ja.set(Ra,ma),ja.set(La,ga),ja.set(Ma,ya),ja.set(Da,ba),ja.set(Na,Ea),ja.set(Pa,_a),ja.set(Fa,Ta),ja.set(Ha,Sa),ja.set(Ba,Ia),ja.set(Ua,Aa);var Va=new Set;function $a(t){var e=t.key;if(Ca.has(e))return e;var n=ja.get(t.keyCode);return n||da}function za(t){return Object.entries(t).filter(function(t){var e=c(t,2),n=e[0],r=e[1];return""!==n&&r}).map(function(t){return c(t,1)[0]}).join(" ")}function Wa(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{bubbles:!0};if("undefined"==typeof Event)throw new Error("Event not defined.");if(!t)throw new Error("Tried to dispatch event without element.");var i=new CustomEvent(e,Object.assign(Object.assign({},r),{detail:n}));return null==t||t.dispatchEvent(i),i}function Ga(t,e){for(var n=Object.getOwnPropertyNames(t),r={},i=0;i1?n.push(a(t,i[1])):n.push(a(t))}return{update:function(t){if((t&&t.length||0)!=n.length)throw new Error("You must not change the length of an actions array.");if(t)for(var e=0;e1?r.update(i[1]):r.update()}}},destroy:function(){for(var t=0;t
");var Qa=Ir("");function Ja(t,e){Bt(e,!0);var n,i=Di(e,"use",19,function(){return[]}),a=Di(e,"tag",3,"div"),o=Ri(e,["$$slots","$$events","$$legacy","use","tag","children"]),s=te(function(){return["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].indexOf(a())>-1});var u={getElement:function(){return n}},c=Ar(),l=an(c),d=function(t){var a=Qa();ii(a,function(){return r({},o)}),Fr(rn(a),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),bi(a,function(t){return n=t},function(){return n}),Ur(a,function(t,e){return null==qa?void 0:qa(t,e)},i),Cr(t,a)},f=function(t){var u=Ar(),c=an(u),l=function(t){var e=Ar();Br(an(e),a,0,function(t,e){bi(t,function(t){return n=t},function(){return n}),Ur(t,function(t,e){return null==qa?void 0:qa(t,e)},i),ii(t,function(){return r({},o)})}),Cr(t,e)},d=function(t){var s=Ar();Br(an(s),a,0,function(t,a){bi(t,function(t){return n=t},function(){return n}),Ur(t,function(t,e){return null==qa?void 0:qa(t,e)},i),ii(t,function(){return r({},o)});var s=Ar();Fr(an(s),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),Cr(a,s)}),Cr(t,s)};kr(c,function(t){ir(s)?t(l):t(d,!1)},!0),Cr(t,u)};return kr(l,function(t){"svg"===a()?t(d):t(f,!1)}),Cr(t,c),Ut(u)}var to,eo,no=Ir("");function ro(t,e){Bt(e,!0),console&&console.warn&&console.warn('The @smui/common Svg component is deprecated. You can use `tag="svg"` now.');var n,i=Di(e,"use",19,function(){return[]}),a=Ri(e,["$$slots","$$events","$$legacy","use","children"]);var o={getElement:function(){return n}},s=no();return ii(s,function(){return r({},a)}),Fr(rn(s),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),bi(s,function(t){return n=t},function(){return n}),Ur(s,function(t,e){return null==qa?void 0:qa(t,e)},i),Cr(t,s),Ut(o)}function io(t,e){Bt(e,!0);var n,i=Di(e,"use",19,function(){return[]}),a=Di(e,"class",3,""),o=Di(e,"component",3,Ja),s=Di(e,"tag",3,"div"),u=Di(e,"_smuiClass",3,""),l=Di(e,"_smuiClassMap",23,function(){return{}}),d=Di(e,"_smuiContexts",19,function(){return{}}),f=Di(e,"_smuiProps",19,function(){return{}}),h=Ri(e,["$$slots","$$events","$$legacy","use","class","component","tag","_smuiClass","_smuiClassMap","_smuiContexts","_smuiProps","children"]),p=[];for(var v in Object.entries(l()).forEach(function(t){var e=c(t,2),n=e[0],r=Ft(e[1]);r&&"subscribe"in r&&p.push(r.subscribe(function(t){l()[n]=t}))}),d())d().hasOwnProperty(v)&&Ht(v,d()[v]);Pi(function(){for(var t=0,e=p;te&&!n(a[s].index)){u=s;break}if(-1!==u)return r.sortedIndexCursor=u,a[r.sortedIndexCursor].index;return-1}(a,o,u,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 u=i[o],c=0===u.text.lastIndexOf(n.typeaheadBuffer,0),l=!e(u.index);if(c&&l){s=o;break}o=(o+1)%i.length}if(-1!==s)return n.sortedIndexCursor=s,i[n.sortedIndexCursor].index;return-1}(a,u,e),-1===n||s||i(n),n}function ho(t){return t.typeaheadBuffer.length>0}function po(t){t.typeaheadBuffer=""}function vo(t,e){var n=t.event,r=t.isTargetListItem,i=t.focusedItemIndex,a=t.focusItemAtIndex,o=t.sortedIndexByFirstChar,s=t.isItemAtIndexDisabled,u="ArrowLeft"===$a(n),c="ArrowUp"===$a(n),l="ArrowRight"===$a(n),d="ArrowDown"===$a(n),f="Home"===$a(n),h="End"===$a(n),p="Enter"===$a(n),v="Spacebar"===$a(n);return n.altKey||n.ctrlKey||n.metaKey||u||c||l||d||f||h||p?-1:v||1!==n.key.length?v?(r&&lo(n),r&&ho(e)?fo({focusItemAtIndex:a,focusedItemIndex:i,nextChar:" ",sortedIndexByFirstChar:o,skipFocus:!1,isItemAtIndexDisabled:s},e):-1):-1:(lo(n),fo({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 mo=["Alt","Control","Meta","Shift"];function go(t){var e=new Set(t?mo.filter(function(e){return t.getModifierState(e)}):[]);return function(t){return t.every(function(t){return e.has(t)})&&t.length===e.size}}var yo=function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.wrapFocus=!1,r.isVertical=!0,r.isSingleSelectionList=!1,r.areDisabledItemsFocusable=!0,r.selectedIndex=uo.UNSET_INDEX,r.focusedItemIndex=uo.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 Xi(e,t),Object.defineProperty(e,"strings",{get:function(){return so},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return ao},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return uo},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!==uo.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(t,ao.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=t)},e.prototype.getSelectedIndexFromDOM=function(){for(var t=uo.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,ao.LIST_ITEM_DISABLED_CLASS)},e.prototype.handleKeydown=function(t,e,n){var r,i=this,a="ArrowLeft"===$a(t),o="ArrowUp"===$a(t),s="ArrowRight"===$a(t),u="ArrowDown"===$a(t),c="Home"===$a(t),l="End"===$a(t),d="Enter"===$a(t),f="Spacebar"===$a(t),h=this.isVertical&&u||!this.isVertical&&s,p=this.isVertical&&o||!this.isVertical&&a,v="A"===t.key||"a"===t.key,m=go(t);if(this.adapter.isRootFocused()){if((p||l)&&m([]))t.preventDefault(),this.focusLastElement();else if((h||c)&&m([]))t.preventDefault(),this.focusFirstElement();else if(p&&m(["Shift"])&&this.isCheckboxList){t.preventDefault(),-1!==(b=this.focusLastElement())&&this.setSelectedIndexOnAction(b,!1)}else if(h&&m(["Shift"])&&this.isCheckboxList){t.preventDefault(),-1!==(b=this.focusFirstElement())&&this.setSelectedIndexOnAction(b,!1)}if(this.hasTypeahead){var g={event:t,focusItemAtIndex:function(t){i.focusItemAtIndex(t)},focusedItemIndex:-1,isTargetListItem:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return i.isIndexDisabled(t)}};vo(g,this.typeaheadState)}}else{var y=this.adapter.getFocusedElementIndex();if(!(-1===y&&(y=n)<0)){if(h&&m([]))lo(t),this.focusNextElement(y);else if(p&&m([]))lo(t),this.focusPrevElement(y);else if(h&&m(["Shift"])&&this.isCheckboxList){lo(t),-1!==(b=this.focusNextElement(y))&&this.setSelectedIndexOnAction(b,!1)}else if(p&&m(["Shift"])&&this.isCheckboxList){var b;lo(t),-1!==(b=this.focusPrevElement(y))&&this.setSelectedIndexOnAction(b,!1)}else if(c&&m([]))lo(t),this.focusFirstElement();else if(l&&m([]))lo(t),this.focusLastElement();else if(c&&m(["Control","Shift"])&&this.isCheckboxList){if(lo(t),this.isIndexDisabled(y))return;this.focusFirstElement(),this.toggleCheckboxRange(0,y,y)}else if(l&&m(["Control","Shift"])&&this.isCheckboxList){if(lo(t),this.isIndexDisabled(y))return;this.focusLastElement(),this.toggleCheckboxRange(y,this.adapter.getListItemCount()-1,y)}else if(v&&m(["Control"])&&this.isCheckboxList)t.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===uo.UNSET_INDEX?[]:this.selectedIndex,!0);else if((d||f)&&m([])){if(e){if((E=t.target)&&"A"===E.tagName&&d)return;if(lo(t),this.isIndexDisabled(y))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(y,!1),this.adapter.notifyAction(y))}}else if((d||f)&&m(["Shift"])&&this.isCheckboxList){var E;if((E=t.target)&&"A"===E.tagName&&d)return;if(lo(t),this.isIndexDisabled(y))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(r=this.lastSelectedIndex)&&void 0!==r?r:y,y,y),this.adapter.notifyAction(y))}if(this.hasTypeahead){g={event:t,focusItemAtIndex:function(t){i.focusItemAtIndex(t)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return i.isIndexDisabled(t)}};vo(g,this.typeaheadState)}}}},e.prototype.handleClick=function(t,e,n){var r,i=go(n);t!==uo.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,ao.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,so.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(t,ao.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,so.ARIA_DISABLED,"true")))},e.prototype.setSingleSelectionAtIndex=function(t,e){if(void 0===e&&(e={}),this.selectedIndex!==t||e.forceUpdate){var n=ao.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=ao.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==uo.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(t),this.setTabindexAtIndex(t),t!==uo.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===uo.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(t,so.ARIA_CURRENT));var e=null!==this.ariaCurrentAttrValue,n=e?so.ARIA_CURRENT:so.ARIA_SELECTED;if(this.selectedIndex!==uo.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),t!==uo.UNSET_INDEX){var r=e?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(t,n,r)}},e.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?so.ARIA_SELECTED:so.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!==uo.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===uo.UNSET_INDEX?[]:n):null,i=this.getSelectionAttribute(),a=[],o=0;o=0;u!==s&&a.push(o),this.adapter.setCheckedCheckboxOrRadioAtIndex(o,u),this.adapter.setAttributeForElementIndex(o,i,u?"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===uo.UNSET_INDEX?[]:this.selectedIndex),i=!(null==r?void 0:r.has(n)),a=Zi([t,e].sort(),2),o=a[0],s=a[1],u=this.getSelectionAttribute(),c=[],l=o;l<=s;l++){if(!this.isIndexDisabled(l))i!==r.has(l)&&(c.push(l),this.adapter.setCheckedCheckboxOrRadioAtIndex(l,i),this.adapter.setAttributeForElementIndex(l,u,""+i),i?r.add(l):r.delete(l))}c.length&&(this.selectedIndex=Yi([],Zi(r)),this.adapter.notifySelectionChange(c))},e.prototype.setTabindexAtIndex=function(t){this.focusedItemIndex===uo.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!==uo.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!==uo.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===uo.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;void 0===n&&(n=!1);var i={focusItemAtIndex:function(t){r.focusItemAtIndex(t)},focusedItemIndex:e||this.focusedItemIndex,nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(t){return r.isIndexDisabled(t)}};return fo(i,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. */var Io,Ao={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"},Co={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"},wo={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 xo=["touchstart","pointerdown","mousedown","keydown"],Oo=["touchend","pointerup","mouseup","contextmenu"],ko=[],Ro=function(t){function e(n){var r=t.call(this,Ki(Ki({},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 Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Ao},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Co},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return wo},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=qi(xo),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=qi(Oo),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=qi(xo),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=qi(Oo),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&&ko.length>0&&ko.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(ko.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){ko=[],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,u=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",l="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,h=d.endPoint;c=f.x+"px, "+f.y+"px",l=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(r,c),this.adapter.updateCssVariable(i,l),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()},u)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return 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,u=o+n.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-s,i=c.changedTouches[0].pageY-u}else{var l=t;r=l.pageX-s,i=l.pageY-u}return{x:r,y:i}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.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)},wo.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=Ki({},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}(Qi),Lo={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},Mo={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"},Do=function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.hasToggledAriaLabel=!1,r}return Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Lo},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Mo},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(Mo.DATA_ARIA_LABEL_ON),e=this.adapter.getAttr(Mo.DATA_ARIA_LABEL_OFF);if(t&&e){if(null!==this.adapter.getAttr(Mo.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(Mo.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(Lo.ICON_BUTTON_ON)},e.prototype.toggle=function(t){if(void 0===t&&(t=!this.isOn()),t?this.adapter.addClass(Lo.ICON_BUTTON_ON):this.adapter.removeClass(Lo.ICON_BUTTON_ON),this.hasToggledAriaLabel){var e=t?this.adapter.getAttr(Mo.DATA_ARIA_LABEL_ON):this.adapter.getAttr(Mo.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(Mo.ARIA_LABEL,e||"")}else this.adapter.setAttr(Mo.ARIA_PRESSED,""+t)},e}(Qi),No=sa.applyPassive,Po=ta.matches;function Fo(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.ripple,a=void 0===i||i,o=r.surface,s=void 0!==o&&o,u=r.unbounded,c=void 0!==u&&u,l=r.disabled,d=void 0!==l&&l,f=r.color,h=r.active,p=r.rippleElement,v=r.eventTarget,m=r.activeTarget,g=r.addClass,y=void 0===g?function(e){return t.classList.add(e)}:g,b=r.removeClass,E=void 0===b?function(e){return t.classList.remove(e)}:b,_=r.addStyle,T=void 0===_?function(e,n){return t.style.setProperty(e,n)}:_,S=r.initPromise,I=void 0===S?Promise.resolve():S,A=new Ka,C=Ft("SMUI:addLayoutListener"),w=h,x=v,O=m;function k(){s?(y("mdc-ripple-surface"),"primary"===f?(y("smui-ripple-surface--primary"),E("smui-ripple-surface--secondary")):"secondary"===f?(E("smui-ripple-surface--primary"),y("smui-ripple-surface--secondary")):(E("smui-ripple-surface--primary"),E("smui-ripple-surface--secondary"))):(E("mdc-ripple-surface"),E("smui-ripple-surface--primary"),E("smui-ripple-surface--secondary")),e&&w!==h&&(w=h,h?e.activate():!1===h&&e.deactivate()),a&&!e?(e=new Ro({addClass:y,browserSupportsCssVars:function(){return function(t,e){void 0===e&&(e=!1);var n,r=t.CSS;if("boolean"==typeof Io&&!e)return Io;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||(Io=n),n}(window)},computeBoundingRect:function(){return(p||t).getBoundingClientRect()},containsEventTarget:function(e){return t.contains(e)},deregisterDocumentInteractionHandler:function(t,e){return A.off(document.documentElement,t,e)},deregisterInteractionHandler:function(e,n){return A.off(v||t,e,n)},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){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:function(){return null==h?Po(m||t,":active"):h},isSurfaceDisabled:function(){return!!d},isUnbounded:function(){return!!c},registerDocumentInteractionHandler:function(t,e){var n=No();A.on(document.documentElement,t,e,"boolean"==typeof n?{capture:n}:n)},registerInteractionHandler:function(e,n){var r=No();A.on(v||t,e,n,"boolean"==typeof r?{capture:r}:r)},registerResizeHandler:function(t){return A.on(window,"resize",t)},removeClass:E,updateCssVariable:T}),I.then(function(){e&&(e.init(),e.setUnbounded(c))})):e&&!a&&I.then(function(){e&&(e.destroy(),e=void 0,A.clear())}),!e||x===v&&O===m||(x=v,O=m,e.destroy(),requestAnimationFrame(function(){e&&(e.init(),e.setUnbounded(c))})),!a&&c&&y("mdc-ripple-upgraded--unbounded")}return k(),C&&(n=C(function(){e&&e.layout()})),{update:function(e){var n=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:function(e){return t.classList.add(e)},removeClass:function(e){return t.classList.remove(e)},addStyle:function(e,n){return t.style.setProperty(e,n)},initPromise:Promise.resolve()},e);a=n.ripple,s=n.surface,c=n.unbounded,d=n.disabled,f=n.color,h=n.active,p=n.rippleElement,v=n.eventTarget,m=n.activeTarget,y=n.addClass,E=n.removeClass,T=n.addStyle,I=n.initPromise,k()},destroy:function(){e&&(e.destroy(),e=void 0,A.clear(),E("mdc-ripple-surface"),E("smui-ripple-surface--primary"),E("smui-ripple-surface--secondary")),n&&n()}}}var Ho=Sr('
'),Bo=Sr('
',1);var Uo=0,jo=Sr(''),Vo=Sr("",1);var $o=Sr("");var zo,Wo,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",us="step",cs="data-min-range",ls="--slider-value-indicator-caret-left",ds="--slider-value-indicator-caret-right",fs="--slider-value-indicator-caret-transform",hs="--slider-value-indicator-container-left",ps="--slider-value-indicator-container-right",vs="--slider-value-indicator-container-transform",ms=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. */!function(t){t[t.ACTIVE=0]="ACTIVE",t[t.INACTIVE=1]="INACTIVE"}(zo||(zo={})),function(t){t[t.START=1]="START",t[t.END=2]="END"}(Wo||(Wo={})),function(t){t.SLIDER_UPDATE="slider_update"}(Go||(Go={}));var bs="undefined"!=typeof window,Es=function(t){function e(n){var r=t.call(this,Ki(Ki({},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 ms,r}return Xi(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(us,Wo.END),o=a?this.convertAttributeValueToNumber(a,us):this.step,s=this.adapter.getAttribute(cs),u=s?this.convertAttributeValueToNumber(s,cs):this.minRange;this.validateProperties({min:e,max:n,value:r,valueStart:i,step:o,minRange:u}),this.min=e,this.max=n,this.value=r,this.valueStart=i,this.step=o,this.minRange=u,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(ls,n+"px",t),this.adapter.setThumbStyleProperty(ds,"auto",t),this.adapter.setThumbStyleProperty(fs,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(hs,"0",t),this.adapter.setThumbStyleProperty(ps,"auto",t),this.adapter.setThumbStyleProperty(vs,"none",t)):r/2>i-e+n?(this.adapter.setThumbStyleProperty(ls,"auto",t),this.adapter.setThumbStyleProperty(ds,n+"px",t),this.adapter.setThumbStyleProperty(fs,"translateX(50%)",t),this.adapter.setThumbStyleProperty(hs,"auto",t),this.adapter.setThumbStyleProperty(ps,"0",t),this.adapter.setThumbStyleProperty(vs,"none",t)):(this.adapter.setThumbStyleProperty(ls,"50%",t),this.adapter.setThumbStyleProperty(ds,"auto",t),this.adapter.setThumbStyleProperty(fs,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(hs,"50%",t),this.adapter.setThumbStyleProperty(ps,"auto",t),this.adapter.setThumbStyleProperty(vs,"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+"]");u=(r-e)/a;if(!Number.isInteger(parseFloat(u.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}(Qi);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=Sr(" ",1),Ss=Sr(""),Is=Sr("
"),As=Sr('
'),Cs=Sr('
'),ws=Sr('
'),xs=Sr('
',1),Os=Sr('
'),ks=Sr('
'),Rs=Sr('
');var Ls="top",Ms="bottom",Ds="right",Ns="left",Ps="auto",Fs=[Ls,Ms,Ds,Ns],Hs="start",Bs="end",Us="viewport",js="popper",Vs=Fs.reduce(function(t,e){return t.concat([e+"-"+Hs,e+"-"+Bs])},[]),$s=[].concat(Fs,[Ps]).reduce(function(t,e){return t.concat([e,e+"-"+Hs,e+"-"+Bs])},[]),zs=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ws(t){return t?(t.nodeName||"").toLowerCase():null}function Gs(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Xs(t){return t instanceof Gs(t).Element||t instanceof Element}function Ks(t){return t instanceof Gs(t).HTMLElement||t instanceof HTMLElement}function qs(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Gs(t).ShadowRoot||t instanceof ShadowRoot)}var Zs={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];Ks(i)&&Ws(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},{});Ks(r)&&Ws(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(t){r.removeAttribute(t)}))})}},requires:["computeStyles"]};function Ys(t){return t.split("-")[0]}var Qs=Math.max,Js=Math.min,tu=Math.round;function eu(){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 nu(){return!/^((?!chrome|android).)*safari/i.test(eu())}function ru(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,a=1;e&&Ks(t)&&(i=t.offsetWidth>0&&tu(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&tu(r.height)/t.offsetHeight||1);var o=(Xs(t)?Gs(t):window).visualViewport,s=!nu()&&n,u=(r.left+(s&&o?o.offsetLeft:0))/i,c=(r.top+(s&&o?o.offsetTop:0))/a,l=r.width/i,d=r.height/a;return{width:l,height:d,top:c,right:u+l,bottom:c+d,left:u,x:u,y:c}}function iu(t){var e=ru(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 au(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&qs(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ou(t){return Gs(t).getComputedStyle(t)}function su(t){return["table","td","th"].indexOf(Ws(t))>=0}function uu(t){return((Xs(t)?t.ownerDocument:t.document)||window.document).documentElement}function cu(t){return"html"===Ws(t)?t:t.assignedSlot||t.parentNode||(qs(t)?t.host:null)||uu(t)}function lu(t){return Ks(t)&&"fixed"!==ou(t).position?t.offsetParent:null}function du(t){for(var e=Gs(t),n=lu(t);n&&su(n)&&"static"===ou(n).position;)n=lu(n);return n&&("html"===Ws(n)||"body"===Ws(n)&&"static"===ou(n).position)?e:n||function(t){var e=/firefox/i.test(eu());if(/Trident/i.test(eu())&&Ks(t)&&"fixed"===ou(t).position)return null;var n=cu(t);for(qs(n)&&(n=n.host);Ks(n)&&["html","body"].indexOf(Ws(n))<0;){var r=ou(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 fu(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function hu(t,e,n){return Qs(t,Js(e,n))}function pu(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function vu(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var mu={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=Ys(n.placement),u=fu(s),c=[Ns,Ds].indexOf(s)>=0?"height":"width";if(a&&o){var l=function(t,e){return pu("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:vu(t,Fs))}(i.padding,n),d=iu(a),f="y"===u?Ls:Ns,h="y"===u?Ms:Ds,p=n.rects.reference[c]+n.rects.reference[u]-o[u]-n.rects.popper[c],v=o[u]-n.rects.reference[u],m=du(a),g=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,y=p/2-v/2,b=l[f],E=g-d[c]-l[h],_=g/2-d[c]/2+y,T=hu(b,_,E),S=u;n.modifiersData[r]=((e={})[S]=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)))&&au(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gu(t){return t.split("-")[1]}var yu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bu(t){var e,n=t.popper,r=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,s=t.position,u=t.gpuAcceleration,c=t.adaptive,l=t.roundOffsets,d=t.isFixed,f=o.x,h=void 0===f?0:f,p=o.y,v=void 0===p?0:p,m="function"==typeof l?l({x:h,y:v}):{x:h,y:v};h=m.x,v=m.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Ns,E=Ls,_=window;if(c){var T=du(n),S="clientHeight",I="clientWidth";if(T===Gs(n)&&"static"!==ou(T=uu(n)).position&&"absolute"===s&&(S="scrollHeight",I="scrollWidth"),i===Ls||(i===Ns||i===Ds)&&a===Bs)E=Ms,v-=(d&&T===_&&_.visualViewport?_.visualViewport.height:T[S])-r.height,v*=u?1:-1;if(i===Ns||(i===Ls||i===Ms)&&a===Bs)b=Ds,h-=(d&&T===_&&_.visualViewport?_.visualViewport.width:T[I])-r.width,h*=u?1:-1}var A,C=Object.assign({position:s},c&&yu),w=!0===l?function(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:tu(n*i)/i||0,y:tu(r*i)/i||0}}({x:h,y:v},Gs(n)):{x:h,y:v};return h=w.x,v=w.y,u?Object.assign({},C,((A={})[E]=y?"0":"",A[b]=g?"0":"",A.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",A)):Object.assign({},C,((e={})[E]=y?v+"px":"",e[b]=g?h+"px":"",e.transform="",e))}var Eu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,u=void 0===s||s,c={placement:Ys(e.placement),variation:gu(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,bu(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,bu(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},_u={passive:!0};var Tu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,u=Gs(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(t){t.addEventListener("scroll",n.update,_u)}),s&&u.addEventListener("resize",n.update,_u),function(){a&&c.forEach(function(t){t.removeEventListener("scroll",n.update,_u)}),s&&u.removeEventListener("resize",n.update,_u)}},data:{}},Su={left:"right",right:"left",bottom:"top",top:"bottom"};function Iu(t){return t.replace(/left|right|bottom|top/g,function(t){return Su[t]})}var Au={start:"end",end:"start"};function Cu(t){return t.replace(/start|end/g,function(t){return Au[t]})}function wu(t){var e=Gs(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xu(t){return ru(uu(t)).left+wu(t).scrollLeft}function Ou(t){var e=ou(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ku(t){return["html","body","#document"].indexOf(Ws(t))>=0?t.ownerDocument.body:Ks(t)&&Ou(t)?t:ku(cu(t))}function Ru(t,e){var n;void 0===e&&(e=[]);var r=ku(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),a=Gs(r),o=i?[a].concat(a.visualViewport||[],Ou(r)?r:[]):r,s=e.concat(o);return i?s:s.concat(Ru(cu(o)))}function Lu(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Mu(t,e,n){return e===Us?Lu(function(t,e){var n=Gs(t),r=uu(t),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var c=nu();(c||!c&&"fixed"===e)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s+xu(t),y:u}}(t,n)):Xs(e)?function(t,e){var n=ru(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):Lu(function(t){var e,n=uu(t),r=wu(t),i=null==(e=t.ownerDocument)?void 0:e.body,a=Qs(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Qs(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+xu(t),u=-r.scrollTop;return"rtl"===ou(i||n).direction&&(s+=Qs(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}(uu(t)))}function Du(t,e,n,r){var i="clippingParents"===e?function(t){var e=Ru(cu(t)),n=["absolute","fixed"].indexOf(ou(t).position)>=0&&Ks(t)?du(t):t;return Xs(n)?e.filter(function(t){return Xs(t)&&au(t,n)&&"body"!==Ws(t)}):[]}(t):[].concat(e),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(e,n){var i=Mu(t,n,r);return e.top=Qs(i.top,e.top),e.right=Js(i.right,e.right),e.bottom=Js(i.bottom,e.bottom),e.left=Qs(i.left,e.left),e},Mu(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 Nu(t){var e,n=t.reference,r=t.element,i=t.placement,a=i?Ys(i):null,o=i?gu(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(a){case Ls:e={x:s,y:n.y-r.height};break;case Ms:e={x:s,y:n.y+n.height};break;case Ds:e={x:n.x+n.width,y:u};break;case Ns:e={x:n.x-r.width,y:u};break;default:e={x:n.x,y:n.y}}var c=a?fu(a):null;if(null!=c){var l="y"===c?"height":"width";switch(o){case Hs:e[c]=e[c]-(n[l]/2-r[l]/2);break;case Bs:e[c]=e[c]+(n[l]/2-r[l]/2)}}return e}function Pu(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,u=void 0===s?"clippingParents":s,c=n.rootBoundary,l=void 0===c?Us:c,d=n.elementContext,f=void 0===d?js:d,h=n.altBoundary,p=void 0!==h&&h,v=n.padding,m=void 0===v?0:v,g=pu("number"!=typeof m?m:vu(m,Fs)),y=f===js?"reference":js,b=t.rects.popper,E=t.elements[p?y:f],_=Du(Xs(E)?E:E.contextElement||uu(t.elements.popper),u,l,o),T=ru(t.elements.reference),S=Nu({reference:T,element:b,placement:i}),I=Lu(Object.assign({},b,S)),A=f===js?I: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(f===js&&w){var x=w[i];Object.keys(C).forEach(function(t){var e=[Ds,Ms].indexOf(t)>=0?1:-1,n=[Ls,Ms].indexOf(t)>=0?"y":"x";C[t]+=x[n]*e})}return C}function Fu(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?$s:u,l=gu(r),d=l?s?Vs:Vs.filter(function(t){return gu(t)===l}):Fs,f=d.filter(function(t){return c.indexOf(t)>=0});0===f.length&&(f=d);var h=f.reduce(function(e,n){return e[n]=Pu(t,{placement:n,boundary:i,rootBoundary:a,padding:o})[Ys(n)],e},{});return Object.keys(h).sort(function(t,e){return h[t]-h[e]})}var Hu={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,u=n.fallbackPlacements,c=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,m=e.options.placement,g=Ys(m),y=u||(g===m||!p?[Iu(m)]:function(t){if(Ys(t)===Ps)return[];var e=Iu(t);return[Cu(t),e,Cu(e)]}(m)),b=[m].concat(y).reduce(function(t,n){return t.concat(Ys(n)===Ps?Fu(e,{placement:n,boundary:l,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:v}):n)},[]),E=e.rects.reference,_=e.rects.popper,T=new Map,S=!0,I=b[0],A=0;A=0,k=O?"width":"height",R=Pu(e,{placement:C,boundary:l,rootBoundary:d,altBoundary:f,padding:c}),L=O?x?Ds:Ns:x?Ms:Ls;E[k]>_[k]&&(L=Iu(L));var M=Iu(L),D=[];if(a&&D.push(R[w]<=0),s&&D.push(R[L]<=0,R[M]<=0),D.every(function(t){return t})){I=C,S=!1;break}T.set(C,D)}if(S)for(var N=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 I=e,"break"},P=p?3:1;P>0;P--){if("break"===N(P))break}e.placement!==I&&(e.modifiersData[r]._skip=!0,e.placement=I,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Bu(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 Uu(t){return[Ls,Ds,Ms,Ns].some(function(e){return t[e]>=0})}var ju={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=Pu(e,{elementContext:"reference"}),s=Pu(e,{altBoundary:!0}),u=Bu(o,r),c=Bu(s,i,a),l=Uu(u),d=Uu(c);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}};var Vu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,a=void 0===i?[0,0]:i,o=$s.reduce(function(t,n){return t[n]=function(t,e,n){var r=Ys(t),i=[Ns,Ls].indexOf(r)>=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,[Ns,Ds].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,e.rects,a),t},{}),s=o[e.placement],u=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}};var $u={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Nu({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}};var zu={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,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,v=void 0===p?0:p,m=Pu(e,{boundary:u,rootBoundary:c,padding:d,altBoundary:l}),g=Ys(e.placement),y=gu(e.placement),b=!y,E=fu(g),_="x"===E?"y":"x",T=e.modifiersData.popperOffsets,S=e.rects.reference,I=e.rects.popper,A="function"==typeof v?v(Object.assign({},e.rects,{placement:e.placement})):v,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,k="y"===E?Ls:Ns,R="y"===E?Ms:Ds,L="y"===E?"height":"width",M=T[E],D=M+m[k],N=M-m[R],P=h?-I[L]/2:0,F=y===Hs?S[L]:I[L],H=y===Hs?-I[L]:-S[L],B=e.elements.arrow,U=h&&B?iu(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[k],$=j[R],z=hu(0,S[L],U[L]),W=b?S[L]/2-P-z-V-C.mainAxis:F-z-V-C.mainAxis,G=b?-S[L]/2+P+z+$+C.mainAxis:H+z+$+C.mainAxis,X=e.elements.arrow&&du(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=M+G-q,Y=hu(h?Js(D,M+W-q-K):D,M,h?Qs(N,Z):N);T[E]=Y,x[E]=Y-M}if(s){var Q,J="x"===E?Ls:Ns,tt="x"===E?Ms:Ds,et=T[_],nt="y"===_?"height":"width",rt=et+m[J],it=et-m[tt],at=-1!==[Ls,Ns].indexOf(g),ot=null!=(Q=null==w?void 0:w[_])?Q:0,st=at?rt:et-S[nt]-I[nt]-ot+C.altAxis,ut=at?et+S[nt]+I[nt]-ot-C.altAxis:it,ct=h&&at?function(t,e,n){var r=hu(t,e,n);return r>n?n:r}(st,et,ut):hu(h?st:rt,et,h?ut:it);T[_]=ct,x[_]=ct-et}e.modifiersData[r]=x}},requiresIfExists:["offset"]};function Wu(t,e,n){void 0===n&&(n=!1);var r,i=Ks(e),a=Ks(e)&&function(t){var e=t.getBoundingClientRect(),n=tu(e.width)/t.offsetWidth||1,r=tu(e.height)/t.offsetHeight||1;return 1!==n||1!==r}(e),o=uu(e),s=ru(t,a,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==Ws(e)||Ou(o))&&(u=(r=e)!==Gs(r)&&Ks(r)?function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(r):wu(r)),Ks(e)?((c=ru(e,!0)).x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=xu(o))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function Gu(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 Xu={placement:"bottom",modifiers:[],strategy:"absolute"};function Ku(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:" | ";return t.map(function(t){return"string"==typeof t?"'".concat(t,"'"):t}).join(e)},t.jsonStringifyReplacer=function(t,e){return"bigint"==typeof e?e.toString():e}}(sc||(sc={})),function(t){t.mergeShapes=function(t,e){return r(r({},t),e)}}(uc||(uc={}));var gc=sc.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),yc=function(t){switch(S(t)){case"undefined":return gc.undefined;case"string":return gc.string;case"number":return Number.isNaN(t)?gc.nan:gc.number;case"boolean":return gc.boolean;case"function":return gc.function;case"bigint":return gc.bigint;case"symbol":return gc.symbol;case"object":return Array.isArray(t)?gc.array:null===t?gc.null:t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch?gc.promise:"undefined"!=typeof Map&&t instanceof Map?gc.map:"undefined"!=typeof Set&&t instanceof Set?gc.set:"undefined"!=typeof Date&&t instanceof Date?gc.date:gc.object;default:return gc.unknown}},bc=sc.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"]),Ec=function(t){function e(t){var n;C(this,e),(n=w(this,e)).issues=[],n.addIssue=function(t){n.issues=[].concat(y(n.issues),[t])},n.addIssues=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.issues=[].concat(y(n.issues),y(t))};var r=(this instanceof e?this.constructor:void 0).prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r,n.name="ZodError",n.issues=t,n}return x(e,t),A(e,[{key:"errors",get:function(){return this.issues}},{key:"format",value:function(t){var e=t||function(t){return t.message},n={_errors:[]},r=function(t){var i,a=E(t.issues);try{for(a.s();!(i=a.n()).done;){var o=i.value;if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(e(o));else for(var s=n,u=0;u0&&void 0!==arguments[0]?arguments[0]:function(t){return t.message},n={},r=[],i=E(this.issues);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.path.length>0){var o=a.path[0];n[o]=n[o]||[],n[o].push(e(a))}else r.push(e(a))}}catch(s){i.e(s)}finally{i.f()}return{formErrors:r,fieldErrors:n}}},{key:"formErrors",get:function(){return this.flatten()}}],[{key:"assert",value:function(t){if(!(t instanceof e))throw new Error("Not a ZodError: ".concat(t))}}])}(O(Error));Ec.create=function(t){return new Ec(t)};var _c=function(t,e){var n;switch(t.code){case bc.invalid_type:n=t.received===gc.undefined?"Required":"Expected ".concat(t.expected,", received ").concat(t.received);break;case bc.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(t.expected,sc.jsonStringifyReplacer));break;case bc.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(sc.joinValues(t.keys,", "));break;case bc.invalid_union:n="Invalid input";break;case bc.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(sc.joinValues(t.options));break;case bc.invalid_enum_value:n="Invalid enum value. Expected ".concat(sc.joinValues(t.options),", received '").concat(t.received,"'");break;case bc.invalid_arguments:n="Invalid function arguments";break;case bc.invalid_return_type:n="Invalid function return type";break;case bc.invalid_date:n="Invalid date";break;case bc.invalid_string:"object"===S(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,'"'):sc.assertNever(t.validation):n="regex"!==t.validation?"Invalid ".concat(t.validation):"Invalid";break;case bc.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 bc.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 bc.custom:n="Invalid input";break;case bc.invalid_intersection_types:n="Intersection results could not be merged";break;case bc.not_multiple_of:n="Number must be a multiple of ".concat(t.multipleOf);break;case bc.not_finite:n="Number must be finite";break;default:n=e.defaultError,sc.assertNever(t)}return{message:n}},Tc=_c;function Sc(t,e){var n=Tc,i=function(t){var e=t.data,n=t.path,i=t.errorMaps,a=t.issueData,o=[].concat(y(n),y(a.path||[])),s=r(r({},a),{},{path:o});if(void 0!==a.message)return r(r({},a),{},{path:o,message:a.message});var u,c="",l=E(i.filter(function(t){return!!t}).slice().reverse());try{for(l.s();!(u=l.n()).done;)c=(0,u.value)(s,{data:e,defaultError:c}).message}catch(d){l.e(d)}finally{l.f()}return r(r({},a),{},{path:o,message:c})}({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===_c?void 0:_c].filter(function(t){return!!t})});t.common.issues.push(i)}var Ic,Ac=function(){function t(){C(this,t),this.value="valid"}return A(t,[{key:"dirty",value:function(){"valid"===this.value&&(this.value="dirty")}},{key:"abort",value:function(){"aborted"!==this.value&&(this.value="aborted")}}],[{key:"mergeArray",value:function(t,e){var n,r=[],i=E(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("aborted"===a.status)return Cc;"dirty"===a.status&&t.dirty(),r.push(a.value)}}catch(o){i.e(o)}finally{i.f()}return{status:t.value,value:r}}},{key:"mergeObjectAsync",value:(e=u(i().m(function e(n,r){var a,o,s,u,c,l,d;return i().w(function(e){for(;;)switch(e.p=e.n){case 0:a=[],o=E(r),e.p=1,o.s();case 2:if((s=o.n()).done){e.n=6;break}return u=s.value,e.n=3,u.key;case 3:return c=e.v,e.n=4,u.value;case 4:l=e.v,a.push({key:c,value:l});case 5:e.n=2;break;case 6:e.n=8;break;case 7:e.p=7,d=e.v,o.e(d);case 8:return e.p=8,o.f(),e.f(8);case 9:return e.a(2,t.mergeObjectSync(n,a))}},e,null,[[1,7,8,9]])})),function(t,n){return e.apply(this,arguments)})},{key:"mergeObjectSync",value:function(t,e){var n,r={},i=E(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.key,s=a.value;if("aborted"===o.status)return Cc;if("aborted"===s.status)return Cc;"dirty"===o.status&&t.dirty(),"dirty"===s.status&&t.dirty(),"__proto__"===o.value||void 0===s.value&&!a.alwaysSet||(r[o.value]=s.value)}}catch(u){i.e(u)}finally{i.f()}return{status:t.value,value:r}}}]);var e}(),Cc=Object.freeze({status:"aborted"}),wc=function(t){return{status:"dirty",value:t}},xc=function(t){return{status:"valid",value:t}},Oc=function(t){return"aborted"===t.status},kc=function(t){return"dirty"===t.status},Rc=function(t){return"valid"===t.status},Lc=function(t){return"undefined"!=typeof Promise&&t instanceof Promise};!function(t){t.errToObj=function(t){return"string"==typeof t?{message:t}:t||{}},t.toString=function(t){return"string"==typeof t?t:null==t?void 0:t.message}}(Ic||(Ic={}));var Mc=function(){return A(function t(e,n,r,i){C(this,t),this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=i},[{key:"path",get:function(){var t,e;this._cachedPath.length||(Array.isArray(this._key)?(t=this._cachedPath).push.apply(t,y(this._path).concat(y(this._key))):(e=this._cachedPath).push.apply(e,y(this._path).concat([this._key])));return this._cachedPath}}])}(),Dc=function(t,e){if(Rc(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;var e=new Ec(t.common.issues);return this._error=e,this._error}}};function Nc(t){if(!t)return{};var e=t.errorMap,n=t.invalid_type_error,r=t.required_error,i=t.description;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:function(e,i){var a,o,s=t.message;return"invalid_enum_value"===e.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(o=null!=s?s:r)&&void 0!==o?o:i.defaultError}:"invalid_type"!==e.code?{message:i.defaultError}:{message:null!==(a=null!=s?s:n)&&void 0!==a?a:i.defaultError}},description:i}}var Pc,Fc=function(){return A(function t(e){var n=this;C(this,t),this.spa=this.safeParseAsync,this._def=e,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:function(t){return n["~validate"](t)}}},[{key:"description",get:function(){return this._def.description}},{key:"_getType",value:function(t){return yc(t.data)}},{key:"_getOrReturnCtx",value:function(t,e){return e||{common:t.parent.common,data:t.data,parsedType:yc(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}},{key:"_processInputParams",value:function(t){return{status:new Ac,ctx:{common:t.parent.common,data:t.data,parsedType:yc(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}},{key:"_parseSync",value:function(t){var e=this._parse(t);if(Lc(e))throw new Error("Synchronous parse encountered promise.");return e}},{key:"_parseAsync",value:function(t){var e=this._parse(t);return Promise.resolve(e)}},{key:"parse",value:function(t,e){var n=this.safeParse(t,e);if(n.success)return n.data;throw n.error}},{key:"safeParse",value:function(t,e){var n,r={common:{issues:[],async:null!==(n=null==e?void 0:e.async)&&void 0!==n&&n,contextualErrorMap:null==e?void 0:e.errorMap},path:(null==e?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yc(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Dc(r,i)}},{key:"~validate",value:function(t){var e={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yc(t)};if(!this["~standard"].async)try{var n=this._parseSync({data:t,path:[],parent:e});return Rc(n)?{value:n.value}:{issues:e.common.issues}}catch(i){var r;null!=i&&null!==(r=i.message)&&void 0!==r&&null!==(r=r.toLowerCase())&&void 0!==r&&r.includes("encountered")&&(this["~standard"].async=!0),e.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:e}).then(function(t){return Rc(t)?{value:t.value}:{issues:e.common.issues}})}},{key:"parseAsync",value:(e=u(i().m(function t(e,n){var r;return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,this.safeParseAsync(e,n);case 1:if(!(r=t.v).success){t.n=2;break}return t.a(2,r.data);case 2:throw r.error;case 3:return t.a(2)}},t,this)})),function(t,n){return e.apply(this,arguments)})},{key:"safeParseAsync",value:(t=u(i().m(function t(e,n){var r,a,o;return i().w(function(t){for(;;)switch(t.n){case 0:return r={common:{issues:[],contextualErrorMap:null==n?void 0:n.errorMap,async:!0},path:(null==n?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:yc(e)},a=this._parse({data:e,path:r.path,parent:r}),t.n=1,Lc(a)?a:Promise.resolve(a);case 1:return o=t.v,t.a(2,Dc(r,o))}},t,this)})),function(e,n){return t.apply(this,arguments)})},{key:"refine",value:function(t,e){return this._refinement(function(n,i){var a=t(n),o=function(){return i.addIssue(r({code:bc.custom},function(t){return"string"==typeof e||void 0===e?{message:e}:"function"==typeof e?e(t):e}(n)))};return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(t){return!!t||(o(),!1)}):!!a||(o(),!1)})}},{key:"refinement",value:function(t,e){return this._refinement(function(n,r){return!!t(n)||(r.addIssue("function"==typeof e?e(n,r):e),!1)})}},{key:"_refinement",value:function(t){return new Dl({schema:this,typeName:Ul.ZodEffects,effect:{type:"refinement",refinement:t}})}},{key:"superRefine",value:function(t){return this._refinement(t)}},{key:"optional",value:function(){return Nl.create(this,this._def)}},{key:"nullable",value:function(){return Pl.create(this,this._def)}},{key:"nullish",value:function(){return this.nullable().optional()}},{key:"array",value:function(){return bl.create(this)}},{key:"promise",value:function(){return Ml.create(this,this._def)}},{key:"or",value:function(t){return Tl.create([this,t],this._def)}},{key:"and",value:function(t){return Il.create(this,t,this._def)}},{key:"transform",value:function(t){return new Dl(r(r({},Nc(this._def)),{},{schema:this,typeName:Ul.ZodEffects,effect:{type:"transform",transform:t}}))}},{key:"default",value:function(t){var e="function"==typeof t?t:function(){return t};return new Fl(r(r({},Nc(this._def)),{},{innerType:this,defaultValue:e,typeName:Ul.ZodDefault}))}},{key:"brand",value:function(){return new jl(r({typeName:Ul.ZodBranded,type:this},Nc(this._def)))}},{key:"catch",value:function(t){var e="function"==typeof t?t:function(){return t};return new Hl(r(r({},Nc(this._def)),{},{innerType:this,catchValue:e,typeName:Ul.ZodCatch}))}},{key:"describe",value:function(t){return new(0,this.constructor)(r(r({},this._def),{},{description:t}))}},{key:"pipe",value:function(t){return Vl.create(this,t)}},{key:"readonly",value:function(){return $l.create(this)}},{key:"isOptional",value:function(){return this.safeParse(void 0).success}},{key:"isNullable",value:function(){return this.safeParse(null).success}}]);var t,e}(),Hc=/^c[^\s-]{8,}$/i,Bc=/^[0-9a-z]+$/,Uc=/^[0-9A-HJKMNP-TV-Z]{26}$/i,jc=/^[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,Vc=/^[a-z0-9_-]{21}$/i,$c=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,zc=/^[-+]?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,Gc=/^(?:(?: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])$/,Xc=/^(?:(?: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])$/,Kc=/^(([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]))$/,qc=/^(([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])$/,Zc=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Yc=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Qc="((\\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])))",Jc=new RegExp("^".concat(Qc,"$"));function tl(t){var e="[0-5]\\d";t.precision?e="".concat(e,"\\.\\d{").concat(t.precision,"}"):null==t.precision&&(e="".concat(e,"(\\.\\d+)?"));var n=t.precision?"+":"?";return"([01]\\d|2[0-3]):[0-5]\\d(:".concat(e,")").concat(n)}function el(t){return new RegExp("^".concat(tl(t),"$"))}function nl(t){var e="".concat(Qc,"T").concat(tl(t)),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 rl(t,e){return!("v4"!==e&&e||!Gc.test(t))||!("v6"!==e&&e||!Kc.test(t))}function il(t,e){if(!$c.test(t))return!1;try{var n=c(t.split("."),1)[0];if(!n)return!1;var r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return"object"===S(i)&&null!==i&&((!("typ"in i)||"JWT"===(null==i?void 0:i.typ))&&(!!i.alg&&(!e||i.alg===e)))}catch(a){return!1}}function al(t,e){return!("v4"!==e&&e||!Xc.test(t))||!("v6"!==e&&e||!qc.test(t))}var ol=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==gc.string){var e=this._getOrReturnCtx(t);return Sc(e,{code:bc.invalid_type,expected:gc.string,received:e.parsedType}),Cc}var n,r=new Ac,i=void 0,a=E(this._def.checks);try{for(a.s();!(n=a.n()).done;){var o=n.value;if("min"===o.kind)t.data.lengtho.value&&(Sc(i=this._getOrReturnCtx(t,i),{code:bc.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if("length"===o.kind){var s=t.data.length>o.value,u=t.data.lengthe)&&(e=r.value)}}catch(i){n.e(i)}finally{n.f()}return e}},{key:"maxLength",get:function(){var t,e=null,n=E(this._def.checks);try{for(n.s();!(t=n.n()).done;){var r=t.value;"max"===r.kind&&(null===e||r.valuer?n:r;return Number.parseInt(t.toFixed(i).replace(".",""))%Number.parseInt(e.toFixed(i).replace(".",""))/Math.pow(10,i)}ol.create=function(t){var e;return new ol(r({checks:[],typeName:Ul.ZodString,coerce:null!==(e=null==t?void 0:t.coerce)&&void 0!==e&&e},Nc(t)))};var ul=function(t){function e(){var t;return C(this,e),(t=w(this,e,arguments)).min=t.gte,t.max=t.lte,t.step=t.multipleOf,t}return x(e,t),A(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==gc.number){var e=this._getOrReturnCtx(t);return Sc(e,{code:bc.invalid_type,expected:gc.number,received:e.parsedType}),Cc}var n,r=void 0,i=new Ac,a=E(this._def.checks);try{for(a.s();!(n=a.n()).done;){var o=n.value;if("int"===o.kind)sc.isInteger(t.data)||(Sc(r=this._getOrReturnCtx(t,r),{code:bc.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty());else if("min"===o.kind){(o.inclusive?t.datao.value:t.data>=o.value)&&(Sc(r=this._getOrReturnCtx(t,r),{code:bc.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty())}else"multipleOf"===o.kind?0!==sl(t.data,o.value)&&(Sc(r=this._getOrReturnCtx(t,r),{code:bc.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):"finite"===o.kind?Number.isFinite(t.data)||(Sc(r=this._getOrReturnCtx(t,r),{code:bc.not_finite,message:o.message}),i.dirty()):sc.assertNever(o)}}catch(s){a.e(s)}finally{a.f()}return{status:i.value,value:t.data}}},{key:"gte",value:function(t,e){return this.setLimit("min",t,!0,Ic.toString(e))}},{key:"gt",value:function(t,e){return this.setLimit("min",t,!1,Ic.toString(e))}},{key:"lte",value:function(t,e){return this.setLimit("max",t,!0,Ic.toString(e))}},{key:"lt",value:function(t,e){return this.setLimit("max",t,!1,Ic.toString(e))}},{key:"setLimit",value:function(t,n,i,a){return new e(r(r({},this._def),{},{checks:[].concat(y(this._def.checks),[{kind:t,value:n,inclusive:i,message:Ic.toString(a)}])}))}},{key:"_addCheck",value:function(t){return new e(r(r({},this._def),{},{checks:[].concat(y(this._def.checks),[t])}))}},{key:"int",value:function(t){return this._addCheck({kind:"int",message:Ic.toString(t)})}},{key:"positive",value:function(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ic.toString(t)})}},{key:"negative",value:function(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ic.toString(t)})}},{key:"nonpositive",value:function(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ic.toString(t)})}},{key:"nonnegative",value:function(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ic.toString(t)})}},{key:"multipleOf",value:function(t,e){return this._addCheck({kind:"multipleOf",value:t,message:Ic.toString(e)})}},{key:"finite",value:function(t){return this._addCheck({kind:"finite",message:Ic.toString(t)})}},{key:"safe",value:function(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ic.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ic.toString(t)})}},{key:"minValue",get:function(){var t,e=null,n=E(this._def.checks);try{for(n.s();!(t=n.n()).done;){var r=t.value;"min"===r.kind&&(null===e||r.value>e)&&(e=r.value)}}catch(i){n.e(i)}finally{n.f()}return e}},{key:"maxValue",get:function(){var t,e=null,n=E(this._def.checks);try{for(n.s();!(t=n.n()).done;){var r=t.value;"max"===r.kind&&(null===e||r.valuen)&&(n=i.value):"max"===i.kind&&(null===e||i.valuea.value:t.data>=a.value)&&(Sc(n=this._getOrReturnCtx(t,n),{code:bc.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty())}else"multipleOf"===a.kind?t.data%a.value!==BigInt(0)&&(Sc(n=this._getOrReturnCtx(t,n),{code:bc.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):sc.assertNever(a)}}catch(s){i.e(s)}finally{i.f()}return{status:r.value,value:t.data}}},{key:"_getInvalidInput",value:function(t){var e=this._getOrReturnCtx(t);return Sc(e,{code:bc.invalid_type,expected:gc.bigint,received:e.parsedType}),Cc}},{key:"gte",value:function(t,e){return this.setLimit("min",t,!0,Ic.toString(e))}},{key:"gt",value:function(t,e){return this.setLimit("min",t,!1,Ic.toString(e))}},{key:"lte",value:function(t,e){return this.setLimit("max",t,!0,Ic.toString(e))}},{key:"lt",value:function(t,e){return this.setLimit("max",t,!1,Ic.toString(e))}},{key:"setLimit",value:function(t,n,i,a){return new e(r(r({},this._def),{},{checks:[].concat(y(this._def.checks),[{kind:t,value:n,inclusive:i,message:Ic.toString(a)}])}))}},{key:"_addCheck",value:function(t){return new e(r(r({},this._def),{},{checks:[].concat(y(this._def.checks),[t])}))}},{key:"positive",value:function(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ic.toString(t)})}},{key:"negative",value:function(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ic.toString(t)})}},{key:"nonpositive",value:function(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ic.toString(t)})}},{key:"nonnegative",value:function(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ic.toString(t)})}},{key:"multipleOf",value:function(t,e){return this._addCheck({kind:"multipleOf",value:t,message:Ic.toString(e)})}},{key:"minValue",get:function(){var t,e=null,n=E(this._def.checks);try{for(n.s();!(t=n.n()).done;){var r=t.value;"min"===r.kind&&(null===e||r.value>e)&&(e=r.value)}}catch(i){n.e(i)}finally{n.f()}return e}},{key:"maxValue",get:function(){var t,e=null,n=E(this._def.checks);try{for(n.s();!(t=n.n()).done;){var r=t.value;"max"===r.kind&&(null===e||r.valueo.value&&(Sc(i=this._getOrReturnCtx(t,i),{code:bc.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):sc.assertNever(o)}}catch(s){a.e(s)}finally{a.f()}return{status:r.value,value:new Date(t.data.getTime())}}},{key:"_addCheck",value:function(t){return new e(r(r({},this._def),{},{checks:[].concat(y(this._def.checks),[t])}))}},{key:"min",value:function(t,e){return this._addCheck({kind:"min",value:t.getTime(),message:Ic.toString(e)})}},{key:"max",value:function(t,e){return this._addCheck({kind:"max",value:t.getTime(),message:Ic.toString(e)})}},{key:"minDate",get:function(){var t,e=null,n=E(this._def.checks);try{for(n.s();!(t=n.n()).done;){var r=t.value;"min"===r.kind&&(null===e||r.value>e)&&(e=r.value)}}catch(i){n.e(i)}finally{n.f()}return null!=e?new Date(e):null}},{key:"maxDate",get:function(){var t,e=null,n=E(this._def.checks);try{for(n.s();!(t=n.n()).done;){var r=t.value;"max"===r.kind&&(null===e||r.valuei.exactLength.value,o=n.data.lengthi.maxLength.value&&(Sc(n,{code:bc.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all(y(n.data).map(function(t,e){return i.type._parseAsync(new Mc(n,t,n.path,e))})).then(function(t){return Ac.mergeArray(r,t)});var s=y(n.data).map(function(t,e){return i.type._parseSync(new Mc(n,t,n.path,e))});return Ac.mergeArray(r,s)}},{key:"element",get:function(){return this._def.type}},{key:"min",value:function(t,n){return new e(r(r({},this._def),{},{minLength:{value:t,message:Ic.toString(n)}}))}},{key:"max",value:function(t,n){return new e(r(r({},this._def),{},{maxLength:{value:t,message:Ic.toString(n)}}))}},{key:"length",value:function(t,n){return new e(r(r({},this._def),{},{exactLength:{value:t,message:Ic.toString(n)}}))}},{key:"nonempty",value:function(t){return this.min(1,t)}}])}(Fc);function El(t){if(t instanceof _l){var e={};for(var n in t.shape){var i=t.shape[n];e[n]=Nl.create(El(i))}return new _l(r(r({},t._def),{},{shape:function(){return e}}))}return t instanceof bl?new bl(r(r({},t._def),{},{type:El(t.element)})):t instanceof Nl?Nl.create(El(t.unwrap())):t instanceof Pl?Pl.create(El(t.unwrap())):t instanceof Al?Al.create(t.items.map(function(t){return El(t)})):t}bl.create=function(t,e){return new bl(r({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Ul.ZodArray},Nc(e)))};var _l=function(t){function e(){var t;return C(this,e),(t=w(this,e,arguments))._cached=null,t.nonstrict=t.passthrough,t.augment=t.extend,t}return x(e,t),A(e,[{key:"_getCached",value:function(){if(null!==this._cached)return this._cached;var t=this._def.shape(),e=sc.objectKeys(t);return this._cached={shape:t,keys:e},this._cached}},{key:"_parse",value:function(t){if(this._getType(t)!==gc.object){var e=this._getOrReturnCtx(t);return Sc(e,{code:bc.invalid_type,expected:gc.object,received:e.parsedType}),Cc}var n=this._processInputParams(t),r=n.status,a=n.ctx,o=this._getCached(),s=o.shape,c=o.keys,l=[];if(!(this._def.catchall instanceof gl&&"strip"===this._def.unknownKeys))for(var d in a.data)c.includes(d)||l.push(d);var f,h=[],p=E(c);try{for(p.s();!(f=p.n()).done;){var v=f.value,m=s[v],g=a.data[v];h.push({key:{status:"valid",value:v},value:m._parse(new Mc(a,g,a.path,v)),alwaysSet:v in a.data})}}catch(x){p.e(x)}finally{p.f()}if(this._def.catchall instanceof gl){var y=this._def.unknownKeys;if("passthrough"===y){var b,_=E(l);try{for(_.s();!(b=_.n()).done;){var T=b.value;h.push({key:{status:"valid",value:T},value:{status:"valid",value:a.data[T]}})}}catch(x){_.e(x)}finally{_.f()}}else if("strict"===y)l.length>0&&(Sc(a,{code:bc.unrecognized_keys,keys:l}),r.dirty());else if("strip"!==y)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{var S,I=this._def.catchall,A=E(l);try{for(A.s();!(S=A.n()).done;){var C=S.value,w=a.data[C];h.push({key:{status:"valid",value:C},value:I._parse(new Mc(a,w,a.path,C)),alwaysSet:C in a.data})}}catch(x){A.e(x)}finally{A.f()}}return a.common.async?Promise.resolve().then(u(i().m(function t(){var e,n,r,a,o,s,u;return i().w(function(t){for(;;)switch(t.p=t.n){case 0:e=[],n=E(h),t.p=1,n.s();case 2:if((r=n.n()).done){t.n=6;break}return a=r.value,t.n=3,a.key;case 3:return o=t.v,t.n=4,a.value;case 4:s=t.v,e.push({key:o,value:s,alwaysSet:a.alwaysSet});case 5:t.n=2;break;case 6:t.n=8;break;case 7:t.p=7,u=t.v,n.e(u);case 8:return t.p=8,n.f(),t.f(8);case 9:return t.a(2,e)}},t,null,[[1,7,8,9]])}))).then(function(t){return Ac.mergeObjectSync(r,t)}):Ac.mergeObjectSync(r,h)}},{key:"shape",get:function(){return this._def.shape()}},{key:"strict",value:function(t){var n=this;return Ic.errToObj,new e(r(r({},this._def),{},{unknownKeys:"strict"},void 0!==t?{errorMap:function(e,r){var i,a,o,s,u=null!==(i=null===(a=(o=n._def).errorMap)||void 0===a?void 0:a.call(o,e,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===e.code?{message:null!==(s=Ic.errToObj(t).message)&&void 0!==s?s:u}:{message:u}}}:{}))}},{key:"strip",value:function(){return new e(r(r({},this._def),{},{unknownKeys:"strip"}))}},{key:"passthrough",value:function(){return new e(r(r({},this._def),{},{unknownKeys:"passthrough"}))}},{key:"extend",value:function(t){var n=this;return new e(r(r({},this._def),{},{shape:function(){return r(r({},n._def.shape()),t)}}))}},{key:"merge",value:function(t){var n=this;return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:function(){return r(r({},n._def.shape()),t._def.shape())},typeName:Ul.ZodObject})}},{key:"setKey",value:function(t,e){return this.augment(D({},t,e))}},{key:"catchall",value:function(t){return new e(r(r({},this._def),{},{catchall:t}))}},{key:"pick",value:function(t){var n,i={},a=E(sc.objectKeys(t));try{for(a.s();!(n=a.n()).done;){var o=n.value;t[o]&&this.shape[o]&&(i[o]=this.shape[o])}}catch(s){a.e(s)}finally{a.f()}return new e(r(r({},this._def),{},{shape:function(){return i}}))}},{key:"omit",value:function(t){var n,i={},a=E(sc.objectKeys(this.shape));try{for(a.s();!(n=a.n()).done;){var o=n.value;t[o]||(i[o]=this.shape[o])}}catch(s){a.e(s)}finally{a.f()}return new e(r(r({},this._def),{},{shape:function(){return i}}))}},{key:"deepPartial",value:function(){return El(this)}},{key:"partial",value:function(t){var n,i={},a=E(sc.objectKeys(this.shape));try{for(a.s();!(n=a.n()).done;){var o=n.value,s=this.shape[o];t&&!t[o]?i[o]=s:i[o]=s.optional()}}catch(u){a.e(u)}finally{a.f()}return new e(r(r({},this._def),{},{shape:function(){return i}}))}},{key:"required",value:function(t){var n,i={},a=E(sc.objectKeys(this.shape));try{for(a.s();!(n=a.n()).done;){var o=n.value;if(t&&!t[o])i[o]=this.shape[o];else{for(var s=this.shape[o];s instanceof Nl;)s=s._def.innerType;i[o]=s}}}catch(u){a.e(u)}finally{a.f()}return new e(r(r({},this._def),{},{shape:function(){return i}}))}},{key:"keyof",value:function(){return kl(sc.objectKeys(this.shape))}}])}(Fc);_l.create=function(t,e){return new _l(r({shape:function(){return t},unknownKeys:"strip",catchall:gl.create(),typeName:Ul.ZodObject},Nc(e)))},_l.strictCreate=function(t,e){return new _l(r({shape:function(){return t},unknownKeys:"strict",catchall:gl.create(),typeName:Ul.ZodObject},Nc(e)))},_l.lazycreate=function(t,e){return new _l(r({shape:t,unknownKeys:"strip",catchall:gl.create(),typeName:Ul.ZodObject},Nc(e)))};var Tl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){var e=this._processInputParams(t).ctx,n=this._def.options;if(e.common.async)return Promise.all(n.map(function(){var t=u(i().m(function t(n){var a,o,s;return i().w(function(t){for(;;)switch(t.n){case 0:return a=r(r({},e),{},{common:r(r({},e.common),{},{issues:[]}),parent:null}),t.n=1,n._parseAsync({data:e.data,path:e.path,parent:a});case 1:return o=t.v,s=a,t.a(2,{result:o,ctx:s})}},t)}));return function(e){return t.apply(this,arguments)}}())).then(function(t){var n,r=E(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if("valid"===i.result.status)return i.result}}catch(l){r.e(l)}finally{r.f()}var a,o=E(t);try{for(o.s();!(a=o.n()).done;){var s,u=a.value;if("dirty"===u.result.status)return(s=e.common.issues).push.apply(s,y(u.ctx.common.issues)),u.result}}catch(l){o.e(l)}finally{o.f()}var c=t.map(function(t){return new Ec(t.ctx.common.issues)});return Sc(e,{code:bc.invalid_union,unionErrors:c}),Cc});var a,o,s=void 0,c=[],l=E(n);try{for(l.s();!(a=l.n()).done;){var d=a.value,f=r(r({},e),{},{common:r(r({},e.common),{},{issues:[]}),parent:null}),h=d._parseSync({data:e.data,path:e.path,parent:f});if("valid"===h.status)return h;"dirty"!==h.status||s||(s={result:h,ctx:f}),f.common.issues.length&&c.push(f.common.issues)}}catch(v){l.e(v)}finally{l.f()}if(s)return(o=e.common.issues).push.apply(o,y(s.ctx.common.issues)),s.result;var p=c.map(function(t){return new Ec(t)});return Sc(e,{code:bc.invalid_union,unionErrors:p}),Cc}},{key:"options",get:function(){return this._def.options}}])}(Fc);function Sl(t,e){var n=yc(t),i=yc(e);if(t===e)return{valid:!0,data:t};if(n===gc.object&&i===gc.object){var a,o=sc.objectKeys(e),s=sc.objectKeys(t).filter(function(t){return-1!==o.indexOf(t)}),u=r(r({},t),e),c=E(s);try{for(c.s();!(a=c.n()).done;){var l=a.value,d=Sl(t[l],e[l]);if(!d.valid)return{valid:!1};u[l]=d.data}}catch(v){c.e(v)}finally{c.f()}return{valid:!0,data:u}}if(n===gc.array&&i===gc.array){if(t.length!==e.length)return{valid:!1};for(var f=[],h=0;hthis._def.items.length&&(Sc(i,{code:bc.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());var a=y(i.data).map(function(t,n){var r=e._def.items[n]||e._def.rest;return r?r._parse(new Mc(i,t,i.path,n)):null}).filter(function(t){return!!t});return i.common.async?Promise.all(a).then(function(t){return Ac.mergeArray(r,t)}):Ac.mergeArray(r,a)}},{key:"items",get:function(){return this._def.items}},{key:"rest",value:function(t){return new e(r(r({},this._def),{},{rest:t}))}}])}(Fc);Al.create=function(t,e){if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Al(r({items:t,typeName:Ul.ZodTuple,rest:null},Nc(e)))};var Cl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"keySchema",get:function(){return this._def.keyType}},{key:"valueSchema",get:function(){return this._def.valueType}},{key:"_parse",value:function(t){var e=this._processInputParams(t),n=e.status,r=e.ctx;if(r.parsedType!==gc.map)return Sc(r,{code:bc.invalid_type,expected:gc.map,received:r.parsedType}),Cc;var a=this._def.keyType,o=this._def.valueType,s=y(r.data.entries()).map(function(t,e){var n=c(t,2),i=n[0],s=n[1];return{key:a._parse(new Mc(r,i,r.path,[e,"key"])),value:o._parse(new Mc(r,s,r.path,[e,"value"]))}});if(r.common.async){var l=new Map;return Promise.resolve().then(u(i().m(function t(){var e,r,a,o,u,c;return i().w(function(t){for(;;)switch(t.p=t.n){case 0:e=E(s),t.p=1,e.s();case 2:if((r=e.n()).done){t.n=7;break}return a=r.value,t.n=3,a.key;case 3:return o=t.v,t.n=4,a.value;case 4:if(u=t.v,"aborted"!==o.status&&"aborted"!==u.status){t.n=5;break}return t.a(2,Cc);case 5:"dirty"!==o.status&&"dirty"!==u.status||n.dirty(),l.set(o.value,u.value);case 6:t.n=2;break;case 7:t.n=9;break;case 8:t.p=8,c=t.v,e.e(c);case 9:return t.p=9,e.f(),t.f(9);case 10:return t.a(2,{status:n.value,value:l})}},t,null,[[1,8,9,10]])})))}var d,f=new Map,h=E(s);try{for(h.s();!(d=h.n()).done;){var p=d.value,v=p.key,m=p.value;if("aborted"===v.status||"aborted"===m.status)return Cc;"dirty"!==v.status&&"dirty"!==m.status||n.dirty(),f.set(v.value,m.value)}}catch(g){h.e(g)}finally{h.f()}return{status:n.value,value:f}}}])}(Fc);Cl.create=function(t,e,n){return new Cl(r({valueType:e,keyType:t,typeName:Ul.ZodMap},Nc(n)))};var wl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){var e=this._processInputParams(t),n=e.status,r=e.ctx;if(r.parsedType!==gc.set)return Sc(r,{code:bc.invalid_type,expected:gc.set,received:r.parsedType}),Cc;var i=this._def;null!==i.minSize&&r.data.sizei.maxSize.value&&(Sc(r,{code:bc.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());var a=this._def.valueType;function o(t){var e,r=new Set,i=E(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;if("aborted"===a.status)return Cc;"dirty"===a.status&&n.dirty(),r.add(a.value)}}catch(o){i.e(o)}finally{i.f()}return{status:n.value,value:r}}var s=y(r.data.values()).map(function(t,e){return a._parse(new Mc(r,t,r.path,e))});return r.common.async?Promise.all(s).then(function(t){return o(t)}):o(s)}},{key:"min",value:function(t,n){return new e(r(r({},this._def),{},{minSize:{value:t,message:Ic.toString(n)}}))}},{key:"max",value:function(t,n){return new e(r(r({},this._def),{},{maxSize:{value:t,message:Ic.toString(n)}}))}},{key:"size",value:function(t,e){return this.min(t,e).max(t,e)}},{key:"nonempty",value:function(t){return this.min(1,t)}}])}(Fc);wl.create=function(t,e){return new wl(r({valueType:t,minSize:null,maxSize:null,typeName:Ul.ZodSet},Nc(e)))};var xl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"schema",get:function(){return this._def.getter()}},{key:"_parse",value:function(t){var e=this._processInputParams(t).ctx;return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}])}(Fc);xl.create=function(t,e){return new xl(r({getter:t,typeName:Ul.ZodLazy},Nc(e)))};var Ol=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){if(t.data!==this._def.value){var e=this._getOrReturnCtx(t);return Sc(e,{received:e.data,code:bc.invalid_literal,expected:this._def.value}),Cc}return{status:"valid",value:t.data}}},{key:"value",get:function(){return this._def.value}}])}(Fc);function kl(t,e){return new Rl(r({values:t,typeName:Ul.ZodEnum},Nc(e)))}Ol.create=function(t,e){return new Ol(r({value:t,typeName:Ul.ZodLiteral},Nc(e)))};var Rl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){if("string"!=typeof t.data){var e=this._getOrReturnCtx(t),n=this._def.values;return Sc(e,{expected:sc.joinValues(n),received:e.parsedType,code:bc.invalid_type}),Cc}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){var r=this._getOrReturnCtx(t),i=this._def.values;return Sc(r,{received:r.data,code:bc.invalid_enum_value,options:i}),Cc}return xc(t.data)}},{key:"options",get:function(){return this._def.values}},{key:"enum",get:function(){var t,e={},n=E(this._def.values);try{for(n.s();!(t=n.n()).done;){var r=t.value;e[r]=r}}catch(i){n.e(i)}finally{n.f()}return e}},{key:"Values",get:function(){var t,e={},n=E(this._def.values);try{for(n.s();!(t=n.n()).done;){var r=t.value;e[r]=r}}catch(i){n.e(i)}finally{n.f()}return e}},{key:"Enum",get:function(){var t,e={},n=E(this._def.values);try{for(n.s();!(t=n.n()).done;){var r=t.value;e[r]=r}}catch(i){n.e(i)}finally{n.f()}return e}},{key:"extract",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return e.create(t,r(r({},this._def),n))}},{key:"exclude",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return e.create(this.options.filter(function(e){return!t.includes(e)}),r(r({},this._def),n))}}])}(Fc);Rl.create=kl;var Ll=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){var e=sc.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==gc.string&&n.parsedType!==gc.number){var r=sc.objectValues(e);return Sc(n,{expected:sc.joinValues(r),received:n.parsedType,code:bc.invalid_type}),Cc}if(this._cache||(this._cache=new Set(sc.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){var i=sc.objectValues(e);return Sc(n,{received:n.data,code:bc.invalid_enum_value,options:i}),Cc}return xc(t.data)}},{key:"enum",get:function(){return this._def.values}}])}(Fc);Ll.create=function(t,e){return new Ll(r({values:t,typeName:Ul.ZodNativeEnum},Nc(e)))};var Ml=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"unwrap",value:function(){return this._def.type}},{key:"_parse",value:function(t){var e=this,n=this._processInputParams(t).ctx;if(n.parsedType!==gc.promise&&!1===n.common.async)return Sc(n,{code:bc.invalid_type,expected:gc.promise,received:n.parsedType}),Cc;var r=n.parsedType===gc.promise?n.data:Promise.resolve(n.data);return xc(r.then(function(t){return e._def.type.parseAsync(t,{path:n.path,errorMap:n.common.contextualErrorMap})}))}}])}(Fc);Ml.create=function(t,e){return new Ml(r({type:t,typeName:Ul.ZodPromise},Nc(e)))};var Dl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"innerType",value:function(){return this._def.schema}},{key:"sourceType",value:function(){return this._def.schema._def.typeName===Ul.ZodEffects?this._def.schema.sourceType():this._def.schema}},{key:"_parse",value:function(t){var e=this,n=this._processInputParams(t),r=n.status,a=n.ctx,o=this._def.effect||null,s={addIssue:function(t){Sc(a,t),t.fatal?r.abort():r.dirty()},get path(){return a.path}};if(s.addIssue=s.addIssue.bind(s),"preprocess"===o.type){var c=o.transform(a.data,s);if(a.common.async)return Promise.resolve(c).then(function(){var t=u(i().m(function t(n){var o;return i().w(function(t){for(;;)switch(t.n){case 0:if("aborted"!==r.value){t.n=1;break}return t.a(2,Cc);case 1:return t.n=2,e._def.schema._parseAsync({data:n,path:a.path,parent:a});case 2:if("aborted"!==(o=t.v).status){t.n=3;break}return t.a(2,Cc);case 3:if("dirty"!==o.status){t.n=4;break}return t.a(2,wc(o.value));case 4:if("dirty"!==r.value){t.n=5;break}return t.a(2,wc(o.value));case 5:return t.a(2,o)}},t)}));return function(e){return t.apply(this,arguments)}}());if("aborted"===r.value)return Cc;var l=this._def.schema._parseSync({data:c,path:a.path,parent:a});return"aborted"===l.status?Cc:"dirty"===l.status||"dirty"===r.value?wc(l.value):l}if("refinement"===o.type){var d=function(t){var e=o.refinement(t,s);if(a.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===a.common.async){var f=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===f.status?Cc:("dirty"===f.status&&r.dirty(),d(f.value),{status:r.value,value:f.value})}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(function(t){return"aborted"===t.status?Cc:("dirty"===t.status&&r.dirty(),d(t.value).then(function(){return{status:r.value,value:t.value}}))})}if("transform"===o.type){if(!1===a.common.async){var h=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Rc(h))return Cc;var p=o.transform(h.value,s);if(p instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:p}}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(function(t){return Rc(t)?Promise.resolve(o.transform(t.value,s)).then(function(t){return{status:r.value,value:t}}):Cc})}sc.assertNever(o)}}])}(Fc);Dl.create=function(t,e,n){return new Dl(r({schema:t,typeName:Ul.ZodEffects,effect:e},Nc(n)))},Dl.createWithPreprocess=function(t,e,n){return new Dl(r({schema:e,effect:{type:"preprocess",transform:t},typeName:Ul.ZodEffects},Nc(n)))};var Nl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){return this._getType(t)===gc.undefined?xc(void 0):this._def.innerType._parse(t)}},{key:"unwrap",value:function(){return this._def.innerType}}])}(Fc);Nl.create=function(t,e){return new Nl(r({innerType:t,typeName:Ul.ZodOptional},Nc(e)))};var Pl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){return this._getType(t)===gc.null?xc(null):this._def.innerType._parse(t)}},{key:"unwrap",value:function(){return this._def.innerType}}])}(Fc);Pl.create=function(t,e){return new Pl(r({innerType:t,typeName:Ul.ZodNullable},Nc(e)))};var Fl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){var e=this._processInputParams(t).ctx,n=e.data;return e.parsedType===gc.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:e.path,parent:e})}},{key:"removeDefault",value:function(){return this._def.innerType}}])}(Fc);Fl.create=function(t,e){return new Fl(r({innerType:t,typeName:Ul.ZodDefault,defaultValue:"function"==typeof e.default?e.default:function(){return e.default}},Nc(e)))};var Hl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){var e=this,n=this._processInputParams(t).ctx,i=r(r({},n),{},{common:r(r({},n.common),{},{issues:[]})}),a=this._def.innerType._parse({data:i.data,path:i.path,parent:r({},i)});return Lc(a)?a.then(function(t){return{status:"valid",value:"valid"===t.status?t.value:e._def.catchValue({get error(){return new Ec(i.common.issues)},input:i.data})}}):{status:"valid",value:"valid"===a.status?a.value:this._def.catchValue({get error(){return new Ec(i.common.issues)},input:i.data})}}},{key:"removeCatch",value:function(){return this._def.innerType}}])}(Fc);Hl.create=function(t,e){return new Hl(r({innerType:t,typeName:Ul.ZodCatch,catchValue:"function"==typeof e.catch?e.catch:function(){return e.catch}},Nc(e)))};var Bl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){if(this._getType(t)!==gc.nan){var e=this._getOrReturnCtx(t);return Sc(e,{code:bc.invalid_type,expected:gc.nan,received:e.parsedType}),Cc}return{status:"valid",value:t.data}}}])}(Fc);Bl.create=function(t){return new Bl(r({typeName:Ul.ZodNaN},Nc(t)))};var Ul,jl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){var e=this._processInputParams(t).ctx,n=e.data;return this._def.type._parse({data:n,path:e.path,parent:e})}},{key:"unwrap",value:function(){return this._def.type}}])}(Fc),Vl=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){var e=this,n=this._processInputParams(t),r=n.status,a=n.ctx;if(a.common.async){var o=function(){var t=u(i().m(function t(){var n;return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e._def.in._parseAsync({data:a.data,path:a.path,parent:a});case 1:if("aborted"!==(n=t.v).status){t.n=2;break}return t.a(2,Cc);case 2:if("dirty"!==n.status){t.n=3;break}return r.dirty(),t.a(2,wc(n.value));case 3:return t.a(2,e._def.out._parseAsync({data:n.value,path:a.path,parent:a}));case 4:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return o()}var s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===s.status?Cc:"dirty"===s.status?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}],[{key:"create",value:function(t,n){return new e({in:t,out:n,typeName:Ul.ZodPipeline})}}])}(Fc),$l=function(t){function e(){return C(this,e),w(this,e,arguments)}return x(e,t),A(e,[{key:"_parse",value:function(t){var e=this._def.innerType._parse(t),n=function(t){return Rc(t)&&(t.value=Object.freeze(t.value)),t};return Lc(e)?e.then(function(t){return n(t)}):n(e)}},{key:"unwrap",value:function(){return this._def.innerType}}])}(Fc);$l.create=function(t,e){return new $l(r({innerType:t,typeName:Ul.ZodReadonly},Nc(e)))},function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"}(Ul||(Ul={})),ol.create,ul.create,cl.create,ll.create,dl.create,gl.create;e("d",bl.create),e("o",_l.create);Tl.create,Il.create,Al.create,Rl.create,Ml.create,Nl.create,Pl.create;e("b",Dl.createWithPreprocess),e("c",{string:function(t){return ol.create(r(r({},t),{},{coerce:!0}))},number:function(t){return ul.create(r(r({},t),{},{coerce:!0}))},boolean:function(t){return ll.create(r(r({},t),{},{coerce:!0}))},bigint:function(t){return cl.create(r(r({},t),{},{coerce:!0}))},date:function(t){return dl.create(r(r({},t),{},{coerce:!0}))}});function zl(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;var n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),e&&(r.href=e),i.href=t,i.href}var Wl=function(){var t=0;return function(){return t+=1,"u".concat("0000".concat((Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)).concat(t)}}();function Gl(t){for(var e=[],n=0,r=t.length;n0&&void 0!==arguments[0]?arguments[0]:{};return Xl||(Xl=t.includeStyleProperties?t.includeStyleProperties:Gl(window.getComputedStyle(document.documentElement)))}function ql(t,e){var n=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function Zl(t){var e,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.width||(n=ql(e=t,"border-left-width"),r=ql(e,"border-right-width"),e.clientWidth+n+r),o=i.height||function(t){var e=ql(t,"border-top-width"),n=ql(t,"border-bottom-width");return t.clientHeight+e+n}(t);return{width:a,height:o}}function Yl(){var t,e;try{e=process}catch(Rf){}var n=e&&e.env?e.env.devicePixelRatio:null;return n&&(t=parseInt(n,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}var Ql=16384;function Jl(t){(t.width>Ql||t.height>Ql)&&(t.width>Ql&&t.height>Ql?t.width>t.height?(t.height*=Ql/t.width,t.width=Ql):(t.width*=Ql/t.height,t.height=Ql):t.width>Ql?(t.height*=Ql/t.width,t.width=Ql):(t.width*=Ql/t.height,t.height=Ql))}function td(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.toBlob?new Promise(function(n){t.toBlob(n,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(function(n){for(var 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),o=0;o1&&void 0!==c[1]?c[1]:{}),a=r.width,o=r.height,t.n=1,Fd(e,n,!0);case 1:return s=t.v,t.n=2,Sf(s,n);case 2:return t.n=3,af(s,n);case 3:return sf(s,n),t.n=4,id(s,a,o);case 4:return u=t.v,t.a(2,u)}},t)})),Cf.apply(this,arguments)}function wf(t){return xf.apply(this,arguments)}function xf(){return xf=u(i().m(function t(e){var n,r,a,o,s,u,c,l,d,f,h,p=arguments;return i().w(function(t){for(;;)switch(t.n){case 0:return r=Zl(e,n=p.length>1&&void 0!==p[1]?p[1]:{}),a=r.width,o=r.height,t.n=1,Af(e,n);case 1:return s=t.v,t.n=2,ed(s);case 2:return u=t.v,c=document.createElement("canvas"),l=c.getContext("2d"),d=n.pixelRatio||Yl(),f=n.canvasWidth||a,h=n.canvasHeight||o,c.width=f*d,c.height=h*d,n.skipAutoScale||Jl(c),c.style.width="".concat(f),c.style.height="".concat(h),n.backgroundColor&&(l.fillStyle=n.backgroundColor,l.fillRect(0,0,c.width,c.height)),l.drawImage(u,0,0,c.width,c.height),t.a(2,c)}},t)})),xf.apply(this,arguments)}function Of(){return Of=u(i().m(function t(e){var n,r,a,o=arguments;return i().w(function(t){for(;;)switch(t.n){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},t.n=1,wf(e,n);case 1:return r=t.v,t.n=2,td(r);case 2:return a=t.v,t.a(2,a)}},t)})),Of.apply(this,arguments)}var kf,Rf={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow},Lf=function(t){function e(t,n,r){var i;return C(this,e),(i=w(this,e,[t])).position=n,i.token=r,i.name="ExpressionError",i}return x(e,t),A(e)}(O(Error));!function(t){t[t.STRING=0]="STRING",t[t.NUMBER=1]="NUMBER",t[t.BOOLEAN=2]="BOOLEAN",t[t.NULL=3]="NULL",t[t.IDENTIFIER=4]="IDENTIFIER",t[t.OPERATOR=5]="OPERATOR",t[t.FUNCTION=6]="FUNCTION",t[t.DOT=7]="DOT",t[t.BRACKET_LEFT=8]="BRACKET_LEFT",t[t.BRACKET_RIGHT=9]="BRACKET_RIGHT",t[t.PAREN_LEFT=10]="PAREN_LEFT",t[t.PAREN_RIGHT=11]="PAREN_RIGHT",t[t.COMMA=12]="COMMA",t[t.QUESTION=13]="QUESTION",t[t.COLON=14]="COLON",t[t.DOLLAR=15]="DOLLAR"}(kf||(kf={}));var Mf,Df,Nf=new Set([32,9,10,13]),Pf=new Set([43,45,42,47,37,33,38,124,61,60,62]),Ff=new Map([["true",kf.BOOLEAN],["false",kf.BOOLEAN],["null",kf.NULL]]),Hf=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),Bf=new Map([[46,kf.DOT],[91,kf.BRACKET_LEFT],[93,kf.BRACKET_RIGHT],[40,kf.PAREN_LEFT],[41,kf.PAREN_RIGHT],[44,kf.COMMA],[63,kf.QUESTION],[58,kf.COLON],[36,kf.DOLLAR]]),Uf=new Map,jf=E(Bf.entries());try{for(jf.s();!(Mf=jf.n()).done;){var Vf=c(Mf.value,2),$f=Vf[0],zf=Vf[1];Uf.set($f,{type:zf,value:String.fromCharCode($f)})}}catch(oS){jf.e(oS)}finally{jf.f()}function Wf(t){return t>=48&&t<=57}function Gf(t){return t>=97&&t<=122||t>=65&&t<=90||95===t}function Xf(t){return Gf(t)||Wf(t)}function Kf(t){return Pf.has(t)}!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"}(Df||(Df={}));var qf=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),Zf={type:Df.Literal,value:null},Yf={type:Df.Literal,value:!0},Qf={type:Df.Literal,value:!1},Jf=function(t){var e=0,n=t.length,r=function(){return e>=n?null:t[e]},i=function(){return t[e++]},a=function(t){var e=r();return null!==e&&e.type===t},o=function(t){return t.type===kf.OPERATOR?qf.get(t.value)||-1:t.type===kf.DOT||t.type===kf.BRACKET_LEFT?9:t.type===kf.QUESTION?1:-1},s=function(t){var n,o;if(i().type===kf.DOT){if(!a(kf.IDENTIFIER)){var s=r();throw new Lf("Expected property name",e,s?s.value:"")}var u=i();n={type:Df.Identifier,name:u.value},o=!1}else{if(n=c(0),!a(kf.BRACKET_RIGHT)){var l=r();throw new Lf("Expected closing bracket",e,l?l.value:"")}i(),o=!0}return{type:Df.MemberExpression,object:t,property:n,computed:o}},u=function(){var t=r();if(!t)throw new Lf("Unexpected end of input",e,"");if(t.type===kf.OPERATOR&&("!"===t.value||"-"===t.value)){i();var n=u();return{type:Df.UnaryExpression,operator:t.value,argument:n,prefix:!0}}switch(t.type){case kf.NUMBER:return i(),{type:Df.Literal,value:Number(t.value)};case kf.STRING:return i(),{type:Df.Literal,value:t.value};case kf.BOOLEAN:return i(),"true"===t.value?Yf:Qf;case kf.NULL:return i(),Zf;case kf.IDENTIFIER:return i(),{type:Df.Identifier,name:t.value};case kf.FUNCTION:return function(){var t=i(),n=[];if(!a(kf.PAREN_LEFT)){var o=r();throw new Lf("Expected opening parenthesis after function name",e,o?o.value:"")}for(i();;){if(a(kf.PAREN_RIGHT)){i();break}if(!r()){var s=r();throw new Lf("Expected closing parenthesis",e,s?s.value:"")}if(n.length>0){if(!a(kf.COMMA)){var u=r();throw new Lf("Expected comma between function arguments",e,u?u.value:"")}i()}var l=c(0);n.push(l)}return{type:Df.CallExpression,callee:{type:Df.Identifier,name:t.value},arguments:n}}();case kf.PAREN_LEFT:i();var o=c(0);if(!a(kf.PAREN_RIGHT)){var s=r();throw new Lf("Expected closing parenthesis",e,s?s.value:"")}return i(),o;default:throw new Lf("Unexpected token: ".concat(t.type),e,t.value)}},c=function(){for(var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,d=u();e")}i();var g=c(0);d={type:Df.ConditionalExpression,test:d,consequent:v,alternate:g}}}return d},l=c();return{type:Df.Program,body:l}},th=function(t,e,n){var i=e;n&&(i=r(r({},e),{},{context:r(r({},e.context),n)}));var a=function(t){switch(t.type){case Df.Literal:return function(t){return t.value}(t);case Df.Identifier:return function(t){if(!(t.name in i.context))throw new Lf("Undefined variable: ".concat(t.name));return i.context[t.name]}(t);case Df.MemberExpression:return function(t){var e=a(t.object);if(null==e)throw new Lf("Cannot access property of null or undefined");return e[t.computed?a(t.property):t.property.name]}(t);case Df.CallExpression:return function(t){var e=i.functions[t.callee.name];if(!e)throw new Lf("Undefined function: ".concat(t.callee.name));return e.apply(void 0,y(t.arguments.map(function(t){return a(t)})))}(t);case Df.BinaryExpression:return function(t){if("&&"===t.operator){var e=a(t.left);return e?a(t.right):e}if("||"===t.operator)return a(t.left)||a(t.right);var n=a(t.left),r=a(t.right);switch(t.operator){case"+":return n+r;case"-":return n-r;case"*":return n*r;case"/":return n/r;case"%":return n%r;case"===":return n===r;case"!==":return n!==r;case">":return n>r;case">=":return n>=r;case"<":return n0&&void 0!==arguments[0]?arguments[0]:{},functions:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}}({},Rf);return function(){return th(n,r,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}}var nh={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"},rh={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128},ih={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"},ah=function(t){function e(n){return t.call(this,Ki(Ki({},e.defaultAdapter),n))||this}return Xi(e,t),Object.defineProperty(e,"strings",{get:function(){return ih},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return nh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return rh},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}(Qi),oh=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 Xi(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()},rh.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},rh.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}(ah),sh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.wasScrolled=!1,e}return Xi(e,t),e.prototype.handleTargetScroll=function(){this.adapter.getViewportScrollY()<=0?this.wasScrolled&&(this.adapter.removeClass(nh.FIXED_SCROLLED_CLASS),this.wasScrolled=!1):this.wasScrolled||(this.adapter.addClass(nh.FIXED_SCROLLED_CLASS),this.wasScrolled=!0)},e}(oh),uh=function(t){function e(e){var n=t.call(this,e)||this;return n.collapsed=!1,n.isAlwaysCollapsed=!1,n}return Xi(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(nh.SHORT_HAS_ACTION_ITEM_CLASS),this.setAlwaysCollapsed(this.adapter.hasClass(nh.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(nh.SHORT_COLLAPSED_CLASS),this.collapsed=!1},e.prototype.collapse=function(){this.adapter.addClass(nh.SHORT_COLLAPSED_CLASS),this.collapsed=!0},e}(ah),ch=Sr("
");var lh=Sr("
");var dh=Sr('
'),fh=Sr('
',1);var hh,ph={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"},vh={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"},mh={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150};!function(t){t.POLL_SCROLL_POS="poll_scroll_position",t.POLL_LAYOUT_CHANGE="poll_layout_change"}(hh||(hh={}));var gh=function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.dialogOpen=!1,r.isFullscreen=!1,r.animationFrame=0,r.animationTimer=0,r.escapeKeyAction=vh.CLOSE_ACTION,r.scrimClickAction=vh.CLOSE_ACTION,r.autoStackButtons=!0,r.areButtonsStacked=!1,r.suppressDefaultPressSelector=vh.SUPPRESS_DEFAULT_PRESS_SELECTOR,r.animFrame=new ms,r.contentScrollHandler=function(){r.handleScrollEvent()},r.windowResizeHandler=function(){r.layout()},r.windowOrientationChangeHandler=function(){r.layout()},r}return Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ph},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return vh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return mh},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(ph.STACKED)&&this.setAutoStackButtons(!1),this.isFullscreen=this.adapter.hasClass(ph.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(ph.OPENING),this.isFullscreen&&this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler),t&&t.isAboveFullscreenDialog&&this.adapter.addClass(ph.SCRIM_HIDDEN),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler),this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),this.runNextAnimationFrame(function(){e.adapter.addClass(ph.OPEN),e.adapter.addBodyClass(ph.SCROLL_LOCK),e.layout(),e.animationTimer=setTimeout(function(){e.handleAnimationTimerEnd(),e.adapter.trapFocus(e.adapter.getInitialFocusEl()),e.adapter.notifyOpened()},mh.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(ph.CLOSING),this.adapter.removeClass(ph.OPEN),this.adapter.removeBodyClass(ph.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)},mh.DIALOG_ANIMATION_CLOSE_TIME_MS))},e.prototype.showSurfaceScrim=function(){var t=this;this.adapter.addClass(ph.SURFACE_SCRIM_SHOWING),this.runNextAnimationFrame(function(){t.adapter.addClass(ph.SURFACE_SCRIM_SHOWN)})},e.prototype.hideSurfaceScrim=function(){this.adapter.removeClass(ph.SURFACE_SCRIM_SHOWN),this.adapter.addClass(ph.SURFACE_SCRIM_HIDING)},e.prototype.handleSurfaceScrimTransitionEnd=function(){this.adapter.removeClass(ph.SURFACE_SCRIM_HIDING),this.adapter.removeClass(ph.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(hh.POLL_LAYOUT_CHANGE,function(){t.layoutInternal()})},e.prototype.handleClick=function(t){if(this.adapter.eventTargetMatches(t.target,vh.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(hh.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(ph.OPENING),this.adapter.removeClass(ph.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(ph.STACKED);var t=this.adapter.areButtonsStacked();t&&this.adapter.addClass(ph.STACKED),t!==this.areButtonsStacked&&(this.adapter.reverseButtons(),this.areButtonsStacked=t)},e.prototype.toggleScrollableClasses=function(){this.adapter.removeClass(ph.SCROLLABLE),this.adapter.isContentScrollable()&&(this.adapter.addClass(ph.SCROLLABLE),this.isFullscreen&&(this.toggleScrollDividerHeader(),this.toggleScrollDividerFooter()))},e.prototype.toggleScrollDividerHeader=function(){this.adapter.isScrollableContentAtTop()?this.adapter.hasClass(ph.SCROLL_DIVIDER_HEADER)&&this.adapter.removeClass(ph.SCROLL_DIVIDER_HEADER):this.adapter.addClass(ph.SCROLL_DIVIDER_HEADER)},e.prototype.toggleScrollDividerFooter=function(){this.adapter.isScrollableContentAtBottom()?this.adapter.hasClass(ph.SCROLL_DIVIDER_FOOTER)&&this.adapter.removeClass(ph.SCROLL_DIVIDER_FOOTER):this.adapter.addClass(ph.SCROLL_DIVIDER_FOOTER)},e}(Qi),yh=Sr('
'),bh=Sr('
',1);var Eh,_h,Th={ROOT:"mdc-form-field"},Sh={LABEL_SELECTOR:".mdc-form-field > label"},Ih=function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.click=function(){r.handleClick()},r}return Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Th},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Sh},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}(Qi),Ah=0,Ch=Sr("
"); /** * @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 wh(t,e,n){var r=function(t,e){var n=new Map;xh.has(t)||xh.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=xh.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=Ki({},i),o=i.get,s=i.set;if("value"in i){delete a.value,delete a.writable;var u=i.value;o=function(){return u},i.writable&&(s=function(t){u=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 u=qi(r.getObservers(e)),c=u.next();!c.done;c=u.next()){(0,c.value)(t,a)}}catch(l){n={error:l}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}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)}}!function(t){t.PROCESSING="mdc-switch--processing",t.SELECTED="mdc-switch--selected",t.UNSELECTED="mdc-switch--unselected"}(Eh||(Eh={})),function(t){t.RIPPLE=".mdc-switch__ripple"}(_h||(_h={}));var xh=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 Oh=function(t){function e(e){var n=t.call(this,e)||this;return n.unobserves=new Set,n}return Xi(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=qi(Object.keys(e)),s=o.next();!s.done;s=o.next()){var u=s.value,c=e[u].bind(this);a.push(this.observeProperty(t,u,c))}}catch(d){n={error:d}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var l=function(){var t,e;try{for(var n=qi(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(l)};return this.unobserves.add(l),l},e.prototype.observeProperty=function(t,e,n){return wh(t,e,n)},e.prototype.setObserversEnabled=function(t,e){!function(t,e){var n=xh.get(t);n&&(n.isEnabled=e)}(t,e)},e.prototype.unobserve=function(){var t,e;try{for(var n=qi(Yi([],Zi(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}(Qi),kh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xi(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(Eh.SELECTED),this.onSelectedChange(),this.adapter.state.disabled=this.adapter.isDisabled(),this.adapter.state.processing=this.adapter.hasClass(Eh.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,Eh.PROCESSING)},e.prototype.onSelectedChange=function(){this.adapter.setAriaChecked(String(this.adapter.state.selected)),this.toggleClass(this.adapter.state.selected,Eh.SELECTED),this.toggleClass(!this.adapter.state.selected,Eh.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 Xi(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}(Oh)),Rh=Sr('
'),Lh=Sr('
'),Mh=Sr(''); /** * @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 Dh={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},Nh=function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.shakeAnimationEndHandler=function(){r.handleShakeAnimationEnd()},r}return Xi(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(){},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}(Qi),Ph={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},Fh=function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.transitionEndHandler=function(t){r.handleTransitionEnd(t)},r}return Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Ph},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(Ph.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(Ph.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter.addClass(Ph.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var e=this.adapter.hasClass(Ph.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter.removeClass(Ph.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(Ph.LINE_RIPPLE_DEACTIVATING))},e}(Qi),Hh={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},Bh={NOTCH_ELEMENT_PADDING:8},Uh={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},jh=function(t){function e(n){return t.call(this,Ki(Ki({},e.defaultAdapter),n))||this}return Xi(e,t),Object.defineProperty(e,"strings",{get:function(){return Hh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return Uh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Bh},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+=Bh.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}(Qi),Vh={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"},$h={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"},zh={LABEL_SCALE:.75},Wh=["pattern","min","max","required","step","minlength","maxlength"],Gh=["color","date","datetime-local","month","range","time","week"],Xh=["mousedown","touchstart"],Kh=["click","keydown"],qh=(e("W",function(t){function e(n,r){void 0===r&&(r={});var i=t.call(this,Ki(Ki({},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 Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return $h},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Vh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return zh},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldAlwaysFloat",{get:function(){var t=this.getNativeInput().type;return Gh.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=qi(Xh),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=qi(Kh),u=s.next();!u.done;u=s.next()){o=u.value;this.adapter.registerTextFieldInteractionHandler(o,this.textFieldInteractionHandler)}}catch(l){n={error:l}}finally{try{u&&!u.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=qi(Xh),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=qi(Kh),u=s.next();!u.done;u=s.next()){o=u.value;this.adapter.deregisterTextFieldInteractionHandler(o,this.textFieldInteractionHandler)}}catch(l){n={error:l}}finally{try{u&&!u.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 Wh.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()*zh.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(Vh.ARIA_DESCRIBEDBY,i):this.adapter.removeInputAttr(Vh.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}(Qi)),{ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"}),Zh={ROOT:"mdc-text-field__icon"},Yh=["click","keydown"],Qh=(e("az",function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.savedTabIndex=null,r.interactionHandler=function(t){r.handleInteraction(t)},r}return Xi(e,t),Object.defineProperty(e,"strings",{get:function(){return qh},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return Zh},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=qi(Yh),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=qi(Yh),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",qh.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}(Qi)),Sr("")),Jh=Sr(""); /** * @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 tp=Sr("
");var ep=Sr('
'),np=Sr('
');var rp=Sr("
");var ip,ap,op={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"},sp={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(", ")},up={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(t){t[t.BOTTOM=1]="BOTTOM",t[t.CENTER=2]="CENTER",t[t.RIGHT=4]="RIGHT",t[t.FLIP_RTL=8]="FLIP_RTL"}(ip||(ip={})),function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=4]="TOP_RIGHT",t[t.BOTTOM_LEFT=1]="BOTTOM_LEFT",t[t.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",t[t.TOP_START=8]="TOP_START",t[t.TOP_END=12]="TOP_END",t[t.BOTTOM_START=9]="BOTTOM_START",t[t.BOTTOM_END=13]="BOTTOM_END"}(ap||(ap={})); /** * @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,lp=function(t){function e(n){var r=t.call(this,Ki(Ki({},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=ap.TOP_START,r.originCorner=ap.TOP_START,r.anchorMargin={top:0,right:0,bottom:0,left:0},r.position={x:0,y:0},r}return Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return op},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return sp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return up},enumerable:!1,configurable:!0}),Object.defineProperty(e,"Corner",{get:function(){return ap},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^ip.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()},up.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()},up.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,ip.BOTTOM)?"bottom":"top",a=this.hasBit(n,ip.RIGHT)?"right":"left",o=this.getHorizontalOriginOffset(n),s=this.getVerticalOriginOffset(n),u=this.measurements,c=u.anchorSize,l=u.surfaceSize,d=((t={})[a]=o,t[i]=s,t);c.width/l.width>up.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,ip.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,u=e.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,ip.BOTTOM)?(t=a.top-u+this.anchorMargin.bottom,n=a.bottom-u-this.anchorMargin.bottom):(t=a.top-u+this.anchorMargin.top,n=a.bottom-u+o.height-this.anchorMargin.top),!(n-s.height>0)&&t>n+this.openBottomBias&&(r=this.setBit(r,ip.BOTTOM));var c,l,d=this.adapter.isRtl(),f=this.hasBit(this.anchorCorner,ip.FLIP_RTL),h=this.hasBit(this.anchorCorner,ip.RIGHT)||this.hasBit(r,ip.RIGHT),p=!1;(p=d&&f?!h:h)?(c=a.left+o.width+this.anchorMargin.right,l=a.right-this.anchorMargin.right):(c=a.left+this.anchorMargin.left,l=a.right+o.width-this.anchorMargin.left);var v=c-s.width>0,m=l-s.width>0,g=this.hasBit(r,ip.FLIP_RTL)&&this.hasBit(r,ip.RIGHT);return m&&g&&d||!v&&g?r=this.unsetBit(r,ip.RIGHT):(v&&p&&d||v&&!p&&h||!m&&c>=l)&&(r=this.setBit(r,ip.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,ip.BOTTOM),a=this.hasBit(this.anchorCorner,ip.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,ip.RIGHT),r=this.hasBit(this.anchorCorner,ip.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,ip.BOTTOM),r=this.hasBit(this.anchorCorner,ip.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,u=Object.keys(t);try{for(var c=qi(u),l=c.next();!l.done;l=c.next()){var d=l.value,f=t[d]||0;!this.isHorizontallyCenteredOnViewport||"left"!==d&&"right"!==d?(f+=a[d],this.isFixedPosition||("top"===d?f+=i.y:"bottom"===d?f-=i.y:"left"===d?f+=i.x:f-=i.x),t[d]=f):t[d]=(s.width-o.width)/2}}catch(h){e={error:h}}finally{try{l&&!l.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()},up.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}(Qi),dp={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},fp={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"},hp={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. */!function(t){t[t.NONE=0]="NONE",t[t.LIST_ROOT=1]="LIST_ROOT",t[t.FIRST_ITEM=2]="FIRST_ITEM",t[t.LAST_ITEM=3]="LAST_ITEM"}(cp||(cp={})); /** * @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 pp=function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.closeAnimationEndTimerId=0,r.defaultFocusState=cp.LIST_ROOT,r.selectedIndex=-1,r}return Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return dp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return fp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return hp},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,fp.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)},lp.numbers.TRANSITION_CLOSE_DURATION)}},e.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case cp.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case cp.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case cp.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,fp.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(e,dp.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,dp.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,fp.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=t},e.prototype.setEnabled=function(t,e){this.validatedIndex(t),e?(this.adapter.removeClassFromElementAtIndex(t,ao.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,fp.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,ao.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,fp.ARIA_DISABLED_ATTR,"true"))},e.prototype.validatedIndex=function(t){var e=this.adapter.getMenuItemCount();if(!(t>=0&&t=this.adapter.getMenuItemCount()||(t===gp.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!==gp.UNSET_INDEX?e[t]:""},e.prototype.getDisabled=function(){return this.disabled},e.prototype.setDisabled=function(t){this.disabled=t,this.disabled?(this.adapter.addClass(vp.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(vp.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(vp.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(vp.FOCUSED),n=t||e,r=this.adapter.hasClass(vp.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(vp.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},e.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(vp.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.handleMenuItemAction=function(t){this.setSelectedIndex(t,!0)},e.prototype.handleFocus=function(){this.adapter.addClass(vp.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(vp.FOCUSED)){var e=$a(t)===ha,n=$a(t)===pa,r=$a(t)===Ea,i=$a(t)===Ta;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(vp.FOCUSED);if(t){var n=gp.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(vp.INVALID),this.adapter.removeMenuClass(vp.MENU_INVALID)):(this.adapter.addClass(vp.INVALID),this.adapter.addMenuClass(vp.MENU_INVALID)),this.syncHelperTextValidity(t)},e.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(vp.REQUIRED)&&!this.adapter.hasClass(vp.DISABLED)?this.getSelectedIndex()!==gp.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},e.prototype.setRequired=function(t){t?this.adapter.addClass(vp.REQUIRED):this.adapter.removeClass(vp.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(ap.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(vp.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(vp.INVALID)),this.layout(),this.layoutOptions()},e.prototype.blur=function(){this.adapter.removeClass(vp.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(vp.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(mp.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(mp.ARIA_DESCRIBEDBY)}},e.prototype.setClickDebounceTimeout=function(){var t=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){t.recentlyClicked=!1},gp.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},e}(Qi)),{ARIA_HIDDEN:"aria-hidden",ROLE:"role"}),bp={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},Ep=(e("ah",function(t){function e(n){return t.call(this,Ki(Ki({},e.defaultAdapter),n))||this}return Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return bp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return yp},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(yp.ARIA_HIDDEN)},e.prototype.setContent=function(t){this.adapter.setContent(t)},e.prototype.setValidation=function(t){t?this.adapter.addClass(bp.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(bp.HELPER_TEXT_VALIDATION_MSG)},e.prototype.setValidationMsgPersistent=function(t){t?this.adapter.addClass(bp.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(bp.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},e.prototype.getIsValidation=function(){return this.adapter.hasClass(bp.HELPER_TEXT_VALIDATION_MSG)},e.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(bp.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},e.prototype.setValidity=function(t){if(this.adapter.hasClass(bp.HELPER_TEXT_VALIDATION_MSG)){var e=this.adapter.hasClass(bp.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!t||e)return this.showToScreenReader(),void(t?this.adapter.removeAttr(yp.ROLE):this.adapter.setAttr(yp.ROLE,"alert"));this.adapter.removeAttr(yp.ROLE),this.hide()}},e.prototype.showToScreenReader=function(){this.adapter.removeAttr(yp.ARIA_HIDDEN)},e.prototype.hide=function(){this.adapter.setAttr(yp.ARIA_HIDDEN,"true")},e}(Qi)),Sr("
")); /** * @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 _p(t,e){Bt(e,!0);var n,i=Di(e,"use",19,function(){return[]}),a=Di(e,"class",3,""),o=Di(e,"style",3,""),s=Di(e,"static",3,!1),u=Di(e,"anchor",3,!0),l=Di(e,"fixed",3,!1),d=Di(e,"open",31,function(){return Ye(s())}),f=Di(e,"managed",3,!1),h=Di(e,"fullWidth",3,!1),p=Di(e,"quickOpen",3,!1),v=Di(e,"anchorElement",15),m=Di(e,"anchorMargin",19,function(){return{top:0,right:0,bottom:0,left:0}}),g=Di(e,"maxHeight",3,0),y=Di(e,"horizontallyCenteredOnViewport",3,!1),b=Di(e,"openBottomBias",3,0),E=Di(e,"neverRestoreFocus",3,!1),_=Ri(e,["$$slots","$$events","$$legacy","use","class","style","static","anchor","fixed","open","managed","fullWidth","quickOpen","anchorElement","anchorCorner","anchorMargin","maxHeight","horizontallyCenteredOnViewport","openBottomBias","neverRestoreFocus","children"]),T=We(void 0),S=Ye({}),I=Ye({}),A=We(void 0);Ht("SMUI:list:role","menu"),Ht("SMUI:list:item:role","menuitem"),hn(function(){var t,e,r;!n||!u()||null!==(t=n.parentElement)&&void 0!==t&&t.classList.contains("mdc-menu-surface--anchor")||(null===(e=n.parentElement)||void 0===e||e.classList.add("mdc-menu-surface--anchor"),v(null!==(r=n.parentElement)&&void 0!==r?r:void 0))}),hn(function(){ir(T)&&ir(T).isOpen()!==d()&&(d()?ir(T).open():ir(T).close())}),hn(function(){ir(T)&&ir(T).setQuickOpen(p())}),hn(function(){ir(T)&&ir(T).setFixedPosition(l())}),hn(function(){ir(T)&&ir(T).setMaxHeight(g())}),hn(function(){ir(T)&&ir(T).setIsHorizontallyCenteredOnViewport(y())});var C=ap;hn(function(){ir(T)&&null!=e.anchorCorner&&("string"==typeof e.anchorCorner?ir(T).setAnchorCorner(C[e.anchorCorner]):ir(T).setAnchorCorner(e.anchorCorner))}),hn(function(){ir(T)&&ir(T).setAnchorMargin(m())}),hn(function(){ir(T)&&ir(T).setOpenBottomBias(b())});var w=Ft("SMUI:menu-surface:mount"),x=Ft("SMUI:menu-surface:unmount");function O(t){return t in S?S[t]:M().classList.contains(t)}function k(t){S[t]||(S[t]=!0)}function R(t){t in S&&!S[t]||(S[t]=!1)}function L(t){var e;null===(e=ir(T))||void 0===e||e.close(t),d(!1)}function M(){return n}Ni(function(){Xe(T,new lp({addClass:k,removeClass:R,hasClass:O,hasAnchor:function(){return!!v()},notifyClose:function(){f()||d(s()),d()||Wa(M(),"SMUIMenuSurfaceClosed")},notifyClosing:function(){f()||d(s()),d()||Wa(M(),"SMUIMenuSurfaceClosing")},notifyOpen:function(){f()||d(!0),d()&&Wa(M(),"SMUIMenuSurfaceOpened")},notifyOpening:function(){d()||Wa(M(),"SMUIMenuSurfaceOpening")},isElementInContainer:function(t){return M().contains(t)},isRtl:function(){return"rtl"===getComputedStyle(M()).getPropertyValue("direction")},setTransformOrigin:function(t){I["transform-origin"]=t},isFocused:function(){return document.activeElement===M()},saveFocus:function(){var t;Xe(A,null!==(t=document.activeElement)&&void 0!==t?t:void 0,!0)},restoreFocus:function(){!E()&&(!n||M().contains(document.activeElement))&&ir(A)&&document.contains(ir(A))&&"focus"in ir(A)&&ir(A).focus()},getInnerDimensions:function(){return{width:M().offsetWidth,height:M().offsetHeight}},getAnchorDimensions:function(){return v()?v().getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(t){I.left="left"in t?"".concat(t.left,"px"):"",I.right="right"in t?"".concat(t.right,"px"):"",I.top="top"in t?"".concat(t.top,"px"):"",I.bottom="bottom"in t?"".concat(t.bottom,"px"):""},setMaxHeight:function(t){I["max-height"]=t}}),!0);var t={get open(){return d()},set open(t){d(t)},closeProgrammatic:L};return w&&w(t),ir(T).init(),function(){var e;x&&x(t);var n,r=ir(T).isHoistedElement;(null===(e=ir(T))||void 0===e||e.destroy(),r)&&(null===(n=M().parentNode)||void 0===n||n.removeChild(M()))}}),Pi(function(){var t;u()&&(M()&&(null===(t=M().parentElement)||void 0===t||t.classList.remove("mdc-menu-surface--anchor")))});var N={isOpen:function(){return d()},setOpen:function(t){d(t)},setAbsolutePosition:function(t,e){if(null==ir(T))throw new Error("Instance is not defined.");return ir(T).setAbsolutePosition(t,e)},setIsHoisted:function(t){if(null==ir(T))throw new Error("Instance is not defined.");return ir(T).setIsHoisted(t)},isFixed:function(){if(null==ir(T))throw new Error("Instance is not defined.");return ir(T).isFixed()},flipCornerHorizontally:function(){if(null==ir(T))throw new Error("Instance is not defined.");return ir(T).flipCornerHorizontally()},getElement:M},P=Ep();yr("click",Be.body,function(t){ir(T)&&d()&&!f()&&ir(T).handleBodyClick(t)},!0);var F=function(t){var n;ir(T)&&!f()&&ir(T).handleKeydown(t),null===(n=e.onkeydown)||void 0===n||n.call(e,t)};return ii(P,function(t,e){return r(r({class:t,style:e,role:"dialog"},_),{},{onkeydown:F})},[function(){return za(r(r({"mdc-menu-surface":!0,"mdc-menu-surface--fixed":l(),"mdc-menu-surface--open":s(),"smui-menu-surface--static":s(),"mdc-menu-surface--fullwidth":h()},S),{},D({},a(),!0)))},function(){return Object.entries(I).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).concat([o()]).join(" ")}]),Fr(rn(P),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),bi(P,function(t){return n=t},function(){return n}),Ur(P,function(t,e){return null==qa?void 0:qa(t,e)},i),Cr(t,P),Ut(N)}var Tp={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},Sp={CONTENT_SELECTOR:".mdc-tab-indicator__content"},Ip=function(t){function e(n){return t.call(this,Ki(Ki({},e.defaultAdapter),n))||this}return Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Tp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Sp},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}(Qi),Ap=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xi(e,t),e.prototype.activate=function(){this.adapter.addClass(Ip.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(Ip.cssClasses.ACTIVE)},e}(Ip),Cp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xi(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(Ip.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+r+"px) scaleX("+n+")"),this.computeContentClientRect(),this.adapter.removeClass(Ip.cssClasses.NO_TRANSITION),this.adapter.addClass(Ip.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(Ip.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(Ip.cssClasses.ACTIVE)},e}(Ip),wp={ACTIVE:"mdc-tab--active"},xp={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"},Op=function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.focusOnActivate=!0,r}return Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return wp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return xp},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(wp.ACTIVE)},e.prototype.setFocusOnActivate=function(t){this.focusOnActivate=t},e.prototype.activate=function(t){this.adapter.addClass(wp.ACTIVE),this.adapter.setAttr(xp.ARIA_SELECTED,"true"),this.adapter.setAttr(xp.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate&&this.adapter.focus()},e.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(wp.ACTIVE),this.adapter.setAttr(xp.ARIA_SELECTED,"false"),this.adapter.setAttr(xp.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}(Qi),kp=Sr("");var Rp=Sr(' ',1);var Lp,Mp={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},Dp={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},Np=function(t){this.adapter=t},Pp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xi(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}(Np),Fp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xi(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}(Np),Hp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xi(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}(Np),Bp=function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.isAnimating=!1,r}return Xi(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Mp},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Dp},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=Zi(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 Fp(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 Hp(this.adapter):new Pp(this.adapter)},e.prototype.isRTL=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},e}(Qi); /** * @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 Up={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"},jp={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},Vp=new Set;Vp.add(Up.ARROW_LEFT_KEY),Vp.add(Up.ARROW_RIGHT_KEY),Vp.add(Up.END_KEY),Vp.add(Up.HOME_KEY),Vp.add(Up.ENTER_KEY),Vp.add(Up.SPACE_KEY);var $p=new Map;$p.set(jp.ARROW_LEFT_KEYCODE,Up.ARROW_LEFT_KEY),$p.set(jp.ARROW_RIGHT_KEYCODE,Up.ARROW_RIGHT_KEY),$p.set(jp.END_KEYCODE,Up.END_KEY),$p.set(jp.HOME_KEYCODE,Up.HOME_KEY),$p.set(jp.ENTER_KEYCODE,Up.ENTER_KEY),$p.set(jp.SPACE_KEYCODE,Up.SPACE_KEY);var zp=function(t){function e(n){var r=t.call(this,Ki(Ki({},e.defaultAdapter),n))||this;return r.useAutomaticActivation=!1,r}return Xi(e,t),Object.defineProperty(e,"strings",{get:function(){return Up},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return jp},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===Up.END_KEY?i=r:e===Up.ARROW_LEFT_KEY&&!n||e===Up.ARROW_RIGHT_KEY&&n?i-=1:e===Up.ARROW_RIGHT_KEY&&!n||e===Up.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-jp.EXTRA_SCROLL_AMOUNT,s=a+jp.EXTRA_SCROLL_AMOUNT;return et?Math.max(s,0):Math.min(u,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 Vp.has(t.key)?t.key:$p.get(t.keyCode)},e.prototype.isActivationKey=function(t){return t===Up.SPACE_KEY||t===Up.ENTER_KEY},e.prototype.indexIsInRange=function(t){return t>=0&&t
");function Gp(t,e){Bt(e,!0);var n,i,a,o=ta.matches,s=Di(e,"use",19,function(){return[]}),u=Di(e,"class",3,""),l=Di(e,"align",3,void 0),d=Di(e,"scrollArea$use",19,function(){return[]}),f=Di(e,"scrollArea$class",3,""),h=Di(e,"scrollContent$use",19,function(){return[]}),p=Di(e,"scrollContent$class",3,""),v=Ri(e,["$$slots","$$events","$$legacy","use","class","align","scrollArea$use","scrollArea$class","scrollContent$use","scrollContent$class","children"]),m=We(void 0),g=Ye({}),y=Ye({}),b=Ye({}),E=Ye({});function _(t){g[t]||(g[t]=!0)}function T(t){t in g&&!g[t]||(g[t]=!1)}function S(t){y[t]||(y[t]=!0)}function I(t,e){b[t]!=e&&(""===e||null==e?delete b[t]:b[t]=e)}function A(t,e){E[t]!=e&&(""===e||null==e?delete E[t]:E[t]=e)}function C(t){return t in E?E[t]:getComputedStyle(a).getPropertyValue(t)}Ni(function(){return Xe(m,new Bp({eventTargetMatchesSelector:function(t,e){return o(t,e)},addClass:_,removeClass:T,addScrollAreaClass:S,setScrollAreaStyleProperty:I,setScrollContentStyleProperty:A,getScrollContentStyleValue:C,setScrollAreaScrollLeft:function(t){return i.scrollLeft=t},getScrollAreaScrollLeft:function(){return i.scrollLeft},getScrollContentOffsetWidth:function(){return a.offsetWidth},getScrollAreaOffsetWidth:function(){return i.offsetWidth},computeScrollAreaClientRect:function(){return i.getBoundingClientRect()},computeScrollContentClientRect:function(){return a.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return function(t,e){if(void 0===e&&(e=!0),e&&void 0!==Lp)return Lp;var n=t.createElement("div");n.classList.add(Mp.SCROLL_TEST),t.body.appendChild(n);var r=n.offsetHeight-n.clientHeight;return t.body.removeChild(n),e&&(Lp=r),r}(document)}}),!0),ir(m).init(),function(){var t;null===(t=ir(m))||void 0===t||t.destroy()}});var w={getScrollPosition:function(){if(null==ir(m))throw new Error("Instance is undefined.");return ir(m).getScrollPosition()},getScrollContentWidth:function(){return a.offsetWidth},incrementScroll:function(t){var e;null===(e=ir(m))||void 0===e||e.incrementScroll(t)},scrollTo:function(t){var e;null===(e=ir(m))||void 0===e||e.scrollTo(t)},getElement:function(){return n}},x=Wp();ii(x,function(t,e){return r({class:t},e)},[function(){return za(r(r({"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()},g),{},D({},u(),!0)))},function(){return Ga(v,["scrollArea$","scrollContent$"])}]);var O=rn(x),k=function(t){var n;ir(m)&&ir(m).handleInteraction(),null===(n=e.scrollArea$onwheel)||void 0===n||n.call(e,t)},R=function(t){var n;ir(m)&&ir(m).handleInteraction(),null===(n=e.scrollArea$ontouchstart)||void 0===n||n.call(e,t)},L=function(t){var n;ir(m)&&ir(m).handleInteraction(),null===(n=e.scrollArea$onpointerdown)||void 0===n||n.call(e,t)},M=function(t){var n;ir(m)&&ir(m).handleInteraction(),null===(n=e.scrollArea$onmousedown)||void 0===n||n.call(e,t)},N=function(t){var n;ir(m)&&ir(m).handleInteraction(),null===(n=e.scrollArea$onkeydown)||void 0===n||n.call(e,t)};ii(O,function(t,e,n){return r(r({class:t,style:e},n),{},{onwheel:k,ontouchstart:R,onpointerdown:L,onmousedown:M,onkeydown:N})},[function(){return za(r(r({"mdc-tab-scroller__scroll-area":!0},y),{},D({},f(),!0)))},function(){return Object.entries(b).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).join(" ")},function(){return Xa(v,"scrollArea$")}]);var P=rn(O),F=function(t){var n;ir(m)&&ir(m).handleTransitionEnd(t),null===(n=e.scrollContent$ontransitionend)||void 0===n||n.call(e,t)};return ii(P,function(t,e,n){return r(r({class:t,style:e},n),{},{ontransitionend:F})},[function(){return za(D({"mdc-tab-scroller__scroll-content":!0},p(),!0))},function(){return Object.entries(E).map(function(t){var e=c(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r,";")}).join(" ")},function(){return Xa(v,"scrollContent$")}]),Fr(rn(P),function(){var t;return null!==(t=e.children)&&void 0!==t?t:H}),bi(P,function(t){return a=t},function(){return a}),Ur(P,function(t,e){return null==qa?void 0:qa(t,e)},h),bi(O,function(t){return i=t},function(){return i}),Ur(O,function(t,e){return null==qa?void 0:qa(t,e)},d),bi(x,function(t){return n=t},function(){return n}),Ur(x,function(t,e){return null==qa?void 0:qa(t,e)},s),Cr(t,x),Ut(w)}var Xp=Sr("
");var Kp=Object.entries,qp=Object.setPrototypeOf,Zp=Object.isFrozen,Yp=Object.getPrototypeOf,Qp=Object.getOwnPropertyDescriptor,Jp=Object.freeze,tv=Object.seal,ev=Object.create,nv="undefined"!=typeof Reflect&&Reflect,rv=nv.apply,iv=nv.construct;Jp||(Jp=function(t){return t}),tv||(tv=function(t){return t}),rv||(rv=function(t,e,n){return t.apply(e,n)}),iv||(iv=function(t,e){return k(t,y(e))});var av,ov=Ev(Array.prototype.forEach),sv=Ev(Array.prototype.lastIndexOf),uv=Ev(Array.prototype.pop),cv=Ev(Array.prototype.push),lv=Ev(Array.prototype.splice),dv=Ev(String.prototype.toLowerCase),fv=Ev(String.prototype.toString),hv=Ev(String.prototype.match),pv=Ev(String.prototype.replace),vv=Ev(String.prototype.indexOf),mv=Ev(String.prototype.trim),gv=Ev(Object.prototype.hasOwnProperty),yv=Ev(RegExp.prototype.test),bv=(av=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]:dv;qp&&qp(t,null);for(var r=e.length;r--;){var i=e[r];if("string"==typeof i){var a=n(i);a!==i&&(Zp(e)||(e[r]=a),i=a)}t[i]=!0}return t}function Tv(t){for(var e=0;e/gm),Hv=tv(/\$\{[\w\W]*/gm),Bv=tv(/^data-[\-\w.\u00B7-\uFFFF]+$/),Uv=tv(/^aria-[\-\w]+$/),jv=tv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vv=tv(/^(?:\w+script|data):/i),$v=tv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zv=tv(/^html$/i),Wv=tv(/^[a-z][.\w]*(-[.\w]+)+$/i),Gv=Object.freeze({__proto__:null,ARIA_ATTR:Uv,ATTR_WHITESPACE:$v,CUSTOM_ELEMENT:Wv,DATA_ATTR:Bv,DOCTYPE_NAME:zv,ERB_EXPR:Fv,IS_ALLOWED_URI:jv,IS_SCRIPT_OR_DATA:Vv,MUSTACHE_EXPR:Pv,TMPLIT_EXPR:Hv}),Xv=1,Kv=3,qv=7,Zv=8,Yv=9,Qv=function(){return"undefined"==typeof window?null:window};e("aG",function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qv(),n=function(e){return t(e)};if(n.version="3.2.6",n.removed=[],!e||!e.document||e.document.nodeType!==Yv||!e.Element)return n.isSupported=!1,n;var r,i=e.document,a=i,o=a.currentScript,s=e.DocumentFragment,u=e.HTMLTemplateElement,c=e.Node,l=e.Element,d=e.NodeFilter,f=e.NamedNodeMap,h=void 0===f?e.NamedNodeMap||e.MozNamedAttrMap:f,p=e.HTMLFormElement,v=e.DOMParser,m=e.trustedTypes,g=l.prototype,b=Iv(g,"cloneNode"),E=Iv(g,"remove"),_=Iv(g,"nextSibling"),T=Iv(g,"childNodes"),I=Iv(g,"parentNode");if("function"==typeof u){var A=i.createElement("template");A.content&&A.content.ownerDocument&&(i=A.content.ownerDocument)}var C="",w=i,x=w.implementation,O=w.createNodeIterator,k=w.createDocumentFragment,R=w.getElementsByTagName,L=a.importNode,M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Kp&&"function"==typeof I&&x&&void 0!==x.createHTMLDocument;var D=Gv.MUSTACHE_EXPR,N=Gv.ERB_EXPR,P=Gv.TMPLIT_EXPR,F=Gv.DATA_ATTR,H=Gv.ARIA_ATTR,B=Gv.IS_SCRIPT_OR_DATA,U=Gv.ATTR_WHITESPACE,j=Gv.CUSTOM_ELEMENT,V=Gv.IS_ALLOWED_URI,$=null,z=_v({},[].concat(y(Av),y(Cv),y(wv),y(Ov),y(Rv))),W=null,G=_v({},[].concat(y(Lv),y(Mv),y(Dv),y(Nv))),X=Object.seal(ev(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}})),K=null,q=null,Z=!0,Y=!0,Q=!1,J=!0,tt=!1,et=!0,nt=!1,rt=!1,it=!1,at=!1,ot=!1,st=!1,ut=!0,ct=!1,lt=!0,dt=!1,ft={},ht=null,pt=_v({},["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"]),vt=null,mt=_v({},["audio","video","img","source","image","track"]),gt=null,yt=_v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",_t="http://www.w3.org/1999/xhtml",Tt=_t,St=!1,It=null,At=_v({},[bt,Et,_t],fv),Ct=_v({},["mi","mo","mn","ms","mtext"]),wt=_v({},["annotation-xml"]),xt=_v({},["title","style","font","a","script"]),Ot=null,kt=["application/xhtml+xml","text/html"],Rt=null,Lt=null,Mt=i.createElement("form"),Dt=function(t){return t instanceof RegExp||t instanceof Function},Nt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Lt||Lt!==t){if(t&&"object"===S(t)||(t={}),t=Sv(t),Ot=-1===kt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Rt="application/xhtml+xml"===Ot?fv:dv,$=gv(t,"ALLOWED_TAGS")?_v({},t.ALLOWED_TAGS,Rt):z,W=gv(t,"ALLOWED_ATTR")?_v({},t.ALLOWED_ATTR,Rt):G,It=gv(t,"ALLOWED_NAMESPACES")?_v({},t.ALLOWED_NAMESPACES,fv):At,gt=gv(t,"ADD_URI_SAFE_ATTR")?_v(Sv(yt),t.ADD_URI_SAFE_ATTR,Rt):yt,vt=gv(t,"ADD_DATA_URI_TAGS")?_v(Sv(mt),t.ADD_DATA_URI_TAGS,Rt):mt,ht=gv(t,"FORBID_CONTENTS")?_v({},t.FORBID_CONTENTS,Rt):pt,K=gv(t,"FORBID_TAGS")?_v({},t.FORBID_TAGS,Rt):Sv({}),q=gv(t,"FORBID_ATTR")?_v({},t.FORBID_ATTR,Rt):Sv({}),ft=!!gv(t,"USE_PROFILES")&&t.USE_PROFILES,Z=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,Q=t.ALLOW_UNKNOWN_PROTOCOLS||!1,J=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,tt=t.SAFE_FOR_TEMPLATES||!1,et=!1!==t.SAFE_FOR_XML,nt=t.WHOLE_DOCUMENT||!1,at=t.RETURN_DOM||!1,ot=t.RETURN_DOM_FRAGMENT||!1,st=t.RETURN_TRUSTED_TYPE||!1,it=t.FORCE_BODY||!1,ut=!1!==t.SANITIZE_DOM,ct=t.SANITIZE_NAMED_PROPS||!1,lt=!1!==t.KEEP_CONTENT,dt=t.IN_PLACE||!1,V=t.ALLOWED_URI_REGEXP||jv,Tt=t.NAMESPACE||_t,Ct=t.MATHML_TEXT_INTEGRATION_POINTS||Ct,wt=t.HTML_INTEGRATION_POINTS||wt,X=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Dt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Dt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(X.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),tt&&(Y=!1),ot&&(at=!0),ft&&($=_v({},Rv),W=[],!0===ft.html&&(_v($,Av),_v(W,Lv)),!0===ft.svg&&(_v($,Cv),_v(W,Mv),_v(W,Nv)),!0===ft.svgFilters&&(_v($,wv),_v(W,Mv),_v(W,Nv)),!0===ft.mathMl&&(_v($,Ov),_v(W,Dv),_v(W,Nv))),t.ADD_TAGS&&($===z&&($=Sv($)),_v($,t.ADD_TAGS,Rt)),t.ADD_ATTR&&(W===G&&(W=Sv(W)),_v(W,t.ADD_ATTR,Rt)),t.ADD_URI_SAFE_ATTR&&_v(gt,t.ADD_URI_SAFE_ATTR,Rt),t.FORBID_CONTENTS&&(ht===pt&&(ht=Sv(ht)),_v(ht,t.FORBID_CONTENTS,Rt)),lt&&($["#text"]=!0),nt&&_v($,["html","head","body"]),$.table&&(_v($,["tbody"]),delete K.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw bv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw bv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');r=t.TRUSTED_TYPES_POLICY,C=r.createHTML("")}else void 0===r&&(r=function(t,e){if("object"!==S(t)||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(a){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(m,o)),null!==r&&"string"==typeof C&&(C=r.createHTML(""));Jp&&Jp(t),Lt=t}},Pt=_v({},[].concat(y(Cv),y(wv),y(xv))),Ft=_v({},[].concat(y(Ov),y(kv))),Ht=function(t){cv(n.removed,{element:t});try{I(t).removeChild(t)}catch(e){E(t)}},Bt=function(t,e){try{cv(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(r){cv(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(at||ot)try{Ht(e)}catch(r){}else try{e.setAttribute(t,"")}catch(r){}},Ut=function(t){var e=null,n=null;if(it)t=""+t;else{var a=hv(t,/^[\r\n\t ]+/);n=a&&a[0]}"application/xhtml+xml"===Ot&&Tt===_t&&(t=''+t+"");var o=r?r.createHTML(t):t;if(Tt===_t)try{e=(new v).parseFromString(o,Ot)}catch(u){}if(!e||!e.documentElement){e=x.createDocument(Tt,"template",null);try{e.documentElement.innerHTML=St?C:o}catch(u){}}var s=e.body||e.documentElement;return t&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),Tt===_t?R.call(e,nt?"html":"body")[0]:nt?e.documentElement:s},jt=function(t){return O.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Vt=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},$t=function(t){return"function"==typeof c&&t instanceof c};function zt(t,e,r){ov(t,function(t){t.call(n,e,r,Lt)})}var Wt=function(t){var e=null;if(zt(M.beforeSanitizeElements,t,null),Vt(t))return Ht(t),!0;var r=Rt(t.nodeName);if(zt(M.uponSanitizeElement,t,{tagName:r,allowedTags:$}),et&&t.hasChildNodes()&&!$t(t.firstElementChild)&&yv(/<[/\w!]/g,t.innerHTML)&&yv(/<[/\w!]/g,t.textContent))return Ht(t),!0;if(t.nodeType===qv)return Ht(t),!0;if(et&&t.nodeType===Zv&&yv(/<[/\w]/g,t.data))return Ht(t),!0;if(!$[r]||K[r]){if(!K[r]&&Xt(r)){if(X.tagNameCheck instanceof RegExp&&yv(X.tagNameCheck,r))return!1;if(X.tagNameCheck instanceof Function&&X.tagNameCheck(r))return!1}if(lt&&!ht[r]){var i=I(t)||t.parentNode,a=T(t)||t.childNodes;if(a&&i)for(var o=a.length-1;o>=0;--o){var s=b(a[o],!0);s.__removalCount=(t.__removalCount||0)+1,i.insertBefore(s,_(t))}}return Ht(t),!0}return t instanceof l&&!function(t){var e=I(t);e&&e.tagName||(e={namespaceURI:Tt,tagName:"template"});var n=dv(t.tagName),r=dv(e.tagName);return!!It[t.namespaceURI]&&(t.namespaceURI===Et?e.namespaceURI===_t?"svg"===n:e.namespaceURI===bt?"svg"===n&&("annotation-xml"===r||Ct[r]):Boolean(Pt[n]):t.namespaceURI===bt?e.namespaceURI===_t?"math"===n:e.namespaceURI===Et?"math"===n&&wt[r]:Boolean(Ft[n]):t.namespaceURI===_t?!(e.namespaceURI===Et&&!wt[r])&&!(e.namespaceURI===bt&&!Ct[r])&&!Ft[n]&&(xt[n]||!Pt[n]):!("application/xhtml+xml"!==Ot||!It[t.namespaceURI]))}(t)?(Ht(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!yv(/<\/no(script|embed|frames)/i,t.innerHTML)?(tt&&t.nodeType===Kv&&(e=t.textContent,ov([D,N,P],function(t){e=pv(e,t," ")}),t.textContent!==e&&(cv(n.removed,{element:t.cloneNode()}),t.textContent=e)),zt(M.afterSanitizeElements,t,null),!1):(Ht(t),!0)},Gt=function(t,e,n){if(ut&&("id"===e||"name"===e)&&(n in i||n in Mt))return!1;if(Y&&!q[e]&&yv(F,e));else if(Z&&yv(H,e));else if(!W[e]||q[e]){if(!(Xt(t)&&(X.tagNameCheck instanceof RegExp&&yv(X.tagNameCheck,t)||X.tagNameCheck instanceof Function&&X.tagNameCheck(t))&&(X.attributeNameCheck instanceof RegExp&&yv(X.attributeNameCheck,e)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(e))||"is"===e&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&yv(X.tagNameCheck,n)||X.tagNameCheck instanceof Function&&X.tagNameCheck(n))))return!1}else if(gt[e]);else if(yv(V,pv(n,U,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==vv(n,"data:")||!vt[t]){if(Q&&!yv(B,pv(n,U,"")));else if(n)return!1}else;return!0},Xt=function(t){return"annotation-xml"!==t&&hv(t,j)},Kt=function(t){zt(M.beforeSanitizeAttributes,t,null);var e=t.attributes;if(e&&!Vt(t)){for(var i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0},a=e.length,o=function(){var o=e[a],s=o.name,u=o.namespaceURI,c=o.value,l=Rt(s),d=c,f="value"===s?d:mv(d);if(i.attrName=l,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,zt(M.uponSanitizeAttribute,t,i),f=i.attrValue,!ct||"id"!==l&&"name"!==l||(Bt(s,t),f="user-content-"+f),et&&yv(/((--!?|])>)|<\/(style|title)/i,f))return Bt(s,t),0;if(i.forceKeepAttr)return 0;if(!i.keepAttr)return Bt(s,t),0;if(!J&&yv(/\/>/i,f))return Bt(s,t),0;tt&&ov([D,N,P],function(t){f=pv(f,t," ")});var h=Rt(t.nodeName);if(!Gt(h,l,f))return Bt(s,t),0;if(r&&"object"===S(m)&&"function"==typeof m.getAttributeType)if(u);else switch(m.getAttributeType(h,l)){case"TrustedHTML":f=r.createHTML(f);break;case"TrustedScriptURL":f=r.createScriptURL(f)}if(f!==d)try{u?t.setAttributeNS(u,s,f):t.setAttribute(s,f),Vt(t)?Ht(t):uv(n.removed)}catch(p){Bt(s,t)}};a--;)o();zt(M.afterSanitizeAttributes,t,null)}},qt=function t(e){var n=null,r=jt(e);for(zt(M.beforeSanitizeShadowDOM,e,null);n=r.nextNode();)zt(M.uponSanitizeShadowNode,n,null),Wt(n),Kt(n),n.content instanceof s&&t(n.content);zt(M.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,u=null,l=null;if((St=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!$t(t)){if("function"!=typeof t.toString)throw bv("toString is not a function");if("string"!=typeof(t=t.toString()))throw bv("dirty is not a string, aborting")}if(!n.isSupported)return t;if(rt||Nt(e),n.removed=[],"string"==typeof t&&(dt=!1),dt){if(t.nodeName){var d=Rt(t.nodeName);if(!$[d]||K[d])throw bv("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)(o=(i=Ut("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===Xv&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!at&&!tt&&!nt&&-1===t.indexOf("<"))return r&&st?r.createHTML(t):t;if(!(i=Ut(t)))return at?null:st?C:""}i&&it&&Ht(i.firstChild);for(var f=jt(dt?t:i);u=f.nextNode();)Wt(u),Kt(u),u.content instanceof s&&qt(u.content);if(dt)return t;if(at){if(ot)for(l=k.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(W.shadowroot||W.shadowrootmode)&&(l=L.call(a,l,!0)),l}var h=nt?i.outerHTML:i.innerHTML;return nt&&$["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&yv(zv,i.ownerDocument.doctype.name)&&(h="\n"+h),tt&&ov([D,N,P],function(t){h=pv(h,t," ")}),r&&st?r.createHTML(h):h},n.setConfig=function(){Nt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),rt=!0},n.clearConfig=function(){Lt=null,rt=!1},n.isValidAttribute=function(t,e,n){Lt||Nt({});var r=Rt(t),i=Rt(e);return Gt(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&cv(M[t],e)},n.removeHook=function(t,e){if(void 0!==e){var n=sv(M[t],e);return-1===n?void 0:lv(M[t],n,1)[0]}return uv(M[t])},n.removeHooks=function(t){M[t]=[]},n.removeAllHooks=function(){M={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 Jv(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 tm(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&t<1/0};function rg(t){return void 0===t}function ig(t){return"object"===nm(t)&&null!==t}var ag=Object.prototype.hasOwnProperty;function og(t){if(!ig(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&ag.call(n,"isPrototypeOf")}catch(r){return!1}}function sg(t){return"function"==typeof t}var ug=Array.prototype.slice;function cg(t){return Array.from?Array.from(t):ug.call(t)}function lg(t,e){return t&&sg(e)&&(Array.isArray(t)||eg(t.length)?cg(t).forEach(function(n,r){e.call(t,n,r,t)}):ig(t)&&Object.keys(t).forEach(function(n){e.call(t,t[n],n,t)})),t}var dg=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&n.forEach(function(e){ig(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t},fg=/\.\d*(?:0|9){12}\d*$/;function hg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return fg.test(t)?Math.round(t*e)/e:t}var pg=/^width|height|left|top|marginLeft|marginTop$/;function vg(t,e){var n=t.style;lg(e,function(t,e){pg.test(e)&&eg(t)&&(t="".concat(t,"px")),n[e]=t})}function mg(t,e){if(e)if(eg(t.length))lg(t,function(t){mg(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 gg(t,e){e&&(eg(t.length)?lg(t,function(t){gg(t,e)}):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function yg(t,e,n){e&&(eg(t.length)?lg(t,function(t){yg(t,e,n)}):n?mg(t,e):gg(t,e))}var bg=/([a-z\d])([A-Z])/g;function Eg(t){return t.replace(bg,"$1-$2").toLowerCase()}function _g(t,e){return ig(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Eg(e)))}function Tg(t,e,n){ig(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(Eg(e)),n)}var Sg=/\s\s*/,Ig=function(){var t=!1;if(sm){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});um.addEventListener("test",n,r),um.removeEventListener("test",n,r)}return t}();function Ag(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(Sg).forEach(function(e){if(!Ig){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 Cg(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(Sg).forEach(function(e){if(r.once&&!Ig){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),u=0;u1&&void 0!==arguments[1]?arguments[1]:"contain",a=ng(r),o=ng(n);if(a&&o){var s=n*e;"contain"===i&&s>r||"cover"===i&&s=8&&(a=u+l)}}}if(a){var d,f,h=n.getUint16(a,r);for(f=0;f=0?i:200),height:Math.max(n.offsetHeight,a>=0?a:100)};this.containerData=o,vg(r,{width:o.width,height:o.height}),mg(t,Cm),gg(r,Cm)},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,u=t.height;t.height*o>t.width?3===n?s=t.height*o:u=t.width/o:3===n?u=t.width/o:s=t.height*o;var c={aspectRatio:o,naturalWidth:i,naturalHeight:a,width:s,height:u};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=dg({},c)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=n.viewMode,s=i.aspectRatio,u=this.cropped&&a;if(t){var c=Number(n.minCanvasWidth)||0,l=Number(n.minCanvasHeight)||0;o>1?(c=Math.max(c,r.width),l=Math.max(l,r.height),3===o&&(l*s>c?c=l*s:l=c/s)):o>0&&(c?c=Math.max(c,u?a.width:0):l?l=Math.max(l,u?a.height:0):u&&(c=a.width,(l=a.height)*s>c?c=l*s:l=c/s));var d=Ng({aspectRatio:s,width:c,height:l});c=d.width,l=d.height,i.minWidth=c,i.minHeight=l,i.maxWidth=1/0,i.maxHeight=1/0}if(e)if(o>(u?0:1)){var f=r.width-i.width,h=r.height-i.height;i.minLeft=Math.min(0,f),i.minTop=Math.min(0,h),i.maxLeft=Math.max(0,f),i.maxTop=Math.max(0,h),u&&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,f),i.maxLeft=Math.max(0,f)),i.height>=r.height&&(i.minTop=Math.min(0,h),i.maxTop=Math.max(0,h))))}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,u=e*a+n*o;return r>90?{width:u,height:s}:{width:s,height:u}}({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),u=n.height*(o/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(u-n.height)/2,n.width=s,n.height=u,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=dg({},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 u=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,l=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;u=Math.min(u,r.width),c=Math.min(c,r.height),s&&(u&&c?c*s>u?c=u/s:u=c*s:u?c=u/s:c&&(u=c*s),d*s>l?d=l/s:l=d*s),a.minWidth=Math.min(u,l),a.minHeight=Math.min(c,d),a.maxWidth=l,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?pm:fm),vg(this.cropBox,dg({width:n.width,height:n.height},Mg({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),wg(this.element,Pm,this.getData())}},Ug={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,lg(o,function(t){var n=document.createElement("img");Tg(t,Lm,{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(){lg(this.previews,function(t){var e=_g(t,Lm);vg(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(ig(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(Eg(e)))}(t,Lm)})},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,u=n.top-e.top-t.top;this.cropped&&!this.disabled&&(vg(this.viewBoxImage,dg({width:a,height:o},Mg(dg({translateX:-s,translateY:-u},t)))),lg(this.previews,function(e){var n=_g(e,Lm),c=n.width,l=n.height,d=c,f=l,h=1;r&&(f=i*(h=c/r)),i&&f>l&&(d=r*(h=l/i),f=l),vg(e,{width:d,height:f}),vg(e.getElementsByTagName("img")[0],dg({width:a*h,height:o*h},Mg(dg({translateX:-s*h,translateY:-u*h},t))))}))}},jg={bind:function(){var t=this.element,e=this.options,n=this.cropper;sg(e.cropstart)&&Cg(t,Bm,e.cropstart),sg(e.cropmove)&&Cg(t,Hm,e.cropmove),sg(e.cropend)&&Cg(t,Fm,e.cropend),sg(e.crop)&&Cg(t,Pm,e.crop),sg(e.zoom)&&Cg(t,Xm,e.zoom),Cg(n,jm,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&Cg(n,Gm,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Cg(n,Um,this.onDblclick=this.dblclick.bind(this)),Cg(t.ownerDocument,Vm,this.onCropMove=this.cropMove.bind(this)),Cg(t.ownerDocument,$m,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&Cg(window,Wm,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;sg(e.cropstart)&&Ag(t,Bm,e.cropstart),sg(e.cropmove)&&Ag(t,Hm,e.cropmove),sg(e.cropend)&&Ag(t,Fm,e.cropend),sg(e.crop)&&Ag(t,Pm,e.crop),sg(e.zoom)&&Ag(t,Xm,e.zoom),Ag(n,jm,this.onCropStart),e.zoomable&&e.zoomOnWheel&&Ag(n,Gm,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Ag(n,Um,this.onDblclick),Ag(t.ownerDocument,Vm,this.onCropMove),Ag(t.ownerDocument,$m,this.onCropEnd),e.responsive&&Ag(window,Wm,this.onResize)}},Vg={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(lg(t,function(e,n){t[n]=e*s})),this.setCropBoxData(lg(e,function(t,n){e[n]=t*s})))}},dblclick:function(){this.disabled||this.options.dragMode===Nm||this.setDragMode(function(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}(this.dragBox,Im)?Dm:Mm)},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)&&(eg(e)&&1!==e||eg(n)&&0!==n||t.ctrlKey))){var r,i=this.options,a=this.pointers;t.changedTouches?lg(t.changedTouches,function(t){a[t.identifier]=Dg(t)}):a[t.pointerId||0]=Dg(t),r=Object.keys(a).length>1&&i.zoomable&&i.zoomOnTouch?vm:_g(t.target,Rm),qm.test(r)&&!1!==wg(this.element,Bm,{originalEvent:t,action:r})&&(t.preventDefault(),this.action=r,this.cropping=!1,r===hm&&(this.cropping=!0,mg(this.dragBox,Om)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==wg(this.element,Hm,{originalEvent:t,action:e})&&(t.changedTouches?lg(t.changedTouches,function(t){dg(n[t.identifier]||{},Dg(t,!0))}):dg(n[t.pointerId||0]||{},Dg(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?lg(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,yg(this.dragBox,Om,this.cropped&&this.options.modal)),wg(this.element,Fm,{originalEvent:t,action:e}))}}},$g={change:function(t){var e,n=this.options,r=this.canvasData,i=this.containerData,a=this.cropBoxData,o=this.pointers,s=this.action,u=n.aspectRatio,c=a.left,l=a.top,d=a.width,f=a.height,h=c+d,p=l+f,v=0,m=0,g=i.width,y=i.height,b=!0;!u&&t.shiftKey&&(u=d&&f?d/f:1),this.limited&&(v=a.minLeft,m=a.minTop,g=v+Math.min(i.width,r.width,r.left+r.width),y=m+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 mm:h+_.x>g&&(_.x=g-h);break;case gm:c+_.xy&&(_.y=y-p)}};switch(s){case fm:c+=_.x,l+=_.y;break;case mm:if(_.x>=0&&(h>=g||u&&(l<=m||p>=y))){b=!1;break}T(mm),(d+=_.x)<0&&(s=gm,c-=d=-d),u&&(f=d/u,l+=(a.height-f)/2);break;case bm:if(_.y<=0&&(l<=m||u&&(c<=v||h>=g))){b=!1;break}T(bm),f-=_.y,l+=_.y,f<0&&(s=ym,l-=f=-f),u&&(d=f*u,c+=(a.width-d)/2);break;case gm:if(_.x<=0&&(c<=v||u&&(l<=m||p>=y))){b=!1;break}T(gm),d-=_.x,c+=_.x,d<0&&(s=mm,c-=d=-d),u&&(f=d/u,l+=(a.height-f)/2);break;case ym:if(_.y>=0&&(p>=y||u&&(c<=v||h>=g))){b=!1;break}T(ym),(f+=_.y)<0&&(s=bm,l-=f=-f),u&&(d=f*u,c+=(a.width-d)/2);break;case Em:if(u){if(_.y<=0&&(l<=m||h>=g)){b=!1;break}T(bm),f-=_.y,l+=_.y,d=f*u}else T(bm),T(mm),_.x>=0?hm&&(f-=_.y,l+=_.y):(f-=_.y,l+=_.y);d<0&&f<0?(s=Sm,l-=f=-f,c-=d=-d):d<0?(s=_m,c-=d=-d):f<0&&(s=Tm,l-=f=-f);break;case _m:if(u){if(_.y<=0&&(l<=m||c<=v)){b=!1;break}T(bm),f-=_.y,l+=_.y,d=f*u,c+=a.width-d}else T(bm),T(gm),_.x<=0?c>v?(d-=_.x,c+=_.x):_.y<=0&&l<=m&&(b=!1):(d-=_.x,c+=_.x),_.y<=0?l>m&&(f-=_.y,l+=_.y):(f-=_.y,l+=_.y);d<0&&f<0?(s=Tm,l-=f=-f,c-=d=-d):d<0?(s=Em,c-=d=-d):f<0&&(s=Sm,l-=f=-f);break;case Sm:if(u){if(_.x<=0&&(c<=v||p>=y)){b=!1;break}T(gm),d-=_.x,c+=_.x,f=d/u}else T(ym),T(gm),_.x<=0?c>v?(d-=_.x,c+=_.x):_.y>=0&&p>=y&&(b=!1):(d-=_.x,c+=_.x),_.y>=0?p=0&&(h>=g||p>=y)){b=!1;break}T(mm),f=(d+=_.x)/u}else T(ym),T(mm),_.x>=0?h=0&&p>=y&&(b=!1):d+=_.x,_.y>=0?pMath.abs(n)&&(n=u)})}),n}(o),t),b=!1;break;case hm:if(!_.x||!_.y){b=!1;break}e=xg(this.cropper),c=E.startX-e.left,l=E.startY-e.top,d=a.minWidth,f=a.minHeight,_.x>0?s=_.y>0?Tm:Em:_.x<0&&(c-=d,s=_.y>0?Sm:_m),_.y<0&&(l-=f),this.cropped||(gg(this.cropBox,Cm),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}b&&(a.width=d,a.height=f,a.left=c,a.top=l,this.action=s,this.renderCropBox()),lg(o,function(t){t.startX=t.endX,t.startY=t.endY})}},zg={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&mg(this.dragBox,Om),gg(this.cropBox,Cm),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=dg({},this.initialImageData),this.canvasData=dg({},this.initialCanvasData),this.cropBoxData=dg({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(dg(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),gg(this.dragBox,Om),mg(this.cropBox,Cm)),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,lg(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,gg(this.cropper,Am)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,mg(this.cropper,Am)),this},destroy:function(){var t=this.element;return t[dm]?(t[dm]=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(rg(t)?t:r+Number(t),rg(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&&(eg(t)&&(n.left=t,r=!0),eg(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,u=i.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*t,l=u*t;if(!1===wg(this.element,Xm,{ratio:t,oldRatio:a/s,originalEvent:n}))return this;if(n){var d=this.pointers,f=xg(this.cropper),h=d&&Object.keys(d).length?function(t){var e=0,n=0,r=0;return lg(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)*((h.pageX-f.left-i.left)/a),i.top-=(l-o)*((h.pageY-f.top-i.top)/o)}else og(e)&&eg(e.x)&&eg(e.y)?(i.left-=(c-a)*((e.x-i.left)/a),i.top-=(l-o)*((e.y-i.top)/o)):(i.left-=(c-a)/2,i.top-=(l-o)/2);i.width=c,i.height=l,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return eg(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,eg(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(eg(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&&(eg(t)&&(n.scaleX=t,r=!0),eg(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(lg(t,function(e,n){t[n]=e/o}),e){var s=Math.round(t.y+t.height),u=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=u-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&&og(t)){var a=!1;e.rotatable&&eg(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,a=!0),e.scalable&&(eg(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,a=!0),eg(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var o=n.width/n.naturalWidth;eg(t.x)&&(i.left=t.x*o+r.left),eg(t.y)&&(i.top=t.y*o+r.top),eg(t.width)&&(i.width=t.width*o),eg(t.height)&&(i.height=t.height*o),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?dg({},this.containerData):{}},getImageData:function(){return this.sized?dg({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&lg(["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&&og(t)&&(eg(t.left)&&(e.left=t.left),eg(t.top)&&(e.top=t.top),eg(t.width)?(e.width=t.width,e.height=t.width/n):eg(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&&og(t)&&(eg(t.left)&&(r.left=t.left),eg(t.top)&&(r.top=t.top),eg(t.width)&&t.width!==r.width&&(e=!0,r.width=t.width),eg(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,u=void 0===s?0:s,c=e.scaleX,l=void 0===c?1:c,d=e.scaleY,f=void 0===d?1:d,h=n.aspectRatio,p=n.naturalWidth,v=n.naturalHeight,m=r.fillColor,g=void 0===m?"transparent":m,y=r.imageSmoothingEnabled,b=void 0===y||y,E=r.imageSmoothingQuality,_=void 0===E?"low":E,T=r.maxWidth,S=void 0===T?1/0:T,I=r.maxHeight,A=void 0===I?1/0:I,C=r.minWidth,w=void 0===C?0:C,x=r.minHeight,O=void 0===x?0:x,k=document.createElement("canvas"),R=k.getContext("2d"),L=Ng({aspectRatio:h,width:S,height:A}),M=Ng({aspectRatio:h,width:w,height:O},"cover"),D=Math.min(L.width,Math.max(M.width,p)),N=Math.min(L.height,Math.max(M.height,v)),P=Ng({aspectRatio:i,width:S,height:A}),F=Ng({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 k.width=hg(D),k.height=hg(N),R.fillStyle=g,R.fillRect(0,0,D,N),R.save(),R.translate(D/2,N/2),R.rotate(u*Math.PI/180),R.scale(l,f),R.imageSmoothingEnabled=b,R.imageSmoothingQuality=_,R.drawImage.apply(R,[t].concat(am(U.map(function(t){return Math.floor(hg(t))})))),R.restore(),k}(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,u=n.width/Math.floor(e.naturalWidth);1!==u&&(i*=u,a*=u,o*=u,s*=u);var c=o/s,l=Ng({aspectRatio:c,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),d=Ng({aspectRatio:c,width:t.minWidth||0,height:t.minHeight||0},"cover"),f=Ng({aspectRatio:c,width:t.width||(1!==u?n.width:o),height:t.height||(1!==u?n.height:s)}),h=f.width,p=f.height;h=Math.min(l.width,Math.max(d.width,h)),p=Math.min(l.height,Math.max(d.height,p));var v=document.createElement("canvas"),m=v.getContext("2d");v.width=hg(h),v.height=hg(p),m.fillStyle=t.fillColor||"transparent",m.fillRect(0,0,h,p);var g=t.imageSmoothingEnabled,y=void 0===g||g,b=t.imageSmoothingQuality;m.imageSmoothingEnabled=y,b&&(m.imageSmoothingQuality=b);var E,_,T,S,I,A,C=n.width,w=n.height,x=i,O=a;x<=-o||x>C?(x=0,E=0,T=0,I=0):x<=0?(T=-x,x=0,I=E=Math.min(C,o+x)):x<=C&&(T=0,I=E=Math.min(o,C-x)),E<=0||O<=-s||O>w?(O=0,_=0,S=0,A=0):O<=0?(S=-O,O=0,A=_=Math.min(w,s+O)):O<=w&&(S=0,A=_=Math.min(s,w-O));var k=[x,O,E,_];if(I>0&&A>0){var R=h/o;k.push(T*R,S*R,I*R,A*R)}return m.drawImage.apply(m,[n].concat(am(k.map(function(t){return Math.floor(hg(t))})))),v},setAspectRatio:function(t){var e=this.options;return this.disabled||rg(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===Mm,a=e.movable&&t===Dm;t=i||a?t:Nm,e.dragMode=t,Tg(n,Rm,t),yg(n,Im,i),yg(n,km,a),e.cropBoxMovable||(Tg(r,Rm,t),yg(r,Im,i),yg(r,km,a))}return this}},Wg=um.Cropper,Gg=e("aK",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||!Qm.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=dg({},Jm,og(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,n=[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e[dm]){if(e[dm]=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(Zm.test(t))Ym.test(t)?this.read((i=t.replace(Fg,""),a=atob(i),o=new ArrayBuffer(a.length),lg(s=new Uint8Array(o),function(t,e){s[e]=a.charCodeAt(e)}),o)):this.clone();else{var i,a,o,s,u=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=u,u.onabort=c,u.onerror=c,u.ontimeout=c,u.onprogress=function(){u.getResponseHeader("content-type")!==Km&&u.abort()},u.onload=function(){e.read(u.response)},u.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&Rg(t)&&n.crossOrigin&&(t=Lg(t)),u.open("GET",t,!0),u.responseType="arraybuffer",u.withCredentials="use-credentials"===n.crossOrigin,u.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=Hg(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(Pg.apply(null,cg(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}(t,Km);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&&Rg(e)&&(n||(n="anonymous"),r=Lg(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),mg(i,wm),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=um.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(um.navigator.userAgent),r=function(e,n){dg(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.initialImageData=dg({},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(dm,"-container")),o=a.querySelector(".".concat(dm,"-canvas")),s=a.querySelector(".".concat(dm,"-drag-box")),u=a.querySelector(".".concat(dm,"-crop-box")),c=u.querySelector(".".concat(dm,"-face"));this.container=r,this.cropper=a,this.canvas=o,this.dragBox=s,this.cropBox=u,this.viewBox=a.querySelector(".".concat(dm,"-view-box")),this.face=c,o.appendChild(n),mg(t,Cm),r.insertBefore(a,t.nextSibling),gg(n,wm),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,mg(u,Cm),e.guides||mg(u.getElementsByClassName("".concat(dm,"-dashed")),Cm),e.center||mg(u.getElementsByClassName("".concat(dm,"-center")),Cm),e.background&&mg(a,"".concat(dm,"-bg")),e.highlight||mg(c,xm),e.cropBoxMovable&&(mg(c,km),Tg(c,Rm,fm)),e.cropBoxResizable||(mg(u.getElementsByClassName("".concat(dm,"-line")),Cm),mg(u.getElementsByClassName("".concat(dm,"-point")),Cm)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),sg(e.ready)&&Cg(t,zm,e.ready,{once:!0}),wg(t,zm)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var t=this.cropper.parentNode;t&&t.removeChild(this.cropper),gg(this.element,Cm)}}},{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()}}],r=[{key:"noConflict",value:function(){return window.Cropper=Wg,t}},{key:"setDefaults",value:function(t){dg(Jm,og(t)&&t)}}],n&&rm(e.prototype,n),r&&rm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}());dg(Gg.prototype,Bg,Ug,jg,Vg,$g,zg);var Xg,Kg,qg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Zg={};function Yg(){if(Kg)return Xg;Kg=1;var t=function(t){return t&&t.Math===Math&&t};return Xg=t("object"==("undefined"==typeof globalThis?"undefined":S(globalThis))&&globalThis)||t("object"==("undefined"==typeof window?"undefined":S(window))&&window)||t("object"==("undefined"==typeof self?"undefined":S(self))&&self)||t("object"==S(qg)&&qg)||t("object"==S(Xg)&&Xg)||function(){return this}()||Function("return this")()}var Qg,Jg,ty,ey,ny,ry,iy,ay,oy={};function sy(){return Jg?Qg:(Jg=1,Qg=function(t){try{return!!t()}catch(e){return!0}})}function uy(){if(ey)return ty;ey=1;var t=sy();return ty=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function cy(){if(ry)return ny;ry=1;var t=sy();return ny=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function ly(){if(ay)return iy;ay=1;var t=cy(),e=Function.prototype.call;return iy=t?e.bind(e):function(){return e.apply(e,arguments)},iy}var dy,fy,hy,py,vy,my,gy,yy,by,Ey,_y,Ty,Sy,Iy,Ay,Cy,wy,xy,Oy,ky,Ry,Ly,My,Dy,Ny,Py,Fy,Hy,By,Uy,jy,Vy,$y,zy,Wy,Gy,Xy,Ky,qy,Zy,Yy,Qy={};function Jy(){return hy?fy:(hy=1,fy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function tb(){if(vy)return py;vy=1;var t=cy(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return py=t?r:function(t){return function(){return n.apply(t,arguments)}},py}function eb(){if(gy)return my;gy=1;var t=tb(),e=t({}.toString),n=t("".slice);return my=function(t){return n(e(t),8,-1)}}function nb(){return _y?Ey:(_y=1,Ey=function(t){return null==t})}function rb(){if(Sy)return Ty;Sy=1;var t=nb(),e=TypeError;return Ty=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function ib(){if(Ay)return Iy;Ay=1;var t=function(){if(by)return yy;by=1;var t=tb(),e=sy(),n=eb(),r=Object,i=t("".split);return yy=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):r(t)}:r}(),e=rb();return Iy=function(n){return t(e(n))}}function ab(){if(wy)return Cy;wy=1;var t="object"==("undefined"==typeof document?"undefined":S(document))&&document.all;return Cy=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function ob(){if(Oy)return xy;Oy=1;var t=ab();return xy=function(e){return"object"==S(e)?null!==e:t(e)}}function sb(){if(Ry)return ky;Ry=1;var t=Yg(),e=ab();return ky=function(n,r){return arguments.length<2?(i=t[n],e(i)?i:void 0):t[n]&&t[n][r];var i},ky}function ub(){if(My)return Ly;My=1;var t=tb();return Ly=t({}.isPrototypeOf)}function cb(){if(Fy)return Py;Fy=1;var t,e,n=Yg(),r=function(){if(Ny)return Dy;Ny=1;var t=Yg().navigator,e=t&&t.userAgent;return Dy=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]),Py=e}function lb(){if(By)return Hy;By=1;var t=cb(),e=sy(),n=Yg().String;return Hy=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function db(){if(jy)return Uy;jy=1;var t=lb();return Uy=t&&!Symbol.sham&&"symbol"==S(Symbol.iterator)}function fb(){if($y)return Vy;$y=1;var t=sb(),e=ab(),n=ub(),r=db(),i=Object;return Vy=r?function(t){return"symbol"==S(t)}:function(r){var a=t("Symbol");return e(a)&&n(a.prototype,i(r))}}function hb(){if(Wy)return zy;Wy=1;var t=String;return zy=function(e){try{return t(e)}catch(n){return"Object"}}}function pb(){if(Xy)return Gy;Xy=1;var t=ab(),e=hb(),n=TypeError;return Gy=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function vb(){if(qy)return Ky;qy=1;var t=pb(),e=nb();return Ky=function(n,r){var i=n[r];return e(i)?void 0:t(i)},Ky}function mb(){if(Yy)return Zy;Yy=1;var t=ly(),e=ab(),n=ob(),r=TypeError;return Zy=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")}}var gb,yb,bb,Eb,_b,Tb,Sb,Ib,Ab,Cb,wb,xb,Ob,kb,Rb,Lb,Mb,Db,Nb,Pb,Fb,Hb,Bb,Ub,jb={exports:{}};function Vb(){return yb?gb:(yb=1,gb=!1)}function $b(){if(Eb)return bb;Eb=1;var t=Yg(),e=Object.defineProperty;return bb=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(i){t[n]=r}return r},bb}function zb(){if(_b)return jb.exports;_b=1;var t=Vb(),e=Yg(),n=$b(),r="__core-js_shared__",i=jb.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"}),jb.exports}function Wb(){if(Sb)return Tb;Sb=1;var t=zb();return Tb=function(e,n){return t[e]||(t[e]=n||{})},Tb}function Gb(){if(Ab)return Ib;Ab=1;var t=rb(),e=Object;return Ib=function(n){return e(t(n))}}function Xb(){if(wb)return Cb;wb=1;var t=tb(),e=Gb(),n=t({}.hasOwnProperty);return Cb=Object.hasOwn||function(t,r){return n(e(t),r)},Cb}function Kb(){if(Ob)return xb;Ob=1;var t=tb(),e=0,n=Math.random(),r=t(1.1.toString);return xb=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)},xb}function qb(){if(Rb)return kb;Rb=1;var t=Yg(),e=Wb(),n=Xb(),r=Kb(),i=lb(),a=db(),o=t.Symbol,s=e("wks"),u=a?o.for||o:o&&o.withoutSetter||r;return kb=function(t){return n(s,t)||(s[t]=i&&n(o,t)?o[t]:u("Symbol."+t)),s[t]}}function Zb(){if(Mb)return Lb;Mb=1;var t=ly(),e=ob(),n=fb(),r=vb(),i=mb(),a=qb(),o=TypeError,s=a("toPrimitive");return Lb=function(a,u){if(!e(a)||n(a))return a;var c,l=r(a,s);if(l){if(void 0===u&&(u="default"),c=t(l,a,u),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(a,u)}}function Yb(){if(Nb)return Db;Nb=1;var t=Zb(),e=fb();return Db=function(n){var r=t(n,"string");return e(r)?r:r+""},Db}function Qb(){if(Fb)return Pb;Fb=1;var t=Yg(),e=ob(),n=t.document,r=e(n)&&e(n.createElement);return Pb=function(t){return r?n.createElement(t):{}}}function Jb(){if(Bb)return Hb;Bb=1;var t=uy(),e=sy(),n=Qb();return Hb=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function tE(){if(Ub)return oy;Ub=1;var t=uy(),e=ly(),n=function(){if(dy)return Qy;dy=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return Qy.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,Qy}(),r=Jy(),i=ib(),a=Yb(),o=Xb(),s=Jb(),u=Object.getOwnPropertyDescriptor;return oy.f=t?u:function(t,c){if(t=i(t),c=a(c),s)try{return u(t,c)}catch(l){}if(o(t,c))return r(!e(n.f,t,c),t[c])},oy}var eE,nE,rE,iE,aE,oE,sE,uE={};function cE(){if(nE)return eE;nE=1;var t=uy(),e=sy();return eE=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function lE(){if(iE)return rE;iE=1;var t=ob(),e=String,n=TypeError;return rE=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function dE(){if(aE)return uE;aE=1;var t=uy(),e=Jb(),n=cE(),r=lE(),i=Yb(),a=TypeError,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return uE.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var a=s(t,e);a&&a[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:a[c],enumerable:u in n?n[u]:a[u],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(u){}if("get"in s||"set"in s)throw new a("Accessors not supported");return"value"in s&&(t[n]=s.value),t},uE}function fE(){if(sE)return oE;sE=1;var t=uy(),e=dE(),n=Jy();return oE=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t},oE}var hE,pE,vE,mE,gE,yE,bE,EE,_E,TE,SE,IE,AE,CE,wE,xE={exports:{}};function OE(){if(mE)return vE;mE=1;var t=tb(),e=ab(),n=zb(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),vE=n.inspectSource}function kE(){if(EE)return bE;EE=1;var t=Wb(),e=Kb(),n=t("keys");return bE=function(t){return n[t]||(n[t]=e(t))},bE}function RE(){return TE?_E:(TE=1,_E={})}function LE(){if(IE)return SE;IE=1;var t,e,n,r=function(){if(yE)return gE;yE=1;var t=Yg(),e=ab(),n=t.WeakMap;return gE=e(n)&&/native code/.test(String(n))}(),i=Yg(),a=ob(),o=fE(),s=Xb(),u=zb(),c=kE(),l=RE(),d="Object already initialized",f=i.TypeError,h=i.WeakMap;if(r||u.state){var p=u.state||(u.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,t=function(t,e){if(p.has(t))throw new f(d);return e.facade=t,p.set(t,e),e},e=function(t){return p.get(t)||{}},n=function(t){return p.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(s(t,v))throw new f(d);return e.facade=t,o(t,v,e),e},e=function(t){return s(t,v)?t[v]:{}},n=function(t){return s(t,v)}}return SE={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 f("Incompatible receiver, "+t+" required");return r}}},SE}function ME(){if(AE)return xE.exports;AE=1;var t=tb(),e=sy(),n=ab(),r=Xb(),i=uy(),a=function(){if(pE)return hE;pE=1;var t=uy(),e=Xb(),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 hE={EXISTS:i,PROPER:a,CONFIGURABLE:o}}().CONFIGURABLE,o=OE(),s=LE(),u=s.enforce,c=s.get,l=String,d=Object.defineProperty,f=t("".slice),h=t("".replace),p=t([].join),v=i&&!e(function(){return 8!==d(function(){},"length",{value:8}).length}),m=String(String).split("String"),g=xE.exports=function(t,e,n){"Symbol("===f(l(e),0,7)&&(e="["+h(l(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),v&&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=u(t);return r(o,"source")||(o.source=p(m,"string"==typeof e?e:"")),t};return Function.prototype.toString=g(function(){return n(this)&&c(this).source||o(this)},"toString"),xE.exports}function DE(){if(wE)return CE;wE=1;var t=ab(),e=dE(),n=ME(),r=$b();return CE=function(i,a,o,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:a;if(t(o)&&n(o,c,s),s.global)u?i[a]=o:r(a,o);else{try{s.unsafe?i[a]&&(u=!0):delete i[a]}catch(l){}u?i[a]=o:e.f(i,a,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i},CE}var NE,PE,FE,HE,BE,UE,jE,VE,$E,zE,WE,GE,XE,KE,qE,ZE,YE,QE={};function JE(){if(HE)return FE;HE=1;var t=function(){if(PE)return NE;PE=1;var t=Math.ceil,e=Math.floor;return NE=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)},NE}();return FE=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function t_(){if(UE)return BE;UE=1;var t=JE(),e=Math.max,n=Math.min;return BE=function(r,i){var a=t(r);return a<0?e(a+i,0):n(a,i)},BE}function e_(){if(VE)return jE;VE=1;var t=JE(),e=Math.min;return jE=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function n_(){if(zE)return $E;zE=1;var t=e_();return $E=function(e){return t(e.length)}}function r_(){if(KE)return XE;KE=1;var t=tb(),e=Xb(),n=ib(),r=function(){if(GE)return WE;GE=1;var t=ib(),e=t_(),n=n_(),r=function(r){return function(i,a,o){var s=t(i),u=n(s);if(0===u)return!r&&-1;var c,l=e(o,u);if(r&&a!=a){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((r||l in s)&&s[l]===a)return r||l||0;return!r&&-1}};return WE={includes:r(!0),indexOf:r(!1)}}().indexOf,i=RE(),a=t([].push);return XE=function(t,o){var s,u=n(t),c=0,l=[];for(s in u)!e(i,s)&&e(u,s)&&a(l,s);for(;o.length>c;)e(u,s=o[c++])&&(~r(l,s)||a(l,s));return l},XE}function i_(){return ZE?qE:(ZE=1,qE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var a_,o_,s_,u_,c_,l_,d_,f_,h_,p_,v_,m_,g_,y_,b_,E_,__,T_,S_,I_,A_,C_,w_,x_,O_,k_,R_,L_={};function M_(){if(s_)return o_;s_=1;var t=sb(),e=tb(),n=function(){if(YE)return QE;YE=1;var t=r_(),e=i_().concat("length","prototype");return QE.f=Object.getOwnPropertyNames||function(n){return t(n,e)},QE}(),r=(a_||(a_=1,L_.f=Object.getOwnPropertySymbols),L_),i=lE(),a=e([].concat);return o_=t("Reflect","ownKeys")||function(t){var e=n.f(i(t)),o=r.f;return o?a(e,o(t)):e}}function D_(){if(c_)return u_;c_=1;var t=Xb(),e=M_(),n=tE(),r=dE();return u_=function(i,a,o){for(var s=e(a),u=r.f,c=n.f,l=0;l]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return x_=function(t,u,c,l,d,f){var h=c+t.length,p=l.length,v=s;return void 0!==d&&(d=e(d),v=o),i(f,v,function(e,i){var o;switch(r(i,0)){case"$":return"$";case"&":return t;case"`":return a(u,0,c);case"'":return a(u,h);case"<":o=d[a(i,1,-1)];break;default:var s=+i;if(0===s)return e;if(s>p){var f=n(s/10);return 0===f?e:f<=p?void 0===l[f-1]?r(i,1):l[f-1]+r(i,1):e}o=l[s-1]}return void 0===o?"":o})},x_}function j_(){if(k_)return Zg;k_=1;var t=N_(),e=ly(),n=tb(),r=rb(),i=ab(),a=ob(),o=function(){if(v_)return p_;v_=1;var t=ob(),e=eb(),n=qb()("match");return p_=function(r){var i;return t(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===e(r))}}(),s=F_(),u=vb(),c=B_(),l=U_(),d=qb(),f=Vb(),h=d("replace"),p=TypeError,v=n("".indexOf),m=n("".replace),g=n("".slice),y=Math.max;return t({target:"String",proto:!0},{replaceAll:function(t,n){var d,b,E,_,T,S,I,A,C,w,x=r(this),O=0,k="";if(a(t)){if((d=o(t))&&(b=s(r(c(t))),!~v(b,"g")))throw new p("`.replaceAll` does not allow non-global regexes");if(E=u(t,h))return e(E,t,x,n);if(f&&d)return m(s(x),t,n)}for(_=s(x),T=s(t),(S=i(n))||(n=s(n)),I=T.length,A=y(1,I),C=v(_,T);-1!==C;)w=S?s(n(T,C,_)):l(T,_,C,[],void 0,n),k+=g(_,O,C)+w,O=C+I,C=C+A>_.length?-1:v(_,T,C+A);return O<_.length&&(k+=g(_,O)),k}}),Zg}var V_,$_,z_={};var W_,G_,X_,K_,q_,Z_,Y_,Q_,J_,tT,eT,nT,rT,iT,aT={};function oT(){if(G_)return W_;G_=1;var t=r_(),e=i_();return W_=Object.keys||function(n){return t(n,e)},W_}function sT(){if(q_)return K_;q_=1;var t=sb();return K_=t("document","documentElement")}function uT(){if(Y_)return Z_;Y_=1;var t,e=lE(),n=function(){if(X_)return aT;X_=1;var t=uy(),e=cE(),n=dE(),r=lE(),i=ib(),a=oT();return aT.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var o,s=i(e),u=a(e),c=u.length,l=0;c>l;)n.f(t,o=u[l++],s[o]);return t},aT}(),r=i_(),i=RE(),a=sT(),o=Qb(),s=kE(),u="prototype",c="script",l=s("IE_PROTO"),d=function(){},f=function(t){return"<"+c+">"+t+""},h=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(l){}var e,n,i;p="undefined"!=typeof document?document.domain&&t?h(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(f("document.F=Object")),e.close(),e.F):h(t);for(var s=r.length;s--;)delete p[u][r[s]];return p()};return i[l]=!0,Z_=Object.create||function(t,r){var i;return null!==t?(d[u]=e(t),i=new d,d[u]=null,i[l]=t):i=p(),void 0===r?i:n.f(i,r)},Z_}function cT(){if(rT)return nT;rT=1;var t,e,n=ly(),r=tb(),i=F_(),a=H_(),o=function(){if($_)return V_;$_=1;var t=sy(),e=Yg().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 V_={BROKEN_CARET:i,MISSED_STICKY:r,UNSUPPORTED_Y:n}}(),s=Wb(),u=uT(),c=LE().get,l=function(){if(J_)return Q_;J_=1;var t=sy(),e=Yg().RegExp;return Q_=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),d=function(){if(eT)return tT;eT=1;var t=sy(),e=Yg().RegExp;return tT=t(function(){var t=e("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})}(),f=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,p=h,v=r("".charAt),m=r("".indexOf),g=r("".replace),y=r("".slice),b=(e=/b*/g,n(h,t=/a/,"a"),n(h,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=o.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];return(b||_||E||l||d)&&(p=function(t){var e,r,o,s,l,d,T,S=this,I=c(S),A=i(t),C=I.raw;if(C)return C.lastIndex=S.lastIndex,e=n(p,C,A),S.lastIndex=C.lastIndex,e;var w=I.groups,x=E&&S.sticky,O=n(a,S),k=S.source,R=0,L=A;if(x&&(O=g(O,"y",""),-1===m(O,"g")&&(O+="g"),L=y(A,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(A,S.lastIndex-1))&&(k="(?: "+k+")",L=" "+L,R++),r=new RegExp("^(?:"+k+")",O)),_&&(r=new RegExp("^"+k+"$(?!\\s)",O)),b&&(o=S.lastIndex),s=n(h,x?r:S,L),x?s?(s.input=y(s.input,R),s[0]=y(s[0],R),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:b&&s&&(S.lastIndex=S.global?s.index+s[0].length:o),_&&s&&s.length>1&&n(f,s[0],r,function(){for(l=1;l=h?t?"":void 0:(c=a(d,f))<55296||c>56319||f+1===h||(l=a(d,f+1))<56320||l>57343?t?i(d,f):c:t?o(d,f,f+2):l-56320+(c-55296<<10)+65536}};return vT={codeAt:s(!1),charAt:s(!0)}}().charAt;return gT=function(e,n,r){return n+(r?t(e,n).length:1)},gT}function NT(){if(_T)return MT;_T=1;var t=function(){if(fT)return dT;fT=1;var t=cy(),e=Function.prototype,n=e.apply,r=e.call;return dT="object"==("undefined"==typeof Reflect?"undefined":S(Reflect))&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),dT}(),e=ly(),n=tb(),r=function(){if(pT)return hT;pT=1,lT();var t=ly(),e=DE(),n=cT(),r=sy(),i=qb(),a=fE(),o=i("species"),s=RegExp.prototype;return hT=function(u,c,l,d){var f=i(u),h=!r(function(){var t={};return t[f]=function(){return 7},7!==""[u](t)}),p=h&&!r(function(){var t=!1,e=/a/;return"split"===u&&((e={}).constructor={},e.constructor[o]=function(){return e},e.flags="",e[f]=/./[f]),e.exec=function(){return t=!0,null},e[f](""),!t});if(!h||!p||l){var v=/./[f],m=c(f,""[u],function(e,r,i,a,o){var u=r.exec;return u===n||u===s.exec?h&&!o?{done:!0,value:t(v,r,i,a)}:{done:!0,value:t(e,i,r,a)}:{done:!1}});e(String.prototype,u,m[0]),e(s,f,m[1])}d&&a(s[f],"sham",!0)},hT}(),i=sy(),a=lE(),o=ab(),s=ob(),u=JE(),c=e_(),l=F_(),d=rb(),f=DT(),h=vb(),p=U_(),v=B_(),m=function(){if(ET)return bT;ET=1;var t=ly(),e=lE(),n=ab(),r=eb(),i=cT(),a=TypeError;return bT=function(o,s){var u=o.exec;if(n(u)){var c=t(u,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")},bT}(),g=qb()("replace"),y=Math.max,b=Math.min,E=n([].concat),_=n([].push),T=n("".indexOf),I=n("".slice),A=function(t){return void 0===t?t:String(t)},C="$0"==="a".replace(/./,"$0"),w=!!/./[g]&&""===/./[g]("a","$0");return r("replace",function(n,r,i){var S=w?"$":"$0";return[function(t,n){var i=d(this),a=s(t)?h(t,g):void 0;return a?e(a,t,i,n):e(r,l(i),t,n)},function(e,n){var s=a(this),d=l(e);if("string"==typeof n&&-1===T(n,S)&&-1===T(n,"$<")){var h=i(r,s,d,n);if(h.done)return h.value}var g=o(n);g||(n=l(n));var C,w=l(v(s)),x=-1!==T(w,"g");x&&(C=-1!==T(w,"u"),s.lastIndex=0);for(var O,k=[];null!==(O=m(s,d))&&(_(k,O),x);){""===l(O[0])&&(s.lastIndex=f(d,c(s.lastIndex),C))}for(var R="",L=0,M=0;M=L&&(R+=I(d,L,P)+D,L=P+N.length)}return R+I(d,L)}]},!!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})||!C||w),MT}function PT(){if(ST)return TT;ST=1;var t=Yg(),e=tb();return TT=function(n,r){return e(t[n].prototype[r])}}function FT(){if(wT)return CT;wT=1;var t=function(){if(AT)return IT;AT=1,lT(),NT(),j_();var t=PT();return IT=t("String","replaceAll")}();return CT=t}function HT(){if(RT)return kT;RT=1,R_||(R_=1,j_());var t=function(){if(OT)return xT;OT=1;var t=FT();return xT=t}();return kT=t}LT||(LT=1,HT());var BT=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(){UT&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zT?(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(){UT&&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,r=$T.some(function(t){return!!~n.indexOf(t)});r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),GT=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),iS="undefined"!=typeof WeakMap?new WeakMap:new BT,aS=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=WT.getInstance(),r=new rS(e,n,this);iS.set(this,r)};["observe","unobserve","disconnect"].forEach(function(t){aS.prototype[t]=function(){var e;return(e=iS.get(this))[t].apply(e,arguments)}});e("aU",void 0!==jT.ResizeObserver?jT.ResizeObserver:aS)}}})}();
0