pxt-core 10.3.1 → 10.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/target.js +1 -1
- package/built/tests/blocksrunner.js +7 -1
- package/built/tests/blockssetup.js +7 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtasseteditor.js +1 -1
- package/built/web/pxtembed.js +1 -1
- package/built/web/runnerembed.js +1 -1
- package/built/web/teachertool/js/{main.8693c6a3.js → main.6eb7141c.js} +2 -2
- package/package.json +1 -1
- package/webapp/public/teachertool.html +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see main.
|
|
2
|
-
!function(){var e={6186:function(e,t,n){"use strict";var r=n(8466),i=n(3705),a=n(6),o=n(3830);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!i)throw Error(s(227));var l=new Set,u={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,v={},m={};function y(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(m,e)||!h.call(v,e)&&(p.test(e)?m[e]=!0:(v[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,k=60106,C=60107,_=60108,T=60114,P=60109,O=60110,j=60112,A=60113,I=60120,N=60115,R=60116,L=60121,M=60128,D=60129,F=60130,B=60131;if("function"==typeof Symbol&&Symbol.for){var U=Symbol.for;S=U("react.element"),k=U("react.portal"),C=U("react.fragment"),_=U("react.strict_mode"),T=U("react.profiler"),P=U("react.provider"),O=U("react.context"),j=U("react.forward_ref"),A=U("react.suspense"),I=U("react.suspense_list"),N=U("react.memo"),R=U("react.lazy"),L=U("react.block"),U("react.scope"),M=U("react.opaque.id"),D=U("react.debug_trace_mode"),F=U("react.offscreen"),B=U("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function W(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var $=!1;function q(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function G(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return q(e.type,!1);case 11:return q(e.type.render,!1);case 22:return q(e.type._render,!1);case 1:return q(e.type,!0);default:return""}}function X(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case k:return"Portal";case T:return"Profiler";case _:return"StrictMode";case A:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return X(e.type);case L:return X(e._render);case R:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ee(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ne(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){ne(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ie(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ce(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ve(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ye,ge=(ye=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ye(e,t)}))}:ye);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var we={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function Ee(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||we.hasOwnProperty(e)&&we[e]?(""+t).trim():t+"px"}function Se(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Ee(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(we).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),we[t]=we[e]}))}));var ke=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ce(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Te(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Oe=null,je=null;function Ae(e){if(e=ti(e)){if("function"!=typeof Pe)throw Error(s(280));var t=e.stateNode;t&&(t=ri(t),Pe(e.stateNode,e.type,t))}}function Ie(e){Oe?je?je.push(e):je=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=je;if(je=Oe=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Re(e,t){return e(t)}function Le(e,t,n,r,i){return e(t,n,r,i)}function Me(){}var De=Re,Fe=!1,Be=!1;function Ue(){null===Oe&&null===je||(Me(),Ne())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=ri(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var Ve=!1;if(d)try{var He={};Object.defineProperty(He,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ye){Ve=!1}function We(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var $e=!1,qe=null,Ge=!1,Xe=null,Ye={onError:function(e){$e=!0,qe=e}};function Ke(e,t,n,r,i,a,o,s,l){$e=!1,qe=null,We.apply(Ye,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ze(e){if(Qe(e)!==e)throw Error(s(188))}function et(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ze(i),e;if(a===r)return Ze(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function tt(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var nt,rt,it,at,ot=!1,st=[],lt=null,ut=null,ct=null,ft=new Map,dt=new Map,pt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function vt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ft.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function yt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=vt(t,n,r,i,a),null!==t&&null!==(t=ti(t))&&rt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=ei(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Je(n)))return e.blockedOn=t,void at(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){it(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=en(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ti(n))&&rt(t),e.blockedOn=n,!1;t.shift()}return!0}function wt(e,t,n){bt(e)&&n.delete(t)}function xt(){for(ot=!1;0<st.length;){var e=st[0];if(null!==e.blockedOn){null!==(e=ti(e.blockedOn))&&nt(e);break}for(var t=e.targetContainers;0<t.length;){var n=en(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&st.shift()}null!==lt&&bt(lt)&&(lt=null),null!==ut&&bt(ut)&&(ut=null),null!==ct&&bt(ct)&&(ct=null),ft.forEach(wt),dt.forEach(wt)}function Et(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,xt)))}function St(e){function t(t){return Et(t,e)}if(0<st.length){Et(st[0],e);for(var n=1;n<st.length;n++){var r=st[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&Et(lt,e),null!==ut&&Et(ut,e),null!==ct&&Et(ct,e),ft.forEach(t),dt.forEach(t),n=0;n<pt.length;n++)(r=pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pt.length&&null===(n=pt[0]).blockedOn;)gt(n),null===n.blockedOn&&pt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ct={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},_t={},Tt={};function Pt(e){if(_t[e])return _t[e];if(!Ct[e])return e;var t,n=Ct[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tt)return _t[e]=n[t];return e}d&&(Tt=document.createElement("div").style,"AnimationEvent"in window||(delete Ct.animationend.animation,delete Ct.animationiteration.animation,delete Ct.animationstart.animation),"TransitionEvent"in window||delete Ct.transitionend.transition);var Ot=Pt("animationend"),jt=Pt("animationiteration"),At=Pt("animationstart"),It=Pt("transitionend"),Nt=new Map,Rt=new Map,Lt=["abort","abort",Ot,"animationEnd",jt,"animationIteration",At,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",It,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rt.set(r,t),Nt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Dt=8;function Ft(e){if(0!=(1&e))return Dt=15,1;if(0!=(2&e))return Dt=14,2;if(0!=(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!=(32&e)?(Dt=11,32):0!=(t=192&e)?(Dt=10,t):0!=(256&e)?(Dt=9,256):0!=(t=3584&e)?(Dt=8,t):0!=(4096&e)?(Dt=7,4096):0!=(t=4186112&e)?(Dt=6,t):0!=(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!=(134217728&e)?(Dt=3,134217728):0!=(t=805306368&e)?(Dt=2,t):0!=(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Bt(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Dt=15;else if(0!=(a=134217727&n)){var l=a&~o;0!==l?(r=Ft(l),i=Dt):0!=(s&=a)&&(r=Ft(s),i=Dt)}else 0!=(a=n&~o)?(r=Ft(a),i=Dt):0!==s&&(r=Ft(s),i=Dt);if(0===r)return 0;if(r=n&((0>(r=31-$t(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Ft(t),i<=Dt)return t;Dt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-$t(t)),r|=e[n],t&=~i;return r}function Ut(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?zt(10,t):e;case 10:return 0===(e=Vt(192&~t))?zt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&0===(e=Vt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function Vt(e){return e&-e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-$t(t)]=n}var $t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Gt|0)|0},qt=Math.log,Gt=Math.LN2,Xt=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,Kt=!0;function Qt(e,t,n,r){Fe||Me();var i=Zt,a=Fe;Fe=!0;try{Le(i,e,t,n,r)}finally{(Fe=a)||Ue()}}function Jt(e,t,n,r){Yt(Xt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var i;if(Kt)if((i=0==(4&t))&&0<st.length&&-1<ht.indexOf(e))e=vt(null,e,t,n,r),st.push(e);else{var a=en(e,t,n,r);if(null===a)i&&mt(e,r);else{if(i){if(-1<ht.indexOf(e))return e=vt(a,e,t,n,r),void st.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return lt=yt(lt,e,t,n,r,i),!0;case"dragenter":return ut=yt(ut,e,t,n,r,i),!0;case"mouseover":return ct=yt(ct,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ft.set(a,yt(ft.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,dt.set(a,yt(dt.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;mt(e,r)}Nr(e,t,r,null,n)}}}function en(e,t,n,r){var i=Te(r);if(null!==(i=ei(i))){var a=Qe(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Je(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Nr(e,t,r,i,n),null}var tn=null,nn=null,rn=null;function an(){if(rn)return rn;var e,t,n=nn,r=n.length,i="value"in tn?tn.value:tn.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return rn=i.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function sn(){return!0}function ln(){return!1}function un(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?sn:ln,this.isPropagationStopped=ln,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=sn)},persist:function(){},isPersistent:sn}),t}var cn,fn,dn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=un(pn),vn=a({},pn,{view:0,detail:0}),mn=un(vn),yn=a({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,fn=e.screenY-dn.screenY):fn=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:fn}}),gn=un(yn),bn=un(a({},yn,{dataTransfer:0})),wn=un(a({},vn,{relatedTarget:0})),xn=un(a({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=un(a({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),Sn=un(a({},pn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Pn(){return Tn}var On=un(a({},vn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),jn=un(a({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=un(a({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),In=un(a({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=un(a({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Rn=[9,13,27,32],Ln=d&&"CompositionEvent"in window,Mn=null;d&&"documentMode"in document&&(Mn=document.documentMode);var Dn=d&&"TextEvent"in window&&!Mn,Fn=d&&(!Ln||Mn&&8<Mn&&11>=Mn),Bn=String.fromCharCode(32),Un=!1;function zn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function qn(e,t,n,r){Ie(r),0<(t=Lr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Xn=null;function Yn(e){Tr(e,0)}function Kn(e){if(J(ni(e)))return e}function Qn(e,t){if("change"===e)return t}var Jn=!1;if(d){var Zn;if(d){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Zn=er}else Zn=!1;Jn=Zn&&(!document.documentMode||9<document.documentMode)}function nr(){Gn&&(Gn.detachEvent("onpropertychange",rr),Xn=Gn=null)}function rr(e){if("value"===e.propertyName&&Kn(Xn)){var t=[];if(qn(t,Xn,e,Te(e)),e=Yn,Fe)e(t);else{Fe=!0;try{Re(e,t)}finally{Fe=!1,Ue()}}}}function ir(e,t,n){"focusin"===e?(nr(),Xn=n,(Gn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Xn)}function or(e,t){if("click"===e)return Kn(t)}function sr(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=d&&"documentMode"in document&&11>=document.documentMode,yr=null,gr=null,br=null,wr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==yr||yr!==Z(r)||(r="selectionStart"in(r=yr)&&vr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Lr(gr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Lt,2);for(var Er="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<Er.length;Sr++)Rt.set(Er[Sr],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function _r(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,o,l,u){if(Ke.apply(this,arguments),$e){if(!$e)throw Error(s(198));var c=qe;$e=!1,qe=null,Ge||(Ge=!0,Xe=c)}}(r,t,void 0,e),e.currentTarget=null}function Tr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;_r(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;_r(i,s,u),a=l}}}if(Ge)throw e=Xe,Ge=!1,Xe=null,e}function Pr(e,t){var n=ii(t),r=e+"__bubble";n.has(r)||(Ir(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function jr(e){e[Or]||(e[Or]=!0,l.forEach((function(t){Cr.has(t)||Ar(t,!1,e,null),Ar(t,!0,e,null)})))}function Ar(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ii(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Ir(a,e,i,t),o.add(s))}function Ir(e,t,n,r){var i=Rt.get(t);switch(void 0===i?2:i){case 0:i=Qt;break;case 1:i=Jt;break;default:i=Zt}n=i.bind(null,t,n,e),i=void 0,!Ve||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Nr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=ei(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Be)return e();Be=!0;try{De(e,t,n)}finally{Be=!1,Ue()}}((function(){var r=a,i=Te(n),o=[];e:{var s=Nt.get(e);if(void 0!==s){var l=hn,u=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=wn;break;case"focusout":u="blur",l=wn;break;case"beforeblur":case"afterblur":l=wn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case Ot:case jt:case At:l=xn;break;case It:l=In;break;case"scroll":l=mn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=jn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&null!=(v=ze(h,d))&&c.push(Rr(h,v,p))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!ei(u)&&!u[Jr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ei(u):null)&&(u!==(f=Qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=gn,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=jn,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:ni(l),p=null==u?s:ni(u),(s=new c(v,h+"leave",l,n,i)).target=f,s.relatedTarget=p,v=null,ei(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,v=c),f=v,l&&u)e:{for(d=u,h=0,p=c=l;p;p=Mr(p))h++;for(p=0,v=d;v;v=Mr(v))p++;for(;0<h-p;)c=Mr(c),h--;for(;0<p-h;)d=Mr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Mr(c),d=Mr(d)}c=null}else c=null;null!==l&&Dr(o,s,l,c,!1),null!==u&&null!==f&&Dr(o,f,u,c,!0)}if("select"===(l=(s=r?ni(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Qn;else if($n(s))if(Jn)m=sr;else{m=ar;var y=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=or);switch(m&&(m=m(e,r))?qn(o,m,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ae(s,"number",s.value)),y=r?ni(r):window,e){case"focusin":($n(y)||"true"===y.contentEditable)&&(yr=y,gr=r,br=null);break;case"focusout":br=gr=yr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,xr(o,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(o,n,i)}var g;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(g=an()):(nn="value"in(tn=i)?tn.value:tn.textContent,Hn=!0)),0<(y=Lr(r,b)).length&&(b=new Sn(b,e,null,n,i),o.push({event:b,listeners:y}),(g||null!==(g=Vn(n)))&&(b.data=g))),(g=Dn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Un=!0,Bn);case"textInput":return(e=t.data)===Bn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&zn(e,t)?(e=an(),rn=nn=tn=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Lr(r,"onBeforeInput")).length&&(i=new Sn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g)}Tr(o,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=ze(e,n))&&r.unshift(Rr(e,a,i)),null!=(a=ze(e,t))&&r.push(Rr(e,a,i))),e=e.return}return r}function Mr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Dr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ze(n,a))&&o.unshift(Rr(n,l,s)):i||null!=(l=ze(n,a))&&o.push(Rr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Fr(){}var Br=null,Ur=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"==typeof setTimeout?setTimeout:void 0,Wr="function"==typeof clearTimeout?clearTimeout:void 0;function $r(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Xr=0,Yr=Math.random().toString(36).slice(2),Kr="__reactFiber$"+Yr,Qr="__reactProps$"+Yr,Jr="__reactContainer$"+Yr,Zr="__reactEvents$"+Yr;function ei(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jr]||n[Kr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[Kr])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function ti(e){return!(e=e[Kr]||e[Jr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ni(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ri(e){return e[Qr]||null}function ii(e){var t=e[Zr];return void 0===t&&(t=e[Zr]=new Set),t}var ai=[],oi=-1;function si(e){return{current:e}}function li(e){0>oi||(e.current=ai[oi],ai[oi]=null,oi--)}function ui(e,t){oi++,ai[oi]=e.current,e.current=t}var ci={},fi=si(ci),di=si(!1),pi=ci;function hi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mi(){li(di),li(fi)}function yi(e,t,n){if(fi.current!==ci)throw Error(s(168));ui(fi,t),ui(di,n)}function gi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(s(108,X(t)||"Unknown",i));return a({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,pi=fi.current,ui(fi,e),ui(di,di.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=gi(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,li(di),li(fi),ui(fi,e)):li(di),ui(di,n)}var xi=null,Ei=null,Si=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,_i=o.unstable_shouldYield,Ti=o.unstable_requestPaint,Pi=o.unstable_now,Oi=o.unstable_getCurrentPriorityLevel,ji=o.unstable_ImmediatePriority,Ai=o.unstable_UserBlockingPriority,Ii=o.unstable_NormalPriority,Ni=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Li={},Mi=void 0!==Ti?Ti:function(){},Di=null,Fi=null,Bi=!1,Ui=Pi(),zi=1e4>Ui?Pi:function(){return Pi()-Ui};function Vi(){switch(Oi()){case ji:return 99;case Ai:return 98;case Ii:return 97;case Ni:return 96;case Ri:return 95;default:throw Error(s(332))}}function Hi(e){switch(e){case 99:return ji;case 98:return Ai;case 97:return Ii;case 96:return Ni;case 95:return Ri;default:throw Error(s(332))}}function Wi(e,t){return e=Hi(e),Si(e,t)}function $i(e,t,n){return e=Hi(e),ki(e,t,n)}function qi(){if(null!==Fi){var e=Fi;Fi=null,Ci(e)}Gi()}function Gi(){if(!Bi&&null!==Di){Bi=!0;var e=0;try{var t=Di;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Di=null}catch(t){throw null!==Di&&(Di=Di.slice(e+1)),ki(ji,qi),t}finally{Bi=!1}}}var Xi=E.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ki=si(null),Qi=null,Ji=null,Zi=null;function ea(){Zi=Ji=Qi=null}function ta(e){var t=Ki.current;li(Ki),e.type._context._currentValue=t}function na(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ra(e,t){Qi=e,Zi=Ji=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Lo=!0),e.firstContext=null)}function ia(e,t){if(Zi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ji){if(null===Qi)throw Error(s(308));Ji=t,Qi.dependencies={lanes:0,firstContext:t,responders:null}}else Ji=Ji.next=t;return e._currentValue}var aa=!1;function oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function sa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function la(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ca(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fa(e,t,n,r){var i=e.updateQueue;aa=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?o=c:s.next=c,s=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==o){for(d=i.baseState,s=0,f=c=u=null;;){l=o.lane;var p=o.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,v=o;switch(l=t,p=n,v.tag){case 1:if("function"==typeof(h=v.payload)){d=h.call(p,d,l);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"==typeof(h=v.payload)?h.call(p,d,l):h)||void 0===l)break e;d=a({},d,l);break e;case 2:aa=!0}}null!==o.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[o]:l.push(o))}else p={eventTime:p,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,s|=l;if(null===(o=o.next)){if(null===(l=i.shared.pending))break;o=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===f&&(u=d),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Fs|=s,e.lanes=s,e.memoizedState=d}}function da(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(s(191,i));i.call(r)}}}var pa=(new i.Component).refs;function ha(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var va={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),a=la(r,i);a.payload=t,null!=n&&(a.callback=n),ua(e,a),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),a=la(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),ua(e,a),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=cl(e),i=la(n,r);i.tag=2,null!=t&&(i.callback=t),ua(e,i),fl(e,r,n)}};function ma(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(i,a))}function ya(e,t,n){var r=!1,i=ci,a=t.contextType;return"object"==typeof a&&null!==a?a=ia(a):(i=vi(t)?pi:fi.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?hi(e,i):ci),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=va,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ga(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&va.enqueueReplaceState(t,t.state,null)}function ba(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=pa,oa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ia(a):(a=vi(t)?pi:fi.current,i.context=hi(e,a)),fa(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ha(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&va.enqueueReplaceState(i,i.state,null),fa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var wa=Array.isArray;function xa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===pa&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Ea(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Sa(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Hl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function o(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Gl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=xa(e,t,n),r.return=e,r):((r=Wl(n.type,n.key,n.props,null,e.mode,r)).ref=xa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=$l(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Gl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Wl(t.type,t.key,t.props,null,e.mode,n)).ref=xa(e,null,t),n.return=e,n;case k:return(t=Xl(t,e.mode,n)).return=e,t}if(wa(t)||H(t))return(t=$l(t,e.mode,n,null)).return=e,t;Ea(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?n.type===C?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null}if(wa(n)||H(n))return null!==i?null:f(e,t,n,r,null);Ea(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===C?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wa(r)||H(r))return f(t,e=e.get(n)||null,r,i,null);Ea(t,r)}return null}function v(i,o,s,l){for(var u=null,c=null,f=o,v=o=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=p(i,f,s[v],l);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,v),null===c?u=y:c.sibling=y,c=y,f=m}if(v===s.length)return n(i,f),u;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],l))&&(o=a(f,o,v),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);v<s.length;v++)null!==(m=h(f,i,v,s[v],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),o=a(m,o,v),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(i,e)})),u}function m(i,o,l,u){var c=H(l);if("function"!=typeof c)throw Error(s(150));if(null==(l=c.call(l)))throw Error(s(151));for(var f=c=null,v=o,m=o=0,y=null,g=l.next();null!==v&&!g.done;m++,g=l.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=p(i,v,g.value,u);if(null===b){null===v&&(v=y);break}e&&v&&null===b.alternate&&t(i,v),o=a(b,o,m),null===f?c=b:f.sibling=b,f=b,v=y}if(g.done)return n(i,v),c;if(null===v){for(;!g.done;m++,g=l.next())null!==(g=d(i,g.value,u))&&(o=a(g,o,m),null===f?c=g:f.sibling=g,f=g);return c}for(v=r(i,v);!g.done;m++,g=l.next())null!==(g=h(v,i,m,g.value,u))&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),o=a(g,o,m),null===f?c=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(i,e)})),c}return function(e,r,a,l){var u="object"==typeof a&&null!==a&&a.type===C&&null===a.key;u&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case S:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(a.type===C){n(e,u.sibling),(r=i(u,a.props.children)).return=e,e=r;break e}}else if(u.elementType===a.type){n(e,u.sibling),(r=i(u,a.props)).ref=xa(e,u,a),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===C?((r=$l(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Wl(a.type,a.key,a.props,null,e.mode,l)).ref=xa(e,r,a),l.return=e,e=l)}return o(e);case k:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xl(a,e.mode,l)).return=e,e=r}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Gl(a,e.mode,l)).return=e,e=r),o(e);if(wa(a))return v(e,r,a,l);if(H(a))return m(e,r,a,l);if(c&&Ea(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,X(e.type)||"Component"))}return n(e,r)}}var ka=Sa(!0),Ca=Sa(!1),_a={},Ta=si(_a),Pa=si(_a),Oa=si(_a);function ja(e){if(e===_a)throw Error(s(174));return e}function Aa(e,t){switch(ui(Oa,t),ui(Pa,e),ui(Ta,_a),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ve(null,"");break;default:t=ve(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(Ta),ui(Ta,t)}function Ia(){li(Ta),li(Pa),li(Oa)}function Na(e){ja(Oa.current);var t=ja(Ta.current),n=ve(t,e.type);t!==n&&(ui(Pa,e),ui(Ta,n))}function Ra(e){Pa.current===e&&(li(Ta),li(Pa))}var La=si(0);function Ma(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Da=null,Fa=null,Ba=!1;function Ua(e,t){var n=zl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function za(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Va(e){if(Ba){var t=Fa;if(t){var n=t;if(!za(e,t)){if(!(t=qr(n.nextSibling))||!za(e,t))return e.flags=-1025&e.flags|2,Ba=!1,void(Da=e);Ua(Da,n)}Da=e,Fa=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Ba=!1,Da=e}}function Ha(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Da=e}function Wa(e){if(e!==Da)return!1;if(!Ba)return Ha(e),Ba=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=Fa;t;)Ua(e,t),t=qr(t.nextSibling);if(Ha(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fa=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fa=null}}else Fa=Da?qr(e.stateNode.nextSibling):null;return!0}function $a(){Fa=Da=null,Ba=!1}var qa=[];function Ga(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var Xa=E.ReactCurrentDispatcher,Ya=E.ReactCurrentBatchConfig,Ka=0,Qa=null,Ja=null,Za=null,eo=!1,to=!1;function no(){throw Error(s(321))}function ro(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function io(e,t,n,r,i,a){if(Ka=a,Qa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xa.current=null===e||null===e.memoizedState?Ao:Io,e=n(r,i),to){a=0;do{if(to=!1,!(25>a))throw Error(s(301));a+=1,Za=Ja=null,t.updateQueue=null,Xa.current=No,e=n(r,i)}while(to)}if(Xa.current=jo,t=null!==Ja&&null!==Ja.next,Ka=0,Za=Ja=Qa=null,eo=!1,t)throw Error(s(300));return e}function ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Za?Qa.memoizedState=Za=e:Za=Za.next=e,Za}function oo(){if(null===Ja){var e=Qa.alternate;e=null!==e?e.memoizedState:null}else e=Ja.next;var t=null===Za?Qa.memoizedState:Za.next;if(null!==t)Za=t,Ja=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Ja=e).memoizedState,baseState:Ja.baseState,baseQueue:Ja.baseQueue,queue:Ja.queue,next:null},null===Za?Qa.memoizedState=Za=e:Za=Za.next=e}return Za}function so(e,t){return"function"==typeof t?t(e):t}function lo(e){var t=oo(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=Ja,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=o=a=null,u=i;do{var c=u.lane;if((Ka&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(o=l=f,a=r):l=l.next=f,Qa.lanes|=c,Fs|=c}u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=o,lr(r,t.memoizedState)||(Lo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function uo(e){var t=oo(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);lr(a,t.memoizedState)||(Lo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function co(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ka&e)===e)&&(t._workInProgressVersionPrimary=r,qa.push(t))),e)return n(t._source);throw qa.push(t),Error(s(350))}function fo(e,t,n,r){var i=js;if(null===i)throw Error(s(349));var a=t._getVersion,o=a(t._source),l=Xa.current,u=l.useState((function(){return co(i,t,n)})),c=u[1],f=u[0];u=Za;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,v=d.source;d=d.subscribe;var m=Qa;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!lr(o,e)){e=n(t._source),lr(f,e)||(c(e),e=cl(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var l=31-$t(s),u=1<<l;r[l]|=e,s&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=cl(m);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),lr(h,n)&&lr(v,t)&&lr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:f}).dispatch=c=Oo.bind(null,Qa,e),u.queue=e,u.baseQueue=null,f=co(i,t,n),u.memoizedState=u.baseState=f),f}function po(e,t,n){return fo(oo(),e,t,n)}function ho(e){var t=ao();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:e}).dispatch=Oo.bind(null,Qa,e),[t.memoizedState,e]}function vo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Qa.updateQueue)?(t={lastEffect:null},Qa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function mo(e){return e={current:e},ao().memoizedState=e}function yo(){return oo().memoizedState}function go(e,t,n,r){var i=ao();Qa.flags|=e,i.memoizedState=vo(1|t,n,void 0,void 0===r?null:r)}function bo(e,t,n,r){var i=oo();r=void 0===r?null:r;var a=void 0;if(null!==Ja){var o=Ja.memoizedState;if(a=o.destroy,null!==r&&ro(r,o.deps))return void vo(t,n,a,r)}Qa.flags|=e,i.memoizedState=vo(1|t,n,a,r)}function wo(e,t){return go(516,4,e,t)}function xo(e,t){return bo(516,4,e,t)}function Eo(e,t){return bo(4,2,e,t)}function So(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ko(e,t,n){return n=null!=n?n.concat([e]):null,bo(4,2,So.bind(null,t,e),n)}function Co(){}function _o(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function To(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Po(e,t){var n=Vi();Wi(98>n?98:n,(function(){e(!0)})),Wi(97<n?97:n,(function(){var n=Ya.transition;Ya.transition=1;try{e(!1),t()}finally{Ya.transition=n}}))}function Oo(e,t,n){var r=ul(),i=cl(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Qa||null!==o&&o===Qa)to=eo=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=o(s,n);if(a.eagerReducer=o,a.eagerState=l,lr(l,s))return}catch(e){}fl(e,i,r)}}var jo={readContext:ia,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useOpaqueIdentifier:no,unstable_isNewReconciler:!1},Ao={readContext:ia,useCallback:function(e,t){return ao().memoizedState=[e,void 0===t?null:t],e},useContext:ia,useEffect:wo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,go(4,2,So.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=ao();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ao();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oo.bind(null,Qa,e),[r.memoizedState,e]},useRef:mo,useState:ho,useDebugValue:Co,useDeferredValue:function(e){var t=ho(e),n=t[0],r=t[1];return wo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=ho(!1),t=e[0];return mo(e=Po.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ao();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fo(r,e,t,n)},useOpaqueIdentifier:function(){if(Ba){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Xr++).toString(36))),Error(s(355))})),n=ho(t)[1];return 0==(2&Qa.mode)&&(Qa.flags|=516,vo(5,(function(){n("r:"+(Xr++).toString(36))}),void 0,null)),t}return ho(t="r:"+(Xr++).toString(36)),t},unstable_isNewReconciler:!1},Io={readContext:ia,useCallback:_o,useContext:ia,useEffect:xo,useImperativeHandle:ko,useLayoutEffect:Eo,useMemo:To,useReducer:lo,useRef:yo,useState:function(){return lo(so)},useDebugValue:Co,useDeferredValue:function(e){var t=lo(so),n=t[0],r=t[1];return xo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=lo(so)[0];return[yo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return lo(so)[0]},unstable_isNewReconciler:!1},No={readContext:ia,useCallback:_o,useContext:ia,useEffect:xo,useImperativeHandle:ko,useLayoutEffect:Eo,useMemo:To,useReducer:uo,useRef:yo,useState:function(){return uo(so)},useDebugValue:Co,useDeferredValue:function(e){var t=uo(so),n=t[0],r=t[1];return xo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=uo(so)[0];return[yo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return uo(so)[0]},unstable_isNewReconciler:!1},Ro=E.ReactCurrentOwner,Lo=!1;function Mo(e,t,n,r){t.child=null===e?Ca(t,null,n,r):ka(t,e.child,n,r)}function Do(e,t,n,r,i){n=n.render;var a=t.ref;return ra(t,i),r=io(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Mo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Fo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Vl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Wl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Bo(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)?ns(e,t,a):(t.flags|=1,(e=Hl(o,r)).ref=t.ref,e.return=t,t.child=e)}function Bo(e,t,n,r,i,a){if(null!==e&&cr(e.memoizedProps,r)&&e.ref===t.ref){if(Lo=!1,0==(a&i))return t.lanes=e.lanes,ns(e,t,a);0!=(16384&e.flags)&&(Lo=!0)}return Vo(e,t,n,r,a)}function Uo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bl(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bl(t,e),null;t.memoizedState={baseLanes:0},bl(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,bl(t,r);return Mo(e,t,i,n),t.child}function zo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Vo(e,t,n,r,i){var a=vi(n)?pi:fi.current;return a=hi(t,a),ra(t,i),n=io(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Mo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Ho(e,t,n,r,i){if(vi(n)){var a=!0;bi(t)}else a=!1;if(ra(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ya(t,n,r),ba(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;u="object"==typeof u&&null!==u?ia(u):hi(t,u=vi(n)?pi:fi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&ga(t,o,r,u),aa=!1;var d=t.memoizedState;o.state=d,fa(t,r,o,i),l=t.memoizedState,s!==r||d!==l||di.current||aa?("function"==typeof c&&(ha(t,n,c,r),l=t.memoizedState),(s=aa||ma(t,n,s,r,d,l,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,sa(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Yi(t.type,s),o.props=u,f=t.pendingProps,d=o.context,l="object"==typeof(l=n.contextType)&&null!==l?ia(l):hi(t,l=vi(n)?pi:fi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||d!==l)&&ga(t,o,r,l),aa=!1,d=t.memoizedState,o.state=d,fa(t,r,o,i);var h=t.memoizedState;s!==f||d!==h||di.current||aa?("function"==typeof p&&(ha(t,n,p,r),h=t.memoizedState),(u=aa||ma(t,n,u,r,d,h,l))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,a,i)}function Wo(e,t,n,r,i,a){zo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&wi(t,n,!1),ns(e,t,a);r=t.stateNode,Ro.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=ka(t,e.child,null,a),t.child=ka(t,null,s,a)):Mo(e,t,s,a),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function $o(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Aa(e,t.containerInfo)}var qo,Go,Xo,Yo,Ko={dehydrated:null,retryLane:0};function Qo(e,t,n){var r,i=t.pendingProps,a=La.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ui(La,1&a),null===e?(void 0!==i.fallback&&Va(t),e=i.children,a=i.fallback,o?(e=Jo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,e):"number"==typeof i.unstable_expectedLoadTime?(e=Jo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,t.lanes=33554432,e):((n=ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=function(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Hl(o,s),null!==e?r=Hl(e,r):(r=$l(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ko,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Hl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Jo(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=ql(t,i,0,null),n=$l(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Zo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),na(e.return,t)}function es(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Mo(e,t,r.children,n),0!=(2&(r=La.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Zo(e,n);else if(19===e.tag)Zo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(La,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ma(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),es(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ma(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}es(t,!0,n,null,a,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Hl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Ba)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function is(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return vi(t.type)&&mi(),null;case 3:return Ia(),li(di),li(fi),Ga(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Go(t),null;case 5:Ra(t);var i=ja(Oa.current);if(n=t.type,null!==e&&null!=t.stateNode)Xo(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=ja(Ta.current),Wa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Kr]=t,r[Qr]=o,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Pr(kr[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":te(r,o),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Pr("invalid",r);break;case"textarea":ue(r,o),Pr("invalid",r)}for(var l in Ce(n,o),e=null,o)o.hasOwnProperty(l)&&(i=o[l],"children"===l?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Pr("scroll",r));switch(n){case"input":Q(r),ie(r,o,!0);break;case"textarea":Q(r),fe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===de&&(e=he(n)),e===de?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Kr]=t,e[Qr]=r,qo(e,t,!1,!1),t.stateNode=e,l=_e(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),i=r;break;case"iframe":case"object":case"embed":Pr("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)Pr(kr[i],e);i=r;break;case"source":Pr("error",e),i=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=r;break;case"details":Pr("toggle",e),i=r;break;case"input":te(e,r),i=ee(e,r),Pr("invalid",e);break;case"option":i=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Pr("invalid",e);break;default:i=r}Ce(n,i);var c=i;for(o in c)if(c.hasOwnProperty(o)){var f=c[o];"style"===o?Se(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===o?"string"==typeof f?("textarea"!==n||""!==f)&&be(e,f):"number"==typeof f&&be(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(u.hasOwnProperty(o)?null!=f&&"onScroll"===o&&Pr("scroll",e):null!=f&&x(e,o,f,l))}switch(n){case"input":Q(e),ie(e,r,!1);break;case"textarea":Q(e),fe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?se(e,!!r.multiple,o,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Fr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Yo(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=ja(Oa.current),ja(Ta.current),Wa(t)?(r=t.stateNode,n=t.memoizedProps,r[Kr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Kr]=t,t.stateNode=r)}return null;case 13:return li(La),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wa(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&La.current)?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===js||0==(134217727&Fs)&&0==(134217727&Bs)||vl(js,Is))),(r||n)&&(t.flags|=4),null);case 4:return Ia(),Go(t),null===e&&jr(t.stateNode.containerInfo),null;case 10:return ta(t),null;case 19:if(li(La),null===(r=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(l=r.rendering))if(o)rs(r,!1);else{if(0!==Ls||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Ma(e))){for(t.flags|=64,rs(r,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(La,1&La.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>Hs&&(t.flags|=64,o=!0,rs(r,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=Ma(l))){if(t.flags|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Ba)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,o=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=La.current,ui(La,o?1&t|2:1&t),n):null;case 23:case 24:return wl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function as(e){switch(e.tag){case 1:vi(e.type)&&mi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ia(),li(di),li(fi),Ga(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Ra(e),null;case 13:return li(La),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return li(La),null;case 4:return Ia(),null;case 10:return ta(e),null;case 23:case 24:return wl(),null;default:return null}}function os(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{r.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Go=function(){},Xo=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ja(Ta.current);var o,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=oe(e,i),r=oe(e,r),s=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":i=le(e,i),r=le(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Fr)}for(f in Ce(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var l=i[f];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Pr("scroll",e),s||l===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Yo=function(e,t,n,r){n!==r&&(t.flags|=4)};var ls="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=la(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,Xs=r),ss(0,t)},n}function cs(e,t,n){(n=la(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ss(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ys?Ys=new Set([this]):Ys.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ds(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Dl(e,t)}else t.current=null}function ps(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$r(t.stateNode.containerInfo))}throw Error(s(163))}function hs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Rl(n,e),Nl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Yi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&da(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}da(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&St(n)))))}throw Error(s(163))}function vs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=Ee("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ms(e,t){if(Ei&&"function"==typeof Ei.onCommitFiberUnmount)try{Ei.onCommitFiberUnmount(xi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Rl(t,n);else{r=t;try{i()}catch(e){Dl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ds(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Dl(t,e)}break;case 5:ds(t);break;case 4:Es(e,t)}}function ys(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gs(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(gs(t))break e;t=t.return}throw Error(s(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?ws(e,n,t):xs(e,n,t)}function ws(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function Es(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(s(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var o=e,l=i,u=l;;)if(ms(o,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(o=n,l=i.stateNode,8===o.nodeType?o.parentNode.removeChild(l):o.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(ms(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function Ss(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Qr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),_e(e,i),t=_e(e,r),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];"style"===o?Se(n,l):"dangerouslySetInnerHTML"===o?ge(n,l):"children"===o?be(n,l):x(n,o,l,t)}switch(e){case"input":re(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?se(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,St(n.containerInfo)));case 13:return null!==t.memoizedState&&(Vs=zi(),vs(t.child,!0)),void ks(t);case 19:return void ks(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(s(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Bl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Cs(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var _s=Math.ceil,Ts=E.ReactCurrentDispatcher,Ps=E.ReactCurrentOwner,Os=0,js=null,As=null,Is=0,Ns=0,Rs=si(0),Ls=0,Ms=null,Ds=0,Fs=0,Bs=0,Us=0,zs=null,Vs=0,Hs=1/0;function Ws(){Hs=zi()+500}var $s,qs=null,Gs=!1,Xs=null,Ys=null,Ks=!1,Qs=null,Js=90,Zs=[],el=[],tl=null,nl=0,rl=null,il=-1,al=0,ol=0,sl=null,ll=!1;function ul(){return 0!=(48&Os)?zi():-1!==il?il:il=zi()}function cl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Vi()?1:2;if(0===al&&(al=Ds),0!==Xi.transition){0!==ol&&(ol=null!==zs?zs.pendingLanes:0),e=al;var t=4186112&~ol;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Vi(),e=zt(0!=(4&Os)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),al)}function fl(e,t,n){if(50<nl)throw nl=0,rl=null,Error(s(185));if(null===(e=dl(e,t)))return null;Wt(e,t,n),e===js&&(Bs|=t,4===Ls&&vl(e,Is));var r=Vi();1===t?0!=(8&Os)&&0==(48&Os)?ml(e):(pl(e,n),0===Os&&(Ws(),qi())):(0==(4&Os)||98!==r&&99!==r||(null===tl?tl=new Set([e]):tl.add(e)),pl(e,n)),zs=e}function dl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function pl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-$t(o),u=1<<l,c=a[l];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Ft(u);var f=Dt;a[l]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);o&=~u}if(r=Bt(e,e===js?Is:0),t=Dt,0===r)null!==n&&(n!==Li&&Ci(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Li&&Ci(n)}15===t?(n=ml.bind(null,e),null===Di?(Di=[n],Fi=ki(ji,Gi)):Di.push(n),n=Li):14===t?n=$i(99,ml.bind(null,e)):n=$i(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),hl.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function hl(e){if(il=-1,ol=al=0,0!=(48&Os))throw Error(s(327));var t=e.callbackNode;if(Il()&&e.callbackNode!==t)return null;var n=Bt(e,e===js?Is:0);if(0===n)return null;var r=n,i=Os;Os|=16;var a=Sl();for(js===e&&Is===r||(Ws(),xl(e,r));;)try{_l();break}catch(t){El(e,t)}if(ea(),Ts.current=a,Os=i,null!==As?r=0:(js=null,Is=0,r=Ls),0!=(Ds&Bs))xl(e,0);else if(0!==r){if(2===r&&(Os|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(n=Ut(e))&&(r=kl(e,n))),1===r)throw t=Ms,xl(e,0),vl(e,n),pl(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Ol(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=Vs+500-zi())){if(0!==Bt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hr(Ol.bind(null,e),r);break}Ol(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var o=31-$t(n);a=1<<o,(o=r[o])>i&&(i=o),n&=~a}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_s(n/1960))-n)){e.timeoutHandle=Hr(Ol.bind(null,e),n);break}Ol(e);break;default:throw Error(s(329))}}return pl(e,zi()),e.callbackNode===t?hl.bind(null,e):null}function vl(e,t){for(t&=~Us,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$t(t),r=1<<n;e[n]=-1,t&=~r}}function ml(e){if(0!=(48&Os))throw Error(s(327));if(Il(),e===js&&0!=(e.expiredLanes&Is)){var t=Is,n=kl(e,t);0!=(Ds&Bs)&&(n=kl(e,t=Bt(e,t)))}else n=kl(e,t=Bt(e,0));if(0!==e.tag&&2===n&&(Os|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(t=Ut(e))&&(n=kl(e,t))),1===n)throw n=Ms,xl(e,0),vl(e,t),pl(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ol(e),pl(e,zi()),null}function yl(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Ws(),qi())}}function gl(e,t){var n=Os;Os&=-2,Os|=8;try{return e(t)}finally{0===(Os=n)&&(Ws(),qi())}}function bl(e,t){ui(Rs,Ns),Ns|=t,Ds|=t}function wl(){Ns=Rs.current,li(Rs)}function xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==As)for(n=As.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mi();break;case 3:Ia(),li(di),li(fi),Ga();break;case 5:Ra(r);break;case 4:Ia();break;case 13:case 19:li(La);break;case 10:ta(r);break;case 23:case 24:wl()}n=n.return}js=e,As=Hl(e.current,null),Is=Ns=Ds=t,Ls=0,Ms=null,Us=Bs=Fs=0}function El(e,t){for(;;){var n=As;try{if(ea(),Xa.current=jo,eo){for(var r=Qa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}eo=!1}if(Ka=0,Za=Ja=Qa=null,to=!1,Ps.current=null,null===n||null===n.return){Ls=1,Ms=t,As=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Is,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&La.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var v=d.memoizedProps;p=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(p){var m=d.updateQueue;if(null===m){var y=new Set;y.add(u),d.updateQueue=y}else m.add(u);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var g=la(-1,1);g.tag=2,ua(s,g)}s.lanes|=1;break e}l=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ls,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var w=Fl.bind(null,a,u,s);u.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((X(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),l=os(l,s),d=o;do{switch(d.tag){case 3:a=l,d.flags|=4096,t&=-t,d.lanes|=t,ca(d,us(0,a,t));break e;case 1:a=l;var x=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Ys||!Ys.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,ca(d,cs(d,a,t));break e}}d=d.return}while(null!==d)}Pl(n)}catch(e){t=e,As===n&&null!==n&&(As=n=n.return);continue}break}}function Sl(){var e=Ts.current;return Ts.current=jo,null===e?jo:e}function kl(e,t){var n=Os;Os|=16;var r=Sl();for(js===e&&Is===t||xl(e,t);;)try{Cl();break}catch(t){El(e,t)}if(ea(),Os=n,Ts.current=r,null!==As)throw Error(s(261));return js=null,Is=0,Ls}function Cl(){for(;null!==As;)Tl(As)}function _l(){for(;null!==As&&!_i();)Tl(As)}function Tl(e){var t=$s(e.alternate,e,Ns);e.memoizedProps=e.pendingProps,null===t?Pl(e):As=t,Ps.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=is(n,t,Ns)))return void(As=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ns)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=as(t)))return n.flags&=2047,void(As=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(As=t);As=t=e}while(null!==t);0===Ls&&(Ls=5)}function Ol(e){var t=Vi();return Wi(99,jl.bind(null,e,t)),null}function jl(e,t){do{Il()}while(null!==Qs);if(0!=(48&Os))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,l=e.expirationTimes;0<a;){var u=31-$t(a),c=1<<u;i[u]=0,o[u]=-1,l[u]=-1,a&=~c}if(null!==tl&&0==(24&r)&&tl.has(e)&&tl.delete(e),e===js&&(As=js=null,Is=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Os,Os|=32,Ps.current=null,Br=Kt,vr(o=hr())){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,a=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var f=0,d=-1,p=-1,h=0,v=0,m=o,y=null;t:for(;;){for(var g;m!==l||0!==a&&3!==m.nodeType||(d=f+a),m!==u||0!==c&&3!==m.nodeType||(p=f+c),3===m.nodeType&&(f+=m.nodeValue.length),null!==(g=m.firstChild);)y=m,m=g;for(;;){if(m===o)break t;if(y===l&&++h===a&&(d=f),y===u&&++v===c&&(p=f),null!==(g=m.nextSibling))break;y=(m=y).parentNode}m=g}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Ur={focusedElem:o,selectionRange:l},Kt=!1,sl=null,ll=!1,qs=r;do{try{Al()}catch(e){if(null===qs)throw Error(s(330));Dl(qs,e),qs=qs.nextEffect}}while(null!==qs);sl=null,qs=r;do{try{for(o=e;null!==qs;){var b=qs.flags;if(16&b&&be(qs.stateNode,""),128&b){var w=qs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:bs(qs),qs.flags&=-3;break;case 6:bs(qs),qs.flags&=-3,Ss(qs.alternate,qs);break;case 1024:qs.flags&=-1025;break;case 1028:qs.flags&=-1025,Ss(qs.alternate,qs);break;case 4:Ss(qs.alternate,qs);break;case 8:Es(o,l=qs);var E=l.alternate;ys(l),null!==E&&ys(E)}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(s(330));Dl(qs,e),qs=qs.nextEffect}}while(null!==qs);if(x=Ur,w=hr(),b=x.focusedElem,o=x.selectionRange,w!==b&&b&&b.ownerDocument&&pr(b.ownerDocument.documentElement,b)){null!==o&&vr(b)&&(w=o.start,void 0===(x=o.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,E=Math.min(o.start,l),o=void 0===o.end?E:Math.min(o.end,l),!x.extend&&E>o&&(l=o,o=E,E=l),l=dr(b,E),a=dr(b,o),l&&a&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==a.node||x.focusOffset!==a.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),E>o?(x.addRange(w),x.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Kt=!!Br,Ur=Br=null,e.current=n,qs=r;do{try{for(b=e;null!==qs;){var S=qs.flags;if(36&S&&hs(b,qs.alternate,qs),128&S){w=void 0;var k=qs.ref;if(null!==k){var C=qs.stateNode;qs.tag,w=C,"function"==typeof k?k(w):k.current=w}}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(s(330));Dl(qs,e),qs=qs.nextEffect}}while(null!==qs);qs=null,Mi(),Os=i}else e.current=n;if(Ks)Ks=!1,Qs=e,Js=t;else for(qs=r;null!==qs;)t=qs.nextEffect,qs.nextEffect=null,8&qs.flags&&((S=qs).sibling=null,S.stateNode=null),qs=t;if(0===(r=e.pendingLanes)&&(Ys=null),1===r?e===rl?nl++:(nl=0,rl=e):nl=0,n=n.stateNode,Ei&&"function"==typeof Ei.onCommitFiberRoot)try{Ei.onCommitFiberRoot(xi,n,void 0,64==(64&n.current.flags))}catch(e){}if(pl(e,zi()),Gs)throw Gs=!1,e=Xs,Xs=null,e;return 0!=(8&Os)||qi(),null}function Al(){for(;null!==qs;){var e=qs.alternate;ll||null===sl||(0!=(8&qs.flags)?tt(qs,sl)&&(ll=!0):13===qs.tag&&Cs(e,qs)&&tt(qs,sl)&&(ll=!0));var t=qs.flags;0!=(256&t)&&ps(e,qs),0==(512&t)||Ks||(Ks=!0,$i(97,(function(){return Il(),null}))),qs=qs.nextEffect}}function Il(){if(90!==Js){var e=97<Js?97:Js;return Js=90,Wi(e,Ll)}return!1}function Nl(e,t){Zs.push(t,e),Ks||(Ks=!0,$i(97,(function(){return Il(),null})))}function Rl(e,t){el.push(t,e),Ks||(Ks=!0,$i(97,(function(){return Il(),null})))}function Ll(){if(null===Qs)return!1;var e=Qs;if(Qs=null,0!=(48&Os))throw Error(s(331));var t=Os;Os|=32;var n=el;el=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],o=i.destroy;if(i.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===a)throw Error(s(330));Dl(a,e)}}for(n=Zs,Zs=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===a)throw Error(s(330));Dl(a,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Os=t,qi(),!0}function Ml(e,t,n){ua(e,t=us(0,t=os(n,t),1)),t=ul(),null!==(e=dl(e,1))&&(Wt(e,1,t),pl(e,t))}function Dl(e,t){if(3===e.tag)Ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ml(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r))){var i=cs(n,e=os(t,e),1);if(ua(n,i),i=ul(),null!==(n=dl(n,1)))Wt(n,1,i),pl(n,i);else if("function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Fl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,js===e&&(Is&n)===n&&(4===Ls||3===Ls&&(62914560&Is)===Is&&500>zi()-Vs?xl(e,0):Us|=n),pl(e,t)}function Bl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Vi()?1:2:(0===al&&(al=Ds),0===(t=Vt(62914560&~al))&&(t=4194304))),n=ul(),null!==(e=dl(e,t))&&(Wt(e,t,n),pl(e,n))}function Ul(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function zl(e,t,n,r){return new Ul(e,t,n,r)}function Vl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var n=e.alternate;return null===n?((n=zl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wl(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)Vl(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case C:return $l(n.children,i,a,t);case D:o=8,i|=16;break;case _:o=8,i|=1;break;case T:return(e=zl(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=a,e;case A:return(e=zl(13,n,t,i)).type=A,e.elementType=A,e.lanes=a,e;case I:return(e=zl(19,n,t,i)).elementType=I,e.lanes=a,e;case F:return ql(n,i,a,t);case B:return(e=zl(24,n,t,i)).elementType=B,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:o=10;break e;case O:o=9;break e;case j:o=11;break e;case N:o=14;break e;case R:o=16,r=null;break e;case L:o=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=zl(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function $l(e,t,n,r){return(e=zl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=zl(23,e,r,t)).elementType=F,e.lanes=n,e}function Gl(e,t,n){return(e=zl(6,e,null,t)).lanes=n,e}function Xl(e,t,n){return(t=zl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function Kl(e,t,n,r){var i=t.current,a=ul(),o=cl(i);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var u=n.type;if(vi(u)){n=gi(n,u,l);break e}}n=l}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=la(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ua(i,t),fl(i,o,a),o}function Ql(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Jl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Zl(e,t){Jl(e,t),(e=e.alternate)&&Jl(e,t)}function eu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Yl(e,t,null!=n&&!0===n.hydrate),t=zl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,oa(t),e[Jr]=n.current,jr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function tu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Ql(o);s.call(e)}}Kl(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new eu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Ql(o);l.call(e)}}gl((function(){Kl(t,o,e,i)}))}return Ql(o)}function ru(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!tu(t))throw Error(s(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}$s=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||di.current)Lo=!0;else{if(0==(n&r)){switch(Lo=!1,t.tag){case 3:$o(t),$a();break;case 5:Na(t);break;case 1:vi(t.type)&&bi(t);break;case 4:Aa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui(Ki,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qo(e,t,n):(ui(La,1&La.current),null!==(t=ns(e,t,n))?t.sibling:null);ui(La,1&La.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(La,La.current),r)break;return null;case 23:case 24:return t.lanes=0,Uo(e,t,n)}return ns(e,t,n)}Lo=0!=(16384&e.flags)}else Lo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=hi(t,fi.current),ra(t,n),i=io(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)){var a=!0;bi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oa(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&ha(t,r,o,e),i.updater=va,t.stateNode=i,i._reactInternals=t,ba(t,r,e,n),t=Wo(null,t,r,!0,a,n)}else t.tag=0,Mo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Vl(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===N)return 14}return 2}(i),e=Yi(i,e),a){case 0:t=Vo(null,t,i,e,n);break e;case 1:t=Ho(null,t,i,e,n);break e;case 11:t=Do(null,t,i,e,n);break e;case 14:t=Fo(null,t,i,Yi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Vo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ho(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if($o(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,sa(e,t),fa(t,r,null,n),(r=t.memoizedState.element)===i)$a(),t=ns(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Fa=qr(t.stateNode.containerInfo.firstChild),Da=t,a=Ba=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],qa.push(a);for(n=Ca(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Mo(e,t,r,n),$a();t=t.child}return t;case 5:return Na(t),null===e&&Va(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,Vr(r,i)?o=null:null!==a&&Vr(r,a)&&(t.flags|=16),zo(e,t),Mo(e,t,o,n),t.child;case 6:return null===e&&Va(t),null;case 13:return Qo(e,t,n);case 4:return Aa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ka(t,null,r,n):Mo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Do(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Mo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Mo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(ui(Ki,l._currentValue),l._currentValue=a,null!==o)if(l=o.value,0==(a=lr(l,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(o.children===i.children&&!di.current){t=ns(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){o=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===l.tag&&((c=la(-1,n&-n)).tag=2,ua(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),na(l.return,n),u.lanes|=n;break}c=c.next}}else o=10===l.tag&&l.type===t.type?null:l.child;if(null!==o)o.return=l;else for(o=l;null!==o;){if(o===t){o=null;break}if(null!==(l=o.sibling)){l.return=o.return,o=l;break}o=o.return}l=o}Mo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ra(t,n),r=r(i=ia(i,a.unstable_observedBits)),t.flags|=1,Mo(e,t,r,n),t.child;case 14:return a=Yi(i=t.type,t.pendingProps),Fo(e,t,i,a=Yi(i.type,a),r,n);case 15:return Bo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,vi(r)?(e=!0,bi(t)):e=!1,ra(t,n),ya(t,r,i),ba(t,r,i,n),Wo(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Uo(e,t,n)}throw Error(s(156,t.tag))},eu.prototype.render=function(e){Kl(e,this._internalRoot,null,null)},eu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Kl(null,e,null,(function(){t[Jr]=null}))},nt=function(e){13===e.tag&&(fl(e,4,ul()),Zl(e,4))},rt=function(e){13===e.tag&&(fl(e,67108864,ul()),Zl(e,67108864))},it=function(e){if(13===e.tag){var t=ul(),n=cl(e);fl(e,n,t),Zl(e,n)}},at=function(e,t){return t()},Pe=function(e,t,n){switch(t){case"input":if(re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ri(r);if(!i)throw Error(s(90));J(r),re(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Re=yl,Le=function(e,t,n,r,i){var a=Os;Os|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(Os=a)&&(Ws(),qi())}},Me=function(){0==(49&Os)&&(function(){if(null!==tl){var e=tl;tl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pl(e,zi())}))}qi()}(),Il())},De=function(e,t){var n=Os;Os|=2;try{return e(t)}finally{0===(Os=n)&&(Ws(),qi())}};var iu={Events:[ti,ni,ri,Ie,Ne,Il,{current:!1}]},au={findFiberByHostInstance:ei,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ou={bundleType:au.bundleType,version:au.version,rendererPackageName:au.rendererPackageName,rendererConfig:au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=et(e))?null:e.stateNode},findFiberByHostInstance:au.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{xi=su.inject(ou),Ei=su}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iu,t.createPortal=ru,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=et(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Os;if(0!=(48&n))return e(t);Os|=1;try{if(e)return Wi(99,e.bind(null,t))}finally{Os=n,qi()}},t.hydrate=function(e,t,n){if(!tu(t))throw Error(s(200));return nu(null,e,t,!0,n)},t.render=function(e,t,n){if(!tu(t))throw Error(s(200));return nu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!tu(e))throw Error(s(40));return!!e._reactRootContainer&&(gl((function(){nu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Jr]=null}))})),!0)},t.unstable_batchedUpdates=yl,t.unstable_createPortal=function(e,t){return ru(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tu(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return nu(e,t,n,!1,r)},t.version="17.0.2"},6377:function(e,t,n){"use strict";var r=n(8466);!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){r.error(e)}}(),e.exports=n(6186)},4819:function(e,t,n){"use strict";n(6);var r=n(3705),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:a,_owner:o.current}}t.jsx=u,t.jsxs=u},4348:function(e,t,n){"use strict";var r=n(6),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),s=f("react.context"),l=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var b=g.prototype=new y;b.constructor=g,r(b,m.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!E.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:w.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g;function _(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return o=o(l=e),e=""===r?"."+_(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),T(o,t,n,"",(function(e){return e}))):null!=o&&(k(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+_(s=e[u],u);l+=T(s,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,n,c=r+_(s,u++),o);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function O(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var j={current:null};function A(){var e=j.current;if(null===e)throw Error(p(321));return e}var I={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error(p(143));return e}},t.Component=m,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!E.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];a.children=u}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return A().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,n){return A().useReducer(e,t,n)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().useState(e)},t.version="17.0.2"},3705:function(e,t,n){"use strict";e.exports=n(4348)},1411:function(e,t,n){"use strict";e.exports=n(4819)},6:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))n.call(a,u)&&(s[u]=a[u]);if(t){o=t(a);for(var c=0;c<o.length;c++)r.call(a,o[c])&&(s[o[c]]=a[o[c]])}}return s}},8666:function(e,t,n){"use strict";var r,i,a,o,s=n(8466);if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function e(){if(null!==f)try{var n=t.unstable_now();f(!0,n),f=null}catch(t){throw setTimeout(e,0),t}};r=function(e){null!==f?setTimeout(r,0,e):(f=e,setTimeout(p,0))},i=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,v=window.clearTimeout;if(void 0!==s){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&s.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&s.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,b=-1,w=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?s.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,S=E.port2;E.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();x=e+w;try{g(!0,e)?S.postMessage(null):(y=!1,g=null)}catch(e){throw S.postMessage(null),e}}else y=!1},r=function(e){g=e,y||(y=!0,S.postMessage(null))},i=function(e,n){b=h((function(){e(t.unstable_now())}),n)},a=function(){v(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,l=e[s];if(void 0!==o&&0>T(o,n))void 0!==l&&0>T(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],O=[],j=1,A=null,I=3,N=!1,R=!1,L=!1;function M(e){for(var t=C(O);null!==t;){if(null===t.callback)_(O);else{if(!(t.startTime<=e))break;_(O),t.sortIndex=t.expirationTime,k(P,t)}t=C(O)}}function D(e){if(L=!1,M(e),!R)if(null!==C(P))R=!0,r(F);else{var t=C(O);null!==t&&i(D,t.startTime-e)}}function F(e,n){R=!1,L&&(L=!1,a()),N=!0;var r=I;try{for(M(n),A=C(P);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=A.callback;if("function"==typeof o){A.callback=null,I=A.priorityLevel;var s=o(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===C(P)&&_(P),M(n)}else _(P);A=C(P)}if(null!==A)var l=!0;else{var u=C(O);null!==u&&i(D,u.startTime-n),l=!1}return l}finally{A=null,I=r,N=!1}}var B=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||N||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:j++,callback:n,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>s?(e.sortIndex=o,k(O,e),null===C(P)&&e===C(O)&&(L?a():L=!0,i(D,o-s))):(e.sortIndex=l,k(P,e),R||N||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},3830:function(e,t,n){"use strict";e.exports=n(8666)},5205:function(e,t,n){"use strict";var r=n(7490),i=n(8466);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var l,u,c=n(3905).codes,f=c.ERR_AMBIGUOUS_ARGUMENT,d=c.ERR_INVALID_ARG_TYPE,p=c.ERR_INVALID_ARG_VALUE,h=c.ERR_INVALID_RETURN_VALUE,v=c.ERR_MISSING_ARGS,m=n(8264),y=n(7736).inspect,g=n(7736).types,b=g.isPromise,w=g.isRegExp,x=n(4174)(),E=n(4584)(),S=n(4680)("RegExp.prototype.test");function k(){var e=n(8527);l=e.isDeepEqual,u=e.isDeepStrictEqual}new Map;var C=!1,_=e.exports=j,T={};function P(e){if(e.message instanceof Error)throw e.message;throw new m(e)}function O(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new m({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function j(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];O.apply(void 0,[j,t.length].concat(t))}_.fail=function e(t,n,a,o,s){var l,u=arguments.length;if(0===u?l="Failed":1===u?(a=t,t=void 0):(!1===C&&(C=!0,(r.emitWarning?r.emitWarning:i.warn.bind(i))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(o="!=")),a instanceof Error)throw a;var c={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==a&&(c.message=a);var f=new m(c);throw l&&(f.message=l,f.generatedMessage=!0),f},_.AssertionError=m,_.ok=j,_.equal=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");t!=n&&P({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},_.notEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");t==n&&P({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},_.deepEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===l&&k(),l(t,n)||P({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},_.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===l&&k(),l(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},_.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===l&&k(),u(t,n)||P({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},_.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===l&&k(),u(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},_.strictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");E(t,n)||P({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},_.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");E(t,n)&&P({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var A=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&w(t[e])&&S(t[e],r[e])?i[e]=r[e]:i[e]=t[e])}))}));function I(e,t,n,r){if("function"!=typeof t){if(w(t))return S(t,e);if(2===arguments.length)throw new d("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new m({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var o=Object.keys(t);if(t instanceof Error)o.push("name","message");else if(0===o.length)throw new p("error",t,"may not be an empty object");return void 0===l&&k(),o.forEach((function(i){"string"==typeof e[i]&&w(t[i])&&S(t[i],e[i])||function(e,t,n,r,i,a){if(!(n in e)||!u(e[n],t[n])){if(!r){var o=new A(e,i),s=new A(t,i,e),l=new m({actual:o,expected:s,operator:"deepStrictEqual",stackStartFn:a});throw l.actual=e,l.expected=t,l.operator=a.name,l}P({actual:e,expected:t,message:r,operator:a.name,stackStartFn:a})}}(e,t,i,n,o,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function N(e){if("function"!=typeof e)throw new d("fn","Function",e);try{e()}catch(e){return e}return T}function R(e){return b(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function L(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!R(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!R(e))throw new d("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return T})).catch((function(e){return e}))}))}function M(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new d("error",["Object","Error","Function","RegExp"],n);if("object"===a(t)&&null!==t){if(t.message===n)throw new f("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new f("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!=typeof n)throw new d("error",["Object","Error","Function","RegExp"],n);if(t===T){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";P({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!I(t,n,r,e))throw t}function D(e,t,n,r){if(t!==T){if("string"==typeof n&&(r=n,n=void 0),!n||I(t,n)){var i=r?": ".concat(r):".",a="doesNotReject"===e.name?"rejection":"exception";P({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function F(e,t,n,r,i){if(!w(t))throw new d("regexp","RegExp",t);var o="match"===i;if("string"!=typeof e||S(t,e)!==o){if(n instanceof Error)throw n;var s=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(a(e)," (").concat(y(e),")"):(o?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(t),". Input:\n\n").concat(y(e),"\n"));var l=new m({actual:e,expected:t,message:n,operator:i,stackStartFn:r});throw l.generatedMessage=s,l}}function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];O.apply(void 0,[B,t.length].concat(t))}_.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];M.apply(void 0,[e,N(t)].concat(r))},_.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return L(t).then((function(t){return M.apply(void 0,[e,t].concat(r))}))},_.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];D.apply(void 0,[e,N(t)].concat(r))},_.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return L(t).then((function(t){return D.apply(void 0,[e,t].concat(r))}))},_.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=y(t);var r=new m({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=r.stack.split("\n"),l=0;l<o.length;l++){var u=s.indexOf(o[l]);if(-1!==u){s=s.slice(0,u);break}}r.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw r}},_.match=function e(t,n,r){F(t,n,r,e,"match")},_.doesNotMatch=function e(t,n,r){F(t,n,r,e,"doesNotMatch")},_.strict=x(B,_,{equal:_.strictEqual,deepEqual:_.deepStrictEqual,notEqual:_.notStrictEqual,notDeepEqual:_.notDeepStrictEqual}),_.strict.strict=_.strict},8264:function(e,t,n){"use strict";var r=n(7490);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===m(t)?t:String(t)}function u(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,v(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function d(e,t,n){return(d=p()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&h(i,n.prototype),i}).apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=n(7736).inspect,g=n(3905).codes.ERR_INVALID_ARG_TYPE;function b(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var w="",x="",E="",S="",k={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function C(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function _(e){return y(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function T(e,t,n){var i="",a="",o=0,s="",l=!1,u=_(e),c=u.split("\n"),f=_(t).split("\n"),d=0,p="";if("strictEqual"===n&&"object"===m(e)&&"object"===m(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var h=c[0].length+f[0].length;if(h<=10){if(!("object"===m(e)&&null!==e||"object"===m(t)&&null!==t||0===e&&0===t))return"".concat(k[n],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&h<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;c[0][d]===f[0][d];)d++;d>2&&(p="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}for(var v=c[c.length-1],y=f[f.length-1];v===y&&(d++<2?s="\n ".concat(v).concat(s):i=v,c.pop(),f.pop(),0!==c.length&&0!==f.length);)v=c[c.length-1],y=f[f.length-1];var g=Math.max(c.length,f.length);if(0===g){var C=u.split("\n");if(C.length>30)for(C[26]="".concat(w,"...").concat(S);C.length>27;)C.pop();return"".concat(k.notIdentical,"\n\n").concat(C.join("\n"),"\n")}d>3&&(s="\n".concat(w,"...").concat(S).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var T=0,P=k[n]+"\n".concat(x,"+ actual").concat(S," ").concat(E,"- expected").concat(S),O=" ".concat(w,"...").concat(S," Lines skipped");for(d=0;d<g;d++){var j=d-o;if(c.length<d+1)j>1&&d>2&&(j>4?(a+="\n".concat(w,"...").concat(S),l=!0):j>3&&(a+="\n ".concat(f[d-2]),T++),a+="\n ".concat(f[d-1]),T++),o=d,i+="\n".concat(E,"-").concat(S," ").concat(f[d]),T++;else if(f.length<d+1)j>1&&d>2&&(j>4?(a+="\n".concat(w,"...").concat(S),l=!0):j>3&&(a+="\n ".concat(c[d-2]),T++),a+="\n ".concat(c[d-1]),T++),o=d,a+="\n".concat(x,"+").concat(S," ").concat(c[d]),T++;else{var A=f[d],I=c[d],N=I!==A&&(!b(I,",")||I.slice(0,-1)!==A);N&&b(A,",")&&A.slice(0,-1)===I&&(N=!1,I+=","),N?(j>1&&d>2&&(j>4?(a+="\n".concat(w,"...").concat(S),l=!0):j>3&&(a+="\n ".concat(c[d-2]),T++),a+="\n ".concat(c[d-1]),T++),o=d,a+="\n".concat(x,"+").concat(S," ").concat(I),i+="\n".concat(E,"-").concat(S," ").concat(A),T+=2):(a+=i,i="",1!==j&&0!==d||(a+="\n ".concat(I),T++))}if(T>20&&d<g-2)return"".concat(P).concat(O,"\n").concat(a,"\n").concat(w,"...").concat(S).concat(i,"\n")+"".concat(w,"...").concat(S)}return"".concat(P).concat(l?O:"","\n").concat(a).concat(i).concat(s).concat(p)}var P=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(l,e);var n,i,o=function(e){var t=p();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}(l);function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),"object"!==m(e)||null===e)throw new g("options","Object",e);var n=e.message,i=e.operator,a=e.stackStartFn,s=e.actual,f=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=o.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(w="[34m",x="[32m",S="[39m",E="[31m"):(w="",x="",S="",E="")),"object"===m(s)&&null!==s&&"object"===m(f)&&null!==f&&"stack"in s&&s instanceof Error&&"stack"in f&&f instanceof Error&&(s=C(s),f=C(f)),"deepStrictEqual"===i||"strictEqual"===i)t=o.call(this,T(s,f,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var p=k[i],h=_(s).split("\n");if("notStrictEqual"===i&&"object"===m(s)&&null!==s&&(p=k.notStrictEqualObject),h.length>30)for(h[26]="".concat(w,"...").concat(S);h.length>27;)h.pop();t=1===h.length?o.call(this,"".concat(p," ").concat(h[0])):o.call(this,"".concat(p,"\n\n").concat(h.join("\n"),"\n"))}else{var v=_(s),y="",b=k[i];"notDeepEqual"===i||"notEqual"===i?(v="".concat(k[i],"\n\n").concat(v)).length>1024&&(v="".concat(v.slice(0,1021),"...")):(y="".concat(_(f)),v.length>512&&(v="".concat(v.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===i||"equal"===i?v="".concat(b,"\n\n").concat(v,"\n\nshould equal\n\n"):y=" ".concat(i," ").concat(y)),t=o.call(this,"".concat(v).concat(y))}return Error.stackTraceLimit=d,t.generatedMessage=!n,Object.defineProperty(c(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=s,t.expected=f,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(c(t),a),t.stack,t.name="AssertionError",u(t)}return n=l,(i=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return y(this,a(a({},t),{},{customInspect:!1,depth:0}))}}])&&s(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),l}(f(Error),y.custom);e.exports=P},3905:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=o(e);if(t){var a=o(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s,l,u={};function c(e,t,n){n||(n=Error);var r=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(s,n);var r,o=a(s);function s(n,r,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(a=o.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))).code=e,a}return r=s,Object.defineProperty(r,"prototype",{writable:!1}),r}(n);u[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,o,l;if(void 0===s&&(s=n(5205)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))l="The ".concat(e," ").concat(a," ").concat(f(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";l='The "'.concat(e,'" ').concat(u," ").concat(a," ").concat(f(t,"type"))}return l+". Received type ".concat(r(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=n(7736));var i=l.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(5205)),s(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=u},8527:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},l=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},u=Object.is?Object.is:n(8199),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:n(5738);function d(e){return e.call.bind(e)}var p=d(Object.prototype.hasOwnProperty),h=d(Object.prototype.propertyIsEnumerable),v=d(Object.prototype.toString),m=n(7736).types,y=m.isAnyArrayBuffer,g=m.isArrayBufferView,b=m.isDate,w=m.isMap,x=m.isRegExp,E=m.isSet,S=m.isNativeError,k=m.isBoxedPrimitive,C=m.isNumberObject,_=m.isStringObject,T=m.isBooleanObject,P=m.isBigIntObject,O=m.isSymbolObject,j=m.isFloat32Array,A=m.isFloat64Array;function I(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function N(e){return Object.keys(e).filter(I).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function L(e,t,n,r){if(e===t)return 0!==e||!n||u(e,t);if(n){if("object"!==a(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==a(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==a(e))return(null===t||"object"!==a(t))&&e==t;if(null===t||"object"!==a(t))return!1}var i,s,l,c,d=v(e);if(d!==v(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=N(e),h=N(t);return p.length===h.length&&D(e,t,n,r,1,p)}if("[object Object]"===d&&(!w(e)&&w(t)||!E(e)&&E(t)))return!1;if(b(e)){if(!b(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(x(e)){if(!x(t)||(l=e,c=t,!(o?l.source===c.source&&l.flags===c.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(c))))return!1}else if(S(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(g(e)){if(n||!j(e)&&!A(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===R(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var m=N(e),I=N(t);return m.length===I.length&&D(e,t,n,r,0,m)}if(E(e))return!(!E(t)||e.size!==t.size)&&D(e,t,n,r,2);if(w(e))return!(!w(t)||e.size!==t.size)&&D(e,t,n,r,3);if(y(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==R(new Uint8Array(i),new Uint8Array(s)))return!1}else if(k(e)&&!function(e,t){return C(e)?C(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):_(e)?_(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):T(e)?T(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):P(e)?P(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):O(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return D(e,t,n,r,0)}function M(e,t){return t.filter((function(t){return h(e,t)}))}function D(e,t,n,i,o,u){if(5===arguments.length){u=Object.keys(e);var f=Object.keys(t);if(u.length!==f.length)return!1}for(var d=0;d<u.length;d++)if(!p(t,u[d]))return!1;if(n&&5===arguments.length){var v=c(e);if(0!==v.length){var m=0;for(d=0;d<v.length;d++){var y=v[d];if(h(e,y)){if(!h(t,y))return!1;u.push(y),m++}else if(h(t,y))return!1}var g=c(t);if(v.length!==g.length&&M(t,g).length!==m)return!1}else{var b=c(t);if(0!==b.length&&0!==M(t,b).length)return!1}}if(0===u.length&&(0===o||1===o&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var w=i.val1.get(e);if(void 0!==w){var x=i.val2.get(t);if(void 0!==x)return w===x}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var E=function(e,t,n,i,o,u){var c=0;if(2===u){if(!function(e,t,n,r){for(var i=null,o=s(e),l=0;l<o.length;l++){var u=o[l];if("object"===a(u)&&null!==u)null===i&&(i=new Set),i.add(u);else if(!t.has(u)){if(n)return!1;if(!U(e,t,u))return!1;null===i&&(i=new Set),i.add(u)}}if(null!==i){for(var c=s(t),f=0;f<c.length;f++){var d=c[f];if("object"===a(d)&&null!==d){if(!F(i,d,n,r))return!1}else if(!n&&!e.has(d)&&!F(i,d,n,r))return!1}return 0===i.size}return!0}(e,t,n,o))return!1}else if(3===u){if(!function(e,t,n,i){for(var o=null,s=l(e),u=0;u<s.length;u++){var c=r(s[u],2),f=c[0],d=c[1];if("object"===a(f)&&null!==f)null===o&&(o=new Set),o.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!L(d,p,n,i)){if(n)return!1;if(!z(e,t,f,d,i))return!1;null===o&&(o=new Set),o.add(f)}}}if(null!==o){for(var h=l(t),v=0;v<h.length;v++){var m=r(h[v],2),y=m[0],g=m[1];if("object"===a(y)&&null!==y){if(!V(o,e,y,g,n,i))return!1}else if(!(n||e.has(y)&&L(e.get(y),g,!1,i)||V(o,e,y,g,!1,i)))return!1}return 0===o.size}return!0}(e,t,n,o))return!1}else if(1===u)for(;c<e.length;c++){if(!p(e,c)){if(p(t,c))return!1;for(var f=Object.keys(e);c<f.length;c++){var d=f[c];if(!p(t,d)||!L(e[d],t[d],n,o))return!1}return f.length===Object.keys(t).length}if(!p(t,c)||!L(e[c],t[c],n,o))return!1}for(c=0;c<i.length;c++){var h=i[c];if(!L(e[h],t[h],n,o))return!1}return!0}(e,t,n,u,i,o);return i.val1.delete(e),i.val2.delete(t),E}function F(e,t,n,r){for(var i=s(e),a=0;a<i.length;a++){var o=i[a];if(L(t,o,n,r))return e.delete(o),!0}return!1}function B(e){switch(a(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f(e))return!1}return!0}function U(e,t,n){var r=B(n);return null!=r?r:t.has(r)&&!e.has(r)}function z(e,t,n,r,i){var a=B(n);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!L(r,o,!1,i))&&!e.has(a)&&L(r,o,!1,i)}function V(e,t,n,r,i,a){for(var o=s(e),l=0;l<o.length;l++){var u=o[l];if(L(n,u,i,a)&&L(r,t.get(u),i,a))return e.delete(u),!0}return!1}e.exports={isDeepEqual:function(e,t){return L(e,t,!1)},isDeepStrictEqual:function(e,t){return L(e,t,!0)}}},4680:function(e,t,n){"use strict";var r=n(8476),i=n(9962),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},9962:function(e,t,n){"use strict";var r=n(1199),i=n(8476),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,o,arguments);return l&&u&&l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return s(r,a,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},8466:function(e,t,n){var r=n(7736),i=n(5205);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,l={};o=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){l[e]=a()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=a()-t;o.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],c=0;c<u.length;c++){var f=u[c],d=f[0],p=f[1];o[p]||(o[p]=d)}e.exports=o},5150:function(e,t,n){"use strict";var r=n(2926)(),i=n(8476),a=r&&i("%Object.defineProperty%",!0),o=i("%SyntaxError%"),s=i("%TypeError%"),l=n(6103);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!l&&l(e,t);if(a)a(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===r&&f?f.enumerable:!r,value:n,writable:null===i&&f?f.writable:!i});else{if(!c&&(r||i||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},9959:function(e,t,n){"use strict";var r=n(6328),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=n(5150),l=n(2926)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==a.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)u(e,a[s],t[a[s]],n[a[s]])};c.supportsDescriptors=!!l,e.exports=c},5767:function(e,t,n){"use strict";var r=n(8866),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,o):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,o):function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,o)}},2781:function(e){"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,a=t.call(arguments,1),o=Math.max(0,r.length-a.length),s=[],l=0;l<o;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var n=r.apply(this,a.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,a.concat(t.call(arguments)))})),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}},1199:function(e,t,n){"use strict";var r=n(2781);e.exports=Function.prototype.bind||r},8476:function(e,t,n){"use strict";var r,i=SyntaxError,a=Function,o=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new o},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,f=n(5520)(),d=n(7593)(),p=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},v="undefined"!=typeof Uint8Array&&p?p(Uint8Array):r,m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&p?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&p?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&p?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&p?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":v,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(p)try{null.error}catch(e){var y=p(p(e));m["%Error.prototype%"]=y}var g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&p&&(n=p(i.prototype))}return m[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=n(1199),x=n(7838),E=w.call(Function.call,Array.prototype.concat),S=w.call(Function.apply,Array.prototype.splice),k=w.call(Function.call,String.prototype.replace),C=w.call(Function.call,String.prototype.slice),_=w.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,O=function(e,t){var n,r=e;if(x(b,r)&&(r="%"+(n=b[r])[0]+"%"),x(m,r)){var a=m[r];if(a===h&&(a=g(r)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:a}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=C(e,0,1),n=C(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,T,(function(e,t,n,i){r[r.length]=n?k(i,P,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",a=O("%"+r+"%",t),s=a.name,u=a.value,c=!1,f=a.alias;f&&(r=f[0],S(n,E([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],v=C(h,0,1),y=C(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),x(m,s="%"+(r+="."+h)+"%"))u=m[s];else if(null!=u){if(!(h in u)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var g=l(u,h);u=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:u[h]}else p=x(u,h),u=u[h];p&&!c&&(m[s]=u)}}return u}},6103:function(e,t,n){"use strict";var r=n(8476)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},2926:function(e,t,n){"use strict";var r=n(8476)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},7593:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},5520:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(541);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},541:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8857:function(e,t,n){"use strict";var r=n(541);e.exports=function(){return r()&&!!Symbol.toStringTag}},7838:function(e){"use strict";var t={}.hasOwnProperty,n=Function.prototype.call;e.exports=n.bind?n.bind(t):function(e,r){return n.call(t,e,r)}},273:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},5021:function(e,t,n){"use strict";var r=n(8857)(),i=n(4680)("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},8866:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(o(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},7469:function(e,t,n){"use strict";var r,i=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(8857)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},1546:function(e){"use strict";e.exports=function(e){return e!=e}},5738:function(e,t,n){"use strict";var r=n(9962),i=n(9959),a=n(1546),o=n(9221),s=n(5434),l=r(o(),Number);i(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},9221:function(e,t,n){"use strict";var r=n(1546);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},5434:function(e,t,n){"use strict";var r=n(9959),i=n(9221);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2105:function(e,t,n){"use strict";var r=n(1520);e.exports=function(e){return!!r(e)}},538:function(e,t,n){var r=n(8466);e.exports=function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[o]={exports:{}};t[o][0].call(u.exports,(function(e){return i(t[o][1][e]||e)}),u,u.exports,e,t,n,r)}return n[o].exports}for(var a=void 0,o=0;o<r.length;o++)i(r[o]);return i}({"./aesprim":[function(e,t,n){!function(e,t){"use strict";t(void 0!==n?n:e.esprima={})}(this,(function(e){"use strict";var t,n,r,i,a,o,s,l,u,c,f,d,p,h,v,m,y,g;function b(e,t){if(!e)throw new Error("ASSERT: "+t)}function w(e){return e>=48&&e<=57}function x(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function E(e){return"01234567".indexOf(e)>=0}function S(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function k(e){return 10===e||13===e||8232===e||8233===e}function C(e){return 64==e||36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&s.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function _(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&s.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function T(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function P(e){return"eval"===e||"arguments"===e}function O(e){if(c&&T(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function j(e,t,n,r,i){var a;b("number"==typeof n,"Comment must have valid position"),y.lastCommentStart>=n||(y.lastCommentStart=n,a={type:e,value:t},g.range&&(a.range=[n,r]),g.loc&&(a.loc=i),g.comments.push(a),g.attachComment&&(g.leadingComments.push(a),g.trailingComments.push(a)))}function A(e){var t,n,r,i;for(t=f-e,n={start:{line:d,column:f-p-e}};f<h;)if(r=u.charCodeAt(f),++f,k(r))return g.comments&&(i=u.slice(t+e,f-1),n.end={line:d,column:f-p-1},j("Line",i,t,f-1,n)),13===r&&10===u.charCodeAt(f)&&++f,++d,void(p=f);g.comments&&(i=u.slice(t+e,f),n.end={line:d,column:f-p},j("Line",i,t,f,n))}function I(){var e,t,n,r;for(g.comments&&(e=f-2,t={start:{line:d,column:f-p-2}});f<h;)if(k(n=u.charCodeAt(f)))13===n&&10===u.charCodeAt(f+1)&&++f,++d,++f,p=f,f>=h&&Y({},o.UnexpectedToken,"ILLEGAL");else if(42===n){if(47===u.charCodeAt(f+1))return++f,++f,void(g.comments&&(r=u.slice(e+2,f-2),t.end={line:d,column:f-p},j("Block",r,e,f,t)));++f}else++f;Y({},o.UnexpectedToken,"ILLEGAL")}function N(){var e,t;for(t=0===f;f<h;)if(S(e=u.charCodeAt(f)))++f;else if(k(e))++f,13===e&&10===u.charCodeAt(f)&&++f,++d,p=f,t=!0;else if(47===e)if(47===(e=u.charCodeAt(f+1)))++f,++f,A(2),t=!0;else{if(42!==e)break;++f,++f,I()}else if(t&&45===e){if(45!==u.charCodeAt(f+1)||62!==u.charCodeAt(f+2))break;f+=3,A(3)}else{if(60!==e)break;if("!--"!==u.slice(f+1,f+4))break;++f,++f,++f,++f,A(4)}}function R(e){var t,n,r,i=0;for(n="u"===e?4:2,t=0;t<n;++t){if(!(f<h&&x(u[f])))return"";r=u[f++],i=16*i+"0123456789abcdef".indexOf(r.toLowerCase())}return String.fromCharCode(i)}function L(){var e,t;for(e=u.charCodeAt(f++),t=String.fromCharCode(e),92===e&&(117!==u.charCodeAt(f)&&Y({},o.UnexpectedToken,"ILLEGAL"),++f,(e=R("u"))&&"\\"!==e&&C(e.charCodeAt(0))||Y({},o.UnexpectedToken,"ILLEGAL"),t=e);f<h&&_(e=u.charCodeAt(f));)++f,t+=String.fromCharCode(e),92===e&&(t=t.substr(0,t.length-1),117!==u.charCodeAt(f)&&Y({},o.UnexpectedToken,"ILLEGAL"),++f,(e=R("u"))&&"\\"!==e&&_(e.charCodeAt(0))||Y({},o.UnexpectedToken,"ILLEGAL"),t+=e);return t}function M(){var e,t;for(e=f++;f<h;){if(92===(t=u.charCodeAt(f)))return f=e,L();if(!_(t))break;++f}return u.slice(e,f)}function D(){var e,n,r,i,a=f,s=u.charCodeAt(f),l=u[f];switch(s){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++f,g.tokenize&&(40===s?g.openParenToken=g.tokens.length:123===s&&(g.openCurlyToken=g.tokens.length)),{type:t.Punctuator,value:String.fromCharCode(s),lineNumber:d,lineStart:p,start:a,end:f};default:if(61===(e=u.charCodeAt(f+1)))switch(s){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return f+=2,{type:t.Punctuator,value:String.fromCharCode(s)+String.fromCharCode(e),lineNumber:d,lineStart:p,start:a,end:f};case 33:case 61:return f+=2,61===u.charCodeAt(f)&&++f,{type:t.Punctuator,value:u.slice(a,f),lineNumber:d,lineStart:p,start:a,end:f}}}return">>>="===(i=u.substr(f,4))?(f+=4,{type:t.Punctuator,value:i,lineNumber:d,lineStart:p,start:a,end:f}):">>>"===(r=i.substr(0,3))||"<<="===r||">>="===r?(f+=3,{type:t.Punctuator,value:r,lineNumber:d,lineStart:p,start:a,end:f}):l===(n=r.substr(0,2))[1]&&"+-<>&|".indexOf(l)>=0||"=>"===n?(f+=2,{type:t.Punctuator,value:n,lineNumber:d,lineStart:p,start:a,end:f}):"<>=!+-*%&|^/".indexOf(l)>=0?(++f,{type:t.Punctuator,value:l,lineNumber:d,lineStart:p,start:a,end:f}):void Y({},o.UnexpectedToken,"ILLEGAL")}function F(){var e,n,r;if(b(w((r=u[f]).charCodeAt(0))||"."===r,"Numeric literal must start with a decimal digit or a decimal point"),n=f,e="","."!==r){if(e=u[f++],r=u[f],"0"===e){if("x"===r||"X"===r)return++f,function(e){for(var n="";f<h&&x(u[f]);)n+=u[f++];return 0===n.length&&Y({},o.UnexpectedToken,"ILLEGAL"),C(u.charCodeAt(f))&&Y({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt("0x"+n,16),lineNumber:d,lineStart:p,start:e,end:f}}(n);if(E(r))return function(e){for(var n="0"+u[f++];f<h&&E(u[f]);)n+=u[f++];return(C(u.charCodeAt(f))||w(u.charCodeAt(f)))&&Y({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt(n,8),octal:!0,lineNumber:d,lineStart:p,start:e,end:f}}(n);r&&w(r.charCodeAt(0))&&Y({},o.UnexpectedToken,"ILLEGAL")}for(;w(u.charCodeAt(f));)e+=u[f++];r=u[f]}if("."===r){for(e+=u[f++];w(u.charCodeAt(f));)e+=u[f++];r=u[f]}if("e"===r||"E"===r)if(e+=u[f++],"+"!==(r=u[f])&&"-"!==r||(e+=u[f++]),w(u.charCodeAt(f)))for(;w(u.charCodeAt(f));)e+=u[f++];else Y({},o.UnexpectedToken,"ILLEGAL");return C(u.charCodeAt(f))&&Y({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseFloat(e),lineNumber:d,lineStart:p,start:n,end:f}}function B(){var e,n,r,i;return m=null,N(),e=f,n=function(){var e,t,n,r;for(b("/"===(e=u[f]),"Regular expression literal must start with a slash"),t=u[f++],n=!1,r=!1;f<h;)if(t+=e=u[f++],"\\"===e)k((e=u[f++]).charCodeAt(0))&&Y({},o.UnterminatedRegExp),t+=e;else if(k(e.charCodeAt(0)))Y({},o.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){r=!0;break}"["===e&&(n=!0)}return r||Y({},o.UnterminatedRegExp),{value:t.substr(1,t.length-2),literal:t}}(),r=function(){var e,t,n,r;for(t="",n="";f<h&&_((e=u[f]).charCodeAt(0));)if(++f,"\\"===e&&f<h)if("u"===(e=u[f])){if(r=++f,e=R("u"))for(n+=e,t+="\\u";r<f;++r)t+=u[r];else f=r,n+="u",t+="\\u";K({},o.UnexpectedToken,"ILLEGAL")}else t+="\\",K({},o.UnexpectedToken,"ILLEGAL");else n+=e,t+=e;return{value:n,literal:t}}(),i=function(e,t){var n;try{n=new RegExp(e,t)}catch(e){Y({},o.InvalidRegExp)}return n}(n.value,r.value),g.tokenize?{type:t.RegularExpression,value:i,lineNumber:d,lineStart:p,start:e,end:f}:{literal:n.literal+r.literal,value:i,start:e,end:f}}function U(){var e,t,n,r;return N(),e=f,t={start:{line:d,column:f-p}},n=B(),t.end={line:d,column:f-p},g.tokenize||(g.tokens.length>0&&(r=g.tokens[g.tokens.length-1]).range[0]===e&&"Punctuator"===r.type&&("/"!==r.value&&"/="!==r.value||g.tokens.pop()),g.tokens.push({type:"RegularExpression",value:n.literal,range:[e,f],loc:t})),n}function z(e){return e.type===t.Identifier||e.type===t.Keyword||e.type===t.BooleanLiteral||e.type===t.NullLiteral}function V(){var e;return N(),f>=h?{type:t.EOF,lineNumber:d,lineStart:p,start:f,end:f}:C(e=u.charCodeAt(f))?function(){var e,n;return e=f,{type:1===(n=92===u.charCodeAt(f)?L():M()).length?t.Identifier:O(n)?t.Keyword:"null"===n?t.NullLiteral:"true"===n||"false"===n?t.BooleanLiteral:t.Identifier,value:n,lineNumber:d,lineStart:p,start:e,end:f}}():40===e||41===e||59===e?D():39===e||34===e?function(){var e,n,r,i,a,s,l,c,v="",m=!1;for(l=d,c=p,b("'"===(e=u[f])||'"'===e,"String literal must starts with a quote"),n=f,++f;f<h;){if((r=u[f++])===e){e="";break}if("\\"===r)if((r=u[f++])&&k(r.charCodeAt(0)))++d,"\r"===r&&"\n"===u[f]&&++f,p=f;else switch(r){case"u":case"x":s=f,(a=R(r))?v+=a:(f=s,v+=r);break;case"n":v+="\n";break;case"r":v+="\r";break;case"t":v+="\t";break;case"b":v+="\b";break;case"f":v+="\f";break;case"v":v+="\v";break;default:E(r)?(0!==(i="01234567".indexOf(r))&&(m=!0),f<h&&E(u[f])&&(m=!0,i=8*i+"01234567".indexOf(u[f++]),"0123".indexOf(r)>=0&&f<h&&E(u[f])&&(i=8*i+"01234567".indexOf(u[f++]))),v+=String.fromCharCode(i)):v+=r}else{if(k(r.charCodeAt(0)))break;v+=r}}return""!==e&&Y({},o.UnexpectedToken,"ILLEGAL"),{type:t.StringLiteral,value:v,octal:m,startLineNumber:l,startLineStart:c,lineNumber:d,lineStart:p,start:n,end:f}}():46===e?w(u.charCodeAt(f+1))?F():D():w(e)?F():g.tokenize&&47===e?function(){var e,t;if(!(e=g.tokens[g.tokens.length-1]))return U();if("Punctuator"===e.type){if("]"===e.value)return D();if(")"===e.value)return!(t=g.tokens[g.openParenToken-1])||"Keyword"!==t.type||"if"!==t.value&&"while"!==t.value&&"for"!==t.value&&"with"!==t.value?D():U();if("}"===e.value){if(g.tokens[g.openCurlyToken-3]&&"Keyword"===g.tokens[g.openCurlyToken-3].type){if(!(t=g.tokens[g.openCurlyToken-4]))return D()}else{if(!g.tokens[g.openCurlyToken-4]||"Keyword"!==g.tokens[g.openCurlyToken-4].type)return D();if(!(t=g.tokens[g.openCurlyToken-5]))return U()}return r.indexOf(t.value)>=0?D():U()}return U()}return"Keyword"===e.type?U():D()}():D()}function H(){var e,r,i;return N(),e={start:{line:d,column:f-p}},r=V(),e.end={line:d,column:f-p},r.type!==t.EOF&&(i=u.slice(r.start,r.end),g.tokens.push({type:n[r.type],value:i,range:[r.start,r.end],loc:e})),r}function W(){var e;return f=(e=m).end,d=e.lineNumber,p=e.lineStart,m=void 0!==g.tokens?H():V(),f=e.end,d=e.lineNumber,p=e.lineStart,e}function $(){var e,t,n;e=f,t=d,n=p,m=void 0!==g.tokens?H():V(),f=e,d=t,p=n}function q(e,t){this.line=e,this.column=t}function G(e,t,n,r){this.start=new q(e,t),this.end=new q(n,r)}function X(){var e,t,n,r;return e=f,t=d,n=p,N(),r=d!==t,f=e,d=t,p=n,r}function Y(e,t){var n,r=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,(function(e,t){return b(t<r.length,"Message reference must be in range"),r[t]}));throw"number"==typeof e.lineNumber?((n=new Error("Line "+e.lineNumber+": "+i)).index=e.start,n.lineNumber=e.lineNumber,n.column=e.start-p+1):((n=new Error("Line "+d+": "+i)).index=f,n.lineNumber=d,n.column=f-p+1),n.description=i,n}function K(){try{Y.apply(null,arguments)}catch(e){if(!g.errors)throw e;g.errors.push(e)}}function Q(e){if(e.type===t.EOF&&Y(e,o.UnexpectedEOS),e.type===t.NumericLiteral&&Y(e,o.UnexpectedNumber),e.type===t.StringLiteral&&Y(e,o.UnexpectedString),e.type===t.Identifier&&Y(e,o.UnexpectedIdentifier),e.type===t.Keyword){if(function(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}(e.value))Y(e,o.UnexpectedReserved);else if(c&&T(e.value))return void K(e,o.StrictReservedWord);Y(e,o.UnexpectedToken,e.value)}Y(e,o.UnexpectedToken,e.value)}function J(e){var n=W();n.type===t.Punctuator&&n.value===e||Q(n)}function Z(e){var n=W();n.type===t.Keyword&&n.value===e||Q(n)}function ee(e){return m.type===t.Punctuator&&m.value===e}function te(e){return m.type===t.Keyword&&m.value===e}function ne(){var e;return m.type===t.Punctuator&&("="===(e=m.value)||"*="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e)}function re(){var e;59===u.charCodeAt(f)||ee(";")?W():(e=d,N(),d===e&&(m.type===t.EOF||ee("}")||Q(m)))}function ie(e){return e.type===i.Identifier||e.type===i.MemberExpression}function ae(e,t){var n,r,i;return n=c,i=m,r=Pe(),t&&c&&P(e[0].name)&&K(t,o.StrictParamName),c=n,v.markEnd(v.createFunctionExpression(null,e,[],r),i)}function oe(){var e,n;return n=m,(e=W()).type===t.StringLiteral||e.type===t.NumericLiteral?(c&&e.octal&&K(e,o.StrictOctalLiteral),v.markEnd(v.createLiteral(e),n)):v.markEnd(v.createIdentifier(e.value),n)}function se(){var e,n,r,i,a,s;return s=m,(e=m).type===t.Identifier?(r=oe(),"get"!==e.value||ee(":")?"set"!==e.value||ee(":")?(J(":"),i=ge(),v.markEnd(v.createProperty("init",r,i),s)):(n=oe(),J("("),(e=m).type!==t.Identifier?(J(")"),K(e,o.UnexpectedToken,e.value),i=ae([])):(a=[xe()],J(")"),i=ae(a,e)),v.markEnd(v.createProperty("set",n,i),s)):(n=oe(),J("("),J(")"),i=ae([]),v.markEnd(v.createProperty("get",n,i),s))):e.type!==t.EOF&&e.type!==t.Punctuator?(n=oe(),J(":"),i=ge(),v.markEnd(v.createProperty("init",n,i),s)):void Q(e)}function le(){var e,t,n,r,s,l=[],u={},f=String;for(s=m,J("{");!ee("}");)t=(e=se()).key.type===i.Identifier?e.key.name:f(e.key.value),r="init"===e.kind?a.Data:"get"===e.kind?a.Get:a.Set,n="$"+t,Object.prototype.hasOwnProperty.call(u,n)?(u[n]===a.Data?c&&r===a.Data?K({},o.StrictDuplicateProperty):r!==a.Data&&K({},o.AccessorDataProperty):r===a.Data?K({},o.AccessorDataProperty):u[n]&r&&K({},o.AccessorGetSet),u[n]|=r):u[n]=r,l.push(e),ee("}")||J(",");return J("}"),v.markEnd(v.createObjectExpression(l),s)}function ue(){var e,n,r,i;if(ee("("))return function(){var e;return J("("),e=be(),J(")"),e}();if(ee("["))return function(){var e,t=[];for(e=m,J("[");!ee("]");)ee(",")?(W(),t.push(null)):(t.push(ge()),ee("]")||J(","));return W(),v.markEnd(v.createArrayExpression(t),e)}();if(ee("{"))return le();if(e=m.type,i=m,e===t.Identifier)r=v.createIdentifier(W().value);else if(e===t.StringLiteral||e===t.NumericLiteral)c&&m.octal&&K(m,o.StrictOctalLiteral),r=v.createLiteral(W());else if(e===t.Keyword){if(te("function"))return function(){var e,t,n,r,i,a,s,l,u=null,f=[];return l=m,Z("function"),ee("(")||(e=m,u=xe(),c?P(e.value)&&K(e,o.StrictFunctionName):P(e.value)?(n=e,r=o.StrictFunctionName):T(e.value)&&(n=e,r=o.StrictReservedWord)),f=(i=Oe(n)).params,t=i.stricted,n=i.firstRestricted,i.message&&(r=i.message),s=c,a=Pe(),c&&n&&Y(n,r),c&&t&&K(t,r),c=s,v.markEnd(v.createFunctionExpression(u,f,[],a),l)}();te("this")?(W(),r=v.createThisExpression()):Q(W())}else e===t.BooleanLiteral?((n=W()).value="true"===n.value,r=v.createLiteral(n)):e===t.NullLiteral?((n=W()).value=null,r=v.createLiteral(n)):ee("/")||ee("/=")?(r=void 0!==g.tokens?v.createLiteral(U()):v.createLiteral(B()),$()):Q(W());return v.markEnd(r,i)}function ce(){var e=[];if(J("("),!ee(")"))for(;f<h&&(e.push(ge()),!ee(")"));)J(",");return J(")"),e}function fe(){return J("."),function(){var e,t;return t=m,z(e=W())||Q(e),v.markEnd(v.createIdentifier(e.value),t)}()}function de(){var e;return J("["),e=be(),J("]"),e}function pe(){var e,t,n;return n=m,Z("new"),e=function(){var e,t,n,r;for(r=m,e=y.allowIn,t=te("new")?pe():ue(),y.allowIn=e;ee(".")||ee("[");)ee("[")?(n=de(),t=v.createMemberExpression("[",t,n)):(n=fe(),t=v.createMemberExpression(".",t,n)),v.markEnd(t,r);return t}(),t=ee("(")?ce():[],v.markEnd(v.createNewExpression(e,t),n)}function he(){var e,n,r=m;return e=function(){var e,t,n,r,i;for(i=m,e=y.allowIn,y.allowIn=!0,t=te("new")?pe():ue(),y.allowIn=e;;){if(ee("."))r=fe(),t=v.createMemberExpression(".",t,r);else if(ee("("))n=ce(),t=v.createCallExpression(t,n);else{if(!ee("["))break;r=de(),t=v.createMemberExpression("[",t,r)}v.markEnd(t,i)}return t}(),m.type===t.Punctuator&&(!ee("++")&&!ee("--")||X()||(c&&e.type===i.Identifier&&P(e.name)&&K({},o.StrictLHSPostfix),ie(e)||K({},o.InvalidLHSInAssignment),n=W(),e=v.markEnd(v.createPostfixExpression(n.value,e),r))),e}function ve(){var e,n,r;return m.type!==t.Punctuator&&m.type!==t.Keyword?n=he():ee("++")||ee("--")?(r=m,e=W(),n=ve(),c&&n.type===i.Identifier&&P(n.name)&&K({},o.StrictLHSPrefix),ie(n)||K({},o.InvalidLHSInAssignment),n=v.createUnaryExpression(e.value,n),n=v.markEnd(n,r)):ee("+")||ee("-")||ee("~")||ee("!")?(r=m,e=W(),n=ve(),n=v.createUnaryExpression(e.value,n),n=v.markEnd(n,r)):te("delete")||te("void")||te("typeof")?(r=m,e=W(),n=ve(),n=v.createUnaryExpression(e.value,n),n=v.markEnd(n,r),c&&"delete"===n.operator&&n.argument.type===i.Identifier&&K({},o.StrictDelete)):n=he(),n}function me(e,n){var r=0;if(e.type!==t.Punctuator&&e.type!==t.Keyword)return 0;switch(e.value){case"||":r=1;break;case"&&":r=2;break;case"|":r=3;break;case"^":r=4;break;case"&":r=5;break;case"==":case"!=":case"===":case"!==":r=6;break;case"<":case">":case"<=":case">=":case"instanceof":r=7;break;case"in":r=n?7:0;break;case"<<":case">>":case">>>":r=8;break;case"+":case"-":r=9;break;case"*":case"/":case"%":r=11}return r}function ye(){var e,t,n,r,i;return i=m,e=function(){var e,t,n,r,i,a,o,s,l,u;if(e=m,l=ve(),0===(i=me(r=m,y.allowIn)))return l;for(r.prec=i,W(),t=[e,m],a=[l,r,o=ve()];(i=me(m,y.allowIn))>0;){for(;a.length>2&&i<=a[a.length-2].prec;)o=a.pop(),s=a.pop().value,l=a.pop(),n=v.createBinaryExpression(s,l,o),t.pop(),e=t[t.length-1],v.markEnd(n,e),a.push(n);(r=W()).prec=i,a.push(r),t.push(m),n=ve(),a.push(n)}for(n=a[u=a.length-1],t.pop();u>1;)n=v.createBinaryExpression(a[u-1].value,a[u-2],n),u-=2,e=t.pop(),v.markEnd(n,e);return n}(),ee("?")&&(W(),t=y.allowIn,y.allowIn=!0,n=ge(),y.allowIn=t,J(":"),r=ge(),e=v.createConditionalExpression(e,n,r),v.markEnd(e,i)),e}function ge(){var e,t,n,r,a;return e=m,a=m,r=t=ye(),ne()&&(ie(t)||K({},o.InvalidLHSInAssignment),c&&t.type===i.Identifier&&P(t.name)&&K(e,o.StrictLHSAssignment),e=W(),n=ge(),r=v.markEnd(v.createAssignmentExpression(e.value,t,n),a)),r}function be(){var e,t=m;if(e=ge(),ee(",")){for(e=v.createSequenceExpression([e]);f<h&&ee(",");)W(),e.expressions.push(ge());v.markEnd(e,t)}return e}function we(){var e,t;return t=m,J("{"),e=function(){for(var e,t=[];f<h&&!ee("}")&&void 0!==(e=Ae());)t.push(e);return t}(),J("}"),v.markEnd(v.createBlockStatement(e),t)}function xe(){var e,n;return n=m,(e=W()).type!==t.Identifier&&Q(e),v.markEnd(v.createIdentifier(e.value),n)}function Ee(e){var t,n,r=null;return n=m,t=xe(),c&&P(t.name)&&K({},o.StrictVarName),"const"===e?(J("="),r=ge()):ee("=")&&(W(),r=ge()),v.markEnd(v.createVariableDeclarator(t,r),n)}function Se(e){var t=[];do{if(t.push(Ee(e)),!ee(","))break;W()}while(f<h);return t}function ke(){var e,t,n,r,i,a,s;return e=t=n=null,Z("for"),J("("),ee(";")?W():(te("var")||te("let")?(y.allowIn=!1,e=function(){var e,t,n;return n=m,e=W(),t=Se(),v.markEnd(v.createVariableDeclaration(t,e.value),n)}(),y.allowIn=!0,1===e.declarations.length&&te("in")&&(W(),r=e,i=be(),e=null)):(y.allowIn=!1,e=be(),y.allowIn=!0,te("in")&&(ie(e)||K({},o.InvalidLHSInForIn),W(),r=e,i=be(),e=null)),void 0===r&&J(";")),void 0===r&&(ee(";")||(t=be()),J(";"),ee(")")||(n=be())),J(")"),s=y.inIteration,y.inIteration=!0,a=Te(),y.inIteration=s,void 0===r?v.createForStatement(e,t,n,a):v.createForInStatement(r,i,a)}function Ce(){var e,t,n,r=[];for(n=m,te("default")?(W(),e=null):(Z("case"),e=be()),J(":");f<h&&!(ee("}")||te("default")||te("case"));)t=Te(),r.push(t);return v.markEnd(v.createSwitchCase(e,r),n)}function _e(){var e,t=[],n=null;return Z("try"),e=we(),te("catch")&&t.push(function(){var e,t,n;return n=m,Z("catch"),J("("),ee(")")&&Q(m),e=xe(),c&&P(e.name)&&K({},o.StrictCatchVariable),J(")"),t=we(),v.markEnd(v.createCatchClause(e,t),n)}()),te("finally")&&(W(),n=we()),0!==t.length||n||Y({},o.NoCatchOrFinally),v.createTryStatement(e,[],t,n)}function Te(){var e,n,r,a,s=m.type;if(s===t.EOF&&Q(m),s===t.Punctuator&&"{"===m.value)return we();if(a=m,s===t.Punctuator)switch(m.value){case";":return v.markEnd((J(";"),v.createEmptyStatement()),a);case"(":return v.markEnd(function(){var e=be();return re(),v.createExpressionStatement(e)}(),a)}if(s===t.Keyword)switch(m.value){case"break":return v.markEnd(function(){var e,n=null;return Z("break"),59===u.charCodeAt(f)?(W(),y.inIteration||y.inSwitch||Y({},o.IllegalBreak),v.createBreakStatement(null)):X()?(y.inIteration||y.inSwitch||Y({},o.IllegalBreak),v.createBreakStatement(null)):(m.type===t.Identifier&&(e="$"+(n=xe()).name,Object.prototype.hasOwnProperty.call(y.labelSet,e)||Y({},o.UnknownLabel,n.name)),re(),null!==n||y.inIteration||y.inSwitch||Y({},o.IllegalBreak),v.createBreakStatement(n))}(),a);case"continue":return v.markEnd(function(){var e,n=null;return Z("continue"),59===u.charCodeAt(f)?(W(),y.inIteration||Y({},o.IllegalContinue),v.createContinueStatement(null)):X()?(y.inIteration||Y({},o.IllegalContinue),v.createContinueStatement(null)):(m.type===t.Identifier&&(e="$"+(n=xe()).name,Object.prototype.hasOwnProperty.call(y.labelSet,e)||Y({},o.UnknownLabel,n.name)),re(),null!==n||y.inIteration||Y({},o.IllegalContinue),v.createContinueStatement(n))}(),a);case"debugger":return v.markEnd((Z("debugger"),re(),v.createDebuggerStatement()),a);case"do":return v.markEnd(function(){var e,t,n;return Z("do"),n=y.inIteration,y.inIteration=!0,e=Te(),y.inIteration=n,Z("while"),J("("),t=be(),J(")"),ee(";")&&W(),v.createDoWhileStatement(e,t)}(),a);case"for":return v.markEnd(ke(),a);case"function":return v.markEnd(je(),a);case"if":return v.markEnd(function(){var e,t,n;return Z("if"),J("("),e=be(),J(")"),t=Te(),te("else")?(W(),n=Te()):n=null,v.createIfStatement(e,t,n)}(),a);case"return":return v.markEnd(function(){var e=null;return Z("return"),y.inFunctionBody||K({},o.IllegalReturn),32===u.charCodeAt(f)&&C(u.charCodeAt(f+1))?(e=be(),re(),v.createReturnStatement(e)):X()?v.createReturnStatement(null):(ee(";")||ee("}")||m.type===t.EOF||(e=be()),re(),v.createReturnStatement(e))}(),a);case"switch":return v.markEnd(function(){var e,t,n,r,i;if(Z("switch"),J("("),e=be(),J(")"),J("{"),t=[],ee("}"))return W(),v.createSwitchStatement(e,t);for(r=y.inSwitch,y.inSwitch=!0,i=!1;f<h&&!ee("}");)null===(n=Ce()).test&&(i&&Y({},o.MultipleDefaultsInSwitch),i=!0),t.push(n);return y.inSwitch=r,J("}"),v.createSwitchStatement(e,t)}(),a);case"throw":return v.markEnd(function(){var e;return Z("throw"),X()&&Y({},o.NewlineAfterThrow),e=be(),re(),v.createThrowStatement(e)}(),a);case"try":return v.markEnd(_e(),a);case"var":return v.markEnd(function(){var e;return Z("var"),e=Se(),re(),v.createVariableDeclaration(e,"var")}(),a);case"while":return v.markEnd(function(){var e,t,n;return Z("while"),J("("),e=be(),J(")"),n=y.inIteration,y.inIteration=!0,t=Te(),y.inIteration=n,v.createWhileStatement(e,t)}(),a);case"with":return v.markEnd(function(){var e,t;return c&&(N(),K({},o.StrictModeWith)),Z("with"),J("("),e=be(),J(")"),t=Te(),v.createWithStatement(e,t)}(),a)}return(e=be()).type===i.Identifier&&ee(":")?(W(),r="$"+e.name,Object.prototype.hasOwnProperty.call(y.labelSet,r)&&Y({},o.Redeclaration,"Label",e.name),y.labelSet[r]=!0,n=Te(),delete y.labelSet[r],v.markEnd(v.createLabeledStatement(e,n),a)):(re(),v.markEnd(v.createExpressionStatement(e),a))}function Pe(){var e,n,r,a,s,l,d,p,g=[];for(p=m,J("{");f<h&&m.type===t.StringLiteral&&(n=m,e=Ae(),g.push(e),e.expression.type===i.Literal);)"use strict"===u.slice(n.start+1,n.end-1)?(c=!0,r&&K(r,o.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(a=y.labelSet,s=y.inIteration,l=y.inSwitch,d=y.inFunctionBody,y.labelSet={},y.inIteration=!1,y.inSwitch=!1,y.inFunctionBody=!0;f<h&&!ee("}")&&void 0!==(e=Ae());)g.push(e);return J("}"),y.labelSet=a,y.inIteration=s,y.inSwitch=l,y.inFunctionBody=d,v.markEnd(v.createBlockStatement(g),p)}function Oe(e){var t,n,r,i,a,s,l=[];if(J("("),!ee(")"))for(i={};f<h&&(n=m,t=xe(),a="$"+n.value,c?(P(n.value)&&(r=n,s=o.StrictParamName),Object.prototype.hasOwnProperty.call(i,a)&&(r=n,s=o.StrictParamDupe)):e||(P(n.value)?(e=n,s=o.StrictParamName):T(n.value)?(e=n,s=o.StrictReservedWord):Object.prototype.hasOwnProperty.call(i,a)&&(e=n,s=o.StrictParamDupe)),l.push(t),i[a]=!0,!ee(")"));)J(",");return J(")"),{params:l,stricted:r,firstRestricted:e,message:s}}function je(){var e,t,n,r,i,a,s,l,u,f;return u=m,Z("function"),n=m,e=xe(),c?P(n.value)&&K(n,o.StrictFunctionName):P(n.value)?(a=n,s=o.StrictFunctionName):T(n.value)&&(a=n,s=o.StrictReservedWord),f=(i=Oe(a)).params,r=i.stricted,a=i.firstRestricted,i.message&&(s=i.message),l=c,t=Pe(),c&&a&&Y(a,s),c&&r&&K(r,s),c=l,v.markEnd(v.createFunctionDeclaration(e,f,[],t),u)}function Ae(){if(m.type===t.Keyword)switch(m.value){case"const":case"let":return function(e){var t,n;return n=m,Z(e),t=Se(e),re(),v.markEnd(v.createVariableDeclaration(t,e),n)}(m.value);case"function":return je();default:return Te()}if(m.type!==t.EOF)return Te()}function Ie(){for(var e,n,r,a=[];f<h&&(n=m).type===t.StringLiteral&&(e=Ae(),a.push(e),e.expression.type===i.Literal);)"use strict"===u.slice(n.start+1,n.end-1)?(c=!0,r&&K(r,o.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(;f<h&&void 0!==(e=Ae());)a.push(e);return a}function Ne(){var e,t,n,r=[];for(e=0;e<g.tokens.length;++e)n={type:(t=g.tokens[e]).type,value:t.value},g.range&&(n.range=t.range),g.loc&&(n.loc=t.loc),r.push(n);g.tokens=r}(n={})[(t={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9}).BooleanLiteral]="Boolean",n[t.EOF]="<end>",n[t.Identifier]="Identifier",n[t.Keyword]="Keyword",n[t.NullLiteral]="Null",n[t.NumericLiteral]="Numeric",n[t.Punctuator]="Punctuator",n[t.StringLiteral]="String",n[t.RegularExpression]="RegularExpression",r=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],i={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},a={Data:1,Get:2,Set:4},o={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},s={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},l={name:"SyntaxTree",processComment:function(e){var t,n;if(!(e.type===i.Program&&e.body.length>0)){for(g.trailingComments.length>0?g.trailingComments[0].range[0]>=e.range[1]?(n=g.trailingComments,g.trailingComments=[]):g.trailingComments.length=0:g.bottomRightStack.length>0&&g.bottomRightStack[g.bottomRightStack.length-1].trailingComments&&g.bottomRightStack[g.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(n=g.bottomRightStack[g.bottomRightStack.length-1].trailingComments,delete g.bottomRightStack[g.bottomRightStack.length-1].trailingComments);g.bottomRightStack.length>0&&g.bottomRightStack[g.bottomRightStack.length-1].range[0]>=e.range[0];)t=g.bottomRightStack.pop();t?t.leadingComments&&t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=t.leadingComments,delete t.leadingComments):g.leadingComments.length>0&&g.leadingComments[g.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=g.leadingComments,g.leadingComments=[]),n&&(e.trailingComments=n),g.bottomRightStack.push(e)}},markEnd:function(e,t){return g.range&&(e.range=[t.start,f]),g.loc&&(e.loc=new G(void 0===t.startLineNumber?t.lineNumber:t.startLineNumber,t.start-(void 0===t.startLineStart?t.lineStart:t.startLineStart),d,f-p),this.postProcess(e)),g.attachComment&&this.processComment(e),e},postProcess:function(e){return g.source&&(e.loc.source=g.source),e},createArrayExpression:function(e){return{type:i.ArrayExpression,elements:e}},createAssignmentExpression:function(e,t,n){return{type:i.AssignmentExpression,operator:e,left:t,right:n}},createBinaryExpression:function(e,t,n){return{type:"||"===e||"&&"===e?i.LogicalExpression:i.BinaryExpression,operator:e,left:t,right:n}},createBlockStatement:function(e){return{type:i.BlockStatement,body:e}},createBreakStatement:function(e){return{type:i.BreakStatement,label:e}},createCallExpression:function(e,t){return{type:i.CallExpression,callee:e,arguments:t}},createCatchClause:function(e,t){return{type:i.CatchClause,param:e,body:t}},createConditionalExpression:function(e,t,n){return{type:i.ConditionalExpression,test:e,consequent:t,alternate:n}},createContinueStatement:function(e){return{type:i.ContinueStatement,label:e}},createDebuggerStatement:function(){return{type:i.DebuggerStatement}},createDoWhileStatement:function(e,t){return{type:i.DoWhileStatement,body:e,test:t}},createEmptyStatement:function(){return{type:i.EmptyStatement}},createExpressionStatement:function(e){return{type:i.ExpressionStatement,expression:e}},createForStatement:function(e,t,n,r){return{type:i.ForStatement,init:e,test:t,update:n,body:r}},createForInStatement:function(e,t,n){return{type:i.ForInStatement,left:e,right:t,body:n,each:!1}},createFunctionDeclaration:function(e,t,n,r){return{type:i.FunctionDeclaration,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(e,t,n,r){return{type:i.FunctionExpression,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createIdentifier:function(e){return{type:i.Identifier,name:e}},createIfStatement:function(e,t,n){return{type:i.IfStatement,test:e,consequent:t,alternate:n}},createLabeledStatement:function(e,t){return{type:i.LabeledStatement,label:e,body:t}},createLiteral:function(e){return{type:i.Literal,value:e.value,raw:u.slice(e.start,e.end)}},createMemberExpression:function(e,t,n){return{type:i.MemberExpression,computed:"["===e,object:t,property:n}},createNewExpression:function(e,t){return{type:i.NewExpression,callee:e,arguments:t}},createObjectExpression:function(e){return{type:i.ObjectExpression,properties:e}},createPostfixExpression:function(e,t){return{type:i.UpdateExpression,operator:e,argument:t,prefix:!1}},createProgram:function(e){return{type:i.Program,body:e}},createProperty:function(e,t,n){return{type:i.Property,key:t,value:n,kind:e}},createReturnStatement:function(e){return{type:i.ReturnStatement,argument:e}},createSequenceExpression:function(e){return{type:i.SequenceExpression,expressions:e}},createSwitchCase:function(e,t){return{type:i.SwitchCase,test:e,consequent:t}},createSwitchStatement:function(e,t){return{type:i.SwitchStatement,discriminant:e,cases:t}},createThisExpression:function(){return{type:i.ThisExpression}},createThrowStatement:function(e){return{type:i.ThrowStatement,argument:e}},createTryStatement:function(e,t,n,r){return{type:i.TryStatement,block:e,guardedHandlers:t,handlers:n,finalizer:r}},createUnaryExpression:function(e,t){return"++"===e||"--"===e?{type:i.UpdateExpression,operator:e,argument:t,prefix:!0}:{type:i.UnaryExpression,operator:e,argument:t,prefix:!0}},createVariableDeclaration:function(e,t){return{type:i.VariableDeclaration,declarations:e,kind:t}},createVariableDeclarator:function(e,t){return{type:i.VariableDeclarator,id:e,init:t}},createWhileStatement:function(e,t){return{type:i.WhileStatement,test:e,body:t}},createWithStatement:function(e,t){return{type:i.WithStatement,object:e,body:t}}},e.version="1.2.2",e.tokenize=function(e,n){var r;"string"==typeof e||e instanceof String||(e=String(e)),v=l,f=0,d=(u=e).length>0?1:0,p=0,h=u.length,m=null,y={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},g={},(n=n||{}).tokens=!0,g.tokens=[],g.tokenize=!0,g.openParenToken=-1,g.openCurlyToken=-1,g.range="boolean"==typeof n.range&&n.range,g.loc="boolean"==typeof n.loc&&n.loc,"boolean"==typeof n.comment&&n.comment&&(g.comments=[]),"boolean"==typeof n.tolerant&&n.tolerant&&(g.errors=[]);try{if($(),m.type===t.EOF)return g.tokens;for(W();m.type!==t.EOF;)try{W()}catch(e){if(g.errors){g.errors.push(e);break}throw e}Ne(),r=g.tokens,void 0!==g.comments&&(r.comments=g.comments),void 0!==g.errors&&(r.errors=g.errors)}catch(e){throw e}finally{g={}}return r},e.parse=function(e,t){var n,r;r=String,"string"==typeof e||e instanceof String||(e=r(e)),v=l,f=0,d=(u=e).length>0?1:0,p=0,h=u.length,m=null,y={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},g={},void 0!==t&&(g.range="boolean"==typeof t.range&&t.range,g.loc="boolean"==typeof t.loc&&t.loc,g.attachComment="boolean"==typeof t.attachComment&&t.attachComment,g.loc&&null!==t.source&&void 0!==t.source&&(g.source=r(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(g.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(g.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(g.errors=[]),g.attachComment&&(g.range=!0,g.comments=[],g.bottomRightStack=[],g.trailingComments=[],g.leadingComments=[]));try{n=function(){var e,t;return N(),$(),t=m,c=!1,e=Ie(),v.markEnd(v.createProgram(e),t)}(),void 0!==g.comments&&(n.comments=g.comments),void 0!==g.tokens&&(Ne(),n.tokens=g.tokens),void 0!==g.errors&&(n.errors=g.errors)}catch(e){throw e}finally{g={}}return n},e.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),i)i.hasOwnProperty(e)&&(t[e]=i[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()}))},{}],1:[function(e,t,n){(function(i){var a=function(){var e={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(e,n,r,i,a,o,s){i.ast||(i.ast=t,t.initialize());var l=o.length-1;switch(a){case 1:return i.ast.set({expression:{type:"root",value:o[l]}}),i.ast.unshift(),i.ast.yield();case 2:return i.ast.set({expression:{type:"root",value:o[l-1]}}),i.ast.unshift(),i.ast.yield();case 3:return i.ast.unshift(),i.ast.yield();case 4:return i.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:o[l-1]}}),i.ast.unshift(),i.ast.yield();case 5:case 6:case 11:case 13:case 18:case 21:case 22:case 23:break;case 7:i.ast.set({operation:"member"}),i.ast.push();break;case 8:i.ast.set({operation:"subscript"}),i.ast.push();break;case 9:case 19:i.ast.set({scope:"child"});break;case 10:case 20:i.ast.set({scope:"descendant"});break;case 12:i.ast.set({scope:"child",operation:"member"});break;case 14:i.ast.set({expression:{type:"wildcard",value:o[l]}});break;case 15:i.ast.set({expression:{type:"identifier",value:o[l]}});break;case 16:i.ast.set({expression:{type:"script_expression",value:o[l]}});break;case 17:i.ast.set({expression:{type:"numeric_literal",value:parseInt(o[l])}});break;case 24:o[l].length>1?i.ast.set({expression:{type:"union",value:o[l]}}):this.$=o[l];break;case 25:this.$=[o[l]];break;case 26:this.$=o[l-2].concat(o[l]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(o[l])}},i.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:o[l]}},i.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:o[l]}},i.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:o[l]}},i.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:o[l]}},i.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:o[l]}},i.ast.set(this.$);break;case 33:case 34:this.$=o[l]}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],a=this.table,o="",s=0,l=0,u=0,c=2,f=1,d=i.slice.call(arguments,1);this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var p=this.lexer.yylloc;i.push(p);var h=this.lexer.options&&this.lexer.options.ranges;function v(){var e;return"number"!=typeof(e=t.lexer.lex()||f)&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,y,g,b,w,x,E,S,k,C={};;){if(g=n[n.length-1],this.defaultActions[g]?b=this.defaultActions[g]:(null!=m||(m=v()),b=a[g]&&a[g][m]),void 0===b||!b.length||!b[0]){var _="";for(x in k=[],a[g])this.terminals_[x]&&x>c&&k.push("'"+this.terminals_[x]+"'");_=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(s+1)+": Unexpected "+(m==f?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:p,expected:k})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+m);switch(b[0]){case 1:n.push(m),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(b[1]),m=null,y?(m=y,y=null):(l=this.lexer.yyleng,o=this.lexer.yytext,s=this.lexer.yylineno,p=this.lexer.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[b[1]][1],C.$=r[r.length-E],C._$={first_line:i[i.length-(E||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(E||1)].first_column,last_column:i[i.length-1].last_column},h&&(C._$.range=[i[i.length-(E||1)].range[0],i[i.length-1].range[1]]),void 0!==(w=this.performAction.apply(C,[o,l,s,this.yy,b[1],r,i].concat(d))))return w;E&&(n=n.slice(0,-1*E*2),r=r.slice(0,-1*E),i=i.slice(0,-1*E)),n.push(this.productions_[b[1]][0]),r.push(C.$),i.push(C._$),S=a[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},t={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(e){for(var t in e)this._node[t]=e[t];return this._node},node:function(e){return arguments.length&&(this._node=e),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var e=this._nodes;return this.initialize(),e}},n={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return t.yytext=t.yytext.substr(1,t.yyleng-2),32;case 11:return t.yytext=t.yytext.substr(1,t.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function r(){this.yy={}}return e.lexer=n,r.prototype=e,e.Parser=r,new r}();void 0!==e&&void 0!==n&&(n.parser=a,n.Parser=a.Parser,n.parse=function(){return a.parse.apply(a,arguments)},n.main=function(t){t[1]||(r.log("Usage: "+t[0]+" FILE"),i.exit(1));var a=e("fs").readFileSync(e("path").normalize(t[1]),"utf8");return n.parser.parse(a)},void 0!==t&&e.main===t&&n.main(i.argv.slice(1)))}).call(this,e("_process"))},{_process:14,fs:12,path:13}],2:[function(e,t,n){t.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(e,t,n){var r=e("./dict"),i=e("fs"),a={lex:{macros:{esc:"\\\\",int:r.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[r.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[r.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[r.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};i.readFileSync&&(a.moduleInclude=i.readFileSync(e.resolve("../include/module.js")),a.actionInclude=i.readFileSync(e.resolve("../include/action.js"))),t.exports=a},{"./dict":2,fs:12}],4:[function(e,t,n){var r=e("./aesprim"),i=e("./slice"),a=e("static-eval"),o=e("underscore").uniq,s=function(){return this.initialize.apply(this,arguments)};function l(t,n,i){var a=e("./index"),o=p(r.parse(n).body[0].expression,{"@":t.value}),s=i.replace(/\{\{\s*value\s*\}\}/g,o),l=a.nodes(t.value,s);return l.forEach((function(e){e.path=t.path.concat(e.path.slice(1))})),l}function u(e){return Array.isArray(e)}function c(e){return function(t,n,r,i){var a=t.value,o=t.path,s=[],l=function(t,a){u(t)?(t.forEach((function(e,t){s.length>=i||r(t,e,n)&&s.push({path:a.concat(t),value:e})})),t.forEach((function(t,n){s.length>=i||e&&l(t,a.concat(n))}))):function(e){return e&&!(e instanceof Array)&&e instanceof Object}(t)&&(this.keys(t).forEach((function(e){s.length>=i||r(e,t[e],n)&&s.push({path:a.concat(e),value:t[e]})})),this.keys(t).forEach((function(n){s.length>=i||e&&l(t[n],a.concat(n))})))}.bind(this);return l(a,o),s}}function f(e){return function(t,n,r){return this.descend(n,t.expression.value,e,r)}}function d(e){return function(t,n,r){return this.traverse(n,t.expression.value,e,r)}}function p(){try{return a.apply(this,arguments)}catch(e){}}function h(e){return e=e.filter((function(e){return e})),o(e,(function(e){return e.path.map((function(e){return String(e).replace("-","--")})).join("-")}))}function v(e){var t=String(e);return t.match(/^-?[0-9]+$/)?parseInt(t):null}s.prototype.initialize=function(){this.traverse=c(!0),this.descend=c()},s.prototype.keys=Object.keys,s.prototype.resolve=function(e){var t=[e.operation,e.scope,e.expression.type].join("-"),n=this._fns[t];if(!n)throw new Error("couldn't resolve key: "+t);return n.bind(this)},s.prototype.register=function(e,t){if(!t instanceof Function)throw new Error("handler must be a function");this._fns[e]=t},s.prototype._fns={"member-child-identifier":function(e,t){var n=e.expression.value,r=t.value;if(r instanceof Object&&n in r)return[{value:r[n],path:t.path.concat(n)}]},"member-descendant-identifier":d((function(e,t,n){return e==n})),"subscript-child-numeric_literal":f((function(e,t,n){return e===n})),"member-child-numeric_literal":f((function(e,t,n){return String(e)===String(n)})),"subscript-descendant-numeric_literal":d((function(e,t,n){return e===n})),"member-child-wildcard":f((function(){return!0})),"member-descendant-wildcard":d((function(){return!0})),"subscript-descendant-wildcard":d((function(){return!0})),"subscript-child-wildcard":f((function(){return!0})),"subscript-child-slice":function(e,t){if(u(t.value)){var n=e.expression.value.split(":").map(v),r=t.value.map((function(e,n){return{value:e,path:t.path.concat(n)}}));return i.apply(null,[r].concat(n))}},"subscript-child-union":function(e,t){var n=[];return e.expression.value.forEach((function(e){var r={operation:"subscript",scope:"child",expression:e.expression},i=this.resolve(r)(r,t);i&&(n=n.concat(i))}),this),h(n)},"subscript-descendant-union":function(t,n,r){var i=e(".."),a=this,o=[];return i.nodes(n,"$..*").slice(1).forEach((function(e){o.length>=r||t.expression.value.forEach((function(t){var n={operation:"subscript",scope:"child",expression:t.expression},r=a.resolve(n)(n,e);o=o.concat(r)}))})),h(o)},"subscript-child-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),a=r.parse(i).body[0].expression;return this.descend(t,null,(function(e,t){return p(a,{"@":t})}),n)},"subscript-descendant-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),a=r.parse(i).body[0].expression;return this.traverse(t,null,(function(e,t){return p(a,{"@":t})}),n)},"subscript-child-script_expression":function(e,t){return l(t,e.expression.value.slice(1,-1),"$[{{value}}]")},"member-child-script_expression":function(e,t){return l(t,e.expression.value.slice(1,-1),"$.{{value}}")},"member-descendant-script_expression":function(e,t){return l(t,e.expression.value.slice(1,-1),"$..value")}},s.prototype._fns["subscript-child-string_literal"]=s.prototype._fns["member-child-identifier"],s.prototype._fns["member-descendant-numeric_literal"]=s.prototype._fns["subscript-descendant-string_literal"]=s.prototype._fns["member-descendant-identifier"],t.exports=s},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(e,t,n){var r=e("assert"),i=e("./dict"),a=e("./parser"),o=e("./handlers"),s=function(){this.initialize.apply(this,arguments)};function l(e){return"[object String]"==Object.prototype.toString.call(e)}s.prototype.initialize=function(){this.parser=new a,this.handlers=new o},s.prototype.parse=function(e){return r.ok(l(e),"we need a path"),this.parser.parse(e)},s.prototype.parent=function(e,t){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path");var n=this.nodes(e,t)[0];return n.path.pop(),this.value(e,n.path)},s.prototype.apply=function(e,t,n){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),r.equal(typeof n,"function","fn needs to be function");var i=this.nodes(e,t).sort((function(e,t){return t.path.length-e.path.length}));return i.forEach((function(t){var r=t.path.pop(),i=this.value(e,this.stringify(t.path)),a=t.value=n.call(e,i[r]);i[r]=a}),this),i},s.prototype.value=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),arguments.length>=3){var i=this.nodes(e,t).shift();if(!i)return this._vivify(e,t,n);var a=i.path.slice(-1).shift();this.parent(e,this.stringify(i.path))[a]=n}return this.query(e,this.stringify(t),1).shift()},s.prototype._vivify=function(e,t,n){var i=this;return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),function t(n,r){var a=n.pop(),o=i.value(e,n);o||(t(n.concat(),"string"==typeof a?{}:[]),o=i.value(e,n)),o[a]=r}(this.parser.parse(t).map((function(e){return e.expression.value})),n),this.query(e,t)[0]},s.prototype.query=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(l(t),"we need a path"),this.nodes(e,t,n).map((function(e){return e.value}))},s.prototype.paths=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),this.nodes(e,t,n).map((function(e){return e.path}))},s.prototype.nodes=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),0===n)return[];var i=this.parser.parse(t),a=this.handlers,o=[{path:["$"],value:e}],s=[];return i.length&&"root"==i[0].expression.type&&i.shift(),i.length?(i.forEach((function(e,t){if(!(s.length>=n)){var r=a.resolve(e),l=[];o.forEach((function(a){if(!(s.length>=n)){var o=r(e,a,n);t==i.length-1?s=s.concat(o||[]):l=l.concat(o||[])}})),o=l}})),n?s.slice(0,n):s):o},s.prototype.stringify=function(e){r.ok(e,"we need a path");var t="$",n={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return(e=this._normalize(e)).forEach((function(e){if("root"!=e.expression.type){var r,i=[e.scope,e.operation].join("-"),a=n[i];if(r="string_literal"==e.expression.type?JSON.stringify(e.expression.value):e.expression.value,!a)throw new Error("couldn't find template "+i);t+=a.replace(/{{value}}/,r)}})),t},s.prototype._normalize=function(e){if(r.ok(e,"we need a path"),"string"==typeof e)return this.parser.parse(e);if(Array.isArray(e)&&"string"==typeof e[0]){var t=[{expression:{type:"root",value:"$"}}];return e.forEach((function(e,n){if("$"!=e||0!==n)if("string"==typeof e&&e.match("^"+i.identifier+"$"))t.push({operation:"member",scope:"child",expression:{value:e,type:"identifier"}});else{var r="number"==typeof e?"numeric_literal":"string_literal";t.push({operation:"subscript",scope:"child",expression:{value:e,type:r}})}})),t}if(Array.isArray(e)&&"object"==typeof e[0])return e;throw new Error("couldn't understand path "+e)},s.Handlers=o,s.Parser=a;var u=new s;u.JSONPath=s,t.exports=u},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(e,t,n){var r=e("./grammar"),i=e("../generated/parser"),a=function(){var e=new i.Parser,t=e.parseError;return e.yy.parseError=function(){e.yy.ast&&e.yy.ast.initialize(),t.apply(e,arguments)},e};a.grammar=r,t.exports=a},{"../generated/parser":1,"./grammar":3}],7:[function(e,t,n){function r(e){return String(e).match(/^[0-9]+$/)?parseInt(e):Number.isFinite(e)?parseInt(e,10):0}t.exports=function(e,t,n,i){if("string"==typeof t)throw new Error("start cannot be a string");if("string"==typeof n)throw new Error("end cannot be a string");if("string"==typeof i)throw new Error("step cannot be a string");var a=e.length;if(0===i)throw new Error("step cannot be zero");if(i=i?r(i):1,n=n<0?a+n:n,t=r(0===(t=t<0?a+t:t)?0:t||(i>0?0:a-1)),n=r(0===n?0:n||(i>0?a:-1)),t=i>0?Math.max(0,t):Math.min(a,t),n=i>0?Math.min(n,a):Math.max(-1,n),i>0&&n<=t)return[];if(i<0&&t<=n)return[];for(var o=[],s=t;s!=n&&!(i<0&&s<=n||i>0&&s>=n);s+=i)o.push(e[s]);return o}},{}],8:[function(e,t,n){var r=e("util/"),i=Array.prototype.slice,a=Object.prototype.hasOwnProperty,o=t.exports=c;function s(e,t){return r.isUndefined(t)?""+t:r.isNumber(t)&&!isFinite(t)||r.isFunction(t)||r.isRegExp(t)?t.toString():t}function l(e,t){return r.isString(e)?e.length<t?e:e.slice(0,t):e}function u(e,t,n,r,i){throw new o.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function c(e,t){e||u(e,!0,t,"==",o.ok)}function f(e,t){if(e===t)return!0;if(r.isBuffer(e)&&r.isBuffer(t)){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return r.isDate(e)&&r.isDate(t)?e.getTime()===t.getTime():r.isRegExp(e)&&r.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:r.isObject(e)||r.isObject(t)?function(e,t){if(r.isNullOrUndefined(e)||r.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(r.isPrimitive(e)||r.isPrimitive(t))return e===t;var n=d(e),a=d(t);if(n&&!a||!n&&a)return!1;if(n)return f(e=i.call(e),t=i.call(t));var o,s,l=v(e),u=v(t);if(l.length!=u.length)return!1;for(l.sort(),u.sort(),s=l.length-1;s>=0;s--)if(l[s]!=u[s])return!1;for(s=l.length-1;s>=0;s--)if(!f(e[o=l[s]],t[o]))return!1;return!0}(e,t):e==t}function d(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function p(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function h(e,t,n,i){var a;r.isString(n)&&(i=n,n=null);try{t()}catch(e){a=e}if(i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!a&&u(a,n,"Missing expected exception"+i),!e&&p(a,n)&&u(a,n,"Got unwanted exception"+i),e&&a&&n&&!p(a,n)||!e&&a)throw a}o.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return l(JSON.stringify(e.actual,s),128)+" "+e.operator+" "+l(JSON.stringify(e.expected,s),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||u;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=t.name,a=r.indexOf("\n"+i);if(a>=0){var o=r.indexOf("\n",a+1);r=r.substring(o+1)}this.stack=r}}},r.inherits(o.AssertionError,Error),o.fail=u,o.ok=c,o.equal=function(e,t,n){e!=t&&u(e,t,n,"==",o.equal)},o.notEqual=function(e,t,n){e==t&&u(e,t,n,"!=",o.notEqual)},o.deepEqual=function(e,t,n){f(e,t)||u(e,t,n,"deepEqual",o.deepEqual)},o.notDeepEqual=function(e,t,n){f(e,t)&&u(e,t,n,"notDeepEqual",o.notDeepEqual)},o.strictEqual=function(e,t,n){e!==t&&u(e,t,n,"===",o.strictEqual)},o.notStrictEqual=function(e,t,n){e===t&&u(e,t,n,"!==",o.notStrictEqual)},o.throws=function(e,t,n){h.apply(this,[!0].concat(i.call(arguments)))},o.doesNotThrow=function(e,t){h.apply(this,[!1].concat(i.call(arguments)))},o.ifError=function(e){if(e)throw e};var v=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},{"util/":11}],9:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],10:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],11:[function(e,t,i){(function(t,n){var a=/%[sdj%]/g;i.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])y(s)||!E(s)?o+=" "+s:o+=" "+l(s);return o},i.deprecate=function(e,a){if(w(n.process))return function(){return i.deprecate(e,a).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(a);t.traceDeprecation?r.trace(a):r.error(a),o=!0}return e.apply(this,arguments)}};var o,s={};function l(e,t){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(t)?n.showHidden=t:t&&i._extend(n,t),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),f(n,e,n.depth)}function u(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function c(e,t){return e}function f(e,t,n){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==i.inspect&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return b(r)||(r=f(e,r,n)),r}var a=d(e,t);if(a)return a;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),k(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(t);if(0===o.length){if(C(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return p(t)}var u,c="",m=!1,y=["{","}"];return v(t)&&(m=!0,y=["[","]"]),C(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),x(t)&&(c=" "+RegExp.prototype.toString.call(t)),S(t)&&(c=" "+Date.prototype.toUTCString.call(t)),k(t)&&(c=" "+p(t)),0!==o.length||m&&0!=t.length?n<0?x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=m?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)j(t,String(o))?a.push(h(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(e,t,n,r,i,!0))})),a}(e,t,n,s,o):o.map((function(r){return h(e,t,n,s,r,m)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,c,y)):y[0]+c+y[1]}function d(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=y(n)?f(e,l.value,null):f(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),w(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function v(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function b(e){return"string"==typeof e}function w(e){return void 0===e}function x(e){return E(e)&&"[object RegExp]"===_(e)}function E(e){return"object"==typeof e&&null!==e}function S(e){return E(e)&&"[object Date]"===_(e)}function k(e){return E(e)&&("[object Error]"===_(e)||e instanceof Error)}function C(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}i.debuglog=function(e){if(w(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;s[e]=function(){var t=i.format.apply(i,arguments);r.error("%s %d: %s",e,n,t)}}else s[e]=function(){};return s[e]},i.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=v,i.isBoolean=m,i.isNull=y,i.isNullOrUndefined=function(e){return null==e},i.isNumber=g,i.isString=b,i.isSymbol=function(e){return"symbol"==typeof e},i.isUndefined=w,i.isRegExp=x,i.isObject=E,i.isDate=S,i.isError=k,i.isFunction=C,i.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},i.isBuffer=e("./support/isBuffer");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}i.log=function(){r.log("%s - %s",O(),i.format.apply(i,arguments))},i.inherits=e("inherits"),i._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(e,t,n){},{}],13:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(n=o+"/"+n,i="/"===o.charAt(0))}return(i?"/":"")+(n=t(r(n.split("/"),(function(e){return!!e})),!i).join("/"))||"."},n.normalize=function(e){var a=n.isAbsolute(e),o="/"===i(e,-1);return(e=t(r(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),a=r(t.split("/")),o=Math.min(i.length,a.length),s=o,l=0;l<o;l++)if(i[l]!==a[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return(u=u.concat(a.slice(s))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i=function(e,t,n){return e.substr(t,n)}}).call(this,e("_process"))},{_process:14}],14:[function(e,t,n){var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,c=[],f=!1,d=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):d=-1,c.length&&h())}function h(){if(!f){var e=l(p);f=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new v(e,t)),1!==c.length||f||l(h)},v.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(e,t,n){var r=e("escodegen").generate;t.exports=function(e,t){t||(t={});var n={},i=function e(i,a){if("Literal"===i.type)return i.value;if("UnaryExpression"===i.type){var o=e(i.argument);return"+"===i.operator?+o:"-"===i.operator?-o:"~"===i.operator?~o:"!"===i.operator?!o:n}if("ArrayExpression"===i.type){for(var s=[],l=0,u=i.elements.length;l<u;l++){if((y=e(i.elements[l]))===n)return n;s.push(y)}return s}if("ObjectExpression"===i.type){var c={};for(l=0;l<i.properties.length;l++){var f=null===(g=i.properties[l]).value?g.value:e(g.value);if(f===n)return n;c[g.key.value||g.key.name]=f}return c}if("BinaryExpression"===i.type||"LogicalExpression"===i.type){if((u=e(i.left))===n)return n;var d=e(i.right);if(d===n)return n;var p=i.operator;return"=="===p?u==d:"==="===p?u===d:"!="===p?u!=d:"!=="===p?u!==d:"+"===p?u+d:"-"===p?u-d:"*"===p?u*d:"/"===p?u/d:"%"===p?u%d:"<"===p?u<d:"<="===p?u<=d:">"===p?u>d:">="===p?u>=d:"|"===p?u|d:"&"===p?u&d:"^"===p?u^d:"&&"===p?u&&d:"||"===p?u||d:n}if("Identifier"===i.type)return{}.hasOwnProperty.call(t,i.name)?t[i.name]:n;if("ThisExpression"===i.type)return{}.hasOwnProperty.call(t,"this")?t.this:n;if("CallExpression"===i.type){var h=e(i.callee);if(h===n)return n;if("function"!=typeof h)return n;var v=i.callee.object?e(i.callee.object):n;v===n&&(v=null);var m=[];for(l=0,u=i.arguments.length;l<u;l++){var y;if((y=e(i.arguments[l]))===n)return n;m.push(y)}return h.apply(v,m)}var g;if("MemberExpression"===i.type)return(c=e(i.object))===n||"function"==typeof c?n:"Identifier"===i.property.type?c[i.property.name]:(g=e(i.property))===n?n:c[g];if("ConditionalExpression"===i.type)return(o=e(i.test))===n?n:e(o?i.consequent:i.alternate);if("ExpressionStatement"===i.type)return(o=e(i.expression))===n?n:o;if("ReturnStatement"===i.type)return e(i.argument);if("FunctionExpression"===i.type){var b=i.body.body,w={};for(Object.keys(t).forEach((function(e){w[e]=t[e]})),l=0;l<i.params.length;l++){var x=i.params[l];if("Identifier"!=x.type)return n;t[x.name]=null}for(var l in b)if(e(b[l])===n)return n;t=w;var E=Object.keys(t),S=E.map((function(e){return t[e]}));return Function(E.join(", "),"return "+r(i)).apply(null,S)}if("TemplateLiteral"===i.type){var k="";for(l=0;l<i.expressions.length;l++)k+=e(i.quasis[l]),k+=e(i.expressions[l]);return k+e(i.quasis[l])}if("TaggedTemplateExpression"===i.type){var C=e(i.tag),_=i.quasi,T=_.quasis.map(e),P=_.expressions.map(e);return C.apply(null,[T].concat(P))}return"TemplateElement"===i.type?i.value.cooked:n}(e);return i===n?void 0:i}},{escodegen:12}],jsonpath:[function(e,t,n){t.exports=e("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")},4091:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},8199:function(e,t,n){"use strict";var r=n(9959),i=n(9962),a=n(4091),o=n(4584),s=n(8229),l=i(o(),Object);r(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},4584:function(e,t,n){"use strict";var r=n(4091);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},8229:function(e,t,n){"use strict";var r=n(4584),i=n(9959);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},2782:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(2950),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var v=0;v<e.length;++v)d.push(String(v));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(l)for(var g=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)g&&"constructor"===c[b]||!i.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},6328:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(2950),a=Object.keys,o=a?function(e){return a(e)}:n(2782),s=Object.keys;o.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=o;return Object.keys||o},e.exports=o},2950:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},8047:function(e,t,n){"use strict";var r=n(6328),i=n(541)(),a=n(4680),o=Object,s=a("Array.prototype.push"),l=a("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=o(e);if(1===arguments.length)return n;for(var a=1;a<arguments.length;++a){var c=o(arguments[a]),f=r(c),d=i&&(Object.getOwnPropertySymbols||u);if(d)for(var p=d(c),h=0;h<p.length;++h){var v=p[h];l(c,v)&&s(f,v)}for(var m=0;m<f.length;++m){var y=f[m];if(l(c,y)){var g=c[y];n[y]=g}}}return n}},4174:function(e,t,n){"use strict";var r=n(8047);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),a="";for(var o in i)a+=o;return e!==a}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},7490:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,l=[],u=!1,c=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=o(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},3295:function(e,t,n){var r,i,a=n(8466);"undefined"!=typeof self&&self,e.exports=(r=n(3705),i=n(6377),function(){"use strict";var e={328:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PrintContextConsumer=t.PrintContext=void 0;var r=n(496),i=Object.prototype.hasOwnProperty.call(r,"createContext");t.PrintContext=i?r.createContext({}):null,t.PrintContextConsumer=t.PrintContext?t.PrintContext.Consumer:function(){return null}},428:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ReactToPrint=void 0;var r=n(316),i=n(496),o=n(190),s=n(328),l=n(940),u=function(e){function t(){var t=e.apply(this,r.__spreadArray([],r.__read(arguments),!1))||this;return t.startPrint=function(e){var n=t.props,r=n.onAfterPrint,i=n.onPrintError,a=n.print,o=n.documentTitle;setTimeout((function(){var n,s;if(e.contentWindow)if(e.contentWindow.focus(),a)a(e).then((function(){return null==r?void 0:r()})).then((function(){return t.handleRemoveIframe()})).catch((function(e){i?i("print",e):t.logMessages(["An error was thrown by the specified `print` function"])}));else{if(e.contentWindow.print){var l=null!==(s=null===(n=e.contentDocument)||void 0===n?void 0:n.title)&&void 0!==s?s:"",u=e.ownerDocument.title;o&&(e.ownerDocument.title=o,e.contentDocument&&(e.contentDocument.title=o)),e.contentWindow.print(),o&&(e.ownerDocument.title=u,e.contentDocument&&(e.contentDocument.title=l))}else t.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==r||r(),t.handleRemoveIframe()}else t.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])}),500)},t.triggerPrint=function(e){var n=t.props,r=n.onBeforePrint,i=n.onPrintError;if(r){var a=r();a&&"function"==typeof a.then?a.then((function(){t.startPrint(e)})).catch((function(e){i&&i("onBeforePrint",e)})):t.startPrint(e)}else t.startPrint(e)},t.handlePrint=function(e){var n=t.props,i=n.bodyClass,a=n.content,s=n.copyStyles,l=n.fonts,u=n.pageStyle,c=n.nonce,f="function"==typeof e?e():null;if(f&&"function"==typeof a&&t.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),f||"function"!=typeof a||(f=a()),void 0!==f)if(null!==f){var d=document.createElement("iframe");d.width="".concat(document.documentElement.clientWidth,"px"),d.height="".concat(document.documentElement.clientHeight,"px"),d.style.position="absolute",d.style.top="-".concat(document.documentElement.clientHeight+100,"px"),d.style.left="-".concat(document.documentElement.clientWidth+100,"px"),d.id="printWindow",d.srcdoc="<!DOCTYPE html>";var p=(0,o.findDOMNode)(f);if(p){var h=p.cloneNode(!0),v=h instanceof Text,m=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),y=v?[]:h.querySelectorAll("img"),g=v?[]:h.querySelectorAll("video"),b=l?l.length:0;t.numResourcesToLoad=m.length+y.length+g.length+b,t.resourcesLoaded=[],t.resourcesErrored=[];var w=function(e,n){t.resourcesLoaded.includes(e)?t.logMessages(["Tried to mark a resource that has already been handled",e],"debug"):(n?(t.logMessages(r.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],r.__read(n),!1)),t.resourcesErrored.push(e)):t.resourcesLoaded.push(e),t.resourcesLoaded.length+t.resourcesErrored.length===t.numResourcesToLoad&&t.triggerPrint(d))};d.onload=function(){var e,n,a,o;d.onload=null;var f=d.contentDocument||(null===(n=d.contentWindow)||void 0===n?void 0:n.document);if(f){f.body.appendChild(h),l&&((null===(a=d.contentDocument)||void 0===a?void 0:a.fonts)&&(null===(o=d.contentWindow)||void 0===o?void 0:o.FontFace)?l.forEach((function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});d.contentDocument.fonts.add(t),t.loaded.then((function(){w(t)})).catch((function(e){w(t,["Failed loading the font:",t,"Load error:",e])}))})):(l.forEach((function(e){return w(e)})),t.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var m="function"==typeof u?u():u;if("string"!=typeof m)t.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof m,'". Styles from `pageStyle` will not be applied.')]);else{var b=f.createElement("style");c&&(b.setAttribute("nonce",c),f.head.setAttribute("nonce",c)),b.appendChild(f.createTextNode(m)),f.head.appendChild(b)}if(i&&(e=f.body.classList).add.apply(e,r.__spreadArray([],r.__read(i.split(" ")),!1)),!v){for(var x=v?[]:p.querySelectorAll("canvas"),E=f.querySelectorAll("canvas"),S=0;S<x.length;++S){var k=x[S],C=E[S].getContext("2d");C&&C.drawImage(k,0,0)}var _=function(e){var t=y[e],n=t.getAttribute("src");if(n){var r=new Image;r.onload=function(){return w(t)},r.onerror=function(e,n,r,i,a){return w(t,["Error loading <img>",t,"Error",a])},r.src=n}else w(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',t])};for(S=0;S<y.length;S++)_(S);var T=function(e){var t=g[e];t.preload="auto";var n=t.getAttribute("poster");if(n){var r=new Image;r.onload=function(){return w(t)},r.onerror=function(e,r,i,a,o){return w(t,["Error loading video poster",n,"for video",t,"Error:",o])},r.src=n}else t.readyState>=2?w(t):(t.onloadeddata=function(){return w(t)},t.onerror=function(e,n,r,i,a){return w(t,["Error loading video",t,"Error",a])},t.onstalled=function(){return w(t,["Loading video stalled, skipping",t])})};for(S=0;S<g.length;S++)T(S);var P="input",O=p.querySelectorAll(P),j=f.querySelectorAll(P);for(S=0;S<O.length;S++)j[S].value=O[S].value;var A="input[type=checkbox],input[type=radio]",I=p.querySelectorAll(A),N=f.querySelectorAll(A);for(S=0;S<I.length;S++)N[S].checked=I[S].checked;var R="select",L=p.querySelectorAll(R),M=f.querySelectorAll(R);for(S=0;S<L.length;S++)M[S].value=L[S].value}if(s)for(var D=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']"),F=function(e,n){var r=D[e];if("style"===r.tagName.toLowerCase()){var i=f.createElement(r.tagName),a=r.sheet;if(a){var o="";try{for(var s=a.cssRules.length,l=0;l<s;++l)"string"==typeof a.cssRules[l].cssText&&(o+="".concat(a.cssRules[l].cssText,"\r\n"))}catch(e){t.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",r],"warning")}i.setAttribute("id","react-to-print-".concat(e)),c&&i.setAttribute("nonce",c),i.appendChild(f.createTextNode(o)),f.head.appendChild(i)}}else if(r.getAttribute("href"))if(r.hasAttribute("disabled"))t.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",r],"warning"),w(r);else{for(var u=f.createElement(r.tagName),d=(l=0,r.attributes.length);l<d;++l){var p=r.attributes[l];p&&u.setAttribute(p.nodeName,p.nodeValue||"")}u.onload=function(){return w(u)},u.onerror=function(e,t,n,r,i){return w(u,["Failed to load",u,"Error:",i])},c&&u.setAttribute("nonce",c),f.head.appendChild(u)}else t.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",r],"warning"),w(r)},B=(S=0,D.length);S<B;++S)F(S)}0!==t.numResourcesToLoad&&s||t.triggerPrint(d)},t.handleRemoveIframe(!0),document.body.appendChild(d)}else t.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else t.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else t.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},t.handleRemoveIframe=function(e){var n=t.props.removeAfterPrint;if(e||n){var r=document.getElementById("printWindow");r&&document.body.removeChild(r)}},t.logMessages=function(e,n){void 0===n&&(n="error"),t.props.suppressErrors||("error"===n?a.error(e):"warning"===n?a.warn(e):"debug"===n&&a.debug(e))},t}return r.__extends(t,e),t.prototype.handleClick=function(e,t){var n=this,r=this.props,i=r.onBeforeGetContent,a=r.onPrintError;if(i){var o=i();o&&"function"==typeof o.then?o.then((function(){return n.handlePrint(t)})).catch((function(e){a&&a("onBeforeGetContent",e)})):this.handlePrint(t)}else this.handlePrint(t)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.trigger;if(n)return i.cloneElement(n(),{onClick:this.handleClick.bind(this)});if(!s.PrintContext)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var r={handlePrint:this.handleClick.bind(this)};return i.createElement(s.PrintContext.Provider,{value:r},t)},t.defaultProps=l.defaultProps,t}(i.Component);t.ReactToPrint=u},940:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=void 0,t.defaultProps={copyStyles:!0,pageStyle:"\n @page {\n /* Remove browser default header (title) and footer (url) */\n margin: 0;\n }\n @media print {\n body {\n /* Tell browsers to print background colors */\n -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n color-adjust: exact; /* Firefox */\n }\n }\n ",removeAfterPrint:!1,suppressErrors:!1}},892:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useReactToPrint=void 0;var r=n(316),i=n(496),o=n(428),s=n(940),l=n(860),u=Object.prototype.hasOwnProperty.call(i,"useMemo")&&Object.prototype.hasOwnProperty.call(i,"useCallback");t.useReactToPrint=function(e){if(!u)return e.suppressErrors||a.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var t=i.useMemo((function(){return new o.ReactToPrint(r.__assign(r.__assign({},s.defaultProps),e))}),[e]);return i.useCallback((function(e,n){return(0,l.wrapCallbackWithArgs)(t,t.handleClick,n)(e)}),[t])}},860:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCallbackWithArgs=void 0;var r=n(316);t.wrapCallbackWithArgs=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return t.apply(e,r.__spreadArray(r.__spreadArray([],r.__read(i),!1),r.__read(n),!1))}}},496:function(e){e.exports=r},190:function(e){e.exports=i},316:function(e,t,n){n.r(t),n.d(t,{__addDisposableResource:function(){return R},__assign:function(){return a},__asyncDelegator:function(){return C},__asyncGenerator:function(){return k},__asyncValues:function(){return _},__await:function(){return S},__awaiter:function(){return h},__classPrivateFieldGet:function(){return A},__classPrivateFieldIn:function(){return N},__classPrivateFieldSet:function(){return I},__createBinding:function(){return m},__decorate:function(){return s},__disposeResources:function(){return M},__esDecorate:function(){return u},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return v},__importDefault:function(){return j},__importStar:function(){return O},__makeTemplateObject:function(){return T},__metadata:function(){return p},__param:function(){return l},__propKey:function(){return f},__read:function(){return b},__rest:function(){return o},__runInitializers:function(){return c},__setFunctionName:function(){return d},__spread:function(){return w},__spreadArray:function(){return E},__spreadArrays:function(){return x},__values:function(){return g}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var h={};for(var v in r)h[v]="access"===v?{}:r[v];for(var v in r.access)h.access[v]=r.access[v];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var m=(0,n[p])("accessor"===l?{get:f.get,set:f.set}:f[u],h);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=o(m.get))&&(f.get=s),(s=o(m.set))&&(f.set=s),(s=o(m.init))&&i.unshift(s)}else(s=o(m))&&("field"===l?i.unshift(s):f[u]=s)}c&&Object.defineProperty(c,r.name,f),d=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function v(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var m=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function E(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function k(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof S?Promise.resolve(n.value.v).then(l,u):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function C(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:!1}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&m(t,e,n);return P(t,e),t}function j(e){return e&&e.__esModule?e:{default:e}}function A(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function I(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function R(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var L="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function M(e){function t(t){e.error=e.hasError?new L(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:a,__rest:o,__decorate:s,__param:l,__metadata:p,__awaiter:h,__generator:v,__createBinding:m,__exportStar:y,__values:g,__read:b,__spread:w,__spreadArrays:x,__spreadArray:E,__await:S,__asyncGenerator:k,__asyncDelegator:C,__asyncValues:_,__makeTemplateObject:T,__importStar:O,__importDefault:j,__classPrivateFieldGet:A,__classPrivateFieldSet:I,__classPrivateFieldIn:N,__addDisposableResource:R,__disposeResources:M}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.ReactToPrint=e.PrintContextConsumer=void 0;var t=n(328);Object.defineProperty(e,"PrintContextConsumer",{enumerable:!0,get:function(){return t.PrintContextConsumer}});var r=n(428);Object.defineProperty(e,"ReactToPrint",{enumerable:!0,get:function(){return r.ReactToPrint}});var i=n(892);Object.defineProperty(e,"useReactToPrint",{enumerable:!0,get:function(){return i.useReactToPrint}});var a=n(428);e.default=a.ReactToPrint}(),o}())},6181:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},902:function(e,t,n){"use strict";var r=n(5021),i=n(7469),a=n(1520),o=n(2105);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(u)var v=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function k(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=E,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function _(e){return"[object SharedArrayBuffer]"===c(e)}function T(e){return void 0!==C&&(void 0===_.working&&(_.working=_(new C)),_.working?_(e):e instanceof C)}function P(e){return m(e,f)}function O(e){return m(e,d)}function j(e){return m(e,p)}function A(e){return l&&m(e,h)}function I(e){return u&&m(e,v)}t.isSharedArrayBuffer=T,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=P,t.isStringObject=O,t.isBooleanObject=j,t.isBigIntObject=A,t.isSymbolObject=I,t.isBoxedPrimitive=function(e){return P(e)||O(e)||j(e)||A(e)||I(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},7736:function(e,t,n){var r=n(7490),i=n(8466),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])g(s)||!S(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;return function(){if(!a){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),a=!0}return e.apply(this,arguments)}};var s={},l=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var u={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+u+"$","i")}function c(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),p(r,e,r.depth)}function f(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function d(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=p(e,i,r)),i}var a=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),C(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(_(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return h(n)}var u,c="",f=!1,d=["{","}"];return m(n)&&(f=!0,d=["[","]"]),_(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),E(n)&&(c=" "+RegExp.prototype.toString.call(n)),k(n)&&(c=" "+Date.prototype.toUTCString.call(n)),C(n)&&(c=" "+h(n)),0!==o.length||f&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=f?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)j(t,String(o))?a.push(v(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(v(e,t,n,r,i,!0))})),a}(e,n,r,s,o):o.map((function(t){return v(e,n,r,s,t,f)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,c,d)):d[0]+c+d[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function v(e,t,n,r,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),x(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function m(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function E(e){return S(e)&&"[object RegExp]"===T(e)}function S(e){return"object"==typeof e&&null!==e}function k(e){return S(e)&&"[object Date]"===T(e)}function C(e){return S(e)&&("[object Error]"===T(e)||e instanceof Error)}function _(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(902),t.isArray=m,t.isBoolean=y,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=E,t.types.isRegExp=E,t.isObject=S,t.isDate=k,t.types.isDate=k,t.isError=C,t.types.isNativeError=C,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(6181);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",function(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(273),t._extend=function(e,t){if(!t||!S(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(A&&e[A]){var t;if("function"!=typeof(t=e[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),A&&Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=A,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then((function(e){r.nextTick(o.bind(null,null,e))}),(function(e){r.nextTick(I.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}},1520:function(e,t,n){"use strict";var r=n(5767),i=n(3645),a=n(9962),o=n(4680),s=n(6103),l=o("Object.prototype.toString"),u=n(8857)(),c="undefined"==typeof globalThis?n.g:globalThis,f=i(),d=o("String.prototype.slice"),p=Object.getPrototypeOf,h=o("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},v={__proto__:null};r(f,u&&s&&p?function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=p(t),r=s(n,Symbol.toStringTag);if(!r){var i=p(n);r=s(i,Symbol.toStringTag)}v["$"+e]=a(r.get)}}:function(e){var t=new c[e];v["$"+e]=a(t.slice)}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=d(l(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(v,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}})),t}(e)}return s?function(e){var t=!1;return r(v,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}})),t}(e):null}},3645:function(e,t,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(3705),t=n(6377);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){i=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:T(e,n,s)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",v="executing",m="completed",y={};function g(){}function b(){}function w(){}var x={};f(x,l,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(I([])));S&&S!==n&&a.call(S,l)&&(x=S);var k=w.prototype=g.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,s,l){var u=p(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function T(t,n,r){var i=h;return function(a,o){if(i===v)throw new Error("Generator is already running");if(i===m){if("throw"===a)throw o;return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=p(t,n,r);if("normal"===u.type){if(i=r.done?m:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function P(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=p(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=w,o(k,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=f(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,f(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(_.prototype),f(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new _(d(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(k),f(k,c,"Generator"),f(k,l,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function a(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)}))}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||l(e,t)||function(){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 c(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function f(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce((function(e,t){return e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")}),"")};function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}var m,y,g,b,w,x=n(1411);function E(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.currentTarget.click())}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return"string"==typeof e})).reduce((function(e,t){return e.concat(t.split(" "))}),[]).map((function(e){return e.trim()})).filter((function(e){return!!e})).join(" ")}function k(e,t,n,r,i){var a=r?1:-1,o=e[n];return t===n||(i?i(o):"none"!==getComputedStyle(o).display)?o:(n+a>=e.length?n=0:n+a<0?n=e.length-1:n+=a,k(e,t,n,r))}(y=m||(m={})).AppTitle=lf("Code Evaluation"),y.AppTitleShort=lf("Code Eval"),y.ErrorLoadingChecklistMsg=lf("That wasn't a valid checklist."),y.ConfirmReplaceChecklistMsg=lf("This will replace your current checklist. Continue?"),y.UntitledProject=lf("Untitled Project"),y.UntitledChecklist=lf("Untitled Checklist"),y.NewChecklistTitle=lf("New Checklist"),y.NewChecklist=lf("New Checklist"),y.ImportChecklist=lf("Import Checklist"),y.ExportChecklist=lf("Export Checklist"),y.Export=lf("Export"),y.Remove=lf("Remove"),y.Evaluate=lf("Evaluate"),y.Criteria=lf("Criteria"),y.Name=lf("Name"),y.ChecklistNamePlaceholder=lf("Enter Checklist Name"),y.AddCriteria=lf("Add Criteria"),y.Actions=lf("Actions"),y.RunOnLoad=lf("Evaluate on load"),y.RunOnLoadDescription=lf("Automatically evaluate a project when it is loaded"),y.AddNotes=lf("Add Notes"),y.DragAndDrop=lf("Drag & Drop"),y.ReleaseToUpload=lf("Release to Upload"),y.Browse=lf("Browse"),y.SelectChecklistFile=lf("Select Checklist File"),y.InvalidChecklistFile=lf("Invalid Checklist File"),y.Cancel=lf("Cancel"),y.SelectBlock=lf("Select Block"),y.ValueRequired=lf("Value Required"),y.AddSelected=lf("Add Selected"),y.Continue=lf("Continue"),y.Loading=lf("Loading..."),y.Close=lf("Close"),y.Max=lf("Max"),y.AddToChecklist=lf("Add to Checklist"),y.SelectCriteriaDescription=lf("Select the criteria you'd like to include"),y.Checklist=lf("Checklist"),y.Home=lf("Home"),y.CreateEmptyChecklist=lf("Create Empty Checklist"),y.Other=lf("Other"),y.SignIn=lf("Sign In"),y.ConfirmDeleteCriteriaInstance=lf("Are you sure you want to remove this criteria?"),y.Print=lf("Print"),y.Rename=lf("Rename"),y.RenameChecklist=lf("Rename checklist"),y.PrintChecklist=lf("Print checklist"),y.EvaluateChecklist=lf("Evaluate checklist"),y.UnableToEvaluate=lf("Unable to evaluate"),y.UnableToReachAI=lf("Unable to reach the AI service"),y.UnexpectedError=lf("An unexpected error occurred"),y.Dismiss=lf("Dismiss"),(b=g||(g={})).Loaded="teachertool.loaded",b.HomeLink="teachertool.homelink",b.BrandLink="teachertool.brandlink",b.OrgLink="teachertool.orglink",b.Error="teachertool.error",b.NewChecklist="teachertool.newchecklist",b.ImportChecklist="teachertool.importchecklist",b.ExportChecklist="teachertool.exportchecklist",b.LoadChecklist="teachertool.loadchecklist",b.Evaluate="teachertool.evaluate",b.RunOnLoad="teachertool.runonload",b.AddCriteria="teachertool.addcriteria",b.RemoveCriteria="teachertool.removecriteria",b.AddResultNotes="teachertool.addresultnotes",b.UserMenuSignout="teachertool.usermenu.signout",b.UserMenuSignIn="teachertool.usermenu.signin",b.SignedOutPanelSignIn="teachertool.signedoutpanel.signin",b.CriteriaFeedback="teachertool.criteriafeedback",b.Print="teachertool.print",b.UnhandledEvalError="teachertool.evaluateerror",(w||(w={})).LearnMoreLink="https://makecode.com/teachertool";var C=Object.assign(w,{Strings:m,Ticks:g});function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;return{id:h(),type:e,text:t,timeoutMs:n}}function T(){return{name:m.NewChecklistTitle,criteria:[]}}function P(e){return-1!==(null==e?void 0:e.indexOf("makecode"))?e:"https://makecode.com/".concat(e)}function O(e){for(var t=e.split(/\$\{([\w\s]+)\}/g),n=[],r=0;r<t.length;r++){var i=t[r];i&&(r%2==0?n.push({type:"plain-text",content:i.trim()}):n.push({type:"param",content:i.toLocaleLowerCase().trim()}))}return n}function j(e){return e.template.replaceAll("${","").replaceAll("}","")}function A(e){return-1!==e.indexOf("_")?pxt.Util.snakeCaseToLowercaseWithSpaces(e):pxt.Util.camelCaseToLowercaseWithSpaces(e)}var I={toasts:[],evalResults:{},projectMetadata:void 0,catalog:void 0,checklist:T(),activeTab:"home",validatorPlans:void 0,runOnLoad:!1,modalOptions:void 0,toolboxCategories:void 0,blockImageCache:{},catalogOpen:!1,screenReaderAnnouncement:void 0,userProfile:void 0,flags:{testCatalog:!1}};function N(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||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 R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function M(e,t,n){return t&&L(e.prototype,t),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var D,F,B=new WeakMap,U=new WeakMap,z=new WeakMap,V=new WeakMap,H=new WeakMap,W={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return U.get(e);if("objectStoreNames"===t)return e.objectStoreNames||z.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return q(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function $(e){return"function"==typeof e?function(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(F||(F=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(G(this),n),q(B.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return q(e.apply(G(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=e.call.apply(e,[G(this),t].concat(r));return z.set(a,t.sort?t.sort():[t]),q(a)}}(e):(e instanceof IDBTransaction&&function(e){if(!U.has(e)){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=function(){t(),r()},a=function(){n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));U.set(e,t)}}(e),function(e,t){return t.some((function(t){return e instanceof t}))}(e,D||(D=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,W):e)}function q(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("success",i),e.removeEventListener("error",a)},i=function(){t(q(e.result)),r()},a=function(){n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((function(t){t instanceof IDBCursor&&B.set(t,e)})).catch((function(){})),H.set(t,e),t}(e);if(V.has(e))return V.get(e);var t=$(e);return t!==e&&(V.set(e,t),H.set(t,e)),t}var G=function(e){return H.get(e)};function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,a=n.blocking,o=n.terminated,s=indexedDB.open(e,t),l=q(s);return i&&s.addEventListener("upgradeneeded",(function(e){i(q(s.result),e.oldVersion,e.newVersion,q(s.transaction),e)})),r&&s.addEventListener("blocked",(function(e){return r(e.oldVersion,e.newVersion,e)})),l.then((function(e){o&&e.addEventListener("close",(function(){return o()})),a&&e.addEventListener("versionchange",(function(e){return a(e.oldVersion,e.newVersion,e)}))})).catch((function(){})),l}var Y=["get","getKey","getAll","getAllKeys","count"],K=["put","add","delete","clear"],Q=new Map;function J(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t){if(Q.get(t))return Q.get(t);var n=t.replace(/FromIndex$/,""),r=t!==n,a=K.includes(n);if(n in(r?IDBIndex:IDBObjectStore).prototype&&(a||Y.includes(n))){var s=function(){var e=o(i().mark((function e(t){var o,s,l,u,c,f,d=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s=this.transaction(t,a?"readwrite":"readonly"),l=s.store,u=d.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=d[f];return r&&(l=l.index(c.shift())),e.next=6,Promise.all([(o=l)[n].apply(o,c),a&&s.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return Q.set(t,s),s}}}W=function(e){return p(p({},e),{},{get:function(t,n,r){return J(t,n)||e.get(t,n,r)},has:function(t,n){return!!J(t,n)||e.has(t,n)}})}(W);var Z=function(e){return e.runEval="runEval",e.addingMissingCriteria="addingMissingCriteria",e.getProjectTextAsync="getProjectTextAsync",e.getProjectMetaAsync="getProjectMetaAsync",e.downloadTargetConfigAsync="downloadTargetConfigAsync",e.evalMissingCriteria="evalMissingCriteria",e.evalMissingPlan="evalMissingPlan",e.evalParameterUnset="evalParameterUnset",e.evalMissingCatalogParameter="evalMissingCatalogParameter",e.loadCollectionFileFailed="loadCollectionFileFailed",e.unableToGetIndexedDbRecord="unableToGetIndexedDbRecord",e.unableToSetIndexedDbRecord="unableToSetIndexedDbRecord",e.unableToDeleteIndexedDbRecord="unableToDeleteIndexedDbRecord",e.unableToLoadCriteriaInstance="unableToLoadCriteriaInstance",e.unableToExportChecklist="unableToExportChecklist",e.unableToReadChecklistFile="unableToReadChecklistFile",e.localStorageReadError="localStorageReadError",e.localStorageWriteError="localStorageWriteError",e.missingCriteriaInstance="missingCriteriaInstance",e.validatorPlansNotFound="validatorPlansNotFound",e.fetchRequestFailed="fetchRequestFailed",e.fetchJsonDocAsync="fetchJsonDocAsync",e.missingParameter="missingParameter",e.selectedBlockWithoutOptions="selectedBlockWithoutOptions",e.unrecognizedSystemParameter="unrecognizedSystemParameter",e.invalidValidatorPlan="invalidValidatorPlan",e.askAIQuestion="askAIQuestion",e.missingTag="missingTag",e.noCatalogCriteria="noCatalogCriteria",e.criteriaInstanceNotFound="criteriaInstanceNotFound",e.signInFailed="signInFailed",e.loginApiError="loginApiError",e.authCheckFailed="authCheckFailed",e}({}),ee=n(8466),te=function(){var e=new Date;return"[".concat(e.getHours(),":").concat(e.getMinutes(),":").concat(e.getSeconds(),"]")},ne=function(e,t){var n=p({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});t&&("object"==typeof t?(n=p(p({},n),t),["message","stack","name"].forEach((function(e){t[e]&&(n[e]=t[e])}))):n.message=t),pxt.tickEvent(g.Error,p(p({},n),{},{errorCode:e})),ee.error(te(),e,n)},re=function(e,t){(pxt.BrowserUtils.isLocalHost()||pxt.options.debug)&&ee.log(te(),e,t)},ie="teachertool",ae=[ie,"runOnLoad"].join("/"),oe=[ie,"lastActiveChecklist"].join("/"),se=[ie,"splitPosition"].join("/"),le=[ie,"expandedCatalogTags"].join("/");function ue(e,t){return localStorage.getItem(e)||t}function ce(e,t){localStorage.setItem(e,t)}var fe="checklists",de=function(){function e(){R(this,e),this.db=void 0}return M(e,[{key:"initializeAsync",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.db){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,X("makecode-project-insights",2,{upgrade:function(e){e.createObjectStore(fe,{keyPath:"name"})}});case 4:this.db=e.sent;case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAsync",value:function(){var e=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=2;break}throw new Error("IndexedDb not initialized.");case 2:return e.prev=2,e.next=5,this.db.get(t,n);case 5:return e.abrupt("return",e.sent);case 8:e.prev=8,e.t0=e.catch(2),ne(Z.unableToGetIndexedDbRecord,e.t0);case 11:case"end":return e.stop()}}),e,this,[[2,8]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"setAsync",value:function(){var e=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=2;break}throw new Error("IndexedDb not initialized.");case 2:return e.prev=2,e.next=5,this.db.put(t,n);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),ne(Z.unableToSetIndexedDbRecord,e.t0);case 10:case"end":return e.stop()}}),e,this,[[2,7]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"deleteAsync",value:function(){var e=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=2;break}throw new Error("IndexedDb not initialized.");case 2:return e.prev=2,e.next=5,this.db.delete(t,n);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),ne(Z.unableToDeleteIndexedDbRecord,e.t0);case 10:case"end":return e.stop()}}),e,this,[[2,7]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getChecklist",value:function(e){return this.getAsync(fe,e)}},{key:"saveChecklist",value:function(e){return this.setAsync(fe,e)}},{key:"deleteChecklist",value:function(e){return this.deleteAsync(fe,e)}}]),e}(),pe=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new de,e.next=3,t.initializeAsync();case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))();function he(e){return ve.apply(this,arguments)}function ve(){return(ve=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe;case 2:return n=e.sent,e.next=5,n.saveChecklist(t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(e){return ye.apply(this,arguments)}function ye(){return(ye=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe;case 2:return n=e.sent,e.next=5,n.deleteChecklist(t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(){try{return"true"===ue(ae,"false")}catch(e){return ne(Z.localStorageReadError,e),!1}}function be(){try{var e;return null!==(e=ue(oe))&&void 0!==e?e:""}catch(e){return ne(Z.localStorageReadError,e),""}}function we(e){try{ce(oe,e)}catch(e){ne(Z.localStorageWriteError,e)}}function xe(e){return Ee.apply(this,arguments)}function Ee(){return(Ee=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe;case 2:return n=e.sent,r=void 0,e.next=6,n.getChecklist(t);case 6:return r=e.sent,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(){return ke.apply(this,arguments)}function ke(){return(ke=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=be(),e.next=3,xe(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ce(e){return _e.apply(this,arguments)}function _e(){return(_e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,he(t);case 2:we(t.name);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Te(e){return Pe.apply(this,arguments)}function Pe(){return(Pe=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,me(t);case 2:be()===t&&we("");case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Oe(){try{var e=ue(le);return e?JSON.parse(e):void 0}catch(e){return void ne(Z.localStorageReadError,e)}}function je(e){try{ce(le,JSON.stringify(e))}catch(e){ne(Z.localStorageWriteError,e)}}function Ae(e){var t=Oe();t||(t=[]),t.push(e),je(t)}function Ie(){return(Ie=o(i().mark((function e(t,n){var r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t&&n&&(null==t?void 0:t.name)!==n.name,a=t&&!n,!n){e.next=5;break}return e.next=5,Ce(n);case 5:if(!r&&!a){e.next=8;break}return e.next=8,Te(t.name);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ne(e,t){switch(t.type){case"SHOW_TOAST":return e.toasts.find((function(e){return e.id===t.toast.id}))?e:p(p({},e),{},{toasts:[].concat(N(e.toasts),[t.toast])});case"DISMISS_TOAST":var n=e.toasts.filter((function(e){return e.id!==t.toastId}));return p(p({},e),{},{toasts:n});case"SET_PROJECT_METADATA":return p(p({},e),{},{projectMetadata:t.metadata});case"SET_EVAL_RESULT":return p(p({},e),{},{evalResults:p(p({},e.evalResults),{},f({},t.criteriaInstanceId,t.result))});case"SET_EVAL_RESULTS_BATCH":return p(p({},e),{},{evalResults:t.criteriaResults});case"CLEAR_ALL_EVAL_RESULT_NOTES":for(var r=p({},e.evalResults),i=0,a=Object.keys(r);i<a.length;i++)r[a[i]].notes="";return p(p({},e),{},{evalResults:r});case"CLEAR_EVAL_RESULT":var o=p({},e.evalResults);return delete o[t.criteriaInstanceId],p(p({},e),{},{evalResults:o});case"CLEAR_ALL_EVAL_RESULTS":return p(p({},e),{},{evalResults:{}});case"SET_CATALOG":return p(p({},e),{},{catalog:t.catalog});case"SET_CATALOG_OPEN":return p(p({},e),{},{catalogOpen:t.open});case"SET_CHECKLIST":return function(e,t){Ie.apply(this,arguments)}(e.checklist,t.checklist),p(p({},e),{},{checklist:t.checklist});case"SHOW_MODAL":return p(p({},e),{},{modalOptions:t.modalOptions});case"HIDE_MODAL":return p(p({},e),{},{modalOptions:void 0});case"SET_VALIDATOR_PLANS":return p(p({},e),{},{validatorPlans:t.plans});case"SET_TARGET_CONFIG":return p(p({},e),{},{targetConfig:t.config});case"SET_ACTIVE_TAB":return p(p({},e),{},{activeTab:t.tabName});case"SET_RUN_ON_LOAD":return p(p({},e),{},{runOnLoad:t.runOnLoad});case"SET_TOOLBOX_CATEGORIES":return p(p({},e),{},{toolboxCategories:t.categories});case"SET_BLOCK_IMAGE_URI":var s=p({},e.blockImageCache);return s[t.blockId]=t.imageUri,p(p({},e),{},{blockImageCache:s});case"SET_SCREEN_READER_ANNOUNCEMENT":return p(p({},e),{},{screenReaderAnnouncement:t.announcement});case"SET_USER_PROFILE":return p(p({},e),{},{userProfile:t.profile});case"SET_USER_FEEDBACK":var l=p({},e.checklist),u=l.criteria.find((function(e){return e.instanceId===t.criteriaInstanceId}));return u&&(u.userFeedback=t.userFeedback),p(p({},e),{},{checklist:l})}}var Re,Le,Me,De=n(5205),Fe=n.n(De),Be=window.location.href,Ue=!!/testcatalog(?:[:=])1/.test(Be)||!!/tc(?:[:=])1/.test(Be),ze=new Promise((function(e){Me=function(){return e(!0)}})),Ve=function(){return Fe()(Re&&Le,"AppStateContext not ready"),{state:Re,dispatch:Le}},He=(0,e.createContext)({state:void 0,dispatch:void 0});function We(t){var n=u((0,e.useReducer)(Ne,p(p({},I),{},{runOnLoad:ge(),flags:p(p({},I.flags),{},{testCatalog:Ue})})),2),r=n[0],i=n[1];return(0,e.useEffect)((function(){Re=r,Le=i,Me()}),[r,i]),(0,x.jsx)(He.Provider,{value:{state:r,dispatch:i},children:t.children})}var $e=function(e){return{type:"SHOW_TOAST",toast:e}},qe=function(e){return{type:"DISMISS_TOAST",toastId:e}},Ge=function(e){return{type:"SET_PROJECT_METADATA",metadata:e}},Xe=function(e){return{type:"CLEAR_EVAL_RESULT",criteriaInstanceId:e}},Ye=function(e){return{type:"SET_CATALOG",catalog:e}},Ke=function(e){return{type:"SET_VALIDATOR_PLANS",plans:e}},Qe=function(e){return{type:"SET_TOOLBOX_CATEGORIES",categories:e}},Je=function(e,t){return{type:"SET_BLOCK_IMAGE_URI",blockId:e,imageUri:t}};function Ze(e){return et.apply(this,arguments)}function et(){return(et=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t,{cache:"no-cache"});case 3:if((n=e.sent).ok){e.next=8;break}throw new Error("Unable to fetch the json file");case 8:return e.next=10,n.json();case 10:return r=e.sent,e.abrupt("return",r);case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),ne(Z.fetchJsonDocAsync,e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)}function tt(e){return nt.apply(this,arguments)}function nt(){return(nt=o(i().mark((function e(t){var n,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="".concat(pxt.Cloud.apiRoot,"/").concat(t),e.next=4,fetch(n);case 4:if((r=e.sent).ok){e.next=9;break}throw new Error("Unable to fetch the project meta information");case 9:return e.next=11,r.json();case 11:return a=e.sent,e.abrupt("return",a);case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),ne(Z.getProjectMetaAsync,e.t0);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})))).apply(this,arguments)}function rt(){return it.apply(this,arguments)}function it(){return(it=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,pxt.targetConfigAsync();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),ne(Z.downloadTargetConfigAsync,e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function at(e){var t=e.split("/");return t.splice(t.length-1,0,"test"),t.join("/")}function ot(e,t){return st.apply(this,arguments)}function st(){return(st=o(i().mark((function e(t,n){var r,a,o,s,l,u,c,f,d,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Ve(),a=r.state,o=a.flags.testCatalog?t.map(at).concat(t):t,s=[],l=v(o),e.prev=4,l.s();case 6:if((u=l.n()).done){e.next=25;break}return c=u.value,e.prev=8,e.next=11,fetch(c,{cache:"no-cache"});case 11:if(!(f=e.sent).ok){e.next=17;break}return e.next=15,f.json();case 15:p=e.sent,s=s.concat(null!==(d=p[n])&&void 0!==d?d:[]);case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(8),ne(Z.loadCollectionFileFailed,e.t0,{collection:n,file:c}),e.abrupt("continue",23);case 23:e.next=6;break;case 25:e.next=30;break;case 27:e.prev=27,e.t1=e.catch(4),l.e(e.t1);case 30:return e.prev=30,l.f(),e.finish(30);case 33:return e.abrupt("return",s);case 34:case"end":return e.stop()}}),e,null,[[4,27,30,33],[8,19]])})))).apply(this,arguments)}function lt(e,t){return ut.apply(this,arguments)}function ut(){return(ut=o(i().mark((function e(t,n){var r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={id:t,question:n},a="",e.prev=3,e.next=6,pxt.auth.AuthClient.staticApiAsync("/api/copilot/question",r,"POST");case 6:if((o=e.sent).success){e.next=9;break}throw new Error(o.err||lf("Unable to reach AI. Error code: {0}",o.statusCode));case 9:return e.next=11,o.resp.json();case 11:a=e.sent,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),ne(Z.askAIQuestion,e.t0);case 17:return e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,null,[[3,14]])})))).apply(this,arguments)}var ct={header:"HeaderBar_header__pBql2","left-menu":"HeaderBar_left-menu__phGxx","right-menu":"HeaderBar_right-menu__o24ph",org:"HeaderBar_org__2wCvh",logo:"HeaderBar_logo__ybst2",brand:"HeaderBar_brand__w4YPa","centered-panel":"HeaderBar_centered-panel__RgeGl","app-title":"HeaderBar_app-title__Iv1Zf","user-menu":"HeaderBar_user-menu__ELItm","sign-in-button":"HeaderBar_sign-in-button__56EOo",avatar:"HeaderBar_avatar__Sj5JF","beta-tag":"HeaderBar_beta-tag__kATXg"},ft=function(e){var t=e.id,n=e.className,r=e.style,i=e.ariaLabel,a=e.ariaHidden,o=e.ariaDescribedBy,s=e.ariaControls,l=e.ariaExpanded,u=e.ariaHasPopup,c=e.ariaPosInSet,f=e.ariaSetSize,d=e.ariaSelected,p=e.ariaPressed,h=e.role,v=e.onClick,m=e.onKeydown,y=e.onBlur,g=e.buttonRef,b=e.title,w=e.label,k=e.leftIcon,C=e.rightIcon,_=e.hardDisabled,T=e.href,P=e.target,O=e.tabIndex,j=e.children,A=e.disabled,I=S("common-button",n,(A=A||_)&&"disabled");return(0,x.jsxs)("button",{id:t,className:I,style:r,title:b,ref:g,onClick:A?void 0:function(e){v&&v(),T&&window.open(T,P||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onKeyDown:m||E,onBlur:y,role:h||"button",tabIndex:O||(A?-1:0),disabled:_,"aria-label":i,"aria-hidden":a,"aria-controls":s,"aria-expanded":l,"aria-haspopup":u,"aria-posinset":c,"aria-setsize":f,"aria-describedby":o,"aria-selected":d,"aria-pressed":p,children:[(k||C||w)&&(0,x.jsxs)("span",{className:"common-button-flex",children:[k&&(0,x.jsx)("i",{className:k,"aria-hidden":!0}),(0,x.jsx)("span",{className:"common-button-label",children:w}),C&&(0,x.jsx)("i",{className:"right "+C,"aria-hidden":!0})]}),j]})},dt=function(e){var t,n,r=e.id,i=e.className,a=e.role,o=e.ariaHidden,s=e.ariaLabel,l=e.childTabStopId,u=e.children,c=e.onItemReceivedFocus,f=e.useUpAndDownArrowKeys,d=function(e){return"true"===e.getAttribute("data-isfocusable")&&"none"!==getComputedStyle(e).display};return(0,x.jsx)("div",{id:r,className:i,role:a,tabIndex:l?void 0:0,onKeyDown:function(e){var r;if(null!==(r=t)&&void 0!==r&&r.length){var i=document.activeElement,a=t.indexOf(i),o=function(e){e.focus(),c&&c(e)};-1===a&&i!==n||("Enter"===e.key||" "===e.key?(e.preventDefault(),e.stopPropagation(),i.click?i.click():i.dispatchEvent(new Event("click"))):e.key===(f?"ArrowDown":"ArrowRight")?(a===t.length-1||i===n?o(k(t,a,0,!0,d)):o(k(t,a,a+1,!0,d)),e.preventDefault(),e.stopPropagation()):e.key===(f?"ArrowUp":"ArrowLeft")?(o(k(t,a,0===a||i===n?t.length-1:a-1,!1,d)),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(o(k(t,a,0,!0,d)),e.preventDefault(),e.stopPropagation()):"End"===e.key&&(o(k(t,a,t.length-1,!0,d)),e.preventDefault(),e.stopPropagation()))}},ref:function(e){if(e&&!n){n=e;var r=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');t=[];var i,a=v(r.values());try{for(a.s();!(i=a.n()).done;){var o=i.value;t.push(o),o.setAttribute("tabindex","-1"),o.setAttribute("data-isfocusable","true")}}catch(e){a.e(e)}finally{a.f()}if(l){var s=n.querySelector("#"+l);s&&s.setAttribute("tabindex","0")}}},"aria-hidden":o,"aria-label":s,children:u})},pt=function(e){return(0,x.jsx)(dt,p(p({},e),{},{role:"menubar",className:S("common-menubar",e.className)}))},ht=function(t){var n,r=t.children,i=t.id,a=t.className,o=t.onEscape,s=t.arrowKeyNavigation,l=t.dontStealFocus,c=t.includeOutsideTabOrder,f=t.dontRestoreFocus,d=e.useRef(document.activeElement),p=u(e.useState(!1),2),h=p[0],m=p[1];e.useEffect((function(){return function(){!f&&d.current&&function(e){for(;e&&(!(n=e)||"true"!==n.getAttribute("data-isfocusable")&&-1===n.tabIndex||"none"===getComputedStyle(n).display);){var t=e.parentElement;if(!t)break;e=t}var n;e.focus()}(d.current)}}),[]);var y=function(){return function(e){var t,n=[],r=v(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}(c?n.querySelectorAll("[tabindex]"):n.querySelectorAll('[tabindex]:not([tabindex="-1"])'))};return(0,x.jsx)("div",{id:i,className:S("common-focus-trap",a),ref:function(e){e&&(n=e,l||h||e.contains(document.activeElement)||!y().length||(n.focus(),m(!0)))},onKeyDown:function(e){if(n){var t=function(t,n){var r=y();if(r.length){var i=r.indexOf(e.target);t?n?k(r,i,r.length-1,t).focus():i===r.length-1?k(r,i,0,t).focus():k(r,i,i+1,t).focus():n?k(r,i,0,t).focus():0===i?k(r,i,r.length-1,t).focus():k(r,i,Math.max(i-1,0),t).focus(),e.preventDefault(),e.stopPropagation()}};"Escape"===e.key?(o(),e.preventDefault(),e.stopPropagation()):"Tab"===e.key?e.shiftKey?t(!1,!1):t(!0,!1):s&&("ArrowDown"===e.key?t(!0,!1):"ArrowUp"===e.key?t(!1,!1):"Home"===e.key?t(!1,!0):"End"===e.key&&t(!0,!0))}},tabIndex:-1,children:r})},vt=function(t){var n,r,i=t.id,a=t.className,o=t.ariaHidden,s=t.ariaLabel,l=t.role,c=t.items,f=t.label,d=t.title,h=t.icon,v=t.tabIndex,m=t.disabled,y=u(e.useState(!1),2),g=y[0],b=y[1],w=S("common-menu-dropdown",a),E=i+"-menu";return(0,x.jsxs)("div",{className:w,ref:function(e){e&&(n=e)},onBlur:function(e){n&&g&&!n.contains(e.relatedTarget)&&b(!1)},children:[(0,x.jsx)(ft,{id:i,label:f,tabIndex:v,buttonRef:function(e){e&&(r=e)},title:d,leftIcon:h,role:l||"menuitem",className:S("menu-button",g&&"expanded"),onClick:function(){b(!g)},ariaHasPopup:"true",ariaExpanded:g,ariaControls:g?E:void 0,ariaLabel:s,ariaHidden:o,disabled:m}),g&&(0,x.jsx)("div",{role:"menu",className:"common-menu-dropdown-pane",tabIndex:0,id:E,"aria-labelledby":i,children:(0,x.jsx)(ht,{arrowKeyNavigation:!0,onEscape:function(){b(!1),r&&r.focus()},children:(0,x.jsx)("ul",{role:"presentation",children:c.map((function(e,t){return(0,x.jsx)("li",{role:"presentation",children:(0,x.jsx)(ft,p(p({},e),{},{className:S("common-menu-dropdown-item",e.className),onClick:function(){b(!1),e.onClick()},role:"menuitem",ariaPosInSet:t+1,ariaSetSize:c.length}))},t)}))})})})]})};function mt(e){(0,Ve().dispatch)(function(e){return{type:"SHOW_MODAL",modalOptions:e}}(e))}function yt(e,t){return(yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yt(e,t)}function bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function xt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Et(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xt(e)}function St(e){var t=wt();return function(){var n,r=bt(e);if(t){var i=bt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Et(this,n)}}function kt(){var e=Ve(),t=e.state,n=e.dispatch;void 0!==t.modalOptions?n({type:"HIDE_MODAL"}):re("Trying to hide model when no modal is active")}function Ct(e){var t,n=Ve(),r=n.state,i=n.dispatch,a=null!=e&&e.id?e:void 0;re("Set user profile",{oldProfile:r.userProfile,incomingProfile:e,finalProfile:a}),i(function(e){return{type:"SET_USER_PROFILE",profile:e}}(a)),a?"sign-in"===(null===(t=r.modalOptions)||void 0===t?void 0:t.modal)&&kt():mt({modal:"sign-in"})}function _t(e){(0,Ve().dispatch)($e(e))}var Tt,Pt=function(e){gt(n,pxt.auth.AuthClient);var t=St(n);function n(){return R(this,n),t.apply(this,arguments)}return M(n,[{key:"onSignedIn",value:function(){var e=o(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re("User signed in"),e.next=3,pxt.auth.getUserStateAsync();case 3:t=e.sent,_t(_("success",(n=pxt.auth.firstName(null==t?void 0:t.profile))?lf("Welcome {0}",n):lf("Welcome!")));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignedOut",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re("User signed out"),Ct(void 0),e.abrupt("return",Promise.resolve());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignInFailed",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ne(Z.signInFailed),e.abrupt("return",Promise.resolve());case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onUserProfileChanged",value:function(){var e=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pxt.auth.getUserStateAsync();case 2:t=e.sent,re("User profile changed",t.profile),null!=t&&t.profile&&pxt.auth.generateUserProfilePicDataUrl(t.profile),Ct(t.profile);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onUserPreferencesChanged",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re("User preferences changed",t),e.abrupt("return",Promise.resolve());case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"onProfileDeleted",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re("Profile deleted",t),e.abrupt("return",Promise.resolve());case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"onApiError",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ne(Z.loginApiError,"API error"),re("API error details",t),e.abrupt("return",Promise.resolve());case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"onStateCleared",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re("State cleared"),e.abrupt("return",Promise.resolve());case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}]),n}();function Ot(){return jt.apply(this,arguments)}function jt(){return(jt=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pxt.auth.hasIdentity()){e.next=2;break}return e.abrupt("return",void 0);case 2:if(!Tt){e.next=4;break}return e.abrupt("return",Tt);case 4:return Tt=new Promise(function(){var e=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new Pt,e.next=3,r.initAsync();case 3:return e.next=5,r.authCheckAsync();case 5:return e.next=7,r.initialUserPreferencesAsync();case 7:t(r);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),e.abrupt("return",Tt);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function At(){return It.apply(this,arguments)}function It(){return(It=o(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ot();case 2:if(t=e.sent,!(n=pxt.Util.parseQueryString(window.location.href)).authcallback){e.next=9;break}return e.next=7,pxt.auth.loginCallbackAsync(n);case 7:e.next=12;break;case 9:return e.next=11,null==t?void 0:t.authCheckAsync();case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nt(e){return Rt.apply(this,arguments)}function Rt(){return(Rt=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ot();case 2:return n=e.sent,e.next=5,null==n?void 0:n.logoutAsync(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lt(e,t,n){return Mt.apply(this,arguments)}function Mt(){return(Mt=o(i().mark((function e(t,n,r){var a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ot();case 2:return a=e.sent,e.next=5,null==a?void 0:a.loginAsync(t,n,r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Dt=function(){return(0,x.jsx)("div",{className:ct["beta-tag"],children:lf("Beta")})},Ft=function(){var t,n=(0,e.useContext)(He).state,r=null===(t=pxt.appTarget)||void 0===t?void 0:t.appTheme;function a(){var e,t,r,i,a;if(n.userProfile)return null!==(e=null!==(t=null===(r=n.userProfile.idp)||void 0===r?void 0:r.pictureUrl)&&void 0!==t?t:null===(i=n.userProfile.idp)||void 0===i||null===(a=i.picture)||void 0===a?void 0:a.dataUrl)&&void 0!==e?e:function(e){var t,n,r,i,a=null==e||null===(t=e.idp)||void 0===t||null===(n=t.picture)||void 0===n?void 0:n.mimeType,o=null==e||null===(r=e.idp)||void 0===r||null===(i=r.picture)||void 0===i?void 0:i.encoded;return a&&o?"data:".concat(a,";base64,").concat(o):void 0}(n.userProfile)}function s(){return l.apply(this,arguments)}function l(){return(l=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent(g.UserMenuSignout),e.next=3,Nt(location.hash);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,x.jsxs)(pt,{className:ct.header,ariaLabel:lf("Header"),role:"navigation",children:[(0,x.jsxs)("div",{className:ct["left-menu"],children:[(0,x.jsx)("div",{className:ct.org,onClick:function(){pxt.tickEvent(g.OrgLink),null!=r&&r.organizationUrl&&window.open(r.organizationUrl)},children:r.organizationWideLogo||r.organizationLogo?(0,x.jsxs)(x.Fragment,{children:[r.organizationWideLogo&&(0,x.jsx)("img",{className:S(ct.logo,"min-sm"),src:r.organizationWideLogo,alt:lf("{0} Logo",r.organization)}),r.organizationLogo&&(0,x.jsx)("img",{className:S(ct.logo,"max-sm"),src:r.organizationLogo,alt:lf("{0} Logo",r.organization)})]}):(0,x.jsx)("span",{className:"name",children:r.organization})}),(0,x.jsx)("div",{className:ct.brand,"aria-label":lf("{0} Logo",r.boardName),role:"menuitem",onClick:function(){pxt.tickEvent(g.BrandLink),null!=r&&r.logoUrl&&window.open(r.logoUrl)},children:r.useTextLogo?[(0,x.jsx)("span",{className:ct.name,children:r.organizationText},"org-name"),(0,x.jsx)("span",{className:ct["name-short"],children:r.organizationShortText||r.organizationText},"org-name-short")]:r.logo||r.portraitLogo?(0,x.jsxs)(x.Fragment,{children:[r.logo&&(0,x.jsx)("img",{className:S(ct.logo,"min-2sm"),src:r.logo,alt:lf("{0} Logo",r.boardName)}),r.portraitLogo&&(0,x.jsx)("img",{className:S(ct.logo,"max-2sm"),src:r.portraitLogo,alt:lf("{0} Logo",r.boardName)})]}):(0,x.jsx)("span",{className:ct.name,children:r.boardName})})]}),(0,x.jsxs)("div",{className:ct["centered-panel"],children:[(0,x.jsxs)("div",{className:S(ct["app-title"],"min-sm"),children:[m.AppTitle,Dt()]}),(0,x.jsxs)("div",{className:S(ct["app-title"],"min-2xs max-sm"),children:[m.AppTitleShort,Dt()]})]}),(0,x.jsx)("div",{className:ct["right-menu"],children:function(){var e=[];n.userProfile&&e.push({id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:s});var t=a()?(0,x.jsx)("div",{className:ct.avatar,children:(0,x.jsx)("img",{src:a(),alt:lf("Profile Image"),referrerPolicy:"no-referrer","aria-hidden":"true"})}):void 0,r=n.userProfile?(0,x.jsx)("span",{children:(0,x.jsx)("div",{className:ct["avatar-initials"],"aria-hidden":"true",children:pxt.auth.userInitials(n.userProfile)})}):(0,x.jsx)(x.Fragment,{});return(0,x.jsx)("div",{className:ct["user-menu"],children:n.userProfile?(0,x.jsx)(vt,{id:"profile-dropdown",items:e,label:t||r,title:lf("Profile Settings")}):(0,x.jsx)(ft,{className:S("inverted",ct["sign-in-button"]),rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:function(){pxt.tickEvent(g.UserMenuSignIn),mt({modal:"sign-in"})}})})}()})]})},Bt={"split-pane":"SplitPane_split-pane__5QjT3",left:"SplitPane_left__aUKhs",right:"SplitPane_right__bep0n","resizing-overlay":"SplitPane_resizing-overlay__eglta","split-vertical":"SplitPane_split-vertical__gKApo",splitter:"SplitPane_splitter__WgA5G","splitter-inner":"SplitPane_splitter-inner__hAcVZ","split-horizontal":"SplitPane_split-horizontal__8n39G"},Ut=function(t){var n=t.className,r=t.split,i=t.defaultSize,a=t.startingSize,o=t.left,s=t.right,l=t.leftMinSize,c=t.rightMinSize,f=t.onResizeEnd,d=u(e.useState(a||i),2),p=d[0],h=d[1],v=u(e.useState(!1),2),m=v[0],y=v[1],g=e.useRef(null);function b(e){E(e.clientX,e.clientY)}function w(e){e.touches.length>=1&&E(e.touches[0].clientX,e.touches[0].clientY)}function E(e,t){var n,i=null===(n=g.current)||void 0===n?void 0:n.getBoundingClientRect();if(i){y(!0);var a="".concat("vertical"===r?(e-i.left)/i.width*100:(t-i.top)/i.height*100,"%");h(a)}}function k(e){e.preventDefault(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),document.addEventListener("touchmove",w),document.addEventListener("touchend",C)}function C(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",C),y(!1)}e.useEffect((function(){m||null==f||f(p)}),[m]);var _={flexBasis:p};return"vertical"===r?(_.minWidth=l,_.maxWidth="calc(100% - ".concat(c,")")):(_.minHeight=l,_.maxHeight="calc(100% - ".concat(c,")")),(0,x.jsxs)("div",{ref:g,className:S(Bt["split-pane"],Bt["split-".concat(r)],n),children:[(0,x.jsx)("div",{className:Bt.left,style:_,children:o}),(0,x.jsx)("div",{className:Bt.splitter,onMouseDown:k,onTouchStart:k,onDoubleClick:function(){h(i),null==f||f(i)},children:(0,x.jsx)("div",{className:Bt["splitter-inner"]})}),(0,x.jsx)("div",{className:Bt.right,children:s}),(0,x.jsx)("div",{className:S(Bt["resizing-overlay"],m?void 0:"hidden")})]})},zt={toolbar:"Toolbar_toolbar__X-piR","toolbar-control-group":"Toolbar_toolbar-control-group__HsuUX","toggle-button":"Toolbar_toggle-button__I9YQc"},Vt=Object.assign((function(e){var t=e.left,n=e.center,r=e.right,i=e.className;return(0,x.jsxs)("div",{className:S(zt.toolbar,"tt-toolbar",i),children:[(0,x.jsx)("div",{className:S(zt.left,"tt-toolbar-left"),children:t}),(0,x.jsx)("div",{className:S(zt.center,"tt-toolbar-center"),children:n}),(0,x.jsx)("div",{className:S(zt.right,"tt-toolbar-right"),children:r})]})}),{Button:function(e){return(0,x.jsx)(ft,p(p({},e),{},{className:S(zt["toolbar-button"],"tt-toolbar-button",e.className),rightIcon:e.icon}))},ControlGroup:function(e){var t=e.children,n=e.className;return(0,x.jsx)("div",{className:S(zt["toolbar-control-group"],"tt-toolbar-control-group",n),children:t})},MenuDropdown:function(e){var t=(0,x.jsx)("i",{className:"fas fa-ellipsis-v"});return(0,x.jsx)(vt,p(p({},e),{},{className:S(zt["toolbar-menu-dropdown"],"tt-toolbar-menu-dropdown",e.className),label:t}))},Toggle:function(t){var n=t.label,r=t.title,i=t.isChecked,a=t.onToggle,o=t.className,s=u(e.useState(i),2),l=s[0],c=s[1];return(0,x.jsx)(ft,p(p({},t),{},{className:S(zt["toggle-button"],o),title:r,label:n,ariaLabel:n,onClick:function(){c(!l),a(!l)},rightIcon:l?"fas fa-toggle-on":"fas fa-toggle-off",ariaPressed:l}))}});function Ht(e){var t=Ve(),n=t.state,r=t.dispatch;n.activeTab!==e&&r(function(e){return{type:"SET_ACTIVE_TAB",tabName:e}}(e))}var Wt=function(t){var n=t.children,r=t.name,i=t.disabled,a=S("tt-tabgroup-tab",(0,e.useContext)(He).state.activeTab===r?"tt-tabgroup-tab-active":void 0);return(0,x.jsx)(ft,{className:a,title:r,onClick:function(){Ht(r)},disabled:i,children:n})},$t=function(e){var t=e.children;return(0,x.jsx)("div",{className:S("TabGroup_tabgroup__I4Tyj","tt-tabgroup"),children:t})},qt=function(t){var n=t.children,r=t.name;return(0,e.useContext)(He).state.activeTab===r?(0,x.jsx)("div",{className:S("TabPanel_tabpanel__cf7Oq","tt-tabpanel"),children:n}):null},Gt="HomeScreen_carouselRow__VrI5G",Xt="HomeScreen_rowTitle__vi0Bn",Yt="HomeScreen_cardContainer__DPPm9",Kt="HomeScreen_cardButton__MS1lx",Qt="HomeScreen_cardDiv__aK5MF",Jt="HomeScreen_cardTitle__NhV5m",Zt="HomeScreen_loadingGradient__2Tcfd",en=function(e){var t=e.id,n=e.className,r=e.ariaLabel,i=e.href,a=e.target,o=e.children,s=e.tabIndex,l=S("common-link",n);return(0,x.jsx)("a",{id:t,className:l,"aria-label":r,href:i,target:a,rel:"_blank"===a?"noopener noreferrer":"",tabIndex:null!=s?s:0,children:o})};function tn(e){var t;return null===(t=Ve().state.catalog)||void 0===t?void 0:t.find((function(t){return t.id===e}))}function nn(e,t){return e.checklist.criteria.find((function(e){return e.instanceId===t}))}function rn(e){var t,n=tn(e.catalogCriteriaId);if(!n)throw new Error("Unrecognized catalog id in criteria instance.");var r,i=v(null!==(t=e.params)&&void 0!==t?t:[]);try{var a=function(){var e,t=r.value;if(null==n||null===(e=n.params)||void 0===e||!e.find((function(e){return e.name===t.name})))throw new Error("Unrecognized parameter in criteria instance.")};for(i.s();!(r=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}}function an(e){if(!e||!e.criteria)return{valid:!1,validCriteria:[],invalidCriteria:[]};var t,n=[],r=[],i=v(e.criteria);try{for(i.s();!(t=i.n()).done;){var a=t.value;try{rn(a),n.push(a)}catch(e){ne(Z.unableToLoadCriteriaInstance,e),r.push(a)}}}catch(e){i.e(e)}finally{i.f()}return{valid:0===r.length,validCriteria:n,invalidCriteria:r}}function on(e){return!!e.projectMetadata}function sn(e){return!(!e.checklist.criteria.length&&!e.checklist.name)}function ln(e){return e.checklist.name||m.UntitledChecklist}function un(e,t){return cn.apply(this,arguments)}function cn(){return(cn=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){mt({modal:"confirmation",title:t,message:n,onCancel:function(){return e(!1)},onContinue:function(){return e(!0)}})})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var fn=function(e){return e[e.Pass=0]="Pass",e[e.Fail=1]="Fail",e[e.CompleteWithNoResult=2]="CompleteWithNoResult",e[e.InProgress=3]="InProgress",e[e.NotStarted=4]="NotStarted",e}({});function dn(e){var t,n=e.overwriteExistingEntries,r=e.checklist,i=Ve(),a=i.state,o=i.dispatch,s={},l=v((r||a.checklist).criteria);try{for(l.s();!(t=l.n()).done;){var u=t.value.instanceId;a.evalResults[u]&&!n||(s[u]={result:fn.NotStarted})}}catch(e){l.e(e)}finally{l.f()}n||(s=p(p({},a.evalResults),s)),o(function(e){return{type:"SET_EVAL_RESULTS_BATCH",criteriaResults:e}}(s))}function pn(e){(0,Ve().dispatch)(function(e){return{type:"SET_CHECKLIST",checklist:e}}(e)),dn({checklist:e})}function hn(e){return vn.apply(this,arguments)}function vn(){return(vn=o(i().mark((function e(t){var n,r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Ve(),a=r.state,o=t.name||null!==(n=t.criteria)&&void 0!==n&&n.length?lf("Import '{0}'?",t.name?t.name:m.UntitledChecklist):m.CreateEmptyChecklist,e.t0=sn(a),!e.t0){e.next=7;break}return e.next=6,un(o,m.ConfirmReplaceChecklistMsg);case 6:e.t0=!e.sent;case 7:if(!e.t0){e.next=9;break}return e.abrupt("return",!1);case 9:return pn(t),Ht("results"),e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mn(){return yn.apply(this,arguments)}function yn(){return(yn=o(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ve(),n=t.dispatch,e.next=3,hn(T());case 3:if(!e.sent){e.next=5;break}n({type:"CLEAR_ALL_EVAL_RESULTS"});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gn(e){return bn.apply(this,arguments)}function bn(){return(bn=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ze(t);case 2:if(n=e.sent){e.next=6;break}return _t(_("error",m.ErrorLoadingChecklistMsg)),e.abrupt("return");case 6:if(an(n).valid){e.next=10;break}return _t(_("error",m.ErrorLoadingChecklistMsg)),e.abrupt("return");case 10:return e.next=12,hn(n);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xn(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function En(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:xn(t[n])&&xn(e[n])&&Object.keys(t[n]).length>0&&En(e[n],t[n])}))}var Sn={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function kn(){var e="undefined"!=typeof document?document:{};return En(e,Sn),e}var Cn={document:Sn,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function _n(){var e="undefined"!=typeof window?window:{};return En(e,Cn),e}function Tn(e,t,n){return(Tn=wt()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&yt(i,n.prototype),i}).apply(null,arguments)}function Pn(e){var t="function"==typeof Map?new Map:void 0;return(Pn=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Tn(e,arguments,bt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),yt(n,e)})(e)}var On=function(e){gt(n,e);var t=St(n);function n(e){var r;return R(this,n),"number"==typeof e?r=t.call(this,e):function(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(e){t.__proto__=e}})}(xt(r=t.call.apply(t,[this].concat(N(e||[]))))),Et(r)}return M(n)}(Pn(Array));function jn(){var e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){Array.isArray(t)?e.push.apply(e,N(jn(t))):e.push(t)})),e}function An(e,t){return Array.prototype.filter.call(e,t)}function In(e,t){var n=_n(),r=kn(),i=[];if(!t&&e instanceof On)return e;if(!e)return new On(i);if("string"==typeof e){var a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var o="div";0===a.indexOf("<li")&&(o="ul"),0===a.indexOf("<tr")&&(o="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(o="tr"),0===a.indexOf("<tbody")&&(o="table"),0===a.indexOf("<option")&&(o="select");var s=r.createElement(o);s.innerHTML=a;for(var l=0;l<s.childNodes.length;l+=1)i.push(s.childNodes[l])}else i=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),i=0;i<r.length;i+=1)n.push(r[i]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof On)return e;i=e}return new On(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(i))}In.fn=On.prototype;var Nn="resize scroll".split(" ");function Rn(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var i=0;i<this.length;i+=1)Nn.indexOf(e)<0&&(e in this[i]?this[i][e]():In(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}Rn("click"),Rn("blur"),Rn("focus"),Rn("focusin"),Rn("focusout"),Rn("keyup"),Rn("keydown"),Rn("keypress"),Rn("submit"),Rn("change"),Rn("mousedown"),Rn("mousemove"),Rn("mouseup"),Rn("mouseenter"),Rn("mouseleave"),Rn("mouseout"),Rn("mouseover"),Rn("touchstart"),Rn("touchend"),Rn("touchmove"),Rn("resize"),Rn("scroll");var Ln={addClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jn(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,N(r))})),this},removeClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jn(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,N(r))})),this},hasClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jn(t.map((function(e){return e.split(" ")})));return An(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jn(t.map((function(e){return e.split(" ")})));this.forEach((function(e){r.forEach((function(t){e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?"".concat(e,"ms"):e;return this},on:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];function s(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),In(t).is(i))a.apply(t,n);else for(var r=In(t).parents(),o=0;o<r.length;o+=1)In(r[o]).is(i)&&a.apply(r[o],n)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var u,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(i)for(u=0;u<c.length;u+=1){var p=c[u];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:a,proxyListener:s}),d.addEventListener(p,s,o)}else for(u=0;u<c.length;u+=1){var h=c[u];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:a,proxyListener:l}),d.addEventListener(h,l,o)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!i&&f.dom7Listeners?d=f.dom7Listeners[u]:i&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[u]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];a&&h.listener===a||a&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===a?(f.removeEventListener(u,h.proxyListener,o),d.splice(p,1)):a||(f.removeEventListener(u,h.proxyListener,o),d.splice(p,1))}}return this},trigger:function(){for(var e=_n(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=n[0].split(" "),a=n[1],o=0;o<i.length;o+=1)for(var s=i[o],l=0;l<this.length;l+=1){var u=this[l];if(e.CustomEvent){var c=new e.CustomEvent(s,{detail:a,bubbles:!0,cancelable:!0});u.dom7EventData=n.filter((function(e,t){return t>0})),u.dispatchEvent(c),u.dom7EventData=[],delete u.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=_n();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=_n(),t=kn(),n=this[0],r=n.getBoundingClientRect(),i=t.body,a=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-a,left:r.left+l-o}}return null},css:function(e,t){var n,r=_n();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this},each:function(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,n,r=_n(),i=kn(),a=this[0];if(!a||void 0===e)return!1;if("string"==typeof e){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=In(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===i)return a===i;if(e===r)return a===r;if(e.nodeType||e instanceof On){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t=this.length;if(e>t-1)return In([]);if(e<0){var n=t+e;return In(n<0?[]:[this[n]])}return In([this[e]])},append:function(){for(var e,t=kn(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var i=t.createElement("div");for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof On)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this},prepend:function(e){var t,n,r=kn();for(t=0;t<this.length;t+=1)if("string"==typeof e){var i=r.createElement("div");for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof On)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&In(this[0].nextElementSibling).is(e)?In([this[0].nextElementSibling]):In([]):this[0].nextElementSibling?In([this[0].nextElementSibling]):In([]):In([])},nextAll:function(e){var t=[],n=this[0];if(!n)return In([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?In(r).is(e)&&t.push(r):t.push(r),n=r}return In(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&In(t.previousElementSibling).is(e)?In([t.previousElementSibling]):In([]):t.previousElementSibling?In([t.previousElementSibling]):In([])}return In([])},prevAll:function(e){var t=[],n=this[0];if(!n)return In([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?In(r).is(e)&&t.push(r):t.push(r),n=r}return In(t)},parent:function(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?In(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return In(t)},parents:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?In(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return In(t)},closest:function(e){var t=this;return void 0===e?In([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return In(t)},children:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)e&&!In(r[i]).is(e)||t.push(r[i]);return In(t)},filter:function(e){return In(An(this,e))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};Object.keys(Ln).forEach((function(e){Object.defineProperty(In.fn,e,{value:Ln[e],writable:!0})}));var Mn,Dn,Fn,Bn=In;function Un(e){return setTimeout(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}function zn(){return Date.now()}function Vn(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",a=_n(),o=function(e){var t,n=_n();return n.getComputedStyle&&(t=n.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e);return a.WebKitCSSMatrix?((n=o.transform||o.webkitTransform).split(",").length>6&&(n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new a.WebKitCSSMatrix("none"===n?"":n)):t=(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(n=a.WebKitCSSMatrix?r.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===i&&(n=a.WebKitCSSMatrix?r.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),n||0}function Hn(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Wn(){for(var e,t=Object(arguments.length<=0?void 0:arguments[0]),n=["__proto__","constructor","prototype"],r=1;r<arguments.length;r+=1){var i=r<0||arguments.length<=r?void 0:arguments[r];if(null!=i&&(e=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType))))for(var a=Object.keys(Object(i)).filter((function(e){return n.indexOf(e)<0})),o=0,s=a.length;o<s;o+=1){var l=a[o],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&(Hn(t[l])&&Hn(i[l])?i[l].__swiper__?t[l]=i[l]:Wn(t[l],i[l]):!Hn(t[l])&&Hn(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:Wn(t[l],i[l])):t[l]=i[l])}}return t}function $n(e,t,n){e.style.setProperty(t,n)}function qn(e){var t,n=e.swiper,r=e.targetPosition,i=e.side,a=_n(),o=-n.translate,s=null,l=n.params.speed;n.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(n.cssModeFrameID);var u=r>o?"next":"prev",c=function(e,t){return"next"===u&&e>=t||"prev"===u&&e<=t};!function e(){t=(new Date).getTime(),null===s&&(s=t);var u=Math.max(Math.min((t-s)/l,1),0),d=.5-Math.cos(u*Math.PI)/2,p=o+d*(r-o);if(c(p,r)&&(p=r),n.wrapperEl.scrollTo(f({},i,p)),c(p,r))return n.wrapperEl.style.overflow="hidden",n.wrapperEl.style.scrollSnapType="",setTimeout((function(){n.wrapperEl.style.overflow="",n.wrapperEl.scrollTo(f({},i,p))})),void a.cancelAnimationFrame(n.cssModeFrameID);n.cssModeFrameID=a.requestAnimationFrame(e)}()}function Gn(){return Mn||(Mn=function(){var e=_n(),t=kn();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),Mn}function Xn(){return Dn||(Dn=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).userAgent,t=Gn(),n=_n(),r=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,s=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/),u=i.match(/(iPad).*OS\s([\d_]+)/),c=i.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d="Win32"===r,p="MacIntel"===r;return!u&&p&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf("".concat(o,"x").concat(s))>=0&&((u=i.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),p=!1),l&&!d&&(a.os="android",a.android=!0),(u||f||c)&&(a.os="ios",a.ios=!0),a}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})),Dn}function Yn(){return Fn||(Fn=function(){var e=_n();return{isSafari:function(){var t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),Fn}function Kn(e){var t=e.swiper,n=e.runCallbacks,r=e.direction,i=e.step,a=t.activeIndex,o=t.previousIndex,s=r;if(s||(s=a>o?"next":a<o?"prev":"reset"),t.emit("transition".concat(i)),n&&a!==o){if("reset"===s)return void t.emit("slideResetTransition".concat(i));t.emit("slideChangeTransition".concat(i)),"next"===s?t.emit("slideNextTransition".concat(i)):t.emit("slidePrevTransition".concat(i))}}function Qn(e){var t=this,n=kn(),r=_n(),i=t.touchEventsData,a=t.params,o=t.touches;if(t.enabled&&(!t.animating||!a.preventInteractionOnTransition)){!t.animating&&a.cssMode&&a.loop&&t.loopFix();var s=e;s.originalEvent&&(s=s.originalEvent);var l=Bn(s.target);if(("wrapper"!==a.touchEventsTarget||l.closest(t.wrapperEl).length)&&(i.isTouchEvent="touchstart"===s.type,(i.isTouchEvent||!("which"in s)||3!==s.which)&&!(!i.isTouchEvent&&"button"in s&&s.button>0)&&(!i.isTouched||!i.isMoved))){var u=!!a.noSwipingClass&&""!==a.noSwipingClass,c=e.composedPath?e.composedPath():e.path;u&&s.target&&s.target.shadowRoot&&c&&(l=Bn(c[0]));var f=a.noSwipingSelector?a.noSwipingSelector:".".concat(a.noSwipingClass),d=!(!s.target||!s.target.shadowRoot);if(a.noSwiping&&(d?function(e){return function t(n){if(!n||n===kn()||n===_n())return null;n.assignedSlot&&(n=n.assignedSlot);var r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this)}(f,l[0]):l.closest(f)[0]))t.allowClick=!0;else if(!a.swipeHandler||l.closest(a.swipeHandler)[0]){o.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,o.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var p=o.currentX,h=o.currentY,v=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,m=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(v&&(p<=m||p>=r.innerWidth-m)){if("prevent"!==v)return;e.preventDefault()}if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=h,i.touchStartTime=zn(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==s.type){var y=!0;l.is(i.focusableElements)&&(y=!1,"SELECT"===l[0].nodeName&&(i.isTouched=!1)),n.activeElement&&Bn(n.activeElement).is(i.focusableElements)&&n.activeElement!==l[0]&&n.activeElement.blur();var g=y&&t.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!g||l[0].isContentEditable||s.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}}}}function Jn(e){var t=kn(),n=this,r=n.touchEventsData,i=n.params,a=n.touches,o=n.rtlTranslate;if(n.enabled){var s=e;if(s.originalEvent&&(s=s.originalEvent),r.isTouched){if(!r.isTouchEvent||"touchmove"===s.type){var l="touchmove"===s.type&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),u="touchmove"===s.type?l.pageX:s.pageX,c="touchmove"===s.type?l.pageY:s.pageY;if(s.preventedByNestedSwiper)return a.startX=u,void(a.startY=c);if(!n.allowTouchMove)return Bn(s.target).is(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(a,{startX:u,startY:c,currentX:u,currentY:c}),r.touchStartTime=zn()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(c<a.startY&&n.translate<=n.maxTranslate()||c>a.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<a.startX&&n.translate<=n.maxTranslate()||u>a.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&s.target===t.activeElement&&Bn(s.target).is(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){a.currentX=u,a.currentY=c;var f,d=a.currentX-a.startX,p=a.currentY-a.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))<n.params.threshold))if(void 0===r.isScrolling&&(n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:d*d+p*p>=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?f>i.touchAngle:90-f>i.touchAngle)),r.isScrolling&&n.emit("touchMoveOpposite",s),void 0===r.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,!i.cssMode&&s.cancelable&&s.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&s.stopPropagation(),r.isMoved||(i.loop&&!i.cssMode&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",s)),n.emit("sliderMove",s),r.isMoved=!0;var h=n.isHorizontal()?d:p;a.diff=h,h*=i.touchRatio,o&&(h=-h),n.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate;var v=!0,m=i.resistanceRatio;if(i.touchReleaseOnEdges&&(m=0),h>0&&r.currentTranslate>n.minTranslate()?(v=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+h,m))):h<0&&r.currentTranslate<n.maxTranslate()&&(v=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-r.startTranslate-h,m))),v&&(s.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(h)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",s)}}function Zn(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,a=t.rtlTranslate,o=t.slidesGrid;if(t.enabled){var s=e;if(s.originalEvent&&(s=s.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var l,u=zn(),c=u-n.touchStartTime;if(t.allowClick){var f=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(f&&f[0]||s.target),t.emit("tap click",s),c<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=zn(),Un((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,l=r.followFinger?a?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(t.params.freeMode&&r.freeMode.enabled)t.freeMode.onTouchEnd({currentPos:l});else{for(var d=0,p=t.slidesSizesGrid[0],h=0;h<o.length;h+=h<r.slidesPerGroupSkip?1:r.slidesPerGroup){var v=h<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==o[h+v]?l>=o[h]&&l<o[h+v]&&(d=h,p=o[h+v]-o[h]):l>=o[h]&&(d=h,p=o[o.length-1]-o[o.length-2])}var m=null,y=null;r.rewind&&(t.isBeginning?y=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));var g=(l-o[d])/p,b=d<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(c>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(g>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?m:d+b):t.slideTo(d)),"prev"===t.swipeDirection&&(g>1-r.longSwipesRatio?t.slideTo(d+b):null!==y&&g<0&&Math.abs(g)>r.longSwipesRatio?t.slideTo(y):t.slideTo(d))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==m?m:d+b),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:d)):s.target===t.navigation.nextEl?t.slideTo(d+b):t.slideTo(d)}}}}function er(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,i=e.allowSlidePrev,a=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function tr(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function nr(){var e=this,t=e.wrapperEl,n=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var r=e.maxTranslate()-e.minTranslate();(0===r?0:(e.translate-e.minTranslate())/r)!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}var rr=!1;function ir(){}var ar=function(e,t){var n=kn(),r=e.params,i=e.touchEvents,a=e.el,o=e.wrapperEl,s=e.device,l=e.support,u=!!r.nested,c="on"===t?"addEventListener":"removeEventListener",f=t;if(l.touch){var d=!("touchstart"!==i.start||!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};a[c](i.start,e.onTouchStart,d),a[c](i.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:u}:u),a[c](i.end,e.onTouchEnd,d),i.cancel&&a[c](i.cancel,e.onTouchEnd,d)}else a[c](i.start,e.onTouchStart,!1),n[c](i.move,e.onTouchMove,u),n[c](i.end,e.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&a[c]("click",e.onClick,!0),r.cssMode&&o[c]("scroll",e.onScroll),r.updateOnWindowResize?e[f](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",er,!0):e[f]("observerUpdate",er,!0)},or=function(e,t){return e.grid&&t.grid&&t.grid.rows>1},sr={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function lr(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(r)>=0&&!0===e[r]&&(e[r]={auto:!0}),r in e&&"enabled"in i?(!0===e[r]&&(e[r]={enabled:!0}),"object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Wn(t,n)):Wn(t,n)):Wn(t,n)}}var ur={eventsEmitter:{on:function(e,t,n){var r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;var i=n?"unshift":"push";return e.split(" ").forEach((function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},once:function(e,t,n){var r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];t.apply(r,a)}return i.__emitterProxy=t,r.on(e,i,n)},onAny:function(e,t){var n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;var r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny:function(e){var t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;var n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off:function(e,t){var n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit:function(){var e,t,n,r=this;if(!r.eventsListeners||r.destroyed)return r;if(!r.eventsListeners)return r;for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return"string"==typeof a[0]||Array.isArray(a[0])?(e=a[0],t=a.slice(1,a.length),n=r):(e=a[0].events,t=a[0].data,n=a[0].context||r),t.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach((function(e){r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach((function(r){r.apply(n,[e].concat(N(t)))})),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach((function(e){e.apply(n,t)}))})),r}},update:{updateSize:function(){var e,t,n=this,r=n.$el;e=void 0!==n.params.width&&null!==n.params.width?n.params.width:r[0].clientWidth,t=void 0!==n.params.height&&null!==n.params.height?n.params.height:r[0].clientHeight,0===e&&n.isHorizontal()||0===t&&n.isVertical()||(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),t=t-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(n,{width:e,height:t,size:n.isHorizontal()?e:t}))},updateSlides:function(){var e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}var r=e.params,i=e.$wrapperEl,a=e.size,o=e.rtlTranslate,s=e.wrongRTL,l=e.virtual&&r.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=i.children(".".concat(e.params.slideClass)),d=l?e.virtual.slides.length:c.length,p=[],h=[],v=[],m=r.slidesOffsetBefore;"function"==typeof m&&(m=r.slidesOffsetBefore.call(e));var y=r.slidesOffsetAfter;"function"==typeof y&&(y=r.slidesOffsetAfter.call(e));var g=e.snapGrid.length,b=e.slidesGrid.length,w=r.spaceBetween,x=-m,E=0,S=0;if(void 0!==a){"string"==typeof w&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*a),e.virtualSize=-w,o?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&($n(e.wrapperEl,"--swiper-centered-offset-before",""),$n(e.wrapperEl,"--swiper-centered-offset-after",""));var k,C=r.grid&&r.grid.rows>1&&e.grid;C&&e.grid.initSlides(d);for(var _="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter((function(e){return void 0!==r.breakpoints[e].slidesPerView})).length>0,T=0;T<d;T+=1){k=0;var P=c.eq(T);if(C&&e.grid.updateSlide(T,P,d,t),"none"!==P.css("display")){if("auto"===r.slidesPerView){_&&(c[T].style[t("width")]="");var O=getComputedStyle(P[0]),j=P[0].style.transform,A=P[0].style.webkitTransform;if(j&&(P[0].style.transform="none"),A&&(P[0].style.webkitTransform="none"),r.roundLengths)k=e.isHorizontal()?P.outerWidth(!0):P.outerHeight(!0);else{var I=n(O,"width"),N=n(O,"padding-left"),R=n(O,"padding-right"),L=n(O,"margin-left"),M=n(O,"margin-right"),D=O.getPropertyValue("box-sizing");if(D&&"border-box"===D)k=I+L+M;else{var F=P[0],B=F.clientWidth;k=I+N+R+L+M+(F.offsetWidth-B)}}j&&(P[0].style.transform=j),A&&(P[0].style.webkitTransform=A),r.roundLengths&&(k=Math.floor(k))}else k=(a-(r.slidesPerView-1)*w)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),c[T]&&(c[T].style[t("width")]="".concat(k,"px"));c[T]&&(c[T].swiperSlideSize=k),v.push(k),r.centeredSlides?(x=x+k/2+E/2+w,0===E&&0!==T&&(x=x-a/2-w),0===T&&(x=x-a/2-w),Math.abs(x)<.001&&(x=0),r.roundLengths&&(x=Math.floor(x)),S%r.slidesPerGroup==0&&p.push(x),h.push(x)):(r.roundLengths&&(x=Math.floor(x)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&p.push(x),h.push(x),x=x+k+w),e.virtualSize+=k+w,E=k,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+y,o&&s&&("slide"===r.effect||"coverflow"===r.effect)&&i.css({width:"".concat(e.virtualSize+r.spaceBetween,"px")}),r.setWrapperSize&&i.css(f({},t("width"),"".concat(e.virtualSize+r.spaceBetween,"px"))),C&&e.grid.updateWrapperSize(k,p,t),!r.centeredSlides){for(var U=[],z=0;z<p.length;z+=1){var V=p[z];r.roundLengths&&(V=Math.floor(V)),p[z]<=e.virtualSize-a&&U.push(V)}p=U,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(0===p.length&&(p=[0]),0!==r.spaceBetween){var H=e.isHorizontal()&&o?"marginLeft":t("marginRight");c.filter((function(e,t){return!r.cssMode||t!==c.length-1})).css(f({},H,"".concat(w,"px")))}if(r.centeredSlides&&r.centeredSlidesBounds){var W=0;v.forEach((function(e){W+=e+(r.spaceBetween?r.spaceBetween:0)}));var $=(W-=r.spaceBetween)-a;p=p.map((function(e){return e<0?-m:e>$?$+y:e}))}if(r.centerInsufficientSlides){var q=0;if(v.forEach((function(e){q+=e+(r.spaceBetween?r.spaceBetween:0)})),(q-=r.spaceBetween)<a){var G=(a-q)/2;p.forEach((function(e,t){p[t]=e-G})),h.forEach((function(e,t){h[t]=e+G}))}}if(Object.assign(e,{slides:c,snapGrid:p,slidesGrid:h,slidesSizesGrid:v}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){$n(e.wrapperEl,"--swiper-centered-offset-before","".concat(-p[0],"px")),$n(e.wrapperEl,"--swiper-centered-offset-after","".concat(e.size/2-v[v.length-1]/2,"px"));var X=-e.snapGrid[0],Y=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((function(e){return e+X})),e.slidesGrid=e.slidesGrid.map((function(e){return e+Y}))}if(d!==u&&e.emit("slidesLengthChange"),p.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!(l||r.cssMode||"slide"!==r.effect&&"fade"!==r.effect)){var K="".concat(r.containerModifierClass,"backface-hidden"),Q=e.$el.hasClass(K);d<=r.maxBackfaceHiddenSlides?Q||e.$el.addClass(K):Q&&e.$el.removeClass(K)}}},updateAutoHeight:function(e){var t,n=this,r=[],i=n.virtual&&n.params.virtual.enabled,a=0;"number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed);var o=function(e){return i?n.slides.filter((function(t){return parseInt(t.getAttribute("data-swiper-slide-index"),10)===e}))[0]:n.slides.eq(e)[0]};if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)if(n.params.centeredSlides)(n.visibleSlides||Bn([])).each((function(e){r.push(e)}));else for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){var s=n.activeIndex+t;if(s>n.slides.length&&!i)break;r.push(o(s))}else r.push(o(n.activeIndex));for(t=0;t<r.length;t+=1)if(void 0!==r[t]){var l=r[t].offsetHeight;a=l>a?l:a}(a||0===a)&&n.$wrapperEl.css("height","".concat(a,"px"))},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,r=t.slides,i=t.rtlTranslate,a=t.snapGrid;if(0!==r.length){void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();var o=-e;i&&(o=e),r.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var s=0;s<r.length;s+=1){var l=r[s],u=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);var c=(o+(n.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+n.spaceBetween),f=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+n.spaceBetween),d=-(o-u),p=d+t.slidesSizesGrid[s];(d>=0&&d<t.size-1||p>1&&p<=t.size||d<=0&&p>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(s),r.eq(s).addClass(n.slideVisibleClass)),l.progress=i?-c:c,l.originalProgress=i?-f:f}t.visibleSlides=Bn(t.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){var n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}var r=t.params,i=t.maxTranslate()-t.minTranslate(),a=t.progress,o=t.isBeginning,s=t.isEnd,l=o,u=s;0===i?(a=0,o=!0,s=!0):(o=(a=(e-t.minTranslate())/i)<=0,s=a>=1),Object.assign(t,{progress:a,isBeginning:o,isEnd:s}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!s)&&t.emit("fromEdge"),t.emit("progress",a)},updateSlidesClasses:function(){var e,t=this,n=t.slides,r=t.params,i=t.$wrapperEl,a=t.activeIndex,o=t.realIndex,s=t.virtual&&r.virtual.enabled;n.removeClass("".concat(r.slideActiveClass," ").concat(r.slideNextClass," ").concat(r.slidePrevClass," ").concat(r.slideDuplicateActiveClass," ").concat(r.slideDuplicateNextClass," ").concat(r.slideDuplicatePrevClass)),(e=s?t.$wrapperEl.find(".".concat(r.slideClass,'[data-swiper-slide-index="').concat(a,'"]')):n.eq(a)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?i.children(".".concat(r.slideClass,":not(.").concat(r.slideDuplicateClass,')[data-swiper-slide-index="').concat(o,'"]')).addClass(r.slideDuplicateActiveClass):i.children(".".concat(r.slideClass,".").concat(r.slideDuplicateClass,'[data-swiper-slide-index="').concat(o,'"]')).addClass(r.slideDuplicateActiveClass));var l=e.nextAll(".".concat(r.slideClass)).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=n.eq(0)).addClass(r.slideNextClass);var u=e.prevAll(".".concat(r.slideClass)).eq(0).addClass(r.slidePrevClass);r.loop&&0===u.length&&(u=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?i.children(".".concat(r.slideClass,":not(.").concat(r.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(r.slideDuplicateNextClass):i.children(".".concat(r.slideClass,".").concat(r.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(r.slideDuplicateNextClass),u.hasClass(r.slideDuplicateClass)?i.children(".".concat(r.slideClass,":not(.").concat(r.slideDuplicateClass,')[data-swiper-slide-index="').concat(u.attr("data-swiper-slide-index"),'"]')).addClass(r.slideDuplicatePrevClass):i.children(".".concat(r.slideClass,".").concat(r.slideDuplicateClass,'[data-swiper-slide-index="').concat(u.attr("data-swiper-slide-index"),'"]')).addClass(r.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,a=n.snapGrid,o=n.params,s=n.activeIndex,l=n.realIndex,u=n.snapIndex,c=e;if(void 0===c){for(var f=0;f<i.length;f+=1)void 0!==i[f+1]?r>=i[f]&&r<i[f+1]-(i[f+1]-i[f])/2?c=f:r>=i[f]&&r<i[f+1]&&(c=f+1):r>=i[f]&&(c=f);o.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(a.indexOf(r)>=0)t=a.indexOf(r);else{var d=Math.min(o.slidesPerGroupSkip,c);t=d+Math.floor((c-d)/o.slidesPerGroup)}if(t>=a.length&&(t=a.length-1),c!==s){var p=parseInt(n.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(n,{snapIndex:t,realIndex:p,previousIndex:s,activeIndex:c}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==p&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else t!==u&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e){var t,n=this,r=n.params,i=Bn(e).closest(".".concat(r.slideClass))[0],a=!1;if(i)for(var o=0;o<n.slides.length;o+=1)if(n.slides[o]===i){a=!0,t=o;break}if(!i||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(Bn(i).attr("data-swiper-slide-index"),10):n.clickedIndex=t,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},translate:{getTranslate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,n=t.params,r=t.rtlTranslate,i=t.translate,a=t.$wrapperEl;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;var o=Vn(a[0],e);return r&&(o=-o),o||0},setTranslate:function(e,t){var n=this,r=n.rtlTranslate,i=n.params,a=n.$wrapperEl,o=n.wrapperEl,s=n.progress,l=0,u=0;n.isHorizontal()?l=r?-e:e:u=e,i.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-u:i.virtualTranslate||a.transform("translate3d(".concat(l,"px, ").concat(u,"px, ").concat(0,"px)")),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:u;var c=n.maxTranslate()-n.minTranslate();(0===c?0:(e-n.minTranslate())/c)!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4?arguments[4]:void 0,a=this,o=a.params,s=a.wrapperEl;if(a.animating&&o.preventInteractionOnTransition)return!1;var l,u=a.minTranslate(),c=a.maxTranslate();if(l=r&&e>u?u:r&&e<c?c:e,a.updateProgress(l),o.cssMode){var d=a.isHorizontal();if(0===t)s[d?"scrollLeft":"scrollTop"]=-l;else{var p;if(!a.support.smoothScroll)return qn({swiper:a,targetPosition:-l,side:d?"left":"top"}),!0;s.scrollTo((f(p={},d?"left":"top",-l),f(p,"behavior","smooth"),p))}return!0}return 0===t?(a.setTransition(0),a.setTranslate(l),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(l),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,n&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){var n=this;n.params.cssMode||n.$wrapperEl.transition(e),n.emit("setTransition",e,t)},transitionStart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,r=n.params;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Kn({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,r=n.params;n.animating=!1,r.cssMode||(n.setTransition(0),Kn({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if("number"!=typeof e&&"string"!=typeof e)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. [".concat(typeof e,"] given."));if("string"==typeof e){var a=parseInt(e,10);if(!isFinite(a))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. [".concat(e,"] given."));e=a}var o=this,s=e;s<0&&(s=0);var l=o.params,u=o.snapGrid,c=o.slidesGrid,d=o.previousIndex,p=o.activeIndex,h=o.rtlTranslate,v=o.wrapperEl,m=o.enabled;if(o.animating&&l.preventInteractionOnTransition||!m&&!r&&!i)return!1;var y=Math.min(o.params.slidesPerGroupSkip,s),g=y+Math.floor((s-y)/o.params.slidesPerGroup);g>=u.length&&(g=u.length-1);var b,w=-u[g];if(l.normalizeSlideIndex)for(var x=0;x<c.length;x+=1){var E=-Math.floor(100*w),S=Math.floor(100*c[x]),k=Math.floor(100*c[x+1]);void 0!==c[x+1]?E>=S&&E<k-(k-S)/2?s=x:E>=S&&E<k&&(s=x+1):E>=S&&(s=x)}if(o.initialized&&s!==p){if(!o.allowSlideNext&&w<o.translate&&w<o.minTranslate())return!1;if(!o.allowSlidePrev&&w>o.translate&&w>o.maxTranslate()&&(p||0)!==s)return!1}if(s!==(d||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(w),b=s>p?"next":s<p?"prev":"reset",h&&-w===o.translate||!h&&w===o.translate)return o.updateActiveIndex(s),l.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==l.effect&&o.setTranslate(w),"reset"!==b&&(o.transitionStart(n,b),o.transitionEnd(n,b)),!1;if(l.cssMode){var C=o.isHorizontal(),_=h?w:-w;if(0===t){var T=o.virtual&&o.params.virtual.enabled;T&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),v[C?"scrollLeft":"scrollTop"]=_,T&&requestAnimationFrame((function(){o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1}))}else{var P;if(!o.support.smoothScroll)return qn({swiper:o,targetPosition:_,side:C?"left":"top"}),!0;v.scrollTo((f(P={},C?"left":"top",_),f(P,"behavior","smooth"),P))}return!0}return o.setTransition(t),o.setTranslate(w),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,b),0===t?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;if("string"==typeof e){var i=parseInt(e,10);if(!isFinite(i))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. [".concat(e,"] given."));e=i}var a=this,o=e;return a.params.loop&&(o+=a.loopedSlides),a.slideTo(o,t,n,r)},slideNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,i=r.animating,a=r.enabled,o=r.params;if(!a)return r;var s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));var l=r.activeIndex<o.slidesPerGroupSkip?1:s;if(o.loop){if(i&&o.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,i=r.params,a=r.animating,o=r.snapGrid,s=r.slidesGrid,l=r.rtlTranslate;if(!r.enabled)return r;if(i.loop){if(a&&i.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var c,f=u(l?r.translate:-r.translate),d=o.map((function(e){return u(e)})),p=o[d.indexOf(f)-1];void 0===p&&i.cssMode&&(o.forEach((function(e,t){f>=e&&(c=t)})),void 0!==c&&(p=o[c>0?c-1:c]));var h=0;if(void 0!==p&&((h=s.indexOf(p))<0&&(h=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(h=h-r.slidesPerViewDynamic("previous",!0)+1,h=Math.max(h,0))),i.rewind&&r.isBeginning){var v=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(v,e,t,n)}return r.slideTo(h,e,t,n)},slideReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=this,a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){var u=i.snapGrid[s];l-u>(i.snapGrid[s+1]-u)*r&&(a+=i.params.slidesPerGroup)}else{var c=i.snapGrid[s-1];l-c<=(i.snapGrid[s]-c)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,a=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(Bn(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?a<t.loopedSlides-i/2||a>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),a=r.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),Un((function(){t.slideTo(a)}))):t.slideTo(a):a>t.slides.length-i?(t.loopFix(),a=r.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),Un((function(){t.slideTo(a)}))):t.slideTo(a)}else t.slideTo(a)}},loop:{loopCreate:function(){var e=this,t=kn(),n=e.params,r=e.$wrapperEl,i=r.children().length>0?Bn(r.children()[0].parentNode):r;i.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass)).remove();var a=i.children(".".concat(n.slideClass));if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-a.length%n.slidesPerGroup;if(o!==n.slidesPerGroup){for(var s=0;s<o;s+=1){var l=Bn(t.createElement("div")).addClass("".concat(n.slideClass," ").concat(n.slideBlankClass));i.append(l)}a=i.children(".".concat(n.slideClass))}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=a.length),e.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),e.loopedSlides+=n.loopAdditionalSlides,e.loopedSlides>a.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=a.length);var u=[],c=[];a.each((function(e,t){Bn(e).attr("data-swiper-slide-index",t)}));for(var f=0;f<e.loopedSlides;f+=1){var d=f-Math.floor(f/a.length)*a.length;c.push(a.eq(d)[0]),u.unshift(a.eq(a.length-d-1)[0])}for(var p=0;p<c.length;p+=1)i.append(Bn(c[p].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var h=u.length-1;h>=0;h-=1)i.prepend(Bn(u[h].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var t,n=e.activeIndex,r=e.slides,i=e.loopedSlides,a=e.allowSlidePrev,o=e.allowSlideNext,s=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var u=-s[n]-e.getTranslate();n<i?(t=r.length-3*i+n,t+=i,e.slideTo(t,0,!1,!0)&&0!==u&&e.setTranslate((l?-e.translate:e.translate)-u)):n>=r.length-i&&(t=-r.length+n+i,t+=i,e.slideTo(t,0,!1,!0)&&0!==u&&e.setTranslate((l?-e.translate:e.translate)-u)),e.allowSlidePrev=a,e.allowSlideNext=o,e.emit("loopFix")},loopDestroy:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,",.").concat(n.slideClass,".").concat(n.slideBlankClass)).remove(),r.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){var t=this;if(!(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)){var n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){var e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){var e=this,t=kn(),n=e.params,r=e.support;e.onTouchStart=Qn.bind(e),e.onTouchMove=Jn.bind(e),e.onTouchEnd=Zn.bind(e),n.cssMode&&(e.onScroll=nr.bind(e)),e.onClick=tr.bind(e),r.touch&&!rr&&(t.addEventListener("touchstart",ir),rr=!0),ar(e,"on")},detachEvents:function(){ar(this,"off")}},breakpoints:{setBreakpoint:function(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides,i=void 0===r?0:r,a=e.params,o=e.$el,s=a.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var l=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(l&&e.currentBreakpoint!==l){var u=(l in s?s[l]:void 0)||e.originalParams,c=or(e,a),f=or(e,u),d=a.enabled;c&&!f?(o.removeClass("".concat(a.containerModifierClass,"grid ").concat(a.containerModifierClass,"grid-column")),e.emitContainerClasses()):!c&&f&&(o.addClass("".concat(a.containerModifierClass,"grid")),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===a.grid.fill)&&o.addClass("".concat(a.containerModifierClass,"grid-column")),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((function(t){var n=a[t]&&a[t].enabled,r=u[t]&&u[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()}));var p=u.direction&&u.direction!==a.direction,h=a.loop&&(u.slidesPerView!==a.slidesPerView||p);p&&n&&e.changeDirection(),Wn(e.params,u);var v=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!v?e.disable():!d&&v&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",u),h&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}}},getBreakpoint:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"window",n=arguments.length>2?arguments[2]:void 0;if(e&&("container"!==t||n)){var r=!1,i=_n(),a="window"===t?i.innerHeight:n.clientHeight,o=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}}));o.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var s=0;s<o.length;s+=1){var l=o[s],u=l.point,c=l.value;"window"===t?i.matchMedia("(min-width: ".concat(c,"px)")).matches&&(r=u):c<=n.clientWidth&&(r=u)}return r||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.isLocked,n=e.params,r=n.slidesOffsetBefore;if(r){var i=e.slides.length-1,a=e.slidesGrid[i]+e.slidesSizesGrid[i]+2*r;e.isLocked=e.size>a}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var e=this,t=e.classNames,n=e.params,r=e.rtl,i=e.$el,a=e.device,o=e.support,s=function(e,t){var n=[];return e.forEach((function(e){"object"==typeof e?Object.keys(e).forEach((function(r){e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"pointer-events":!o.touch},{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push.apply(t,N(s)),i.addClass(N(t).join(" ")),e.emitContainerClasses()},removeClasses:function(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" ")),e.emitContainerClasses()}},images:{loadImage:function(e,t,n,r,i,a){var o,s=_n();function l(){a&&a()}Bn(e).parent("picture")[0]||e.complete&&i?l():t?((o=new s.Image).onload=l,o.onerror=l,r&&(o.sizes=r),n&&(o.srcset=n),t&&(o.src=t)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}}},cr={},fr=function(){function e(){var t,n;R(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];if(1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?n=i[0]:(t=i[0],n=i[1]),n||(n={}),n=Wn({},n),t&&!n.el&&(n.el=t),n.el&&Bn(n.el).length>1){var o=[];return Bn(n.el).each((function(t){var r=Wn({},n,{el:t});o.push(new e(r))})),o}var s,l=this;l.__swiper__=!0,l.support=Gn(),l.device=Xn({userAgent:n.userAgent}),l.browser=Yn(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=N(l.__modules__),n.modules&&Array.isArray(n.modules)&&(s=l.modules).push.apply(s,N(n.modules));var u={};l.modules.forEach((function(e){e({swiper:l,extendParams:lr(n,u),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));var c=Wn({},sr,u);return l.params=Wn({},c,cr,n),l.originalParams=Wn({},l.params),l.passedParams=Wn({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach((function(e){l.on(e,l.params.on[e])})),l.params&&l.params.onAny&&l.onAny(l.params.onAny),l.$=Bn,Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:Bn(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return l.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},l.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},l.support.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:zn(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}return M(e,[{key:"enable",value:function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}},{key:"disable",value:function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}},{key:"setProgress",value:function(e,t){var n=this;e=Math.min(Math.max(e,0),1);var r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}},{key:"emitContainerClasses",value:function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}}},{key:"getSlideClasses",value:function(e){var t=this;return t.destroyed?"":e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")}},{key:"emitSlidesClasses",value:function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.each((function(n){var r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}}},{key:"slidesPerViewDynamic",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"current",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this,r=n.params,i=n.slides,a=n.slidesGrid,o=n.slidesSizesGrid,s=n.size,l=n.activeIndex,u=1;if(r.centeredSlides){for(var c,f=i[l].swiperSlideSize,d=l+1;d<i.length;d+=1)i[d]&&!c&&(u+=1,(f+=i[d].swiperSlideSize)>s&&(c=!0));for(var p=l-1;p>=0;p-=1)i[p]&&!c&&(u+=1,(f+=i[p].swiperSlideSize)>s&&(c=!0))}else if("current"===e)for(var h=l+1;h<i.length;h+=1)(t?a[h]+o[h]-a[l]<s:a[h]-a[l]<s)&&(u+=1);else for(var v=l-1;v>=0;v-=1)a[l]-a[v]<s&&(u+=1);return u}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass("".concat(n.params.containerModifierClass).concat(r)).addClass("".concat(n.params.containerModifierClass).concat(e)),n.emitContainerClasses(),n.params.direction=e,n.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}},{key:"changeLanguageDirection",value:function(e){var t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="rtl"):(t.$el.removeClass("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="ltr"),t.update())}},{key:"mount",value:function(e){var t=this;if(t.mounted)return!0;var n=Bn(e||t.params.el);if(!(e=n[0]))return!1;e.swiper=t;var r=function(){return".".concat((t.params.wrapperClass||"").trim().split(" ").join("."))},i=function(){if(e&&e.shadowRoot&&e.shadowRoot.querySelector){var t=Bn(e.shadowRoot.querySelector(r()));return t.children=function(e){return n.children(e)},t}return n.children?n.children(r()):Bn(n).children(r())}();if(0===i.length&&t.params.createElements){var a=kn().createElement("div");i=Bn(a),a.className=t.params.wrapperClass,n.append(a),n.children(".".concat(t.params.slideClass)).each((function(e){i.append(e)}))}return Object.assign(t,{$el:n,el:e,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===i.css("display")}),!0}},{key:"init",value:function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params,i=n.$el,a=n.$wrapperEl,o=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}}],[{key:"extendDefaults",value:function(e){Wn(cr,e)}},{key:"extendedDefaults",get:function(){return cr}},{key:"defaults",get:function(){return sr}},{key:"installModule",value:function(t){e.prototype.__modules__||(e.prototype.__modules__=[]);var n=e.prototype.__modules__;"function"==typeof t&&n.indexOf(t)<0&&n.push(t)}},{key:"use",value:function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)}}]),e}();Object.keys(ur).forEach((function(e){Object.keys(ur[e]).forEach((function(t){fr.prototype[t]=ur[e][t]}))})),fr.use([function(e){var t=e.swiper,n=e.on,r=e.emit,i=_n(),a=null,o=null,s=function(){t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},l=function(){t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",(function(){t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(a=new ResizeObserver((function(e){o=i.requestAnimationFrame((function(){var n=t.width,r=t.height,i=n,a=r;e.forEach((function(e){var n=e.contentBoxSize,r=e.contentRect,o=e.target;o&&o!==t.el||(i=r?r.width:(n[0]||n).inlineSize,a=r?r.height:(n[0]||n).blockSize)})),i===n&&a===r||s()}))}))).observe(t.el):(i.addEventListener("resize",s),i.addEventListener("orientationchange",l))})),n("destroy",(function(){o&&i.cancelAnimationFrame(o),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null),i.removeEventListener("resize",s),i.removeEventListener("orientationchange",l)}))},function(e){var t=e.swiper,n=e.extendParams,r=e.on,i=e.emit,a=[],o=_n(),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new(o.MutationObserver||o.WebkitMutationObserver)((function(e){if(1!==e.length){var t=function(){i("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(t):o.setTimeout(t,0)}else i("observerUpdate",e[0])}));n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),a.push(n)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",(function(){if(t.params.observer){if(t.params.observeParents)for(var e=t.$el.parents(),n=0;n<e.length;n+=1)s(e[n]);s(t.$el[0],{childList:t.params.observeSlideChildren}),s(t.$wrapperEl[0],{attributes:!1})}})),r("destroy",(function(){a.forEach((function(e){e.disconnect()})),a.splice(0,a.length)}))}]);var dr=fr;function pr(e){var t,n=e.swiper,r=e.extendParams,i=e.on,a=e.emit,o=_n();r({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),n.mousewheel={enabled:!1};var s,l=zn(),u=[];function c(){n.enabled&&(n.mouseEntered=!0)}function f(){n.enabled&&(n.mouseEntered=!1)}function d(e){return!(n.params.mousewheel.thresholdDelta&&e.delta<n.params.mousewheel.thresholdDelta||n.params.mousewheel.thresholdTime&&zn()-l<n.params.mousewheel.thresholdTime||!(e.delta>=6&&zn()-l<60)&&(e.direction<0?n.isEnd&&!n.params.loop||n.animating||(n.slideNext(),a("scroll",e.raw)):n.isBeginning&&!n.params.loop||n.animating||(n.slidePrev(),a("scroll",e.raw)),l=(new o.Date).getTime(),1))}function p(e){var r=e;if(n.enabled){var i=n.params.mousewheel;n.params.cssMode&&r.preventDefault();var o=n.$el;if("container"!==n.params.mousewheel.eventsTarget&&(o=Bn(n.params.mousewheel.eventsTarget)),!n.mouseEntered&&!o[0].contains(r.target)&&!i.releaseOnEdges)return!0;r.originalEvent&&(r=r.originalEvent);var l=0,c=n.rtlTranslate?-1:1,f=function(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(1===e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}(r);if(i.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;l=-f.pixelX*c}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;l=-f.pixelY}else l=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*c:-f.pixelY;if(0===l)return!0;i.invert&&(l=-l);var p=n.getTranslate()+l*i.sensitivity;if(p>=n.minTranslate()&&(p=n.minTranslate()),p<=n.maxTranslate()&&(p=n.maxTranslate()),(!!n.params.loop||!(p===n.minTranslate()||p===n.maxTranslate()))&&n.params.nested&&r.stopPropagation(),n.params.freeMode&&n.params.freeMode.enabled){var h={time:zn(),delta:Math.abs(l),direction:Math.sign(l)},v=s&&h.time<s.time+500&&h.delta<=s.delta&&h.direction===s.direction;if(!v){s=void 0,n.params.loop&&n.loopFix();var m=n.getTranslate()+l*i.sensitivity,y=n.isBeginning,g=n.isEnd;if(m>=n.minTranslate()&&(m=n.minTranslate()),m<=n.maxTranslate()&&(m=n.maxTranslate()),n.setTransition(0),n.setTranslate(m),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!y&&n.isBeginning||!g&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeMode.sticky){clearTimeout(t),t=void 0,u.length>=15&&u.shift();var b=u.length?u[u.length-1]:void 0,w=u[0];if(u.push(h),b&&(h.delta>b.delta||h.direction!==b.direction))u.splice(0);else if(u.length>=15&&h.time-w.time<500&&w.delta-h.delta>=1&&h.delta<=6){var x=l>0?.8:.2;s=h,u.splice(0),t=Un((function(){n.slideToClosest(n.params.speed,!0,void 0,x)}),0)}t||(t=Un((function(){s=h,u.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)}),500))}if(v||a("scroll",r),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),m===n.minTranslate()||m===n.maxTranslate())return!0}}else{var E={time:zn(),delta:Math.abs(l),direction:Math.sign(l),raw:e};u.length>=2&&u.shift();var S=u.length?u[u.length-1]:void 0;if(u.push(E),S?(E.direction!==S.direction||E.delta>S.delta||E.time>S.time+150)&&d(E):d(E),function(e){var t=n.params.mousewheel;if(e.direction<0){if(n.isEnd&&!n.params.loop&&t.releaseOnEdges)return!0}else if(n.isBeginning&&!n.params.loop&&t.releaseOnEdges)return!0;return!1}(E))return!0}return r.preventDefault?r.preventDefault():r.returnValue=!1,!1}}function h(e){var t=n.$el;"container"!==n.params.mousewheel.eventsTarget&&(t=Bn(n.params.mousewheel.eventsTarget)),t[e]("mouseenter",c),t[e]("mouseleave",f),t[e]("wheel",p)}function v(){return n.params.cssMode?(n.wrapperEl.removeEventListener("wheel",p),!0):!n.mousewheel.enabled&&(h("on"),n.mousewheel.enabled=!0,!0)}function m(){return n.params.cssMode?(n.wrapperEl.addEventListener(event,p),!0):!!n.mousewheel.enabled&&(h("off"),n.mousewheel.enabled=!1,!0)}i("init",(function(){!n.params.mousewheel.enabled&&n.params.cssMode&&m(),n.params.mousewheel.enabled&&v()})),i("destroy",(function(){n.params.cssMode&&v(),n.mousewheel.enabled&&m()})),Object.assign(n.mousewheel,{enable:v,disable:m})}function hr(e){var t=e.swiper,n=e.extendParams,r=e.on,i=e.emit;function a(e){var n;return e&&(n=Bn(e),t.params.uniqueNavElements&&"string"==typeof e&&n.length>1&&1===t.$el.find(e).length&&(n=t.$el.find(e))),n}function o(e,n){var r=t.params.navigation;e&&e.length>0&&(e[n?"addClass":"removeClass"](r.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=n),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](r.lockClass))}function s(){if(!t.params.loop){var e=t.navigation,n=e.$nextEl;o(e.$prevEl,t.isBeginning&&!t.params.rewind),o(n,t.isEnd&&!t.params.rewind)}}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function u(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){var e=t.params.navigation;if(t.params.navigation=function(e,t,n,r){var i=kn();return e.params.createElements&&Object.keys(r).forEach((function(a){if(!n[a]&&!0===n.auto){var o=e.$el.children(".".concat(r[a]))[0];o||((o=i.createElement("div")).className=r[a],e.$el.append(o)),n[a]=o,t[a]=o}})),n}(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),e.nextEl||e.prevEl){var n=a(e.nextEl),r=a(e.prevEl);n&&n.length>0&&n.on("click",u),r&&r.length>0&&r.on("click",l),Object.assign(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:r,prevEl:r&&r[0]}),t.enabled||(n&&n.addClass(e.lockClass),r&&r.addClass(e.lockClass))}}function f(){var e=t.navigation,n=e.$nextEl,r=e.$prevEl;n&&n.length&&(n.off("click",u),n.removeClass(t.params.navigation.disabledClass)),r&&r.length&&(r.off("click",l),r.removeClass(t.params.navigation.disabledClass))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},r("init",(function(){!1===t.params.navigation.enabled?d():(c(),s())})),r("toEdge fromEdge lock unlock",(function(){s()})),r("destroy",(function(){f()})),r("enable disable",(function(){var e=t.navigation,n=e.$nextEl,r=e.$prevEl;n&&n[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),r&&r[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),r("click",(function(e,n){var r=t.navigation,a=r.$nextEl,o=r.$prevEl,s=n.target;if(t.params.navigation.hideOnClick&&!Bn(s).is(o)&&!Bn(s).is(a)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;var l;a?l=a.hasClass(t.params.navigation.hiddenClass):o&&(l=o.hasClass(t.params.navigation.hiddenClass)),i(!0===l?"navigationShow":"navigationHide"),a&&a.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}}));var d=function(){t.$el.addClass(t.params.navigation.navigationDisabledClass),f()};Object.assign(t.navigation,{enable:function(){t.$el.removeClass(t.params.navigation.navigationDisabledClass),c(),s()},disable:d,update:s,init:c,destroy:f})}function vr(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function mr(e,t){var n=["__proto__","constructor","prototype"];Object.keys(t).filter((function(e){return n.indexOf(e)<0})).forEach((function(n){void 0===e[n]?e[n]=t[n]:vr(t[n])&&vr(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:mr(e[n],t[n]):e[n]=t[n]}))}function yr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.pagination&&void 0===e.pagination.el}function br(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.scrollbar&&void 0===e.scrollbar.el}function wr(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(" ").map((function(e){return e.trim()})).filter((function(e){return!!e})),t=[];return e.forEach((function(e){t.indexOf(e)<0&&t.push(e)})),t.join(" ")}var xr=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"],Er=function(e,t){var n=t.slidesPerView;if(t.breakpoints){var r=dr.prototype.getBreakpoint(t.breakpoints),i=r in t.breakpoints?t.breakpoints[r]:void 0;i&&i.slidesPerView&&(n=i.slidesPerView)}var a=Math.ceil(parseFloat(t.loopedSlides||n,10));return(a+=t.loopAdditionalSlides)>e.length&&t.loopedSlidesLimit&&(a=e.length),a};function Sr(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function kr(t){var n=[];return e.Children.toArray(t).forEach((function(e){Sr(e)?n.push(e):e.props&&e.props.children&&kr(e.props.children).forEach((function(e){return n.push(e)}))})),n}function Cr(t,n){return"undefined"==typeof window?(0,e.useEffect)(t,n):(0,e.useLayoutEffect)(t,n)}var _r=(0,e.createContext)(null),Tr=(0,e.createContext)(null),Pr=["className","tag","wrapperTag","children","onSwiper"];function Or(){return(Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var jr=(0,e.forwardRef)((function(t,n){var r=void 0===t?{}:t,i=r.className,a=r.tag,o=void 0===a?"div":a,s=r.wrapperTag,l=void 0===s?"div":s,c=r.children,d=r.onSwiper,p=wn(r,Pr),h=!1,v=u((0,e.useState)("swiper"),2),m=v[0],y=v[1],g=u((0,e.useState)(null),2),b=g[0],w=g[1],x=u((0,e.useState)(!1),2),E=x[0],S=x[1],k=(0,e.useRef)(!1),C=(0,e.useRef)(null),_=(0,e.useRef)(null),T=(0,e.useRef)(null),P=(0,e.useRef)(null),O=(0,e.useRef)(null),j=(0,e.useRef)(null),A=(0,e.useRef)(null),I=(0,e.useRef)(null),R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={on:{}},r={},i={};mr(n,dr.defaults),mr(n,dr.extendedDefaults),n._emitClasses=!0,n.init=!1;var a={},o=xr.map((function(e){return e.replace(/_/,"")})),s=Object.assign({},e);return Object.keys(s).forEach((function(s){void 0!==e[s]&&(o.indexOf(s)>=0?vr(e[s])?(n[s]={},i[s]={},mr(n[s],e[s]),mr(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):0===s.search(/on[A-Z]/)&&"function"==typeof e[s]?t?r["".concat(s[2].toLowerCase()).concat(s.substr(3))]=e[s]:n.on["".concat(s[2].toLowerCase()).concat(s.substr(3))]=e[s]:a[s]=e[s])})),["navigation","pagination","scrollbar"].forEach((function(e){!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]})),{params:n,passedParams:i,rest:a,events:r}}(p),L=R.params,M=R.passedParams,D=R.rest,F=R.events,B=function(t){var n=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(t).forEach((function(e){if(Sr(e))n.push(e);else if(e.props&&e.props.slot&&r[e.props.slot])r[e.props.slot].push(e);else if(e.props&&e.props.children){var t=kr(e.props.children);t.length>0?t.forEach((function(e){return n.push(e)})):r["container-end"].push(e)}else r["container-end"].push(e)})),{slides:n,slots:r}}(c),U=B.slides,z=B.slots,V=function(){S(!E)};Object.assign(L.on,{_containerClasses:function(e,t){y(t)}});var H=function(){if(Object.assign(L.on,F),h=!0,_.current=new dr(L),_.current.loopCreate=function(){},_.current.loopDestroy=function(){},L.loop&&(_.current.loopedSlides=Er(U,L)),_.current.virtual&&_.current.params.virtual.enabled){_.current.virtual.slides=U;var e={cache:!1,slides:U,renderExternal:w,renderExternalUpdate:!1};mr(_.current.params.virtual,e),mr(_.current.originalParams.virtual,e)}};return C.current||H(),_.current&&_.current.on("_beforeBreakpoint",V),(0,e.useEffect)((function(){return function(){_.current&&_.current.off("_beforeBreakpoint",V)}})),(0,e.useEffect)((function(){!k.current&&_.current&&(_.current.emitSlidesClasses(),k.current=!0)})),Cr((function(){if(n&&(n.current=C.current),C.current)return _.current.destroyed&&H(),function(e,t){var n=e.el,r=e.nextEl,i=e.prevEl,a=e.paginationEl,o=e.scrollbarEl,s=e.swiper;yr(t)&&r&&i&&(s.params.navigation.nextEl=r,s.originalParams.navigation.nextEl=r,s.params.navigation.prevEl=i,s.originalParams.navigation.prevEl=i),gr(t)&&a&&(s.params.pagination.el=a,s.originalParams.pagination.el=a),br(t)&&o&&(s.params.scrollbar.el=o,s.originalParams.scrollbar.el=o),s.init(n)}({el:C.current,nextEl:O.current,prevEl:j.current,paginationEl:A.current,scrollbarEl:I.current,swiper:_.current},L),d&&d(_.current),function(){_.current&&!_.current.destroyed&&_.current.destroy(!0,!1)}}),[]),Cr((function(){!h&&F&&_.current&&Object.keys(F).forEach((function(e){_.current.on(e,F[e])}));var e=function(e,t,n,r,i){var a=[];if(!t)return a;var o=function(e){a.indexOf(e)<0&&a.push(e)};if(n&&r){var s=r.map(i),l=n.map(i);s.join("")!==l.join("")&&o("children"),r.length!==n.length&&o("children")}return xr.filter((function(e){return"_"===e[0]})).map((function(e){return e.replace(/_/,"")})).forEach((function(n){if(n in e&&n in t)if(vr(e[n])&&vr(t[n])){var r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?o(n):(r.forEach((function(r){e[n][r]!==t[n][r]&&o(n)})),i.forEach((function(r){e[n][r]!==t[n][r]&&o(n)})))}else e[n]!==t[n]&&o(n)})),a}(M,T.current,U,P.current,(function(e){return e.key}));return T.current=M,P.current=U,e.length&&_.current&&!_.current.destroyed&&function(e){var t,n,r,i,a,o=e.swiper,s=e.slides,l=e.passedParams,u=e.changedParams,c=e.nextEl,f=e.prevEl,d=e.scrollbarEl,p=e.paginationEl,h=u.filter((function(e){return"children"!==e&&"direction"!==e})),v=o.params,m=o.pagination,y=o.navigation,g=o.scrollbar,b=o.virtual,w=o.thumbs;u.includes("thumbs")&&l.thumbs&&l.thumbs.swiper&&v.thumbs&&!v.thumbs.swiper&&(t=!0),u.includes("controller")&&l.controller&&l.controller.control&&v.controller&&!v.controller.control&&(n=!0),u.includes("pagination")&&l.pagination&&(l.pagination.el||p)&&(v.pagination||!1===v.pagination)&&m&&!m.el&&(r=!0),u.includes("scrollbar")&&l.scrollbar&&(l.scrollbar.el||d)&&(v.scrollbar||!1===v.scrollbar)&&g&&!g.el&&(i=!0),u.includes("navigation")&&l.navigation&&(l.navigation.prevEl||f)&&(l.navigation.nextEl||c)&&(v.navigation||!1===v.navigation)&&y&&!y.prevEl&&!y.nextEl&&(a=!0),h.forEach((function(e){if(vr(v[e])&&vr(l[e]))mr(v[e],l[e]);else{var t=l[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?v[e]=l[e]:!1===t&&o[n=e]&&(o[n].destroy(),"navigation"===n?(v[n].prevEl=void 0,v[n].nextEl=void 0,o[n].prevEl=void 0,o[n].nextEl=void 0):(v[n].el=void 0,o[n].el=void 0))}var n})),h.includes("controller")&&!n&&o.controller&&o.controller.control&&v.controller&&v.controller.control&&(o.controller.control=v.controller.control),u.includes("children")&&s&&b&&v.virtual.enabled?(b.slides=s,b.update(!0)):u.includes("children")&&o.lazy&&o.params.lazy.enabled&&o.lazy.load(),t&&w.init()&&w.update(!0),n&&(o.controller.control=v.controller.control),r&&(p&&(v.pagination.el=p),m.init(),m.render(),m.update()),i&&(d&&(v.scrollbar.el=d),g.init(),g.updateSize(),g.setTranslate()),a&&(c&&(v.navigation.nextEl=c),f&&(v.navigation.prevEl=f),y.init(),y.update()),u.includes("allowSlideNext")&&(o.allowSlideNext=l.allowSlideNext),u.includes("allowSlidePrev")&&(o.allowSlidePrev=l.allowSlidePrev),u.includes("direction")&&o.changeDirection(l.direction,!1),o.update()}({swiper:_.current,slides:U,passedParams:M,changedParams:e,nextEl:O.current,prevEl:j.current,scrollbarEl:I.current,paginationEl:A.current}),function(){F&&_.current&&Object.keys(F).forEach((function(e){_.current.off(e,F[e])}))}})),Cr((function(){!function(e){!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())}(_.current)}),[b]),e.createElement(o,Or({ref:C,className:wr("".concat(m).concat(i?" ".concat(i):""))},D),e.createElement(Tr.Provider,{value:_.current},z["container-start"],e.createElement(l,{className:"swiper-wrapper"},z["wrapper-start"],L.virtual?function(t,n,r){if(!r)return null;var i=t.isHorizontal()?f({},t.rtlTranslate?"right":"left","".concat(r.offset,"px")):{top:"".concat(r.offset,"px")};return n.filter((function(e,t){return t>=r.from&&t<=r.to})).map((function(n){return e.cloneElement(n,{swiper:t,style:i})}))}(_.current,U,b):!L.loop||_.current&&_.current.destroyed?U.map((function(t){return e.cloneElement(t,{swiper:_.current})})):function(t,n,r){var i=n.map((function(n,r){return e.cloneElement(n,{swiper:t,"data-swiper-slide-index":r})}));function a(t,n,i){return e.cloneElement(t,{key:"".concat(t.key,"-duplicate-").concat(n,"-").concat(i),className:"".concat(t.props.className||""," ").concat(r.slideDuplicateClass)})}if(r.loopFillGroupWithBlank){var o=r.slidesPerGroup-i.length%r.slidesPerGroup;if(o!==r.slidesPerGroup)for(var s=0;s<o;s+=1){var l=e.createElement("div",{className:"".concat(r.slideClass," ").concat(r.slideBlankClass)});i.push(l)}}"auto"!==r.slidesPerView||r.loopedSlides||(r.loopedSlides=i.length);for(var u=Er(i,r),c=[],f=[],d=0;d<u;d+=1){var p=d-Math.floor(d/i.length)*i.length;f.push(a(i[p],d,"append")),c.unshift(a(i[i.length-p-1],d,"prepend"))}return t&&(t.loopedSlides=u),[].concat(c,N(i),f)}(_.current,U,L),z["wrapper-end"]),yr(L)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:j,className:"swiper-button-prev"}),e.createElement("div",{ref:O,className:"swiper-button-next"})),br(L)&&e.createElement("div",{ref:I,className:"swiper-scrollbar"}),gr(L)&&e.createElement("div",{ref:A,className:"swiper-pagination"}),z["container-end"]))}));jr.displayName="Swiper";var Ar=["tag","children","className","swiper","zoom","virtualIndex"];function Ir(){return(Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Nr=(0,e.forwardRef)((function(t,n){var r=void 0===t?{}:t,i=r.tag,a=void 0===i?"div":i,o=r.children,s=r.className,l=void 0===s?"":s,c=r.swiper,f=r.zoom,d=r.virtualIndex,p=wn(r,Ar),h=(0,e.useRef)(null),v=u((0,e.useState)("swiper-slide"),2),m=v[0],y=v[1];function g(e,t,n){t===h.current&&y(n)}Cr((function(){if(n&&(n.current=h.current),h.current&&c){if(!c.destroyed)return c.on("_slideClass",g),function(){c&&c.off("_slideClass",g)};"swiper-slide"!==m&&y("swiper-slide")}})),Cr((function(){c&&h.current&&!c.destroyed&&y(c.getSlideClasses(h.current))}),[c]);var b={isActive:m.indexOf("swiper-slide-active")>=0||m.indexOf("swiper-slide-duplicate-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isDuplicate:m.indexOf("swiper-slide-duplicate")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0||m.indexOf("swiper-slide-duplicate-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0||m.indexOf("swiper-slide-duplicate-next")>=0},w=function(){return"function"==typeof o?o(b):o};return e.createElement(a,Ir({ref:h,className:wr("".concat(m).concat(l?" ".concat(l):"")),"data-swiper-slide-index":d},p),e.createElement(_r.Provider,{value:b},f?e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof f?f:void 0},w()):w()))}));Nr.displayName="SwiperSlide";var Rr=function(){return(0,x.jsxs)("div",{className:"HomeScreen_welcome__aApRq",children:[(0,x.jsx)("h1",{children:lf("Welcome to MakeCode Code Evaluation!")}),(0,x.jsxs)("p",{children:[lf("This tool is designed to help you evaluate student projects using an automated checklist.")," ",(0,x.jsx)(en,{target:"_blank",href:C.LearnMoreLink,children:lf("Learn More.")})]})]})},Lr=function(e){var t=e.title,n=e.className,r=e.icon,i=e.onClick;return(0,x.jsx)("div",{className:Yt,children:(0,x.jsx)(ft,{className:S(Kt,n),title:t,onClick:i,children:(0,x.jsxs)("div",{className:Qt,children:[r&&(0,x.jsx)("div",{className:"HomeScreen_cardIcon__jvgov",children:(0,x.jsx)("i",{className:r})}),(0,x.jsx)("div",{className:Jt,children:(0,x.jsx)("h3",{children:t})})]})})})},Mr=function(e){var t=e.delay;return(0,x.jsx)("div",{className:Yt,children:(0,x.jsx)(ft,{className:S(Kt,Zt,t?"HomeScreen_loadingGradientDelay__gWkBN":void 0),title:"",onClick:function(){},children:(0,x.jsx)("div",{className:Qt,children:(0,x.jsx)("div",{className:Zt})})})})},Dr=function(e){var t=e.cardTitle,n=e.imageUrl,r=e.checklistUrl,a=function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent(g.LoadChecklist,{checklistUrl:r}),e.next=3,gn(r);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,x.jsx)("div",{className:Yt,children:(0,x.jsx)(ft,{className:S(Kt,"HomeScreen_checklistResource__LQarV"),title:t,onClick:a,children:(0,x.jsx)("div",{className:S(Qt),style:{backgroundImage:'url("'.concat(n,'")'),backgroundSize:"cover"},children:(0,x.jsx)("div",{className:S(Jt,"HomeScreen_checklistResourceCardTitle__3CP1f"),children:(0,x.jsx)("h3",{children:t})})})})})},Fr=function(t){var n=t.children,r=e.Children.toArray(n);return(0,x.jsx)(jr,{spaceBetween:0,slidesPerView:"auto",allowTouchMove:!0,slidesOffsetBefore:32,navigation:!0,mousewheel:{forceToAxis:!0},modules:[hr,pr],className:"HomeScreen_swiperCarousel__fo58O",children:r.map((function(e,t){return(0,x.jsx)(Nr,{className:"HomeScreen_swiperSlide__dNUEM",children:e},t)}))})},Br=function(){var e=function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent(g.NewChecklist),e.next=3,mn();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,x.jsxs)("div",{className:Gt,children:[(0,x.jsx)("div",{className:Xt,children:(0,x.jsx)("h2",{children:lf("Get Started")})}),(0,x.jsxs)(Fr,{children:[(0,x.jsx)(Lr,{title:m.NewChecklist,icon:"fas fa-plus-circle",className:"HomeScreen_newChecklist__i-DgD",onClick:e}),(0,x.jsx)(Lr,{title:m.ImportChecklist,icon:"fas fa-file-upload",className:"HomeScreen_importChecklist__GLc4v",onClick:function(){pxt.tickEvent(g.ImportChecklist),mt({modal:"import-checklist"})}})]})]})},Ur=function(t){var n,r=t.title,a=t.cardsUrl,s=u((0,e.useState)(),2),l=s[0],c=s[1],f=u((0,e.useState)(),2),d=f[0];return function(t,n,r){var a=u((0,e.useState)(),2),s=a[0],l=a[1];(0,e.useEffect)((function(){s||(l(!0),n("loading"),Promise.resolve().then(o(i().mark((function e(){var a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ze(t);case 2:(a=e.sent)?(n("success"),r(a)):n("error");case 4:case"end":return e.stop()}}),e)})))).catch((function(){n("error")})))}),[s])}(a,f[1],c),null!=l&&null!==(n=l.cards)&&void 0!==n&&n.length?(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:Gt,children:[(0,x.jsx)("div",{className:Xt,children:(0,x.jsx)("h2",{children:r})}),("loading"===d||"error"===d)&&(0,x.jsxs)(Fr,{children:[(0,x.jsx)(Mr,{}),(0,x.jsx)(Mr,{delay:!0})]}),"success"===d&&(0,x.jsx)(Fr,{children:null==l?void 0:l.cards.map((function(e,t){return function(e){return"object"==typeof e&&"checklist-resource"===e.cardType}(e)?(0,x.jsx)(Dr,p({},e),t):(0,x.jsx)(Mr,{})}))})]})}):null},zr=function(){var t=(0,e.useContext)(He).state.targetConfig,n=null==t?void 0:t.teachertool,r=null==n?void 0:n.carousels;return(0,x.jsx)(x.Fragment,{children:null==r?void 0:r.map((function(e,t){return(0,x.jsx)(Ur,{title:e.title,cardsUrl:e.cardsUrl},t)}))})},Vr=function(){return(0,x.jsxs)("div",{className:"HomeScreen_page__UD33z",children:[(0,x.jsx)(Rr,{}),(0,x.jsx)(Br,{}),(0,x.jsx)(zr,{})]})},Hr="EvalResultDisplay_control-button__V6Crg",Wr="EvalResultDisplay_result-toolbar-button__KnBiu",$r="EvalResultDisplay_separator__ImacW",qr="EvalResultDisplay_notes-container__UmXK9",Gr="EvalResultDisplay_checklist-name__iNQwC",Xr=n(3295);function Yr(e,t){(0,Ve().dispatch)(function(e,t){return{type:"SET_EVAL_RESULT",criteriaInstanceId:e,result:t}}(e,t))}function Kr(e,t){var n=Ve(),r=n.state;n.dispatch,Yr(e,p(p({},r.evalResults[e]),{},{result:t}))}var Qr,Jr=function(t){var n,r=t.id,i=t.className,a=t.ariaHidden,o=t.ariaLabel,s=t.role,l=t.items,c=t.tabIndex,f=t.selectedId,d=t.onItemSelected,h=u(e.useState(!1),2),v=h[0],m=h[1],y=S("common-dropdown",i),g=l.find((function(e){return e.id===f}))||l[0];return(0,x.jsxs)("div",{className:y,ref:function(e){e&&(n=e)},onBlur:function(e){n&&v&&!n.contains(e.relatedTarget)&&m(!1)},children:[(0,x.jsx)(ft,p(p({},g),{},{id:r,tabIndex:c,rightIcon:v?"fas fa-chevron-up":"fas fa-chevron-down",role:s,className:S("common-dropdown-button",v&&"expanded",g.className),onClick:function(){m(!v)},onKeydown:function(e){var t=l.indexOf(g);"ArrowDown"===e.key?t<l.length-1&&(d(l[t+1].id),e.preventDefault(),e.stopPropagation()):"ArrowUp"===e.key?t>0&&(d(l[t-1].id),e.preventDefault(),e.stopPropagation()):"Enter"===e.key&&(m(!0),e.preventDefault(),e.stopPropagation())},ariaHasPopup:"listbox",ariaExpanded:v,ariaLabel:o,ariaHidden:a})),v&&(0,x.jsx)(dt,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:f,"aria-labelledby":r,useUpAndDownArrowKeys:!0,onItemReceivedFocus:function(e){e.id&&l.some((function(t){return t.id===e.id}))&&d(e.id)},children:(0,x.jsx)("ul",{role:"presentation",children:l.map((function(e){return(0,x.jsx)("li",{role:"presentation",children:(0,x.jsx)(ft,p(p({},e),{},{className:S("common-dropdown-item",e.className),onClick:function(){m(!1),d(e.id)},ariaSelected:e.id===f,role:"option"}))},e.id)}))})})]})},Zr={notevaluated:fn.CompleteWithNoResult,fail:fn.Fail,pass:fn.Pass,notstarted:fn.NotStarted},ei=(f(Qr={},fn.CompleteWithNoResult,"notevaluated"),f(Qr,fn.Fail,"fail"),f(Qr,fn.Pass,"pass"),f(Qr,fn.NotStarted,"notstarted"),Qr),ti=[{id:"notevaluated",title:lf("not applicable"),label:lf("N/A")},{id:"fail",title:lf("needs work"),label:lf("Needs work")},{id:"pass",title:lf("looks good!"),label:lf("Looks good!")},{id:"notstarted",title:lf("not started"),label:lf("Not started")}],ni=function(t){var n=t.result,r=t.criteriaId,i=(0,e.useMemo)((function(){return ei[n]}),[n]);return(0,x.jsx)(Jr,{id:"project-eval-result-dropdown",selectedId:i,className:S("rounded",i),items:ti,onItemSelected:function(e){return Kr(r,Zr[e])}})},ri=function(t){var n=t.id,r=t.className,i=t.role,a=t.ariaHidden,o=t.ariaLabel,s=t.initialValue,l=t.label,c=t.title,f=t.placeholder,d=t.autoComplete,p=t.cols,h=t.rows,v=t.disabled,m=t.minLength,y=t.readOnly,g=t.resize,b=t.wrap,w=t.autoResize,E=t.onChange,k=t.onEnterKey,C=u(e.useState(s||""),2),_=C[0],T=C[1],P=e.useRef(null),O=e.useRef(0),j=function(){P.current&&(P.current.style.height="1px",P.current.style.height="".concat(P.current.scrollHeight,"px"))};return e.useEffect((function(){T(s),w&&P.current&&j()}),[s]),e.useEffect((function(){if(!w)return function(){};var e=new ResizeObserver((function(e){var t=e[0].contentRect.width;O.current!=t&&(requestAnimationFrame((function(){return j()})),O.current=t)}));return P.current&&e.observe(P.current),function(){e.disconnect()}}),[w]),(0,x.jsxs)("div",{className:S("common-textarea-wrapper",v&&"disabled",g&&"resize-".concat(g),r),children:[l&&(0,x.jsx)("label",{className:"common-textarea-label",children:l}),(0,x.jsx)("div",{className:"common-textarea-group",children:(0,x.jsx)("textarea",{id:n,className:"common-textarea",title:c,role:i||"textbox",tabIndex:v?-1:0,"aria-label":o,"aria-hidden":a,placeholder:f,value:_||"",cols:p,rows:h,minLength:m,wrap:b,readOnly:!!y,ref:P,onChange:function(e){var t=e.target.value;y||_===t||T(t),E&&E(t),w&&P.current&&j()},onKeyDown:function(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||k&&(e.preventDefault(),k(_))},autoComplete:d?"":"off",autoCorrect:d?"":"off",autoCapitalize:d?"":"off",spellCheck:d,disabled:v})})]})},ii=["intervalMs"],ai=function(t){var n=t.intervalMs,r=void 0===n?500:n,i=wn(t,ii),a=(0,e.useRef)(void 0),o=(0,e.useRef)(""),s=function(){i.onChange&&i.onChange(o.current)};return(0,e.useEffect)((function(){return function(){a.current&&(clearTimeout(a.current),s())}}),[]),(0,x.jsx)(ri,p(p({},i),{},{onChange:function(e){o.current=e,a.current&&clearTimeout(a.current),a.current=setTimeout(s,r)}}))},oi="ThreeDotsLoadingDisplay_circle__7P1A0",si=function(e){var t=e.className;return(0,x.jsxs)("div",{className:S(t,"ThreeDotsLoadingDisplay_loading-ellipsis__0uvx0","no-print"),"aria-label":m.Loading,children:[(0,x.jsx)("i",{className:S("far fa-circle",oi,"ThreeDotsLoadingDisplay_circle-1__b0XeZ"),"aria-hidden":!0}),(0,x.jsx)("i",{className:S("far fa-circle",oi,"ThreeDotsLoadingDisplay_circle-2__ic0v9"),"aria-hidden":!0}),(0,x.jsx)("i",{className:S("far fa-circle",oi,"ThreeDotsLoadingDisplay_circle-3__UuuMW"),"aria-hidden":!0})]})},li="CriteriaFeedback_feedback-button__75Re4";function ui(e,t){(0,Ve().dispatch)(function(e,t){return{type:"SET_USER_FEEDBACK",criteriaInstanceId:e,userFeedback:t}}(e,t))}var ci=function(t){var n=t.className,r=t.criteriaInstanceId,i=(0,e.useContext)(He).state,a=(0,e.useMemo)((function(){return nn(i,r)}),[i,r]),o=null==a?void 0:a.userFeedback,s=null==a?void 0:a.catalogCriteriaId,l=(0,e.useCallback)((function(e){s&&(ui(r,e?"helpful":"not-helpful"),pxt.tickEvent(g.CriteriaFeedback,{criteriaId:s,helpful:e+""}))}),[s]),u="helpful"===o?"fas fa-thumbs-up":"far fa-thumbs-up",c="not-helpful"===o?"fas fa-thumbs-down":"far fa-thumbs-down";return(0,x.jsxs)("div",{className:S("CriteriaFeedback_criteria-feedback-container__SvXWm",n),children:[(0,x.jsx)("span",{className:"CriteriaFeedback_label__W9t26",children:o?lf("Thanks for your feedback!"):lf("Was this response helpful?")}),(0,x.jsxs)("span",{className:"CriteriaFeedback_rate-buttons__aoQ-H",children:[(0,x.jsx)(ft,{className:li,title:lf("Helpful"),onClick:function(){return l(!0)},rightIcon:u,disabled:!!o}),(0,x.jsx)(ft,{className:li,title:lf("Unhelpful"),onClick:function(){return l(!1)},rightIcon:c,disabled:!!o})]})]})},fi={"criteria-instance-display":"CriteriaInstanceDisplay_criteria-instance-display__a+aVo","segment-container":"CriteriaInstanceDisplay_segment-container__eKe2z",segment:"CriteriaInstanceDisplay_segment__KFJyQ",long:"CriteriaInstanceDisplay_long__iOAmQ","block-input-btn":"CriteriaInstanceDisplay_block-input-btn__OWvdF",error:"CriteriaInstanceDisplay_error__Z-71F","inline-input-wrapper":"CriteriaInstanceDisplay_inline-input-wrapper__cCZt5","inline-input":"CriteriaInstanceDisplay_inline-input__3wCk8","string-input":"CriteriaInstanceDisplay_string-input__oWDDa","number-input":"CriteriaInstanceDisplay_number-input__xo7jt","criteria-description":"CriteriaInstanceDisplay_criteria-description__cfngZ","for-print":"CriteriaInstanceDisplay_for-print__hKgmF"};function di(e,t,n){var r,i,a=Ve().state;re("Setting parameter '".concat(t,"' to '").concat(n,"' for criteria instance '").concat(e,"'"));var o=nn(a,e);if(o){var s=null===(r=o.params)||void 0===r?void 0:r.find((function(e){return e.name===t}));if(s){var l=p(p({},s),{},{value:n}),u=p(p({},o),{},{params:null===(i=o.params)||void 0===i?void 0:i.map((function(e){return e.name===t?l:e}))}),c=a.checklist.criteria.map((function(t){return t.instanceId===e?u:t}));pn(p(p({},a.checklist),{},{criteria:c})),Kr(e,fn.NotStarted)}else ne(Z.missingParameter,"Unable to find parameter with name '".concat(t,"' in criteria instance '").concat(e,"'"))}else ne(Z.missingCriteriaInstance,"Unable to find criteria instance with id '".concat(e,"'"))}var pi=function(t){var n,r,i=t.id,a=t.className,o=t.inputClassName,s=t.groupClassName,l=t.role,c=t.ariaHidden,f=t.ariaLabel,d=t.initialValue,p=t.label,h=t.title,v=t.placeholder,m=t.icon,y=t.iconTitle,g=t.disabled,b=t.type,w=t.readOnly,E=t.autoComplete,k=t.selectOnClick,C=t.onChange,_=t.onEnterKey,T=t.onIconClick,P=t.onFocus,O=t.onBlur,j=t.onOptionSelected,A=t.handleInputRef,I=t.preserveValueOnBlur,N=t.options,R=u(e.useState(void 0),2),L=R[0],M=R[1],D=u(e.useState(!1),2),F=D[0],B=D[1],U=function(e){return e&&-1!=Object.values(N).indexOf(e)?"dropdown-item-".concat(e):void 0};return(0,x.jsxs)("div",{className:S("common-input-wrapper",g&&"disabled",a),onBlur:function(e){F&&!r.contains(e.relatedTarget)&&B(!1)},ref:function(e){e&&(r=e)},children:[p&&(0,x.jsx)("label",{className:"common-input-label",htmlFor:i,children:p}),(0,x.jsxs)("div",{className:S("common-input-group",s),children:[(0,x.jsx)("input",{id:i,className:S("common-input",m&&"has-icon",o),title:h,role:l||"textbox",tabIndex:g?-1:0,"aria-label":f,"aria-hidden":c,type:b||"text",placeholder:v,value:void 0!==L?L:d||"",readOnly:!!w,onClick:function(e){k&&e.target.select(),N&&!F&&B(!0)},onChange:function(e){var t=e.target.value;w||L===t||M(t),C&&C(t)},onKeyDown:function(e){var n="number"==typeof e.which?e.which:e.keyCode;if(13===n||t.treatSpaceAsEnter&&32===n)_&&(e.preventDefault(),_(L));else if(N&&F&&"ArrowDown"===e.key){var r;null===(r=document.getElementById(U(Object.values(N)[0])))||void 0===r||r.focus(),e.preventDefault(),e.stopPropagation()}else if(N&&F&&"ArrowUp"===e.key){var i,a=Object.values(N);null===(i=document.getElementById(U(a[a.length-1])))||void 0===i||i.focus(),e.preventDefault(),e.stopPropagation()}},onBlur:function(){O&&O(L),I||M(void 0)},onFocus:function(){P&&P(L)},autoComplete:E?"":"off",autoCorrect:E?"":"off",autoCapitalize:E?"":"off",spellCheck:E,disabled:g,ref:A}),m&&(T?(0,x.jsx)(ft,{leftIcon:m,title:y,disabled:g,onClick:function(){T&&T(L)}}):(0,x.jsx)("i",{className:m,"aria-hidden":!0})),N&&(0,x.jsx)(ft,{leftIcon:F?"fas fa-chevron-up":"fas fa-chevron-down",title:y,disabled:g,ariaHasPopup:"listbox",ariaExpanded:F,ariaLabel:f,onClick:function(){N&&B(!F)}})]}),F&&(0,x.jsx)(dt,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:null!==(n=U(L))&&void 0!==n?n:U(Object.values(N)[0]),"aria-labelledby":i,useUpAndDownArrowKeys:!0,children:(0,x.jsx)("ul",{role:"presentation",children:Object.keys(N).map((function(e){return(0,x.jsx)("li",{role:"presentation",children:(0,x.jsx)(ft,{title:e,label:e,id:U(N[e]),className:S("common-dropdown-item"),onClick:function(){return function(e){var t;B(!1);var n=N[e];M(n),j&&j(n),null===(t=document.getElementById(i))||void 0===t||t.focus()}(e)},ariaSelected:U(N[e])===U(null!=L?L:d),role:"option"})},e)}))})})]})},hi=function(t){var n=t.initialValue,r=t.instance,i=t.param,a=t.shouldExpand,o=t.numeric,s=u((0,e.useState)(!n),2),l=s[0],c=s[1],f=l?'"'.concat(i.name,": ").concat(m.ValueRequired):i.name;return(0,x.jsx)("div",{title:f,className:fi["inline-input-wrapper"],children:(0,x.jsx)(pi,{className:S(fi["inline-input"],o?fi["number-input"]:fi["string-input"],a?fi.long:void 0,l?fi.error:void 0),icon:l?"fas fa-exclamation-triangle":void 0,initialValue:n,onChange:function(e){c(!e),di(r.instanceId,i.name,e)},preserveValueOnBlur:!0,placeholder:o?"0":i.name,title:f,autoComplete:!1,type:o?"number":"text"})})},vi=function(t){var n=t.instance,r=t.param,i=(0,e.useContext)(He).state,a=(0,e.useMemo)((function(){if(r.value&&i.toolboxCategories)for(var e=0,t=Object.values(i.toolboxCategories);e<t.length;e++){var n,a=t[e],o=null===(n=a.blocks)||void 0===n?void 0:n.find((function(e){return e.blockId===r.value}));if(o)return{category:a,block:o}}}),[r.value,i.toolboxCategories]),o=a?{backgroundColor:a.category.color,color:"white"}:void 0;return(0,x.jsx)(ft,{label:a?A(a.block.name):r.value||r.name,className:S(fi["block-input-btn"],r.value?void 0:fi.error),onClick:function(){mt({modal:"block-picker",criteriaInstanceId:n.instanceId,paramName:r.name})},title:r.value?m.SelectBlock:"".concat(m.SelectBlock,": ").concat(m.ValueRequired),leftIcon:r.value?void 0:"fas fa-exclamation-triangle",style:o})},mi=function(e){var t=e.criteriaInstance,n=tn(t.catalogCriteriaId);if(!n)return null;var r=O(n.template).map((function(e){return"plain-text"===e.type?(r=e.content)?(0,x.jsx)("div",{className:fi["text-segment"],children:r}):null:function(e){var r,i;if(!e)return null;var a=null==n||null===(r=n.params)||void 0===r?void 0:r.find((function(t){return t.name===e})),o=null==t||null===(i=t.params)||void 0===i?void 0:i.find((function(t){return t.name===e}));return a&&o?"block"===a.type?(0,x.jsx)(vi,{param:o,instance:t}):(0,x.jsx)(hi,{initialValue:o.value,param:o,instance:t,shouldExpand:"longString"===a.type,numeric:"number"===a.type}):(re("Missing info for '".concat(e,"': paramDef=").concat(a,", paramInstance=").concat(o)),null)}(e.content);var r}));return n?(0,x.jsxs)("div",{className:fi["criteria-instance-display"],children:[(0,x.jsx)("div",{className:fi["segment-container"],children:r.map((function(e,t){return(0,x.jsx)("span",{className:fi.segment,children:e},t)}))}),(0,x.jsx)("div",{className:S(fi["criteria-description"],"no-print"),children:n.description}),(0,x.jsx)("div",{className:S(fi["criteria-description"],fi["for-print"],"only-print"),children:n.description})]}):null};function yi(){return(yi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bt(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}var gi,bi=n(8466),wi=function(){function e(t){var n=this;R(this,e),this.iframe=t,this.readyForMessages=!1,this.messageQueue=[],this.nextId=0,this.pendingMessages={},this.editorEventListeners={},this.port=void 0,this.portRequestPending=void 0,this.frameId=void 0,this.onMessageReceived=function(e){var t=e.data;if(t){if(n.frameId&&t.frameId!==n.frameId)return;if("iframeclientready"===t.type)return void(n.frameId&&!n.port?n.createMessagePort():(n.readyForMessages=!0,n.sendMessageCore()));if("iframeclientsetmessageport"===t.type)return}n.handleMessage(e)};var r=new URLSearchParams(new URL(t.src).search);r.has("frameid")&&(this.frameId=r.get("frameid")),window.addEventListener("message",this.onMessageReceived),t.contentWindow&&t.contentWindow.postMessage({type:"iframeclientready"},"*")}return M(e,[{key:"dispose",value:function(){window.removeEventListener("message",this.onMessageReceived),this.port&&this.port.close()}},{key:"addEventListener",value:function(e,t){this.editorEventListeners[e]||(this.editorEventListeners[e]=[]),this.editorEventListeners[e].push(t)}},{key:"removeEventListener",value:function(e,t){if(this.editorEventListeners[e]){var n=this.editorEventListeners[e].filter((function(e){return e!==t}));0===n.length?delete this.editorEventListeners[e]:this.editorEventListeners[e]=n}}},{key:"resolvePendingMessage",value:function(e){var t=e.data;if(t.id&&this.pendingMessages[t.id]){var n=e.data,r=this.pendingMessages[n.id];delete this.pendingMessages[n.id],n.success?r.resolve(n):r.reject(n.error||new Error("Unknown error: iFrame returned failure"))}}},{key:"fireEvent",value:function(e,t){var n=this.editorEventListeners[e];if(n){var r,i=v(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;try{a(t)}catch(e){bi.error(e)}}}catch(e){i.e(e)}finally{i.f()}}}},{key:"sendRequest",value:function(e){var t=this;return new Promise((function(n,r){e.response=!0,e.id=t.nextId+++"",t.pendingMessages[e.id]={original:e,resolve:n,reject:r},t.sendMessageCore(e)}))}},{key:"sendMessageCore",value:function(e){if(e&&this.messageQueue.push(e),this.readyForMessages)for(;this.messageQueue.length;){var t,n=this.messageQueue.shift();this.port?this.port.postMessage(n):null===(t=this.iframe.contentWindow)||void 0===t||t.postMessage(n,"*"),this.fireEvent("sent",n)}}},{key:"createMessagePort",value:function(){var e=this;if(!this.port&&!this.portRequestPending){this.portRequestPending=!0;var t=new MessageChannel;t.port1.onmessage=function(n){e.port||(e.port=t.port1,e.frameId=void 0,window.removeEventListener("message",e.onMessageReceived),e.readyForMessages=!0,e.sendMessageCore()),e.onMessageReceived(n)},this.iframe.contentWindow.postMessage({type:"iframeclientsetmessageport"},"*",[t.port2])}}}]),e}(),xi=n(8466),Ei=function(e){gt(n,e);var t=St(n);function n(e,r){var i;return R(this,n),(i=t.call(this,e)).iframe=e,i.host=r,i}return M(n,[{key:"switchEditorLanguage",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="blocks"===e.t0?3:"typescript"===e.t0?5:"python"===e.t0?7:9;break;case 3:return n="switchblocks",e.abrupt("break",9);case 5:return n="switchjavascript",e.abrupt("break",9);case 7:return n="switchpython",e.abrupt("break",9);case 9:return e.next=11,this.sendRequest({type:"pxteditor",action:n});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setLanguageRestriction",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"setlanguagerestriction",restriction:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"startSimulator",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"startsimulator"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"stopSimulator",value:function(){var e=o(i().mark((function e(){var t,n=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],e.next=3,this.sendRequest({type:"pxteditor",action:"stopsimulator",unload:t});case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"restartSimulator",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"restartsimulator"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hideSimulator",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"hidesimulator"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"showSimulator",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"showsimulator"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setSimulatorFullscreen",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"setsimulatorfullscreen",enabled:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"closeFlyout",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"closeflyout"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"unloadProject",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"unloadproject"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"saveProject",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"saveproject"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"compile",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"compile"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"undo",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"undo"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"redo",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"redo"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setHighContrast",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"sethighcontrast",on:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"toggleHighContrast",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"togglehighcontrast"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"toggleGreenScreen",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"togglegreenscreen"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"toggleSloMo",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"toggletrace",intervalSpeed:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setSloMoEnabled",value:function(){var e=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"settracestate",enabled:t,intervalSpeed:n});case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"printProject",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"print"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getInfo",value:function(){var e=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"info"});case 2:return t=e.sent,e.abrupt("return",t.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"newProject",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"newproject",options:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"importProject",value:function(){var e=o(i().mark((function e(t,n,r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"importproject",project:t,filters:n,searchBar:r});case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"importExternalProject",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"importexternalproject",project:t});case 2:return n=e.sent,e.abrupt("return",n.resp.importUrl);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"openHeader",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"openheader",headerId:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shareHeader",value:function(){var e=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"shareproject",headerId:t,projectName:n});case 2:return r=e.sent,e.abrupt("return",r.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"startActivity",value:function(){var e=o(i().mark((function e(t,n,r,a,o){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"startactivity",activityType:t,path:n,title:r,previousProjectHeaderId:a,carryoverPreviousCode:o});case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i,a){return e.apply(this,arguments)}}()},{key:"importTutorial",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"importtutorial",markdown:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"pair",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"pair"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"decompileToBlocks",value:function(){var e=o(i().mark((function e(t,n,r){var a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"renderblocks",ts:t,snippetMode:n,layout:r});case 2:return a=e.sent,e.abrupt("return",a.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"decompileToPython",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"renderpython",ts:t});case 2:return n=e.sent,e.abrupt("return",n.resp.python);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"renderXml",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"renderxml",xml:t});case 2:return n=e.sent,e.abrupt("return",n.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"renderByBlockId",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"renderbyblockid",blockId:t});case 2:return n=e.sent,e.abrupt("return",n.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getToolboxCategories",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"gettoolboxcategories",advanced:t});case 2:return n=e.sent,e.abrupt("return",n.resp.categories);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"runValidatorPlan",value:function(){var e=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"runeval",validatorPlan:t,planLib:n});case 2:return r=e.sent,e.abrupt("return",r.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"saveLocalProjectsToCloud",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"savelocalprojectstocloud",headerIds:t});case 2:return n=e.sent,e.abrupt("return",n.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"convertCloudProjectsToLocal",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"convertcloudprojectstolocal",userId:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"requestProjectCloudStatus",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"requestprojectcloudstatus",headerIds:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"addEventListener",value:function(e,t){yi(bt(n.prototype),"addEventListener",this).call(this,e,t)}},{key:"sendMessage",value:function(e){return this.sendRequest(e)}},{key:"handleMessage",value:function(e){var t=e.data;t&&/^pxt(host|editor|pkgext|sim)$/.test(t.type)&&("pxteditor"===t.type?this.resolvePendingMessage(e):"pxthost"===t.type&&("editorcontentloaded"===t.action?(this.readyForMessages=!0,this.sendMessageCore()):"workspacesync"!==t.action&&"workspacesave"!==t.action&&"workspacereset"!==t.action&&"workspaceloaded"!==t.action||this.handleWorkspaceSync(t),this.fireEvent(t.action,t)),this.fireEvent("message",t))}},{key:"handleWorkspaceSync",value:function(){var e=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.host){e.next=2;break}return e.abrupt("return");case 2:if(n=void 0,e.prev=3,"workspacesync"!==t.action){e.next=11;break}return e.next=7,this.host.getWorkspaceProjects();case 7:r=e.sent,this.sendMessageCore({type:"pxthost",id:t.id,success:!!r,projects:null==r?void 0:r.projects,editor:null==r?void 0:r.editor,controllerId:null==r?void 0:r.controllerId}),e.next=25;break;case 11:if("workspacereset"!==t.action){e.next=16;break}return e.next=14,this.host.resetWorkspace();case 14:e.next=25;break;case 16:if("workspacesave"!==t.action){e.next=21;break}return e.next=19,this.host.saveProject(t.project);case 19:e.next=25;break;case 21:if("workspaceloaded"!==t.action){e.next=25;break}if(!this.host.onWorkspaceLoaded){e.next=25;break}return e.next=25,this.host.onWorkspaceLoaded();case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(3),n=e.t0,xi.error(e.t0);case 31:return e.prev=31,t.response&&this.sendMessageCore({type:"pxthost",id:t.id,success:!n,error:n}),e.finish(31);case 34:case"end":return e.stop()}}),e,this,[[3,27,31,34]])})));return function(t){return e.apply(this,arguments)}}()}]),n}(wi);function Si(){return(Si=o(i().mark((function e(){var t,n,r,a,o,s,l,c,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=function(e){var t;return e.name&&0!=(null===(t=e.blocks)||void 0===t?void 0:t.length)},t=Ve(),n=t.dispatch,e.next=4,Promise.all([_i(!1),_i(!0)]);case 4:if(r=e.sent,a=u(r,2),o=a[0],s=a[1],0!==(l=(null!=o?o:[]).concat(null!=s?s:[])).length){e.next=11;break}return e.abrupt("return");case 11:f=l.reduce((function(e,t){if(c(t)){var n,r=null===(n=t.blocks)||void 0===n?void 0:n.filter((function(e,t,n){return n.findIndex((function(t){return t.blockId===e.blockId}))===t}));e[t.name]=p(p({},t),{},{blocks:r})}return e}),{}),n(Qe(f));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ki(e){return Ci.apply(this,arguments)}function Ci(){return(Ci=o(i().mark((function e(t){var n,r,a,o,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Ve(),(r=n.state).projectMetadata){e.next=4;break}return e.abrupt("return");case 4:if(t&&Ht("results"),0!==(a=r.checklist.criteria.map((function(e){return Vi(e.instanceId,!1)}))).length){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,Promise.all(a);case 10:o=e.sent,t&&((s=o.filter((function(e){return!e})).length)===r.checklist.criteria.length?_t(_("error",lf("Unable to run evaluation"))):_t(s>0?_("error",lf("Unable to evaluate some criteria")):_("success",lf("Evaluation complete"))));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _i(e){return Ti.apply(this,arguments)}function Ti(){return(Ti=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!gi){e.next=6;break}return e.next=3,gi.getToolboxCategories(t);case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=void 0;case 7:return n=e.t0,e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pi(e){return Oi.apply(this,arguments)}function Oi(){return(Oi=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!gi){e.next=6;break}return e.next=3,gi.renderXml(t);case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=void 0;case 7:return n=e.t0,e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ji(e){return Ai.apply(this,arguments)}function Ai(){return(Ai=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!gi){e.next=6;break}return e.next=3,gi.renderByBlockId(t);case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=void 0;case 7:return n=e.t0,e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ii(e,t){return Ni.apply(this,arguments)}function Ni(){return(Ni=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=void 0,e.prev=1,e.next=4,gi.runValidatorPlan(t,n);case 4:if(r=e.sent){e.next=7;break}throw new Error("Missing response data.");case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),ne(Z.runEval,e.t0);case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}var Ri=n(538),Li=n.n(Ri);function Mi(e){return Di.apply(this,arguments)}function Di(){return(Di=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(1===t.checks.length||"aiQuestion"===t.checks[0].validator){e.next=3;break}return ne(Z.invalidValidatorPlan,{planName:t.name,checks:t.checks}),e.abrupt("return",void 0);case 3:return n=t.checks[0],re("Asking question: '".concat(n.question,"' on project with shareId: '").concat(n.shareId,"'")),e.next=7,lt(n.shareId,n.question);case 7:return r=e.sent,re("Response: ".concat(r)),e.abrupt("return",{executionSuccess:!!r,result:void 0,notes:r,executionErrorMsg:r?void 0:m.UnableToReachAI});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fi(e){return Bi.apply(this,arguments)}function Bi(){return(Bi=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.name,e.next="ai_question"===e.t0?3:6;break;case 3:return e.next=5,Mi(t);case 5:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",void 0);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ui(e,t,n){var r=Ve(),i=r.state,a=(r.dispatch,p({},i.evalResults[e]));a.error=void 0,void 0!==t&&(a.result=t),void 0!==n&&(a.notes!==n&&ui(e,void 0),a.notes=n),Yr(e,a)}function zi(e,t){var n,r,i=Ve().state,a=tn(e.catalogCriteriaId);if(a){var o=null===(n=i.validatorPlans)||void 0===n?void 0:n.find((function(e){return e.name===a.use}));if(o){var s,l=pxt.Util.deepCopy(o),u=v(null!==(r=e.params)&&void 0!==r?r:[]);try{var c,f=function(){var n,r=s.value,o=null===(n=a.params)||void 0===n?void 0:n.find((function(e){return e.name===r.name}));if(!o)return t&&ne(Z.evalMissingCatalogParameter,"Attempting to evaluate criteria with unrecognized parameter",{catalogId:e.catalogCriteriaId,paramName:r.name}),{v:void 0};if("system"===o.type&&o.key&&(r.value=function(e,t){var n;if("SHARE_ID"===e)return null===(n=t.projectMetadata)||void 0===n?void 0:n.id;ne(Z.unrecognizedSystemParameter,"Unrecognized system parameter",{key:e})}(o.key,i),r.value||(r.value=o.default)),!r.value)return t&&ne(Z.evalParameterUnset,"Attempting to evaluate criteria with unset parameter value",{catalogId:e.catalogCriteriaId,paramName:r.name}),{v:void 0};var u,c=v(o.paths);try{for(c.s();!(u=c.n()).done;){var f=u.value;Li().apply(l,f,(function(){return r.value}))}}catch(e){c.e(e)}finally{c.f()}};for(u.s();!(s=u.n()).done;)if(c=f())return c.v}catch(e){u.e(e)}finally{u.f()}return l}ne(Z.evalMissingPlan,"Attempting to evaluate criteria with unrecognized plan",{plan:a.use})}else ne(Z.evalMissingCriteria,"Attempting to evaluate criteria with unrecognized catalog id",{id:e.catalogCriteriaId})}function Vi(e,t){return Hi.apply(this,arguments)}function Hi(){return(Hi=o(i().mark((function e(t,n){var r,a,s,l,u,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Ve(),a=r.state,s=r.dispatch,a.projectMetadata){e.next=4;break}return e.abrupt("return");case 4:if(l=nn(a,t)){e.next=8;break}return ne(Z.criteriaInstanceNotFound,"Attempting to evaluate criteria that does not exist",{criteriaInstanceId:t}),e.abrupt("return");case 8:return u=new Promise(function(){var e=o(i().mark((function e(r){var o,u,c,f,d,p,h,v,y;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=null===(o=a.evalResults[l.instanceId])||void 0===o?void 0:o.result,n||void 0===u||u===fn.NotStarted){e.next=3;break}return e.abrupt("return",r(!0));case 3:if(Kr(l.instanceId,fn.InProgress),c=a.validatorPlans){e.next=9;break}return ne(Z.validatorPlansNotFound,"Attempting to evaluate criteria without any plans"),s(Xe(l.instanceId)),e.abrupt("return",r(!1));case 9:if(f=zi(l,n),re("".concat(l.instanceId,": Generated Plan"),f),f){e.next=14;break}return s(Xe(l.instanceId)),e.abrupt("return",r(!1));case 14:return e.prev=14,e.next=17,Fi(f);case 17:if(p=e.sent){e.next=22;break}return e.next=21,Ii(f,c);case 21:p=e.sent;case 22:if(null===(d=p)||void 0===d||!d.executionSuccess){e.next=28;break}return h=void 0===p.result?fn.CompleteWithNoResult:p.result?fn.Pass:fn.Fail,Ui(l.instanceId,h,p.notes),e.abrupt("return",r(!0));case 28:return Yr(l.instanceId,{result:fn.NotStarted,error:null!==(v=null===(y=p)||void 0===y?void 0:y.executionErrorMsg)&&void 0!==v?v:m.UnexpectedError}),ui(t,void 0),e.abrupt("return",r(!1));case 31:e.next=39;break;case 33:return e.prev=33,e.t0=e.catch(14),pxt.tickEvent(g.UnhandledEvalError,{catalogCriteriaId:l.catalogCriteriaId,error:null===e.t0||void 0===e.t0?void 0:e.t0.message}),ui(t,void 0),Yr(l.instanceId,{result:fn.NotStarted,error:m.UnexpectedError}),e.abrupt("return",r(!1));case 39:case"end":return e.stop()}}),e,null,[[14,33]])})));return function(t){return e.apply(this,arguments)}}()),e.next=11,u;case 11:return c=e.sent,n&&(c||_t(_("error",lf("Unable to run evaluation")))),e.abrupt("return",c);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wi(e){var t=Ve().state;re("Removing criteria with id: ".concat(e));var n=nn(t,e),r=null==n?void 0:n.catalogCriteriaId;pn(p(p({},t.checklist),{},{criteria:t.checklist.criteria.filter((function(t){return t.instanceId!==e}))})),r&&pxt.tickEvent(g.RemoveCriteria,{catalogCriteriaId:r})}var $i,qi,Gi=function(t){var n,r=t.criteriaId,i=null===(n=(0,e.useContext)(He).state.evalResults[r])||void 0===n?void 0:n.notes;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:S(qr,"no-print"),children:(0,x.jsx)(ai,{placeholder:lf("Write your notes here"),ariaLabel:lf("Feedback regarding the criteria result"),label:lf("Feedback"),title:lf("Write your notes here"),initialValue:i,autoResize:!0,onChange:function(e){!function(e,t){var n=Ve(),r=n.state;n.dispatch,Yr(e,p(p({},r.evalResults[e]),{},{notes:t}))}(r,e)},autoComplete:!1,intervalMs:500})}),i&&(0,x.jsx)("div",{className:S(qr,"EvalResultDisplay_for-print__Rnqa+","only-print"),children:i})]})},Xi=function(e){var t=e.criteriaInstanceId,n=e.error;return(0,x.jsxs)("div",{className:S("EvalResultDisplay_result-error__a+sfL","no-print"),children:[(0,x.jsx)("i",{className:"fas fa-exclamation-circle"}),(0,x.jsxs)("div",{className:"EvalResultDisplay_error-info-container__jqhSa",children:[(0,x.jsx)("span",{className:"EvalResultDisplay_error-title__xcwl+",children:m.UnableToEvaluate}),(0,x.jsx)("span",{className:"EvalResultDisplay_error-details__xm+u3",children:n})]}),(0,x.jsx)(ft,{className:"EvalResultDisplay_dismiss-button__UtBgi",leftIcon:"fas fa-times-circle",title:m.Dismiss,onClick:function(){return Yr(t,{result:fn.NotStarted,error:void 0})}})]})},Yi=function(t){var n=t.criteriaId,r=(0,e.useContext)(He).state;function a(){return(a=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent(g.Evaluate),e.next=3,Vi(n,!0);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function s(){return(s=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:confirm(m.ConfirmDeleteCriteriaInstance)&&Wi(n);case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,x.jsxs)("div",{className:S("EvalResultDisplay_result-toolbar-tray__RV0m1","no-print"),children:[(0,x.jsx)(ft,{className:S("secondary",Hr,Wr),rightIcon:"fas fa-trash",title:m.Remove,onClick:function(){return s.apply(this,arguments)}}),(0,x.jsx)(ft,{className:S("secondary",Hr,Wr),rightIcon:"fas fa-play",title:m.Evaluate,onClick:function(){return a.apply(this,arguments)},disabled:!on(r)})]})},Ki=function(t){var n=t.criteriaId,r=(0,e.useContext)(He).state,i=r.evalResults[n],a=i?i.result:fn.NotStarted,o=!(null==i||!i.notes),s=!(null==i||!i.error),l=nn(r,n),u=l?tn(l.catalogCriteriaId):void 0,c=a===fn.InProgress,f=a===fn.NotStarted;return(0,x.jsx)(x.Fragment,{children:u&&l&&(0,x.jsxs)("div",{className:"EvalResultDisplay_specific-criteria-result__9RJhy","aria-busy":c,children:[(0,x.jsxs)("div",{className:"EvalResultDisplay_result-details__PzpKE",children:[(0,x.jsx)(mi,{criteriaInstance:l}),!c&&(0,x.jsxs)("div",{className:"EvalResultDisplay_result-controls__qd+FO",children:[(0,x.jsx)(ni,{result:a,criteriaId:n}),(0,x.jsx)(Yi,{criteriaId:n})]})]}),c?(0,x.jsx)(si,{className:"EvalResultDisplay_loading-display__k9vcu"}):s?(0,x.jsx)(Xi,{criteriaInstanceId:l.instanceId,error:i.error}):(0,x.jsx)("div",{className:S("EvalResultDisplay_result-notes__yMfib",o?void 0:"no-print"),children:(0,x.jsx)(Gi,{criteriaId:n})}),!c&&!f&&!s&&u.requestFeedback&&(0,x.jsx)(ci,{criteriaInstanceId:l.instanceId,className:S("no-print","EvalResultDisplay_criteria-feedback__hjU79")}),(0,x.jsx)("div",{className:$r})]},n)})},Qi=Object.defineProperty,Ji=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable,ta=function(e,t,n){return t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},na=function(e,t){for(var n in t||(t={}))Zi.call(t,n)&&ta(e,n,t[n]);if(Ji){var r,i=v(Ji(t));try{for(i.s();!(r=i.n()).done;)n=r.value,ea.call(t,n)&&ta(e,n,t[n])}catch(e){i.e(e)}finally{i.f()}}return e},ra=function(e,t){var n={};for(var r in e)Zi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ji){var i,a=v(Ji(e));try{for(a.s();!(i=a.n()).done;)r=i.value,t.indexOf(r)<0&&ea.call(e,r)&&(n[r]=e[r])}catch(e){a.e(e)}finally{a.f()}}return n};!function(e){var t=function(){function t(e,n,r,a){if(R(this,t),this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;for(var o=[],s=0;s<this.size;s++)o.push(!1);for(var l=0;l<this.size;l++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var u=this.addEccAndInterleave(r);if(this.drawCodewords(u),-1==a)for(var c=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var d=this.getPenaltyScore();d<c&&(a=f,c=d),this.applyMask(f)}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return M(t,[{key:"getModule",value:function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,r=0;r<n;r++)for(var i=0;i<n;i++)0==r&&0==i||0==r&&i==n-1||r==n-1&&0==i||this.drawAlignmentPattern(t[r],t[i]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,a=0;a<10;a++)n=n<<1^1335*(n>>>9);var o=21522^(t<<10|n);i(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,r(o,s));this.setFunctionModule(8,7,r(o,6)),this.setFunctionModule(8,8,r(o,7)),this.setFunctionModule(7,8,r(o,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,r(o,l));for(var u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,r(o,u));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,r(o,c));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;i(n>>>18==0);for(var a=0;a<18;a++){var o=r(n,a),s=this.size-11+a%3,l=Math.floor(a/3);this.setFunctionModule(s,l,o),this.setFunctionModule(l,s,o)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,2!=i&&4!=i)}}},{key:"drawAlignmentPattern",value:function(e,t){for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}},{key:"setFunctionModule",value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:"addEccAndInterleave",value:function(e){var n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");for(var a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),l=a-s%a,u=Math.floor(s/a),c=[],f=t.reedSolomonComputeDivisor(o),d=0,p=0;d<a;d++){var h=e.slice(p,p+u-o+(d<l?0:1));p+=h.length;var v=t.reedSolomonComputeRemainder(h,f);d<l&&h.push(0),c.push(h.concat(v))}for(var m=[],y=function(e){c.forEach((function(t,n){(e!=u-o||n>=l)&&m.push(t[e])}))},g=0;g<c[0].length;g++)y(g);return i(m.length==s),m}},{key:"drawCodewords",value:function(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var n=0,a=this.size-1;a>=1;a-=2){6==a&&(a=5);for(var o=0;o<this.size;o++)for(var s=0;s<2;s++){var l=a-s,u=0==(a+1&2)?this.size-1-o:o;!this.isFunction[u][l]&&n<8*e.length&&(this.modules[u][l]=r(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var r=void 0;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}},{key:"getPenaltyScore",value:function(){for(var e=0,n=0;n<this.size;n++){for(var r=!1,a=0,o=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[n][s]==r?5==++a?e+=t.PENALTY_N1:a>5&&e++:(this.finderPenaltyAddHistory(a,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][s],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,o)*t.PENALTY_N3}for(var l=0;l<this.size;l++){for(var u=!1,c=0,f=[0,0,0,0,0,0,0],d=0;d<this.size;d++)this.modules[d][l]==u?5==++c?e+=t.PENALTY_N1:c>5&&e++:(this.finderPenaltyAddHistory(c,f),u||(e+=this.finderPenaltyCountPatterns(f)*t.PENALTY_N3),u=this.modules[d][l],c=1);e+=this.finderPenaltyTerminateAndCount(u,c,f)*t.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var h=0;h<this.size-1;h++){var m=this.modules[p][h];m==this.modules[p][h+1]&&m==this.modules[p+1][h]&&m==this.modules[p+1][h+1]&&(e+=t.PENALTY_N2)}var y,g=0,b=v(this.modules);try{for(b.s();!(y=b.n()).done;)g=y.value.reduce((function(e,t){return e+(t?1:0)}),g)}catch(e){b.e(e)}finally{b.f()}var w=this.size*this.size,x=Math.ceil(Math.abs(20*g-10*w)/w)-1;return i(0<=x&&x<=9),i(0<=(e+=x*t.PENALTY_N4)&&e<=2568888),e}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6],r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}},{key:"finderPenaltyCountPatterns",value:function(e){var t=e[1];i(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}],[{key:"encodeText",value:function(n,r){var i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}},{key:"encodeSegments",value:function(e,r){var o,s,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=l&&l<=u&&u<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");for(o=l;;o++){var d=8*t.getNumDataCodewords(o,r),p=a.getTotalBits(e,o);if(p<=d){s=p;break}if(o>=u)throw new RangeError("Data too long")}for(var h=0,m=[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH];h<m.length;h++){var y=m[h];f&&s<=8*t.getNumDataCodewords(o,y)&&(r=y)}var g,b=[],w=v(e);try{for(w.s();!(g=w.n()).done;){var x=g.value;n(x.mode.modeBits,4,b),n(x.numChars,x.mode.numCharCountBits(o),b);var E,S=v(x.getData());try{for(S.s();!(E=S.n()).done;){var k=E.value;b.push(k)}}catch(e){S.e(e)}finally{S.f()}}}catch(e){w.e(e)}finally{w.f()}i(b.length==s);var C=8*t.getNumDataCodewords(o,r);i(b.length<=C),n(0,Math.min(4,C-b.length),b),n(0,(8-b.length%8)%8,b),i(b.length%8==0);for(var _=236;b.length<C;_^=253)n(_,8,b);for(var T=[];8*T.length<b.length;)T.push(0);return b.forEach((function(e,t){return T[t>>>3]|=e<<7-(7&t)})),new t(o,r,T,c)}},{key:"getNumRawDataModules",value:function(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;n-=(25*r-10)*r-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}},{key:"reedSolomonComputeDivisor",value:function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r<e-1;r++)n.push(0);n.push(1);for(var i=1,a=0;a<e;a++){for(var o=0;o<n.length;o++)n[o]=t.reedSolomonMultiply(n[o],i),o+1<n.length&&(n[o]^=n[o+1]);i=t.reedSolomonMultiply(i,2)}return n}},{key:"reedSolomonComputeRemainder",value:function(e,n){var r,i=n.map((function(e){return 0})),a=v(e);try{var o=function(){var e=r.value^i.shift();i.push(0),n.forEach((function(n,r){return i[r]^=t.reedSolomonMultiply(n,e)}))};for(a.s();!(r=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return i}},{key:"reedSolomonMultiply",value:function(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}}]),t}();function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;var a=function(){function e(t,n,r){if(R(this,e),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return M(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var r,i=[],a=v(t);try{for(a.s();!(r=a.n()).done;)n(r.value,8,i)}catch(e){a.e(e)}finally{a.f()}return new e(e.Mode.BYTE,t.length,i)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i<t.length;){var a=Math.min(t.length-i,3);n(parseInt(t.substr(i,a),10),3*a+1,r),i+=a}return new e(e.Mode.NUMERIC,t.length,r)}},{key:"makeAlphanumeric",value:function(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r,i=[];for(r=0;r+2<=t.length;r+=2){var a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));n(a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),11,i)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,i),new e(e.Mode.ALPHANUMERIC,t.length,i)}},{key:"makeSegments",value:function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}},{key:"isNumeric",value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(e,t){var n,r=0,i=v(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.mode.numCharCountBits(t);if(a.numChars>=1<<o)return 1/0;r+=4+o+a.bitData.length}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"toUtf8ByteArray",value:function(e){e=encodeURI(e);for(var t=[],n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}}]),e}();a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a}($i||($i={})),function(e){var t=M((function e(t,n){R(this,e),this.ordinal=t,this.formatBits=n})),n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n}((qi=$i||($i={})).QrCode||(qi.QrCode={})),function(e){!function(e){var t=function(){function e(t,n){R(this,e),this.modeBits=t,this.numBitsCharCount=n}return M(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}(),n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n}(e.QrSegment||(e.QrSegment={}))}($i||($i={}));var ia=$i,aa={L:ia.QrCode.Ecc.LOW,M:ia.QrCode.Ecc.MEDIUM,Q:ia.QrCode.Ecc.QUARTILE,H:ia.QrCode.Ecc.HIGH};function oa(t){var n=t,r=n.value,i=n.size,a=void 0===i?128:i,o=n.level,s=void 0===o?"L":o,l=n.bgColor,u=void 0===l?"#FFFFFF":l,c=n.fgColor,f=void 0===c?"#000000":c,d=n.includeMargin,p=void 0!==d&&d,h=n.imageSettings,v=ra(n,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),m=ia.QrCode.encodeText(r,aa[s]).getModules(),y=p?4:0,g=m.length+2*y,b=function(e,t,n,r){if(null==r)return null;var i=n?4:0,a=e.length+2*i,o=Math.floor(.1*t),s=a/t,l=(r.width||o)*s,u=(r.height||o)*s,c=null==r.x?e.length/2-l/2:r.x*s,f=null==r.y?e.length/2-u/2:r.y*s,d=null;if(r.excavate){var p=Math.floor(c),h=Math.floor(f);d={x:p,y:h,w:Math.ceil(l+c-p),h:Math.ceil(u+f-h)}}return{x:c,y:f,h:u,w:l,excavation:d}}(m,a,p,h),w=null;null!=h&&null!=b&&(null!=b.excavation&&(m=function(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}(m,b.excavation)),w=e.createElement("image",{xlinkHref:h.src,height:b.h,width:b.w,x:b.x+y,y:b.y+y,preserveAspectRatio:"none"}));var x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var i=null;e.forEach((function(a,o){if(!a&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(o-i,"v1H").concat(i+t,"z")),void(i=null);if(o!==e.length-1)a&&null===i&&(i=o);else{if(!a)return;null===i?n.push("M".concat(o+t,",").concat(r+t," h1v1H").concat(o+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(o+1-i,"v1H").concat(i+t,"z"))}}))})),n.join("")}(m,y);return e.createElement("svg",na({height:a,width:a,viewBox:"0 0 ".concat(g," ").concat(g)},v),e.createElement("path",{fill:u,d:"M0,0 h".concat(g,"v").concat(g,"H0z"),shapeRendering:"crispEdges"}),e.createElement("path",{fill:f,d:x,shapeRendering:"crispEdges"}),w)}function sa(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function la(e){var t=Ve(),n=t.state,r=t.dispatch;n.catalogOpen!=e&&r(function(e){return{type:"SET_CATALOG_OPEN",open:e}}(e))}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var ua=function(t){return sa(t),(0,e.useContext)(He).state.catalogOpen?null:(0,x.jsx)(ft,{className:S("inline","outline-button"),label:m.AddCriteria,onClick:function(){return la(!0)},title:m.AddCriteria,leftIcon:"fas fa-plus-circle"})},ca=["intervalMs"],fa=function(t){var n=t.intervalMs,r=void 0===n?500:n,i=wn(t,ca),a=(0,e.useRef)(void 0),o=(0,e.useRef)(""),s=function(){i.onChange&&i.onChange(o.current)};return(0,e.useEffect)((function(){return function(){a.current&&(clearTimeout(a.current),s())}}),[]),(0,x.jsx)(pi,p(p({},i),{},{onChange:function(e){o.current=e,a.current&&clearTimeout(a.current),a.current=setTimeout(s,r)}}))};function da(e){var t=Ve().state;t.checklist.name!==e&&pn(p(p({},t.checklist),{},{name:e}))}function pa(e){return ha.apply(this,arguments)}function ha(){return(ha=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=void 0,e.prev=1,e.next=4,pxt.Util.fileReadAsTextAsync(t);case 4:r=e.sent,n=JSON.parse(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),ne(Z.unableToReadChecklistFile,e.t0);case 11:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}var va=function(t){var n,r,a,s,l=t.printRef,c=(0,e.useContext)(He).state,f=c.checklist,d=c.projectMetadata,p=f.name,h=u((0,e.useState)(),2),v=h[0],y=h[1],b=function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent(g.Evaluate),e.next=3,ki(!0);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=(0,Xr.useReactToPrint)({content:function(){return l.current},onPrintError:function(){return $e(_("error",lf("Unable to print evaluation results"),2e3))},documentTitle:"".concat(pxt.Util.sanitizeFileName(ln(c))," - ").concat(pxt.Util.sanitizeFileName((null===(n=c.projectMetadata)||void 0===n?void 0:n.name)||m.UntitledProject))});return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"EvalResultDisplay_header__XkIrv",children:[(0,x.jsxs)("div",{className:Gr,children:[(0,x.jsxs)("div",{className:"EvalResultDisplay_checklist-name-input__wG5OM",children:[(0,x.jsx)("div",{className:S(Gr,"only-print"),children:(0,x.jsx)("h2",{children:p})}),(0,x.jsx)(fa,{className:"no-print",ariaLabel:m.Name,onChange:da,placeholder:m.ChecklistNamePlaceholder,initialValue:p,preserveValueOnBlur:!0,handleInputRef:y,onFocus:function(){return null==v?void 0:v.select()}})]}),d&&(0,x.jsxs)("div",{className:S("EvalResultDisplay_project-details__0IJH+","only-print"),children:[(0,x.jsxs)("div",{className:"EvalResultDisplay_project-text__C+-Wn",children:[(0,x.jsx)("h3",{children:null==c||null===(r=c.projectMetadata)||void 0===r?void 0:r.name}),(0,x.jsx)("p",{children:P(null===(a=c.projectMetadata)||void 0===a?void 0:a.inputText)})]}),(0,x.jsx)("div",{className:"EvalResultDisplay_project-qrcode__Bo6ad",children:(0,x.jsx)(oa,{size:60,value:P(null===(s=c.projectMetadata)||void 0===s?void 0:s.inputText)})})]})]}),(0,x.jsxs)("div",{className:S("EvalResultDisplay_checklist-control-tray__D15BX","no-print"),children:[(0,x.jsx)(ft,{className:S("secondary",Hr),label:m.Export,title:m.ExportChecklist,rightIcon:"fas fa-download",onClick:function(){pxt.tickEvent(g.ExportChecklist),function(e){var t=e.name?pxt.Util.sanitizeFileName(e.name):"",n="".concat(t||lf("unnamed-checklist"),".json"),r=JSON.stringify(e,null,4);try{pxt.BrowserUtils.browserDownloadText(r,n)}catch(e){return ne(Z.unableToExportChecklist,e),!1}}(f)},disabled:!on(c)}),(0,x.jsx)(ft,{className:S("secondary",Hr),label:m.Print,title:m.PrintChecklist,rightIcon:"fas fa-print",onClick:function(){pxt.tickEvent(g.Print),w()}}),(0,x.jsx)(ft,{className:S("primary",Hr),label:m.Evaluate,title:m.EvaluateChecklist,rightIcon:"fas fa-play",onClick:b,disabled:!on(c)})]})]}),(0,x.jsx)("div",{className:$r})]})},ma=function(){var t=(0,e.useContext)(He).state.checklist.criteria;return(0,x.jsx)("div",{className:"EvalResultDisplay_results-list__iAYMf",children:Object.values(t).map((function(e){return(0,x.jsx)(Ki,{criteriaId:e.instanceId},e.instanceId)}))})},ya=function(){return(0,x.jsx)("div",{className:S("EvalResultDisplay_footer__W5dJw","no-print"),children:(0,x.jsx)(ua,{})})},ga=function(e){var t=e.resultsRef;return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:"EvalResultDisplay_eval-results-container__9XZK7",ref:t,children:[(0,x.jsx)(va,{printRef:t}),(0,x.jsx)(ma,{}),(0,x.jsx)(ya,{})]})})},ba=function(){return(0,x.jsxs)($t,{children:[(0,x.jsx)(Wt,{name:"home",children:m.Home}),(0,x.jsx)(Wt,{name:"results",children:m.Checklist})]})},wa=function(e){var t=e.resultsRef;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(qt,{name:"home",children:(0,x.jsx)(Vr,{})}),(0,x.jsx)(qt,{name:"results",children:(0,x.jsx)(ga,{resultsRef:t})})]})},xa=function(){var t=(0,e.useRef)(null);return(0,x.jsxs)("div",{className:"ChecklistWorkspace_panel__MBC+K",children:[(0,x.jsx)(Vt,{left:(0,x.jsx)(ba,{})}),(0,x.jsx)(wa,{resultsRef:t})]})};function Ea(){var e=Ve().dispatch;dn({overwriteExistingEntries:!0}),e({type:"CLEAR_ALL_EVAL_RESULT_NOTES"})}function Sa(e,t){return ka.apply(this,arguments)}function ka(){return(ka=o(i().mark((function e(t,n){var r,a,o,s,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Ve(),a=r.dispatch,o=pxt.Cloud.parseScriptId(n)){e.next=6;break}return _t(_("error",lf("Invalid share link"))),a(Ge(void 0)),e.abrupt("return");case 6:return e.next=8,tt(o);case 8:if(s=e.sent){e.next=13;break}return _t(_("error",lf("Failed to load project"))),a(Ge(void 0)),e.abrupt("return");case 13:if(s.target===pxt.appTarget.id){e.next=17;break}return _t(_("error",lf("That project was built with a different MakeCode editor"))),a(Ge(void 0)),e.abrupt("return");case 17:l=p(p({},s),{},{inputText:t}),a(Ge(l)),Ea(),re("Loaded project metadata",s);case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ca=function(){var t=(0,e.useContext)(He).state.projectMetadata,n=u((0,e.useState)(""),2),r=n[0],i=n[1],a=u((0,e.useState)(!1),2),o=a[0],s=a[1],l=u((0,e.useState)(),2),c=l[0],f=l[1];(0,e.useEffect)((function(){var e=pxt.Cloud.parseScriptId(r);s(!!e&&!(e===(null==t?void 0:t.shortid)||e===(null==t?void 0:t.persistId)))}),[r,null==t?void 0:t.shortid,null==t?void 0:t.persistId]);var d=(0,e.useCallback)((function(){var e=pxt.Cloud.parseScriptId(r);e&&e!==(null==t?void 0:t.shortid)&&e!==(null==t?void 0:t.persistId)&&Sa(r,e)}),[r,null==t?void 0:t.shortid,null==t?void 0:t.persistId]),p=(0,e.useMemo)((function(){return o?"fas fa-arrow-right":void 0}),[o]);return(0,x.jsx)("div",{className:S("ShareLinkInput_share-link-input__fFei9","tt-share-link-input"),children:(0,x.jsx)(pi,{placeholder:lf("Enter Project Link or Share ID"),ariaLabel:lf("Project Link or Share ID"),icon:p,iconTitle:lf("Submit project link or share ID"),onChange:function(e){i(e)},onEnterKey:d,onIconClick:d,onFocus:function(){return null==c?void 0:c.select()},preserveValueOnBlur:!0,autoComplete:!1,handleInputRef:f})})},_a=function(){var t,n,r=(0,e.useContext)(He).state,i=u((0,e.useState)(pxt.Util.guidGen()),2),a=i[0],o=i[1],s=u((0,e.useState)(""),2),l=s[0],c=s[1],f=(0,e.useRef)(null);function d(){o(pxt.Util.guidGen())}return(0,e.useEffect)((function(){var e,t=function(e){var t=pxt.BrowserUtils.isLocalHost()?"http://localhost:3232/index.html":function(e){var t,n;if(!pxt.webConfig&&window.pxtConfig&&pxt.setupWebConfig(window.pxtConfig),null!==(t=pxt.webConfig)&&void 0!==t&&t.targetUrl&&null!==(n=pxt.webConfig)&&void 0!==n&&n.relprefix)return pxt.webConfig.targetUrl+pxt.webConfig.relprefix.substr(0,pxt.webConfig.relprefix.length-3);var r=/\/([\da-zA-Z\.]+)(?:--)?/i.exec(window.location.pathname);return"".concat(e.replace(/\/$/,""),"/").concat((null==r?void 0:r[1])||"")}(window.pxtTargetBundle.appTheme.embedUrl),n=t;"/"!==t.charAt(t.length-1)||pxt.BrowserUtils.isLocalHost()||(n=t.substr(0,t.length-1));var r=e?"#pub:".concat(e):"",i="";return pxt.options.debug&&(i+="&dbg=1"),pxt.analytics.consoleTicks&&(i+="&consoleticks=1"),n+="?controller=1&teachertool=1&readonly=1&ws=mem&nocookiebanner=1&frameid=".concat(a).concat(r).concat(i)}((null===(e=r.projectMetadata)||void 0===e?void 0:e.id)||"");c(t)}),[a,null===(t=r.projectMetadata)||void 0===t?void 0:t.id]),(0,x.jsx)("iframe",{id:"code-eval-project-view-frame",className:S("MakeCodeFrame_makecode-frame__K4VQc",null!==(n=r.projectMetadata)&&void 0!==n&&n.id?void 0:"MakeCodeFrame_invisible__FWWvH"),src:l,title:"title",ref:function(e){f.current=e,e&&function(e,t){if(gi){if(gi.iframe===e)return;gi.dispose(),gi=void 0}e&&((gi=new Ei(e)).addEventListener("message",(function(e){re("Message received from iframe. ID: ".concat(null==e?void 0:e.id),e)})),gi.addEventListener("sent",(function(e){re("Sent message to iframe. ID: ".concat(null==e?void 0:e.id),e)})),gi.addEventListener("serviceworkerregistered",(function(e){re("Service worker registered. Reloading iframe."),t()})),gi.addEventListener("editorcontentloaded",(function(e){var t=Ve().state,n=t.runOnLoad,r=t.projectMetadata;n&&r&&ki(!0),function(){Si.apply(this,arguments)}()})),gi.setHighContrast(!1))}(e,d)}})},Ta={"criteria-display":"ReadonlyCriteriaDisplay_criteria-display__HTFDh","criteria-template":"ReadonlyCriteriaDisplay_criteria-template__bw5da","plain-text-segment":"ReadonlyCriteriaDisplay_plain-text-segment__Ear1R","param-segment":"ReadonlyCriteriaDisplay_param-segment__IwtzK","criteria-description":"ReadonlyCriteriaDisplay_criteria-description__G8hLB"},Pa=function(t){var n=t.catalogCriteria,r=t.criteriaInstance,i=t.showDescription,a=(0,e.useContext)(He).state;function o(e){var t;return r&&"plain-text"!==e.type?null!==(t=function(e,t,n){var r,i,a=nn(e,t);return null==a||null===(r=a.params)||void 0===r||null===(i=r.find((function(e){return e.name===n})))||void 0===i?void 0:i.value}(a,r.instanceId,e.content))&&void 0!==t?t:"":e.content}var s=(0,e.useMemo)((function(){return O(n.template)}),[n.template]);return(0,x.jsxs)("div",{className:Ta["criteria-display"],children:[n.template&&(0,x.jsx)("div",{className:Ta["criteria-template"],children:s.map((function(e,t){return(0,x.jsx)("span",{className:Ta["".concat(e.type,"-segment")],children:o(e)},t)}))}),i&&n.description&&(0,x.jsx)("div",{className:Ta["criteria-description"],children:n.description})]})},Oa=e.createContext(null),ja=e.createContext(null),Aa=function(t){var n=t.multiExpand,r=t.defaultExpandedIds,i=t.children,a=u(e.useReducer(Ia,{expanded:null!=r?r:[],multiExpand:n}),2),o=a[0],s=a[1];return(0,x.jsx)(Oa.Provider,{value:o,children:(0,x.jsx)(ja.Provider,{value:s,children:i})})};function Ia(e,t){switch(t.type){case"SET_EXPANDED":return p(p({},e),{},{expanded:e.multiExpand?[].concat(N(e.expanded),[t.id]):[t.id]});case"REMOVE_EXPANDED":return p(p({},e),{},{expanded:e.expanded.filter((function(e){return e!==t.id}))})}}var Na=Object.assign((function(e){var t=e.children,n=e.id,r=e.className,i=e.ariaLabel,a=e.ariaHidden,o=e.ariaDescribedBy,s=e.role,l=e.multiExpand,u=e.defaultExpandedIds;return(0,x.jsx)(Aa,{multiExpand:l,defaultExpandedIds:u,children:(0,x.jsx)("div",{className:S("common-accordion",r),id:n,"aria-label":i,"aria-hidden":a,"aria-describedby":o,role:s,children:t})})}),{Header:function(e){var t=e.id,n=e.className,r=e.ariaLabel,i=e.children;return(0,x.jsx)("div",{id:t,className:S("common-accordion-header",n),"aria-label":r,children:i})},Item:function(t){var n=t.children,r=t.id,i=t.className,a=t.ariaLabel,o=t.ariaHidden,s=t.ariaDescribedBy,l=t.role,u=t.noChevron,c=t.itemId,f=t.onExpandToggled,d=e.useContext(Oa).expanded,p=e.useContext(ja),h=null!=c?c:e.useMemo((function(){return pxt.Util.guidGen()}),[]),v=e.Children.toArray(n),m=-1!==d.indexOf(h),y=e.useCallback((function(){p(m?function(e){return{type:"REMOVE_EXPANDED",id:e}}(h):function(e){return{type:"SET_EXPANDED",id:e}}(h)),null==f||f(!m)}),[m]);return(0,x.jsxs)("div",{className:S("common-accordion",i),id:r,"aria-label":a,"aria-hidden":o,"aria-describedby":s,role:l,children:[(0,x.jsx)("button",{className:"common-accordion-header-outer","aria-expanded":m,"aria-controls":h,onClick:y,onKeyDown:E,children:(0,x.jsxs)("div",{children:[!u&&(0,x.jsx)("div",{className:"common-accordion-chevron",children:(0,x.jsx)("i",{className:S("fas",m?"fa-chevron-down":"fa-chevron-right"),"aria-hidden":!0})}),(0,x.jsx)("div",{className:"common-accordion-header-content",children:v[0]})]})}),(0,x.jsx)("div",{id:h,className:"common-accordion-panel-outer",style:{display:m?"block":"none"},children:m&&v[1]})]})},Panel:function(e){var t=e.id,n=e.className,r=e.ariaLabel,i=e.children;return(0,x.jsx)("div",{id:t,className:S("common-accordion-body",n),"aria-label":r,children:i})}}),Ra="CatalogOverlay_hide-indicator__yApKo",La=function(e){var t=e.onClose;return(0,x.jsxs)("div",{className:"CatalogOverlay_header__sjmbq",children:[(0,x.jsx)("span",{className:"CatalogOverlay_title__onPIB",children:m.SelectCriteriaDescription}),(0,x.jsx)(ft,{className:"CatalogOverlay_close-button__b7Lzu",rightIcon:"fas fa-times-circle",onClick:t,title:m.Close})]})},Ma=function(e){var t=e.catalogCriteria,n=e.isMaxed,r=e.recentlyAdded&&!n;return(0,x.jsxs)("div",{className:"CatalogOverlay_catalog-item-label__0zJI4",children:[(0,x.jsx)("div",{className:"CatalogOverlay_action-indicators__UIaXM",children:n?(0,x.jsx)("span",{children:m.Max}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("i",{className:S("fas fa-check","CatalogOverlay_recently-added-indicator__4roV1",r?void 0:Ra),title:lf("Added!")}),(0,x.jsx)("i",{className:S("fas fa-plus",r?Ra:void 0),title:m.AddToChecklist})]})}),(0,x.jsx)(Pa,{catalogCriteria:t,showDescription:!0})]})},Da=function(t){var n=t.catalogCriteria,r=t.recentlyAddedIds,i=t.onItemClicked,a=(0,e.useContext)(He).state.checklist.criteria.filter((function(e){return e.catalogCriteriaId===n.id})).length,o=void 0!==n.maxCount&&a>=n.maxCount;return n.template?(0,x.jsx)(ft,{title:j(n),className:"CatalogOverlay_catalog-item__jSGMy",label:(0,x.jsx)(Ma,{catalogCriteria:n,isMaxed:o,recentlyAdded:void 0!==r[n.id]}),onClick:function(){return i(n)},disabled:o},n.id):null},Fa=function(){var t=(0,e.useContext)(He).state,n=u((0,e.useState)({}),2),r=n[0],i=n[1],a=(0,e.useMemo)((function(){var e,n={};return null===(e=function(e){var t,n;return null!==(t=null===(n=e.catalog)||void 0===n?void 0:n.filter((function(e){return!e.hideInCatalog})))&&void 0!==t?t:[]}(t))||void 0===e||e.forEach((function(e){if(e.tags&&0!==e.tags.length){var t=e.tags[0];n[t]||(n[t]=[]),n[t].push(e)}else ne(Z.missingTag,{message:"Catalog criteria missing tag",criteria:e})})),n}),[t.catalog]);function o(e,t){i((function(n){var r=p({},n);return t?r[e]=t:delete r[e],r}))}function s(e){!function(e){var t,n,r=Ve(),i=r.state,a=(r.dispatch,p(p({},i.checklist),{},{criteria:N(null!==(t=i.checklist.criteria)&&void 0!==t?t:[])})),o=v(e);try{for(o.s();!(n=o.n()).done;){var s,l=n.value,u=tn(l);if(u){var c=null===(s=u.params)||void 0===s?void 0:s.map((function(e){return{name:e.name,value:e.default}})),f=h();re("Adding criteria with Catalog ID '".concat(l,"' and Instance ID '").concat(f,"'"));var d={catalogCriteriaId:l,instanceId:f,params:c};a.criteria.push(d)}else ne(Z.addingMissingCriteria,"Attempting to add criteria with unrecognized id",{id:l})}}catch(e){o.e(e)}finally{o.f()}pn(a),pxt.tickEvent(g.AddCriteria,{ids:JSON.stringify(e)})}([e.id]),r[e.id]&&clearTimeout(r[e.id]);var t,n=setTimeout((function(){o(e.id,void 0)}),500);o(e.id,n),t=lf("Added '{0}' to checklist.",j(e)),(0,Ve().dispatch)(function(e){return{type:"SET_SCREEN_READER_ANNOUNCEMENT",announcement:e}}(t))}function l(e){return"accordion-item-".concat(e)}var c=Object.keys(a);if(0===c.length)return ne(Z.noCatalogCriteria),null;var f=Oe();f||(Ae(c[0]),f=[c[0]]);var d=f.map((function(e){return l(e)}));return(0,x.jsx)(Na,{className:"CatalogOverlay_catalog-list__xYFxU",multiExpand:!0,defaultExpandedIds:d,children:c.map((function(e){return(0,x.jsxs)(Na.Item,{itemId:l(e),onExpandToggled:function(t){return function(e,t){t?Ae(e):function(e){var t=Oe();if(t){var n=t.indexOf(e);-1!==n&&(t.splice(n,1),je(t))}else je([])}(e)}(e,t)},children:[(0,x.jsx)(Na.Header,{children:e}),(0,x.jsx)(Na.Panel,{children:a[e].map((function(e){return(0,x.jsx)(Da,{catalogCriteria:e,recentlyAddedIds:r,onItemClicked:s},"catalog-item-".concat(e.id))}))})]},l(e))}))})},Ba=function(t){return sa(t),(0,e.useContext)(He).state.catalogOpen?(0,x.jsx)(ht,{onEscape:function(){},children:(0,x.jsx)("div",{className:"CatalogOverlay_catalog-overlay__dPVh1",children:(0,x.jsxs)("div",{className:"CatalogOverlay_catalog-content-container__opkVF",children:[(0,x.jsx)(La,{onClose:function(){la(!1)}}),(0,x.jsx)(Fa,{})]})})}):null};var Ua=function(){var t=function(e){var t;if(e.projectMetadata)return null!==(t=e.projectMetadata.name)&&void 0!==t?t:m.UntitledProject}((0,e.useContext)(He).state);return t?(0,x.jsx)("div",{className:"ProjectWorkspace_projectName__DC+1K",children:t}):null},za=function(){var t=(0,e.useContext)(He).state.runOnLoad;return(0,x.jsx)(Vt.ControlGroup,{children:(0,x.jsx)(Vt.Toggle,{label:m.RunOnLoad,title:m.RunOnLoadDescription,isChecked:t,onToggle:function(e){pxt.tickEvent(g.RunOnLoad,{checked:e?"true":"false"}),function(e){(0,Ve().dispatch)(function(e){return{type:"SET_RUN_ON_LOAD",runOnLoad:e}}(e)),function(e){try{ce(ae,e.toString())}catch(e){ne(Z.localStorageWriteError,e)}}(e)}(e)}})})},Va=function(){return(0,x.jsxs)("div",{className:"ProjectWorkspace_panel__FKcHF",children:[(0,x.jsx)(Ba,{}),(0,x.jsx)(Vt,{left:(0,x.jsx)(Ua,{}),right:(0,x.jsx)(za,{})}),(0,x.jsx)(Ca,{}),(0,x.jsx)(_a,{})]})},Ha=function(){var e=function(){try{var e;return null!==(e=ue(se))&&void 0!==e?e:""}catch(e){return ne(Z.localStorageReadError,e),""}}();return(0,x.jsx)("div",{className:"MainPanel_main-panel__ZlyxZ",children:(0,x.jsx)(Ut,{split:"vertical",defaultSize:"50%",startingSize:e,primary:"left",left:(0,x.jsx)(xa,{}),right:(0,x.jsx)(Va,{}),leftMinSize:"5rem",rightMinSize:"5rem",onResizeEnd:function(e){!function(e){try{ce(se,e)}catch(e){ne(Z.localStorageWriteError,e)}}(e.toString())}})})},Wa=function(e,t){return(Wa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function $a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var qa=function(){return(qa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ga(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Xa(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Ya(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,n(7490);var Ka=1/60*1e3,Qa="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},Ja="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(Qa())}),Ka)},Za=!0,eo=!1,to=!1,no={delta:0,timestamp:0},ro=["read","update","preRender","render","postRender"],io=ro.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:function(e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),a&&i&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(e){if(i)a=!0;else{i=!0;var l=[n,t];if(t=l[0],(n=l[1]).length=0,r=t.length)for(var u=0;u<r;u++){var c=t[u];c(e),o.has(c)&&(s.schedule(c),eo=!0)}i=!1,a&&(a=!1,s.process(e))}}};return s}(),e}),{}),ao=ro.reduce((function(e,t){var n=io[t];return e[t]=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return eo||co(),n.schedule(e,t,r)},e}),{}),oo=ro.reduce((function(e,t){return e[t]=io[t].cancel,e}),{}),so=ro.reduce((function(e,t){return e[t]=function(){return io[t].process(no)},e}),{}),lo=function(e){return io[e].process(no)},uo=function e(t){eo=!1,no.delta=Za?Ka:Math.max(Math.min(t-no.timestamp,40),1),no.timestamp=t,to=!0,ro.forEach(lo),to=!1,eo&&(Za=!1,Ja(e))},co=function(){eo=!0,Za=!0,to||Ja(uo)},fo=function(){return no},po=ao,ho="undefined"!=typeof document,vo=ho?e.useLayoutEffect:e.useEffect;function mo(){var t=(0,e.useRef)(!1);return vo((function(){return t.current=!0,function(){t.current=!1}}),[]),t}var yo=(0,e.createContext)(null);function go(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}var bo=0,wo=function(){return bo++},xo=function(){return go(wo)},Eo=function(t){var n=t.children,r=t.initial,i=t.isPresent,a=t.onExitComplete,o=t.custom,s=t.presenceAffectsLayout,l=go(So),u=xo(),c=(0,e.useMemo)((function(){return{id:u,initial:r,isPresent:i,custom:o,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),s?void 0:[i]);return(0,e.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[i]),e.useEffect((function(){!i&&!l.size&&(null==a||a())}),[i]),e.createElement(yo.Provider,{value:c},n)};function So(){return new Map}var ko=(0,e.createContext)({});function Co(t){return(0,e.useEffect)((function(){return function(){return t()}}),[])}n(8466);var _o=function(e){return e.key||""},To=function(t){var n=t.children,r=t.custom,i=t.initial,a=void 0===i||i,o=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,u=void 0===l||l,c=Xa(function(){var t=mo(),n=Xa((0,e.useState)(0),2),r=n[0],i=n[1],a=(0,e.useCallback)((function(){t.current&&i(r+1)}),[r]);return[(0,e.useCallback)((function(){return po.postRender(a)}),[a]),r]}(),1)[0],f=(0,e.useContext)(ko).forceRender;f&&(c=f);var d=mo(),p=function(t){var n=[];return e.Children.forEach(t,(function(t){(0,e.isValidElement)(t)&&n.push(t)})),n}(n),h=p,v=new Set,m=(0,e.useRef)(h),y=(0,e.useRef)(new Map).current,g=(0,e.useRef)(!0);if(vo((function(){g.current=!1,function(e,t){e.forEach((function(e){var n=_o(e);t.set(n,e)}))}(p,y),m.current=h})),Co((function(){g.current=!0,y.clear(),v.clear()})),g.current)return e.createElement(e.Fragment,null,h.map((function(t){return e.createElement(Eo,{key:_o(t),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:u},t)})));h=Ya([],Xa(h),!1);for(var b=m.current.map(_o),w=p.map(_o),x=b.length,E=0;E<x;E++){var S=b[E];-1===w.indexOf(S)&&v.add(S)}return s&&v.size&&(h=[]),v.forEach((function(t){if(-1===w.indexOf(t)){var n=y.get(t);if(n){var i=b.indexOf(t);h.splice(i,0,e.createElement(Eo,{key:_o(n),isPresent:!1,onExitComplete:function(){y.delete(t),v.delete(t);var e=m.current.findIndex((function(e){return e.key===t}));if(m.current.splice(e,1),!v.size){if(m.current=p,!1===d.current)return;c(),o&&o()}},custom:r,presenceAffectsLayout:u},n))}}})),h=h.map((function(t){var n=t.key;return v.has(n)?t:e.createElement(Eo,{key:_o(t),isPresent:!0,presenceAffectsLayout:u},t)})),e.createElement(e.Fragment,null,v.size?h:h.map((function(t){return(0,e.cloneElement)(t)})))},Po=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Oo={measureLayout:Po(["layout","layoutId","drag"]),animation:Po(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Po(["exit"]),drag:Po(["drag","dragControls"]),focus:Po(["whileFocus"]),hover:Po(["whileHover","onHoverStart","onHoverEnd"]),tap:Po(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Po(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Po(["whileInView","onViewportEnter","onViewportLeave"])},jo=(0,e.createContext)({strict:!1}),Ao=Object.keys(Oo),Io=Ao.length,No=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Ro=(0,e.createContext)({}),Lo={current:null},Mo=!1;function Do(t,n,r,i){var a=(0,e.useContext)(jo),o=(0,e.useContext)(Ro).visualElement,s=(0,e.useContext)(yo),l=function(){var t=(!Mo&&function(){if(Mo=!0,ho)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Lo.current=e.matches};e.addListener(t),t()}else Lo.current=!1}(),Xa((0,e.useState)(Lo.current),1)[0]),n=(0,e.useContext)(No).reducedMotion;return"never"!==n&&("always"===n||t)}(),u=(0,e.useRef)(void 0);i||(i=a.renderer),!u.current&&i&&(u.current=i(t,{visualState:n,parent:o,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:l}));var c=u.current;return vo((function(){null==c||c.syncRender()})),(0,e.useEffect)((function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()})),vo((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function Fo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Bo(e){return Array.isArray(e)}function Uo(e){return"string"==typeof e||Bo(e)}function zo(e,t,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Vo(e,t,n){var r=e.getProps();return zo(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function Ho(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Uo(e.initial)||Uo(e.animate)||Uo(e.whileHover)||Uo(e.whileDrag)||Uo(e.whileTap)||Uo(e.whileFocus)||Uo(e.exit)}function Wo(e){return Boolean(Ho(e)||e.variants)}function $o(e){return Array.isArray(e)?e.join(" "):e}var qo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Go=1,Xo=(0,e.createContext)({}),Yo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $a(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(e.Component);function Ko(t){var n=t.preloadedFeatures,r=t.createVisualElement,i=t.projectionNodeConstructor,a=t.useRender,o=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Oo.projectionNodeConstructor=e[t]:Oo[t].Component=e[t])}(n),(0,e.forwardRef)((function(t,n){var l=function(t){var n,r=t.layoutId,i=null===(n=(0,e.useContext)(ko))||void 0===n?void 0:n.id;return i&&void 0!==r?i+"-"+r:r}(t);t=qa(qa({},t),{layoutId:l});var u=(0,e.useContext)(No),c=null,f=function(t){var n=function(e,t){if(Ho(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Uo(n)?n:void 0,animate:Uo(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(Ro)),r=n.initial,i=n.animate;return(0,e.useMemo)((function(){return{initial:r,animate:i}}),[$o(r),$o(i)])}(t),d=u.isStatic?void 0:go((function(){if(qo.hasEverUpdated)return Go++})),p=o(t,u.isStatic);return!u.isStatic&&ho&&(f.visualElement=Do(s,p,qa(qa({},u),t),r),function(t,n,r,i){var a,o=n.layoutId,s=n.layout,l=n.drag,u=n.dragConstraints,c=n.layoutScroll,f=(0,e.useContext)(Xo);i&&r&&!(null==r?void 0:r.projection)&&(r.projection=new i(t,r.getLatestValues(),null===(a=r.parent)||void 0===a?void 0:a.projection),r.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(l)||u&&Fo(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,t,f.visualElement,i||Oo.projectionNodeConstructor),c=function(t,n,r){var i=[];(0,e.useContext)(jo);if(!n)return null;for(var a=0;a<Io;a++){var o=Ao[a],s=Oo[o],l=s.isEnabled,u=s.Component;l(t)&&u&&i.push(e.createElement(u,qa({key:o},t,{visualElement:n})))}return i}(t,f.visualElement)),e.createElement(Yo,{visualElement:f.visualElement,props:qa(qa({},u),t)},c,e.createElement(Ro.Provider,{value:f},a(s,t,d,function(t,n,r){return(0,e.useCallback)((function(e){var i;e&&(null===(i=t.mount)||void 0===i||i.call(t,e)),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Fo(r)&&(r.current=e))}),[n])}(p,f.visualElement,n),p,u.isStatic,f.visualElement)))}))}var Qo=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Jo(e){return"string"==typeof e&&!e.includes("-")&&!!(Qo.indexOf(e)>-1||/[A-Z]/.test(e))}var Zo={},es=["","X","Y","Z"],ts=["transformPerspective","x","y","z"];function ns(e,t){return ts.indexOf(e)-ts.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return es.forEach((function(t){return ts.push(e+t)}))}));var rs=new Set(ts);function is(e){return rs.has(e)}var as=new Set(["originX","originY","originZ"]);function os(e){return as.has(e)}function ss(e,t){var n=t.layout,r=t.layoutId;return is(e)||os(e)||(n||void 0!==r)&&(!!Zo[e]||"opacity"===e)}var ls=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},us={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function cs(e){return e.startsWith("--")}var fs=function(e,t){return t&&"number"==typeof e?t.transform(e):e},ds=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},ps=function(e){return e%1?Number(e.toFixed(5)):e},hs=/(-)?([\d]*\.?[\d])+/g,vs=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ms=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ys(e){return"string"==typeof e}var gs=function(e){return{test:function(t){return ys(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return"".concat(t).concat(e)}}},bs=gs("deg"),ws=gs("%"),xs=gs("px"),Es=gs("vh"),Ss=gs("vw"),ks=Object.assign(Object.assign({},ws),{parse:function(e){return ws.parse(e)/100},transform:function(e){return ws.transform(100*e)}}),Cs={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},_s=Object.assign(Object.assign({},Cs),{transform:ds(0,1)}),Ts=Object.assign(Object.assign({},Cs),{default:1}),Ps=qa(qa({},Cs),{transform:Math.round}),Os={borderWidth:xs,borderTopWidth:xs,borderRightWidth:xs,borderBottomWidth:xs,borderLeftWidth:xs,borderRadius:xs,radius:xs,borderTopLeftRadius:xs,borderTopRightRadius:xs,borderBottomRightRadius:xs,borderBottomLeftRadius:xs,width:xs,maxWidth:xs,height:xs,maxHeight:xs,size:xs,top:xs,right:xs,bottom:xs,left:xs,padding:xs,paddingTop:xs,paddingRight:xs,paddingBottom:xs,paddingLeft:xs,margin:xs,marginTop:xs,marginRight:xs,marginBottom:xs,marginLeft:xs,rotate:bs,rotateX:bs,rotateY:bs,rotateZ:bs,scale:Ts,scaleX:Ts,scaleY:Ts,scaleZ:Ts,skew:bs,skewX:bs,skewY:bs,distance:xs,translateX:xs,translateY:xs,translateZ:xs,x:xs,y:xs,z:xs,perspective:xs,transformPerspective:xs,opacity:_s,originX:ks,originY:ks,originZ:xs,zIndex:Ps,fillOpacity:_s,strokeOpacity:_s,numOctaves:Ps};function js(e,t,n,r){var i,a=e.style,o=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,f=!1,d=!0;for(var p in t){var h=t[p];if(cs(p))o[p]=h;else{var v=Os[p],m=fs(h,v);if(is(p)){if(c=!0,s[p]=m,l.push(p),!d)continue;h!==(null!==(i=v.default)&&void 0!==i?i:0)&&(d=!1)}else os(p)?(u[p]=m,f=!0):a[p]=m}}c?a.transform=function(e,t,n,r){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=void 0===o||o,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(ns);for(var f=!1,d=a.length,p=0;p<d;p++){var h=a[p];c+="".concat(us[h]||h,"(").concat(i[h],") "),"z"===h&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):u&&n&&(c="none"),c}(e,n,d,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,a=e.originZ,o=void 0===a?0:a;return"".concat(n," ").concat(i," ").concat(o)}(u))}var As=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Is(e,t,n){for(var r in t)ls(t[r])||ss(r,n)||(e[r]=t[r])}function Ns(t,n,r){var i={};return Is(i,t.style||{},t),Object.assign(i,function(t,n,r){var i=t.transformTemplate;return(0,e.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};js(e,n,{enableHardwareAcceleration:!r},i);var t=e.style;return qa(qa({},e.vars),t)}),[n])}(t,n,r)),t.transformValues&&(i=t.transformValues(i)),i}function Rs(e,t,n){var r={},i=Ns(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var Ls=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Ms(e){return Ls.has(e)}var Ds,Fs=function(e){return!Ms(e)};try{(Ds=require("@emotion/is-prop-valid").default)&&(Fs=function(e){return e.startsWith("on")?!Ms(e):Ds(e)})}catch(e){}function Bs(e,t,n){return"string"==typeof e?e:xs.transform(t+n*e)}var Us={offset:"stroke-dashoffset",array:"stroke-dasharray"},zs={offset:"strokeDashoffset",array:"strokeDasharray"};function Vs(e,t,n,r){var i=t.attrX,a=t.attrY,o=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,f=t.pathOffset,d=void 0===f?0:f;js(e,Ga(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,v=e.dimensions;p.transform&&(v&&(h.transform=p.transform),delete p.transform),v&&(void 0!==o||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=Bs(t,e.x,e.width),i=Bs(n,e.y,e.height);return"".concat(r," ").concat(i)}(v,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==a&&(p.y=a),void 0!==l&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var a=i?Us:zs;e[a.offset]=xs.transform(-r);var o=xs.transform(t),s=xs.transform(n);e[a.array]="".concat(o," ").concat(s)}(p,l,c,d,!1)}var Hs=function(){return qa(qa({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Ws(t,n){var r=(0,e.useMemo)((function(){var e=Hs();return Vs(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),qa(qa({},e.attrs),{style:qa({},e.style)})}),[n]);if(t.style){var i={};Is(i,t.style,t),r.style=qa(qa({},i),r.style)}return r}function $s(t){return void 0===t&&(t=!1),function(n,r,i,a,o,s){var l=o.latestValues,u=(Jo(n)?Ws:Rs)(r,l,s),c=function(e,t,n){var r={};for(var i in e)(Fs(i)||!0===n&&Ms(i)||!t&&!Ms(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,t),f=qa(qa(qa({},c),u),{ref:a});return i&&(f["data-projection-id"]=i),(0,e.createElement)(n,f)}}var qs=/([a-z])([A-Z])/g,Gs=function(e){return e.replace(qs,"$1-$2").toLowerCase()};function Xs(e,t,n,r){var i=t.style,a=t.vars;for(var o in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(o,a[o])}var Ys=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Ks(e,t,n,r){for(var i in Xs(e,t,void 0,r),t.attrs)e.setAttribute(Ys.has(i)?i:Gs(i),t.attrs[i])}function Qs(e){var t=e.style,n={};for(var r in t)(ls(t[r])||ss(r,e))&&(n[r]=t[r]);return n}function Js(e){var t=Qs(e);for(var n in e)ls(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Zs(e){return"object"==typeof e&&"function"==typeof e.start}var el=function(e){return Array.isArray(e)},tl=function(e){return el(e)?e[e.length-1]||0:e};function nl(e){var t=ls(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function rl(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:al(t,n,r,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var il=function(t){return function(n,r){var i=(0,e.useContext)(Ro),a=(0,e.useContext)(yo);return r?rl(t,n,i,a):go((function(){return rl(t,n,i,a)}))}};function al(e,t,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(e);for(var s in o)i[s]=nl(o[s]);var l=e.initial,u=e.animate,c=Ho(e),f=Wo(e);t&&f&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var d=a||!1===l,p=d?u:l;return p&&"boolean"!=typeof p&&!Zs(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=zo(e,t);if(n){var r=n.transitionEnd;n.transition;var a=Ga(n,["transitionEnd","transition"]);for(var o in a){var s=a[o];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(i[o]=s)}for(var o in r)i[o]=r[o]}})),i}var ol,sl={useVisualState:il({scrapeMotionValuesFromProps:Js,createRenderState:Hs,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Vs(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),Ks(t,r)}})},ll={useVisualState:il({scrapeMotionValuesFromProps:Qs,createRenderState:As})};function ul(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function cl(t,n,r,i){(0,e.useEffect)((function(){var e=t.current;if(r&&e)return ul(e,n,r,i)}),[t,n,r,i])}function fl(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function dl(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(ol||(ol={}));var pl={pageX:0,pageY:0};function hl(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||pl;return{x:n[t+"X"],y:n[t+"Y"]}}function vl(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ml(e,t){return void 0===t&&(t="page"),{point:dl(e)?hl(e,t):vl(e,t)}}var yl=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,ml(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},gl={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},bl={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function wl(e){return ho&&null===window.onpointerdown?e:ho&&null===window.ontouchstart?bl[e]:ho&&null===window.onmousedown?gl[e]:e}function xl(e,t,n,r){return ul(e,wl(t),yl(n,"pointerdown"===t),r)}function El(e,t,n,r){return cl(e,wl(t),n&&yl(n,"pointerdown"===t),r)}function Sl(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var kl=Sl("dragHorizontal"),Cl=Sl("dragVertical");function _l(e){var t=!1;if("y"===e)t=Cl();else if("x"===e)t=kl();else{var n=kl(),r=Cl();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Tl(){var e=_l(!0);return!e||(e(),!1)}function Pl(e,t,n){return function(r,i){var a;fl(r)&&!Tl()&&(null===(a=e.animationState)||void 0===a||a.setActive(ol.Hover,t),null==n||n(r,i))}}var Ol=function e(t,n){return!!n&&(t===n||e(t,n.parentElement))},jl=function(e,t){return function(n){return t(e(n))}},Al=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(jl)},Il=(n(8466),new Set,new WeakMap),Nl=new WeakMap,Rl=function(e){var t;null===(t=Il.get(e.target))||void 0===t||t(e)},Ll=function(e){e.forEach(Rl)};var Ml={some:0,all:1};function Dl(t,n,r,i){var a=i.root,o=i.margin,s=i.amount,l=void 0===s?"some":s,u=i.once;(0,e.useEffect)((function(){if(t){var e={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof l?l:Ml[l]};return function(e,t,n){var r=function(e){var t=e.root,n=Ga(e,["root"]),r=t||document;Nl.has(r)||Nl.set(r,{});var i=Nl.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(Ll,qa({root:t},n))),i[a]}(t);return Il.set(e,n),r.observe(e),function(){Il.delete(e),r.unobserve(e)}}(r.getInstance(),e,(function(e){var t,i=e.isIntersecting;if(n.isInView!==i&&(n.isInView=i,!u||i||!n.hasEnteredView)){i&&(n.hasEnteredView=!0),null===(t=r.animationState)||void 0===t||t.setActive(ol.InView,i);var a=r.getProps(),o=i?a.onViewportEnter:a.onViewportLeave;null==o||o(e)}}))}}),[t,a,o,l])}function Fl(t,n,r,i){var a=i.fallback,o=void 0===a||a;(0,e.useEffect)((function(){t&&o&&requestAnimationFrame((function(){var e;n.hasEnteredView=!0;var t=r.getProps().onViewportEnter;null==t||t(null),null===(e=r.animationState)||void 0===e||e.setActive(ol.InView,!0)}))}),[t])}var Bl=function(e){return function(t){return e(t),null}},Ul={inView:Bl((function(t){var n=t.visualElement,r=t.whileInView,i=t.onViewportEnter,a=t.onViewportLeave,o=t.viewport,s=void 0===o?{}:o,l=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||i||a);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Fl:Dl)(u,l.current,n,s)})),tap:Bl((function(t){var n=t.onTap,r=t.onTapStart,i=t.onTapCancel,a=t.whileTap,o=t.visualElement,s=n||r||i||a,l=(0,e.useRef)(!1),u=(0,e.useRef)(null),c={passive:!(r||n||i||v)};function f(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function d(){var e;return f(),l.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(ol.Tap,!1),!Tl()}function p(e,t){d()&&(Ol(o.getInstance(),e.target)?null==n||n(e,t):null==i||i(e,t))}function h(e,t){d()&&(null==i||i(e,t))}function v(e,t){var n;f(),l.current||(l.current=!0,u.current=Al(xl(window,"pointerup",p,c),xl(window,"pointercancel",h,c)),null===(n=o.animationState)||void 0===n||n.setActive(ol.Tap,!0),null==r||r(e,t))}El(o,"pointerdown",s?v:void 0,c),Co(f)})),focus:Bl((function(e){var t=e.whileFocus,n=e.visualElement;cl(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ol.Focus,!0)}:void 0),cl(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ol.Focus,!1)}:void 0)})),hover:Bl((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;El(i,"pointerenter",t||r?Pl(i,!0,t):void 0,{passive:!t}),El(i,"pointerleave",n||r?Pl(i,!1,n):void 0,{passive:!n})}))};function zl(){var t=(0,e.useContext)(yo);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,i=t.register,a=xo();return(0,e.useEffect)((function(){return i(a)}),[]),!n&&r?[!1,function(){return null==r?void 0:r(a)}]:[!0]}function Vl(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Hl=function(e,t,n){return Math.min(Math.max(n,e),t)},Wl=.001;var $l=12;function ql(e,t){return e*Math.sqrt(1-t*t)}var Gl=["duration","bounce"],Xl=["stiffness","damping","mass"];function Yl(e,t){return t.some((function(t){return void 0!==e[t]}))}function Kl(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.restSpeed,o=void 0===a?2:a,s=e.restDelta,l=Ga(e,["from","to","restSpeed","restDelta"]),u={done:!1,value:n},c=function(e){var t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Yl(e,Xl)&&Yl(e,Gl)){var n=function(e){var t,n,r=e.duration,i=void 0===r?800:r,a=e.bounce,o=void 0===a?.25:a,s=e.velocity,l=void 0===s?0:s,u=e.mass,c=void 0===u?1:u,f=1-o;f=Hl(.05,1,f),i=Hl(.01,10,i/1e3),f<1?(t=function(e){var t=e*f,n=t*i,r=t-l,a=ql(e,f),o=Math.exp(-n);return Wl-r/a*o},n=function(e){var n=e*f*i,r=n*l+l,a=Math.pow(f,2)*Math.pow(e,2)*i,o=Math.exp(-n),s=ql(Math.pow(e,2),f);return(-t(e)+Wl>0?-1:1)*((r-a)*o)/s}):(t=function(e){return Math.exp(-e*i)*((e-l)*i+1)-Wl},n=function(e){return Math.exp(-e*i)*(i*i*(l-e))});var d=function(e,t,n){for(var r=n,i=1;i<$l;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var p=Math.pow(d,2)*c;return{stiffness:p,damping:2*f*Math.sqrt(c*p),duration:i}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(l),f=c.stiffness,d=c.damping,p=c.mass,h=c.velocity,v=c.duration,m=c.isResolvedFromDuration,y=Ql,g=Ql;function b(){var e=h?-h/1e3:0,t=i-n,r=d/(2*Math.sqrt(f*p)),a=Math.sqrt(f/p)/1e3;if(void 0===s&&(s=Math.min(Math.abs(i-n)/100,.4)),r<1){var o=ql(a,r);y=function(n){var s=Math.exp(-r*a*n);return i-s*((e+r*a*t)/o*Math.sin(o*n)+t*Math.cos(o*n))},g=function(n){var i=Math.exp(-r*a*n);return r*a*i*(Math.sin(o*n)*(e+r*a*t)/o+t*Math.cos(o*n))-i*(Math.cos(o*n)*(e+r*a*t)-o*t*Math.sin(o*n))}}else if(1===r)y=function(n){return i-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var l=a*Math.sqrt(r*r-1);y=function(n){var o=Math.exp(-r*a*n),s=Math.min(l*n,300);return i-o*((e+r*a*t)*Math.sinh(s)+l*t*Math.cosh(s))/l}}}return b(),{next:function(e){var t=y(e);if(m)u.done=e>=v;else{var n=1e3*g(e),r=Math.abs(n)<=o,a=Math.abs(i-t)<=s;u.done=r&&a}return u.value=u.done?i:t,u},flipTarget:function(){h=-h;var e=[i,n];n=e[0],i=e[1],b()}}}Kl.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Ql=function(e){return 0},Jl=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},Zl=function(e,t,n){return-n*e+n*t+e},eu=function(e,t){return function(n){return Boolean(ys(n)&&ms.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},tu=function(e,t,n){return function(r){var i;if(!ys(r))return r;var a=u(r.match(hs),4),o=a[0],s=a[1],l=a[2],c=a[3];return f(i={},e,parseFloat(o)),f(i,t,parseFloat(s)),f(i,n,parseFloat(l)),f(i,"alpha",void 0!==c?parseFloat(c):1),i}},nu=ds(0,255),ru=Object.assign(Object.assign({},Cs),{transform:function(e){return Math.round(nu(e))}}),iu={test:eu("rgb","red"),parse:tu("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,a=void 0===i?1:i;return"rgba("+ru.transform(t)+", "+ru.transform(n)+", "+ru.transform(r)+", "+ps(_s.transform(a))+")"}},au={test:eu("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:iu.transform},ou={test:eu("hsl","hue"),parse:tu("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,a=void 0===i?1:i;return"hsla("+Math.round(t)+", "+ws.transform(ps(n))+", "+ws.transform(ps(r))+", "+ps(_s.transform(a))+")"}};function su(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lu(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;t/=360,r/=100;var a=0,o=0,s=0;if(n/=100){var l=r<.5?r*(1+n):r+n-r*n,u=2*r-l;a=su(u,l,t+1/3),o=su(u,l,t),s=su(u,l,t-1/3)}else a=o=s=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}var uu=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},cu=[au,iu,ou],fu=function(e){return cu.find((function(t){return t.test(e)}))},du=function(e){return"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")},pu=function(e,t){var n=fu(e),r=fu(t);du(e),du(t);var i=n.parse(e),a=r.parse(t);n===ou&&(i=lu(i),n=iu),r===ou&&(a=lu(a),r=iu);var o=Object.assign({},i);return function(e){for(var t in o)"alpha"!==t&&(o[t]=uu(i[t],a[t],e));return o.alpha=Zl(i.alpha,a.alpha,e),n.transform(o)}},hu={test:function(e){return iu.test(e)||au.test(e)||ou.test(e)},parse:function(e){return iu.test(e)?iu.parse(e):ou.test(e)?ou.parse(e):au.parse(e)},transform:function(e){return ys(e)?e:e.hasOwnProperty("red")?iu.transform(e):ou.transform(e)}},vu="${c}",mu="${n}";function yu(e){"number"==typeof e&&(e="".concat(e));var t=[],n=0,r=e.match(vs);r&&(n=r.length,e=e.replace(vs,vu),t.push.apply(t,N(r.map(hu.parse))));var i=e.match(hs);return i&&(e=e.replace(hs,mu),t.push.apply(t,N(i.map(Cs.parse)))),{values:t,numColors:n,tokenised:e}}function gu(e){return yu(e).values}function bu(e){var t=yu(e),n=t.values,r=t.numColors,i=t.tokenised,a=n.length;return function(e){for(var t=i,n=0;n<a;n++)t=t.replace(n<r?vu:mu,n<r?hu.transform(e[n]):ps(e[n]));return t}}var wu=function(e){return"number"==typeof e?0:e},xu={test:function(e){var t,n,r,i;return isNaN(e)&&ys(e)&&(null!==(n=null===(t=e.match(hs))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(vs))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:gu,createTransformer:bu,getAnimatableNone:function(e){var t=gu(e);return bu(e)(t.map(wu))}},Eu=function(e){return"number"==typeof e};function Su(e,t){return Eu(e)?function(n){return Zl(e,t,n)}:hu.test(e)?pu(e,t):Tu(e,t)}var ku=function(e,t){var n=N(e),r=n.length,i=e.map((function(e,n){return Su(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},Cu=function(e,t){var n=Object.assign(Object.assign({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Su(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function _u(e){for(var t=xu.parse(e),n=t.length,r=0,i=0,a=0,o=0;o<n;o++)r||"number"==typeof t[o]?r++:void 0!==t[o].hue?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var Tu=function(e,t){var n=xu.createTransformer(t),r=_u(e),i=_u(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Al(ku(r.parsed,i.parsed),n):("Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),function(n){return"".concat(n>0?t:e)})},Pu=function(e,t){return function(n){return Zl(e,t,n)}};function Ou(e,t,n){for(var r,i=[],a=n||("number"==typeof(r=e[0])?Pu:"string"==typeof r?hu.test(r)?pu:Tu:Array.isArray(r)?ku:"object"==typeof r?Cu:void 0),o=e.length-1,s=0;s<o;s++){var l=a(e[s],e[s+1]);if(t){var u=Array.isArray(t)?t[s]:t;l=Al(u,l)}i.push(l)}return i}function ju(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,a=n.ease,o=n.mixer,s=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=Ou(t,a,o),c=2===s?function(e,t){var n=u(e,2),r=n[0],i=n[1],a=u(t,1)[0];return function(e){return a(Jl(r,i,e))}}(e,l):function(e,t){var n=e.length,r=n-1;return function(i){var a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){for(var s=1;s<n&&!(e[s]>i||s===r);s++);a=s-1}var l=Jl(e[a],e[a+1],i);return t[a](l)}}(e,l);return i?function(t){return c(Hl(e[0],e[s-1],t))}:c}var Au=function(e){return function(t){return 1-e(1-t)}},Iu=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Nu=function(e){return function(t){return t*t*((e+1)*t-e)}},Ru=function(e){return e},Lu=(2,function(e){return Math.pow(e,2)}),Mu=Au(Lu),Du=Iu(Lu),Fu=function(e){return 1-Math.sin(Math.acos(e))},Bu=Au(Fu),Uu=Iu(Bu),zu=Nu(1.525),Vu=Au(zu),Hu=Iu(zu),Wu=function(e){var t=Nu(1.525);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(),$u=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},qu=Au($u);function Gu(e,t){return e.map((function(){return t||Du})).splice(0,e.length-1)}function Xu(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.ease,o=e.offset,s=e.duration,l=void 0===s?300:s,u={done:!1,value:n},c=Array.isArray(i)?i:[n,i],f=function(e,t){return e.map((function(e){return e*t}))}(o&&o.length===c.length?o:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(c),l);function d(){return ju(f,c,{ease:Array.isArray(a)?a:Gu(c,a)})}var p=d();return{next:function(e){return u.value=p(e),u.done=e>=l,u},flipTarget:function(){c.reverse(),p=d()}}}var Yu={keyframes:Xu,spring:Kl,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,i=void 0===r?0:r,a=e.power,o=void 0===a?.8:a,s=e.timeConstant,l=void 0===s?350:s,u=e.restDelta,c=void 0===u?.5:u,f=e.modifyTarget,d={done:!1,value:i},p=o*n,h=i+p,v=void 0===f?h:f(h);return v!==h&&(p=v-i),{next:function(e){var t=-p*Math.exp(-e/l);return d.done=!(t>c||t<-c),d.value=d.done?v:v+t,d},flipTarget:function(){}}}};function Ku(e,t){return e-t-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)}var Qu=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return po.update(t,!0)},stop:function(){return oo.update(t)}}};function Ju(e){var t,n,r,i,a,o=e.from,s=e.autoplay,l=void 0===s||s,u=e.driver,c=void 0===u?Qu:u,f=e.elapsed,d=void 0===f?0:f,p=e.repeat,h=void 0===p?0:p,v=e.repeatType,m=void 0===v?"loop":v,y=e.repeatDelay,g=void 0===y?0:y,b=e.onPlay,w=e.onStop,x=e.onComplete,E=e.onRepeat,S=e.onUpdate,k=Ga(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),C=k.to,_=0,T=k.duration,P=!1,O=!0,j=function(e){if(Array.isArray(e.to))return Xu;if(Yu[e.type])return Yu[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Xu:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Kl:Xu}(k);(null===(n=(t=j).needsInterpolation)||void 0===n?void 0:n.call(t,o,C))&&(a=ju([0,100],[o,C],{clamp:!1}),o=0,C=100);var A=j(Object.assign(Object.assign({},k),{from:o,to:C}));return l&&(null==b||b(),(r=c((function(e){if(O||(e=-e),d+=e,!P){var t=A.next(Math.max(0,d));i=t.value,a&&(i=a(i)),P=O?t.done:d<=0}null==S||S(i),P&&(0===_&&(null!=T||(T=d)),_<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(d,T,g,O)&&(_++,"reverse"===m?d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?t-(e-t)+n:Ku(t+-e,t,n)}(d,T,g,O=_%2==0):(d=Ku(d,T,g),"mirror"===m&&A.flipTarget()),P=!1,E&&E()):(r.stop(),x&&x()))}))).start()),{stop:function(){null==w||w(),r.stop()}}}function Zu(e,t){return t?e*(1e3/t):0}var ec=function(e){return 1e3*e},tc=function(e,t){return 1-3*t+3*e},nc=function(e,t){return 3*t-6*e},rc=function(e){return 3*e},ic=function(e,t,n){return((tc(t,n)*e+nc(t,n))*e+rc(t))*e},ac=function(e,t,n){return 3*tc(t,n)*e*e+2*nc(t,n)*e+rc(t)},oc=.1;var sc={linear:Ru,easeIn:Lu,easeInOut:Du,easeOut:Mu,circIn:Fu,circInOut:Uu,circOut:Bu,backIn:zu,backInOut:Hu,backOut:Vu,anticipate:Wu,bounceIn:qu,bounceInOut:function(e){return e<.5?.5*(1-$u(1-2*e)):.5*$u(2*e-1)+.5},bounceOut:$u},lc=function(e){if(Array.isArray(e)){e.length;var t=Xa(e,4);return function(e,t,n,r){if(e===t&&n===r)return Ru;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=ic(a*oc,e,n);function o(t){for(var r=0,a=1;10!==a&&i[a]<=t;++a)r+=oc;--a;var o=r+(t-i[a])/(i[a+1]-i[a])*oc,s=ac(o,e,n);return s>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var a=ac(t,n,r);if(0===a)return t;t-=(ic(t,n,r)-e)/a}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){var a,o,s=0;do{(a=ic(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+oc,e,n)}return function(e){return 0===e||1===e?e:ic(o(e),t,r)}}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),sc[e]):e},uc=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!xu.test(t)||t.startsWith("url(")))},cc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},fc=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},dc=function(){return{type:"keyframes",ease:"linear",duration:.3}},pc=function(e){return{type:"keyframes",duration:.8,values:e}},hc={x:cc,y:cc,z:cc,rotate:cc,rotateX:cc,rotateY:cc,rotateZ:cc,scaleX:fc,scaleY:fc,scale:fc,opacity:dc,backgroundColor:dc,color:dc,default:fc},vc=new Set(["brightness","contrast","saturate","opacity"]);function mc(e){var t=u(e.slice(0,-1).split("("),2),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=u(r.match(hs)||[],1)[0];if(!i)return e;var a=r.replace(i,""),o=vc.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var yc=/([a-z-]*)\(.*?\)/g,gc=Object.assign(Object.assign({},xu),{getAnimatableNone:function(e){var t=e.match(yc);return t?t.map(mc).join(" "):e}}),bc=qa(qa({},Os),{color:hu,backgroundColor:hu,outlineColor:hu,fill:hu,stroke:hu,borderColor:hu,borderTopColor:hu,borderRightColor:hu,borderBottomColor:hu,borderLeftColor:hu,filter:gc,WebkitFilter:gc}),wc=function(e){return bc[e]};function xc(e,t){var n,r=wc(e);return r!==gc&&(r=xu),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Ec=!1;function Sc(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Ya([],Xa(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Ga(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=qa(qa({},e),function(e,t){var n;return n=el(t)?pc:hc[e]||hc.default,qa({to:t},n(t))}(n,t.to))),qa(qa({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,a=e.loop,o=Ga(e,["ease","times","yoyo","flip","loop"]),s=qa({},o);return n&&(s.offset=n),o.duration&&(s.duration=ec(o.duration)),o.repeatDelay&&(s.repeatDelay=ec(o.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(lc):lc(t)),"tween"===o.type&&(s.type="keyframes"),(r||a||i)&&(!0,r?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||r||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}(e))}function kc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Cc(e){return"number"==typeof e?0:xc("",e)}function _c(e,t){return e[t]||e.default||e}function Tc(e,t,n,r){return void 0===r&&(r={}),Ec&&(r={type:!1}),t.start((function(i){var a,o,s=function(e,t,n,r,i){var a,o=_c(r,e),s=null!==(a=o.from)&&void 0!==a?a:t.get(),l=uc(e,n);"none"===s&&l&&"string"==typeof n?s=xc(e,n):kc(s)&&"string"==typeof n?s=Cc(n):!Array.isArray(n)&&kc(n)&&"string"==typeof s&&(n=Cc(s));var u=uc(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),u&&l&&!1!==o.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===o.type||"decay"===o.type?function(e){var t,n=e.from,r=void 0===n?0:n,i=e.velocity,a=void 0===i?0:i,o=e.min,s=e.max,l=e.power,u=void 0===l?.8:l,c=e.timeConstant,f=void 0===c?750:c,d=e.bounceStiffness,p=void 0===d?500:d,h=e.bounceDamping,v=void 0===h?10:h,m=e.restDelta,y=void 0===m?1:m,g=e.modifyTarget,b=e.driver,w=e.onUpdate,x=e.onComplete,E=e.onStop;function S(e){return void 0!==o&&e<o||void 0!==s&&e>s}function k(e){return void 0===o?s:void 0===s||Math.abs(o-e)<Math.abs(s-e)?o:s}function C(e){null==t||t.stop(),t=Ju(Object.assign(Object.assign({},e),{driver:b,onUpdate:function(t){var n;null==w||w(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:x,onStop:E}))}function _(e){C(Object.assign({type:"spring",stiffness:p,damping:v,restDelta:y},e))}if(S(r))_({from:r,velocity:a,to:k(r)});else{var T=u*a+r;void 0!==g&&(T=g(T));var P,O,j=k(T),A=j===o?-1:1;C({type:"decay",from:r,velocity:a,timeConstant:f,power:u,restDelta:y,modifyTarget:g,onUpdate:S(T)?function(e){P=O,O=e,a=Zu(e-P,fo().delta),(1===A&&e>j||-1===A&&e<j)&&_({from:e,to:j,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(qa(qa({},r),o)):Ju(qa(qa({},Sc(o,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=o.onUpdate)||void 0===t||t.call(o,e)},onComplete:function(){var e;r.onComplete(),null===(e=o.onComplete)||void 0===e||e.call(o)}}))}:function(){var e,r,a=tl(n);return t.set(a),i(),null===(e=null==o?void 0:o.onUpdate)||void 0===e||e.call(o,a),null===(r=null==o?void 0:o.onComplete)||void 0===r||r.call(o),{stop:function(){}}}}(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(_c(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return o=s()};return l?a=window.setTimeout(u,ec(l)):u(),function(){clearTimeout(a),null==o||o.stop()}}))}var Pc=function(e){return/^0[^.\s]+$/.test(e)};function Oc(e,t){-1===e.indexOf(t)&&e.push(t)}function jc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ac=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Oc(this.subscriptions,e),function(){return jc(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Ic=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ac,this.velocityUpdateSubscribers=new Ac,this.renderSubscribers=new Ac,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=fo(),i=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=i,t.lastUpdated=a,po.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return po.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=function(e){return!isNaN(parseFloat(e))}(this.current)}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Zu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Nc(e){return new Ic(e)}var Rc=function(e){return function(t){return t.test(e)}},Lc=[Cs,xs,ws,bs,Ss,Es,{test:function(e){return"auto"===e},parse:function(e){return e}}],Mc=function(e){return Lc.find(Rc(e))},Dc=Ya(Ya([],Xa(Lc),!1),[hu,xu],!1),Fc=function(e){return Dc.find(Rc(e))};function Bc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nc(n))}function Uc(e,t){if(t)return(t[e]||t.default||t).from}function zc(e,t,n){var r;void 0===n&&(n={});var i=Vo(e,t,n.custom),a=(i||{}).transition,o=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return Vc(e,i,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=o.delayChildren,a=void 0===i?0:i,s=o.staggerChildren,l=o.staggerDirection;return function(e,t,n,r,i,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var o=[],s=(e.variantChildren.size-1)*r,l=1===i?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Hc).forEach((function(e,r){o.push(zc(e,t,qa(qa({},a),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(o)}(e,t,a+r,s,l,n)}:function(){return Promise.resolve()},u=o.when;if(u){var c=Xa("beforeChildren"===u?[s,l]:[l,s],2),f=c[0],d=c[1];return f().then(d)}return Promise.all([s(),l(n.delay)])}function Vc(e,t,n){var r,i=void 0===n?{}:n,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,l=i.type,u=e.makeTargetAnimatable(t),c=u.transition,f=void 0===c?e.getDefaultTransition():c,d=u.transitionEnd,p=Ga(u,["transition","transitionEnd"]);s&&(f=s);var h=[],v=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var m in p){var y=e.getValue(m),g=p[m];if(!(!y||void 0===g||v&&Wc(v,m))){var b=qa({delay:o},f);e.shouldReduceMotion&&is(m)&&(b=qa(qa({},b),{type:!1,delay:0}));var w=Tc(m,y,g,b);h.push(w)}}return Promise.all(h).then((function(){d&&function(e,t){var n=Vo(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var o=Ga(r,["transitionEnd","transition"]);for(var s in o=qa(qa({},o),a))Bc(e,s,tl(o[s]))}(e,d)}))}function Hc(e,t){return e.sortNodePosition(t)}function Wc(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var $c=[ol.Animate,ol.InView,ol.Focus,ol.Hover,ol.Tap,ol.Drag,ol.Exit],qc=Ya([],Xa($c),!1).reverse(),Gc=$c.length;function Xc(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map((function(t){return zc(e,t,n)}));r=Promise.all(i)}else if("string"==typeof t)r=zc(e,t,n);else{var a="function"==typeof t?Vo(e,t,n.custom):t;r=Vc(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[ol.Animate]=Yc(!0),e[ol.InView]=Yc(),e[ol.Hover]=Yc(),e[ol.Tap]=Yc(),e[ol.Drag]=Yc(),e[ol.Focus]=Yc(),e[ol.Exit]=Yc(),e}(),r={},i=!0,a=function(t,n){var r=Vo(e,n);if(r){r.transition;var i=r.transitionEnd,a=Ga(r,["transition","transitionEnd"]);t=qa(qa(qa({},t),a),i)}return t};function o(o,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set,p={},h=1/0,v=function(t){var r=qc[t],v=n[r],m=null!==(l=u[r])&&void 0!==l?l:c[r],y=Uo(m),g=r===s?v.isActive:null;!1===g&&(h=t);var b=m===c[r]&&m!==u[r]&&y;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=qa({},p),!v.isActive&&null===g||!m&&!v.prevProp||Zs(m)||"boolean"==typeof m)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Bo(t)&&!Vl(t,e)}(v.prevProp,m),x=w||r===s&&v.isActive&&!b&&y||t>h&&y,E=Array.isArray(m)?m:[m],S=E.reduce(a,{});!1===g&&(S={});var k=v.prevResolvedValues,C=void 0===k?{}:k,_=qa(qa({},C),S),T=function(e){x=!0,d.delete(e),v.needsAnimating[e]=!0};for(var P in _){var O=S[P],j=C[P];p.hasOwnProperty(P)||(O!==j?el(O)&&el(j)?!Vl(O,j)||w?T(P):v.protectedKeys[P]=!0:void 0!==O?T(P):d.add(P):void 0!==O&&d.has(P)?T(P):v.protectedKeys[P]=!0)}v.prevProp=m,v.prevResolvedValues=S,v.isActive&&(p=qa(qa({},p),S)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,Ya([],Xa(E.map((function(e){return{animation:e,options:qa({type:r},o)}}))),!1))},m=0;m<Gc;m++)v(m);if(r=qa({},p),d.size){var y={};d.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var g=Boolean(f.length);return i&&!1===u.initial&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,g?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=o(i,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Yc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Kc={animation:Bl((function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=Xc(n)),Zs(r)&&(0,e.useEffect)((function(){return r.subscribe(n)}),[r])})),exit:Bl((function(t){var n=t.custom,r=t.visualElement,i=Xa(zl(),2),a=i[0],o=i[1],s=(0,e.useContext)(yo);(0,e.useEffect)((function(){var e,t;r.isPresent=a;var i=null===(e=r.animationState)||void 0===e?void 0:e.setActive(ol.Exit,!a,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!a&&(null==i||i.then(o))}),[a])}))},Qc=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Jc=function(e){return Qc(e)&&e.hasOwnProperty("z")},Zc=function(e,t){return Math.abs(e-t)};function ef(e,t){if(Eu(e)&&Eu(t))return Zc(e,t);if(Qc(e)&&Qc(t)){var n=Zc(e.x,t.x),r=Zc(e.y,t.y),i=Jc(e)&&Jc(t)?Zc(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var tf=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=af(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=ef(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=fo().timestamp;r.history.push(qa(qa({},i),{timestamp:a}));var o=r.handlers,s=o.onStart,l=o.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=nf(t,r.transformPagePoint),fl(e)&&0===e.buttons?r.handlePointerUp(e,t):po.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=af(nf(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)},!(dl(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=nf(ml(e),this.transformPagePoint),o=a.point,s=fo().timestamp;this.history=[qa(qa({},o),{timestamp:s})];var l=t.onSessionStart;l&&l(e,af(a,this.history)),this.removeListeners=Al(xl(window,"pointermove",this.handlePointerMove),xl(window,"pointerup",this.handlePointerUp),xl(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),oo.update(this.updatePoint)},e}();function nf(e,t){return t?{point:t(e.point)}:e}function rf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function af(e,t){var n=e.point;return{point:n,delta:rf(n,sf(t)),offset:rf(n,of(t)),velocity:uf(t,.1)}}function of(e){return e[0]}function sf(e){return e[e.length-1]}function uf(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=sf(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ec(t)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function cf(e){return e.max-e.min}function ff(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ef(e,t)<n}function df(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Zl(t.min,t.max,e.origin),e.scale=cf(n)/cf(t),(ff(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Zl(n.min,n.max,e.origin)-e.originPoint,(ff(e.translate)||isNaN(e.translate))&&(e.translate=0)}function pf(e,t,n,r){df(e.x,t.x,n.x,null==r?void 0:r.originX),df(e.y,t.y,n.y,null==r?void 0:r.originY)}function hf(e,t,n){e.min=n.min+t.min,e.max=e.min+cf(t)}function vf(e,t,n){e.min=t.min-n.min,e.max=e.min+cf(t)}function mf(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function yf(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function gf(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Xa([i,r],2))[0],i=n[1]),{min:r,max:i}}var bf=.35;function wf(e,t,n){return{min:xf(e,t),max:xf(e,n)}}function xf(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Ef(e){return[e("x"),e("y")]}function Sf(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function kf(e){return void 0===e||1===e}function Cf(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!kf(t)||!kf(n)||!kf(r)}function _f(e){return Cf(e)||Tf(e.x)||Tf(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Tf(e){return e&&"0%"!==e}function Pf(e,t,n){return n+t*(e-n)}function Of(e,t,n,r,i){return void 0!==i&&(e=Pf(e,i,r)),Pf(e,n,r)+t}function jf(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Of(e.min,t,n,r,i),e.max=Of(e.max,t,n,r,i)}function Af(e,t){var n=t.x,r=t.y;jf(e.x,n.translate,n.scale,n.originPoint),jf(e.y,r.translate,r.scale,r.originPoint)}function If(e,t){e.min=e.min+t,e.max=e.max+t}function Nf(e,t,n){var r=Xa(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==t[o]?t[o]:.5,l=Zl(e.min,e.max,s);jf(e,t[i],t[a],l,t.scale)}var Rf=["x","scaleX","originX"],Lf=["y","scaleY","originY"];function Mf(e,t){Nf(e.x,t,Rf),Nf(e.y,t,Lf)}function Df(e,t){return Sf(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Ff=new WeakMap,Bf=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new tf(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(ml(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),a=i.drag,o=i.dragPropagation,s=i.onDragStart;(!a||o||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=_l(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Ef((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(ws.test(i)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(i=cf(a)*(parseFloat(i)/100))}n.originPoint[e]=i})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(ol.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,a=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var l=t.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(ol.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Uf(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?Zl(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?Zl(i,e,n.max):Math.min(e,i)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Fo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:yf(e.x,r,a),y:yf(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=bf),!1===e?e=0:!0===e&&(e=bf),{x:wf(e,"left","right"),y:wf(e,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ef((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Fo(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(e,t,n){var r=Df(e,n),i=t.scroll;return i&&(If(r.x,i.x),If(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:gf(e.x,t.x),y:gf(e.y,t.y)}}(i.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!s,s&&(o=Sf(s))}return o},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Ef((function(n){var l;if(Uf(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var f=a?200:1e6,d=a?40:1e7,p=qa(qa({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Tc(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Ef((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Ef((function(n){if(Uf(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],o=a.min,s=a.max;i.set(e[n]-Zl(o,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(Fo(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};Ef((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(e,t){var n=.5,r=cf(e),i=cf(t);return i>r?n=Jl(t.min,t.max-r,e.min):r>i&&(n=Jl(e.min,e.max-i,t.min)),Hl(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Ef((function(e){if(Uf(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;n.set(Zl(a,s,o[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Ff.set(this.visualElement,this);var n=xl(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){Fo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var o=ul(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Ef((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){o(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,a=e.dragPropagation,o=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?bf:u,f=e.dragMomentum,d=void 0===f||f;return qa(qa({},e),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:l,dragElastic:c,dragMomentum:d})},e}();function Uf(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var zf={pan:Bl((function(t){var n=t.onPan,r=t.onPanStart,i=t.onPanEnd,a=t.onPanSessionStart,o=t.visualElement,s=n||r||i||a,l=(0,e.useRef)(null),u=(0,e.useContext)(No).transformPagePoint,c={onSessionStart:a,onStart:r,onMove:n,onEnd:function(e,t){l.current=null,i&&i(e,t)}};(0,e.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),El(o,"pointerdown",s&&function(e){l.current=new tf(e,c,{transformPagePoint:u})}),Co((function(){return l.current&&l.current.end()}))})),drag:Bl((function(t){var n=t.dragControls,r=t.visualElement,i=go((function(){return new Bf(r)}));(0,e.useEffect)((function(){return n&&n.subscribe(i)}),[i,n]),(0,e.useEffect)((function(){return i.addListeners()}),[i])}))},Vf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Hf=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var d=e.parent,p=e.props,h=e.presenceId,v=e.blockInitialAnimation,m=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,w=!1,x=m.latestValues,E=m.renderState,S=function(){var e=Vf.map((function(){return new Ac})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Vf.forEach((function(r){var i,a="on"+r,o=e[a];null===(i=t[r])||void 0===i||i.call(t),o&&(t[r]=n[a](o))}))}};return e.forEach((function(e,t){n["on"+Vf[t]]=function(t){return e.add(t)},n["notify"+Vf[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Ya([],Xa(t),!1))}})),n}(),k=new Map,C=new Map,_={},T=qa({},x);function P(){g&&w&&(O(),s(g,E,p.style,D.projection))}function O(){r(D,E,x,t,p)}function j(){S.notifyUpdate(x)}function A(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&po.update(j,!1,!0)})),r=t.onRenderRequest(D.scheduleRender);C.set(e,(function(){n(),r()}))}var I=f(p);for(var N in I){var R=I[N];void 0!==x[N]&&ls(R)&&R.set(x[N],!1)}var L=Ho(p),M=Wo(p),D=qa(qa({treeType:n,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:h,shouldReduceMotion:y,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(g)},mount:function(e){w=!0,g=D.current=e,D.projection&&D.projection.mount(e),M&&d&&!L&&(b=null==d?void 0:d.addVariantChild(D)),k.forEach((function(e,t){return A(t,e)})),null==d||d.children.add(D),D.setProps(p)},unmount:function(){var e;null===(e=D.projection)||void 0===e||e.unmount(),oo.update(j),oo.render(P),C.forEach((function(e){return e()})),null==b||b(),null==d||d.children.delete(D),S.clearAllListeners(),g=void 0,w=!1},addVariantChild:function(e){var t,n=D.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(D.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?D:null==d?void 0:d.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){D.isVisible!==e&&(D.isVisible=e,D.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(D,e,p,t)},measureViewportBox:function(){return o(g,p)},addValue:function(e,t){D.hasValue(e)&&D.removeValue(e),k.set(e,t),x[e]=t.get(),A(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete x[e],u(e,E)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=Nc(t),D.addValue(e,n)),n},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){T[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!ls(t))return t}return T[e]}},S),{build:function(){return O(),E},scheduleRender:function(){po.render(P,!1,!0)},syncRender:P,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&D.scheduleRender(),p=e,S.updatePropListeners(e),_=function(e,t,n){var r;for(var i in t){var a=t[i],o=n[i];if(ls(a))e.addValue(i,a);else if(ls(o))e.addValue(i,Nc(a));else if(o!==a)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(a)}else e.addValue(i,Nc(null!==(r=e.getStaticValue(i))&&void 0!==r?r:a))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(D,f(p),_)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==d?void 0:d.getVariantContext();if(!L){var t=(null==d?void 0:d.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<$f;r++){var i=Wf[r],a=p[i];(Uo(a)||!1===a)&&(n[i]=a)}return n}});return D}},Wf=Ya(["initial"],Xa($c),!1),$f=Wf.length;function qf(e){return"string"==typeof e&&e.startsWith("var(--")}var Gf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Xf(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=Xa(function(e){var t=Gf.exec(e);if(!t)return[,];var n=Xa(t,3);return[n[1],n[2]]}(e),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():qf(a)?Xf(a,t,n+1):a}}var Yf,Kf=new Set(["width","height","top","left","right","bottom","x","y"]),Qf=function(e){return Kf.has(e)},Jf=function(e,t){e.set(t,!1),e.set(t)},Zf=function(e){return e===Cs||e===xs};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Yf||(Yf={}));var ed=function(e,t){return parseFloat(e.split(", ")[t])},td=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return ed(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?ed(o[1],e):0}},nd=new Set(["x","y","z"]),rd=ts.filter((function(e){return!nd.has(e)})),id={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:td(4,13),y:td(5,14)};function ad(e,t,n,r){return function(e){return Object.keys(e).some(Qf)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=qa({},t),r=qa({},r);var i=Object.keys(t).filter(Qf),a=[],o=!1,s=[];if(i.forEach((function(i){var l=e.getValue(i);if(e.hasValue(i)){var u,c=n[i],f=Mc(c),d=t[i];if(el(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=Mc(c);for(var v=h;v<p;v++)u?Mc(d[v]):(u=Mc(d[v]))===f||Zf(f)&&Zf(u)}else u=Mc(d);if(f!==u)if(Zf(f)&&Zf(u)){var m=l.get();"string"==typeof m&&l.set(parseFloat(m)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&u===xs&&(t[i]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==u?void 0:u.transform)&&(0===c||0===d)?0===c?l.set(u.transform(c)):t[i]=f.transform(d):(o||(a=function(e){var t=[];return rd.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],Jf(l,d))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=id[e](r,a)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Jf(r,s[n]),e[n]=id[n](l,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Xa(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var od={treeType:"dom",readValueFromInstance:function(e,t){if(is(t)){var n=wc(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(cs(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Df(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var a=t.transition,o=t.transitionEnd,s=Ga(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,a={};for(var o in e)a[o]=null!==(r=Uc(o,t))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,a,o,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],f=t[c],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(i=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==i?i:t[c]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||Pc(d))?d=parseFloat(d):!Fc(d)&&xu.test(f)&&(d=xc(c,f)),e.addValue(c,Nc(d)),null!==(a=(o=n)[c])&&void 0!==a||(o[c]=d),e.setBaseTarget(c,d))}}(e,s,l);var u=function(e,t,n,r){var i=function(e,t,n){var r,i=Ga(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=qa({},n)),e.forEachValue((function(e){var t=e.get();if(qf(t)){var n=Xf(t,a);n&&e.set(n)}})),i){var s=i[o];if(qf(s)){var l=Xf(s,a);l&&(i[o]=l,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return ad(e,t=i.target,n,r=i.transitionEnd)}(e,s,l,o);o=u.transitionEnd,s=u.target}return qa({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:Qs,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),js(t,n,r,i.transformTemplate)},render:Xs},sd=Hf(od),ld=Hf(qa(qa({},od),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return is(t)?(null===(n=wc(t))||void 0===n?void 0:n.default)||0:(t=Ys.has(t)?t:Gs(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Js,build:function(e,t,n,r,i){Vs(t,n,r,i.transformTemplate)},render:Ks})),ud=function(e,t){return Jo(e)?ld(t,{enableHardwareAcceleration:!1}):sd(t,{enableHardwareAcceleration:!0})};function cd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var fd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!xs.test(e))return e;e=parseFloat(e)}var n=cd(e,t.target.x),r=cd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},dd="_$css",pd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(Gf,(function(e){return o.push(e),dd})));var s=xu.parse(e);if(s.length>5)return i;var l=xu.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,f=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=f;var d=Zl(c,f,.5);"number"==typeof s[2+u]&&(s[2+u]/=d),"number"==typeof s[3+u]&&(s[3+u]/=d);var p=l(s);if(a){var h=0;p=p.replace(dd,(function(){var e=o[h];return h++,e}))}return p}},hd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $a(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=vd,Object.assign(Zo,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==a?void 0:a.register)&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(qa(qa({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),qo.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||po.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(e.Component),vd={borderRadius:qa(qa({},fd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:fd,borderTopRightRadius:fd,borderBottomLeftRadius:fd,borderBottomRightRadius:fd,boxShadow:pd},md={measureLayout:function(t){var n=Xa(zl(),2),r=n[0],i=n[1],a=(0,e.useContext)(ko);return e.createElement(hd,qa({},t,{layoutGroup:a,switchLayoutGroup:(0,e.useContext)(Xo),isPresent:r,safeToRemove:i}))}},yd=["TopLeft","TopRight","BottomLeft","BottomRight"],gd=yd.length,bd=function(e){return"string"==typeof e?parseFloat(e):e},wd=function(e){return"number"==typeof e||xs.test(e)};function xd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Ed=kd(0,.5,Bu),Sd=kd(.5,.95,Ru);function kd(e,t,n){return function(r){return r<e?0:r>t?1:n(Jl(e,t,r))}}function Cd(e,t){e.min=t.min,e.max=t.max}function _d(e,t){Cd(e.x,t.x),Cd(e.y,t.y)}function Td(e,t,n,r,i){return e=Pf(e-=t,1/n,r),void 0!==i&&(e=Pf(e,1/i,r)),e}function Pd(e,t,n,r,i){var a=Xa(n,3),o=a[0],s=a[1],l=a[2];!function(e,t,n,r,i,a,o){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===o&&(o=e),ws.test(t)&&(t=parseFloat(t),t=Zl(o.min,o.max,t/100)-o.min),"number"==typeof t){var s=Zl(a.min,a.max,r);e===a&&(s-=t),e.min=Td(e.min,t,n,s,i),e.max=Td(e.max,t,n,s,i)}}(e,t[o],t[s],t[l],t.scale,r,i)}var Od=["x","scaleX","originX"],jd=["y","scaleY","originY"];function Ad(e,t,n,r){Pd(e.x,t,Od,null==n?void 0:n.x,null==r?void 0:r.x),Pd(e.y,t,jd,null==n?void 0:n.y,null==r?void 0:r.y)}function Id(e){return 0===e.translate&&1===e.scale}function Nd(e){return Id(e.x)&&Id(e.y)}function Rd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Ld=function(){function e(){this.members=[]}return e.prototype.add=function(e){Oc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(jc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Md(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,s=n.rotateX,l=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),l&&(a+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(u,", ").concat(c,")"))?"none":a}var Dd=function(e,t){return e.depth-t.depth},Fd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Oc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){jc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Dd),this.isDirty=!1,this.children.forEach(e)},e}();function Bd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(qd),i.nodes.forEach(Gd)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Ya(Ya([],Xa(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ac),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Ya([],Xa(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,o=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||o)&&(this.isLayoutDirty=!0),t){var u,c=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),qo.hasAnimatedSinceResize&&(qo.hasAnimatedSinceResize=!1,i.nodes.forEach($d))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&l&&(o||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,o,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,f=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var d=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:Zd,p=l.getProps(),h=p.onLayoutAnimationStart,v=p.onLayoutAnimationComplete,m=!i.targetLayout||!Rd(i.targetLayout,f)||c,y=!u&&c;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||y||u&&(m||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,y);var g=qa(qa({},_c(d,"layout")),{onPlay:h,onComplete:v});l.shouldReduceMotion&&(g.delay=0,g.type=!1),i.startAnimation(g)}else u||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(o=(a=i.options).onExitComplete)||void 0===o||o.call(a));i.targetLayout=f}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,oo.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Xd))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var a=this.path[i];a.shouldResetTransform=!0,a.updateScroll()}var o=this.options,s=o.layoutId,l=o.layout;if(void 0!==s||l){var u=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Hd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ep),this.potentialNodes.clear()),this.nodes.forEach(Wd),this.nodes.forEach(Ud),this.nodes.forEach(zd),this.clearAllSnapshots(),so.update(),so.preRender(),so.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Vd),this.sharedNodes.forEach(Yd)},e.prototype.scheduleUpdateProjection=function(){po.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;po.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));np(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();np(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Nd(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),o=i!==this.prevTransformTemplateValue;t&&(n||_f(this.latestValues)||o)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(If(t.x,n.x),If(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};_d(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,a=r.options,o=r.isScrollRoot;if(r!==this.root&&i&&a.layoutScroll){if(o){_d(t,e);var s=this.root.scroll;s&&(If(t.x,-s.x),If(t.y,-s.y))}If(t.x,i.x),If(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};_d(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Mf(n,{x:-i.scroll.x,y:-i.scroll.y}),_f(i.latestValues)&&Mf(n,i.latestValues)}return _f(this.latestValues)&&Mf(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};_d(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&_f(i.latestValues)){Cf(i.latestValues)&&i.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};_d(a,i.measure()),Ad(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,a)}}return _f(this.latestValues)&&Ad(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=qa(qa(qa({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,a=i.layout,o=i.layoutId;this.layout&&(a||o)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},mf(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),_d(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,hf(t.x,n.x,r.x),hf(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):_d(this.target,this.layout.actual),Af(this.target,this.targetDelta)):_d(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},mf(this.relativeTargetOrigin,this.target,this.relativeParent.target),_d(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!_f(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();_d(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,a;void 0===r&&(r=!1);var o=n.length;if(o){var s,l;t.x=t.y=1;for(var u=0;u<o;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(a=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Mf(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Af(e,l)),r&&_f(s.latestValues)&&Mf(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var a=i.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var o=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;pf(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Md(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},o=qa({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==i?void 0:i.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(Jd));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i,d,p,h,v=t/1e3;Kd(s.x,e.x,v),Kd(s.y,e.y,v),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(mf(l,r.layout.actual,r.relativeParent.layout.actual),i=r.relativeTarget,d=r.relativeTargetOrigin,p=l,h=v,Qd(i.x,d.x,p.x,h),Qd(i.y,d.y,p.y,h)),u&&(r.animationValues=o,function(e,t,n,r,i,a){var o,s,l,u;i?(e.opacity=Zl(0,null!==(o=n.opacity)&&void 0!==o?o:1,Ed(r)),e.opacityExit=Zl(null!==(s=t.opacity)&&void 0!==s?s:1,0,Sd(r))):a&&(e.opacity=Zl(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<gd;c++){var f="border".concat(yd[c],"Radius"),d=xd(t,f),p=xd(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||wd(d)===wd(p)?(e[f]=Math.max(Zl(bd(d),bd(p),r),0),(ws.test(p)||ws.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=Zl(t.rotate||0,n.rotate||0,r))}(o,a,r.latestValues,v,f,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=v},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(oo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=po.update((function(){qo.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=ls(0)?0:Nc(0);return Tc("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,qa(qa({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(_d(t,n),Mf(t,i),pf(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ld),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<es.length;r++){var i="rotate"+es[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,a,o;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=nl(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=nl(e.pointerEvents)||""),this.hasProjected&&!_f(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var f=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Md(this.projectionDeltaWithTransform,this.treeScale,f),l&&(s.transform=l(f,s.transform));var d=this.projectionDelta,p=d.x,h=d.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(i=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=u===this?null!==(a=f.opacity)&&void 0!==a?a:"":null!==(o=f.opacityExit)&&void 0!==o?o:0,Zo)if(void 0!==f[v]){var m=Zo[v],y=m.correct,g=m.applyTo,b=y(f[v],u);if(g)for(var w=g.length,x=0;x<w;x++)s[g[x]]=b;else s[v]=b}return this.options.layoutId&&(s.pointerEvents=u===this?nl(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Hd),this.root.sharedNodes.clear()},e}()}function Ud(e){e.updateLayout()}function zd(e){var t,n,r,i,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var o=e.layout,s=o.actual,l=o.measured;"size"===e.options.animationType?Ef((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=cf(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Ef((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=cf(s[e]);t.max=t.min+n}));var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};pf(u,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?pf(c,e.applyTransform(l,!0),a.measured):pf(c,s,a.layout);var f=!Nd(u),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,v=p.layout;if(h&&v){var m={x:{min:0,max:0},y:{min:0,max:0}};mf(m,a.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};mf(y,s,v.actual),Rd(m,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function Vd(e){e.clearSnapshot()}function Hd(e){e.clearMeasurements()}function Wd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function $d(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function qd(e){e.resolveTargetDelta()}function Gd(e){e.calcProjection()}function Xd(e){e.resetRotation()}function Yd(e){e.removeLeadSnapshot()}function Kd(e,t,n){e.translate=Zl(t.translate,0,n),e.scale=Zl(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qd(e,t,n,r){e.min=Zl(t.min,n.min,r),e.max=Zl(t.max,n.max,r)}function Jd(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Zd={duration:.45,ease:[.4,0,.1,1]};function ep(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function tp(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function np(e){tp(e.x),tp(e.y)}var rp=Bd({attachResizeListener:function(e,t){return ul(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ip={current:void 0},ap=Bd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!ip.current){var e=new rp(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ip.current=e}return ip.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),op=qa(qa(qa(qa({},Kc),Ul),zf),md),sp=function(e){function t(t,n){return void 0===n&&(n={}),Ko(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}((function(e,t){return function(e,t,n,r,i){var a=t.forwardMotionProps,o=void 0!==a&&a,s=Jo(e)?sl:ll;return qa(qa({},s),{preloadedFeatures:n,useRender:$s(o),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,op,ud,ap)})),lp={"toast-container":"Toasts_toast-container__y-Lf4",toast:"Toasts_toast__XCKjV",success:"Toasts_success__-Nlb6",info:"Toasts_info__WN7dx",warning:"Toasts_warning__D7Z9u",error:"Toasts_error__KRbGr","toast-content":"Toasts_toast-content__9jW74","icon-container":"Toasts_icon-container__x7hY3","text-container":"Toasts_text-container__6fxjF",text:"Toasts_text__DpqMN",detail:"Toasts_detail__iz+1a","dismiss-btn":"Toasts_dismiss-btn__dK4qJ",icon:"Toasts_icon__WpL+z",spinner:"Toasts_spinner__54CjX",slider:"Toasts_slider__Uv4U7"},up={success:"😊",info:"🔔",warning:"😮",error:"😢"},cp=function(t){var n,r=t.toast,i=(0,e.useContext)(He).dispatch,a=u((0,e.useState)(!1),2),o=a[0],s=a[1],l=(0,e.useRef)(null);(0,e.useEffect)((function(){var e,t;return r.timeoutMs&&(e=setTimeout((function(){return i(qe(r.id))}),300+r.timeoutMs),t=setTimeout((function(){return s(!0)}),300)),function(){clearTimeout(e),clearTimeout(t)}}),[i,r.id,r.timeoutMs]);var c=(0,e.useCallback)((function(){return o?"0%":"100%"}),[o]);return(0,x.jsxs)("div",{className:S(lp.toast,lp[r.type],r.className),children:[(0,x.jsxs)("div",{className:lp["toast-content"],children:[!r.hideIcon&&(0,x.jsx)("div",{className:S(lp["icon-container"],lp[r.type]),children:null!==(n=r.icon)&&void 0!==n?n:up[r.type]}),(0,x.jsxs)("div",{className:lp["text-container"],children:[r.text&&(0,x.jsx)("div",{className:S(lp.text,"tt-toast-text"),children:r.text}),r.detail&&(0,x.jsx)("div",{className:lp.detail,children:r.detail}),r.jsx&&(0,x.jsx)("div",{children:r.jsx})]}),!r.hideDismissBtn&&!r.showSpinner&&(0,x.jsx)("div",{className:lp["dismiss-btn"],onClick:function(){i(qe(r.id))},children:(0,x.jsx)("i",{className:S("far fa-times-circle",lp.icon)})}),r.showSpinner&&(0,x.jsx)("div",{className:lp.spinner,children:(0,x.jsx)("i",{className:"fas fa-circle-notch fa-spin"})})]}),r.timeoutMs&&(0,x.jsx)("div",{children:(0,x.jsx)("div",{ref:l,className:S(lp.slider,lp[r.type]),style:{width:c(),transitionDuration:"".concat(r.timeoutMs,"ms")}})})]})},fp=function(t){sa(t);var n=(0,e.useContext)(He).state;return(0,x.jsx)("div",{className:S(lp["toast-container"]),children:(0,x.jsx)(To,{children:n.toasts.map((function(e){return(0,x.jsx)(sp.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,transition:{duration:.2}},children:(0,x.jsx)(cp,{toast:e})},e.id)}))})})},dp=["/teachertool/catalog-shared.json","/teachertool/catalog.json"];function pp(){return hp.apply(this,arguments)}function hp(){return(hp=o(i().mark((function e(){var t,n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ve(),n=t.dispatch,e.next=3,ot(dp,"criteria");case 3:(r=e.sent).forEach((function(e){var t;null===(t=e.params)||void 0===t||t.forEach((function(e){e.name=e.name.toLocaleLowerCase()})),e.tags&&0!==e.tags.length||(e.tags=[m.Other])})),n(Ye(r));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var vp=["/teachertool/validator-plans.json","/teachertool/validator-plans-shared.json"];function mp(){return yp.apply(this,arguments)}function yp(){return(yp=o(i().mark((function e(){var t,n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ve(),n=t.dispatch,e.next=3,ot(vp,"validatorPlans");case 3:r=e.sent,n(Ke(r));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gp(){return bp.apply(this,arguments)}function bp(){return(bp=o(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Se();case 2:(t=e.sent)?(re("Loading last active checklist...",t),(n=an(t)).valid||_t(_("error",lf("Some criteria could not be loaded."))),pn(p(p({},t),{},{criteria:n.validCriteria}))):re("No last active checklist to load.");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var wp=function(e){var n=e.children,r=e.id,i=e.className,a=e.ariaLabel,o=e.ariaHidden,s=e.ariaDescribedBy,l=e.role,u=e.title,c=e.leftIcon,f=e.helpUrl,d=e.actions,p=e.onClose,h=e.parentElement,v=e.fullscreen,m=e.hideDismissButton,y=function(e){p&&p()},g=S("common-modal-container",v&&"fullscreen",i);return t.createPortal((0,x.jsx)(ht,{className:g,onEscape:y,children:(0,x.jsxs)("div",{id:r,className:"common-modal",role:l||"dialog","aria-hidden":o,"aria-label":a,"aria-describedby":s,"aria-labelledby":"modal-title",children:[(0,x.jsxs)("div",{className:"common-modal-header",children:[v&&!m&&(0,x.jsx)("div",{className:"common-modal-back",children:(0,x.jsx)(ft,{className:"menu-button",onClick:y,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,x.jsxs)("div",{id:"modal-title",className:"common-modal-title",children:[c&&(0,x.jsx)("i",{className:c,"aria-hidden":!0}),u]}),v&&f&&(0,x.jsx)("div",{className:"common-modal-help",children:(0,x.jsx)(ft,{className:"menu-button",title:lf("Help on {0} dialog",u),href:e.helpUrl,onClick:function(){},rightIcon:"fas fa-question"})}),!v&&!m&&(0,x.jsx)("div",{className:"common-modal-close",children:(0,x.jsx)(ft,{className:"menu-button inverted",onClick:y,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,x.jsx)("div",{className:"common-modal-body",children:n}),(null==d?void 0:d.length)&&(0,x.jsx)("div",{className:"common-modal-footer",children:d.map((function(e,t){var n;return(0,x.jsx)(ft,{className:null!==(n=e.className)&&void 0!==n?n:"primary inverted",disabled:e.disabled,onClick:e.onClick,href:e.url,label:e.label,title:e.label,rightIcon:(e.xicon?"xicon ":"")+e.icon,leftIcon:e.leftIcon},t)}))})]})}),h||document.getElementById("root")||document.body)};function xp(e,t){return Ep.apply(this,arguments)}function Ep(){return(Ep=o(i().mark((function e(t,n){var r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pa(t);case 2:return(r=e.sent)&&(re("Loading checklist from file...",{file:t,checklist:r}),(a=an(r)).valid||(r=n?p(p({},r),{},{criteria:a.validCriteria}):void 0)),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Sp,kp={"notice-label-background":"NoticeLabel_notice-label-background__S8h7b","notice-label-container":"NoticeLabel_notice-label-container__gKJ5B","error-notice-label-container":"NoticeLabel_error-notice-label-container__jM73c","warning-notice-label-container":"NoticeLabel_warning-notice-label-container__zMjO-","info-notice-label-container":"NoticeLabel_info-notice-label-container__YPcBC","neutral-notice-label-container":"NoticeLabel_neutral-notice-label-container__KB8v8",icon:"NoticeLabel_icon__IXZIF"},Cp=function(e){var t=void 0;switch(e.severity){case"info":t="fas fa-exclamation-circle";break;case"warning":t="fas fa-exclamation-triangle";break;case"error":t="fas fa-times"}return(0,x.jsx)("div",{className:kp["notice-label-background"],children:(0,x.jsxs)("div",{className:S(kp["notice-label-container"],kp["".concat(e.severity,"-notice-label-container")]),children:["neutral"!==e.severity&&(0,x.jsx)("i",{className:S(t,kp.icon)}),(0,x.jsx)("label",{className:"notice-label",children:e.children})]})})},_p=function(t){var n=t.onFileDroppedAsync,r=t.errorMessage,i=u((0,e.useState)(!1),2),a=i[0],o=i[1],s=u((0,e.useState)(0),2),l=s[0],c=s[1],f=(0,e.useRef)(null);function d(e){c(l+1),n(e)}return(0,x.jsxs)("div",{className:"DragAndDropFileSurface_drag-and-drop-file-surface__CGJg4",onDragEnter:function(e){e.stopPropagation(),e.preventDefault(),o(!0)},children:[(0,x.jsxs)("div",{className:"DragAndDropFileSurface_instruction-container__WjVOu",children:[(0,x.jsx)("i",{className:S("fas fa-file-upload","DragAndDropFileSurface_upload-icon__gZxir")}),(0,x.jsx)("div",{className:"no-select",children:a?m.ReleaseToUpload:m.DragAndDrop}),(0,x.jsxs)("div",{className:"DragAndDropFileSurface_or-browse-container__Q8Y6R",children:[(0,x.jsx)("span",{className:"DragAndDropFileSurface_or-container__lvbPp",children:lf("or")}),(0,x.jsx)(ft,{className:S("link-button","DragAndDropFileSurface_browse-button__BZ1Qx"),title:m.Browse,onClick:function(){var e;return null==f||null===(e=f.current)||void 0===e?void 0:e.click()},children:m.Browse}),(0,x.jsx)("input",{type:"file",ref:f,className:"hidden",onChange:function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];n&&d(n)},"aria-label":m.SelectChecklistFile,accept:".json"})]})]}),r&&(0,x.jsx)("div",{className:"DragAndDropFileSurface_error-label-container__iWbcy",role:"alert",title:r,children:(0,x.jsx)(Cp,{severity:"error",children:r})},l),(0,x.jsx)("div",{className:S("DragAndDropFileSurface_droppable-surface__AEZcb",a?"DragAndDropFileSurface_dragging__x+kg6":void 0),onDrop:function(e){e.stopPropagation(),e.preventDefault(),o(!1);var t=e.dataTransfer.files[0];t&&d(t)},onDragLeave:function(e){e.stopPropagation(),e.preventDefault(),o(!1)},onDragOver:function(e){e.stopPropagation(),e.preventDefault()}})]})},Tp=function(){var t,n=(0,e.useContext)(He).state,r=u((0,e.useState)(void 0),2),a=r[0],s=r[1];function l(){s(void 0),kt()}function c(){return(c=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xp(t,!1);case 2:(n=e.sent)?(s(void 0),l(),hn(n)):s(m.InvalidChecklistFile);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return"import-checklist"===(null===(t=n.modalOptions)||void 0===t?void 0:t.modal)?(0,x.jsx)(wp,{title:m.ImportChecklist,onClose:l,className:"ImportChecklistModal_import-checklist-modal__dbQFL",children:(0,x.jsx)("div",{className:"ImportChecklistModal_import-checklist__AYZta",children:(0,x.jsx)(_p,{onFileDroppedAsync:function(e){return c.apply(this,arguments)},errorMessage:a})})}):null},Pp=function(){var t=(0,e.useContext)(He).state,n=u((0,e.useState)(void 0),2),r=n[0],i=n[1];function a(){var e;kt(),null==r||null===(e=r.onCancel)||void 0===e||e.call(r)}(0,e.useEffect)((function(){var e;"confirmation"===(null===(e=t.modalOptions)||void 0===e?void 0:e.modal)?i(t.modalOptions):i(void 0)}),[t.modalOptions]);var o=[{label:m.Cancel,className:"secondary",onClick:a},{label:m.Continue,className:"primary",onClick:function(){var e;kt(),null==r||null===(e=r.onContinue)||void 0===e||e.call(r)}}];return r?(0,x.jsx)(wp,{title:r.title,onClose:a,actions:o,children:r.message}):null},Op=function(e){var t,n=e.id,r=e.className,i=e.role,a=e.src,o=e.alt,s=e.title,l=e.ariaLabel,u=e.ariaHidden,c=e.ariaDescribedBy,f=e.loadingElement;return function(){if(!Sp){Sp=new IntersectionObserver((function(e){e.forEach((function(e){if(e.intersectionRatio>0){Sp.unobserve(e.target);var t=e.target.getAttribute("data-src");e.target.src=t;var n=e.target;n.src=t,n.onload=function(){n.parentElement.classList.add("loaded"),n.parentElement.classList.remove("error")},n.onerror=function(){n.parentElement.classList.add("error"),n.parentElement.classList.remove("loaded")}}}))}),{rootMargin:"50px 0px",threshold:.01})}}(),(0,x.jsxs)("div",{className:"common-lazy-image-wrapper",children:[(0,x.jsx)("div",{className:"loading-element",children:f||(0,x.jsx)("div",{className:"common-spinner"})}),(0,x.jsx)("img",{id:n,ref:function(e){e&&(t&&Sp.unobserve(t),t=e,Sp.observe(e))},className:r,"data-src":a,alt:o,title:s,role:i,"aria-label":l,"aria-hidden":u,"aria-describedby":c}),(0,x.jsx)("i",{className:"fas fa-image","aria-hidden":!0})]})};function jp(e){return Ap.apply(this,arguments)}function Ap(){return(Ap=o(i().mark((function e(t){var n,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Ve(),r=n.state,t.blockId){e.next=3;break}return e.abrupt("return");case 3:if(!r.blockImageCache[t.blockId]){e.next=6;break}return e.abrupt("return");case 6:if(!t.blockXml){e.next=12;break}return e.next=9,Pi(t.blockXml);case 9:e.t0=e.sent,e.next=15;break;case 12:return e.next=14,ji(t.blockId);case 14:e.t0=e.sent;case 15:(a=e.t0)&&(0,Ve().dispatch)(Je(t.blockId,a));case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ip(){return(Ip=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.blocks?pxt.Util.promisePoolAsync(4,t.blocks,function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jp(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):Promise.resolve());case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Np="BlockPickerModal_bottom-border__0nTNr",Rp=function(t){var n,r=t.block,i=(t.category,t.onBlockSelected),a=(0,e.useContext)(He).state,o=r.blockId?a.blockImageCache[r.blockId]:void 0,s=(0,x.jsx)("div",{className:"BlockPickerModal_block-placeholder__i+3Wr",children:A(r.name)});return(0,x.jsx)(ft,{className:"BlockPickerModal_block-button__3rKXi",title:null!==(n=r.jsDoc)&&void 0!==n?n:A(r.name),ariaLabel:r.name,label:o?(0,x.jsx)(Op,{src:o,alt:r.name,loadingElement:s,ariaHidden:!0}):s,onClick:function(){return i(r)}})},Lp=function(t){var n=t.category,r=t.onBlockSelected,i=u((0,e.useState)(!1),2),a=i[0],o=i[1];function s(e){null==r||r(e)}var l=n.color?{"--category-color":n.color}:{},c="".concat(n.name,"-block-list");return n.name&&n.blocks&&n.blocks.length>0?(0,x.jsx)("div",{className:Np,children:(0,x.jsxs)("div",{className:"BlockPickerModal_category-container__+Gqcm",style:l,children:[(0,x.jsx)(ft,{className:S("BlockPickerModal_category-button__Qn83F",a?Np:void 0),title:n.name,label:pxt.Util.capitalize(n.name),onClick:function(){a||function(e){Ip.apply(this,arguments)}(n),o(!a)},ariaExpanded:a,ariaControls:c}),(0,x.jsx)(dt,{id:c,role:"group",ariaLabel:lf("{0} Blocks",n.name),className:S("BlockPickerModal_category-block-list__71uBq",a?"BlockPickerModal_expanded__wJ-8m":"BlockPickerModal_collapsed__-7UXk"),children:n.blocks.map((function(e){return(0,x.jsx)(Rp,{block:e,category:n,onBlockSelected:s},e.blockId)}))})]})}):null},Mp=function(){return(0,x.jsx)("div",{className:"BlockPickerModal_loading-container__UaRXi",children:(0,x.jsx)("div",{className:"common-spinner"})})},Dp=function(t){sa(t);var n=(0,e.useContext)(He).state,r=u((0,e.useState)(void 0),2),i=r[0],a=r[1];(0,e.useEffect)((function(){var e;"block-picker"===(null===(e=n.modalOptions)||void 0===e?void 0:e.modal)?a(n.modalOptions):a(void 0)}),[n.modalOptions]);var o=[{label:m.Cancel,className:"secondary",onClick:kt}];return i?(0,x.jsxs)(wp,{className:"BlockPickerModal_block-picker-modal__2YDwQ",title:m.SelectBlock,onClose:kt,actions:o,children:[n.toolboxCategories&&Object.values(n.toolboxCategories).map((function(e){return(0,x.jsx)(Lp,{category:e,onBlockSelected:function(e){return function(e){i?di(i.criteriaInstanceId,i.paramName,e.blockId):ne(Z.selectedBlockWithoutOptions,"Block selected without block picker options."),kt()}(e)}},e.name)})),!n.toolboxCategories&&(0,x.jsx)(Mp,{})]}):null},Fp=function(){var t=(0,e.useContext)(He).state;return(0,x.jsx)(x.Fragment,{children:t.screenReaderAnnouncement&&(0,x.jsx)("div",{className:"ActionAnnouncer_sr-only__YUu-E","aria-live":"polite",children:t.screenReaderAnnouncement})})},Bp=function(e){var t=e.id,n=e.className,r=e.ariaHidden,i=e.ariaLabel,a=e.role,o=e.isChecked,s=e.onChange,l=e.label;return(0,x.jsxs)("div",{className:S("common-checkbox",n),children:[(0,x.jsx)("input",{id:t,tabIndex:0,type:"checkbox",checked:o,onChange:function(){s(!o)},onKeyDown:E,role:a,"aria-hidden":r,"aria-label":i}),l&&(0,x.jsx)("label",{htmlFor:t,children:l})]})},Up=function(t){var n,r,i=t.onSignIn,a=t.onClose,o=t.appMessage,s=t.dialogMessages,l=t.hideDismissButton,c=s||{signInMessage:lf("Sign in to save your progress and access your work anytime, anywhere."),signUpMessage:lf("Join now to save your progress and access your work anytime, anywhere.")},f=c.signInMessage,d=c.signUpMessage,p=null!==(n=t.resolvePath)&&void 0!==n?n:function(e){return e},h=u(e.useState(!1),2),v=h[0],m=h[1],y=u(e.useState(null!==(r=t.mode)&&void 0!==r?r:"signin"),2),g=y[0],b=y[1],w=e.useMemo((function(){return"signin"===g?lf("Sign in"):lf("Sign up")}),[g]),E=e.useMemo((function(){return"signin"===g?f:d}),[g,f,d]),S=e.useMemo((function(){return"signin"===g?(0,x.jsxs)("div",{className:"switch",children:[(0,x.jsx)("span",{children:lf("Don't have an account?")}),(0,x.jsx)(ft,{className:"link-button",onClick:function(){return b("signup")},title:lf("Sign up"),label:lf("Sign up")})]}):(0,x.jsxs)("div",{className:"switch",children:[(0,x.jsx)("span",{children:lf("Have an account?")}),(0,x.jsx)(ft,{className:"link-button",onClick:function(){return b("signin")},title:lf("Sign in"),label:lf("Sign in")})]})}),[g]);return(0,x.jsx)(wp,{title:w,onClose:a,hideDismissButton:l,children:(0,x.jsxs)("div",{className:"signin-form",children:[(0,x.jsxs)("div",{className:"signin-header",children:[o||void 0," ",E]}),(0,x.jsx)("div",{className:"signin-body",children:(0,x.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map((function(e,t){var n="signin"===g?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name);return(0,x.jsx)(ft,{className:"teal inverted provider",onClick:function(){return i(e,v)},title:n,ariaLabel:n,label:(0,x.jsxs)("div",{className:"label",children:[(0,x.jsx)("div",{children:(0,x.jsx)("img",{className:"logo",src:p(e.icon)})}),(0,x.jsx)("div",{className:"title",children:n})]})},t)})),(0,x.jsx)("div",{className:"rememberme",children:(0,x.jsx)(Bp,{id:"rememberme",label:lf("Remember me"),isChecked:v,onChange:m})})]})}),(0,x.jsxs)("div",{className:"signin-footer",children:[S,(0,x.jsx)("div",{className:"learn",children:(0,x.jsx)(en,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})},zp=function(){var t;return"sign-in"===(null===(t=(0,e.useContext)(He).state.modalOptions)||void 0===t?void 0:t.modal)?(0,x.jsx)(Up,{onClose:kt,onSignIn:function(){var e=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Lt(t.id,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),dialogMessages:{signInMessage:lf("Sign in to use MakeCode Code Evaluation."),signUpMessage:lf("Sign up to use MakeCode Code Evaluation.")},hideDismissButton:!0}):null},Vp={"signed-out-container":"SignedOutPanel_signed-out-container__zVi8m","signed-out-panel":"SignedOutPanel_signed-out-panel__ETF9s"},Hp=function(){return(0,x.jsx)("div",{className:Vp["signed-out-container"],children:(0,x.jsxs)("div",{className:Vp["signed-out-panel"],children:[(0,x.jsx)("h1",{children:lf("Sign In Required")}),(0,x.jsx)("div",{children:lf("Sign in is required to use this tool.")}),(0,x.jsx)(ft,{className:S("primary",Vp["sign-in-button"]),rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:function(){pxt.tickEvent(g.SignedOutPanelSignIn),mt({modal:"sign-in"})}})]})})},Wp=function(){var t=(0,e.useContext)(He),n=t.state,r=t.dispatch,a=u((0,e.useState)(!1),2),s=a[0],l=a[1],c=u((0,e.useState)(!1),2),f=c[0],d=c[1],p=function(t,n){var r=u((0,e.useState)(!1),2),i=r[0],a=r[1];return(0,e.useEffect)((function(){t.then(a)}),[]),i}(ze);return(0,e.useEffect)((function(){p&&!s&&Promise.resolve().then(o(i().mark((function e(){var t,n,a,o,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rt();case 2:return n=e.sent,r({type:"SET_TARGET_CONFIG",config:n||{}}),pxt.BrowserUtils.initTheme(),e.next=7,pp();case 7:return e.next=9,mp();case 9:return e.next=11,gp();case 11:if(l(!0),!(a=null===(t=window.location.href.match(/project=([^&]+)/))||void 0===t?void 0:t[1])){e.next=19;break}if(o=decodeURIComponent(a),!(s=pxt.Cloud.parseScriptId(o))){e.next=19;break}return e.next=19,Sa(o,s);case 19:re("App initialized");case 20:case"end":return e.stop()}}),e)}))))}),[p,s]),(0,e.useEffect)((function(){function e(){return(e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,At();case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),ne(Z.authCheckFailed),re("Auth check failed details",e.t0);case 9:d(!0);case 10:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),s&&f?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Ft,{}),n.userProfile?(0,x.jsx)(Ha,{}):(0,x.jsx)(Hp,{}),(0,x.jsx)(zp,{}),(0,x.jsx)(Tp,{}),(0,x.jsx)(Pp,{}),(0,x.jsx)(Dp,{}),(0,x.jsx)(fp,{}),(0,x.jsx)(Fp,{})]}):(0,x.jsx)("div",{className:"ui active dimmer",children:(0,x.jsx)("div",{className:"ui large main loader msft"})})},$p=n(8466);window.addEventListener("DOMContentLoaded",(function(){var n=window.pxtTargetBundle,r=pxt.Util.parseQueryString(window.location.href.toLowerCase());pxt.options.debug="1"==r.dbg,pxt.options.debug&&(pxt.debug=$p.debug),"1"==r.consoleticks||"verbose"==r.consoleticks?pxt.analytics.consoleTicks=pxt.analytics.ConsoleTickOptions.Verbose:"2"!=r.consoleticks&&"short"!=r.consoleticks||(pxt.analytics.consoleTicks=pxt.analytics.ConsoleTickOptions.Short),pxt.setupWebConfig(window.pxtConfig||pxt.webConfig),pxt.setAppTarget(n),pxt.Cloud.apiRoot="https://www.makecode.com/api/",function(){pxt.analytics.enable(pxt.Util.userLanguage());var e={};if("undefined"!=typeof window){var t=window.screen;e["screen.width"]=t.width,e["screen.height"]=t.height,e["screen.availwidth"]=t.availWidth,e["screen.availheight"]=t.availHeight,e["screen.innerWidth"]=window.innerWidth,e["screen.innerHeight"]=window.innerHeight,e["screen.devicepixelratio"]=pxt.BrowserUtils.devicePixelRatio();var n=document.firstElementChild;n&&(e["screen.clientWidth"]=n.clientWidth,e["screen.clientHeight"]=n.clientHeight)}pxt.tickEvent(g.Loaded,e)}(),t.render((0,x.jsx)(e.StrictMode,{children:(0,x.jsx)(We,{children:(0,x.jsx)(Wp,{})})}),document.getElementById("root"))}))}()}();
|
|
1
|
+
/*! For license information please see main.6eb7141c.js.LICENSE.txt */
|
|
2
|
+
!function(){var e={6186:function(e,t,n){"use strict";var r=n(8466),i=n(3705),a=n(6),o=n(3830);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!i)throw Error(s(227));var l=new Set,u={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,v={},m={};function y(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(m,e)||!h.call(v,e)&&(p.test(e)?m[e]=!0:(v[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,k=60106,C=60107,_=60108,T=60114,P=60109,O=60110,j=60112,A=60113,I=60120,N=60115,R=60116,L=60121,M=60128,D=60129,F=60130,B=60131;if("function"==typeof Symbol&&Symbol.for){var U=Symbol.for;S=U("react.element"),k=U("react.portal"),C=U("react.fragment"),_=U("react.strict_mode"),T=U("react.profiler"),P=U("react.provider"),O=U("react.context"),j=U("react.forward_ref"),A=U("react.suspense"),I=U("react.suspense_list"),N=U("react.memo"),R=U("react.lazy"),L=U("react.block"),U("react.scope"),M=U("react.opaque.id"),D=U("react.debug_trace_mode"),F=U("react.offscreen"),B=U("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function W(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var $=!1;function q(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function G(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return q(e.type,!1);case 11:return q(e.type.render,!1);case 22:return q(e.type._render,!1);case 1:return q(e.type,!0);default:return""}}function X(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case k:return"Portal";case T:return"Profiler";case _:return"StrictMode";case A:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return X(e.type);case L:return X(e._render);case R:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ee(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ne(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){ne(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ie(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ce(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ve(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ye,ge=(ye=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ye(e,t)}))}:ye);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var we={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function Ee(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||we.hasOwnProperty(e)&&we[e]?(""+t).trim():t+"px"}function Se(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Ee(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(we).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),we[t]=we[e]}))}));var ke=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ce(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Te(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Oe=null,je=null;function Ae(e){if(e=ti(e)){if("function"!=typeof Pe)throw Error(s(280));var t=e.stateNode;t&&(t=ri(t),Pe(e.stateNode,e.type,t))}}function Ie(e){Oe?je?je.push(e):je=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=je;if(je=Oe=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Re(e,t){return e(t)}function Le(e,t,n,r,i){return e(t,n,r,i)}function Me(){}var De=Re,Fe=!1,Be=!1;function Ue(){null===Oe&&null===je||(Me(),Ne())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=ri(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var Ve=!1;if(d)try{var He={};Object.defineProperty(He,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ye){Ve=!1}function We(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var $e=!1,qe=null,Ge=!1,Xe=null,Ye={onError:function(e){$e=!0,qe=e}};function Ke(e,t,n,r,i,a,o,s,l){$e=!1,qe=null,We.apply(Ye,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ze(e){if(Qe(e)!==e)throw Error(s(188))}function et(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ze(i),e;if(a===r)return Ze(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function tt(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var nt,rt,it,at,ot=!1,st=[],lt=null,ut=null,ct=null,ft=new Map,dt=new Map,pt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function vt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ft.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function yt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=vt(t,n,r,i,a),null!==t&&null!==(t=ti(t))&&rt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=ei(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Je(n)))return e.blockedOn=t,void at(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){it(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=en(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ti(n))&&rt(t),e.blockedOn=n,!1;t.shift()}return!0}function wt(e,t,n){bt(e)&&n.delete(t)}function xt(){for(ot=!1;0<st.length;){var e=st[0];if(null!==e.blockedOn){null!==(e=ti(e.blockedOn))&&nt(e);break}for(var t=e.targetContainers;0<t.length;){var n=en(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&st.shift()}null!==lt&&bt(lt)&&(lt=null),null!==ut&&bt(ut)&&(ut=null),null!==ct&&bt(ct)&&(ct=null),ft.forEach(wt),dt.forEach(wt)}function Et(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,xt)))}function St(e){function t(t){return Et(t,e)}if(0<st.length){Et(st[0],e);for(var n=1;n<st.length;n++){var r=st[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&Et(lt,e),null!==ut&&Et(ut,e),null!==ct&&Et(ct,e),ft.forEach(t),dt.forEach(t),n=0;n<pt.length;n++)(r=pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pt.length&&null===(n=pt[0]).blockedOn;)gt(n),null===n.blockedOn&&pt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ct={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},_t={},Tt={};function Pt(e){if(_t[e])return _t[e];if(!Ct[e])return e;var t,n=Ct[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tt)return _t[e]=n[t];return e}d&&(Tt=document.createElement("div").style,"AnimationEvent"in window||(delete Ct.animationend.animation,delete Ct.animationiteration.animation,delete Ct.animationstart.animation),"TransitionEvent"in window||delete Ct.transitionend.transition);var Ot=Pt("animationend"),jt=Pt("animationiteration"),At=Pt("animationstart"),It=Pt("transitionend"),Nt=new Map,Rt=new Map,Lt=["abort","abort",Ot,"animationEnd",jt,"animationIteration",At,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",It,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rt.set(r,t),Nt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Dt=8;function Ft(e){if(0!=(1&e))return Dt=15,1;if(0!=(2&e))return Dt=14,2;if(0!=(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!=(32&e)?(Dt=11,32):0!=(t=192&e)?(Dt=10,t):0!=(256&e)?(Dt=9,256):0!=(t=3584&e)?(Dt=8,t):0!=(4096&e)?(Dt=7,4096):0!=(t=4186112&e)?(Dt=6,t):0!=(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!=(134217728&e)?(Dt=3,134217728):0!=(t=805306368&e)?(Dt=2,t):0!=(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Bt(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Dt=15;else if(0!=(a=134217727&n)){var l=a&~o;0!==l?(r=Ft(l),i=Dt):0!=(s&=a)&&(r=Ft(s),i=Dt)}else 0!=(a=n&~o)?(r=Ft(a),i=Dt):0!==s&&(r=Ft(s),i=Dt);if(0===r)return 0;if(r=n&((0>(r=31-$t(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Ft(t),i<=Dt)return t;Dt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-$t(t)),r|=e[n],t&=~i;return r}function Ut(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?zt(10,t):e;case 10:return 0===(e=Vt(192&~t))?zt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&0===(e=Vt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function Vt(e){return e&-e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-$t(t)]=n}var $t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Gt|0)|0},qt=Math.log,Gt=Math.LN2,Xt=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,Kt=!0;function Qt(e,t,n,r){Fe||Me();var i=Zt,a=Fe;Fe=!0;try{Le(i,e,t,n,r)}finally{(Fe=a)||Ue()}}function Jt(e,t,n,r){Yt(Xt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var i;if(Kt)if((i=0==(4&t))&&0<st.length&&-1<ht.indexOf(e))e=vt(null,e,t,n,r),st.push(e);else{var a=en(e,t,n,r);if(null===a)i&&mt(e,r);else{if(i){if(-1<ht.indexOf(e))return e=vt(a,e,t,n,r),void st.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return lt=yt(lt,e,t,n,r,i),!0;case"dragenter":return ut=yt(ut,e,t,n,r,i),!0;case"mouseover":return ct=yt(ct,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ft.set(a,yt(ft.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,dt.set(a,yt(dt.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;mt(e,r)}Nr(e,t,r,null,n)}}}function en(e,t,n,r){var i=Te(r);if(null!==(i=ei(i))){var a=Qe(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Je(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Nr(e,t,r,i,n),null}var tn=null,nn=null,rn=null;function an(){if(rn)return rn;var e,t,n=nn,r=n.length,i="value"in tn?tn.value:tn.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return rn=i.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function sn(){return!0}function ln(){return!1}function un(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?sn:ln,this.isPropagationStopped=ln,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=sn)},persist:function(){},isPersistent:sn}),t}var cn,fn,dn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=un(pn),vn=a({},pn,{view:0,detail:0}),mn=un(vn),yn=a({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,fn=e.screenY-dn.screenY):fn=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:fn}}),gn=un(yn),bn=un(a({},yn,{dataTransfer:0})),wn=un(a({},vn,{relatedTarget:0})),xn=un(a({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=un(a({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),Sn=un(a({},pn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Pn(){return Tn}var On=un(a({},vn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),jn=un(a({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=un(a({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),In=un(a({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=un(a({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Rn=[9,13,27,32],Ln=d&&"CompositionEvent"in window,Mn=null;d&&"documentMode"in document&&(Mn=document.documentMode);var Dn=d&&"TextEvent"in window&&!Mn,Fn=d&&(!Ln||Mn&&8<Mn&&11>=Mn),Bn=String.fromCharCode(32),Un=!1;function zn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function qn(e,t,n,r){Ie(r),0<(t=Lr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Xn=null;function Yn(e){Tr(e,0)}function Kn(e){if(J(ni(e)))return e}function Qn(e,t){if("change"===e)return t}var Jn=!1;if(d){var Zn;if(d){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Zn=er}else Zn=!1;Jn=Zn&&(!document.documentMode||9<document.documentMode)}function nr(){Gn&&(Gn.detachEvent("onpropertychange",rr),Xn=Gn=null)}function rr(e){if("value"===e.propertyName&&Kn(Xn)){var t=[];if(qn(t,Xn,e,Te(e)),e=Yn,Fe)e(t);else{Fe=!0;try{Re(e,t)}finally{Fe=!1,Ue()}}}}function ir(e,t,n){"focusin"===e?(nr(),Xn=n,(Gn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Xn)}function or(e,t){if("click"===e)return Kn(t)}function sr(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=d&&"documentMode"in document&&11>=document.documentMode,yr=null,gr=null,br=null,wr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==yr||yr!==Z(r)||(r="selectionStart"in(r=yr)&&vr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Lr(gr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Lt,2);for(var Er="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<Er.length;Sr++)Rt.set(Er[Sr],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function _r(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,o,l,u){if(Ke.apply(this,arguments),$e){if(!$e)throw Error(s(198));var c=qe;$e=!1,qe=null,Ge||(Ge=!0,Xe=c)}}(r,t,void 0,e),e.currentTarget=null}function Tr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;_r(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;_r(i,s,u),a=l}}}if(Ge)throw e=Xe,Ge=!1,Xe=null,e}function Pr(e,t){var n=ii(t),r=e+"__bubble";n.has(r)||(Ir(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function jr(e){e[Or]||(e[Or]=!0,l.forEach((function(t){Cr.has(t)||Ar(t,!1,e,null),Ar(t,!0,e,null)})))}function Ar(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ii(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Ir(a,e,i,t),o.add(s))}function Ir(e,t,n,r){var i=Rt.get(t);switch(void 0===i?2:i){case 0:i=Qt;break;case 1:i=Jt;break;default:i=Zt}n=i.bind(null,t,n,e),i=void 0,!Ve||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Nr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=ei(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Be)return e();Be=!0;try{De(e,t,n)}finally{Be=!1,Ue()}}((function(){var r=a,i=Te(n),o=[];e:{var s=Nt.get(e);if(void 0!==s){var l=hn,u=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=wn;break;case"focusout":u="blur",l=wn;break;case"beforeblur":case"afterblur":l=wn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case Ot:case jt:case At:l=xn;break;case It:l=In;break;case"scroll":l=mn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=jn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&null!=(v=ze(h,d))&&c.push(Rr(h,v,p))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!ei(u)&&!u[Jr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ei(u):null)&&(u!==(f=Qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=gn,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=jn,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:ni(l),p=null==u?s:ni(u),(s=new c(v,h+"leave",l,n,i)).target=f,s.relatedTarget=p,v=null,ei(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,v=c),f=v,l&&u)e:{for(d=u,h=0,p=c=l;p;p=Mr(p))h++;for(p=0,v=d;v;v=Mr(v))p++;for(;0<h-p;)c=Mr(c),h--;for(;0<p-h;)d=Mr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Mr(c),d=Mr(d)}c=null}else c=null;null!==l&&Dr(o,s,l,c,!1),null!==u&&null!==f&&Dr(o,f,u,c,!0)}if("select"===(l=(s=r?ni(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Qn;else if($n(s))if(Jn)m=sr;else{m=ar;var y=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=or);switch(m&&(m=m(e,r))?qn(o,m,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ae(s,"number",s.value)),y=r?ni(r):window,e){case"focusin":($n(y)||"true"===y.contentEditable)&&(yr=y,gr=r,br=null);break;case"focusout":br=gr=yr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,xr(o,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(o,n,i)}var g;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(g=an()):(nn="value"in(tn=i)?tn.value:tn.textContent,Hn=!0)),0<(y=Lr(r,b)).length&&(b=new Sn(b,e,null,n,i),o.push({event:b,listeners:y}),(g||null!==(g=Vn(n)))&&(b.data=g))),(g=Dn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Un=!0,Bn);case"textInput":return(e=t.data)===Bn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&zn(e,t)?(e=an(),rn=nn=tn=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Lr(r,"onBeforeInput")).length&&(i=new Sn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g)}Tr(o,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=ze(e,n))&&r.unshift(Rr(e,a,i)),null!=(a=ze(e,t))&&r.push(Rr(e,a,i))),e=e.return}return r}function Mr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Dr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ze(n,a))&&o.unshift(Rr(n,l,s)):i||null!=(l=ze(n,a))&&o.push(Rr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Fr(){}var Br=null,Ur=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"==typeof setTimeout?setTimeout:void 0,Wr="function"==typeof clearTimeout?clearTimeout:void 0;function $r(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Xr=0,Yr=Math.random().toString(36).slice(2),Kr="__reactFiber$"+Yr,Qr="__reactProps$"+Yr,Jr="__reactContainer$"+Yr,Zr="__reactEvents$"+Yr;function ei(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jr]||n[Kr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[Kr])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function ti(e){return!(e=e[Kr]||e[Jr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ni(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ri(e){return e[Qr]||null}function ii(e){var t=e[Zr];return void 0===t&&(t=e[Zr]=new Set),t}var ai=[],oi=-1;function si(e){return{current:e}}function li(e){0>oi||(e.current=ai[oi],ai[oi]=null,oi--)}function ui(e,t){oi++,ai[oi]=e.current,e.current=t}var ci={},fi=si(ci),di=si(!1),pi=ci;function hi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mi(){li(di),li(fi)}function yi(e,t,n){if(fi.current!==ci)throw Error(s(168));ui(fi,t),ui(di,n)}function gi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(s(108,X(t)||"Unknown",i));return a({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,pi=fi.current,ui(fi,e),ui(di,di.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=gi(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,li(di),li(fi),ui(fi,e)):li(di),ui(di,n)}var xi=null,Ei=null,Si=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,_i=o.unstable_shouldYield,Ti=o.unstable_requestPaint,Pi=o.unstable_now,Oi=o.unstable_getCurrentPriorityLevel,ji=o.unstable_ImmediatePriority,Ai=o.unstable_UserBlockingPriority,Ii=o.unstable_NormalPriority,Ni=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Li={},Mi=void 0!==Ti?Ti:function(){},Di=null,Fi=null,Bi=!1,Ui=Pi(),zi=1e4>Ui?Pi:function(){return Pi()-Ui};function Vi(){switch(Oi()){case ji:return 99;case Ai:return 98;case Ii:return 97;case Ni:return 96;case Ri:return 95;default:throw Error(s(332))}}function Hi(e){switch(e){case 99:return ji;case 98:return Ai;case 97:return Ii;case 96:return Ni;case 95:return Ri;default:throw Error(s(332))}}function Wi(e,t){return e=Hi(e),Si(e,t)}function $i(e,t,n){return e=Hi(e),ki(e,t,n)}function qi(){if(null!==Fi){var e=Fi;Fi=null,Ci(e)}Gi()}function Gi(){if(!Bi&&null!==Di){Bi=!0;var e=0;try{var t=Di;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Di=null}catch(t){throw null!==Di&&(Di=Di.slice(e+1)),ki(ji,qi),t}finally{Bi=!1}}}var Xi=E.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ki=si(null),Qi=null,Ji=null,Zi=null;function ea(){Zi=Ji=Qi=null}function ta(e){var t=Ki.current;li(Ki),e.type._context._currentValue=t}function na(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ra(e,t){Qi=e,Zi=Ji=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Lo=!0),e.firstContext=null)}function ia(e,t){if(Zi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ji){if(null===Qi)throw Error(s(308));Ji=t,Qi.dependencies={lanes:0,firstContext:t,responders:null}}else Ji=Ji.next=t;return e._currentValue}var aa=!1;function oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function sa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function la(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ca(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fa(e,t,n,r){var i=e.updateQueue;aa=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?o=c:s.next=c,s=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==o){for(d=i.baseState,s=0,f=c=u=null;;){l=o.lane;var p=o.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,v=o;switch(l=t,p=n,v.tag){case 1:if("function"==typeof(h=v.payload)){d=h.call(p,d,l);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"==typeof(h=v.payload)?h.call(p,d,l):h)||void 0===l)break e;d=a({},d,l);break e;case 2:aa=!0}}null!==o.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[o]:l.push(o))}else p={eventTime:p,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,s|=l;if(null===(o=o.next)){if(null===(l=i.shared.pending))break;o=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===f&&(u=d),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Fs|=s,e.lanes=s,e.memoizedState=d}}function da(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(s(191,i));i.call(r)}}}var pa=(new i.Component).refs;function ha(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var va={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),a=la(r,i);a.payload=t,null!=n&&(a.callback=n),ua(e,a),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),a=la(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),ua(e,a),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=cl(e),i=la(n,r);i.tag=2,null!=t&&(i.callback=t),ua(e,i),fl(e,r,n)}};function ma(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(i,a))}function ya(e,t,n){var r=!1,i=ci,a=t.contextType;return"object"==typeof a&&null!==a?a=ia(a):(i=vi(t)?pi:fi.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?hi(e,i):ci),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=va,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ga(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&va.enqueueReplaceState(t,t.state,null)}function ba(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=pa,oa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ia(a):(a=vi(t)?pi:fi.current,i.context=hi(e,a)),fa(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ha(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&va.enqueueReplaceState(i,i.state,null),fa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var wa=Array.isArray;function xa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===pa&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Ea(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Sa(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Hl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function o(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Gl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=xa(e,t,n),r.return=e,r):((r=Wl(n.type,n.key,n.props,null,e.mode,r)).ref=xa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=$l(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Gl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Wl(t.type,t.key,t.props,null,e.mode,n)).ref=xa(e,null,t),n.return=e,n;case k:return(t=Xl(t,e.mode,n)).return=e,t}if(wa(t)||H(t))return(t=$l(t,e.mode,n,null)).return=e,t;Ea(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?n.type===C?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null}if(wa(n)||H(n))return null!==i?null:f(e,t,n,r,null);Ea(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===C?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wa(r)||H(r))return f(t,e=e.get(n)||null,r,i,null);Ea(t,r)}return null}function v(i,o,s,l){for(var u=null,c=null,f=o,v=o=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=p(i,f,s[v],l);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,v),null===c?u=y:c.sibling=y,c=y,f=m}if(v===s.length)return n(i,f),u;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],l))&&(o=a(f,o,v),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);v<s.length;v++)null!==(m=h(f,i,v,s[v],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),o=a(m,o,v),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(i,e)})),u}function m(i,o,l,u){var c=H(l);if("function"!=typeof c)throw Error(s(150));if(null==(l=c.call(l)))throw Error(s(151));for(var f=c=null,v=o,m=o=0,y=null,g=l.next();null!==v&&!g.done;m++,g=l.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=p(i,v,g.value,u);if(null===b){null===v&&(v=y);break}e&&v&&null===b.alternate&&t(i,v),o=a(b,o,m),null===f?c=b:f.sibling=b,f=b,v=y}if(g.done)return n(i,v),c;if(null===v){for(;!g.done;m++,g=l.next())null!==(g=d(i,g.value,u))&&(o=a(g,o,m),null===f?c=g:f.sibling=g,f=g);return c}for(v=r(i,v);!g.done;m++,g=l.next())null!==(g=h(v,i,m,g.value,u))&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),o=a(g,o,m),null===f?c=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(i,e)})),c}return function(e,r,a,l){var u="object"==typeof a&&null!==a&&a.type===C&&null===a.key;u&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case S:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(a.type===C){n(e,u.sibling),(r=i(u,a.props.children)).return=e,e=r;break e}}else if(u.elementType===a.type){n(e,u.sibling),(r=i(u,a.props)).ref=xa(e,u,a),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===C?((r=$l(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Wl(a.type,a.key,a.props,null,e.mode,l)).ref=xa(e,r,a),l.return=e,e=l)}return o(e);case k:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xl(a,e.mode,l)).return=e,e=r}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Gl(a,e.mode,l)).return=e,e=r),o(e);if(wa(a))return v(e,r,a,l);if(H(a))return m(e,r,a,l);if(c&&Ea(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,X(e.type)||"Component"))}return n(e,r)}}var ka=Sa(!0),Ca=Sa(!1),_a={},Ta=si(_a),Pa=si(_a),Oa=si(_a);function ja(e){if(e===_a)throw Error(s(174));return e}function Aa(e,t){switch(ui(Oa,t),ui(Pa,e),ui(Ta,_a),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ve(null,"");break;default:t=ve(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(Ta),ui(Ta,t)}function Ia(){li(Ta),li(Pa),li(Oa)}function Na(e){ja(Oa.current);var t=ja(Ta.current),n=ve(t,e.type);t!==n&&(ui(Pa,e),ui(Ta,n))}function Ra(e){Pa.current===e&&(li(Ta),li(Pa))}var La=si(0);function Ma(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Da=null,Fa=null,Ba=!1;function Ua(e,t){var n=zl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function za(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Va(e){if(Ba){var t=Fa;if(t){var n=t;if(!za(e,t)){if(!(t=qr(n.nextSibling))||!za(e,t))return e.flags=-1025&e.flags|2,Ba=!1,void(Da=e);Ua(Da,n)}Da=e,Fa=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Ba=!1,Da=e}}function Ha(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Da=e}function Wa(e){if(e!==Da)return!1;if(!Ba)return Ha(e),Ba=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=Fa;t;)Ua(e,t),t=qr(t.nextSibling);if(Ha(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fa=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fa=null}}else Fa=Da?qr(e.stateNode.nextSibling):null;return!0}function $a(){Fa=Da=null,Ba=!1}var qa=[];function Ga(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var Xa=E.ReactCurrentDispatcher,Ya=E.ReactCurrentBatchConfig,Ka=0,Qa=null,Ja=null,Za=null,eo=!1,to=!1;function no(){throw Error(s(321))}function ro(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function io(e,t,n,r,i,a){if(Ka=a,Qa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xa.current=null===e||null===e.memoizedState?Ao:Io,e=n(r,i),to){a=0;do{if(to=!1,!(25>a))throw Error(s(301));a+=1,Za=Ja=null,t.updateQueue=null,Xa.current=No,e=n(r,i)}while(to)}if(Xa.current=jo,t=null!==Ja&&null!==Ja.next,Ka=0,Za=Ja=Qa=null,eo=!1,t)throw Error(s(300));return e}function ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Za?Qa.memoizedState=Za=e:Za=Za.next=e,Za}function oo(){if(null===Ja){var e=Qa.alternate;e=null!==e?e.memoizedState:null}else e=Ja.next;var t=null===Za?Qa.memoizedState:Za.next;if(null!==t)Za=t,Ja=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Ja=e).memoizedState,baseState:Ja.baseState,baseQueue:Ja.baseQueue,queue:Ja.queue,next:null},null===Za?Qa.memoizedState=Za=e:Za=Za.next=e}return Za}function so(e,t){return"function"==typeof t?t(e):t}function lo(e){var t=oo(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=Ja,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=o=a=null,u=i;do{var c=u.lane;if((Ka&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(o=l=f,a=r):l=l.next=f,Qa.lanes|=c,Fs|=c}u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=o,lr(r,t.memoizedState)||(Lo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function uo(e){var t=oo(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);lr(a,t.memoizedState)||(Lo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function co(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ka&e)===e)&&(t._workInProgressVersionPrimary=r,qa.push(t))),e)return n(t._source);throw qa.push(t),Error(s(350))}function fo(e,t,n,r){var i=js;if(null===i)throw Error(s(349));var a=t._getVersion,o=a(t._source),l=Xa.current,u=l.useState((function(){return co(i,t,n)})),c=u[1],f=u[0];u=Za;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,v=d.source;d=d.subscribe;var m=Qa;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!lr(o,e)){e=n(t._source),lr(f,e)||(c(e),e=cl(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var l=31-$t(s),u=1<<l;r[l]|=e,s&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=cl(m);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),lr(h,n)&&lr(v,t)&&lr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:f}).dispatch=c=Oo.bind(null,Qa,e),u.queue=e,u.baseQueue=null,f=co(i,t,n),u.memoizedState=u.baseState=f),f}function po(e,t,n){return fo(oo(),e,t,n)}function ho(e){var t=ao();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:e}).dispatch=Oo.bind(null,Qa,e),[t.memoizedState,e]}function vo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Qa.updateQueue)?(t={lastEffect:null},Qa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function mo(e){return e={current:e},ao().memoizedState=e}function yo(){return oo().memoizedState}function go(e,t,n,r){var i=ao();Qa.flags|=e,i.memoizedState=vo(1|t,n,void 0,void 0===r?null:r)}function bo(e,t,n,r){var i=oo();r=void 0===r?null:r;var a=void 0;if(null!==Ja){var o=Ja.memoizedState;if(a=o.destroy,null!==r&&ro(r,o.deps))return void vo(t,n,a,r)}Qa.flags|=e,i.memoizedState=vo(1|t,n,a,r)}function wo(e,t){return go(516,4,e,t)}function xo(e,t){return bo(516,4,e,t)}function Eo(e,t){return bo(4,2,e,t)}function So(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ko(e,t,n){return n=null!=n?n.concat([e]):null,bo(4,2,So.bind(null,t,e),n)}function Co(){}function _o(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function To(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Po(e,t){var n=Vi();Wi(98>n?98:n,(function(){e(!0)})),Wi(97<n?97:n,(function(){var n=Ya.transition;Ya.transition=1;try{e(!1),t()}finally{Ya.transition=n}}))}function Oo(e,t,n){var r=ul(),i=cl(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Qa||null!==o&&o===Qa)to=eo=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=o(s,n);if(a.eagerReducer=o,a.eagerState=l,lr(l,s))return}catch(e){}fl(e,i,r)}}var jo={readContext:ia,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useOpaqueIdentifier:no,unstable_isNewReconciler:!1},Ao={readContext:ia,useCallback:function(e,t){return ao().memoizedState=[e,void 0===t?null:t],e},useContext:ia,useEffect:wo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,go(4,2,So.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=ao();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ao();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oo.bind(null,Qa,e),[r.memoizedState,e]},useRef:mo,useState:ho,useDebugValue:Co,useDeferredValue:function(e){var t=ho(e),n=t[0],r=t[1];return wo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=ho(!1),t=e[0];return mo(e=Po.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ao();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fo(r,e,t,n)},useOpaqueIdentifier:function(){if(Ba){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Xr++).toString(36))),Error(s(355))})),n=ho(t)[1];return 0==(2&Qa.mode)&&(Qa.flags|=516,vo(5,(function(){n("r:"+(Xr++).toString(36))}),void 0,null)),t}return ho(t="r:"+(Xr++).toString(36)),t},unstable_isNewReconciler:!1},Io={readContext:ia,useCallback:_o,useContext:ia,useEffect:xo,useImperativeHandle:ko,useLayoutEffect:Eo,useMemo:To,useReducer:lo,useRef:yo,useState:function(){return lo(so)},useDebugValue:Co,useDeferredValue:function(e){var t=lo(so),n=t[0],r=t[1];return xo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=lo(so)[0];return[yo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return lo(so)[0]},unstable_isNewReconciler:!1},No={readContext:ia,useCallback:_o,useContext:ia,useEffect:xo,useImperativeHandle:ko,useLayoutEffect:Eo,useMemo:To,useReducer:uo,useRef:yo,useState:function(){return uo(so)},useDebugValue:Co,useDeferredValue:function(e){var t=uo(so),n=t[0],r=t[1];return xo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=uo(so)[0];return[yo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return uo(so)[0]},unstable_isNewReconciler:!1},Ro=E.ReactCurrentOwner,Lo=!1;function Mo(e,t,n,r){t.child=null===e?Ca(t,null,n,r):ka(t,e.child,n,r)}function Do(e,t,n,r,i){n=n.render;var a=t.ref;return ra(t,i),r=io(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Mo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Fo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Vl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Wl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Bo(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)?ns(e,t,a):(t.flags|=1,(e=Hl(o,r)).ref=t.ref,e.return=t,t.child=e)}function Bo(e,t,n,r,i,a){if(null!==e&&cr(e.memoizedProps,r)&&e.ref===t.ref){if(Lo=!1,0==(a&i))return t.lanes=e.lanes,ns(e,t,a);0!=(16384&e.flags)&&(Lo=!0)}return Vo(e,t,n,r,a)}function Uo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bl(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bl(t,e),null;t.memoizedState={baseLanes:0},bl(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,bl(t,r);return Mo(e,t,i,n),t.child}function zo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Vo(e,t,n,r,i){var a=vi(n)?pi:fi.current;return a=hi(t,a),ra(t,i),n=io(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Mo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Ho(e,t,n,r,i){if(vi(n)){var a=!0;bi(t)}else a=!1;if(ra(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ya(t,n,r),ba(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;u="object"==typeof u&&null!==u?ia(u):hi(t,u=vi(n)?pi:fi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&ga(t,o,r,u),aa=!1;var d=t.memoizedState;o.state=d,fa(t,r,o,i),l=t.memoizedState,s!==r||d!==l||di.current||aa?("function"==typeof c&&(ha(t,n,c,r),l=t.memoizedState),(s=aa||ma(t,n,s,r,d,l,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,sa(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Yi(t.type,s),o.props=u,f=t.pendingProps,d=o.context,l="object"==typeof(l=n.contextType)&&null!==l?ia(l):hi(t,l=vi(n)?pi:fi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||d!==l)&&ga(t,o,r,l),aa=!1,d=t.memoizedState,o.state=d,fa(t,r,o,i);var h=t.memoizedState;s!==f||d!==h||di.current||aa?("function"==typeof p&&(ha(t,n,p,r),h=t.memoizedState),(u=aa||ma(t,n,u,r,d,h,l))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,a,i)}function Wo(e,t,n,r,i,a){zo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&wi(t,n,!1),ns(e,t,a);r=t.stateNode,Ro.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=ka(t,e.child,null,a),t.child=ka(t,null,s,a)):Mo(e,t,s,a),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function $o(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Aa(e,t.containerInfo)}var qo,Go,Xo,Yo,Ko={dehydrated:null,retryLane:0};function Qo(e,t,n){var r,i=t.pendingProps,a=La.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ui(La,1&a),null===e?(void 0!==i.fallback&&Va(t),e=i.children,a=i.fallback,o?(e=Jo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,e):"number"==typeof i.unstable_expectedLoadTime?(e=Jo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,t.lanes=33554432,e):((n=ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=function(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Hl(o,s),null!==e?r=Hl(e,r):(r=$l(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ko,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Hl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Jo(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=ql(t,i,0,null),n=$l(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Zo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),na(e.return,t)}function es(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Mo(e,t,r.children,n),0!=(2&(r=La.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Zo(e,n);else if(19===e.tag)Zo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(La,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ma(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),es(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ma(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}es(t,!0,n,null,a,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Hl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Ba)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function is(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return vi(t.type)&&mi(),null;case 3:return Ia(),li(di),li(fi),Ga(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Go(t),null;case 5:Ra(t);var i=ja(Oa.current);if(n=t.type,null!==e&&null!=t.stateNode)Xo(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=ja(Ta.current),Wa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Kr]=t,r[Qr]=o,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Pr(kr[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":te(r,o),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Pr("invalid",r);break;case"textarea":ue(r,o),Pr("invalid",r)}for(var l in Ce(n,o),e=null,o)o.hasOwnProperty(l)&&(i=o[l],"children"===l?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Pr("scroll",r));switch(n){case"input":Q(r),ie(r,o,!0);break;case"textarea":Q(r),fe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===de&&(e=he(n)),e===de?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Kr]=t,e[Qr]=r,qo(e,t,!1,!1),t.stateNode=e,l=_e(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),i=r;break;case"iframe":case"object":case"embed":Pr("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)Pr(kr[i],e);i=r;break;case"source":Pr("error",e),i=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=r;break;case"details":Pr("toggle",e),i=r;break;case"input":te(e,r),i=ee(e,r),Pr("invalid",e);break;case"option":i=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Pr("invalid",e);break;default:i=r}Ce(n,i);var c=i;for(o in c)if(c.hasOwnProperty(o)){var f=c[o];"style"===o?Se(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===o?"string"==typeof f?("textarea"!==n||""!==f)&&be(e,f):"number"==typeof f&&be(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(u.hasOwnProperty(o)?null!=f&&"onScroll"===o&&Pr("scroll",e):null!=f&&x(e,o,f,l))}switch(n){case"input":Q(e),ie(e,r,!1);break;case"textarea":Q(e),fe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?se(e,!!r.multiple,o,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Fr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Yo(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=ja(Oa.current),ja(Ta.current),Wa(t)?(r=t.stateNode,n=t.memoizedProps,r[Kr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Kr]=t,t.stateNode=r)}return null;case 13:return li(La),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wa(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&La.current)?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===js||0==(134217727&Fs)&&0==(134217727&Bs)||vl(js,Is))),(r||n)&&(t.flags|=4),null);case 4:return Ia(),Go(t),null===e&&jr(t.stateNode.containerInfo),null;case 10:return ta(t),null;case 19:if(li(La),null===(r=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(l=r.rendering))if(o)rs(r,!1);else{if(0!==Ls||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Ma(e))){for(t.flags|=64,rs(r,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(La,1&La.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>Hs&&(t.flags|=64,o=!0,rs(r,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=Ma(l))){if(t.flags|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Ba)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,o=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=La.current,ui(La,o?1&t|2:1&t),n):null;case 23:case 24:return wl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function as(e){switch(e.tag){case 1:vi(e.type)&&mi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ia(),li(di),li(fi),Ga(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Ra(e),null;case 13:return li(La),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return li(La),null;case 4:return Ia(),null;case 10:return ta(e),null;case 23:case 24:return wl(),null;default:return null}}function os(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{r.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Go=function(){},Xo=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ja(Ta.current);var o,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=oe(e,i),r=oe(e,r),s=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":i=le(e,i),r=le(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Fr)}for(f in Ce(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var l=i[f];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Pr("scroll",e),s||l===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Yo=function(e,t,n,r){n!==r&&(t.flags|=4)};var ls="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=la(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,Xs=r),ss(0,t)},n}function cs(e,t,n){(n=la(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ss(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ys?Ys=new Set([this]):Ys.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ds(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Dl(e,t)}else t.current=null}function ps(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$r(t.stateNode.containerInfo))}throw Error(s(163))}function hs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Rl(n,e),Nl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Yi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&da(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}da(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&St(n)))))}throw Error(s(163))}function vs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=Ee("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ms(e,t){if(Ei&&"function"==typeof Ei.onCommitFiberUnmount)try{Ei.onCommitFiberUnmount(xi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Rl(t,n);else{r=t;try{i()}catch(e){Dl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ds(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Dl(t,e)}break;case 5:ds(t);break;case 4:Es(e,t)}}function ys(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gs(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(gs(t))break e;t=t.return}throw Error(s(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?ws(e,n,t):xs(e,n,t)}function ws(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function Es(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(s(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var o=e,l=i,u=l;;)if(ms(o,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(o=n,l=i.stateNode,8===o.nodeType?o.parentNode.removeChild(l):o.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(ms(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function Ss(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Qr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),_e(e,i),t=_e(e,r),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];"style"===o?Se(n,l):"dangerouslySetInnerHTML"===o?ge(n,l):"children"===o?be(n,l):x(n,o,l,t)}switch(e){case"input":re(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?se(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,St(n.containerInfo)));case 13:return null!==t.memoizedState&&(Vs=zi(),vs(t.child,!0)),void ks(t);case 19:return void ks(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(s(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Bl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Cs(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var _s=Math.ceil,Ts=E.ReactCurrentDispatcher,Ps=E.ReactCurrentOwner,Os=0,js=null,As=null,Is=0,Ns=0,Rs=si(0),Ls=0,Ms=null,Ds=0,Fs=0,Bs=0,Us=0,zs=null,Vs=0,Hs=1/0;function Ws(){Hs=zi()+500}var $s,qs=null,Gs=!1,Xs=null,Ys=null,Ks=!1,Qs=null,Js=90,Zs=[],el=[],tl=null,nl=0,rl=null,il=-1,al=0,ol=0,sl=null,ll=!1;function ul(){return 0!=(48&Os)?zi():-1!==il?il:il=zi()}function cl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Vi()?1:2;if(0===al&&(al=Ds),0!==Xi.transition){0!==ol&&(ol=null!==zs?zs.pendingLanes:0),e=al;var t=4186112&~ol;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Vi(),e=zt(0!=(4&Os)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),al)}function fl(e,t,n){if(50<nl)throw nl=0,rl=null,Error(s(185));if(null===(e=dl(e,t)))return null;Wt(e,t,n),e===js&&(Bs|=t,4===Ls&&vl(e,Is));var r=Vi();1===t?0!=(8&Os)&&0==(48&Os)?ml(e):(pl(e,n),0===Os&&(Ws(),qi())):(0==(4&Os)||98!==r&&99!==r||(null===tl?tl=new Set([e]):tl.add(e)),pl(e,n)),zs=e}function dl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function pl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-$t(o),u=1<<l,c=a[l];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Ft(u);var f=Dt;a[l]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);o&=~u}if(r=Bt(e,e===js?Is:0),t=Dt,0===r)null!==n&&(n!==Li&&Ci(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Li&&Ci(n)}15===t?(n=ml.bind(null,e),null===Di?(Di=[n],Fi=ki(ji,Gi)):Di.push(n),n=Li):14===t?n=$i(99,ml.bind(null,e)):n=$i(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),hl.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function hl(e){if(il=-1,ol=al=0,0!=(48&Os))throw Error(s(327));var t=e.callbackNode;if(Il()&&e.callbackNode!==t)return null;var n=Bt(e,e===js?Is:0);if(0===n)return null;var r=n,i=Os;Os|=16;var a=Sl();for(js===e&&Is===r||(Ws(),xl(e,r));;)try{_l();break}catch(t){El(e,t)}if(ea(),Ts.current=a,Os=i,null!==As?r=0:(js=null,Is=0,r=Ls),0!=(Ds&Bs))xl(e,0);else if(0!==r){if(2===r&&(Os|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(n=Ut(e))&&(r=kl(e,n))),1===r)throw t=Ms,xl(e,0),vl(e,n),pl(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Ol(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=Vs+500-zi())){if(0!==Bt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hr(Ol.bind(null,e),r);break}Ol(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var o=31-$t(n);a=1<<o,(o=r[o])>i&&(i=o),n&=~a}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_s(n/1960))-n)){e.timeoutHandle=Hr(Ol.bind(null,e),n);break}Ol(e);break;default:throw Error(s(329))}}return pl(e,zi()),e.callbackNode===t?hl.bind(null,e):null}function vl(e,t){for(t&=~Us,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$t(t),r=1<<n;e[n]=-1,t&=~r}}function ml(e){if(0!=(48&Os))throw Error(s(327));if(Il(),e===js&&0!=(e.expiredLanes&Is)){var t=Is,n=kl(e,t);0!=(Ds&Bs)&&(n=kl(e,t=Bt(e,t)))}else n=kl(e,t=Bt(e,0));if(0!==e.tag&&2===n&&(Os|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(t=Ut(e))&&(n=kl(e,t))),1===n)throw n=Ms,xl(e,0),vl(e,t),pl(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ol(e),pl(e,zi()),null}function yl(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Ws(),qi())}}function gl(e,t){var n=Os;Os&=-2,Os|=8;try{return e(t)}finally{0===(Os=n)&&(Ws(),qi())}}function bl(e,t){ui(Rs,Ns),Ns|=t,Ds|=t}function wl(){Ns=Rs.current,li(Rs)}function xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==As)for(n=As.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mi();break;case 3:Ia(),li(di),li(fi),Ga();break;case 5:Ra(r);break;case 4:Ia();break;case 13:case 19:li(La);break;case 10:ta(r);break;case 23:case 24:wl()}n=n.return}js=e,As=Hl(e.current,null),Is=Ns=Ds=t,Ls=0,Ms=null,Us=Bs=Fs=0}function El(e,t){for(;;){var n=As;try{if(ea(),Xa.current=jo,eo){for(var r=Qa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}eo=!1}if(Ka=0,Za=Ja=Qa=null,to=!1,Ps.current=null,null===n||null===n.return){Ls=1,Ms=t,As=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Is,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&La.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var v=d.memoizedProps;p=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(p){var m=d.updateQueue;if(null===m){var y=new Set;y.add(u),d.updateQueue=y}else m.add(u);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var g=la(-1,1);g.tag=2,ua(s,g)}s.lanes|=1;break e}l=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ls,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var w=Fl.bind(null,a,u,s);u.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((X(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),l=os(l,s),d=o;do{switch(d.tag){case 3:a=l,d.flags|=4096,t&=-t,d.lanes|=t,ca(d,us(0,a,t));break e;case 1:a=l;var x=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Ys||!Ys.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,ca(d,cs(d,a,t));break e}}d=d.return}while(null!==d)}Pl(n)}catch(e){t=e,As===n&&null!==n&&(As=n=n.return);continue}break}}function Sl(){var e=Ts.current;return Ts.current=jo,null===e?jo:e}function kl(e,t){var n=Os;Os|=16;var r=Sl();for(js===e&&Is===t||xl(e,t);;)try{Cl();break}catch(t){El(e,t)}if(ea(),Os=n,Ts.current=r,null!==As)throw Error(s(261));return js=null,Is=0,Ls}function Cl(){for(;null!==As;)Tl(As)}function _l(){for(;null!==As&&!_i();)Tl(As)}function Tl(e){var t=$s(e.alternate,e,Ns);e.memoizedProps=e.pendingProps,null===t?Pl(e):As=t,Ps.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=is(n,t,Ns)))return void(As=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ns)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=as(t)))return n.flags&=2047,void(As=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(As=t);As=t=e}while(null!==t);0===Ls&&(Ls=5)}function Ol(e){var t=Vi();return Wi(99,jl.bind(null,e,t)),null}function jl(e,t){do{Il()}while(null!==Qs);if(0!=(48&Os))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,l=e.expirationTimes;0<a;){var u=31-$t(a),c=1<<u;i[u]=0,o[u]=-1,l[u]=-1,a&=~c}if(null!==tl&&0==(24&r)&&tl.has(e)&&tl.delete(e),e===js&&(As=js=null,Is=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Os,Os|=32,Ps.current=null,Br=Kt,vr(o=hr())){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,a=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var f=0,d=-1,p=-1,h=0,v=0,m=o,y=null;t:for(;;){for(var g;m!==l||0!==a&&3!==m.nodeType||(d=f+a),m!==u||0!==c&&3!==m.nodeType||(p=f+c),3===m.nodeType&&(f+=m.nodeValue.length),null!==(g=m.firstChild);)y=m,m=g;for(;;){if(m===o)break t;if(y===l&&++h===a&&(d=f),y===u&&++v===c&&(p=f),null!==(g=m.nextSibling))break;y=(m=y).parentNode}m=g}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Ur={focusedElem:o,selectionRange:l},Kt=!1,sl=null,ll=!1,qs=r;do{try{Al()}catch(e){if(null===qs)throw Error(s(330));Dl(qs,e),qs=qs.nextEffect}}while(null!==qs);sl=null,qs=r;do{try{for(o=e;null!==qs;){var b=qs.flags;if(16&b&&be(qs.stateNode,""),128&b){var w=qs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:bs(qs),qs.flags&=-3;break;case 6:bs(qs),qs.flags&=-3,Ss(qs.alternate,qs);break;case 1024:qs.flags&=-1025;break;case 1028:qs.flags&=-1025,Ss(qs.alternate,qs);break;case 4:Ss(qs.alternate,qs);break;case 8:Es(o,l=qs);var E=l.alternate;ys(l),null!==E&&ys(E)}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(s(330));Dl(qs,e),qs=qs.nextEffect}}while(null!==qs);if(x=Ur,w=hr(),b=x.focusedElem,o=x.selectionRange,w!==b&&b&&b.ownerDocument&&pr(b.ownerDocument.documentElement,b)){null!==o&&vr(b)&&(w=o.start,void 0===(x=o.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,E=Math.min(o.start,l),o=void 0===o.end?E:Math.min(o.end,l),!x.extend&&E>o&&(l=o,o=E,E=l),l=dr(b,E),a=dr(b,o),l&&a&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==a.node||x.focusOffset!==a.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),E>o?(x.addRange(w),x.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Kt=!!Br,Ur=Br=null,e.current=n,qs=r;do{try{for(b=e;null!==qs;){var S=qs.flags;if(36&S&&hs(b,qs.alternate,qs),128&S){w=void 0;var k=qs.ref;if(null!==k){var C=qs.stateNode;qs.tag,w=C,"function"==typeof k?k(w):k.current=w}}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(s(330));Dl(qs,e),qs=qs.nextEffect}}while(null!==qs);qs=null,Mi(),Os=i}else e.current=n;if(Ks)Ks=!1,Qs=e,Js=t;else for(qs=r;null!==qs;)t=qs.nextEffect,qs.nextEffect=null,8&qs.flags&&((S=qs).sibling=null,S.stateNode=null),qs=t;if(0===(r=e.pendingLanes)&&(Ys=null),1===r?e===rl?nl++:(nl=0,rl=e):nl=0,n=n.stateNode,Ei&&"function"==typeof Ei.onCommitFiberRoot)try{Ei.onCommitFiberRoot(xi,n,void 0,64==(64&n.current.flags))}catch(e){}if(pl(e,zi()),Gs)throw Gs=!1,e=Xs,Xs=null,e;return 0!=(8&Os)||qi(),null}function Al(){for(;null!==qs;){var e=qs.alternate;ll||null===sl||(0!=(8&qs.flags)?tt(qs,sl)&&(ll=!0):13===qs.tag&&Cs(e,qs)&&tt(qs,sl)&&(ll=!0));var t=qs.flags;0!=(256&t)&&ps(e,qs),0==(512&t)||Ks||(Ks=!0,$i(97,(function(){return Il(),null}))),qs=qs.nextEffect}}function Il(){if(90!==Js){var e=97<Js?97:Js;return Js=90,Wi(e,Ll)}return!1}function Nl(e,t){Zs.push(t,e),Ks||(Ks=!0,$i(97,(function(){return Il(),null})))}function Rl(e,t){el.push(t,e),Ks||(Ks=!0,$i(97,(function(){return Il(),null})))}function Ll(){if(null===Qs)return!1;var e=Qs;if(Qs=null,0!=(48&Os))throw Error(s(331));var t=Os;Os|=32;var n=el;el=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],o=i.destroy;if(i.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===a)throw Error(s(330));Dl(a,e)}}for(n=Zs,Zs=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===a)throw Error(s(330));Dl(a,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Os=t,qi(),!0}function Ml(e,t,n){ua(e,t=us(0,t=os(n,t),1)),t=ul(),null!==(e=dl(e,1))&&(Wt(e,1,t),pl(e,t))}function Dl(e,t){if(3===e.tag)Ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ml(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r))){var i=cs(n,e=os(t,e),1);if(ua(n,i),i=ul(),null!==(n=dl(n,1)))Wt(n,1,i),pl(n,i);else if("function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Fl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,js===e&&(Is&n)===n&&(4===Ls||3===Ls&&(62914560&Is)===Is&&500>zi()-Vs?xl(e,0):Us|=n),pl(e,t)}function Bl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Vi()?1:2:(0===al&&(al=Ds),0===(t=Vt(62914560&~al))&&(t=4194304))),n=ul(),null!==(e=dl(e,t))&&(Wt(e,t,n),pl(e,n))}function Ul(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function zl(e,t,n,r){return new Ul(e,t,n,r)}function Vl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var n=e.alternate;return null===n?((n=zl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wl(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)Vl(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case C:return $l(n.children,i,a,t);case D:o=8,i|=16;break;case _:o=8,i|=1;break;case T:return(e=zl(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=a,e;case A:return(e=zl(13,n,t,i)).type=A,e.elementType=A,e.lanes=a,e;case I:return(e=zl(19,n,t,i)).elementType=I,e.lanes=a,e;case F:return ql(n,i,a,t);case B:return(e=zl(24,n,t,i)).elementType=B,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:o=10;break e;case O:o=9;break e;case j:o=11;break e;case N:o=14;break e;case R:o=16,r=null;break e;case L:o=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=zl(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function $l(e,t,n,r){return(e=zl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=zl(23,e,r,t)).elementType=F,e.lanes=n,e}function Gl(e,t,n){return(e=zl(6,e,null,t)).lanes=n,e}function Xl(e,t,n){return(t=zl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function Kl(e,t,n,r){var i=t.current,a=ul(),o=cl(i);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var u=n.type;if(vi(u)){n=gi(n,u,l);break e}}n=l}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=la(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ua(i,t),fl(i,o,a),o}function Ql(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Jl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Zl(e,t){Jl(e,t),(e=e.alternate)&&Jl(e,t)}function eu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Yl(e,t,null!=n&&!0===n.hydrate),t=zl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,oa(t),e[Jr]=n.current,jr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function tu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Ql(o);s.call(e)}}Kl(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new eu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Ql(o);l.call(e)}}gl((function(){Kl(t,o,e,i)}))}return Ql(o)}function ru(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!tu(t))throw Error(s(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}$s=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||di.current)Lo=!0;else{if(0==(n&r)){switch(Lo=!1,t.tag){case 3:$o(t),$a();break;case 5:Na(t);break;case 1:vi(t.type)&&bi(t);break;case 4:Aa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui(Ki,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qo(e,t,n):(ui(La,1&La.current),null!==(t=ns(e,t,n))?t.sibling:null);ui(La,1&La.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(La,La.current),r)break;return null;case 23:case 24:return t.lanes=0,Uo(e,t,n)}return ns(e,t,n)}Lo=0!=(16384&e.flags)}else Lo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=hi(t,fi.current),ra(t,n),i=io(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)){var a=!0;bi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oa(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&ha(t,r,o,e),i.updater=va,t.stateNode=i,i._reactInternals=t,ba(t,r,e,n),t=Wo(null,t,r,!0,a,n)}else t.tag=0,Mo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Vl(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===N)return 14}return 2}(i),e=Yi(i,e),a){case 0:t=Vo(null,t,i,e,n);break e;case 1:t=Ho(null,t,i,e,n);break e;case 11:t=Do(null,t,i,e,n);break e;case 14:t=Fo(null,t,i,Yi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Vo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ho(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if($o(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,sa(e,t),fa(t,r,null,n),(r=t.memoizedState.element)===i)$a(),t=ns(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Fa=qr(t.stateNode.containerInfo.firstChild),Da=t,a=Ba=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],qa.push(a);for(n=Ca(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Mo(e,t,r,n),$a();t=t.child}return t;case 5:return Na(t),null===e&&Va(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,Vr(r,i)?o=null:null!==a&&Vr(r,a)&&(t.flags|=16),zo(e,t),Mo(e,t,o,n),t.child;case 6:return null===e&&Va(t),null;case 13:return Qo(e,t,n);case 4:return Aa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ka(t,null,r,n):Mo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Do(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Mo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Mo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(ui(Ki,l._currentValue),l._currentValue=a,null!==o)if(l=o.value,0==(a=lr(l,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(o.children===i.children&&!di.current){t=ns(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){o=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===l.tag&&((c=la(-1,n&-n)).tag=2,ua(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),na(l.return,n),u.lanes|=n;break}c=c.next}}else o=10===l.tag&&l.type===t.type?null:l.child;if(null!==o)o.return=l;else for(o=l;null!==o;){if(o===t){o=null;break}if(null!==(l=o.sibling)){l.return=o.return,o=l;break}o=o.return}l=o}Mo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ra(t,n),r=r(i=ia(i,a.unstable_observedBits)),t.flags|=1,Mo(e,t,r,n),t.child;case 14:return a=Yi(i=t.type,t.pendingProps),Fo(e,t,i,a=Yi(i.type,a),r,n);case 15:return Bo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,vi(r)?(e=!0,bi(t)):e=!1,ra(t,n),ya(t,r,i),ba(t,r,i,n),Wo(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Uo(e,t,n)}throw Error(s(156,t.tag))},eu.prototype.render=function(e){Kl(e,this._internalRoot,null,null)},eu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Kl(null,e,null,(function(){t[Jr]=null}))},nt=function(e){13===e.tag&&(fl(e,4,ul()),Zl(e,4))},rt=function(e){13===e.tag&&(fl(e,67108864,ul()),Zl(e,67108864))},it=function(e){if(13===e.tag){var t=ul(),n=cl(e);fl(e,n,t),Zl(e,n)}},at=function(e,t){return t()},Pe=function(e,t,n){switch(t){case"input":if(re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ri(r);if(!i)throw Error(s(90));J(r),re(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Re=yl,Le=function(e,t,n,r,i){var a=Os;Os|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(Os=a)&&(Ws(),qi())}},Me=function(){0==(49&Os)&&(function(){if(null!==tl){var e=tl;tl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pl(e,zi())}))}qi()}(),Il())},De=function(e,t){var n=Os;Os|=2;try{return e(t)}finally{0===(Os=n)&&(Ws(),qi())}};var iu={Events:[ti,ni,ri,Ie,Ne,Il,{current:!1}]},au={findFiberByHostInstance:ei,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ou={bundleType:au.bundleType,version:au.version,rendererPackageName:au.rendererPackageName,rendererConfig:au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=et(e))?null:e.stateNode},findFiberByHostInstance:au.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{xi=su.inject(ou),Ei=su}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iu,t.createPortal=ru,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=et(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Os;if(0!=(48&n))return e(t);Os|=1;try{if(e)return Wi(99,e.bind(null,t))}finally{Os=n,qi()}},t.hydrate=function(e,t,n){if(!tu(t))throw Error(s(200));return nu(null,e,t,!0,n)},t.render=function(e,t,n){if(!tu(t))throw Error(s(200));return nu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!tu(e))throw Error(s(40));return!!e._reactRootContainer&&(gl((function(){nu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Jr]=null}))})),!0)},t.unstable_batchedUpdates=yl,t.unstable_createPortal=function(e,t){return ru(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tu(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return nu(e,t,n,!1,r)},t.version="17.0.2"},6377:function(e,t,n){"use strict";var r=n(8466);!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){r.error(e)}}(),e.exports=n(6186)},4819:function(e,t,n){"use strict";n(6);var r=n(3705),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:a,_owner:o.current}}t.jsx=u,t.jsxs=u},4348:function(e,t,n){"use strict";var r=n(6),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),s=f("react.context"),l=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var b=g.prototype=new y;b.constructor=g,r(b,m.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!E.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:w.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g;function _(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return o=o(l=e),e=""===r?"."+_(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),T(o,t,n,"",(function(e){return e}))):null!=o&&(k(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+_(s=e[u],u);l+=T(s,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,n,c=r+_(s,u++),o);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function O(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var j={current:null};function A(){var e=j.current;if(null===e)throw Error(p(321));return e}var I={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error(p(143));return e}},t.Component=m,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!E.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];a.children=u}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return A().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,n){return A().useReducer(e,t,n)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().useState(e)},t.version="17.0.2"},3705:function(e,t,n){"use strict";e.exports=n(4348)},1411:function(e,t,n){"use strict";e.exports=n(4819)},6:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))n.call(a,u)&&(s[u]=a[u]);if(t){o=t(a);for(var c=0;c<o.length;c++)r.call(a,o[c])&&(s[o[c]]=a[o[c]])}}return s}},8666:function(e,t,n){"use strict";var r,i,a,o,s=n(8466);if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function e(){if(null!==f)try{var n=t.unstable_now();f(!0,n),f=null}catch(t){throw setTimeout(e,0),t}};r=function(e){null!==f?setTimeout(r,0,e):(f=e,setTimeout(p,0))},i=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,v=window.clearTimeout;if(void 0!==s){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&s.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&s.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,b=-1,w=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?s.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,S=E.port2;E.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();x=e+w;try{g(!0,e)?S.postMessage(null):(y=!1,g=null)}catch(e){throw S.postMessage(null),e}}else y=!1},r=function(e){g=e,y||(y=!0,S.postMessage(null))},i=function(e,n){b=h((function(){e(t.unstable_now())}),n)},a=function(){v(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,l=e[s];if(void 0!==o&&0>T(o,n))void 0!==l&&0>T(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],O=[],j=1,A=null,I=3,N=!1,R=!1,L=!1;function M(e){for(var t=C(O);null!==t;){if(null===t.callback)_(O);else{if(!(t.startTime<=e))break;_(O),t.sortIndex=t.expirationTime,k(P,t)}t=C(O)}}function D(e){if(L=!1,M(e),!R)if(null!==C(P))R=!0,r(F);else{var t=C(O);null!==t&&i(D,t.startTime-e)}}function F(e,n){R=!1,L&&(L=!1,a()),N=!0;var r=I;try{for(M(n),A=C(P);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=A.callback;if("function"==typeof o){A.callback=null,I=A.priorityLevel;var s=o(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===C(P)&&_(P),M(n)}else _(P);A=C(P)}if(null!==A)var l=!0;else{var u=C(O);null!==u&&i(D,u.startTime-n),l=!1}return l}finally{A=null,I=r,N=!1}}var B=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||N||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:j++,callback:n,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>s?(e.sortIndex=o,k(O,e),null===C(P)&&e===C(O)&&(L?a():L=!0,i(D,o-s))):(e.sortIndex=l,k(P,e),R||N||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},3830:function(e,t,n){"use strict";e.exports=n(8666)},5205:function(e,t,n){"use strict";var r=n(7490),i=n(8466);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var l,u,c=n(3905).codes,f=c.ERR_AMBIGUOUS_ARGUMENT,d=c.ERR_INVALID_ARG_TYPE,p=c.ERR_INVALID_ARG_VALUE,h=c.ERR_INVALID_RETURN_VALUE,v=c.ERR_MISSING_ARGS,m=n(8264),y=n(7736).inspect,g=n(7736).types,b=g.isPromise,w=g.isRegExp,x=n(4174)(),E=n(4584)(),S=n(4680)("RegExp.prototype.test");function k(){var e=n(8527);l=e.isDeepEqual,u=e.isDeepStrictEqual}new Map;var C=!1,_=e.exports=j,T={};function P(e){if(e.message instanceof Error)throw e.message;throw new m(e)}function O(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new m({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function j(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];O.apply(void 0,[j,t.length].concat(t))}_.fail=function e(t,n,a,o,s){var l,u=arguments.length;if(0===u?l="Failed":1===u?(a=t,t=void 0):(!1===C&&(C=!0,(r.emitWarning?r.emitWarning:i.warn.bind(i))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(o="!=")),a instanceof Error)throw a;var c={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==a&&(c.message=a);var f=new m(c);throw l&&(f.message=l,f.generatedMessage=!0),f},_.AssertionError=m,_.ok=j,_.equal=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");t!=n&&P({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},_.notEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");t==n&&P({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},_.deepEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===l&&k(),l(t,n)||P({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},_.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===l&&k(),l(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},_.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===l&&k(),u(t,n)||P({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},_.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===l&&k(),u(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},_.strictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");E(t,n)||P({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},_.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");E(t,n)&&P({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var A=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&w(t[e])&&S(t[e],r[e])?i[e]=r[e]:i[e]=t[e])}))}));function I(e,t,n,r){if("function"!=typeof t){if(w(t))return S(t,e);if(2===arguments.length)throw new d("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new m({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var o=Object.keys(t);if(t instanceof Error)o.push("name","message");else if(0===o.length)throw new p("error",t,"may not be an empty object");return void 0===l&&k(),o.forEach((function(i){"string"==typeof e[i]&&w(t[i])&&S(t[i],e[i])||function(e,t,n,r,i,a){if(!(n in e)||!u(e[n],t[n])){if(!r){var o=new A(e,i),s=new A(t,i,e),l=new m({actual:o,expected:s,operator:"deepStrictEqual",stackStartFn:a});throw l.actual=e,l.expected=t,l.operator=a.name,l}P({actual:e,expected:t,message:r,operator:a.name,stackStartFn:a})}}(e,t,i,n,o,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function N(e){if("function"!=typeof e)throw new d("fn","Function",e);try{e()}catch(e){return e}return T}function R(e){return b(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function L(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!R(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!R(e))throw new d("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return T})).catch((function(e){return e}))}))}function M(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new d("error",["Object","Error","Function","RegExp"],n);if("object"===a(t)&&null!==t){if(t.message===n)throw new f("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new f("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!=typeof n)throw new d("error",["Object","Error","Function","RegExp"],n);if(t===T){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";P({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!I(t,n,r,e))throw t}function D(e,t,n,r){if(t!==T){if("string"==typeof n&&(r=n,n=void 0),!n||I(t,n)){var i=r?": ".concat(r):".",a="doesNotReject"===e.name?"rejection":"exception";P({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function F(e,t,n,r,i){if(!w(t))throw new d("regexp","RegExp",t);var o="match"===i;if("string"!=typeof e||S(t,e)!==o){if(n instanceof Error)throw n;var s=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(a(e)," (").concat(y(e),")"):(o?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(t),". Input:\n\n").concat(y(e),"\n"));var l=new m({actual:e,expected:t,message:n,operator:i,stackStartFn:r});throw l.generatedMessage=s,l}}function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];O.apply(void 0,[B,t.length].concat(t))}_.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];M.apply(void 0,[e,N(t)].concat(r))},_.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return L(t).then((function(t){return M.apply(void 0,[e,t].concat(r))}))},_.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];D.apply(void 0,[e,N(t)].concat(r))},_.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return L(t).then((function(t){return D.apply(void 0,[e,t].concat(r))}))},_.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=y(t);var r=new m({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=r.stack.split("\n"),l=0;l<o.length;l++){var u=s.indexOf(o[l]);if(-1!==u){s=s.slice(0,u);break}}r.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw r}},_.match=function e(t,n,r){F(t,n,r,e,"match")},_.doesNotMatch=function e(t,n,r){F(t,n,r,e,"doesNotMatch")},_.strict=x(B,_,{equal:_.strictEqual,deepEqual:_.deepStrictEqual,notEqual:_.notStrictEqual,notDeepEqual:_.notDeepStrictEqual}),_.strict.strict=_.strict},8264:function(e,t,n){"use strict";var r=n(7490);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===m(t)?t:String(t)}function u(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,v(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function d(e,t,n){return(d=p()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&h(i,n.prototype),i}).apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=n(7736).inspect,g=n(3905).codes.ERR_INVALID_ARG_TYPE;function b(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var w="",x="",E="",S="",k={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function C(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function _(e){return y(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function T(e,t,n){var i="",a="",o=0,s="",l=!1,u=_(e),c=u.split("\n"),f=_(t).split("\n"),d=0,p="";if("strictEqual"===n&&"object"===m(e)&&"object"===m(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var h=c[0].length+f[0].length;if(h<=10){if(!("object"===m(e)&&null!==e||"object"===m(t)&&null!==t||0===e&&0===t))return"".concat(k[n],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&h<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;c[0][d]===f[0][d];)d++;d>2&&(p="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}for(var v=c[c.length-1],y=f[f.length-1];v===y&&(d++<2?s="\n ".concat(v).concat(s):i=v,c.pop(),f.pop(),0!==c.length&&0!==f.length);)v=c[c.length-1],y=f[f.length-1];var g=Math.max(c.length,f.length);if(0===g){var C=u.split("\n");if(C.length>30)for(C[26]="".concat(w,"...").concat(S);C.length>27;)C.pop();return"".concat(k.notIdentical,"\n\n").concat(C.join("\n"),"\n")}d>3&&(s="\n".concat(w,"...").concat(S).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var T=0,P=k[n]+"\n".concat(x,"+ actual").concat(S," ").concat(E,"- expected").concat(S),O=" ".concat(w,"...").concat(S," Lines skipped");for(d=0;d<g;d++){var j=d-o;if(c.length<d+1)j>1&&d>2&&(j>4?(a+="\n".concat(w,"...").concat(S),l=!0):j>3&&(a+="\n ".concat(f[d-2]),T++),a+="\n ".concat(f[d-1]),T++),o=d,i+="\n".concat(E,"-").concat(S," ").concat(f[d]),T++;else if(f.length<d+1)j>1&&d>2&&(j>4?(a+="\n".concat(w,"...").concat(S),l=!0):j>3&&(a+="\n ".concat(c[d-2]),T++),a+="\n ".concat(c[d-1]),T++),o=d,a+="\n".concat(x,"+").concat(S," ").concat(c[d]),T++;else{var A=f[d],I=c[d],N=I!==A&&(!b(I,",")||I.slice(0,-1)!==A);N&&b(A,",")&&A.slice(0,-1)===I&&(N=!1,I+=","),N?(j>1&&d>2&&(j>4?(a+="\n".concat(w,"...").concat(S),l=!0):j>3&&(a+="\n ".concat(c[d-2]),T++),a+="\n ".concat(c[d-1]),T++),o=d,a+="\n".concat(x,"+").concat(S," ").concat(I),i+="\n".concat(E,"-").concat(S," ").concat(A),T+=2):(a+=i,i="",1!==j&&0!==d||(a+="\n ".concat(I),T++))}if(T>20&&d<g-2)return"".concat(P).concat(O,"\n").concat(a,"\n").concat(w,"...").concat(S).concat(i,"\n")+"".concat(w,"...").concat(S)}return"".concat(P).concat(l?O:"","\n").concat(a).concat(i).concat(s).concat(p)}var P=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(l,e);var n,i,o=function(e){var t=p();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}(l);function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),"object"!==m(e)||null===e)throw new g("options","Object",e);var n=e.message,i=e.operator,a=e.stackStartFn,s=e.actual,f=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=o.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(w="[34m",x="[32m",S="[39m",E="[31m"):(w="",x="",S="",E="")),"object"===m(s)&&null!==s&&"object"===m(f)&&null!==f&&"stack"in s&&s instanceof Error&&"stack"in f&&f instanceof Error&&(s=C(s),f=C(f)),"deepStrictEqual"===i||"strictEqual"===i)t=o.call(this,T(s,f,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var p=k[i],h=_(s).split("\n");if("notStrictEqual"===i&&"object"===m(s)&&null!==s&&(p=k.notStrictEqualObject),h.length>30)for(h[26]="".concat(w,"...").concat(S);h.length>27;)h.pop();t=1===h.length?o.call(this,"".concat(p," ").concat(h[0])):o.call(this,"".concat(p,"\n\n").concat(h.join("\n"),"\n"))}else{var v=_(s),y="",b=k[i];"notDeepEqual"===i||"notEqual"===i?(v="".concat(k[i],"\n\n").concat(v)).length>1024&&(v="".concat(v.slice(0,1021),"...")):(y="".concat(_(f)),v.length>512&&(v="".concat(v.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===i||"equal"===i?v="".concat(b,"\n\n").concat(v,"\n\nshould equal\n\n"):y=" ".concat(i," ").concat(y)),t=o.call(this,"".concat(v).concat(y))}return Error.stackTraceLimit=d,t.generatedMessage=!n,Object.defineProperty(c(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=s,t.expected=f,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(c(t),a),t.stack,t.name="AssertionError",u(t)}return n=l,(i=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return y(this,a(a({},t),{},{customInspect:!1,depth:0}))}}])&&s(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),l}(f(Error),y.custom);e.exports=P},3905:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=o(e);if(t){var a=o(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s,l,u={};function c(e,t,n){n||(n=Error);var r=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(s,n);var r,o=a(s);function s(n,r,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(a=o.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))).code=e,a}return r=s,Object.defineProperty(r,"prototype",{writable:!1}),r}(n);u[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,o,l;if(void 0===s&&(s=n(5205)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))l="The ".concat(e," ").concat(a," ").concat(f(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";l='The "'.concat(e,'" ').concat(u," ").concat(a," ").concat(f(t,"type"))}return l+". Received type ".concat(r(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=n(7736));var i=l.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(5205)),s(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=u},8527:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},l=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},u=Object.is?Object.is:n(8199),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:n(5738);function d(e){return e.call.bind(e)}var p=d(Object.prototype.hasOwnProperty),h=d(Object.prototype.propertyIsEnumerable),v=d(Object.prototype.toString),m=n(7736).types,y=m.isAnyArrayBuffer,g=m.isArrayBufferView,b=m.isDate,w=m.isMap,x=m.isRegExp,E=m.isSet,S=m.isNativeError,k=m.isBoxedPrimitive,C=m.isNumberObject,_=m.isStringObject,T=m.isBooleanObject,P=m.isBigIntObject,O=m.isSymbolObject,j=m.isFloat32Array,A=m.isFloat64Array;function I(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function N(e){return Object.keys(e).filter(I).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function L(e,t,n,r){if(e===t)return 0!==e||!n||u(e,t);if(n){if("object"!==a(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==a(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==a(e))return(null===t||"object"!==a(t))&&e==t;if(null===t||"object"!==a(t))return!1}var i,s,l,c,d=v(e);if(d!==v(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=N(e),h=N(t);return p.length===h.length&&D(e,t,n,r,1,p)}if("[object Object]"===d&&(!w(e)&&w(t)||!E(e)&&E(t)))return!1;if(b(e)){if(!b(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(x(e)){if(!x(t)||(l=e,c=t,!(o?l.source===c.source&&l.flags===c.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(c))))return!1}else if(S(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(g(e)){if(n||!j(e)&&!A(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===R(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var m=N(e),I=N(t);return m.length===I.length&&D(e,t,n,r,0,m)}if(E(e))return!(!E(t)||e.size!==t.size)&&D(e,t,n,r,2);if(w(e))return!(!w(t)||e.size!==t.size)&&D(e,t,n,r,3);if(y(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==R(new Uint8Array(i),new Uint8Array(s)))return!1}else if(k(e)&&!function(e,t){return C(e)?C(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):_(e)?_(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):T(e)?T(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):P(e)?P(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):O(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return D(e,t,n,r,0)}function M(e,t){return t.filter((function(t){return h(e,t)}))}function D(e,t,n,i,o,u){if(5===arguments.length){u=Object.keys(e);var f=Object.keys(t);if(u.length!==f.length)return!1}for(var d=0;d<u.length;d++)if(!p(t,u[d]))return!1;if(n&&5===arguments.length){var v=c(e);if(0!==v.length){var m=0;for(d=0;d<v.length;d++){var y=v[d];if(h(e,y)){if(!h(t,y))return!1;u.push(y),m++}else if(h(t,y))return!1}var g=c(t);if(v.length!==g.length&&M(t,g).length!==m)return!1}else{var b=c(t);if(0!==b.length&&0!==M(t,b).length)return!1}}if(0===u.length&&(0===o||1===o&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var w=i.val1.get(e);if(void 0!==w){var x=i.val2.get(t);if(void 0!==x)return w===x}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var E=function(e,t,n,i,o,u){var c=0;if(2===u){if(!function(e,t,n,r){for(var i=null,o=s(e),l=0;l<o.length;l++){var u=o[l];if("object"===a(u)&&null!==u)null===i&&(i=new Set),i.add(u);else if(!t.has(u)){if(n)return!1;if(!U(e,t,u))return!1;null===i&&(i=new Set),i.add(u)}}if(null!==i){for(var c=s(t),f=0;f<c.length;f++){var d=c[f];if("object"===a(d)&&null!==d){if(!F(i,d,n,r))return!1}else if(!n&&!e.has(d)&&!F(i,d,n,r))return!1}return 0===i.size}return!0}(e,t,n,o))return!1}else if(3===u){if(!function(e,t,n,i){for(var o=null,s=l(e),u=0;u<s.length;u++){var c=r(s[u],2),f=c[0],d=c[1];if("object"===a(f)&&null!==f)null===o&&(o=new Set),o.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!L(d,p,n,i)){if(n)return!1;if(!z(e,t,f,d,i))return!1;null===o&&(o=new Set),o.add(f)}}}if(null!==o){for(var h=l(t),v=0;v<h.length;v++){var m=r(h[v],2),y=m[0],g=m[1];if("object"===a(y)&&null!==y){if(!V(o,e,y,g,n,i))return!1}else if(!(n||e.has(y)&&L(e.get(y),g,!1,i)||V(o,e,y,g,!1,i)))return!1}return 0===o.size}return!0}(e,t,n,o))return!1}else if(1===u)for(;c<e.length;c++){if(!p(e,c)){if(p(t,c))return!1;for(var f=Object.keys(e);c<f.length;c++){var d=f[c];if(!p(t,d)||!L(e[d],t[d],n,o))return!1}return f.length===Object.keys(t).length}if(!p(t,c)||!L(e[c],t[c],n,o))return!1}for(c=0;c<i.length;c++){var h=i[c];if(!L(e[h],t[h],n,o))return!1}return!0}(e,t,n,u,i,o);return i.val1.delete(e),i.val2.delete(t),E}function F(e,t,n,r){for(var i=s(e),a=0;a<i.length;a++){var o=i[a];if(L(t,o,n,r))return e.delete(o),!0}return!1}function B(e){switch(a(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f(e))return!1}return!0}function U(e,t,n){var r=B(n);return null!=r?r:t.has(r)&&!e.has(r)}function z(e,t,n,r,i){var a=B(n);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!L(r,o,!1,i))&&!e.has(a)&&L(r,o,!1,i)}function V(e,t,n,r,i,a){for(var o=s(e),l=0;l<o.length;l++){var u=o[l];if(L(n,u,i,a)&&L(r,t.get(u),i,a))return e.delete(u),!0}return!1}e.exports={isDeepEqual:function(e,t){return L(e,t,!1)},isDeepStrictEqual:function(e,t){return L(e,t,!0)}}},4680:function(e,t,n){"use strict";var r=n(8476),i=n(9962),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},9962:function(e,t,n){"use strict";var r=n(1199),i=n(8476),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,o,arguments);return l&&u&&l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return s(r,a,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},8466:function(e,t,n){var r=n(7736),i=n(5205);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,l={};o=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){l[e]=a()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=a()-t;o.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],c=0;c<u.length;c++){var f=u[c],d=f[0],p=f[1];o[p]||(o[p]=d)}e.exports=o},5150:function(e,t,n){"use strict";var r=n(2926)(),i=n(8476),a=r&&i("%Object.defineProperty%",!0),o=i("%SyntaxError%"),s=i("%TypeError%"),l=n(6103);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!l&&l(e,t);if(a)a(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===r&&f?f.enumerable:!r,value:n,writable:null===i&&f?f.writable:!i});else{if(!c&&(r||i||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},9959:function(e,t,n){"use strict";var r=n(6328),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=n(5150),l=n(2926)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==a.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)u(e,a[s],t[a[s]],n[a[s]])};c.supportsDescriptors=!!l,e.exports=c},5767:function(e,t,n){"use strict";var r=n(8866),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,o):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,o):function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,o)}},2781:function(e){"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,a=t.call(arguments,1),o=Math.max(0,r.length-a.length),s=[],l=0;l<o;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var n=r.apply(this,a.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,a.concat(t.call(arguments)))})),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}},1199:function(e,t,n){"use strict";var r=n(2781);e.exports=Function.prototype.bind||r},8476:function(e,t,n){"use strict";var r,i=SyntaxError,a=Function,o=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new o},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,f=n(5520)(),d=n(7593)(),p=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},v="undefined"!=typeof Uint8Array&&p?p(Uint8Array):r,m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&p?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&p?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&p?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&p?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":v,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(p)try{null.error}catch(e){var y=p(p(e));m["%Error.prototype%"]=y}var g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&p&&(n=p(i.prototype))}return m[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=n(1199),x=n(7838),E=w.call(Function.call,Array.prototype.concat),S=w.call(Function.apply,Array.prototype.splice),k=w.call(Function.call,String.prototype.replace),C=w.call(Function.call,String.prototype.slice),_=w.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,O=function(e,t){var n,r=e;if(x(b,r)&&(r="%"+(n=b[r])[0]+"%"),x(m,r)){var a=m[r];if(a===h&&(a=g(r)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:a}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=C(e,0,1),n=C(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,T,(function(e,t,n,i){r[r.length]=n?k(i,P,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",a=O("%"+r+"%",t),s=a.name,u=a.value,c=!1,f=a.alias;f&&(r=f[0],S(n,E([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],v=C(h,0,1),y=C(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),x(m,s="%"+(r+="."+h)+"%"))u=m[s];else if(null!=u){if(!(h in u)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var g=l(u,h);u=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:u[h]}else p=x(u,h),u=u[h];p&&!c&&(m[s]=u)}}return u}},6103:function(e,t,n){"use strict";var r=n(8476)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},2926:function(e,t,n){"use strict";var r=n(8476)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},7593:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},5520:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(541);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},541:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8857:function(e,t,n){"use strict";var r=n(541);e.exports=function(){return r()&&!!Symbol.toStringTag}},7838:function(e){"use strict";var t={}.hasOwnProperty,n=Function.prototype.call;e.exports=n.bind?n.bind(t):function(e,r){return n.call(t,e,r)}},273:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},5021:function(e,t,n){"use strict";var r=n(8857)(),i=n(4680)("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},8866:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(o(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},7469:function(e,t,n){"use strict";var r,i=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(8857)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},1546:function(e){"use strict";e.exports=function(e){return e!=e}},5738:function(e,t,n){"use strict";var r=n(9962),i=n(9959),a=n(1546),o=n(9221),s=n(5434),l=r(o(),Number);i(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},9221:function(e,t,n){"use strict";var r=n(1546);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},5434:function(e,t,n){"use strict";var r=n(9959),i=n(9221);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2105:function(e,t,n){"use strict";var r=n(1520);e.exports=function(e){return!!r(e)}},538:function(e,t,n){var r=n(8466);e.exports=function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[o]={exports:{}};t[o][0].call(u.exports,(function(e){return i(t[o][1][e]||e)}),u,u.exports,e,t,n,r)}return n[o].exports}for(var a=void 0,o=0;o<r.length;o++)i(r[o]);return i}({"./aesprim":[function(e,t,n){!function(e,t){"use strict";t(void 0!==n?n:e.esprima={})}(this,(function(e){"use strict";var t,n,r,i,a,o,s,l,u,c,f,d,p,h,v,m,y,g;function b(e,t){if(!e)throw new Error("ASSERT: "+t)}function w(e){return e>=48&&e<=57}function x(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function E(e){return"01234567".indexOf(e)>=0}function S(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function k(e){return 10===e||13===e||8232===e||8233===e}function C(e){return 64==e||36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&s.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function _(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&s.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function T(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function P(e){return"eval"===e||"arguments"===e}function O(e){if(c&&T(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function j(e,t,n,r,i){var a;b("number"==typeof n,"Comment must have valid position"),y.lastCommentStart>=n||(y.lastCommentStart=n,a={type:e,value:t},g.range&&(a.range=[n,r]),g.loc&&(a.loc=i),g.comments.push(a),g.attachComment&&(g.leadingComments.push(a),g.trailingComments.push(a)))}function A(e){var t,n,r,i;for(t=f-e,n={start:{line:d,column:f-p-e}};f<h;)if(r=u.charCodeAt(f),++f,k(r))return g.comments&&(i=u.slice(t+e,f-1),n.end={line:d,column:f-p-1},j("Line",i,t,f-1,n)),13===r&&10===u.charCodeAt(f)&&++f,++d,void(p=f);g.comments&&(i=u.slice(t+e,f),n.end={line:d,column:f-p},j("Line",i,t,f,n))}function I(){var e,t,n,r;for(g.comments&&(e=f-2,t={start:{line:d,column:f-p-2}});f<h;)if(k(n=u.charCodeAt(f)))13===n&&10===u.charCodeAt(f+1)&&++f,++d,++f,p=f,f>=h&&Y({},o.UnexpectedToken,"ILLEGAL");else if(42===n){if(47===u.charCodeAt(f+1))return++f,++f,void(g.comments&&(r=u.slice(e+2,f-2),t.end={line:d,column:f-p},j("Block",r,e,f,t)));++f}else++f;Y({},o.UnexpectedToken,"ILLEGAL")}function N(){var e,t;for(t=0===f;f<h;)if(S(e=u.charCodeAt(f)))++f;else if(k(e))++f,13===e&&10===u.charCodeAt(f)&&++f,++d,p=f,t=!0;else if(47===e)if(47===(e=u.charCodeAt(f+1)))++f,++f,A(2),t=!0;else{if(42!==e)break;++f,++f,I()}else if(t&&45===e){if(45!==u.charCodeAt(f+1)||62!==u.charCodeAt(f+2))break;f+=3,A(3)}else{if(60!==e)break;if("!--"!==u.slice(f+1,f+4))break;++f,++f,++f,++f,A(4)}}function R(e){var t,n,r,i=0;for(n="u"===e?4:2,t=0;t<n;++t){if(!(f<h&&x(u[f])))return"";r=u[f++],i=16*i+"0123456789abcdef".indexOf(r.toLowerCase())}return String.fromCharCode(i)}function L(){var e,t;for(e=u.charCodeAt(f++),t=String.fromCharCode(e),92===e&&(117!==u.charCodeAt(f)&&Y({},o.UnexpectedToken,"ILLEGAL"),++f,(e=R("u"))&&"\\"!==e&&C(e.charCodeAt(0))||Y({},o.UnexpectedToken,"ILLEGAL"),t=e);f<h&&_(e=u.charCodeAt(f));)++f,t+=String.fromCharCode(e),92===e&&(t=t.substr(0,t.length-1),117!==u.charCodeAt(f)&&Y({},o.UnexpectedToken,"ILLEGAL"),++f,(e=R("u"))&&"\\"!==e&&_(e.charCodeAt(0))||Y({},o.UnexpectedToken,"ILLEGAL"),t+=e);return t}function M(){var e,t;for(e=f++;f<h;){if(92===(t=u.charCodeAt(f)))return f=e,L();if(!_(t))break;++f}return u.slice(e,f)}function D(){var e,n,r,i,a=f,s=u.charCodeAt(f),l=u[f];switch(s){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++f,g.tokenize&&(40===s?g.openParenToken=g.tokens.length:123===s&&(g.openCurlyToken=g.tokens.length)),{type:t.Punctuator,value:String.fromCharCode(s),lineNumber:d,lineStart:p,start:a,end:f};default:if(61===(e=u.charCodeAt(f+1)))switch(s){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return f+=2,{type:t.Punctuator,value:String.fromCharCode(s)+String.fromCharCode(e),lineNumber:d,lineStart:p,start:a,end:f};case 33:case 61:return f+=2,61===u.charCodeAt(f)&&++f,{type:t.Punctuator,value:u.slice(a,f),lineNumber:d,lineStart:p,start:a,end:f}}}return">>>="===(i=u.substr(f,4))?(f+=4,{type:t.Punctuator,value:i,lineNumber:d,lineStart:p,start:a,end:f}):">>>"===(r=i.substr(0,3))||"<<="===r||">>="===r?(f+=3,{type:t.Punctuator,value:r,lineNumber:d,lineStart:p,start:a,end:f}):l===(n=r.substr(0,2))[1]&&"+-<>&|".indexOf(l)>=0||"=>"===n?(f+=2,{type:t.Punctuator,value:n,lineNumber:d,lineStart:p,start:a,end:f}):"<>=!+-*%&|^/".indexOf(l)>=0?(++f,{type:t.Punctuator,value:l,lineNumber:d,lineStart:p,start:a,end:f}):void Y({},o.UnexpectedToken,"ILLEGAL")}function F(){var e,n,r;if(b(w((r=u[f]).charCodeAt(0))||"."===r,"Numeric literal must start with a decimal digit or a decimal point"),n=f,e="","."!==r){if(e=u[f++],r=u[f],"0"===e){if("x"===r||"X"===r)return++f,function(e){for(var n="";f<h&&x(u[f]);)n+=u[f++];return 0===n.length&&Y({},o.UnexpectedToken,"ILLEGAL"),C(u.charCodeAt(f))&&Y({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt("0x"+n,16),lineNumber:d,lineStart:p,start:e,end:f}}(n);if(E(r))return function(e){for(var n="0"+u[f++];f<h&&E(u[f]);)n+=u[f++];return(C(u.charCodeAt(f))||w(u.charCodeAt(f)))&&Y({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt(n,8),octal:!0,lineNumber:d,lineStart:p,start:e,end:f}}(n);r&&w(r.charCodeAt(0))&&Y({},o.UnexpectedToken,"ILLEGAL")}for(;w(u.charCodeAt(f));)e+=u[f++];r=u[f]}if("."===r){for(e+=u[f++];w(u.charCodeAt(f));)e+=u[f++];r=u[f]}if("e"===r||"E"===r)if(e+=u[f++],"+"!==(r=u[f])&&"-"!==r||(e+=u[f++]),w(u.charCodeAt(f)))for(;w(u.charCodeAt(f));)e+=u[f++];else Y({},o.UnexpectedToken,"ILLEGAL");return C(u.charCodeAt(f))&&Y({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseFloat(e),lineNumber:d,lineStart:p,start:n,end:f}}function B(){var e,n,r,i;return m=null,N(),e=f,n=function(){var e,t,n,r;for(b("/"===(e=u[f]),"Regular expression literal must start with a slash"),t=u[f++],n=!1,r=!1;f<h;)if(t+=e=u[f++],"\\"===e)k((e=u[f++]).charCodeAt(0))&&Y({},o.UnterminatedRegExp),t+=e;else if(k(e.charCodeAt(0)))Y({},o.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){r=!0;break}"["===e&&(n=!0)}return r||Y({},o.UnterminatedRegExp),{value:t.substr(1,t.length-2),literal:t}}(),r=function(){var e,t,n,r;for(t="",n="";f<h&&_((e=u[f]).charCodeAt(0));)if(++f,"\\"===e&&f<h)if("u"===(e=u[f])){if(r=++f,e=R("u"))for(n+=e,t+="\\u";r<f;++r)t+=u[r];else f=r,n+="u",t+="\\u";K({},o.UnexpectedToken,"ILLEGAL")}else t+="\\",K({},o.UnexpectedToken,"ILLEGAL");else n+=e,t+=e;return{value:n,literal:t}}(),i=function(e,t){var n;try{n=new RegExp(e,t)}catch(e){Y({},o.InvalidRegExp)}return n}(n.value,r.value),g.tokenize?{type:t.RegularExpression,value:i,lineNumber:d,lineStart:p,start:e,end:f}:{literal:n.literal+r.literal,value:i,start:e,end:f}}function U(){var e,t,n,r;return N(),e=f,t={start:{line:d,column:f-p}},n=B(),t.end={line:d,column:f-p},g.tokenize||(g.tokens.length>0&&(r=g.tokens[g.tokens.length-1]).range[0]===e&&"Punctuator"===r.type&&("/"!==r.value&&"/="!==r.value||g.tokens.pop()),g.tokens.push({type:"RegularExpression",value:n.literal,range:[e,f],loc:t})),n}function z(e){return e.type===t.Identifier||e.type===t.Keyword||e.type===t.BooleanLiteral||e.type===t.NullLiteral}function V(){var e;return N(),f>=h?{type:t.EOF,lineNumber:d,lineStart:p,start:f,end:f}:C(e=u.charCodeAt(f))?function(){var e,n;return e=f,{type:1===(n=92===u.charCodeAt(f)?L():M()).length?t.Identifier:O(n)?t.Keyword:"null"===n?t.NullLiteral:"true"===n||"false"===n?t.BooleanLiteral:t.Identifier,value:n,lineNumber:d,lineStart:p,start:e,end:f}}():40===e||41===e||59===e?D():39===e||34===e?function(){var e,n,r,i,a,s,l,c,v="",m=!1;for(l=d,c=p,b("'"===(e=u[f])||'"'===e,"String literal must starts with a quote"),n=f,++f;f<h;){if((r=u[f++])===e){e="";break}if("\\"===r)if((r=u[f++])&&k(r.charCodeAt(0)))++d,"\r"===r&&"\n"===u[f]&&++f,p=f;else switch(r){case"u":case"x":s=f,(a=R(r))?v+=a:(f=s,v+=r);break;case"n":v+="\n";break;case"r":v+="\r";break;case"t":v+="\t";break;case"b":v+="\b";break;case"f":v+="\f";break;case"v":v+="\v";break;default:E(r)?(0!==(i="01234567".indexOf(r))&&(m=!0),f<h&&E(u[f])&&(m=!0,i=8*i+"01234567".indexOf(u[f++]),"0123".indexOf(r)>=0&&f<h&&E(u[f])&&(i=8*i+"01234567".indexOf(u[f++]))),v+=String.fromCharCode(i)):v+=r}else{if(k(r.charCodeAt(0)))break;v+=r}}return""!==e&&Y({},o.UnexpectedToken,"ILLEGAL"),{type:t.StringLiteral,value:v,octal:m,startLineNumber:l,startLineStart:c,lineNumber:d,lineStart:p,start:n,end:f}}():46===e?w(u.charCodeAt(f+1))?F():D():w(e)?F():g.tokenize&&47===e?function(){var e,t;if(!(e=g.tokens[g.tokens.length-1]))return U();if("Punctuator"===e.type){if("]"===e.value)return D();if(")"===e.value)return!(t=g.tokens[g.openParenToken-1])||"Keyword"!==t.type||"if"!==t.value&&"while"!==t.value&&"for"!==t.value&&"with"!==t.value?D():U();if("}"===e.value){if(g.tokens[g.openCurlyToken-3]&&"Keyword"===g.tokens[g.openCurlyToken-3].type){if(!(t=g.tokens[g.openCurlyToken-4]))return D()}else{if(!g.tokens[g.openCurlyToken-4]||"Keyword"!==g.tokens[g.openCurlyToken-4].type)return D();if(!(t=g.tokens[g.openCurlyToken-5]))return U()}return r.indexOf(t.value)>=0?D():U()}return U()}return"Keyword"===e.type?U():D()}():D()}function H(){var e,r,i;return N(),e={start:{line:d,column:f-p}},r=V(),e.end={line:d,column:f-p},r.type!==t.EOF&&(i=u.slice(r.start,r.end),g.tokens.push({type:n[r.type],value:i,range:[r.start,r.end],loc:e})),r}function W(){var e;return f=(e=m).end,d=e.lineNumber,p=e.lineStart,m=void 0!==g.tokens?H():V(),f=e.end,d=e.lineNumber,p=e.lineStart,e}function $(){var e,t,n;e=f,t=d,n=p,m=void 0!==g.tokens?H():V(),f=e,d=t,p=n}function q(e,t){this.line=e,this.column=t}function G(e,t,n,r){this.start=new q(e,t),this.end=new q(n,r)}function X(){var e,t,n,r;return e=f,t=d,n=p,N(),r=d!==t,f=e,d=t,p=n,r}function Y(e,t){var n,r=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,(function(e,t){return b(t<r.length,"Message reference must be in range"),r[t]}));throw"number"==typeof e.lineNumber?((n=new Error("Line "+e.lineNumber+": "+i)).index=e.start,n.lineNumber=e.lineNumber,n.column=e.start-p+1):((n=new Error("Line "+d+": "+i)).index=f,n.lineNumber=d,n.column=f-p+1),n.description=i,n}function K(){try{Y.apply(null,arguments)}catch(e){if(!g.errors)throw e;g.errors.push(e)}}function Q(e){if(e.type===t.EOF&&Y(e,o.UnexpectedEOS),e.type===t.NumericLiteral&&Y(e,o.UnexpectedNumber),e.type===t.StringLiteral&&Y(e,o.UnexpectedString),e.type===t.Identifier&&Y(e,o.UnexpectedIdentifier),e.type===t.Keyword){if(function(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}(e.value))Y(e,o.UnexpectedReserved);else if(c&&T(e.value))return void K(e,o.StrictReservedWord);Y(e,o.UnexpectedToken,e.value)}Y(e,o.UnexpectedToken,e.value)}function J(e){var n=W();n.type===t.Punctuator&&n.value===e||Q(n)}function Z(e){var n=W();n.type===t.Keyword&&n.value===e||Q(n)}function ee(e){return m.type===t.Punctuator&&m.value===e}function te(e){return m.type===t.Keyword&&m.value===e}function ne(){var e;return m.type===t.Punctuator&&("="===(e=m.value)||"*="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e)}function re(){var e;59===u.charCodeAt(f)||ee(";")?W():(e=d,N(),d===e&&(m.type===t.EOF||ee("}")||Q(m)))}function ie(e){return e.type===i.Identifier||e.type===i.MemberExpression}function ae(e,t){var n,r,i;return n=c,i=m,r=Pe(),t&&c&&P(e[0].name)&&K(t,o.StrictParamName),c=n,v.markEnd(v.createFunctionExpression(null,e,[],r),i)}function oe(){var e,n;return n=m,(e=W()).type===t.StringLiteral||e.type===t.NumericLiteral?(c&&e.octal&&K(e,o.StrictOctalLiteral),v.markEnd(v.createLiteral(e),n)):v.markEnd(v.createIdentifier(e.value),n)}function se(){var e,n,r,i,a,s;return s=m,(e=m).type===t.Identifier?(r=oe(),"get"!==e.value||ee(":")?"set"!==e.value||ee(":")?(J(":"),i=ge(),v.markEnd(v.createProperty("init",r,i),s)):(n=oe(),J("("),(e=m).type!==t.Identifier?(J(")"),K(e,o.UnexpectedToken,e.value),i=ae([])):(a=[xe()],J(")"),i=ae(a,e)),v.markEnd(v.createProperty("set",n,i),s)):(n=oe(),J("("),J(")"),i=ae([]),v.markEnd(v.createProperty("get",n,i),s))):e.type!==t.EOF&&e.type!==t.Punctuator?(n=oe(),J(":"),i=ge(),v.markEnd(v.createProperty("init",n,i),s)):void Q(e)}function le(){var e,t,n,r,s,l=[],u={},f=String;for(s=m,J("{");!ee("}");)t=(e=se()).key.type===i.Identifier?e.key.name:f(e.key.value),r="init"===e.kind?a.Data:"get"===e.kind?a.Get:a.Set,n="$"+t,Object.prototype.hasOwnProperty.call(u,n)?(u[n]===a.Data?c&&r===a.Data?K({},o.StrictDuplicateProperty):r!==a.Data&&K({},o.AccessorDataProperty):r===a.Data?K({},o.AccessorDataProperty):u[n]&r&&K({},o.AccessorGetSet),u[n]|=r):u[n]=r,l.push(e),ee("}")||J(",");return J("}"),v.markEnd(v.createObjectExpression(l),s)}function ue(){var e,n,r,i;if(ee("("))return function(){var e;return J("("),e=be(),J(")"),e}();if(ee("["))return function(){var e,t=[];for(e=m,J("[");!ee("]");)ee(",")?(W(),t.push(null)):(t.push(ge()),ee("]")||J(","));return W(),v.markEnd(v.createArrayExpression(t),e)}();if(ee("{"))return le();if(e=m.type,i=m,e===t.Identifier)r=v.createIdentifier(W().value);else if(e===t.StringLiteral||e===t.NumericLiteral)c&&m.octal&&K(m,o.StrictOctalLiteral),r=v.createLiteral(W());else if(e===t.Keyword){if(te("function"))return function(){var e,t,n,r,i,a,s,l,u=null,f=[];return l=m,Z("function"),ee("(")||(e=m,u=xe(),c?P(e.value)&&K(e,o.StrictFunctionName):P(e.value)?(n=e,r=o.StrictFunctionName):T(e.value)&&(n=e,r=o.StrictReservedWord)),f=(i=Oe(n)).params,t=i.stricted,n=i.firstRestricted,i.message&&(r=i.message),s=c,a=Pe(),c&&n&&Y(n,r),c&&t&&K(t,r),c=s,v.markEnd(v.createFunctionExpression(u,f,[],a),l)}();te("this")?(W(),r=v.createThisExpression()):Q(W())}else e===t.BooleanLiteral?((n=W()).value="true"===n.value,r=v.createLiteral(n)):e===t.NullLiteral?((n=W()).value=null,r=v.createLiteral(n)):ee("/")||ee("/=")?(r=void 0!==g.tokens?v.createLiteral(U()):v.createLiteral(B()),$()):Q(W());return v.markEnd(r,i)}function ce(){var e=[];if(J("("),!ee(")"))for(;f<h&&(e.push(ge()),!ee(")"));)J(",");return J(")"),e}function fe(){return J("."),function(){var e,t;return t=m,z(e=W())||Q(e),v.markEnd(v.createIdentifier(e.value),t)}()}function de(){var e;return J("["),e=be(),J("]"),e}function pe(){var e,t,n;return n=m,Z("new"),e=function(){var e,t,n,r;for(r=m,e=y.allowIn,t=te("new")?pe():ue(),y.allowIn=e;ee(".")||ee("[");)ee("[")?(n=de(),t=v.createMemberExpression("[",t,n)):(n=fe(),t=v.createMemberExpression(".",t,n)),v.markEnd(t,r);return t}(),t=ee("(")?ce():[],v.markEnd(v.createNewExpression(e,t),n)}function he(){var e,n,r=m;return e=function(){var e,t,n,r,i;for(i=m,e=y.allowIn,y.allowIn=!0,t=te("new")?pe():ue(),y.allowIn=e;;){if(ee("."))r=fe(),t=v.createMemberExpression(".",t,r);else if(ee("("))n=ce(),t=v.createCallExpression(t,n);else{if(!ee("["))break;r=de(),t=v.createMemberExpression("[",t,r)}v.markEnd(t,i)}return t}(),m.type===t.Punctuator&&(!ee("++")&&!ee("--")||X()||(c&&e.type===i.Identifier&&P(e.name)&&K({},o.StrictLHSPostfix),ie(e)||K({},o.InvalidLHSInAssignment),n=W(),e=v.markEnd(v.createPostfixExpression(n.value,e),r))),e}function ve(){var e,n,r;return m.type!==t.Punctuator&&m.type!==t.Keyword?n=he():ee("++")||ee("--")?(r=m,e=W(),n=ve(),c&&n.type===i.Identifier&&P(n.name)&&K({},o.StrictLHSPrefix),ie(n)||K({},o.InvalidLHSInAssignment),n=v.createUnaryExpression(e.value,n),n=v.markEnd(n,r)):ee("+")||ee("-")||ee("~")||ee("!")?(r=m,e=W(),n=ve(),n=v.createUnaryExpression(e.value,n),n=v.markEnd(n,r)):te("delete")||te("void")||te("typeof")?(r=m,e=W(),n=ve(),n=v.createUnaryExpression(e.value,n),n=v.markEnd(n,r),c&&"delete"===n.operator&&n.argument.type===i.Identifier&&K({},o.StrictDelete)):n=he(),n}function me(e,n){var r=0;if(e.type!==t.Punctuator&&e.type!==t.Keyword)return 0;switch(e.value){case"||":r=1;break;case"&&":r=2;break;case"|":r=3;break;case"^":r=4;break;case"&":r=5;break;case"==":case"!=":case"===":case"!==":r=6;break;case"<":case">":case"<=":case">=":case"instanceof":r=7;break;case"in":r=n?7:0;break;case"<<":case">>":case">>>":r=8;break;case"+":case"-":r=9;break;case"*":case"/":case"%":r=11}return r}function ye(){var e,t,n,r,i;return i=m,e=function(){var e,t,n,r,i,a,o,s,l,u;if(e=m,l=ve(),0===(i=me(r=m,y.allowIn)))return l;for(r.prec=i,W(),t=[e,m],a=[l,r,o=ve()];(i=me(m,y.allowIn))>0;){for(;a.length>2&&i<=a[a.length-2].prec;)o=a.pop(),s=a.pop().value,l=a.pop(),n=v.createBinaryExpression(s,l,o),t.pop(),e=t[t.length-1],v.markEnd(n,e),a.push(n);(r=W()).prec=i,a.push(r),t.push(m),n=ve(),a.push(n)}for(n=a[u=a.length-1],t.pop();u>1;)n=v.createBinaryExpression(a[u-1].value,a[u-2],n),u-=2,e=t.pop(),v.markEnd(n,e);return n}(),ee("?")&&(W(),t=y.allowIn,y.allowIn=!0,n=ge(),y.allowIn=t,J(":"),r=ge(),e=v.createConditionalExpression(e,n,r),v.markEnd(e,i)),e}function ge(){var e,t,n,r,a;return e=m,a=m,r=t=ye(),ne()&&(ie(t)||K({},o.InvalidLHSInAssignment),c&&t.type===i.Identifier&&P(t.name)&&K(e,o.StrictLHSAssignment),e=W(),n=ge(),r=v.markEnd(v.createAssignmentExpression(e.value,t,n),a)),r}function be(){var e,t=m;if(e=ge(),ee(",")){for(e=v.createSequenceExpression([e]);f<h&&ee(",");)W(),e.expressions.push(ge());v.markEnd(e,t)}return e}function we(){var e,t;return t=m,J("{"),e=function(){for(var e,t=[];f<h&&!ee("}")&&void 0!==(e=Ae());)t.push(e);return t}(),J("}"),v.markEnd(v.createBlockStatement(e),t)}function xe(){var e,n;return n=m,(e=W()).type!==t.Identifier&&Q(e),v.markEnd(v.createIdentifier(e.value),n)}function Ee(e){var t,n,r=null;return n=m,t=xe(),c&&P(t.name)&&K({},o.StrictVarName),"const"===e?(J("="),r=ge()):ee("=")&&(W(),r=ge()),v.markEnd(v.createVariableDeclarator(t,r),n)}function Se(e){var t=[];do{if(t.push(Ee(e)),!ee(","))break;W()}while(f<h);return t}function ke(){var e,t,n,r,i,a,s;return e=t=n=null,Z("for"),J("("),ee(";")?W():(te("var")||te("let")?(y.allowIn=!1,e=function(){var e,t,n;return n=m,e=W(),t=Se(),v.markEnd(v.createVariableDeclaration(t,e.value),n)}(),y.allowIn=!0,1===e.declarations.length&&te("in")&&(W(),r=e,i=be(),e=null)):(y.allowIn=!1,e=be(),y.allowIn=!0,te("in")&&(ie(e)||K({},o.InvalidLHSInForIn),W(),r=e,i=be(),e=null)),void 0===r&&J(";")),void 0===r&&(ee(";")||(t=be()),J(";"),ee(")")||(n=be())),J(")"),s=y.inIteration,y.inIteration=!0,a=Te(),y.inIteration=s,void 0===r?v.createForStatement(e,t,n,a):v.createForInStatement(r,i,a)}function Ce(){var e,t,n,r=[];for(n=m,te("default")?(W(),e=null):(Z("case"),e=be()),J(":");f<h&&!(ee("}")||te("default")||te("case"));)t=Te(),r.push(t);return v.markEnd(v.createSwitchCase(e,r),n)}function _e(){var e,t=[],n=null;return Z("try"),e=we(),te("catch")&&t.push(function(){var e,t,n;return n=m,Z("catch"),J("("),ee(")")&&Q(m),e=xe(),c&&P(e.name)&&K({},o.StrictCatchVariable),J(")"),t=we(),v.markEnd(v.createCatchClause(e,t),n)}()),te("finally")&&(W(),n=we()),0!==t.length||n||Y({},o.NoCatchOrFinally),v.createTryStatement(e,[],t,n)}function Te(){var e,n,r,a,s=m.type;if(s===t.EOF&&Q(m),s===t.Punctuator&&"{"===m.value)return we();if(a=m,s===t.Punctuator)switch(m.value){case";":return v.markEnd((J(";"),v.createEmptyStatement()),a);case"(":return v.markEnd(function(){var e=be();return re(),v.createExpressionStatement(e)}(),a)}if(s===t.Keyword)switch(m.value){case"break":return v.markEnd(function(){var e,n=null;return Z("break"),59===u.charCodeAt(f)?(W(),y.inIteration||y.inSwitch||Y({},o.IllegalBreak),v.createBreakStatement(null)):X()?(y.inIteration||y.inSwitch||Y({},o.IllegalBreak),v.createBreakStatement(null)):(m.type===t.Identifier&&(e="$"+(n=xe()).name,Object.prototype.hasOwnProperty.call(y.labelSet,e)||Y({},o.UnknownLabel,n.name)),re(),null!==n||y.inIteration||y.inSwitch||Y({},o.IllegalBreak),v.createBreakStatement(n))}(),a);case"continue":return v.markEnd(function(){var e,n=null;return Z("continue"),59===u.charCodeAt(f)?(W(),y.inIteration||Y({},o.IllegalContinue),v.createContinueStatement(null)):X()?(y.inIteration||Y({},o.IllegalContinue),v.createContinueStatement(null)):(m.type===t.Identifier&&(e="$"+(n=xe()).name,Object.prototype.hasOwnProperty.call(y.labelSet,e)||Y({},o.UnknownLabel,n.name)),re(),null!==n||y.inIteration||Y({},o.IllegalContinue),v.createContinueStatement(n))}(),a);case"debugger":return v.markEnd((Z("debugger"),re(),v.createDebuggerStatement()),a);case"do":return v.markEnd(function(){var e,t,n;return Z("do"),n=y.inIteration,y.inIteration=!0,e=Te(),y.inIteration=n,Z("while"),J("("),t=be(),J(")"),ee(";")&&W(),v.createDoWhileStatement(e,t)}(),a);case"for":return v.markEnd(ke(),a);case"function":return v.markEnd(je(),a);case"if":return v.markEnd(function(){var e,t,n;return Z("if"),J("("),e=be(),J(")"),t=Te(),te("else")?(W(),n=Te()):n=null,v.createIfStatement(e,t,n)}(),a);case"return":return v.markEnd(function(){var e=null;return Z("return"),y.inFunctionBody||K({},o.IllegalReturn),32===u.charCodeAt(f)&&C(u.charCodeAt(f+1))?(e=be(),re(),v.createReturnStatement(e)):X()?v.createReturnStatement(null):(ee(";")||ee("}")||m.type===t.EOF||(e=be()),re(),v.createReturnStatement(e))}(),a);case"switch":return v.markEnd(function(){var e,t,n,r,i;if(Z("switch"),J("("),e=be(),J(")"),J("{"),t=[],ee("}"))return W(),v.createSwitchStatement(e,t);for(r=y.inSwitch,y.inSwitch=!0,i=!1;f<h&&!ee("}");)null===(n=Ce()).test&&(i&&Y({},o.MultipleDefaultsInSwitch),i=!0),t.push(n);return y.inSwitch=r,J("}"),v.createSwitchStatement(e,t)}(),a);case"throw":return v.markEnd(function(){var e;return Z("throw"),X()&&Y({},o.NewlineAfterThrow),e=be(),re(),v.createThrowStatement(e)}(),a);case"try":return v.markEnd(_e(),a);case"var":return v.markEnd(function(){var e;return Z("var"),e=Se(),re(),v.createVariableDeclaration(e,"var")}(),a);case"while":return v.markEnd(function(){var e,t,n;return Z("while"),J("("),e=be(),J(")"),n=y.inIteration,y.inIteration=!0,t=Te(),y.inIteration=n,v.createWhileStatement(e,t)}(),a);case"with":return v.markEnd(function(){var e,t;return c&&(N(),K({},o.StrictModeWith)),Z("with"),J("("),e=be(),J(")"),t=Te(),v.createWithStatement(e,t)}(),a)}return(e=be()).type===i.Identifier&&ee(":")?(W(),r="$"+e.name,Object.prototype.hasOwnProperty.call(y.labelSet,r)&&Y({},o.Redeclaration,"Label",e.name),y.labelSet[r]=!0,n=Te(),delete y.labelSet[r],v.markEnd(v.createLabeledStatement(e,n),a)):(re(),v.markEnd(v.createExpressionStatement(e),a))}function Pe(){var e,n,r,a,s,l,d,p,g=[];for(p=m,J("{");f<h&&m.type===t.StringLiteral&&(n=m,e=Ae(),g.push(e),e.expression.type===i.Literal);)"use strict"===u.slice(n.start+1,n.end-1)?(c=!0,r&&K(r,o.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(a=y.labelSet,s=y.inIteration,l=y.inSwitch,d=y.inFunctionBody,y.labelSet={},y.inIteration=!1,y.inSwitch=!1,y.inFunctionBody=!0;f<h&&!ee("}")&&void 0!==(e=Ae());)g.push(e);return J("}"),y.labelSet=a,y.inIteration=s,y.inSwitch=l,y.inFunctionBody=d,v.markEnd(v.createBlockStatement(g),p)}function Oe(e){var t,n,r,i,a,s,l=[];if(J("("),!ee(")"))for(i={};f<h&&(n=m,t=xe(),a="$"+n.value,c?(P(n.value)&&(r=n,s=o.StrictParamName),Object.prototype.hasOwnProperty.call(i,a)&&(r=n,s=o.StrictParamDupe)):e||(P(n.value)?(e=n,s=o.StrictParamName):T(n.value)?(e=n,s=o.StrictReservedWord):Object.prototype.hasOwnProperty.call(i,a)&&(e=n,s=o.StrictParamDupe)),l.push(t),i[a]=!0,!ee(")"));)J(",");return J(")"),{params:l,stricted:r,firstRestricted:e,message:s}}function je(){var e,t,n,r,i,a,s,l,u,f;return u=m,Z("function"),n=m,e=xe(),c?P(n.value)&&K(n,o.StrictFunctionName):P(n.value)?(a=n,s=o.StrictFunctionName):T(n.value)&&(a=n,s=o.StrictReservedWord),f=(i=Oe(a)).params,r=i.stricted,a=i.firstRestricted,i.message&&(s=i.message),l=c,t=Pe(),c&&a&&Y(a,s),c&&r&&K(r,s),c=l,v.markEnd(v.createFunctionDeclaration(e,f,[],t),u)}function Ae(){if(m.type===t.Keyword)switch(m.value){case"const":case"let":return function(e){var t,n;return n=m,Z(e),t=Se(e),re(),v.markEnd(v.createVariableDeclaration(t,e),n)}(m.value);case"function":return je();default:return Te()}if(m.type!==t.EOF)return Te()}function Ie(){for(var e,n,r,a=[];f<h&&(n=m).type===t.StringLiteral&&(e=Ae(),a.push(e),e.expression.type===i.Literal);)"use strict"===u.slice(n.start+1,n.end-1)?(c=!0,r&&K(r,o.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(;f<h&&void 0!==(e=Ae());)a.push(e);return a}function Ne(){var e,t,n,r=[];for(e=0;e<g.tokens.length;++e)n={type:(t=g.tokens[e]).type,value:t.value},g.range&&(n.range=t.range),g.loc&&(n.loc=t.loc),r.push(n);g.tokens=r}(n={})[(t={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9}).BooleanLiteral]="Boolean",n[t.EOF]="<end>",n[t.Identifier]="Identifier",n[t.Keyword]="Keyword",n[t.NullLiteral]="Null",n[t.NumericLiteral]="Numeric",n[t.Punctuator]="Punctuator",n[t.StringLiteral]="String",n[t.RegularExpression]="RegularExpression",r=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],i={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},a={Data:1,Get:2,Set:4},o={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},s={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},l={name:"SyntaxTree",processComment:function(e){var t,n;if(!(e.type===i.Program&&e.body.length>0)){for(g.trailingComments.length>0?g.trailingComments[0].range[0]>=e.range[1]?(n=g.trailingComments,g.trailingComments=[]):g.trailingComments.length=0:g.bottomRightStack.length>0&&g.bottomRightStack[g.bottomRightStack.length-1].trailingComments&&g.bottomRightStack[g.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(n=g.bottomRightStack[g.bottomRightStack.length-1].trailingComments,delete g.bottomRightStack[g.bottomRightStack.length-1].trailingComments);g.bottomRightStack.length>0&&g.bottomRightStack[g.bottomRightStack.length-1].range[0]>=e.range[0];)t=g.bottomRightStack.pop();t?t.leadingComments&&t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=t.leadingComments,delete t.leadingComments):g.leadingComments.length>0&&g.leadingComments[g.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=g.leadingComments,g.leadingComments=[]),n&&(e.trailingComments=n),g.bottomRightStack.push(e)}},markEnd:function(e,t){return g.range&&(e.range=[t.start,f]),g.loc&&(e.loc=new G(void 0===t.startLineNumber?t.lineNumber:t.startLineNumber,t.start-(void 0===t.startLineStart?t.lineStart:t.startLineStart),d,f-p),this.postProcess(e)),g.attachComment&&this.processComment(e),e},postProcess:function(e){return g.source&&(e.loc.source=g.source),e},createArrayExpression:function(e){return{type:i.ArrayExpression,elements:e}},createAssignmentExpression:function(e,t,n){return{type:i.AssignmentExpression,operator:e,left:t,right:n}},createBinaryExpression:function(e,t,n){return{type:"||"===e||"&&"===e?i.LogicalExpression:i.BinaryExpression,operator:e,left:t,right:n}},createBlockStatement:function(e){return{type:i.BlockStatement,body:e}},createBreakStatement:function(e){return{type:i.BreakStatement,label:e}},createCallExpression:function(e,t){return{type:i.CallExpression,callee:e,arguments:t}},createCatchClause:function(e,t){return{type:i.CatchClause,param:e,body:t}},createConditionalExpression:function(e,t,n){return{type:i.ConditionalExpression,test:e,consequent:t,alternate:n}},createContinueStatement:function(e){return{type:i.ContinueStatement,label:e}},createDebuggerStatement:function(){return{type:i.DebuggerStatement}},createDoWhileStatement:function(e,t){return{type:i.DoWhileStatement,body:e,test:t}},createEmptyStatement:function(){return{type:i.EmptyStatement}},createExpressionStatement:function(e){return{type:i.ExpressionStatement,expression:e}},createForStatement:function(e,t,n,r){return{type:i.ForStatement,init:e,test:t,update:n,body:r}},createForInStatement:function(e,t,n){return{type:i.ForInStatement,left:e,right:t,body:n,each:!1}},createFunctionDeclaration:function(e,t,n,r){return{type:i.FunctionDeclaration,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(e,t,n,r){return{type:i.FunctionExpression,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createIdentifier:function(e){return{type:i.Identifier,name:e}},createIfStatement:function(e,t,n){return{type:i.IfStatement,test:e,consequent:t,alternate:n}},createLabeledStatement:function(e,t){return{type:i.LabeledStatement,label:e,body:t}},createLiteral:function(e){return{type:i.Literal,value:e.value,raw:u.slice(e.start,e.end)}},createMemberExpression:function(e,t,n){return{type:i.MemberExpression,computed:"["===e,object:t,property:n}},createNewExpression:function(e,t){return{type:i.NewExpression,callee:e,arguments:t}},createObjectExpression:function(e){return{type:i.ObjectExpression,properties:e}},createPostfixExpression:function(e,t){return{type:i.UpdateExpression,operator:e,argument:t,prefix:!1}},createProgram:function(e){return{type:i.Program,body:e}},createProperty:function(e,t,n){return{type:i.Property,key:t,value:n,kind:e}},createReturnStatement:function(e){return{type:i.ReturnStatement,argument:e}},createSequenceExpression:function(e){return{type:i.SequenceExpression,expressions:e}},createSwitchCase:function(e,t){return{type:i.SwitchCase,test:e,consequent:t}},createSwitchStatement:function(e,t){return{type:i.SwitchStatement,discriminant:e,cases:t}},createThisExpression:function(){return{type:i.ThisExpression}},createThrowStatement:function(e){return{type:i.ThrowStatement,argument:e}},createTryStatement:function(e,t,n,r){return{type:i.TryStatement,block:e,guardedHandlers:t,handlers:n,finalizer:r}},createUnaryExpression:function(e,t){return"++"===e||"--"===e?{type:i.UpdateExpression,operator:e,argument:t,prefix:!0}:{type:i.UnaryExpression,operator:e,argument:t,prefix:!0}},createVariableDeclaration:function(e,t){return{type:i.VariableDeclaration,declarations:e,kind:t}},createVariableDeclarator:function(e,t){return{type:i.VariableDeclarator,id:e,init:t}},createWhileStatement:function(e,t){return{type:i.WhileStatement,test:e,body:t}},createWithStatement:function(e,t){return{type:i.WithStatement,object:e,body:t}}},e.version="1.2.2",e.tokenize=function(e,n){var r;"string"==typeof e||e instanceof String||(e=String(e)),v=l,f=0,d=(u=e).length>0?1:0,p=0,h=u.length,m=null,y={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},g={},(n=n||{}).tokens=!0,g.tokens=[],g.tokenize=!0,g.openParenToken=-1,g.openCurlyToken=-1,g.range="boolean"==typeof n.range&&n.range,g.loc="boolean"==typeof n.loc&&n.loc,"boolean"==typeof n.comment&&n.comment&&(g.comments=[]),"boolean"==typeof n.tolerant&&n.tolerant&&(g.errors=[]);try{if($(),m.type===t.EOF)return g.tokens;for(W();m.type!==t.EOF;)try{W()}catch(e){if(g.errors){g.errors.push(e);break}throw e}Ne(),r=g.tokens,void 0!==g.comments&&(r.comments=g.comments),void 0!==g.errors&&(r.errors=g.errors)}catch(e){throw e}finally{g={}}return r},e.parse=function(e,t){var n,r;r=String,"string"==typeof e||e instanceof String||(e=r(e)),v=l,f=0,d=(u=e).length>0?1:0,p=0,h=u.length,m=null,y={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},g={},void 0!==t&&(g.range="boolean"==typeof t.range&&t.range,g.loc="boolean"==typeof t.loc&&t.loc,g.attachComment="boolean"==typeof t.attachComment&&t.attachComment,g.loc&&null!==t.source&&void 0!==t.source&&(g.source=r(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(g.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(g.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(g.errors=[]),g.attachComment&&(g.range=!0,g.comments=[],g.bottomRightStack=[],g.trailingComments=[],g.leadingComments=[]));try{n=function(){var e,t;return N(),$(),t=m,c=!1,e=Ie(),v.markEnd(v.createProgram(e),t)}(),void 0!==g.comments&&(n.comments=g.comments),void 0!==g.tokens&&(Ne(),n.tokens=g.tokens),void 0!==g.errors&&(n.errors=g.errors)}catch(e){throw e}finally{g={}}return n},e.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),i)i.hasOwnProperty(e)&&(t[e]=i[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()}))},{}],1:[function(e,t,n){(function(i){var a=function(){var e={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(e,n,r,i,a,o,s){i.ast||(i.ast=t,t.initialize());var l=o.length-1;switch(a){case 1:return i.ast.set({expression:{type:"root",value:o[l]}}),i.ast.unshift(),i.ast.yield();case 2:return i.ast.set({expression:{type:"root",value:o[l-1]}}),i.ast.unshift(),i.ast.yield();case 3:return i.ast.unshift(),i.ast.yield();case 4:return i.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:o[l-1]}}),i.ast.unshift(),i.ast.yield();case 5:case 6:case 11:case 13:case 18:case 21:case 22:case 23:break;case 7:i.ast.set({operation:"member"}),i.ast.push();break;case 8:i.ast.set({operation:"subscript"}),i.ast.push();break;case 9:case 19:i.ast.set({scope:"child"});break;case 10:case 20:i.ast.set({scope:"descendant"});break;case 12:i.ast.set({scope:"child",operation:"member"});break;case 14:i.ast.set({expression:{type:"wildcard",value:o[l]}});break;case 15:i.ast.set({expression:{type:"identifier",value:o[l]}});break;case 16:i.ast.set({expression:{type:"script_expression",value:o[l]}});break;case 17:i.ast.set({expression:{type:"numeric_literal",value:parseInt(o[l])}});break;case 24:o[l].length>1?i.ast.set({expression:{type:"union",value:o[l]}}):this.$=o[l];break;case 25:this.$=[o[l]];break;case 26:this.$=o[l-2].concat(o[l]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(o[l])}},i.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:o[l]}},i.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:o[l]}},i.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:o[l]}},i.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:o[l]}},i.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:o[l]}},i.ast.set(this.$);break;case 33:case 34:this.$=o[l]}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],a=this.table,o="",s=0,l=0,u=0,c=2,f=1,d=i.slice.call(arguments,1);this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var p=this.lexer.yylloc;i.push(p);var h=this.lexer.options&&this.lexer.options.ranges;function v(){var e;return"number"!=typeof(e=t.lexer.lex()||f)&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,y,g,b,w,x,E,S,k,C={};;){if(g=n[n.length-1],this.defaultActions[g]?b=this.defaultActions[g]:(null!=m||(m=v()),b=a[g]&&a[g][m]),void 0===b||!b.length||!b[0]){var _="";for(x in k=[],a[g])this.terminals_[x]&&x>c&&k.push("'"+this.terminals_[x]+"'");_=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(s+1)+": Unexpected "+(m==f?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:p,expected:k})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+m);switch(b[0]){case 1:n.push(m),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(b[1]),m=null,y?(m=y,y=null):(l=this.lexer.yyleng,o=this.lexer.yytext,s=this.lexer.yylineno,p=this.lexer.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[b[1]][1],C.$=r[r.length-E],C._$={first_line:i[i.length-(E||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(E||1)].first_column,last_column:i[i.length-1].last_column},h&&(C._$.range=[i[i.length-(E||1)].range[0],i[i.length-1].range[1]]),void 0!==(w=this.performAction.apply(C,[o,l,s,this.yy,b[1],r,i].concat(d))))return w;E&&(n=n.slice(0,-1*E*2),r=r.slice(0,-1*E),i=i.slice(0,-1*E)),n.push(this.productions_[b[1]][0]),r.push(C.$),i.push(C._$),S=a[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},t={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(e){for(var t in e)this._node[t]=e[t];return this._node},node:function(e){return arguments.length&&(this._node=e),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var e=this._nodes;return this.initialize(),e}},n={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return t.yytext=t.yytext.substr(1,t.yyleng-2),32;case 11:return t.yytext=t.yytext.substr(1,t.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function r(){this.yy={}}return e.lexer=n,r.prototype=e,e.Parser=r,new r}();void 0!==e&&void 0!==n&&(n.parser=a,n.Parser=a.Parser,n.parse=function(){return a.parse.apply(a,arguments)},n.main=function(t){t[1]||(r.log("Usage: "+t[0]+" FILE"),i.exit(1));var a=e("fs").readFileSync(e("path").normalize(t[1]),"utf8");return n.parser.parse(a)},void 0!==t&&e.main===t&&n.main(i.argv.slice(1)))}).call(this,e("_process"))},{_process:14,fs:12,path:13}],2:[function(e,t,n){t.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(e,t,n){var r=e("./dict"),i=e("fs"),a={lex:{macros:{esc:"\\\\",int:r.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[r.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[r.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[r.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};i.readFileSync&&(a.moduleInclude=i.readFileSync(e.resolve("../include/module.js")),a.actionInclude=i.readFileSync(e.resolve("../include/action.js"))),t.exports=a},{"./dict":2,fs:12}],4:[function(e,t,n){var r=e("./aesprim"),i=e("./slice"),a=e("static-eval"),o=e("underscore").uniq,s=function(){return this.initialize.apply(this,arguments)};function l(t,n,i){var a=e("./index"),o=p(r.parse(n).body[0].expression,{"@":t.value}),s=i.replace(/\{\{\s*value\s*\}\}/g,o),l=a.nodes(t.value,s);return l.forEach((function(e){e.path=t.path.concat(e.path.slice(1))})),l}function u(e){return Array.isArray(e)}function c(e){return function(t,n,r,i){var a=t.value,o=t.path,s=[],l=function(t,a){u(t)?(t.forEach((function(e,t){s.length>=i||r(t,e,n)&&s.push({path:a.concat(t),value:e})})),t.forEach((function(t,n){s.length>=i||e&&l(t,a.concat(n))}))):function(e){return e&&!(e instanceof Array)&&e instanceof Object}(t)&&(this.keys(t).forEach((function(e){s.length>=i||r(e,t[e],n)&&s.push({path:a.concat(e),value:t[e]})})),this.keys(t).forEach((function(n){s.length>=i||e&&l(t[n],a.concat(n))})))}.bind(this);return l(a,o),s}}function f(e){return function(t,n,r){return this.descend(n,t.expression.value,e,r)}}function d(e){return function(t,n,r){return this.traverse(n,t.expression.value,e,r)}}function p(){try{return a.apply(this,arguments)}catch(e){}}function h(e){return e=e.filter((function(e){return e})),o(e,(function(e){return e.path.map((function(e){return String(e).replace("-","--")})).join("-")}))}function v(e){var t=String(e);return t.match(/^-?[0-9]+$/)?parseInt(t):null}s.prototype.initialize=function(){this.traverse=c(!0),this.descend=c()},s.prototype.keys=Object.keys,s.prototype.resolve=function(e){var t=[e.operation,e.scope,e.expression.type].join("-"),n=this._fns[t];if(!n)throw new Error("couldn't resolve key: "+t);return n.bind(this)},s.prototype.register=function(e,t){if(!t instanceof Function)throw new Error("handler must be a function");this._fns[e]=t},s.prototype._fns={"member-child-identifier":function(e,t){var n=e.expression.value,r=t.value;if(r instanceof Object&&n in r)return[{value:r[n],path:t.path.concat(n)}]},"member-descendant-identifier":d((function(e,t,n){return e==n})),"subscript-child-numeric_literal":f((function(e,t,n){return e===n})),"member-child-numeric_literal":f((function(e,t,n){return String(e)===String(n)})),"subscript-descendant-numeric_literal":d((function(e,t,n){return e===n})),"member-child-wildcard":f((function(){return!0})),"member-descendant-wildcard":d((function(){return!0})),"subscript-descendant-wildcard":d((function(){return!0})),"subscript-child-wildcard":f((function(){return!0})),"subscript-child-slice":function(e,t){if(u(t.value)){var n=e.expression.value.split(":").map(v),r=t.value.map((function(e,n){return{value:e,path:t.path.concat(n)}}));return i.apply(null,[r].concat(n))}},"subscript-child-union":function(e,t){var n=[];return e.expression.value.forEach((function(e){var r={operation:"subscript",scope:"child",expression:e.expression},i=this.resolve(r)(r,t);i&&(n=n.concat(i))}),this),h(n)},"subscript-descendant-union":function(t,n,r){var i=e(".."),a=this,o=[];return i.nodes(n,"$..*").slice(1).forEach((function(e){o.length>=r||t.expression.value.forEach((function(t){var n={operation:"subscript",scope:"child",expression:t.expression},r=a.resolve(n)(n,e);o=o.concat(r)}))})),h(o)},"subscript-child-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),a=r.parse(i).body[0].expression;return this.descend(t,null,(function(e,t){return p(a,{"@":t})}),n)},"subscript-descendant-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),a=r.parse(i).body[0].expression;return this.traverse(t,null,(function(e,t){return p(a,{"@":t})}),n)},"subscript-child-script_expression":function(e,t){return l(t,e.expression.value.slice(1,-1),"$[{{value}}]")},"member-child-script_expression":function(e,t){return l(t,e.expression.value.slice(1,-1),"$.{{value}}")},"member-descendant-script_expression":function(e,t){return l(t,e.expression.value.slice(1,-1),"$..value")}},s.prototype._fns["subscript-child-string_literal"]=s.prototype._fns["member-child-identifier"],s.prototype._fns["member-descendant-numeric_literal"]=s.prototype._fns["subscript-descendant-string_literal"]=s.prototype._fns["member-descendant-identifier"],t.exports=s},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(e,t,n){var r=e("assert"),i=e("./dict"),a=e("./parser"),o=e("./handlers"),s=function(){this.initialize.apply(this,arguments)};function l(e){return"[object String]"==Object.prototype.toString.call(e)}s.prototype.initialize=function(){this.parser=new a,this.handlers=new o},s.prototype.parse=function(e){return r.ok(l(e),"we need a path"),this.parser.parse(e)},s.prototype.parent=function(e,t){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path");var n=this.nodes(e,t)[0];return n.path.pop(),this.value(e,n.path)},s.prototype.apply=function(e,t,n){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),r.equal(typeof n,"function","fn needs to be function");var i=this.nodes(e,t).sort((function(e,t){return t.path.length-e.path.length}));return i.forEach((function(t){var r=t.path.pop(),i=this.value(e,this.stringify(t.path)),a=t.value=n.call(e,i[r]);i[r]=a}),this),i},s.prototype.value=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),arguments.length>=3){var i=this.nodes(e,t).shift();if(!i)return this._vivify(e,t,n);var a=i.path.slice(-1).shift();this.parent(e,this.stringify(i.path))[a]=n}return this.query(e,this.stringify(t),1).shift()},s.prototype._vivify=function(e,t,n){var i=this;return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),function t(n,r){var a=n.pop(),o=i.value(e,n);o||(t(n.concat(),"string"==typeof a?{}:[]),o=i.value(e,n)),o[a]=r}(this.parser.parse(t).map((function(e){return e.expression.value})),n),this.query(e,t)[0]},s.prototype.query=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(l(t),"we need a path"),this.nodes(e,t,n).map((function(e){return e.value}))},s.prototype.paths=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),this.nodes(e,t,n).map((function(e){return e.path}))},s.prototype.nodes=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),0===n)return[];var i=this.parser.parse(t),a=this.handlers,o=[{path:["$"],value:e}],s=[];return i.length&&"root"==i[0].expression.type&&i.shift(),i.length?(i.forEach((function(e,t){if(!(s.length>=n)){var r=a.resolve(e),l=[];o.forEach((function(a){if(!(s.length>=n)){var o=r(e,a,n);t==i.length-1?s=s.concat(o||[]):l=l.concat(o||[])}})),o=l}})),n?s.slice(0,n):s):o},s.prototype.stringify=function(e){r.ok(e,"we need a path");var t="$",n={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return(e=this._normalize(e)).forEach((function(e){if("root"!=e.expression.type){var r,i=[e.scope,e.operation].join("-"),a=n[i];if(r="string_literal"==e.expression.type?JSON.stringify(e.expression.value):e.expression.value,!a)throw new Error("couldn't find template "+i);t+=a.replace(/{{value}}/,r)}})),t},s.prototype._normalize=function(e){if(r.ok(e,"we need a path"),"string"==typeof e)return this.parser.parse(e);if(Array.isArray(e)&&"string"==typeof e[0]){var t=[{expression:{type:"root",value:"$"}}];return e.forEach((function(e,n){if("$"!=e||0!==n)if("string"==typeof e&&e.match("^"+i.identifier+"$"))t.push({operation:"member",scope:"child",expression:{value:e,type:"identifier"}});else{var r="number"==typeof e?"numeric_literal":"string_literal";t.push({operation:"subscript",scope:"child",expression:{value:e,type:r}})}})),t}if(Array.isArray(e)&&"object"==typeof e[0])return e;throw new Error("couldn't understand path "+e)},s.Handlers=o,s.Parser=a;var u=new s;u.JSONPath=s,t.exports=u},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(e,t,n){var r=e("./grammar"),i=e("../generated/parser"),a=function(){var e=new i.Parser,t=e.parseError;return e.yy.parseError=function(){e.yy.ast&&e.yy.ast.initialize(),t.apply(e,arguments)},e};a.grammar=r,t.exports=a},{"../generated/parser":1,"./grammar":3}],7:[function(e,t,n){function r(e){return String(e).match(/^[0-9]+$/)?parseInt(e):Number.isFinite(e)?parseInt(e,10):0}t.exports=function(e,t,n,i){if("string"==typeof t)throw new Error("start cannot be a string");if("string"==typeof n)throw new Error("end cannot be a string");if("string"==typeof i)throw new Error("step cannot be a string");var a=e.length;if(0===i)throw new Error("step cannot be zero");if(i=i?r(i):1,n=n<0?a+n:n,t=r(0===(t=t<0?a+t:t)?0:t||(i>0?0:a-1)),n=r(0===n?0:n||(i>0?a:-1)),t=i>0?Math.max(0,t):Math.min(a,t),n=i>0?Math.min(n,a):Math.max(-1,n),i>0&&n<=t)return[];if(i<0&&t<=n)return[];for(var o=[],s=t;s!=n&&!(i<0&&s<=n||i>0&&s>=n);s+=i)o.push(e[s]);return o}},{}],8:[function(e,t,n){var r=e("util/"),i=Array.prototype.slice,a=Object.prototype.hasOwnProperty,o=t.exports=c;function s(e,t){return r.isUndefined(t)?""+t:r.isNumber(t)&&!isFinite(t)||r.isFunction(t)||r.isRegExp(t)?t.toString():t}function l(e,t){return r.isString(e)?e.length<t?e:e.slice(0,t):e}function u(e,t,n,r,i){throw new o.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function c(e,t){e||u(e,!0,t,"==",o.ok)}function f(e,t){if(e===t)return!0;if(r.isBuffer(e)&&r.isBuffer(t)){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return r.isDate(e)&&r.isDate(t)?e.getTime()===t.getTime():r.isRegExp(e)&&r.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:r.isObject(e)||r.isObject(t)?function(e,t){if(r.isNullOrUndefined(e)||r.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(r.isPrimitive(e)||r.isPrimitive(t))return e===t;var n=d(e),a=d(t);if(n&&!a||!n&&a)return!1;if(n)return f(e=i.call(e),t=i.call(t));var o,s,l=v(e),u=v(t);if(l.length!=u.length)return!1;for(l.sort(),u.sort(),s=l.length-1;s>=0;s--)if(l[s]!=u[s])return!1;for(s=l.length-1;s>=0;s--)if(!f(e[o=l[s]],t[o]))return!1;return!0}(e,t):e==t}function d(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function p(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function h(e,t,n,i){var a;r.isString(n)&&(i=n,n=null);try{t()}catch(e){a=e}if(i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!a&&u(a,n,"Missing expected exception"+i),!e&&p(a,n)&&u(a,n,"Got unwanted exception"+i),e&&a&&n&&!p(a,n)||!e&&a)throw a}o.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return l(JSON.stringify(e.actual,s),128)+" "+e.operator+" "+l(JSON.stringify(e.expected,s),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||u;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=t.name,a=r.indexOf("\n"+i);if(a>=0){var o=r.indexOf("\n",a+1);r=r.substring(o+1)}this.stack=r}}},r.inherits(o.AssertionError,Error),o.fail=u,o.ok=c,o.equal=function(e,t,n){e!=t&&u(e,t,n,"==",o.equal)},o.notEqual=function(e,t,n){e==t&&u(e,t,n,"!=",o.notEqual)},o.deepEqual=function(e,t,n){f(e,t)||u(e,t,n,"deepEqual",o.deepEqual)},o.notDeepEqual=function(e,t,n){f(e,t)&&u(e,t,n,"notDeepEqual",o.notDeepEqual)},o.strictEqual=function(e,t,n){e!==t&&u(e,t,n,"===",o.strictEqual)},o.notStrictEqual=function(e,t,n){e===t&&u(e,t,n,"!==",o.notStrictEqual)},o.throws=function(e,t,n){h.apply(this,[!0].concat(i.call(arguments)))},o.doesNotThrow=function(e,t){h.apply(this,[!1].concat(i.call(arguments)))},o.ifError=function(e){if(e)throw e};var v=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},{"util/":11}],9:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],10:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],11:[function(e,t,i){(function(t,n){var a=/%[sdj%]/g;i.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])y(s)||!E(s)?o+=" "+s:o+=" "+l(s);return o},i.deprecate=function(e,a){if(w(n.process))return function(){return i.deprecate(e,a).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(a);t.traceDeprecation?r.trace(a):r.error(a),o=!0}return e.apply(this,arguments)}};var o,s={};function l(e,t){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(t)?n.showHidden=t:t&&i._extend(n,t),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),f(n,e,n.depth)}function u(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function c(e,t){return e}function f(e,t,n){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==i.inspect&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return b(r)||(r=f(e,r,n)),r}var a=d(e,t);if(a)return a;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),k(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(t);if(0===o.length){if(C(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return p(t)}var u,c="",m=!1,y=["{","}"];return v(t)&&(m=!0,y=["[","]"]),C(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),x(t)&&(c=" "+RegExp.prototype.toString.call(t)),S(t)&&(c=" "+Date.prototype.toUTCString.call(t)),k(t)&&(c=" "+p(t)),0!==o.length||m&&0!=t.length?n<0?x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=m?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)j(t,String(o))?a.push(h(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(e,t,n,r,i,!0))})),a}(e,t,n,s,o):o.map((function(r){return h(e,t,n,s,r,m)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,c,y)):y[0]+c+y[1]}function d(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=y(n)?f(e,l.value,null):f(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),w(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function v(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function b(e){return"string"==typeof e}function w(e){return void 0===e}function x(e){return E(e)&&"[object RegExp]"===_(e)}function E(e){return"object"==typeof e&&null!==e}function S(e){return E(e)&&"[object Date]"===_(e)}function k(e){return E(e)&&("[object Error]"===_(e)||e instanceof Error)}function C(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}i.debuglog=function(e){if(w(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;s[e]=function(){var t=i.format.apply(i,arguments);r.error("%s %d: %s",e,n,t)}}else s[e]=function(){};return s[e]},i.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=v,i.isBoolean=m,i.isNull=y,i.isNullOrUndefined=function(e){return null==e},i.isNumber=g,i.isString=b,i.isSymbol=function(e){return"symbol"==typeof e},i.isUndefined=w,i.isRegExp=x,i.isObject=E,i.isDate=S,i.isError=k,i.isFunction=C,i.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},i.isBuffer=e("./support/isBuffer");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}i.log=function(){r.log("%s - %s",O(),i.format.apply(i,arguments))},i.inherits=e("inherits"),i._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(e,t,n){},{}],13:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(n=o+"/"+n,i="/"===o.charAt(0))}return(i?"/":"")+(n=t(r(n.split("/"),(function(e){return!!e})),!i).join("/"))||"."},n.normalize=function(e){var a=n.isAbsolute(e),o="/"===i(e,-1);return(e=t(r(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),a=r(t.split("/")),o=Math.min(i.length,a.length),s=o,l=0;l<o;l++)if(i[l]!==a[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return(u=u.concat(a.slice(s))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i=function(e,t,n){return e.substr(t,n)}}).call(this,e("_process"))},{_process:14}],14:[function(e,t,n){var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,c=[],f=!1,d=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):d=-1,c.length&&h())}function h(){if(!f){var e=l(p);f=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new v(e,t)),1!==c.length||f||l(h)},v.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(e,t,n){var r=e("escodegen").generate;t.exports=function(e,t){t||(t={});var n={},i=function e(i,a){if("Literal"===i.type)return i.value;if("UnaryExpression"===i.type){var o=e(i.argument);return"+"===i.operator?+o:"-"===i.operator?-o:"~"===i.operator?~o:"!"===i.operator?!o:n}if("ArrayExpression"===i.type){for(var s=[],l=0,u=i.elements.length;l<u;l++){if((y=e(i.elements[l]))===n)return n;s.push(y)}return s}if("ObjectExpression"===i.type){var c={};for(l=0;l<i.properties.length;l++){var f=null===(g=i.properties[l]).value?g.value:e(g.value);if(f===n)return n;c[g.key.value||g.key.name]=f}return c}if("BinaryExpression"===i.type||"LogicalExpression"===i.type){if((u=e(i.left))===n)return n;var d=e(i.right);if(d===n)return n;var p=i.operator;return"=="===p?u==d:"==="===p?u===d:"!="===p?u!=d:"!=="===p?u!==d:"+"===p?u+d:"-"===p?u-d:"*"===p?u*d:"/"===p?u/d:"%"===p?u%d:"<"===p?u<d:"<="===p?u<=d:">"===p?u>d:">="===p?u>=d:"|"===p?u|d:"&"===p?u&d:"^"===p?u^d:"&&"===p?u&&d:"||"===p?u||d:n}if("Identifier"===i.type)return{}.hasOwnProperty.call(t,i.name)?t[i.name]:n;if("ThisExpression"===i.type)return{}.hasOwnProperty.call(t,"this")?t.this:n;if("CallExpression"===i.type){var h=e(i.callee);if(h===n)return n;if("function"!=typeof h)return n;var v=i.callee.object?e(i.callee.object):n;v===n&&(v=null);var m=[];for(l=0,u=i.arguments.length;l<u;l++){var y;if((y=e(i.arguments[l]))===n)return n;m.push(y)}return h.apply(v,m)}var g;if("MemberExpression"===i.type)return(c=e(i.object))===n||"function"==typeof c?n:"Identifier"===i.property.type?c[i.property.name]:(g=e(i.property))===n?n:c[g];if("ConditionalExpression"===i.type)return(o=e(i.test))===n?n:e(o?i.consequent:i.alternate);if("ExpressionStatement"===i.type)return(o=e(i.expression))===n?n:o;if("ReturnStatement"===i.type)return e(i.argument);if("FunctionExpression"===i.type){var b=i.body.body,w={};for(Object.keys(t).forEach((function(e){w[e]=t[e]})),l=0;l<i.params.length;l++){var x=i.params[l];if("Identifier"!=x.type)return n;t[x.name]=null}for(var l in b)if(e(b[l])===n)return n;t=w;var E=Object.keys(t),S=E.map((function(e){return t[e]}));return Function(E.join(", "),"return "+r(i)).apply(null,S)}if("TemplateLiteral"===i.type){var k="";for(l=0;l<i.expressions.length;l++)k+=e(i.quasis[l]),k+=e(i.expressions[l]);return k+e(i.quasis[l])}if("TaggedTemplateExpression"===i.type){var C=e(i.tag),_=i.quasi,T=_.quasis.map(e),P=_.expressions.map(e);return C.apply(null,[T].concat(P))}return"TemplateElement"===i.type?i.value.cooked:n}(e);return i===n?void 0:i}},{escodegen:12}],jsonpath:[function(e,t,n){t.exports=e("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")},4091:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},8199:function(e,t,n){"use strict";var r=n(9959),i=n(9962),a=n(4091),o=n(4584),s=n(8229),l=i(o(),Object);r(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},4584:function(e,t,n){"use strict";var r=n(4091);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},8229:function(e,t,n){"use strict";var r=n(4584),i=n(9959);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},2782:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(2950),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var v=0;v<e.length;++v)d.push(String(v));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(l)for(var g=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)g&&"constructor"===c[b]||!i.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},6328:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(2950),a=Object.keys,o=a?function(e){return a(e)}:n(2782),s=Object.keys;o.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=o;return Object.keys||o},e.exports=o},2950:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},8047:function(e,t,n){"use strict";var r=n(6328),i=n(541)(),a=n(4680),o=Object,s=a("Array.prototype.push"),l=a("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=o(e);if(1===arguments.length)return n;for(var a=1;a<arguments.length;++a){var c=o(arguments[a]),f=r(c),d=i&&(Object.getOwnPropertySymbols||u);if(d)for(var p=d(c),h=0;h<p.length;++h){var v=p[h];l(c,v)&&s(f,v)}for(var m=0;m<f.length;++m){var y=f[m];if(l(c,y)){var g=c[y];n[y]=g}}}return n}},4174:function(e,t,n){"use strict";var r=n(8047);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),a="";for(var o in i)a+=o;return e!==a}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},7490:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,l=[],u=!1,c=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=o(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},3295:function(e,t,n){var r,i,a=n(8466);"undefined"!=typeof self&&self,e.exports=(r=n(3705),i=n(6377),function(){"use strict";var e={328:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PrintContextConsumer=t.PrintContext=void 0;var r=n(496),i=Object.prototype.hasOwnProperty.call(r,"createContext");t.PrintContext=i?r.createContext({}):null,t.PrintContextConsumer=t.PrintContext?t.PrintContext.Consumer:function(){return null}},428:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ReactToPrint=void 0;var r=n(316),i=n(496),o=n(190),s=n(328),l=n(940),u=function(e){function t(){var t=e.apply(this,r.__spreadArray([],r.__read(arguments),!1))||this;return t.startPrint=function(e){var n=t.props,r=n.onAfterPrint,i=n.onPrintError,a=n.print,o=n.documentTitle;setTimeout((function(){var n,s;if(e.contentWindow)if(e.contentWindow.focus(),a)a(e).then((function(){return null==r?void 0:r()})).then((function(){return t.handleRemoveIframe()})).catch((function(e){i?i("print",e):t.logMessages(["An error was thrown by the specified `print` function"])}));else{if(e.contentWindow.print){var l=null!==(s=null===(n=e.contentDocument)||void 0===n?void 0:n.title)&&void 0!==s?s:"",u=e.ownerDocument.title;o&&(e.ownerDocument.title=o,e.contentDocument&&(e.contentDocument.title=o)),e.contentWindow.print(),o&&(e.ownerDocument.title=u,e.contentDocument&&(e.contentDocument.title=l))}else t.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==r||r(),t.handleRemoveIframe()}else t.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])}),500)},t.triggerPrint=function(e){var n=t.props,r=n.onBeforePrint,i=n.onPrintError;if(r){var a=r();a&&"function"==typeof a.then?a.then((function(){t.startPrint(e)})).catch((function(e){i&&i("onBeforePrint",e)})):t.startPrint(e)}else t.startPrint(e)},t.handlePrint=function(e){var n=t.props,i=n.bodyClass,a=n.content,s=n.copyStyles,l=n.fonts,u=n.pageStyle,c=n.nonce,f="function"==typeof e?e():null;if(f&&"function"==typeof a&&t.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),f||"function"!=typeof a||(f=a()),void 0!==f)if(null!==f){var d=document.createElement("iframe");d.width="".concat(document.documentElement.clientWidth,"px"),d.height="".concat(document.documentElement.clientHeight,"px"),d.style.position="absolute",d.style.top="-".concat(document.documentElement.clientHeight+100,"px"),d.style.left="-".concat(document.documentElement.clientWidth+100,"px"),d.id="printWindow",d.srcdoc="<!DOCTYPE html>";var p=(0,o.findDOMNode)(f);if(p){var h=p.cloneNode(!0),v=h instanceof Text,m=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),y=v?[]:h.querySelectorAll("img"),g=v?[]:h.querySelectorAll("video"),b=l?l.length:0;t.numResourcesToLoad=m.length+y.length+g.length+b,t.resourcesLoaded=[],t.resourcesErrored=[];var w=function(e,n){t.resourcesLoaded.includes(e)?t.logMessages(["Tried to mark a resource that has already been handled",e],"debug"):(n?(t.logMessages(r.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],r.__read(n),!1)),t.resourcesErrored.push(e)):t.resourcesLoaded.push(e),t.resourcesLoaded.length+t.resourcesErrored.length===t.numResourcesToLoad&&t.triggerPrint(d))};d.onload=function(){var e,n,a,o;d.onload=null;var f=d.contentDocument||(null===(n=d.contentWindow)||void 0===n?void 0:n.document);if(f){f.body.appendChild(h),l&&((null===(a=d.contentDocument)||void 0===a?void 0:a.fonts)&&(null===(o=d.contentWindow)||void 0===o?void 0:o.FontFace)?l.forEach((function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});d.contentDocument.fonts.add(t),t.loaded.then((function(){w(t)})).catch((function(e){w(t,["Failed loading the font:",t,"Load error:",e])}))})):(l.forEach((function(e){return w(e)})),t.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var m="function"==typeof u?u():u;if("string"!=typeof m)t.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof m,'". Styles from `pageStyle` will not be applied.')]);else{var b=f.createElement("style");c&&(b.setAttribute("nonce",c),f.head.setAttribute("nonce",c)),b.appendChild(f.createTextNode(m)),f.head.appendChild(b)}if(i&&(e=f.body.classList).add.apply(e,r.__spreadArray([],r.__read(i.split(" ")),!1)),!v){for(var x=v?[]:p.querySelectorAll("canvas"),E=f.querySelectorAll("canvas"),S=0;S<x.length;++S){var k=x[S],C=E[S].getContext("2d");C&&C.drawImage(k,0,0)}var _=function(e){var t=y[e],n=t.getAttribute("src");if(n){var r=new Image;r.onload=function(){return w(t)},r.onerror=function(e,n,r,i,a){return w(t,["Error loading <img>",t,"Error",a])},r.src=n}else w(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',t])};for(S=0;S<y.length;S++)_(S);var T=function(e){var t=g[e];t.preload="auto";var n=t.getAttribute("poster");if(n){var r=new Image;r.onload=function(){return w(t)},r.onerror=function(e,r,i,a,o){return w(t,["Error loading video poster",n,"for video",t,"Error:",o])},r.src=n}else t.readyState>=2?w(t):(t.onloadeddata=function(){return w(t)},t.onerror=function(e,n,r,i,a){return w(t,["Error loading video",t,"Error",a])},t.onstalled=function(){return w(t,["Loading video stalled, skipping",t])})};for(S=0;S<g.length;S++)T(S);var P="input",O=p.querySelectorAll(P),j=f.querySelectorAll(P);for(S=0;S<O.length;S++)j[S].value=O[S].value;var A="input[type=checkbox],input[type=radio]",I=p.querySelectorAll(A),N=f.querySelectorAll(A);for(S=0;S<I.length;S++)N[S].checked=I[S].checked;var R="select",L=p.querySelectorAll(R),M=f.querySelectorAll(R);for(S=0;S<L.length;S++)M[S].value=L[S].value}if(s)for(var D=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']"),F=function(e,n){var r=D[e];if("style"===r.tagName.toLowerCase()){var i=f.createElement(r.tagName),a=r.sheet;if(a){var o="";try{for(var s=a.cssRules.length,l=0;l<s;++l)"string"==typeof a.cssRules[l].cssText&&(o+="".concat(a.cssRules[l].cssText,"\r\n"))}catch(e){t.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",r],"warning")}i.setAttribute("id","react-to-print-".concat(e)),c&&i.setAttribute("nonce",c),i.appendChild(f.createTextNode(o)),f.head.appendChild(i)}}else if(r.getAttribute("href"))if(r.hasAttribute("disabled"))t.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",r],"warning"),w(r);else{for(var u=f.createElement(r.tagName),d=(l=0,r.attributes.length);l<d;++l){var p=r.attributes[l];p&&u.setAttribute(p.nodeName,p.nodeValue||"")}u.onload=function(){return w(u)},u.onerror=function(e,t,n,r,i){return w(u,["Failed to load",u,"Error:",i])},c&&u.setAttribute("nonce",c),f.head.appendChild(u)}else t.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",r],"warning"),w(r)},B=(S=0,D.length);S<B;++S)F(S)}0!==t.numResourcesToLoad&&s||t.triggerPrint(d)},t.handleRemoveIframe(!0),document.body.appendChild(d)}else t.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else t.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else t.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},t.handleRemoveIframe=function(e){var n=t.props.removeAfterPrint;if(e||n){var r=document.getElementById("printWindow");r&&document.body.removeChild(r)}},t.logMessages=function(e,n){void 0===n&&(n="error"),t.props.suppressErrors||("error"===n?a.error(e):"warning"===n?a.warn(e):"debug"===n&&a.debug(e))},t}return r.__extends(t,e),t.prototype.handleClick=function(e,t){var n=this,r=this.props,i=r.onBeforeGetContent,a=r.onPrintError;if(i){var o=i();o&&"function"==typeof o.then?o.then((function(){return n.handlePrint(t)})).catch((function(e){a&&a("onBeforeGetContent",e)})):this.handlePrint(t)}else this.handlePrint(t)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.trigger;if(n)return i.cloneElement(n(),{onClick:this.handleClick.bind(this)});if(!s.PrintContext)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var r={handlePrint:this.handleClick.bind(this)};return i.createElement(s.PrintContext.Provider,{value:r},t)},t.defaultProps=l.defaultProps,t}(i.Component);t.ReactToPrint=u},940:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=void 0,t.defaultProps={copyStyles:!0,pageStyle:"\n @page {\n /* Remove browser default header (title) and footer (url) */\n margin: 0;\n }\n @media print {\n body {\n /* Tell browsers to print background colors */\n -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n color-adjust: exact; /* Firefox */\n }\n }\n ",removeAfterPrint:!1,suppressErrors:!1}},892:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useReactToPrint=void 0;var r=n(316),i=n(496),o=n(428),s=n(940),l=n(860),u=Object.prototype.hasOwnProperty.call(i,"useMemo")&&Object.prototype.hasOwnProperty.call(i,"useCallback");t.useReactToPrint=function(e){if(!u)return e.suppressErrors||a.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var t=i.useMemo((function(){return new o.ReactToPrint(r.__assign(r.__assign({},s.defaultProps),e))}),[e]);return i.useCallback((function(e,n){return(0,l.wrapCallbackWithArgs)(t,t.handleClick,n)(e)}),[t])}},860:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCallbackWithArgs=void 0;var r=n(316);t.wrapCallbackWithArgs=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return t.apply(e,r.__spreadArray(r.__spreadArray([],r.__read(i),!1),r.__read(n),!1))}}},496:function(e){e.exports=r},190:function(e){e.exports=i},316:function(e,t,n){n.r(t),n.d(t,{__addDisposableResource:function(){return R},__assign:function(){return a},__asyncDelegator:function(){return C},__asyncGenerator:function(){return k},__asyncValues:function(){return _},__await:function(){return S},__awaiter:function(){return h},__classPrivateFieldGet:function(){return A},__classPrivateFieldIn:function(){return N},__classPrivateFieldSet:function(){return I},__createBinding:function(){return m},__decorate:function(){return s},__disposeResources:function(){return M},__esDecorate:function(){return u},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return v},__importDefault:function(){return j},__importStar:function(){return O},__makeTemplateObject:function(){return T},__metadata:function(){return p},__param:function(){return l},__propKey:function(){return f},__read:function(){return b},__rest:function(){return o},__runInitializers:function(){return c},__setFunctionName:function(){return d},__spread:function(){return w},__spreadArray:function(){return E},__spreadArrays:function(){return x},__values:function(){return g}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var h={};for(var v in r)h[v]="access"===v?{}:r[v];for(var v in r.access)h.access[v]=r.access[v];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var m=(0,n[p])("accessor"===l?{get:f.get,set:f.set}:f[u],h);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=o(m.get))&&(f.get=s),(s=o(m.set))&&(f.set=s),(s=o(m.init))&&i.unshift(s)}else(s=o(m))&&("field"===l?i.unshift(s):f[u]=s)}c&&Object.defineProperty(c,r.name,f),d=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function v(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var m=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function E(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function k(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof S?Promise.resolve(n.value.v).then(l,u):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function C(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:!1}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&m(t,e,n);return P(t,e),t}function j(e){return e&&e.__esModule?e:{default:e}}function A(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function I(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function R(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var L="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function M(e){function t(t){e.error=e.hasError?new L(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:a,__rest:o,__decorate:s,__param:l,__metadata:p,__awaiter:h,__generator:v,__createBinding:m,__exportStar:y,__values:g,__read:b,__spread:w,__spreadArrays:x,__spreadArray:E,__await:S,__asyncGenerator:k,__asyncDelegator:C,__asyncValues:_,__makeTemplateObject:T,__importStar:O,__importDefault:j,__classPrivateFieldGet:A,__classPrivateFieldSet:I,__classPrivateFieldIn:N,__addDisposableResource:R,__disposeResources:M}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.ReactToPrint=e.PrintContextConsumer=void 0;var t=n(328);Object.defineProperty(e,"PrintContextConsumer",{enumerable:!0,get:function(){return t.PrintContextConsumer}});var r=n(428);Object.defineProperty(e,"ReactToPrint",{enumerable:!0,get:function(){return r.ReactToPrint}});var i=n(892);Object.defineProperty(e,"useReactToPrint",{enumerable:!0,get:function(){return i.useReactToPrint}});var a=n(428);e.default=a.ReactToPrint}(),o}())},6181:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},902:function(e,t,n){"use strict";var r=n(5021),i=n(7469),a=n(1520),o=n(2105);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(u)var v=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function k(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=E,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function _(e){return"[object SharedArrayBuffer]"===c(e)}function T(e){return void 0!==C&&(void 0===_.working&&(_.working=_(new C)),_.working?_(e):e instanceof C)}function P(e){return m(e,f)}function O(e){return m(e,d)}function j(e){return m(e,p)}function A(e){return l&&m(e,h)}function I(e){return u&&m(e,v)}t.isSharedArrayBuffer=T,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=P,t.isStringObject=O,t.isBooleanObject=j,t.isBigIntObject=A,t.isSymbolObject=I,t.isBoxedPrimitive=function(e){return P(e)||O(e)||j(e)||A(e)||I(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},7736:function(e,t,n){var r=n(7490),i=n(8466),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])g(s)||!S(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;return function(){if(!a){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),a=!0}return e.apply(this,arguments)}};var s={},l=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var u={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+u+"$","i")}function c(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),p(r,e,r.depth)}function f(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function d(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=p(e,i,r)),i}var a=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),C(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(_(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return h(n)}var u,c="",f=!1,d=["{","}"];return m(n)&&(f=!0,d=["[","]"]),_(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),E(n)&&(c=" "+RegExp.prototype.toString.call(n)),k(n)&&(c=" "+Date.prototype.toUTCString.call(n)),C(n)&&(c=" "+h(n)),0!==o.length||f&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=f?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)j(t,String(o))?a.push(v(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(v(e,t,n,r,i,!0))})),a}(e,n,r,s,o):o.map((function(t){return v(e,n,r,s,t,f)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,c,d)):d[0]+c+d[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function v(e,t,n,r,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),x(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function m(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function E(e){return S(e)&&"[object RegExp]"===T(e)}function S(e){return"object"==typeof e&&null!==e}function k(e){return S(e)&&"[object Date]"===T(e)}function C(e){return S(e)&&("[object Error]"===T(e)||e instanceof Error)}function _(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(902),t.isArray=m,t.isBoolean=y,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=E,t.types.isRegExp=E,t.isObject=S,t.isDate=k,t.types.isDate=k,t.isError=C,t.types.isNativeError=C,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(6181);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",function(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(273),t._extend=function(e,t){if(!t||!S(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(A&&e[A]){var t;if("function"!=typeof(t=e[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),A&&Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=A,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then((function(e){r.nextTick(o.bind(null,null,e))}),(function(e){r.nextTick(I.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}},1520:function(e,t,n){"use strict";var r=n(5767),i=n(3645),a=n(9962),o=n(4680),s=n(6103),l=o("Object.prototype.toString"),u=n(8857)(),c="undefined"==typeof globalThis?n.g:globalThis,f=i(),d=o("String.prototype.slice"),p=Object.getPrototypeOf,h=o("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},v={__proto__:null};r(f,u&&s&&p?function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=p(t),r=s(n,Symbol.toStringTag);if(!r){var i=p(n);r=s(i,Symbol.toStringTag)}v["$"+e]=a(r.get)}}:function(e){var t=new c[e];v["$"+e]=a(t.slice)}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=d(l(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(v,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}})),t}(e)}return s?function(e){var t=!1;return r(v,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}})),t}(e):null}},3645:function(e,t,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(3705),t=n(6377);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){i=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:T(e,n,s)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",v="executing",m="completed",y={};function g(){}function b(){}function w(){}var x={};f(x,l,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(I([])));S&&S!==n&&a.call(S,l)&&(x=S);var k=w.prototype=g.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,s,l){var u=p(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function T(t,n,r){var i=h;return function(a,o){if(i===v)throw new Error("Generator is already running");if(i===m){if("throw"===a)throw o;return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=p(t,n,r);if("normal"===u.type){if(i=r.done?m:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function P(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=p(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=w,o(k,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=f(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,f(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(_.prototype),f(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new _(d(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(k),f(k,c,"Generator"),f(k,l,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function a(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)}))}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||l(e,t)||function(){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 c(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function f(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce((function(e,t){return e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")}),"")};function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}var m,y,g,b,w,x=n(1411);function E(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.currentTarget.click())}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return"string"==typeof e})).reduce((function(e,t){return e.concat(t.split(" "))}),[]).map((function(e){return e.trim()})).filter((function(e){return!!e})).join(" ")}function k(e,t,n,r,i){var a=r?1:-1,o=e[n];return t===n||(i?i(o):"none"!==getComputedStyle(o).display)?o:(n+a>=e.length?n=0:n+a<0?n=e.length-1:n+=a,k(e,t,n,r))}(y=m||(m={})).AppTitle=lf("Code Evaluation"),y.AppTitleShort=lf("Code Eval"),y.ErrorLoadingChecklistMsg=lf("That wasn't a valid checklist."),y.ConfirmReplaceChecklistMsg=lf("This will replace your current checklist. Continue?"),y.UntitledProject=lf("Untitled Project"),y.UntitledChecklist=lf("Untitled Checklist"),y.NewChecklistTitle=lf("New Checklist"),y.NewChecklist=lf("New Checklist"),y.ImportChecklist=lf("Import Checklist"),y.ExportChecklist=lf("Export Checklist"),y.Export=lf("Export"),y.Remove=lf("Remove"),y.Evaluate=lf("Evaluate"),y.Criteria=lf("Criteria"),y.Name=lf("Name"),y.ChecklistNamePlaceholder=lf("Enter Checklist Name"),y.AddCriteria=lf("Add Criteria"),y.Actions=lf("Actions"),y.RunOnLoad=lf("Evaluate on load"),y.RunOnLoadDescription=lf("Automatically evaluate a project when it is loaded"),y.AddNotes=lf("Add Notes"),y.DragAndDrop=lf("Drag & Drop"),y.ReleaseToUpload=lf("Release to Upload"),y.Browse=lf("Browse"),y.SelectChecklistFile=lf("Select Checklist File"),y.InvalidChecklistFile=lf("Invalid Checklist File"),y.Cancel=lf("Cancel"),y.SelectBlock=lf("Select Block"),y.ValueRequired=lf("Value Required"),y.AddSelected=lf("Add Selected"),y.Continue=lf("Continue"),y.Loading=lf("Loading..."),y.Close=lf("Close"),y.Max=lf("Max"),y.AddToChecklist=lf("Add to Checklist"),y.SelectCriteriaDescription=lf("Select the criteria you'd like to include"),y.Checklist=lf("Checklist"),y.Home=lf("Home"),y.CreateEmptyChecklist=lf("Create Empty Checklist"),y.Other=lf("Other"),y.SignIn=lf("Sign In"),y.ConfirmDeleteCriteriaInstance=lf("Are you sure you want to remove this criteria?"),y.Print=lf("Print"),y.Rename=lf("Rename"),y.RenameChecklist=lf("Rename checklist"),y.PrintChecklist=lf("Print checklist"),y.EvaluateChecklist=lf("Evaluate checklist"),y.UnableToEvaluate=lf("Unable to evaluate"),y.UnableToReachAI=lf("Unable to reach the AI service"),y.UnexpectedError=lf("An unexpected error occurred"),y.Dismiss=lf("Dismiss"),y.EvaluationComplete=lf("Evaluation complete"),y.UnableToEvaluatePartial=lf("Unable to evaluate some criteria"),(b=g||(g={})).Loaded="teachertool.loaded",b.HomeLink="teachertool.homelink",b.BrandLink="teachertool.brandlink",b.OrgLink="teachertool.orglink",b.Error="teachertool.error",b.NewChecklist="teachertool.newchecklist",b.ImportChecklist="teachertool.importchecklist",b.ExportChecklist="teachertool.exportchecklist",b.LoadChecklist="teachertool.loadchecklist",b.Evaluate="teachertool.evaluate",b.RunOnLoad="teachertool.runonload",b.AddCriteria="teachertool.addcriteria",b.RemoveCriteria="teachertool.removecriteria",b.AddResultNotes="teachertool.addresultnotes",b.UserMenuSignout="teachertool.usermenu.signout",b.UserMenuSignIn="teachertool.usermenu.signin",b.SignedOutPanelSignIn="teachertool.signedoutpanel.signin",b.CriteriaFeedback="teachertool.criteriafeedback",b.Print="teachertool.print",b.UnhandledEvalError="teachertool.evaluateerror",(w||(w={})).LearnMoreLink="https://makecode.com/teachertool";var C=Object.assign(w,{Strings:m,Ticks:g});function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;return{id:h(),type:e,text:t,timeoutMs:n}}function T(){return{name:m.NewChecklistTitle,criteria:[]}}function P(e){return-1!==(null==e?void 0:e.indexOf("makecode"))?e:"https://makecode.com/".concat(e)}function O(e){for(var t=e.split(/\$\{([\w\s]+)\}/g),n=[],r=0;r<t.length;r++){var i=t[r];i&&(r%2==0?n.push({type:"plain-text",content:i.trim()}):n.push({type:"param",content:i.toLocaleLowerCase().trim()}))}return n}function j(e){return e.template.replaceAll("${","").replaceAll("}","")}function A(e){return-1!==e.indexOf("_")?pxt.Util.snakeCaseToLowercaseWithSpaces(e):pxt.Util.camelCaseToLowercaseWithSpaces(e)}var I={toasts:[],evalResults:{},projectMetadata:void 0,catalog:void 0,checklist:T(),activeTab:"home",validatorPlans:void 0,runOnLoad:!1,modalOptions:void 0,toolboxCategories:void 0,blockImageCache:{},catalogOpen:!1,screenReaderAnnouncement:void 0,userProfile:void 0,flags:{testCatalog:!1}};function N(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||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 R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function M(e,t,n){return t&&L(e.prototype,t),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var D,F,B=new WeakMap,U=new WeakMap,z=new WeakMap,V=new WeakMap,H=new WeakMap,W={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return U.get(e);if("objectStoreNames"===t)return e.objectStoreNames||z.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return q(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function $(e){return"function"==typeof e?function(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(F||(F=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(G(this),n),q(B.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return q(e.apply(G(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=e.call.apply(e,[G(this),t].concat(r));return z.set(a,t.sort?t.sort():[t]),q(a)}}(e):(e instanceof IDBTransaction&&function(e){if(!U.has(e)){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=function(){t(),r()},a=function(){n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));U.set(e,t)}}(e),function(e,t){return t.some((function(t){return e instanceof t}))}(e,D||(D=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,W):e)}function q(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("success",i),e.removeEventListener("error",a)},i=function(){t(q(e.result)),r()},a=function(){n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((function(t){t instanceof IDBCursor&&B.set(t,e)})).catch((function(){})),H.set(t,e),t}(e);if(V.has(e))return V.get(e);var t=$(e);return t!==e&&(V.set(e,t),H.set(t,e)),t}var G=function(e){return H.get(e)};function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,a=n.blocking,o=n.terminated,s=indexedDB.open(e,t),l=q(s);return i&&s.addEventListener("upgradeneeded",(function(e){i(q(s.result),e.oldVersion,e.newVersion,q(s.transaction),e)})),r&&s.addEventListener("blocked",(function(e){return r(e.oldVersion,e.newVersion,e)})),l.then((function(e){o&&e.addEventListener("close",(function(){return o()})),a&&e.addEventListener("versionchange",(function(e){return a(e.oldVersion,e.newVersion,e)}))})).catch((function(){})),l}var Y=["get","getKey","getAll","getAllKeys","count"],K=["put","add","delete","clear"],Q=new Map;function J(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t){if(Q.get(t))return Q.get(t);var n=t.replace(/FromIndex$/,""),r=t!==n,a=K.includes(n);if(n in(r?IDBIndex:IDBObjectStore).prototype&&(a||Y.includes(n))){var s=function(){var e=o(i().mark((function e(t){var o,s,l,u,c,f,d=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s=this.transaction(t,a?"readwrite":"readonly"),l=s.store,u=d.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=d[f];return r&&(l=l.index(c.shift())),e.next=6,Promise.all([(o=l)[n].apply(o,c),a&&s.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return Q.set(t,s),s}}}W=function(e){return p(p({},e),{},{get:function(t,n,r){return J(t,n)||e.get(t,n,r)},has:function(t,n){return!!J(t,n)||e.has(t,n)}})}(W);var Z=function(e){return e.runEval="runEval",e.addingMissingCriteria="addingMissingCriteria",e.getProjectTextAsync="getProjectTextAsync",e.getProjectMetaAsync="getProjectMetaAsync",e.downloadTargetConfigAsync="downloadTargetConfigAsync",e.evalMissingCriteria="evalMissingCriteria",e.evalMissingPlan="evalMissingPlan",e.evalParameterUnset="evalParameterUnset",e.evalMissingCatalogParameter="evalMissingCatalogParameter",e.loadCollectionFileFailed="loadCollectionFileFailed",e.unableToGetIndexedDbRecord="unableToGetIndexedDbRecord",e.unableToSetIndexedDbRecord="unableToSetIndexedDbRecord",e.unableToDeleteIndexedDbRecord="unableToDeleteIndexedDbRecord",e.unableToLoadCriteriaInstance="unableToLoadCriteriaInstance",e.unableToExportChecklist="unableToExportChecklist",e.unableToReadChecklistFile="unableToReadChecklistFile",e.localStorageReadError="localStorageReadError",e.localStorageWriteError="localStorageWriteError",e.missingCriteriaInstance="missingCriteriaInstance",e.validatorPlansNotFound="validatorPlansNotFound",e.fetchRequestFailed="fetchRequestFailed",e.fetchJsonDocAsync="fetchJsonDocAsync",e.missingParameter="missingParameter",e.selectedBlockWithoutOptions="selectedBlockWithoutOptions",e.unrecognizedSystemParameter="unrecognizedSystemParameter",e.invalidValidatorPlan="invalidValidatorPlan",e.askAIQuestion="askAIQuestion",e.missingTag="missingTag",e.noCatalogCriteria="noCatalogCriteria",e.criteriaInstanceNotFound="criteriaInstanceNotFound",e.signInFailed="signInFailed",e.loginApiError="loginApiError",e.authCheckFailed="authCheckFailed",e}({}),ee=n(8466),te=function(){var e=new Date;return"[".concat(e.getHours(),":").concat(e.getMinutes(),":").concat(e.getSeconds(),"]")},ne=function(e,t){var n=p({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});t&&("object"==typeof t?(n=p(p({},n),t),["message","stack","name"].forEach((function(e){t[e]&&(n[e]=t[e])}))):n.message=t),pxt.tickEvent(g.Error,p(p({},n),{},{errorCode:e})),ee.error(te(),e,n)},re=function(e,t){(pxt.BrowserUtils.isLocalHost()||pxt.options.debug)&&ee.log(te(),e,t)},ie="teachertool",ae=[ie,"runOnLoad"].join("/"),oe=[ie,"lastActiveChecklist"].join("/"),se=[ie,"splitPosition"].join("/"),le=[ie,"expandedCatalogTags"].join("/");function ue(e,t){return localStorage.getItem(e)||t}function ce(e,t){localStorage.setItem(e,t)}var fe="checklists",de=function(){function e(){R(this,e),this.db=void 0}return M(e,[{key:"initializeAsync",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.db){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,X("makecode-project-insights",2,{upgrade:function(e){e.createObjectStore(fe,{keyPath:"name"})}});case 4:this.db=e.sent;case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAsync",value:function(){var e=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=2;break}throw new Error("IndexedDb not initialized.");case 2:return e.prev=2,e.next=5,this.db.get(t,n);case 5:return e.abrupt("return",e.sent);case 8:e.prev=8,e.t0=e.catch(2),ne(Z.unableToGetIndexedDbRecord,e.t0);case 11:case"end":return e.stop()}}),e,this,[[2,8]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"setAsync",value:function(){var e=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=2;break}throw new Error("IndexedDb not initialized.");case 2:return e.prev=2,e.next=5,this.db.put(t,n);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),ne(Z.unableToSetIndexedDbRecord,e.t0);case 10:case"end":return e.stop()}}),e,this,[[2,7]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"deleteAsync",value:function(){var e=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=2;break}throw new Error("IndexedDb not initialized.");case 2:return e.prev=2,e.next=5,this.db.delete(t,n);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),ne(Z.unableToDeleteIndexedDbRecord,e.t0);case 10:case"end":return e.stop()}}),e,this,[[2,7]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getChecklist",value:function(e){return this.getAsync(fe,e)}},{key:"saveChecklist",value:function(e){return this.setAsync(fe,e)}},{key:"deleteChecklist",value:function(e){return this.deleteAsync(fe,e)}}]),e}(),pe=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new de,e.next=3,t.initializeAsync();case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))();function he(e){return ve.apply(this,arguments)}function ve(){return(ve=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe;case 2:return n=e.sent,e.next=5,n.saveChecklist(t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(e){return ye.apply(this,arguments)}function ye(){return(ye=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe;case 2:return n=e.sent,e.next=5,n.deleteChecklist(t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(){try{return"true"===ue(ae,"false")}catch(e){return ne(Z.localStorageReadError,e),!1}}function be(){try{var e;return null!==(e=ue(oe))&&void 0!==e?e:""}catch(e){return ne(Z.localStorageReadError,e),""}}function we(e){try{ce(oe,e)}catch(e){ne(Z.localStorageWriteError,e)}}function xe(e){return Ee.apply(this,arguments)}function Ee(){return(Ee=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe;case 2:return n=e.sent,r=void 0,e.next=6,n.getChecklist(t);case 6:return r=e.sent,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(){return ke.apply(this,arguments)}function ke(){return(ke=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=be(),e.next=3,xe(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ce(e){return _e.apply(this,arguments)}function _e(){return(_e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,he(t);case 2:we(t.name);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Te(e){return Pe.apply(this,arguments)}function Pe(){return(Pe=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,me(t);case 2:be()===t&&we("");case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Oe(){try{var e=ue(le);return e?JSON.parse(e):void 0}catch(e){return void ne(Z.localStorageReadError,e)}}function je(e){try{ce(le,JSON.stringify(e))}catch(e){ne(Z.localStorageWriteError,e)}}function Ae(e){var t=Oe();t||(t=[]),t.push(e),je(t)}function Ie(){return(Ie=o(i().mark((function e(t,n){var r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t&&n&&(null==t?void 0:t.name)!==n.name,a=t&&!n,!n){e.next=5;break}return e.next=5,Ce(n);case 5:if(!r&&!a){e.next=8;break}return e.next=8,Te(t.name);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ne(e,t){switch(t.type){case"SHOW_TOAST":return e.toasts.find((function(e){return e.id===t.toast.id}))?e:p(p({},e),{},{toasts:[].concat(N(e.toasts),[t.toast])});case"DISMISS_TOAST":var n=e.toasts.filter((function(e){return e.id!==t.toastId}));return p(p({},e),{},{toasts:n});case"SET_PROJECT_METADATA":return p(p({},e),{},{projectMetadata:t.metadata});case"SET_EVAL_RESULT":return p(p({},e),{},{evalResults:p(p({},e.evalResults),{},f({},t.criteriaInstanceId,t.result))});case"SET_EVAL_RESULTS_BATCH":return p(p({},e),{},{evalResults:t.criteriaResults});case"CLEAR_ALL_EVAL_RESULT_NOTES":for(var r=p({},e.evalResults),i=0,a=Object.keys(r);i<a.length;i++)r[a[i]].notes="";return p(p({},e),{},{evalResults:r});case"CLEAR_EVAL_RESULT":var o=p({},e.evalResults);return delete o[t.criteriaInstanceId],p(p({},e),{},{evalResults:o});case"CLEAR_ALL_EVAL_RESULTS":return p(p({},e),{},{evalResults:{}});case"SET_CATALOG":return p(p({},e),{},{catalog:t.catalog});case"SET_CATALOG_OPEN":return p(p({},e),{},{catalogOpen:t.open});case"SET_CHECKLIST":return function(e,t){Ie.apply(this,arguments)}(e.checklist,t.checklist),p(p({},e),{},{checklist:t.checklist});case"SHOW_MODAL":return p(p({},e),{},{modalOptions:t.modalOptions});case"HIDE_MODAL":return p(p({},e),{},{modalOptions:void 0});case"SET_VALIDATOR_PLANS":return p(p({},e),{},{validatorPlans:t.plans});case"SET_TARGET_CONFIG":return p(p({},e),{},{targetConfig:t.config});case"SET_ACTIVE_TAB":return p(p({},e),{},{activeTab:t.tabName});case"SET_RUN_ON_LOAD":return p(p({},e),{},{runOnLoad:t.runOnLoad});case"SET_TOOLBOX_CATEGORIES":return p(p({},e),{},{toolboxCategories:t.categories});case"SET_BLOCK_IMAGE_URI":var s=p({},e.blockImageCache);return s[t.blockId]=t.imageUri,p(p({},e),{},{blockImageCache:s});case"SET_SCREEN_READER_ANNOUNCEMENT":return p(p({},e),{},{screenReaderAnnouncement:t.announcement});case"SET_USER_PROFILE":return p(p({},e),{},{userProfile:t.profile});case"SET_USER_FEEDBACK":var l=p({},e.checklist),u=l.criteria.find((function(e){return e.instanceId===t.criteriaInstanceId}));return u&&(u.userFeedback=t.userFeedback),p(p({},e),{},{checklist:l})}}var Re,Le,Me,De=n(5205),Fe=n.n(De),Be=window.location.href,Ue=!!/testcatalog(?:[:=])1/.test(Be)||!!/tc(?:[:=])1/.test(Be),ze=new Promise((function(e){Me=function(){return e(!0)}})),Ve=function(){return Fe()(Re&&Le,"AppStateContext not ready"),{state:Re,dispatch:Le}},He=(0,e.createContext)({state:void 0,dispatch:void 0});function We(t){var n=u((0,e.useReducer)(Ne,p(p({},I),{},{runOnLoad:ge(),flags:p(p({},I.flags),{},{testCatalog:Ue})})),2),r=n[0],i=n[1];return(0,e.useEffect)((function(){Re=r,Le=i,Me()}),[r,i]),(0,x.jsx)(He.Provider,{value:{state:r,dispatch:i},children:t.children})}var $e=function(e){return{type:"SHOW_TOAST",toast:e}},qe=function(e){return{type:"DISMISS_TOAST",toastId:e}},Ge=function(e){return{type:"SET_PROJECT_METADATA",metadata:e}},Xe=function(e){return{type:"CLEAR_EVAL_RESULT",criteriaInstanceId:e}},Ye=function(e){return{type:"SET_CATALOG",catalog:e}},Ke=function(e){return{type:"SET_VALIDATOR_PLANS",plans:e}},Qe=function(e){return{type:"SET_TOOLBOX_CATEGORIES",categories:e}},Je=function(e,t){return{type:"SET_BLOCK_IMAGE_URI",blockId:e,imageUri:t}};function Ze(e){return et.apply(this,arguments)}function et(){return(et=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t,{cache:"no-cache"});case 3:if((n=e.sent).ok){e.next=8;break}throw new Error("Unable to fetch the json file");case 8:return e.next=10,n.json();case 10:return r=e.sent,e.abrupt("return",r);case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),ne(Z.fetchJsonDocAsync,e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)}function tt(e){return nt.apply(this,arguments)}function nt(){return(nt=o(i().mark((function e(t){var n,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="".concat(pxt.Cloud.apiRoot,"/").concat(t),e.next=4,fetch(n);case 4:if((r=e.sent).ok){e.next=9;break}throw new Error("Unable to fetch the project meta information");case 9:return e.next=11,r.json();case 11:return a=e.sent,e.abrupt("return",a);case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),ne(Z.getProjectMetaAsync,e.t0);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})))).apply(this,arguments)}function rt(){return it.apply(this,arguments)}function it(){return(it=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,pxt.targetConfigAsync();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),ne(Z.downloadTargetConfigAsync,e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function at(e){var t=e.split("/");return t.splice(t.length-1,0,"test"),t.join("/")}function ot(e,t){return st.apply(this,arguments)}function st(){return(st=o(i().mark((function e(t,n){var r,a,o,s,l,u,c,f,d,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Ve(),a=r.state,o=a.flags.testCatalog?t.map(at).concat(t):t,s=[],l=v(o),e.prev=4,l.s();case 6:if((u=l.n()).done){e.next=25;break}return c=u.value,e.prev=8,e.next=11,fetch(c,{cache:"no-cache"});case 11:if(!(f=e.sent).ok){e.next=17;break}return e.next=15,f.json();case 15:p=e.sent,s=s.concat(null!==(d=p[n])&&void 0!==d?d:[]);case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(8),ne(Z.loadCollectionFileFailed,e.t0,{collection:n,file:c}),e.abrupt("continue",23);case 23:e.next=6;break;case 25:e.next=30;break;case 27:e.prev=27,e.t1=e.catch(4),l.e(e.t1);case 30:return e.prev=30,l.f(),e.finish(30);case 33:return e.abrupt("return",s);case 34:case"end":return e.stop()}}),e,null,[[4,27,30,33],[8,19]])})))).apply(this,arguments)}function lt(e,t){return ut.apply(this,arguments)}function ut(){return(ut=o(i().mark((function e(t,n){var r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={id:t,question:n},a="",e.prev=3,e.next=6,pxt.auth.AuthClient.staticApiAsync("/api/copilot/question",r,"POST");case 6:if((o=e.sent).success){e.next=9;break}throw new Error(o.err||lf("Unable to reach AI. Error code: {0}",o.statusCode));case 9:return e.next=11,o.resp.json();case 11:a=e.sent,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),ne(Z.askAIQuestion,e.t0);case 17:return e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,null,[[3,14]])})))).apply(this,arguments)}var ct={header:"HeaderBar_header__pBql2","left-menu":"HeaderBar_left-menu__phGxx","right-menu":"HeaderBar_right-menu__o24ph",org:"HeaderBar_org__2wCvh",logo:"HeaderBar_logo__ybst2",brand:"HeaderBar_brand__w4YPa","centered-panel":"HeaderBar_centered-panel__RgeGl","app-title":"HeaderBar_app-title__Iv1Zf","user-menu":"HeaderBar_user-menu__ELItm","sign-in-button":"HeaderBar_sign-in-button__56EOo",avatar:"HeaderBar_avatar__Sj5JF","beta-tag":"HeaderBar_beta-tag__kATXg"},ft=function(e){var t=e.id,n=e.className,r=e.style,i=e.ariaLabel,a=e.ariaHidden,o=e.ariaDescribedBy,s=e.ariaControls,l=e.ariaExpanded,u=e.ariaHasPopup,c=e.ariaPosInSet,f=e.ariaSetSize,d=e.ariaSelected,p=e.ariaPressed,h=e.role,v=e.onClick,m=e.onKeydown,y=e.onBlur,g=e.buttonRef,b=e.title,w=e.label,k=e.leftIcon,C=e.rightIcon,_=e.hardDisabled,T=e.href,P=e.target,O=e.tabIndex,j=e.children,A=e.disabled,I=S("common-button",n,(A=A||_)&&"disabled");return(0,x.jsxs)("button",{id:t,className:I,style:r,title:b,ref:g,onClick:A?void 0:function(e){v&&v(),T&&window.open(T,P||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onKeyDown:m||E,onBlur:y,role:h||"button",tabIndex:O||(A?-1:0),disabled:_,"aria-label":i,"aria-hidden":a,"aria-controls":s,"aria-expanded":l,"aria-haspopup":u,"aria-posinset":c,"aria-setsize":f,"aria-describedby":o,"aria-selected":d,"aria-pressed":p,children:[(k||C||w)&&(0,x.jsxs)("span",{className:"common-button-flex",children:[k&&(0,x.jsx)("i",{className:k,"aria-hidden":!0}),(0,x.jsx)("span",{className:"common-button-label",children:w}),C&&(0,x.jsx)("i",{className:"right "+C,"aria-hidden":!0})]}),j]})},dt=function(e){var t,n,r=e.id,i=e.className,a=e.role,o=e.ariaHidden,s=e.ariaLabel,l=e.childTabStopId,u=e.children,c=e.onItemReceivedFocus,f=e.useUpAndDownArrowKeys,d=function(e){return"true"===e.getAttribute("data-isfocusable")&&"none"!==getComputedStyle(e).display};return(0,x.jsx)("div",{id:r,className:i,role:a,tabIndex:l?void 0:0,onKeyDown:function(e){var r;if(null!==(r=t)&&void 0!==r&&r.length){var i=document.activeElement,a=t.indexOf(i),o=function(e){e.focus(),c&&c(e)};-1===a&&i!==n||("Enter"===e.key||" "===e.key?(e.preventDefault(),e.stopPropagation(),i.click?i.click():i.dispatchEvent(new Event("click"))):e.key===(f?"ArrowDown":"ArrowRight")?(a===t.length-1||i===n?o(k(t,a,0,!0,d)):o(k(t,a,a+1,!0,d)),e.preventDefault(),e.stopPropagation()):e.key===(f?"ArrowUp":"ArrowLeft")?(o(k(t,a,0===a||i===n?t.length-1:a-1,!1,d)),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(o(k(t,a,0,!0,d)),e.preventDefault(),e.stopPropagation()):"End"===e.key&&(o(k(t,a,t.length-1,!0,d)),e.preventDefault(),e.stopPropagation()))}},ref:function(e){if(e&&!n){n=e;var r=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');t=[];var i,a=v(r.values());try{for(a.s();!(i=a.n()).done;){var o=i.value;t.push(o),o.setAttribute("tabindex","-1"),o.setAttribute("data-isfocusable","true")}}catch(e){a.e(e)}finally{a.f()}if(l){var s=n.querySelector("#"+l);s&&s.setAttribute("tabindex","0")}}},"aria-hidden":o,"aria-label":s,children:u})},pt=function(e){return(0,x.jsx)(dt,p(p({},e),{},{role:"menubar",className:S("common-menubar",e.className)}))},ht=function(t){var n,r=t.children,i=t.id,a=t.className,o=t.onEscape,s=t.arrowKeyNavigation,l=t.dontStealFocus,c=t.includeOutsideTabOrder,f=t.dontRestoreFocus,d=e.useRef(document.activeElement),p=u(e.useState(!1),2),h=p[0],m=p[1];e.useEffect((function(){return function(){!f&&d.current&&function(e){for(;e&&(!(n=e)||"true"!==n.getAttribute("data-isfocusable")&&-1===n.tabIndex||"none"===getComputedStyle(n).display);){var t=e.parentElement;if(!t)break;e=t}var n;e.focus()}(d.current)}}),[]);var y=function(){return function(e){var t,n=[],r=v(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}(c?n.querySelectorAll("[tabindex]"):n.querySelectorAll('[tabindex]:not([tabindex="-1"])'))};return(0,x.jsx)("div",{id:i,className:S("common-focus-trap",a),ref:function(e){e&&(n=e,l||h||e.contains(document.activeElement)||!y().length||(n.focus(),m(!0)))},onKeyDown:function(e){if(n){var t=function(t,n){var r=y();if(r.length){var i=r.indexOf(e.target);t?n?k(r,i,r.length-1,t).focus():i===r.length-1?k(r,i,0,t).focus():k(r,i,i+1,t).focus():n?k(r,i,0,t).focus():0===i?k(r,i,r.length-1,t).focus():k(r,i,Math.max(i-1,0),t).focus(),e.preventDefault(),e.stopPropagation()}};"Escape"===e.key?(o(),e.preventDefault(),e.stopPropagation()):"Tab"===e.key?e.shiftKey?t(!1,!1):t(!0,!1):s&&("ArrowDown"===e.key?t(!0,!1):"ArrowUp"===e.key?t(!1,!1):"Home"===e.key?t(!1,!0):"End"===e.key&&t(!0,!0))}},tabIndex:-1,children:r})},vt=function(t){var n,r,i=t.id,a=t.className,o=t.ariaHidden,s=t.ariaLabel,l=t.role,c=t.items,f=t.label,d=t.title,h=t.icon,v=t.tabIndex,m=t.disabled,y=u(e.useState(!1),2),g=y[0],b=y[1],w=S("common-menu-dropdown",a),E=i+"-menu";return(0,x.jsxs)("div",{className:w,ref:function(e){e&&(n=e)},onBlur:function(e){n&&g&&!n.contains(e.relatedTarget)&&b(!1)},children:[(0,x.jsx)(ft,{id:i,label:f,tabIndex:v,buttonRef:function(e){e&&(r=e)},title:d,leftIcon:h,role:l||"menuitem",className:S("menu-button",g&&"expanded"),onClick:function(){b(!g)},ariaHasPopup:"true",ariaExpanded:g,ariaControls:g?E:void 0,ariaLabel:s,ariaHidden:o,disabled:m}),g&&(0,x.jsx)("div",{role:"menu",className:"common-menu-dropdown-pane",tabIndex:0,id:E,"aria-labelledby":i,children:(0,x.jsx)(ht,{arrowKeyNavigation:!0,onEscape:function(){b(!1),r&&r.focus()},children:(0,x.jsx)("ul",{role:"presentation",children:c.map((function(e,t){return(0,x.jsx)("li",{role:"presentation",children:(0,x.jsx)(ft,p(p({},e),{},{className:S("common-menu-dropdown-item",e.className),onClick:function(){b(!1),e.onClick()},role:"menuitem",ariaPosInSet:t+1,ariaSetSize:c.length}))},t)}))})})})]})};function mt(e){(0,Ve().dispatch)(function(e){return{type:"SHOW_MODAL",modalOptions:e}}(e))}function yt(e,t){return(yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yt(e,t)}function bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function xt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Et(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xt(e)}function St(e){var t=wt();return function(){var n,r=bt(e);if(t){var i=bt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Et(this,n)}}function kt(){var e=Ve(),t=e.state,n=e.dispatch;void 0!==t.modalOptions?n({type:"HIDE_MODAL"}):re("Trying to hide model when no modal is active")}function Ct(e){var t,n=Ve(),r=n.state,i=n.dispatch,a=null!=e&&e.id?e:void 0;re("Set user profile",{oldProfile:r.userProfile,incomingProfile:e,finalProfile:a}),i(function(e){return{type:"SET_USER_PROFILE",profile:e}}(a)),a?"sign-in"===(null===(t=r.modalOptions)||void 0===t?void 0:t.modal)&&kt():mt({modal:"sign-in"})}function _t(e){(0,Ve().dispatch)($e(e))}var Tt,Pt=function(e){gt(n,pxt.auth.AuthClient);var t=St(n);function n(){return R(this,n),t.apply(this,arguments)}return M(n,[{key:"onSignedIn",value:function(){var e=o(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re("User signed in"),e.next=3,pxt.auth.getUserStateAsync();case 3:t=e.sent,_t(_("success",(n=pxt.auth.firstName(null==t?void 0:t.profile))?lf("Welcome {0}",n):lf("Welcome!")));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignedOut",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re("User signed out"),Ct(void 0),e.abrupt("return",Promise.resolve());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignInFailed",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ne(Z.signInFailed),e.abrupt("return",Promise.resolve());case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onUserProfileChanged",value:function(){var e=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pxt.auth.getUserStateAsync();case 2:t=e.sent,re("User profile changed",t.profile),null!=t&&t.profile&&pxt.auth.generateUserProfilePicDataUrl(t.profile),Ct(t.profile);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onUserPreferencesChanged",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re("User preferences changed",t),e.abrupt("return",Promise.resolve());case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"onProfileDeleted",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re("Profile deleted",t),e.abrupt("return",Promise.resolve());case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"onApiError",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ne(Z.loginApiError,"API error"),re("API error details",t),e.abrupt("return",Promise.resolve());case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"onStateCleared",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re("State cleared"),e.abrupt("return",Promise.resolve());case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}]),n}();function Ot(){return jt.apply(this,arguments)}function jt(){return(jt=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pxt.auth.hasIdentity()){e.next=2;break}return e.abrupt("return",void 0);case 2:if(!Tt){e.next=4;break}return e.abrupt("return",Tt);case 4:return Tt=new Promise(function(){var e=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new Pt,e.next=3,r.initAsync();case 3:return e.next=5,r.authCheckAsync();case 5:return e.next=7,r.initialUserPreferencesAsync();case 7:t(r);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),e.abrupt("return",Tt);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function At(){return It.apply(this,arguments)}function It(){return(It=o(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ot();case 2:if(t=e.sent,!(n=pxt.Util.parseQueryString(window.location.href)).authcallback){e.next=9;break}return e.next=7,pxt.auth.loginCallbackAsync(n);case 7:e.next=12;break;case 9:return e.next=11,null==t?void 0:t.authCheckAsync();case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nt(e){return Rt.apply(this,arguments)}function Rt(){return(Rt=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ot();case 2:return n=e.sent,e.next=5,null==n?void 0:n.logoutAsync(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lt(e,t,n){return Mt.apply(this,arguments)}function Mt(){return(Mt=o(i().mark((function e(t,n,r){var a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ot();case 2:return a=e.sent,e.next=5,null==a?void 0:a.loginAsync(t,n,r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Dt=function(){return(0,x.jsx)("div",{className:ct["beta-tag"],children:lf("Beta")})},Ft=function(){var t,n=(0,e.useContext)(He).state,r=null===(t=pxt.appTarget)||void 0===t?void 0:t.appTheme;function a(){var e,t,r,i,a;if(n.userProfile)return null!==(e=null!==(t=null===(r=n.userProfile.idp)||void 0===r?void 0:r.pictureUrl)&&void 0!==t?t:null===(i=n.userProfile.idp)||void 0===i||null===(a=i.picture)||void 0===a?void 0:a.dataUrl)&&void 0!==e?e:function(e){var t,n,r,i,a=null==e||null===(t=e.idp)||void 0===t||null===(n=t.picture)||void 0===n?void 0:n.mimeType,o=null==e||null===(r=e.idp)||void 0===r||null===(i=r.picture)||void 0===i?void 0:i.encoded;return a&&o?"data:".concat(a,";base64,").concat(o):void 0}(n.userProfile)}function s(){return l.apply(this,arguments)}function l(){return(l=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent(g.UserMenuSignout),e.next=3,Nt(location.hash);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,x.jsxs)(pt,{className:ct.header,ariaLabel:lf("Header"),role:"navigation",children:[(0,x.jsxs)("div",{className:ct["left-menu"],children:[(0,x.jsx)("div",{className:ct.org,onClick:function(){pxt.tickEvent(g.OrgLink),null!=r&&r.organizationUrl&&window.open(r.organizationUrl)},children:r.organizationWideLogo||r.organizationLogo?(0,x.jsxs)(x.Fragment,{children:[r.organizationWideLogo&&(0,x.jsx)("img",{className:S(ct.logo,"min-sm"),src:r.organizationWideLogo,alt:lf("{0} Logo",r.organization)}),r.organizationLogo&&(0,x.jsx)("img",{className:S(ct.logo,"max-sm"),src:r.organizationLogo,alt:lf("{0} Logo",r.organization)})]}):(0,x.jsx)("span",{className:"name",children:r.organization})}),(0,x.jsx)("div",{className:ct.brand,"aria-label":lf("{0} Logo",r.boardName),role:"menuitem",onClick:function(){pxt.tickEvent(g.BrandLink),null!=r&&r.logoUrl&&window.open(r.logoUrl)},children:r.useTextLogo?[(0,x.jsx)("span",{className:ct.name,children:r.organizationText},"org-name"),(0,x.jsx)("span",{className:ct["name-short"],children:r.organizationShortText||r.organizationText},"org-name-short")]:r.logo||r.portraitLogo?(0,x.jsxs)(x.Fragment,{children:[r.logo&&(0,x.jsx)("img",{className:S(ct.logo,"min-2sm"),src:r.logo,alt:lf("{0} Logo",r.boardName)}),r.portraitLogo&&(0,x.jsx)("img",{className:S(ct.logo,"max-2sm"),src:r.portraitLogo,alt:lf("{0} Logo",r.boardName)})]}):(0,x.jsx)("span",{className:ct.name,children:r.boardName})})]}),(0,x.jsxs)("div",{className:ct["centered-panel"],children:[(0,x.jsxs)("div",{className:S(ct["app-title"],"min-sm"),children:[m.AppTitle,Dt()]}),(0,x.jsxs)("div",{className:S(ct["app-title"],"min-2xs max-sm"),children:[m.AppTitleShort,Dt()]})]}),(0,x.jsx)("div",{className:ct["right-menu"],children:function(){var e=[];n.userProfile&&e.push({id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:s});var t=a()?(0,x.jsx)("div",{className:ct.avatar,children:(0,x.jsx)("img",{src:a(),alt:lf("Profile Image"),referrerPolicy:"no-referrer","aria-hidden":"true"})}):void 0,r=n.userProfile?(0,x.jsx)("span",{children:(0,x.jsx)("div",{className:ct["avatar-initials"],"aria-hidden":"true",children:pxt.auth.userInitials(n.userProfile)})}):(0,x.jsx)(x.Fragment,{});return(0,x.jsx)("div",{className:ct["user-menu"],children:n.userProfile?(0,x.jsx)(vt,{id:"profile-dropdown",items:e,label:t||r,title:lf("Profile Settings")}):(0,x.jsx)(ft,{className:S("inverted",ct["sign-in-button"]),rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:function(){pxt.tickEvent(g.UserMenuSignIn),mt({modal:"sign-in"})}})})}()})]})},Bt={"split-pane":"SplitPane_split-pane__5QjT3",left:"SplitPane_left__aUKhs",right:"SplitPane_right__bep0n","resizing-overlay":"SplitPane_resizing-overlay__eglta","split-vertical":"SplitPane_split-vertical__gKApo",splitter:"SplitPane_splitter__WgA5G","splitter-inner":"SplitPane_splitter-inner__hAcVZ","split-horizontal":"SplitPane_split-horizontal__8n39G"},Ut=function(t){var n=t.className,r=t.split,i=t.defaultSize,a=t.startingSize,o=t.left,s=t.right,l=t.leftMinSize,c=t.rightMinSize,f=t.onResizeEnd,d=u(e.useState(a||i),2),p=d[0],h=d[1],v=u(e.useState(!1),2),m=v[0],y=v[1],g=e.useRef(null);function b(e){E(e.clientX,e.clientY)}function w(e){e.touches.length>=1&&E(e.touches[0].clientX,e.touches[0].clientY)}function E(e,t){var n,i=null===(n=g.current)||void 0===n?void 0:n.getBoundingClientRect();if(i){y(!0);var a="".concat("vertical"===r?(e-i.left)/i.width*100:(t-i.top)/i.height*100,"%");h(a)}}function k(e){e.preventDefault(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),document.addEventListener("touchmove",w),document.addEventListener("touchend",C)}function C(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",C),y(!1)}e.useEffect((function(){m||null==f||f(p)}),[m]);var _={flexBasis:p};return"vertical"===r?(_.minWidth=l,_.maxWidth="calc(100% - ".concat(c,")")):(_.minHeight=l,_.maxHeight="calc(100% - ".concat(c,")")),(0,x.jsxs)("div",{ref:g,className:S(Bt["split-pane"],Bt["split-".concat(r)],n),children:[(0,x.jsx)("div",{className:Bt.left,style:_,children:o}),(0,x.jsx)("div",{className:Bt.splitter,onMouseDown:k,onTouchStart:k,onDoubleClick:function(){h(i),null==f||f(i)},children:(0,x.jsx)("div",{className:Bt["splitter-inner"]})}),(0,x.jsx)("div",{className:Bt.right,children:s}),(0,x.jsx)("div",{className:S(Bt["resizing-overlay"],m?void 0:"hidden")})]})},zt={toolbar:"Toolbar_toolbar__X-piR","toolbar-control-group":"Toolbar_toolbar-control-group__HsuUX","toggle-button":"Toolbar_toggle-button__I9YQc"},Vt=Object.assign((function(e){var t=e.left,n=e.center,r=e.right,i=e.className;return(0,x.jsxs)("div",{className:S(zt.toolbar,"tt-toolbar",i),children:[(0,x.jsx)("div",{className:S(zt.left,"tt-toolbar-left"),children:t}),(0,x.jsx)("div",{className:S(zt.center,"tt-toolbar-center"),children:n}),(0,x.jsx)("div",{className:S(zt.right,"tt-toolbar-right"),children:r})]})}),{Button:function(e){return(0,x.jsx)(ft,p(p({},e),{},{className:S(zt["toolbar-button"],"tt-toolbar-button",e.className),rightIcon:e.icon}))},ControlGroup:function(e){var t=e.children,n=e.className;return(0,x.jsx)("div",{className:S(zt["toolbar-control-group"],"tt-toolbar-control-group",n),children:t})},MenuDropdown:function(e){var t=(0,x.jsx)("i",{className:"fas fa-ellipsis-v"});return(0,x.jsx)(vt,p(p({},e),{},{className:S(zt["toolbar-menu-dropdown"],"tt-toolbar-menu-dropdown",e.className),label:t}))},Toggle:function(t){var n=t.label,r=t.title,i=t.isChecked,a=t.onToggle,o=t.className,s=u(e.useState(i),2),l=s[0],c=s[1];return(0,x.jsx)(ft,p(p({},t),{},{className:S(zt["toggle-button"],o),title:r,label:n,ariaLabel:n,onClick:function(){c(!l),a(!l)},rightIcon:l?"fas fa-toggle-on":"fas fa-toggle-off",ariaPressed:l}))}});function Ht(e){var t=Ve(),n=t.state,r=t.dispatch;n.activeTab!==e&&r(function(e){return{type:"SET_ACTIVE_TAB",tabName:e}}(e))}var Wt=function(t){var n=t.children,r=t.name,i=t.disabled,a=S("tt-tabgroup-tab",(0,e.useContext)(He).state.activeTab===r?"tt-tabgroup-tab-active":void 0);return(0,x.jsx)(ft,{className:a,title:r,onClick:function(){Ht(r)},disabled:i,children:n})},$t=function(e){var t=e.children;return(0,x.jsx)("div",{className:S("TabGroup_tabgroup__I4Tyj","tt-tabgroup"),children:t})},qt=function(t){var n=t.children,r=t.name;return(0,e.useContext)(He).state.activeTab===r?(0,x.jsx)("div",{className:S("TabPanel_tabpanel__cf7Oq","tt-tabpanel"),children:n}):null},Gt="HomeScreen_carouselRow__VrI5G",Xt="HomeScreen_rowTitle__vi0Bn",Yt="HomeScreen_cardContainer__DPPm9",Kt="HomeScreen_cardButton__MS1lx",Qt="HomeScreen_cardDiv__aK5MF",Jt="HomeScreen_cardTitle__NhV5m",Zt="HomeScreen_loadingGradient__2Tcfd",en=function(e){var t=e.id,n=e.className,r=e.ariaLabel,i=e.href,a=e.target,o=e.children,s=e.tabIndex,l=S("common-link",n);return(0,x.jsx)("a",{id:t,className:l,"aria-label":r,href:i,target:a,rel:"_blank"===a?"noopener noreferrer":"",tabIndex:null!=s?s:0,children:o})};function tn(e){var t;return null===(t=Ve().state.catalog)||void 0===t?void 0:t.find((function(t){return t.id===e}))}function nn(e,t){return e.checklist.criteria.find((function(e){return e.instanceId===t}))}function rn(e){var t,n=tn(e.catalogCriteriaId);if(!n)throw new Error("Unrecognized catalog id in criteria instance.");var r,i=v(null!==(t=e.params)&&void 0!==t?t:[]);try{var a=function(){var e,t=r.value;if(null==n||null===(e=n.params)||void 0===e||!e.find((function(e){return e.name===t.name})))throw new Error("Unrecognized parameter in criteria instance.")};for(i.s();!(r=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}}function an(e){if(!e||!e.criteria)return{valid:!1,validCriteria:[],invalidCriteria:[]};var t,n=[],r=[],i=v(e.criteria);try{for(i.s();!(t=i.n()).done;){var a=t.value;try{rn(a),n.push(a)}catch(e){ne(Z.unableToLoadCriteriaInstance,e),r.push(a)}}}catch(e){i.e(e)}finally{i.f()}return{valid:0===r.length,validCriteria:n,invalidCriteria:r}}function on(e){return!!e.projectMetadata}function sn(e){return!(!e.checklist.criteria.length&&!e.checklist.name)}function ln(e){return e.checklist.name||m.UntitledChecklist}function un(e,t){return cn.apply(this,arguments)}function cn(){return(cn=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){mt({modal:"confirmation",title:t,message:n,onCancel:function(){return e(!1)},onContinue:function(){return e(!0)}})})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var fn=function(e){return e[e.Pass=0]="Pass",e[e.Fail=1]="Fail",e[e.CompleteWithNoResult=2]="CompleteWithNoResult",e[e.InProgress=3]="InProgress",e[e.NotStarted=4]="NotStarted",e}({});function dn(e){var t,n=e.overwriteExistingEntries,r=e.checklist,i=Ve(),a=i.state,o=i.dispatch,s={},l=v((r||a.checklist).criteria);try{for(l.s();!(t=l.n()).done;){var u=t.value.instanceId;a.evalResults[u]&&!n||(s[u]={result:fn.NotStarted})}}catch(e){l.e(e)}finally{l.f()}n||(s=p(p({},a.evalResults),s)),o(function(e){return{type:"SET_EVAL_RESULTS_BATCH",criteriaResults:e}}(s))}function pn(e){(0,Ve().dispatch)(function(e){return{type:"SET_CHECKLIST",checklist:e}}(e)),dn({checklist:e})}function hn(e){return vn.apply(this,arguments)}function vn(){return(vn=o(i().mark((function e(t){var n,r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Ve(),a=r.state,o=t.name||null!==(n=t.criteria)&&void 0!==n&&n.length?lf("Import '{0}'?",t.name?t.name:m.UntitledChecklist):m.CreateEmptyChecklist,e.t0=sn(a),!e.t0){e.next=7;break}return e.next=6,un(o,m.ConfirmReplaceChecklistMsg);case 6:e.t0=!e.sent;case 7:if(!e.t0){e.next=9;break}return e.abrupt("return",!1);case 9:return pn(t),Ht("results"),e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mn(){return yn.apply(this,arguments)}function yn(){return(yn=o(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ve(),n=t.dispatch,e.next=3,hn(T());case 3:if(!e.sent){e.next=5;break}n({type:"CLEAR_ALL_EVAL_RESULTS"});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gn(e){return bn.apply(this,arguments)}function bn(){return(bn=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ze(t);case 2:if(n=e.sent){e.next=6;break}return _t(_("error",m.ErrorLoadingChecklistMsg)),e.abrupt("return");case 6:if(an(n).valid){e.next=10;break}return _t(_("error",m.ErrorLoadingChecklistMsg)),e.abrupt("return");case 10:return e.next=12,hn(n);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xn(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function En(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:xn(t[n])&&xn(e[n])&&Object.keys(t[n]).length>0&&En(e[n],t[n])}))}var Sn={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function kn(){var e="undefined"!=typeof document?document:{};return En(e,Sn),e}var Cn={document:Sn,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function _n(){var e="undefined"!=typeof window?window:{};return En(e,Cn),e}function Tn(e,t,n){return(Tn=wt()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&yt(i,n.prototype),i}).apply(null,arguments)}function Pn(e){var t="function"==typeof Map?new Map:void 0;return(Pn=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Tn(e,arguments,bt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),yt(n,e)})(e)}var On=function(e){gt(n,e);var t=St(n);function n(e){var r;return R(this,n),"number"==typeof e?r=t.call(this,e):function(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(e){t.__proto__=e}})}(xt(r=t.call.apply(t,[this].concat(N(e||[]))))),Et(r)}return M(n)}(Pn(Array));function jn(){var e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){Array.isArray(t)?e.push.apply(e,N(jn(t))):e.push(t)})),e}function An(e,t){return Array.prototype.filter.call(e,t)}function In(e,t){var n=_n(),r=kn(),i=[];if(!t&&e instanceof On)return e;if(!e)return new On(i);if("string"==typeof e){var a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var o="div";0===a.indexOf("<li")&&(o="ul"),0===a.indexOf("<tr")&&(o="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(o="tr"),0===a.indexOf("<tbody")&&(o="table"),0===a.indexOf("<option")&&(o="select");var s=r.createElement(o);s.innerHTML=a;for(var l=0;l<s.childNodes.length;l+=1)i.push(s.childNodes[l])}else i=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),i=0;i<r.length;i+=1)n.push(r[i]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof On)return e;i=e}return new On(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(i))}In.fn=On.prototype;var Nn="resize scroll".split(" ");function Rn(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var i=0;i<this.length;i+=1)Nn.indexOf(e)<0&&(e in this[i]?this[i][e]():In(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}Rn("click"),Rn("blur"),Rn("focus"),Rn("focusin"),Rn("focusout"),Rn("keyup"),Rn("keydown"),Rn("keypress"),Rn("submit"),Rn("change"),Rn("mousedown"),Rn("mousemove"),Rn("mouseup"),Rn("mouseenter"),Rn("mouseleave"),Rn("mouseout"),Rn("mouseover"),Rn("touchstart"),Rn("touchend"),Rn("touchmove"),Rn("resize"),Rn("scroll");var Ln={addClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jn(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,N(r))})),this},removeClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jn(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,N(r))})),this},hasClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jn(t.map((function(e){return e.split(" ")})));return An(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jn(t.map((function(e){return e.split(" ")})));this.forEach((function(e){r.forEach((function(t){e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?"".concat(e,"ms"):e;return this},on:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];function s(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),In(t).is(i))a.apply(t,n);else for(var r=In(t).parents(),o=0;o<r.length;o+=1)In(r[o]).is(i)&&a.apply(r[o],n)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var u,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(i)for(u=0;u<c.length;u+=1){var p=c[u];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:a,proxyListener:s}),d.addEventListener(p,s,o)}else for(u=0;u<c.length;u+=1){var h=c[u];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:a,proxyListener:l}),d.addEventListener(h,l,o)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!i&&f.dom7Listeners?d=f.dom7Listeners[u]:i&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[u]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];a&&h.listener===a||a&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===a?(f.removeEventListener(u,h.proxyListener,o),d.splice(p,1)):a||(f.removeEventListener(u,h.proxyListener,o),d.splice(p,1))}}return this},trigger:function(){for(var e=_n(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=n[0].split(" "),a=n[1],o=0;o<i.length;o+=1)for(var s=i[o],l=0;l<this.length;l+=1){var u=this[l];if(e.CustomEvent){var c=new e.CustomEvent(s,{detail:a,bubbles:!0,cancelable:!0});u.dom7EventData=n.filter((function(e,t){return t>0})),u.dispatchEvent(c),u.dom7EventData=[],delete u.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=_n();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=_n(),t=kn(),n=this[0],r=n.getBoundingClientRect(),i=t.body,a=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-a,left:r.left+l-o}}return null},css:function(e,t){var n,r=_n();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this},each:function(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,n,r=_n(),i=kn(),a=this[0];if(!a||void 0===e)return!1;if("string"==typeof e){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=In(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===i)return a===i;if(e===r)return a===r;if(e.nodeType||e instanceof On){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t=this.length;if(e>t-1)return In([]);if(e<0){var n=t+e;return In(n<0?[]:[this[n]])}return In([this[e]])},append:function(){for(var e,t=kn(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var i=t.createElement("div");for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof On)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this},prepend:function(e){var t,n,r=kn();for(t=0;t<this.length;t+=1)if("string"==typeof e){var i=r.createElement("div");for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof On)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&In(this[0].nextElementSibling).is(e)?In([this[0].nextElementSibling]):In([]):this[0].nextElementSibling?In([this[0].nextElementSibling]):In([]):In([])},nextAll:function(e){var t=[],n=this[0];if(!n)return In([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?In(r).is(e)&&t.push(r):t.push(r),n=r}return In(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&In(t.previousElementSibling).is(e)?In([t.previousElementSibling]):In([]):t.previousElementSibling?In([t.previousElementSibling]):In([])}return In([])},prevAll:function(e){var t=[],n=this[0];if(!n)return In([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?In(r).is(e)&&t.push(r):t.push(r),n=r}return In(t)},parent:function(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?In(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return In(t)},parents:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?In(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return In(t)},closest:function(e){var t=this;return void 0===e?In([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return In(t)},children:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)e&&!In(r[i]).is(e)||t.push(r[i]);return In(t)},filter:function(e){return In(An(this,e))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};Object.keys(Ln).forEach((function(e){Object.defineProperty(In.fn,e,{value:Ln[e],writable:!0})}));var Mn,Dn,Fn,Bn=In;function Un(e){return setTimeout(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}function zn(){return Date.now()}function Vn(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",a=_n(),o=function(e){var t,n=_n();return n.getComputedStyle&&(t=n.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e);return a.WebKitCSSMatrix?((n=o.transform||o.webkitTransform).split(",").length>6&&(n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new a.WebKitCSSMatrix("none"===n?"":n)):t=(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(n=a.WebKitCSSMatrix?r.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===i&&(n=a.WebKitCSSMatrix?r.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),n||0}function Hn(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Wn(){for(var e,t=Object(arguments.length<=0?void 0:arguments[0]),n=["__proto__","constructor","prototype"],r=1;r<arguments.length;r+=1){var i=r<0||arguments.length<=r?void 0:arguments[r];if(null!=i&&(e=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType))))for(var a=Object.keys(Object(i)).filter((function(e){return n.indexOf(e)<0})),o=0,s=a.length;o<s;o+=1){var l=a[o],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&(Hn(t[l])&&Hn(i[l])?i[l].__swiper__?t[l]=i[l]:Wn(t[l],i[l]):!Hn(t[l])&&Hn(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:Wn(t[l],i[l])):t[l]=i[l])}}return t}function $n(e,t,n){e.style.setProperty(t,n)}function qn(e){var t,n=e.swiper,r=e.targetPosition,i=e.side,a=_n(),o=-n.translate,s=null,l=n.params.speed;n.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(n.cssModeFrameID);var u=r>o?"next":"prev",c=function(e,t){return"next"===u&&e>=t||"prev"===u&&e<=t};!function e(){t=(new Date).getTime(),null===s&&(s=t);var u=Math.max(Math.min((t-s)/l,1),0),d=.5-Math.cos(u*Math.PI)/2,p=o+d*(r-o);if(c(p,r)&&(p=r),n.wrapperEl.scrollTo(f({},i,p)),c(p,r))return n.wrapperEl.style.overflow="hidden",n.wrapperEl.style.scrollSnapType="",setTimeout((function(){n.wrapperEl.style.overflow="",n.wrapperEl.scrollTo(f({},i,p))})),void a.cancelAnimationFrame(n.cssModeFrameID);n.cssModeFrameID=a.requestAnimationFrame(e)}()}function Gn(){return Mn||(Mn=function(){var e=_n(),t=kn();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),Mn}function Xn(){return Dn||(Dn=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).userAgent,t=Gn(),n=_n(),r=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,s=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/),u=i.match(/(iPad).*OS\s([\d_]+)/),c=i.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d="Win32"===r,p="MacIntel"===r;return!u&&p&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf("".concat(o,"x").concat(s))>=0&&((u=i.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),p=!1),l&&!d&&(a.os="android",a.android=!0),(u||f||c)&&(a.os="ios",a.ios=!0),a}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})),Dn}function Yn(){return Fn||(Fn=function(){var e=_n();return{isSafari:function(){var t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),Fn}function Kn(e){var t=e.swiper,n=e.runCallbacks,r=e.direction,i=e.step,a=t.activeIndex,o=t.previousIndex,s=r;if(s||(s=a>o?"next":a<o?"prev":"reset"),t.emit("transition".concat(i)),n&&a!==o){if("reset"===s)return void t.emit("slideResetTransition".concat(i));t.emit("slideChangeTransition".concat(i)),"next"===s?t.emit("slideNextTransition".concat(i)):t.emit("slidePrevTransition".concat(i))}}function Qn(e){var t=this,n=kn(),r=_n(),i=t.touchEventsData,a=t.params,o=t.touches;if(t.enabled&&(!t.animating||!a.preventInteractionOnTransition)){!t.animating&&a.cssMode&&a.loop&&t.loopFix();var s=e;s.originalEvent&&(s=s.originalEvent);var l=Bn(s.target);if(("wrapper"!==a.touchEventsTarget||l.closest(t.wrapperEl).length)&&(i.isTouchEvent="touchstart"===s.type,(i.isTouchEvent||!("which"in s)||3!==s.which)&&!(!i.isTouchEvent&&"button"in s&&s.button>0)&&(!i.isTouched||!i.isMoved))){var u=!!a.noSwipingClass&&""!==a.noSwipingClass,c=e.composedPath?e.composedPath():e.path;u&&s.target&&s.target.shadowRoot&&c&&(l=Bn(c[0]));var f=a.noSwipingSelector?a.noSwipingSelector:".".concat(a.noSwipingClass),d=!(!s.target||!s.target.shadowRoot);if(a.noSwiping&&(d?function(e){return function t(n){if(!n||n===kn()||n===_n())return null;n.assignedSlot&&(n=n.assignedSlot);var r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this)}(f,l[0]):l.closest(f)[0]))t.allowClick=!0;else if(!a.swipeHandler||l.closest(a.swipeHandler)[0]){o.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,o.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var p=o.currentX,h=o.currentY,v=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,m=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(v&&(p<=m||p>=r.innerWidth-m)){if("prevent"!==v)return;e.preventDefault()}if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=h,i.touchStartTime=zn(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==s.type){var y=!0;l.is(i.focusableElements)&&(y=!1,"SELECT"===l[0].nodeName&&(i.isTouched=!1)),n.activeElement&&Bn(n.activeElement).is(i.focusableElements)&&n.activeElement!==l[0]&&n.activeElement.blur();var g=y&&t.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!g||l[0].isContentEditable||s.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}}}}function Jn(e){var t=kn(),n=this,r=n.touchEventsData,i=n.params,a=n.touches,o=n.rtlTranslate;if(n.enabled){var s=e;if(s.originalEvent&&(s=s.originalEvent),r.isTouched){if(!r.isTouchEvent||"touchmove"===s.type){var l="touchmove"===s.type&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),u="touchmove"===s.type?l.pageX:s.pageX,c="touchmove"===s.type?l.pageY:s.pageY;if(s.preventedByNestedSwiper)return a.startX=u,void(a.startY=c);if(!n.allowTouchMove)return Bn(s.target).is(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(a,{startX:u,startY:c,currentX:u,currentY:c}),r.touchStartTime=zn()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(c<a.startY&&n.translate<=n.maxTranslate()||c>a.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<a.startX&&n.translate<=n.maxTranslate()||u>a.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&s.target===t.activeElement&&Bn(s.target).is(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){a.currentX=u,a.currentY=c;var f,d=a.currentX-a.startX,p=a.currentY-a.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))<n.params.threshold))if(void 0===r.isScrolling&&(n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:d*d+p*p>=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?f>i.touchAngle:90-f>i.touchAngle)),r.isScrolling&&n.emit("touchMoveOpposite",s),void 0===r.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,!i.cssMode&&s.cancelable&&s.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&s.stopPropagation(),r.isMoved||(i.loop&&!i.cssMode&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",s)),n.emit("sliderMove",s),r.isMoved=!0;var h=n.isHorizontal()?d:p;a.diff=h,h*=i.touchRatio,o&&(h=-h),n.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate;var v=!0,m=i.resistanceRatio;if(i.touchReleaseOnEdges&&(m=0),h>0&&r.currentTranslate>n.minTranslate()?(v=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+h,m))):h<0&&r.currentTranslate<n.maxTranslate()&&(v=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-r.startTranslate-h,m))),v&&(s.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(h)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",s)}}function Zn(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,a=t.rtlTranslate,o=t.slidesGrid;if(t.enabled){var s=e;if(s.originalEvent&&(s=s.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var l,u=zn(),c=u-n.touchStartTime;if(t.allowClick){var f=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(f&&f[0]||s.target),t.emit("tap click",s),c<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=zn(),Un((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,l=r.followFinger?a?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(t.params.freeMode&&r.freeMode.enabled)t.freeMode.onTouchEnd({currentPos:l});else{for(var d=0,p=t.slidesSizesGrid[0],h=0;h<o.length;h+=h<r.slidesPerGroupSkip?1:r.slidesPerGroup){var v=h<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==o[h+v]?l>=o[h]&&l<o[h+v]&&(d=h,p=o[h+v]-o[h]):l>=o[h]&&(d=h,p=o[o.length-1]-o[o.length-2])}var m=null,y=null;r.rewind&&(t.isBeginning?y=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));var g=(l-o[d])/p,b=d<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(c>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(g>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?m:d+b):t.slideTo(d)),"prev"===t.swipeDirection&&(g>1-r.longSwipesRatio?t.slideTo(d+b):null!==y&&g<0&&Math.abs(g)>r.longSwipesRatio?t.slideTo(y):t.slideTo(d))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==m?m:d+b),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:d)):s.target===t.navigation.nextEl?t.slideTo(d+b):t.slideTo(d)}}}}function er(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,i=e.allowSlidePrev,a=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function tr(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function nr(){var e=this,t=e.wrapperEl,n=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var r=e.maxTranslate()-e.minTranslate();(0===r?0:(e.translate-e.minTranslate())/r)!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}var rr=!1;function ir(){}var ar=function(e,t){var n=kn(),r=e.params,i=e.touchEvents,a=e.el,o=e.wrapperEl,s=e.device,l=e.support,u=!!r.nested,c="on"===t?"addEventListener":"removeEventListener",f=t;if(l.touch){var d=!("touchstart"!==i.start||!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};a[c](i.start,e.onTouchStart,d),a[c](i.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:u}:u),a[c](i.end,e.onTouchEnd,d),i.cancel&&a[c](i.cancel,e.onTouchEnd,d)}else a[c](i.start,e.onTouchStart,!1),n[c](i.move,e.onTouchMove,u),n[c](i.end,e.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&a[c]("click",e.onClick,!0),r.cssMode&&o[c]("scroll",e.onScroll),r.updateOnWindowResize?e[f](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",er,!0):e[f]("observerUpdate",er,!0)},or=function(e,t){return e.grid&&t.grid&&t.grid.rows>1},sr={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function lr(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(r)>=0&&!0===e[r]&&(e[r]={auto:!0}),r in e&&"enabled"in i?(!0===e[r]&&(e[r]={enabled:!0}),"object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Wn(t,n)):Wn(t,n)):Wn(t,n)}}var ur={eventsEmitter:{on:function(e,t,n){var r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;var i=n?"unshift":"push";return e.split(" ").forEach((function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},once:function(e,t,n){var r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];t.apply(r,a)}return i.__emitterProxy=t,r.on(e,i,n)},onAny:function(e,t){var n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;var r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny:function(e){var t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;var n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off:function(e,t){var n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit:function(){var e,t,n,r=this;if(!r.eventsListeners||r.destroyed)return r;if(!r.eventsListeners)return r;for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return"string"==typeof a[0]||Array.isArray(a[0])?(e=a[0],t=a.slice(1,a.length),n=r):(e=a[0].events,t=a[0].data,n=a[0].context||r),t.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach((function(e){r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach((function(r){r.apply(n,[e].concat(N(t)))})),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach((function(e){e.apply(n,t)}))})),r}},update:{updateSize:function(){var e,t,n=this,r=n.$el;e=void 0!==n.params.width&&null!==n.params.width?n.params.width:r[0].clientWidth,t=void 0!==n.params.height&&null!==n.params.height?n.params.height:r[0].clientHeight,0===e&&n.isHorizontal()||0===t&&n.isVertical()||(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),t=t-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(n,{width:e,height:t,size:n.isHorizontal()?e:t}))},updateSlides:function(){var e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}var r=e.params,i=e.$wrapperEl,a=e.size,o=e.rtlTranslate,s=e.wrongRTL,l=e.virtual&&r.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=i.children(".".concat(e.params.slideClass)),d=l?e.virtual.slides.length:c.length,p=[],h=[],v=[],m=r.slidesOffsetBefore;"function"==typeof m&&(m=r.slidesOffsetBefore.call(e));var y=r.slidesOffsetAfter;"function"==typeof y&&(y=r.slidesOffsetAfter.call(e));var g=e.snapGrid.length,b=e.slidesGrid.length,w=r.spaceBetween,x=-m,E=0,S=0;if(void 0!==a){"string"==typeof w&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*a),e.virtualSize=-w,o?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&($n(e.wrapperEl,"--swiper-centered-offset-before",""),$n(e.wrapperEl,"--swiper-centered-offset-after",""));var k,C=r.grid&&r.grid.rows>1&&e.grid;C&&e.grid.initSlides(d);for(var _="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter((function(e){return void 0!==r.breakpoints[e].slidesPerView})).length>0,T=0;T<d;T+=1){k=0;var P=c.eq(T);if(C&&e.grid.updateSlide(T,P,d,t),"none"!==P.css("display")){if("auto"===r.slidesPerView){_&&(c[T].style[t("width")]="");var O=getComputedStyle(P[0]),j=P[0].style.transform,A=P[0].style.webkitTransform;if(j&&(P[0].style.transform="none"),A&&(P[0].style.webkitTransform="none"),r.roundLengths)k=e.isHorizontal()?P.outerWidth(!0):P.outerHeight(!0);else{var I=n(O,"width"),N=n(O,"padding-left"),R=n(O,"padding-right"),L=n(O,"margin-left"),M=n(O,"margin-right"),D=O.getPropertyValue("box-sizing");if(D&&"border-box"===D)k=I+L+M;else{var F=P[0],B=F.clientWidth;k=I+N+R+L+M+(F.offsetWidth-B)}}j&&(P[0].style.transform=j),A&&(P[0].style.webkitTransform=A),r.roundLengths&&(k=Math.floor(k))}else k=(a-(r.slidesPerView-1)*w)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),c[T]&&(c[T].style[t("width")]="".concat(k,"px"));c[T]&&(c[T].swiperSlideSize=k),v.push(k),r.centeredSlides?(x=x+k/2+E/2+w,0===E&&0!==T&&(x=x-a/2-w),0===T&&(x=x-a/2-w),Math.abs(x)<.001&&(x=0),r.roundLengths&&(x=Math.floor(x)),S%r.slidesPerGroup==0&&p.push(x),h.push(x)):(r.roundLengths&&(x=Math.floor(x)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&p.push(x),h.push(x),x=x+k+w),e.virtualSize+=k+w,E=k,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+y,o&&s&&("slide"===r.effect||"coverflow"===r.effect)&&i.css({width:"".concat(e.virtualSize+r.spaceBetween,"px")}),r.setWrapperSize&&i.css(f({},t("width"),"".concat(e.virtualSize+r.spaceBetween,"px"))),C&&e.grid.updateWrapperSize(k,p,t),!r.centeredSlides){for(var U=[],z=0;z<p.length;z+=1){var V=p[z];r.roundLengths&&(V=Math.floor(V)),p[z]<=e.virtualSize-a&&U.push(V)}p=U,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(0===p.length&&(p=[0]),0!==r.spaceBetween){var H=e.isHorizontal()&&o?"marginLeft":t("marginRight");c.filter((function(e,t){return!r.cssMode||t!==c.length-1})).css(f({},H,"".concat(w,"px")))}if(r.centeredSlides&&r.centeredSlidesBounds){var W=0;v.forEach((function(e){W+=e+(r.spaceBetween?r.spaceBetween:0)}));var $=(W-=r.spaceBetween)-a;p=p.map((function(e){return e<0?-m:e>$?$+y:e}))}if(r.centerInsufficientSlides){var q=0;if(v.forEach((function(e){q+=e+(r.spaceBetween?r.spaceBetween:0)})),(q-=r.spaceBetween)<a){var G=(a-q)/2;p.forEach((function(e,t){p[t]=e-G})),h.forEach((function(e,t){h[t]=e+G}))}}if(Object.assign(e,{slides:c,snapGrid:p,slidesGrid:h,slidesSizesGrid:v}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){$n(e.wrapperEl,"--swiper-centered-offset-before","".concat(-p[0],"px")),$n(e.wrapperEl,"--swiper-centered-offset-after","".concat(e.size/2-v[v.length-1]/2,"px"));var X=-e.snapGrid[0],Y=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((function(e){return e+X})),e.slidesGrid=e.slidesGrid.map((function(e){return e+Y}))}if(d!==u&&e.emit("slidesLengthChange"),p.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!(l||r.cssMode||"slide"!==r.effect&&"fade"!==r.effect)){var K="".concat(r.containerModifierClass,"backface-hidden"),Q=e.$el.hasClass(K);d<=r.maxBackfaceHiddenSlides?Q||e.$el.addClass(K):Q&&e.$el.removeClass(K)}}},updateAutoHeight:function(e){var t,n=this,r=[],i=n.virtual&&n.params.virtual.enabled,a=0;"number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed);var o=function(e){return i?n.slides.filter((function(t){return parseInt(t.getAttribute("data-swiper-slide-index"),10)===e}))[0]:n.slides.eq(e)[0]};if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)if(n.params.centeredSlides)(n.visibleSlides||Bn([])).each((function(e){r.push(e)}));else for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){var s=n.activeIndex+t;if(s>n.slides.length&&!i)break;r.push(o(s))}else r.push(o(n.activeIndex));for(t=0;t<r.length;t+=1)if(void 0!==r[t]){var l=r[t].offsetHeight;a=l>a?l:a}(a||0===a)&&n.$wrapperEl.css("height","".concat(a,"px"))},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,r=t.slides,i=t.rtlTranslate,a=t.snapGrid;if(0!==r.length){void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();var o=-e;i&&(o=e),r.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var s=0;s<r.length;s+=1){var l=r[s],u=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);var c=(o+(n.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+n.spaceBetween),f=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+n.spaceBetween),d=-(o-u),p=d+t.slidesSizesGrid[s];(d>=0&&d<t.size-1||p>1&&p<=t.size||d<=0&&p>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(s),r.eq(s).addClass(n.slideVisibleClass)),l.progress=i?-c:c,l.originalProgress=i?-f:f}t.visibleSlides=Bn(t.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){var n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}var r=t.params,i=t.maxTranslate()-t.minTranslate(),a=t.progress,o=t.isBeginning,s=t.isEnd,l=o,u=s;0===i?(a=0,o=!0,s=!0):(o=(a=(e-t.minTranslate())/i)<=0,s=a>=1),Object.assign(t,{progress:a,isBeginning:o,isEnd:s}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!s)&&t.emit("fromEdge"),t.emit("progress",a)},updateSlidesClasses:function(){var e,t=this,n=t.slides,r=t.params,i=t.$wrapperEl,a=t.activeIndex,o=t.realIndex,s=t.virtual&&r.virtual.enabled;n.removeClass("".concat(r.slideActiveClass," ").concat(r.slideNextClass," ").concat(r.slidePrevClass," ").concat(r.slideDuplicateActiveClass," ").concat(r.slideDuplicateNextClass," ").concat(r.slideDuplicatePrevClass)),(e=s?t.$wrapperEl.find(".".concat(r.slideClass,'[data-swiper-slide-index="').concat(a,'"]')):n.eq(a)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?i.children(".".concat(r.slideClass,":not(.").concat(r.slideDuplicateClass,')[data-swiper-slide-index="').concat(o,'"]')).addClass(r.slideDuplicateActiveClass):i.children(".".concat(r.slideClass,".").concat(r.slideDuplicateClass,'[data-swiper-slide-index="').concat(o,'"]')).addClass(r.slideDuplicateActiveClass));var l=e.nextAll(".".concat(r.slideClass)).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=n.eq(0)).addClass(r.slideNextClass);var u=e.prevAll(".".concat(r.slideClass)).eq(0).addClass(r.slidePrevClass);r.loop&&0===u.length&&(u=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?i.children(".".concat(r.slideClass,":not(.").concat(r.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(r.slideDuplicateNextClass):i.children(".".concat(r.slideClass,".").concat(r.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(r.slideDuplicateNextClass),u.hasClass(r.slideDuplicateClass)?i.children(".".concat(r.slideClass,":not(.").concat(r.slideDuplicateClass,')[data-swiper-slide-index="').concat(u.attr("data-swiper-slide-index"),'"]')).addClass(r.slideDuplicatePrevClass):i.children(".".concat(r.slideClass,".").concat(r.slideDuplicateClass,'[data-swiper-slide-index="').concat(u.attr("data-swiper-slide-index"),'"]')).addClass(r.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,a=n.snapGrid,o=n.params,s=n.activeIndex,l=n.realIndex,u=n.snapIndex,c=e;if(void 0===c){for(var f=0;f<i.length;f+=1)void 0!==i[f+1]?r>=i[f]&&r<i[f+1]-(i[f+1]-i[f])/2?c=f:r>=i[f]&&r<i[f+1]&&(c=f+1):r>=i[f]&&(c=f);o.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(a.indexOf(r)>=0)t=a.indexOf(r);else{var d=Math.min(o.slidesPerGroupSkip,c);t=d+Math.floor((c-d)/o.slidesPerGroup)}if(t>=a.length&&(t=a.length-1),c!==s){var p=parseInt(n.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(n,{snapIndex:t,realIndex:p,previousIndex:s,activeIndex:c}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==p&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else t!==u&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e){var t,n=this,r=n.params,i=Bn(e).closest(".".concat(r.slideClass))[0],a=!1;if(i)for(var o=0;o<n.slides.length;o+=1)if(n.slides[o]===i){a=!0,t=o;break}if(!i||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(Bn(i).attr("data-swiper-slide-index"),10):n.clickedIndex=t,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},translate:{getTranslate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,n=t.params,r=t.rtlTranslate,i=t.translate,a=t.$wrapperEl;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;var o=Vn(a[0],e);return r&&(o=-o),o||0},setTranslate:function(e,t){var n=this,r=n.rtlTranslate,i=n.params,a=n.$wrapperEl,o=n.wrapperEl,s=n.progress,l=0,u=0;n.isHorizontal()?l=r?-e:e:u=e,i.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-u:i.virtualTranslate||a.transform("translate3d(".concat(l,"px, ").concat(u,"px, ").concat(0,"px)")),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:u;var c=n.maxTranslate()-n.minTranslate();(0===c?0:(e-n.minTranslate())/c)!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4?arguments[4]:void 0,a=this,o=a.params,s=a.wrapperEl;if(a.animating&&o.preventInteractionOnTransition)return!1;var l,u=a.minTranslate(),c=a.maxTranslate();if(l=r&&e>u?u:r&&e<c?c:e,a.updateProgress(l),o.cssMode){var d=a.isHorizontal();if(0===t)s[d?"scrollLeft":"scrollTop"]=-l;else{var p;if(!a.support.smoothScroll)return qn({swiper:a,targetPosition:-l,side:d?"left":"top"}),!0;s.scrollTo((f(p={},d?"left":"top",-l),f(p,"behavior","smooth"),p))}return!0}return 0===t?(a.setTransition(0),a.setTranslate(l),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(l),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,n&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){var n=this;n.params.cssMode||n.$wrapperEl.transition(e),n.emit("setTransition",e,t)},transitionStart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,r=n.params;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Kn({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,r=n.params;n.animating=!1,r.cssMode||(n.setTransition(0),Kn({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if("number"!=typeof e&&"string"!=typeof e)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. [".concat(typeof e,"] given."));if("string"==typeof e){var a=parseInt(e,10);if(!isFinite(a))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. [".concat(e,"] given."));e=a}var o=this,s=e;s<0&&(s=0);var l=o.params,u=o.snapGrid,c=o.slidesGrid,d=o.previousIndex,p=o.activeIndex,h=o.rtlTranslate,v=o.wrapperEl,m=o.enabled;if(o.animating&&l.preventInteractionOnTransition||!m&&!r&&!i)return!1;var y=Math.min(o.params.slidesPerGroupSkip,s),g=y+Math.floor((s-y)/o.params.slidesPerGroup);g>=u.length&&(g=u.length-1);var b,w=-u[g];if(l.normalizeSlideIndex)for(var x=0;x<c.length;x+=1){var E=-Math.floor(100*w),S=Math.floor(100*c[x]),k=Math.floor(100*c[x+1]);void 0!==c[x+1]?E>=S&&E<k-(k-S)/2?s=x:E>=S&&E<k&&(s=x+1):E>=S&&(s=x)}if(o.initialized&&s!==p){if(!o.allowSlideNext&&w<o.translate&&w<o.minTranslate())return!1;if(!o.allowSlidePrev&&w>o.translate&&w>o.maxTranslate()&&(p||0)!==s)return!1}if(s!==(d||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(w),b=s>p?"next":s<p?"prev":"reset",h&&-w===o.translate||!h&&w===o.translate)return o.updateActiveIndex(s),l.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==l.effect&&o.setTranslate(w),"reset"!==b&&(o.transitionStart(n,b),o.transitionEnd(n,b)),!1;if(l.cssMode){var C=o.isHorizontal(),_=h?w:-w;if(0===t){var T=o.virtual&&o.params.virtual.enabled;T&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),v[C?"scrollLeft":"scrollTop"]=_,T&&requestAnimationFrame((function(){o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1}))}else{var P;if(!o.support.smoothScroll)return qn({swiper:o,targetPosition:_,side:C?"left":"top"}),!0;v.scrollTo((f(P={},C?"left":"top",_),f(P,"behavior","smooth"),P))}return!0}return o.setTransition(t),o.setTranslate(w),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,b),0===t?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;if("string"==typeof e){var i=parseInt(e,10);if(!isFinite(i))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. [".concat(e,"] given."));e=i}var a=this,o=e;return a.params.loop&&(o+=a.loopedSlides),a.slideTo(o,t,n,r)},slideNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,i=r.animating,a=r.enabled,o=r.params;if(!a)return r;var s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));var l=r.activeIndex<o.slidesPerGroupSkip?1:s;if(o.loop){if(i&&o.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,i=r.params,a=r.animating,o=r.snapGrid,s=r.slidesGrid,l=r.rtlTranslate;if(!r.enabled)return r;if(i.loop){if(a&&i.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var c,f=u(l?r.translate:-r.translate),d=o.map((function(e){return u(e)})),p=o[d.indexOf(f)-1];void 0===p&&i.cssMode&&(o.forEach((function(e,t){f>=e&&(c=t)})),void 0!==c&&(p=o[c>0?c-1:c]));var h=0;if(void 0!==p&&((h=s.indexOf(p))<0&&(h=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(h=h-r.slidesPerViewDynamic("previous",!0)+1,h=Math.max(h,0))),i.rewind&&r.isBeginning){var v=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(v,e,t,n)}return r.slideTo(h,e,t,n)},slideReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=this,a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){var u=i.snapGrid[s];l-u>(i.snapGrid[s+1]-u)*r&&(a+=i.params.slidesPerGroup)}else{var c=i.snapGrid[s-1];l-c<=(i.snapGrid[s]-c)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,a=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(Bn(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?a<t.loopedSlides-i/2||a>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),a=r.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),Un((function(){t.slideTo(a)}))):t.slideTo(a):a>t.slides.length-i?(t.loopFix(),a=r.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),Un((function(){t.slideTo(a)}))):t.slideTo(a)}else t.slideTo(a)}},loop:{loopCreate:function(){var e=this,t=kn(),n=e.params,r=e.$wrapperEl,i=r.children().length>0?Bn(r.children()[0].parentNode):r;i.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass)).remove();var a=i.children(".".concat(n.slideClass));if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-a.length%n.slidesPerGroup;if(o!==n.slidesPerGroup){for(var s=0;s<o;s+=1){var l=Bn(t.createElement("div")).addClass("".concat(n.slideClass," ").concat(n.slideBlankClass));i.append(l)}a=i.children(".".concat(n.slideClass))}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=a.length),e.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),e.loopedSlides+=n.loopAdditionalSlides,e.loopedSlides>a.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=a.length);var u=[],c=[];a.each((function(e,t){Bn(e).attr("data-swiper-slide-index",t)}));for(var f=0;f<e.loopedSlides;f+=1){var d=f-Math.floor(f/a.length)*a.length;c.push(a.eq(d)[0]),u.unshift(a.eq(a.length-d-1)[0])}for(var p=0;p<c.length;p+=1)i.append(Bn(c[p].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var h=u.length-1;h>=0;h-=1)i.prepend(Bn(u[h].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var t,n=e.activeIndex,r=e.slides,i=e.loopedSlides,a=e.allowSlidePrev,o=e.allowSlideNext,s=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var u=-s[n]-e.getTranslate();n<i?(t=r.length-3*i+n,t+=i,e.slideTo(t,0,!1,!0)&&0!==u&&e.setTranslate((l?-e.translate:e.translate)-u)):n>=r.length-i&&(t=-r.length+n+i,t+=i,e.slideTo(t,0,!1,!0)&&0!==u&&e.setTranslate((l?-e.translate:e.translate)-u)),e.allowSlidePrev=a,e.allowSlideNext=o,e.emit("loopFix")},loopDestroy:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,",.").concat(n.slideClass,".").concat(n.slideBlankClass)).remove(),r.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){var t=this;if(!(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)){var n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){var e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){var e=this,t=kn(),n=e.params,r=e.support;e.onTouchStart=Qn.bind(e),e.onTouchMove=Jn.bind(e),e.onTouchEnd=Zn.bind(e),n.cssMode&&(e.onScroll=nr.bind(e)),e.onClick=tr.bind(e),r.touch&&!rr&&(t.addEventListener("touchstart",ir),rr=!0),ar(e,"on")},detachEvents:function(){ar(this,"off")}},breakpoints:{setBreakpoint:function(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides,i=void 0===r?0:r,a=e.params,o=e.$el,s=a.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var l=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(l&&e.currentBreakpoint!==l){var u=(l in s?s[l]:void 0)||e.originalParams,c=or(e,a),f=or(e,u),d=a.enabled;c&&!f?(o.removeClass("".concat(a.containerModifierClass,"grid ").concat(a.containerModifierClass,"grid-column")),e.emitContainerClasses()):!c&&f&&(o.addClass("".concat(a.containerModifierClass,"grid")),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===a.grid.fill)&&o.addClass("".concat(a.containerModifierClass,"grid-column")),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((function(t){var n=a[t]&&a[t].enabled,r=u[t]&&u[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()}));var p=u.direction&&u.direction!==a.direction,h=a.loop&&(u.slidesPerView!==a.slidesPerView||p);p&&n&&e.changeDirection(),Wn(e.params,u);var v=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!v?e.disable():!d&&v&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",u),h&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}}},getBreakpoint:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"window",n=arguments.length>2?arguments[2]:void 0;if(e&&("container"!==t||n)){var r=!1,i=_n(),a="window"===t?i.innerHeight:n.clientHeight,o=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}}));o.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var s=0;s<o.length;s+=1){var l=o[s],u=l.point,c=l.value;"window"===t?i.matchMedia("(min-width: ".concat(c,"px)")).matches&&(r=u):c<=n.clientWidth&&(r=u)}return r||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.isLocked,n=e.params,r=n.slidesOffsetBefore;if(r){var i=e.slides.length-1,a=e.slidesGrid[i]+e.slidesSizesGrid[i]+2*r;e.isLocked=e.size>a}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var e=this,t=e.classNames,n=e.params,r=e.rtl,i=e.$el,a=e.device,o=e.support,s=function(e,t){var n=[];return e.forEach((function(e){"object"==typeof e?Object.keys(e).forEach((function(r){e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"pointer-events":!o.touch},{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push.apply(t,N(s)),i.addClass(N(t).join(" ")),e.emitContainerClasses()},removeClasses:function(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" ")),e.emitContainerClasses()}},images:{loadImage:function(e,t,n,r,i,a){var o,s=_n();function l(){a&&a()}Bn(e).parent("picture")[0]||e.complete&&i?l():t?((o=new s.Image).onload=l,o.onerror=l,r&&(o.sizes=r),n&&(o.srcset=n),t&&(o.src=t)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}}},cr={},fr=function(){function e(){var t,n;R(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];if(1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?n=i[0]:(t=i[0],n=i[1]),n||(n={}),n=Wn({},n),t&&!n.el&&(n.el=t),n.el&&Bn(n.el).length>1){var o=[];return Bn(n.el).each((function(t){var r=Wn({},n,{el:t});o.push(new e(r))})),o}var s,l=this;l.__swiper__=!0,l.support=Gn(),l.device=Xn({userAgent:n.userAgent}),l.browser=Yn(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=N(l.__modules__),n.modules&&Array.isArray(n.modules)&&(s=l.modules).push.apply(s,N(n.modules));var u={};l.modules.forEach((function(e){e({swiper:l,extendParams:lr(n,u),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));var c=Wn({},sr,u);return l.params=Wn({},c,cr,n),l.originalParams=Wn({},l.params),l.passedParams=Wn({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach((function(e){l.on(e,l.params.on[e])})),l.params&&l.params.onAny&&l.onAny(l.params.onAny),l.$=Bn,Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:Bn(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return l.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},l.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},l.support.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:zn(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}return M(e,[{key:"enable",value:function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}},{key:"disable",value:function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}},{key:"setProgress",value:function(e,t){var n=this;e=Math.min(Math.max(e,0),1);var r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}},{key:"emitContainerClasses",value:function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}}},{key:"getSlideClasses",value:function(e){var t=this;return t.destroyed?"":e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")}},{key:"emitSlidesClasses",value:function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.each((function(n){var r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}}},{key:"slidesPerViewDynamic",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"current",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this,r=n.params,i=n.slides,a=n.slidesGrid,o=n.slidesSizesGrid,s=n.size,l=n.activeIndex,u=1;if(r.centeredSlides){for(var c,f=i[l].swiperSlideSize,d=l+1;d<i.length;d+=1)i[d]&&!c&&(u+=1,(f+=i[d].swiperSlideSize)>s&&(c=!0));for(var p=l-1;p>=0;p-=1)i[p]&&!c&&(u+=1,(f+=i[p].swiperSlideSize)>s&&(c=!0))}else if("current"===e)for(var h=l+1;h<i.length;h+=1)(t?a[h]+o[h]-a[l]<s:a[h]-a[l]<s)&&(u+=1);else for(var v=l-1;v>=0;v-=1)a[l]-a[v]<s&&(u+=1);return u}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass("".concat(n.params.containerModifierClass).concat(r)).addClass("".concat(n.params.containerModifierClass).concat(e)),n.emitContainerClasses(),n.params.direction=e,n.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}},{key:"changeLanguageDirection",value:function(e){var t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="rtl"):(t.$el.removeClass("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="ltr"),t.update())}},{key:"mount",value:function(e){var t=this;if(t.mounted)return!0;var n=Bn(e||t.params.el);if(!(e=n[0]))return!1;e.swiper=t;var r=function(){return".".concat((t.params.wrapperClass||"").trim().split(" ").join("."))},i=function(){if(e&&e.shadowRoot&&e.shadowRoot.querySelector){var t=Bn(e.shadowRoot.querySelector(r()));return t.children=function(e){return n.children(e)},t}return n.children?n.children(r()):Bn(n).children(r())}();if(0===i.length&&t.params.createElements){var a=kn().createElement("div");i=Bn(a),a.className=t.params.wrapperClass,n.append(a),n.children(".".concat(t.params.slideClass)).each((function(e){i.append(e)}))}return Object.assign(t,{$el:n,el:e,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===i.css("display")}),!0}},{key:"init",value:function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params,i=n.$el,a=n.$wrapperEl,o=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}}],[{key:"extendDefaults",value:function(e){Wn(cr,e)}},{key:"extendedDefaults",get:function(){return cr}},{key:"defaults",get:function(){return sr}},{key:"installModule",value:function(t){e.prototype.__modules__||(e.prototype.__modules__=[]);var n=e.prototype.__modules__;"function"==typeof t&&n.indexOf(t)<0&&n.push(t)}},{key:"use",value:function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)}}]),e}();Object.keys(ur).forEach((function(e){Object.keys(ur[e]).forEach((function(t){fr.prototype[t]=ur[e][t]}))})),fr.use([function(e){var t=e.swiper,n=e.on,r=e.emit,i=_n(),a=null,o=null,s=function(){t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},l=function(){t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",(function(){t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(a=new ResizeObserver((function(e){o=i.requestAnimationFrame((function(){var n=t.width,r=t.height,i=n,a=r;e.forEach((function(e){var n=e.contentBoxSize,r=e.contentRect,o=e.target;o&&o!==t.el||(i=r?r.width:(n[0]||n).inlineSize,a=r?r.height:(n[0]||n).blockSize)})),i===n&&a===r||s()}))}))).observe(t.el):(i.addEventListener("resize",s),i.addEventListener("orientationchange",l))})),n("destroy",(function(){o&&i.cancelAnimationFrame(o),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null),i.removeEventListener("resize",s),i.removeEventListener("orientationchange",l)}))},function(e){var t=e.swiper,n=e.extendParams,r=e.on,i=e.emit,a=[],o=_n(),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new(o.MutationObserver||o.WebkitMutationObserver)((function(e){if(1!==e.length){var t=function(){i("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(t):o.setTimeout(t,0)}else i("observerUpdate",e[0])}));n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),a.push(n)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",(function(){if(t.params.observer){if(t.params.observeParents)for(var e=t.$el.parents(),n=0;n<e.length;n+=1)s(e[n]);s(t.$el[0],{childList:t.params.observeSlideChildren}),s(t.$wrapperEl[0],{attributes:!1})}})),r("destroy",(function(){a.forEach((function(e){e.disconnect()})),a.splice(0,a.length)}))}]);var dr=fr;function pr(e){var t,n=e.swiper,r=e.extendParams,i=e.on,a=e.emit,o=_n();r({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),n.mousewheel={enabled:!1};var s,l=zn(),u=[];function c(){n.enabled&&(n.mouseEntered=!0)}function f(){n.enabled&&(n.mouseEntered=!1)}function d(e){return!(n.params.mousewheel.thresholdDelta&&e.delta<n.params.mousewheel.thresholdDelta||n.params.mousewheel.thresholdTime&&zn()-l<n.params.mousewheel.thresholdTime||!(e.delta>=6&&zn()-l<60)&&(e.direction<0?n.isEnd&&!n.params.loop||n.animating||(n.slideNext(),a("scroll",e.raw)):n.isBeginning&&!n.params.loop||n.animating||(n.slidePrev(),a("scroll",e.raw)),l=(new o.Date).getTime(),1))}function p(e){var r=e;if(n.enabled){var i=n.params.mousewheel;n.params.cssMode&&r.preventDefault();var o=n.$el;if("container"!==n.params.mousewheel.eventsTarget&&(o=Bn(n.params.mousewheel.eventsTarget)),!n.mouseEntered&&!o[0].contains(r.target)&&!i.releaseOnEdges)return!0;r.originalEvent&&(r=r.originalEvent);var l=0,c=n.rtlTranslate?-1:1,f=function(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(1===e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}(r);if(i.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;l=-f.pixelX*c}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;l=-f.pixelY}else l=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*c:-f.pixelY;if(0===l)return!0;i.invert&&(l=-l);var p=n.getTranslate()+l*i.sensitivity;if(p>=n.minTranslate()&&(p=n.minTranslate()),p<=n.maxTranslate()&&(p=n.maxTranslate()),(!!n.params.loop||!(p===n.minTranslate()||p===n.maxTranslate()))&&n.params.nested&&r.stopPropagation(),n.params.freeMode&&n.params.freeMode.enabled){var h={time:zn(),delta:Math.abs(l),direction:Math.sign(l)},v=s&&h.time<s.time+500&&h.delta<=s.delta&&h.direction===s.direction;if(!v){s=void 0,n.params.loop&&n.loopFix();var m=n.getTranslate()+l*i.sensitivity,y=n.isBeginning,g=n.isEnd;if(m>=n.minTranslate()&&(m=n.minTranslate()),m<=n.maxTranslate()&&(m=n.maxTranslate()),n.setTransition(0),n.setTranslate(m),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!y&&n.isBeginning||!g&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeMode.sticky){clearTimeout(t),t=void 0,u.length>=15&&u.shift();var b=u.length?u[u.length-1]:void 0,w=u[0];if(u.push(h),b&&(h.delta>b.delta||h.direction!==b.direction))u.splice(0);else if(u.length>=15&&h.time-w.time<500&&w.delta-h.delta>=1&&h.delta<=6){var x=l>0?.8:.2;s=h,u.splice(0),t=Un((function(){n.slideToClosest(n.params.speed,!0,void 0,x)}),0)}t||(t=Un((function(){s=h,u.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)}),500))}if(v||a("scroll",r),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),m===n.minTranslate()||m===n.maxTranslate())return!0}}else{var E={time:zn(),delta:Math.abs(l),direction:Math.sign(l),raw:e};u.length>=2&&u.shift();var S=u.length?u[u.length-1]:void 0;if(u.push(E),S?(E.direction!==S.direction||E.delta>S.delta||E.time>S.time+150)&&d(E):d(E),function(e){var t=n.params.mousewheel;if(e.direction<0){if(n.isEnd&&!n.params.loop&&t.releaseOnEdges)return!0}else if(n.isBeginning&&!n.params.loop&&t.releaseOnEdges)return!0;return!1}(E))return!0}return r.preventDefault?r.preventDefault():r.returnValue=!1,!1}}function h(e){var t=n.$el;"container"!==n.params.mousewheel.eventsTarget&&(t=Bn(n.params.mousewheel.eventsTarget)),t[e]("mouseenter",c),t[e]("mouseleave",f),t[e]("wheel",p)}function v(){return n.params.cssMode?(n.wrapperEl.removeEventListener("wheel",p),!0):!n.mousewheel.enabled&&(h("on"),n.mousewheel.enabled=!0,!0)}function m(){return n.params.cssMode?(n.wrapperEl.addEventListener(event,p),!0):!!n.mousewheel.enabled&&(h("off"),n.mousewheel.enabled=!1,!0)}i("init",(function(){!n.params.mousewheel.enabled&&n.params.cssMode&&m(),n.params.mousewheel.enabled&&v()})),i("destroy",(function(){n.params.cssMode&&v(),n.mousewheel.enabled&&m()})),Object.assign(n.mousewheel,{enable:v,disable:m})}function hr(e){var t=e.swiper,n=e.extendParams,r=e.on,i=e.emit;function a(e){var n;return e&&(n=Bn(e),t.params.uniqueNavElements&&"string"==typeof e&&n.length>1&&1===t.$el.find(e).length&&(n=t.$el.find(e))),n}function o(e,n){var r=t.params.navigation;e&&e.length>0&&(e[n?"addClass":"removeClass"](r.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=n),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](r.lockClass))}function s(){if(!t.params.loop){var e=t.navigation,n=e.$nextEl;o(e.$prevEl,t.isBeginning&&!t.params.rewind),o(n,t.isEnd&&!t.params.rewind)}}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function u(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){var e=t.params.navigation;if(t.params.navigation=function(e,t,n,r){var i=kn();return e.params.createElements&&Object.keys(r).forEach((function(a){if(!n[a]&&!0===n.auto){var o=e.$el.children(".".concat(r[a]))[0];o||((o=i.createElement("div")).className=r[a],e.$el.append(o)),n[a]=o,t[a]=o}})),n}(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),e.nextEl||e.prevEl){var n=a(e.nextEl),r=a(e.prevEl);n&&n.length>0&&n.on("click",u),r&&r.length>0&&r.on("click",l),Object.assign(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:r,prevEl:r&&r[0]}),t.enabled||(n&&n.addClass(e.lockClass),r&&r.addClass(e.lockClass))}}function f(){var e=t.navigation,n=e.$nextEl,r=e.$prevEl;n&&n.length&&(n.off("click",u),n.removeClass(t.params.navigation.disabledClass)),r&&r.length&&(r.off("click",l),r.removeClass(t.params.navigation.disabledClass))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},r("init",(function(){!1===t.params.navigation.enabled?d():(c(),s())})),r("toEdge fromEdge lock unlock",(function(){s()})),r("destroy",(function(){f()})),r("enable disable",(function(){var e=t.navigation,n=e.$nextEl,r=e.$prevEl;n&&n[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),r&&r[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),r("click",(function(e,n){var r=t.navigation,a=r.$nextEl,o=r.$prevEl,s=n.target;if(t.params.navigation.hideOnClick&&!Bn(s).is(o)&&!Bn(s).is(a)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;var l;a?l=a.hasClass(t.params.navigation.hiddenClass):o&&(l=o.hasClass(t.params.navigation.hiddenClass)),i(!0===l?"navigationShow":"navigationHide"),a&&a.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}}));var d=function(){t.$el.addClass(t.params.navigation.navigationDisabledClass),f()};Object.assign(t.navigation,{enable:function(){t.$el.removeClass(t.params.navigation.navigationDisabledClass),c(),s()},disable:d,update:s,init:c,destroy:f})}function vr(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function mr(e,t){var n=["__proto__","constructor","prototype"];Object.keys(t).filter((function(e){return n.indexOf(e)<0})).forEach((function(n){void 0===e[n]?e[n]=t[n]:vr(t[n])&&vr(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:mr(e[n],t[n]):e[n]=t[n]}))}function yr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.pagination&&void 0===e.pagination.el}function br(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.scrollbar&&void 0===e.scrollbar.el}function wr(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(" ").map((function(e){return e.trim()})).filter((function(e){return!!e})),t=[];return e.forEach((function(e){t.indexOf(e)<0&&t.push(e)})),t.join(" ")}var xr=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"],Er=function(e,t){var n=t.slidesPerView;if(t.breakpoints){var r=dr.prototype.getBreakpoint(t.breakpoints),i=r in t.breakpoints?t.breakpoints[r]:void 0;i&&i.slidesPerView&&(n=i.slidesPerView)}var a=Math.ceil(parseFloat(t.loopedSlides||n,10));return(a+=t.loopAdditionalSlides)>e.length&&t.loopedSlidesLimit&&(a=e.length),a};function Sr(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function kr(t){var n=[];return e.Children.toArray(t).forEach((function(e){Sr(e)?n.push(e):e.props&&e.props.children&&kr(e.props.children).forEach((function(e){return n.push(e)}))})),n}function Cr(t,n){return"undefined"==typeof window?(0,e.useEffect)(t,n):(0,e.useLayoutEffect)(t,n)}var _r=(0,e.createContext)(null),Tr=(0,e.createContext)(null),Pr=["className","tag","wrapperTag","children","onSwiper"];function Or(){return(Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var jr=(0,e.forwardRef)((function(t,n){var r=void 0===t?{}:t,i=r.className,a=r.tag,o=void 0===a?"div":a,s=r.wrapperTag,l=void 0===s?"div":s,c=r.children,d=r.onSwiper,p=wn(r,Pr),h=!1,v=u((0,e.useState)("swiper"),2),m=v[0],y=v[1],g=u((0,e.useState)(null),2),b=g[0],w=g[1],x=u((0,e.useState)(!1),2),E=x[0],S=x[1],k=(0,e.useRef)(!1),C=(0,e.useRef)(null),_=(0,e.useRef)(null),T=(0,e.useRef)(null),P=(0,e.useRef)(null),O=(0,e.useRef)(null),j=(0,e.useRef)(null),A=(0,e.useRef)(null),I=(0,e.useRef)(null),R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={on:{}},r={},i={};mr(n,dr.defaults),mr(n,dr.extendedDefaults),n._emitClasses=!0,n.init=!1;var a={},o=xr.map((function(e){return e.replace(/_/,"")})),s=Object.assign({},e);return Object.keys(s).forEach((function(s){void 0!==e[s]&&(o.indexOf(s)>=0?vr(e[s])?(n[s]={},i[s]={},mr(n[s],e[s]),mr(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):0===s.search(/on[A-Z]/)&&"function"==typeof e[s]?t?r["".concat(s[2].toLowerCase()).concat(s.substr(3))]=e[s]:n.on["".concat(s[2].toLowerCase()).concat(s.substr(3))]=e[s]:a[s]=e[s])})),["navigation","pagination","scrollbar"].forEach((function(e){!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]})),{params:n,passedParams:i,rest:a,events:r}}(p),L=R.params,M=R.passedParams,D=R.rest,F=R.events,B=function(t){var n=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(t).forEach((function(e){if(Sr(e))n.push(e);else if(e.props&&e.props.slot&&r[e.props.slot])r[e.props.slot].push(e);else if(e.props&&e.props.children){var t=kr(e.props.children);t.length>0?t.forEach((function(e){return n.push(e)})):r["container-end"].push(e)}else r["container-end"].push(e)})),{slides:n,slots:r}}(c),U=B.slides,z=B.slots,V=function(){S(!E)};Object.assign(L.on,{_containerClasses:function(e,t){y(t)}});var H=function(){if(Object.assign(L.on,F),h=!0,_.current=new dr(L),_.current.loopCreate=function(){},_.current.loopDestroy=function(){},L.loop&&(_.current.loopedSlides=Er(U,L)),_.current.virtual&&_.current.params.virtual.enabled){_.current.virtual.slides=U;var e={cache:!1,slides:U,renderExternal:w,renderExternalUpdate:!1};mr(_.current.params.virtual,e),mr(_.current.originalParams.virtual,e)}};return C.current||H(),_.current&&_.current.on("_beforeBreakpoint",V),(0,e.useEffect)((function(){return function(){_.current&&_.current.off("_beforeBreakpoint",V)}})),(0,e.useEffect)((function(){!k.current&&_.current&&(_.current.emitSlidesClasses(),k.current=!0)})),Cr((function(){if(n&&(n.current=C.current),C.current)return _.current.destroyed&&H(),function(e,t){var n=e.el,r=e.nextEl,i=e.prevEl,a=e.paginationEl,o=e.scrollbarEl,s=e.swiper;yr(t)&&r&&i&&(s.params.navigation.nextEl=r,s.originalParams.navigation.nextEl=r,s.params.navigation.prevEl=i,s.originalParams.navigation.prevEl=i),gr(t)&&a&&(s.params.pagination.el=a,s.originalParams.pagination.el=a),br(t)&&o&&(s.params.scrollbar.el=o,s.originalParams.scrollbar.el=o),s.init(n)}({el:C.current,nextEl:O.current,prevEl:j.current,paginationEl:A.current,scrollbarEl:I.current,swiper:_.current},L),d&&d(_.current),function(){_.current&&!_.current.destroyed&&_.current.destroy(!0,!1)}}),[]),Cr((function(){!h&&F&&_.current&&Object.keys(F).forEach((function(e){_.current.on(e,F[e])}));var e=function(e,t,n,r,i){var a=[];if(!t)return a;var o=function(e){a.indexOf(e)<0&&a.push(e)};if(n&&r){var s=r.map(i),l=n.map(i);s.join("")!==l.join("")&&o("children"),r.length!==n.length&&o("children")}return xr.filter((function(e){return"_"===e[0]})).map((function(e){return e.replace(/_/,"")})).forEach((function(n){if(n in e&&n in t)if(vr(e[n])&&vr(t[n])){var r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?o(n):(r.forEach((function(r){e[n][r]!==t[n][r]&&o(n)})),i.forEach((function(r){e[n][r]!==t[n][r]&&o(n)})))}else e[n]!==t[n]&&o(n)})),a}(M,T.current,U,P.current,(function(e){return e.key}));return T.current=M,P.current=U,e.length&&_.current&&!_.current.destroyed&&function(e){var t,n,r,i,a,o=e.swiper,s=e.slides,l=e.passedParams,u=e.changedParams,c=e.nextEl,f=e.prevEl,d=e.scrollbarEl,p=e.paginationEl,h=u.filter((function(e){return"children"!==e&&"direction"!==e})),v=o.params,m=o.pagination,y=o.navigation,g=o.scrollbar,b=o.virtual,w=o.thumbs;u.includes("thumbs")&&l.thumbs&&l.thumbs.swiper&&v.thumbs&&!v.thumbs.swiper&&(t=!0),u.includes("controller")&&l.controller&&l.controller.control&&v.controller&&!v.controller.control&&(n=!0),u.includes("pagination")&&l.pagination&&(l.pagination.el||p)&&(v.pagination||!1===v.pagination)&&m&&!m.el&&(r=!0),u.includes("scrollbar")&&l.scrollbar&&(l.scrollbar.el||d)&&(v.scrollbar||!1===v.scrollbar)&&g&&!g.el&&(i=!0),u.includes("navigation")&&l.navigation&&(l.navigation.prevEl||f)&&(l.navigation.nextEl||c)&&(v.navigation||!1===v.navigation)&&y&&!y.prevEl&&!y.nextEl&&(a=!0),h.forEach((function(e){if(vr(v[e])&&vr(l[e]))mr(v[e],l[e]);else{var t=l[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?v[e]=l[e]:!1===t&&o[n=e]&&(o[n].destroy(),"navigation"===n?(v[n].prevEl=void 0,v[n].nextEl=void 0,o[n].prevEl=void 0,o[n].nextEl=void 0):(v[n].el=void 0,o[n].el=void 0))}var n})),h.includes("controller")&&!n&&o.controller&&o.controller.control&&v.controller&&v.controller.control&&(o.controller.control=v.controller.control),u.includes("children")&&s&&b&&v.virtual.enabled?(b.slides=s,b.update(!0)):u.includes("children")&&o.lazy&&o.params.lazy.enabled&&o.lazy.load(),t&&w.init()&&w.update(!0),n&&(o.controller.control=v.controller.control),r&&(p&&(v.pagination.el=p),m.init(),m.render(),m.update()),i&&(d&&(v.scrollbar.el=d),g.init(),g.updateSize(),g.setTranslate()),a&&(c&&(v.navigation.nextEl=c),f&&(v.navigation.prevEl=f),y.init(),y.update()),u.includes("allowSlideNext")&&(o.allowSlideNext=l.allowSlideNext),u.includes("allowSlidePrev")&&(o.allowSlidePrev=l.allowSlidePrev),u.includes("direction")&&o.changeDirection(l.direction,!1),o.update()}({swiper:_.current,slides:U,passedParams:M,changedParams:e,nextEl:O.current,prevEl:j.current,scrollbarEl:I.current,paginationEl:A.current}),function(){F&&_.current&&Object.keys(F).forEach((function(e){_.current.off(e,F[e])}))}})),Cr((function(){!function(e){!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())}(_.current)}),[b]),e.createElement(o,Or({ref:C,className:wr("".concat(m).concat(i?" ".concat(i):""))},D),e.createElement(Tr.Provider,{value:_.current},z["container-start"],e.createElement(l,{className:"swiper-wrapper"},z["wrapper-start"],L.virtual?function(t,n,r){if(!r)return null;var i=t.isHorizontal()?f({},t.rtlTranslate?"right":"left","".concat(r.offset,"px")):{top:"".concat(r.offset,"px")};return n.filter((function(e,t){return t>=r.from&&t<=r.to})).map((function(n){return e.cloneElement(n,{swiper:t,style:i})}))}(_.current,U,b):!L.loop||_.current&&_.current.destroyed?U.map((function(t){return e.cloneElement(t,{swiper:_.current})})):function(t,n,r){var i=n.map((function(n,r){return e.cloneElement(n,{swiper:t,"data-swiper-slide-index":r})}));function a(t,n,i){return e.cloneElement(t,{key:"".concat(t.key,"-duplicate-").concat(n,"-").concat(i),className:"".concat(t.props.className||""," ").concat(r.slideDuplicateClass)})}if(r.loopFillGroupWithBlank){var o=r.slidesPerGroup-i.length%r.slidesPerGroup;if(o!==r.slidesPerGroup)for(var s=0;s<o;s+=1){var l=e.createElement("div",{className:"".concat(r.slideClass," ").concat(r.slideBlankClass)});i.push(l)}}"auto"!==r.slidesPerView||r.loopedSlides||(r.loopedSlides=i.length);for(var u=Er(i,r),c=[],f=[],d=0;d<u;d+=1){var p=d-Math.floor(d/i.length)*i.length;f.push(a(i[p],d,"append")),c.unshift(a(i[i.length-p-1],d,"prepend"))}return t&&(t.loopedSlides=u),[].concat(c,N(i),f)}(_.current,U,L),z["wrapper-end"]),yr(L)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:j,className:"swiper-button-prev"}),e.createElement("div",{ref:O,className:"swiper-button-next"})),br(L)&&e.createElement("div",{ref:I,className:"swiper-scrollbar"}),gr(L)&&e.createElement("div",{ref:A,className:"swiper-pagination"}),z["container-end"]))}));jr.displayName="Swiper";var Ar=["tag","children","className","swiper","zoom","virtualIndex"];function Ir(){return(Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Nr=(0,e.forwardRef)((function(t,n){var r=void 0===t?{}:t,i=r.tag,a=void 0===i?"div":i,o=r.children,s=r.className,l=void 0===s?"":s,c=r.swiper,f=r.zoom,d=r.virtualIndex,p=wn(r,Ar),h=(0,e.useRef)(null),v=u((0,e.useState)("swiper-slide"),2),m=v[0],y=v[1];function g(e,t,n){t===h.current&&y(n)}Cr((function(){if(n&&(n.current=h.current),h.current&&c){if(!c.destroyed)return c.on("_slideClass",g),function(){c&&c.off("_slideClass",g)};"swiper-slide"!==m&&y("swiper-slide")}})),Cr((function(){c&&h.current&&!c.destroyed&&y(c.getSlideClasses(h.current))}),[c]);var b={isActive:m.indexOf("swiper-slide-active")>=0||m.indexOf("swiper-slide-duplicate-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isDuplicate:m.indexOf("swiper-slide-duplicate")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0||m.indexOf("swiper-slide-duplicate-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0||m.indexOf("swiper-slide-duplicate-next")>=0},w=function(){return"function"==typeof o?o(b):o};return e.createElement(a,Ir({ref:h,className:wr("".concat(m).concat(l?" ".concat(l):"")),"data-swiper-slide-index":d},p),e.createElement(_r.Provider,{value:b},f?e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof f?f:void 0},w()):w()))}));Nr.displayName="SwiperSlide";var Rr=function(){return(0,x.jsxs)("div",{className:"HomeScreen_welcome__aApRq",children:[(0,x.jsx)("h1",{children:lf("Welcome to MakeCode Code Evaluation!")}),(0,x.jsxs)("p",{children:[lf("This tool is designed to help you evaluate student projects using an automated checklist.")," ",(0,x.jsx)(en,{target:"_blank",href:C.LearnMoreLink,children:lf("Learn More.")})]})]})},Lr=function(e){var t=e.title,n=e.className,r=e.icon,i=e.onClick;return(0,x.jsx)("div",{className:Yt,children:(0,x.jsx)(ft,{className:S(Kt,n),title:t,onClick:i,children:(0,x.jsxs)("div",{className:Qt,children:[r&&(0,x.jsx)("div",{className:"HomeScreen_cardIcon__jvgov",children:(0,x.jsx)("i",{className:r})}),(0,x.jsx)("div",{className:Jt,children:(0,x.jsx)("h3",{children:t})})]})})})},Mr=function(e){var t=e.delay;return(0,x.jsx)("div",{className:Yt,children:(0,x.jsx)(ft,{className:S(Kt,Zt,t?"HomeScreen_loadingGradientDelay__gWkBN":void 0),title:"",onClick:function(){},children:(0,x.jsx)("div",{className:Qt,children:(0,x.jsx)("div",{className:Zt})})})})},Dr=function(e){var t=e.cardTitle,n=e.imageUrl,r=e.checklistUrl,a=function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent(g.LoadChecklist,{checklistUrl:r}),e.next=3,gn(r);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,x.jsx)("div",{className:Yt,children:(0,x.jsx)(ft,{className:S(Kt,"HomeScreen_checklistResource__LQarV"),title:t,onClick:a,children:(0,x.jsx)("div",{className:S(Qt),style:{backgroundImage:'url("'.concat(n,'")'),backgroundSize:"cover"},children:(0,x.jsx)("div",{className:S(Jt,"HomeScreen_checklistResourceCardTitle__3CP1f"),children:(0,x.jsx)("h3",{children:t})})})})})},Fr=function(t){var n=t.children,r=e.Children.toArray(n);return(0,x.jsx)(jr,{spaceBetween:0,slidesPerView:"auto",allowTouchMove:!0,slidesOffsetBefore:32,navigation:!0,mousewheel:{forceToAxis:!0},modules:[hr,pr],className:"HomeScreen_swiperCarousel__fo58O",children:r.map((function(e,t){return(0,x.jsx)(Nr,{className:"HomeScreen_swiperSlide__dNUEM",children:e},t)}))})},Br=function(){var e=function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent(g.NewChecklist),e.next=3,mn();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,x.jsxs)("div",{className:Gt,children:[(0,x.jsx)("div",{className:Xt,children:(0,x.jsx)("h2",{children:lf("Get Started")})}),(0,x.jsxs)(Fr,{children:[(0,x.jsx)(Lr,{title:m.NewChecklist,icon:"fas fa-plus-circle",className:"HomeScreen_newChecklist__i-DgD",onClick:e}),(0,x.jsx)(Lr,{title:m.ImportChecklist,icon:"fas fa-file-upload",className:"HomeScreen_importChecklist__GLc4v",onClick:function(){pxt.tickEvent(g.ImportChecklist),mt({modal:"import-checklist"})}})]})]})},Ur=function(t){var n,r=t.title,a=t.cardsUrl,s=u((0,e.useState)(),2),l=s[0],c=s[1],f=u((0,e.useState)(),2),d=f[0];return function(t,n,r){var a=u((0,e.useState)(),2),s=a[0],l=a[1];(0,e.useEffect)((function(){s||(l(!0),n("loading"),Promise.resolve().then(o(i().mark((function e(){var a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ze(t);case 2:(a=e.sent)?(n("success"),r(a)):n("error");case 4:case"end":return e.stop()}}),e)})))).catch((function(){n("error")})))}),[s])}(a,f[1],c),null!=l&&null!==(n=l.cards)&&void 0!==n&&n.length?(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:Gt,children:[(0,x.jsx)("div",{className:Xt,children:(0,x.jsx)("h2",{children:r})}),("loading"===d||"error"===d)&&(0,x.jsxs)(Fr,{children:[(0,x.jsx)(Mr,{}),(0,x.jsx)(Mr,{delay:!0})]}),"success"===d&&(0,x.jsx)(Fr,{children:null==l?void 0:l.cards.map((function(e,t){return function(e){return"object"==typeof e&&"checklist-resource"===e.cardType}(e)?(0,x.jsx)(Dr,p({},e),t):(0,x.jsx)(Mr,{})}))})]})}):null},zr=function(){var t=(0,e.useContext)(He).state.targetConfig,n=null==t?void 0:t.teachertool,r=null==n?void 0:n.carousels;return(0,x.jsx)(x.Fragment,{children:null==r?void 0:r.map((function(e,t){return(0,x.jsx)(Ur,{title:e.title,cardsUrl:e.cardsUrl},t)}))})},Vr=function(){return(0,x.jsxs)("div",{className:"HomeScreen_page__UD33z",children:[(0,x.jsx)(Rr,{}),(0,x.jsx)(Br,{}),(0,x.jsx)(zr,{})]})},Hr="EvalResultDisplay_control-button__V6Crg",Wr="EvalResultDisplay_result-toolbar-button__KnBiu",$r="EvalResultDisplay_separator__ImacW",qr="EvalResultDisplay_notes-container__UmXK9",Gr="EvalResultDisplay_checklist-name__iNQwC",Xr=n(3295);function Yr(e,t){(0,Ve().dispatch)(function(e,t){return{type:"SET_EVAL_RESULT",criteriaInstanceId:e,result:t}}(e,t))}function Kr(e,t){var n=Ve(),r=n.state;n.dispatch,Yr(e,p(p({},r.evalResults[e]),{},{result:t}))}var Qr,Jr=function(t){var n,r=t.id,i=t.className,a=t.ariaHidden,o=t.ariaLabel,s=t.role,l=t.items,c=t.tabIndex,f=t.selectedId,d=t.onItemSelected,h=u(e.useState(!1),2),v=h[0],m=h[1],y=S("common-dropdown",i),g=l.find((function(e){return e.id===f}))||l[0];return(0,x.jsxs)("div",{className:y,ref:function(e){e&&(n=e)},onBlur:function(e){n&&v&&!n.contains(e.relatedTarget)&&m(!1)},children:[(0,x.jsx)(ft,p(p({},g),{},{id:r,tabIndex:c,rightIcon:v?"fas fa-chevron-up":"fas fa-chevron-down",role:s,className:S("common-dropdown-button",v&&"expanded",g.className),onClick:function(){m(!v)},onKeydown:function(e){var t=l.indexOf(g);"ArrowDown"===e.key?t<l.length-1&&(d(l[t+1].id),e.preventDefault(),e.stopPropagation()):"ArrowUp"===e.key?t>0&&(d(l[t-1].id),e.preventDefault(),e.stopPropagation()):"Enter"===e.key&&(m(!0),e.preventDefault(),e.stopPropagation())},ariaHasPopup:"listbox",ariaExpanded:v,ariaLabel:o,ariaHidden:a})),v&&(0,x.jsx)(dt,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:f,"aria-labelledby":r,useUpAndDownArrowKeys:!0,onItemReceivedFocus:function(e){e.id&&l.some((function(t){return t.id===e.id}))&&d(e.id)},children:(0,x.jsx)("ul",{role:"presentation",children:l.map((function(e){return(0,x.jsx)("li",{role:"presentation",children:(0,x.jsx)(ft,p(p({},e),{},{className:S("common-dropdown-item",e.className),onClick:function(){m(!1),d(e.id)},ariaSelected:e.id===f,role:"option"}))},e.id)}))})})]})},Zr={notevaluated:fn.CompleteWithNoResult,fail:fn.Fail,pass:fn.Pass,notstarted:fn.NotStarted},ei=(f(Qr={},fn.CompleteWithNoResult,"notevaluated"),f(Qr,fn.Fail,"fail"),f(Qr,fn.Pass,"pass"),f(Qr,fn.NotStarted,"notstarted"),Qr),ti=[{id:"notevaluated",title:lf("not applicable"),label:lf("N/A")},{id:"fail",title:lf("needs work"),label:lf("Needs work")},{id:"pass",title:lf("looks good!"),label:lf("Looks good!")},{id:"notstarted",title:lf("not started"),label:lf("Not started")}],ni=function(t){var n=t.result,r=t.criteriaId,i=(0,e.useMemo)((function(){return ei[n]}),[n]);return(0,x.jsx)(Jr,{id:"project-eval-result-dropdown",selectedId:i,className:S("rounded",i),items:ti,onItemSelected:function(e){return Kr(r,Zr[e])}})},ri=function(t){var n=t.id,r=t.className,i=t.role,a=t.ariaHidden,o=t.ariaLabel,s=t.initialValue,l=t.label,c=t.title,f=t.placeholder,d=t.autoComplete,p=t.cols,h=t.rows,v=t.disabled,m=t.minLength,y=t.readOnly,g=t.resize,b=t.wrap,w=t.autoResize,E=t.onChange,k=t.onEnterKey,C=u(e.useState(s||""),2),_=C[0],T=C[1],P=e.useRef(null),O=e.useRef(0),j=function(){P.current&&(P.current.style.height="1px",P.current.style.height="".concat(P.current.scrollHeight,"px"))};return e.useEffect((function(){T(s),w&&P.current&&j()}),[s]),e.useEffect((function(){if(!w)return function(){};var e=new ResizeObserver((function(e){var t=e[0].contentRect.width;O.current!=t&&(requestAnimationFrame((function(){return j()})),O.current=t)}));return P.current&&e.observe(P.current),function(){e.disconnect()}}),[w]),(0,x.jsxs)("div",{className:S("common-textarea-wrapper",v&&"disabled",g&&"resize-".concat(g),r),children:[l&&(0,x.jsx)("label",{className:"common-textarea-label",children:l}),(0,x.jsx)("div",{className:"common-textarea-group",children:(0,x.jsx)("textarea",{id:n,className:"common-textarea",title:c,role:i||"textbox",tabIndex:v?-1:0,"aria-label":o,"aria-hidden":a,placeholder:f,value:_||"",cols:p,rows:h,minLength:m,wrap:b,readOnly:!!y,ref:P,onChange:function(e){var t=e.target.value;y||_===t||T(t),E&&E(t),w&&P.current&&j()},onKeyDown:function(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||k&&(e.preventDefault(),k(_))},autoComplete:d?"":"off",autoCorrect:d?"":"off",autoCapitalize:d?"":"off",spellCheck:d,disabled:v})})]})},ii=["intervalMs"],ai=function(t){var n=t.intervalMs,r=void 0===n?500:n,i=wn(t,ii),a=(0,e.useRef)(void 0),o=(0,e.useRef)(""),s=function(){i.onChange&&i.onChange(o.current)};return(0,e.useEffect)((function(){return function(){a.current&&(clearTimeout(a.current),s())}}),[]),(0,x.jsx)(ri,p(p({},i),{},{onChange:function(e){o.current=e,a.current&&clearTimeout(a.current),a.current=setTimeout(s,r)}}))},oi="ThreeDotsLoadingDisplay_circle__7P1A0",si=function(e){var t=e.className;return(0,x.jsxs)("div",{className:S(t,"ThreeDotsLoadingDisplay_loading-ellipsis__0uvx0","no-print"),"aria-label":m.Loading,children:[(0,x.jsx)("i",{className:S("far fa-circle",oi,"ThreeDotsLoadingDisplay_circle-1__b0XeZ"),"aria-hidden":!0}),(0,x.jsx)("i",{className:S("far fa-circle",oi,"ThreeDotsLoadingDisplay_circle-2__ic0v9"),"aria-hidden":!0}),(0,x.jsx)("i",{className:S("far fa-circle",oi,"ThreeDotsLoadingDisplay_circle-3__UuuMW"),"aria-hidden":!0})]})},li="CriteriaFeedback_feedback-button__75Re4";function ui(e,t){(0,Ve().dispatch)(function(e,t){return{type:"SET_USER_FEEDBACK",criteriaInstanceId:e,userFeedback:t}}(e,t))}var ci=function(t){var n=t.className,r=t.criteriaInstanceId,i=(0,e.useContext)(He).state,a=(0,e.useMemo)((function(){return nn(i,r)}),[i,r]),o=null==a?void 0:a.userFeedback,s=null==a?void 0:a.catalogCriteriaId,l=(0,e.useCallback)((function(e){s&&(ui(r,e?"helpful":"not-helpful"),pxt.tickEvent(g.CriteriaFeedback,{criteriaId:s,helpful:e+""}))}),[s]),u="helpful"===o?"fas fa-thumbs-up":"far fa-thumbs-up",c="not-helpful"===o?"fas fa-thumbs-down":"far fa-thumbs-down";return(0,x.jsxs)("div",{className:S("CriteriaFeedback_criteria-feedback-container__SvXWm",n),children:[(0,x.jsx)("span",{className:"CriteriaFeedback_label__W9t26",children:o?lf("Thanks for your feedback!"):lf("Was this response helpful?")}),(0,x.jsxs)("span",{className:"CriteriaFeedback_rate-buttons__aoQ-H",children:[(0,x.jsx)(ft,{className:li,title:lf("Helpful"),onClick:function(){return l(!0)},rightIcon:u,disabled:!!o}),(0,x.jsx)(ft,{className:li,title:lf("Unhelpful"),onClick:function(){return l(!1)},rightIcon:c,disabled:!!o})]})]})},fi={"criteria-instance-display":"CriteriaInstanceDisplay_criteria-instance-display__a+aVo","segment-container":"CriteriaInstanceDisplay_segment-container__eKe2z",segment:"CriteriaInstanceDisplay_segment__KFJyQ",long:"CriteriaInstanceDisplay_long__iOAmQ","block-input-btn":"CriteriaInstanceDisplay_block-input-btn__OWvdF",error:"CriteriaInstanceDisplay_error__Z-71F","inline-input-wrapper":"CriteriaInstanceDisplay_inline-input-wrapper__cCZt5","inline-input":"CriteriaInstanceDisplay_inline-input__3wCk8","string-input":"CriteriaInstanceDisplay_string-input__oWDDa","number-input":"CriteriaInstanceDisplay_number-input__xo7jt","criteria-description":"CriteriaInstanceDisplay_criteria-description__cfngZ","for-print":"CriteriaInstanceDisplay_for-print__hKgmF"};function di(e,t,n){var r,i,a=Ve().state;re("Setting parameter '".concat(t,"' to '").concat(n,"' for criteria instance '").concat(e,"'"));var o=nn(a,e);if(o){var s=null===(r=o.params)||void 0===r?void 0:r.find((function(e){return e.name===t}));if(s){var l=p(p({},s),{},{value:n}),u=p(p({},o),{},{params:null===(i=o.params)||void 0===i?void 0:i.map((function(e){return e.name===t?l:e}))}),c=a.checklist.criteria.map((function(t){return t.instanceId===e?u:t}));pn(p(p({},a.checklist),{},{criteria:c})),Kr(e,fn.NotStarted)}else ne(Z.missingParameter,"Unable to find parameter with name '".concat(t,"' in criteria instance '").concat(e,"'"))}else ne(Z.missingCriteriaInstance,"Unable to find criteria instance with id '".concat(e,"'"))}var pi=function(t){var n,r,i=t.id,a=t.className,o=t.inputClassName,s=t.groupClassName,l=t.role,c=t.ariaHidden,f=t.ariaLabel,d=t.initialValue,p=t.label,h=t.title,v=t.placeholder,m=t.icon,y=t.iconTitle,g=t.disabled,b=t.type,w=t.readOnly,E=t.autoComplete,k=t.selectOnClick,C=t.onChange,_=t.onEnterKey,T=t.onIconClick,P=t.onFocus,O=t.onBlur,j=t.onOptionSelected,A=t.handleInputRef,I=t.preserveValueOnBlur,N=t.options,R=u(e.useState(void 0),2),L=R[0],M=R[1],D=u(e.useState(!1),2),F=D[0],B=D[1],U=function(e){return e&&-1!=Object.values(N).indexOf(e)?"dropdown-item-".concat(e):void 0};return(0,x.jsxs)("div",{className:S("common-input-wrapper",g&&"disabled",a),onBlur:function(e){F&&!r.contains(e.relatedTarget)&&B(!1)},ref:function(e){e&&(r=e)},children:[p&&(0,x.jsx)("label",{className:"common-input-label",htmlFor:i,children:p}),(0,x.jsxs)("div",{className:S("common-input-group",s),children:[(0,x.jsx)("input",{id:i,className:S("common-input",m&&"has-icon",o),title:h,role:l||"textbox",tabIndex:g?-1:0,"aria-label":f,"aria-hidden":c,type:b||"text",placeholder:v,value:void 0!==L?L:d||"",readOnly:!!w,onClick:function(e){k&&e.target.select(),N&&!F&&B(!0)},onChange:function(e){var t=e.target.value;w||L===t||M(t),C&&C(t)},onKeyDown:function(e){var n="number"==typeof e.which?e.which:e.keyCode;if(13===n||t.treatSpaceAsEnter&&32===n)_&&(e.preventDefault(),_(L));else if(N&&F&&"ArrowDown"===e.key){var r;null===(r=document.getElementById(U(Object.values(N)[0])))||void 0===r||r.focus(),e.preventDefault(),e.stopPropagation()}else if(N&&F&&"ArrowUp"===e.key){var i,a=Object.values(N);null===(i=document.getElementById(U(a[a.length-1])))||void 0===i||i.focus(),e.preventDefault(),e.stopPropagation()}},onBlur:function(){O&&O(L),I||M(void 0)},onFocus:function(){P&&P(L)},autoComplete:E?"":"off",autoCorrect:E?"":"off",autoCapitalize:E?"":"off",spellCheck:E,disabled:g,ref:A}),m&&(T?(0,x.jsx)(ft,{leftIcon:m,title:y,disabled:g,onClick:function(){T&&T(L)}}):(0,x.jsx)("i",{className:m,"aria-hidden":!0})),N&&(0,x.jsx)(ft,{leftIcon:F?"fas fa-chevron-up":"fas fa-chevron-down",title:y,disabled:g,ariaHasPopup:"listbox",ariaExpanded:F,ariaLabel:f,onClick:function(){N&&B(!F)}})]}),F&&(0,x.jsx)(dt,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:null!==(n=U(L))&&void 0!==n?n:U(Object.values(N)[0]),"aria-labelledby":i,useUpAndDownArrowKeys:!0,children:(0,x.jsx)("ul",{role:"presentation",children:Object.keys(N).map((function(e){return(0,x.jsx)("li",{role:"presentation",children:(0,x.jsx)(ft,{title:e,label:e,id:U(N[e]),className:S("common-dropdown-item"),onClick:function(){return function(e){var t;B(!1);var n=N[e];M(n),j&&j(n),null===(t=document.getElementById(i))||void 0===t||t.focus()}(e)},ariaSelected:U(N[e])===U(null!=L?L:d),role:"option"})},e)}))})})]})},hi=function(t){var n=t.initialValue,r=t.instance,i=t.param,a=t.shouldExpand,o=t.numeric,s=u((0,e.useState)(!n),2),l=s[0],c=s[1],f=l?'"'.concat(i.name,": ").concat(m.ValueRequired):i.name;return(0,x.jsx)("div",{title:f,className:fi["inline-input-wrapper"],children:(0,x.jsx)(pi,{className:S(fi["inline-input"],o?fi["number-input"]:fi["string-input"],a?fi.long:void 0,l?fi.error:void 0),icon:l?"fas fa-exclamation-triangle":void 0,initialValue:n,onChange:function(e){c(!e),di(r.instanceId,i.name,e)},preserveValueOnBlur:!0,placeholder:o?"0":i.name,title:f,autoComplete:!1,type:o?"number":"text"})})},vi=function(t){var n=t.instance,r=t.param,i=(0,e.useContext)(He).state,a=(0,e.useMemo)((function(){if(r.value&&i.toolboxCategories)for(var e=0,t=Object.values(i.toolboxCategories);e<t.length;e++){var n,a=t[e],o=null===(n=a.blocks)||void 0===n?void 0:n.find((function(e){return e.blockId===r.value}));if(o)return{category:a,block:o}}}),[r.value,i.toolboxCategories]),o=a?{backgroundColor:a.category.color,color:"white"}:void 0;return(0,x.jsx)(ft,{label:a?A(a.block.name):r.value||r.name,className:S(fi["block-input-btn"],r.value?void 0:fi.error),onClick:function(){mt({modal:"block-picker",criteriaInstanceId:n.instanceId,paramName:r.name})},title:r.value?m.SelectBlock:"".concat(m.SelectBlock,": ").concat(m.ValueRequired),leftIcon:r.value?void 0:"fas fa-exclamation-triangle",style:o})},mi=function(e){var t=e.criteriaInstance,n=tn(t.catalogCriteriaId);if(!n)return null;var r=O(n.template).map((function(e){return"plain-text"===e.type?(r=e.content)?(0,x.jsx)("div",{className:fi["text-segment"],children:r}):null:function(e){var r,i;if(!e)return null;var a=null==n||null===(r=n.params)||void 0===r?void 0:r.find((function(t){return t.name===e})),o=null==t||null===(i=t.params)||void 0===i?void 0:i.find((function(t){return t.name===e}));return a&&o?"block"===a.type?(0,x.jsx)(vi,{param:o,instance:t}):(0,x.jsx)(hi,{initialValue:o.value,param:o,instance:t,shouldExpand:"longString"===a.type,numeric:"number"===a.type}):(re("Missing info for '".concat(e,"': paramDef=").concat(a,", paramInstance=").concat(o)),null)}(e.content);var r}));return n?(0,x.jsxs)("div",{className:fi["criteria-instance-display"],children:[(0,x.jsx)("div",{className:fi["segment-container"],children:r.map((function(e,t){return(0,x.jsx)("span",{className:fi.segment,children:e},t)}))}),(0,x.jsx)("div",{className:S(fi["criteria-description"],"no-print"),children:n.description}),(0,x.jsx)("div",{className:S(fi["criteria-description"],fi["for-print"],"only-print"),children:n.description})]}):null};function yi(){return(yi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bt(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}var gi,bi=n(8466),wi=function(){function e(t){var n=this;R(this,e),this.iframe=t,this.readyForMessages=!1,this.messageQueue=[],this.nextId=0,this.pendingMessages={},this.editorEventListeners={},this.port=void 0,this.portRequestPending=void 0,this.frameId=void 0,this.onMessageReceived=function(e){var t=e.data;if(t){if(n.frameId&&t.frameId!==n.frameId)return;if("iframeclientready"===t.type)return void(n.frameId&&!n.port?n.createMessagePort():(n.readyForMessages=!0,n.sendMessageCore()));if("iframeclientsetmessageport"===t.type)return}n.handleMessage(e)};var r=new URLSearchParams(new URL(t.src).search);r.has("frameid")&&(this.frameId=r.get("frameid")),window.addEventListener("message",this.onMessageReceived),t.contentWindow&&t.contentWindow.postMessage({type:"iframeclientready"},"*")}return M(e,[{key:"dispose",value:function(){window.removeEventListener("message",this.onMessageReceived),this.port&&this.port.close()}},{key:"addEventListener",value:function(e,t){this.editorEventListeners[e]||(this.editorEventListeners[e]=[]),this.editorEventListeners[e].push(t)}},{key:"removeEventListener",value:function(e,t){if(this.editorEventListeners[e]){var n=this.editorEventListeners[e].filter((function(e){return e!==t}));0===n.length?delete this.editorEventListeners[e]:this.editorEventListeners[e]=n}}},{key:"resolvePendingMessage",value:function(e){var t=e.data;if(t.id&&this.pendingMessages[t.id]){var n=e.data,r=this.pendingMessages[n.id];delete this.pendingMessages[n.id],n.success?r.resolve(n):r.reject(n.error||new Error("Unknown error: iFrame returned failure"))}}},{key:"fireEvent",value:function(e,t){var n=this.editorEventListeners[e];if(n){var r,i=v(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;try{a(t)}catch(e){bi.error(e)}}}catch(e){i.e(e)}finally{i.f()}}}},{key:"sendRequest",value:function(e){var t=this;return new Promise((function(n,r){e.response=!0,e.id=t.nextId+++"",t.pendingMessages[e.id]={original:e,resolve:n,reject:r},t.sendMessageCore(e)}))}},{key:"sendMessageCore",value:function(e){if(e&&this.messageQueue.push(e),this.readyForMessages)for(;this.messageQueue.length;){var t,n=this.messageQueue.shift();this.port?this.port.postMessage(n):null===(t=this.iframe.contentWindow)||void 0===t||t.postMessage(n,"*"),this.fireEvent("sent",n)}}},{key:"createMessagePort",value:function(){var e=this;if(!this.port&&!this.portRequestPending){this.portRequestPending=!0;var t=new MessageChannel;t.port1.onmessage=function(n){e.port||(e.port=t.port1,e.frameId=void 0,window.removeEventListener("message",e.onMessageReceived),e.readyForMessages=!0,e.sendMessageCore()),e.onMessageReceived(n)},this.iframe.contentWindow.postMessage({type:"iframeclientsetmessageport"},"*",[t.port2])}}}]),e}(),xi=n(8466),Ei=function(e){gt(n,e);var t=St(n);function n(e,r){var i;return R(this,n),(i=t.call(this,e)).iframe=e,i.host=r,i}return M(n,[{key:"switchEditorLanguage",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="blocks"===e.t0?3:"typescript"===e.t0?5:"python"===e.t0?7:9;break;case 3:return n="switchblocks",e.abrupt("break",9);case 5:return n="switchjavascript",e.abrupt("break",9);case 7:return n="switchpython",e.abrupt("break",9);case 9:return e.next=11,this.sendRequest({type:"pxteditor",action:n});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setLanguageRestriction",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"setlanguagerestriction",restriction:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"startSimulator",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"startsimulator"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"stopSimulator",value:function(){var e=o(i().mark((function e(){var t,n=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],e.next=3,this.sendRequest({type:"pxteditor",action:"stopsimulator",unload:t});case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"restartSimulator",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"restartsimulator"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hideSimulator",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"hidesimulator"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"showSimulator",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"showsimulator"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setSimulatorFullscreen",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"setsimulatorfullscreen",enabled:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"closeFlyout",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"closeflyout"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"unloadProject",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"unloadproject"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"saveProject",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"saveproject"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"compile",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"compile"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"undo",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"undo"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"redo",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"redo"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setHighContrast",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"sethighcontrast",on:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"toggleHighContrast",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"togglehighcontrast"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"toggleGreenScreen",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"togglegreenscreen"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"toggleSloMo",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"toggletrace",intervalSpeed:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setSloMoEnabled",value:function(){var e=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"settracestate",enabled:t,intervalSpeed:n});case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"printProject",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"print"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getInfo",value:function(){var e=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"info"});case 2:return t=e.sent,e.abrupt("return",t.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"newProject",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"newproject",options:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"importProject",value:function(){var e=o(i().mark((function e(t,n,r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"importproject",project:t,filters:n,searchBar:r});case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"importExternalProject",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"importexternalproject",project:t});case 2:return n=e.sent,e.abrupt("return",n.resp.importUrl);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"openHeader",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"openheader",headerId:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shareHeader",value:function(){var e=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"shareproject",headerId:t,projectName:n});case 2:return r=e.sent,e.abrupt("return",r.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"startActivity",value:function(){var e=o(i().mark((function e(t,n,r,a,o){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"startactivity",activityType:t,path:n,title:r,previousProjectHeaderId:a,carryoverPreviousCode:o});case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i,a){return e.apply(this,arguments)}}()},{key:"importTutorial",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"importtutorial",markdown:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"pair",value:function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"pair"});case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"decompileToBlocks",value:function(){var e=o(i().mark((function e(t,n,r){var a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"renderblocks",ts:t,snippetMode:n,layout:r});case 2:return a=e.sent,e.abrupt("return",a.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"decompileToPython",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"renderpython",ts:t});case 2:return n=e.sent,e.abrupt("return",n.resp.python);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"renderXml",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"renderxml",xml:t});case 2:return n=e.sent,e.abrupt("return",n.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"renderByBlockId",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"renderbyblockid",blockId:t});case 2:return n=e.sent,e.abrupt("return",n.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getToolboxCategories",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"gettoolboxcategories",advanced:t});case 2:return n=e.sent,e.abrupt("return",n.resp.categories);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"runValidatorPlan",value:function(){var e=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"runeval",validatorPlan:t,planLib:n});case 2:return r=e.sent,e.abrupt("return",r.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"saveLocalProjectsToCloud",value:function(){var e=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"savelocalprojectstocloud",headerIds:t});case 2:return n=e.sent,e.abrupt("return",n.resp);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"convertCloudProjectsToLocal",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"convertcloudprojectstolocal",userId:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"requestProjectCloudStatus",value:function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({type:"pxteditor",action:"requestprojectcloudstatus",headerIds:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"addEventListener",value:function(e,t){yi(bt(n.prototype),"addEventListener",this).call(this,e,t)}},{key:"sendMessage",value:function(e){return this.sendRequest(e)}},{key:"handleMessage",value:function(e){var t=e.data;t&&/^pxt(host|editor|pkgext|sim)$/.test(t.type)&&("pxteditor"===t.type?this.resolvePendingMessage(e):"pxthost"===t.type&&("editorcontentloaded"===t.action?(this.readyForMessages=!0,this.sendMessageCore()):"workspacesync"!==t.action&&"workspacesave"!==t.action&&"workspacereset"!==t.action&&"workspaceloaded"!==t.action||this.handleWorkspaceSync(t),this.fireEvent(t.action,t)),this.fireEvent("message",t))}},{key:"handleWorkspaceSync",value:function(){var e=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.host){e.next=2;break}return e.abrupt("return");case 2:if(n=void 0,e.prev=3,"workspacesync"!==t.action){e.next=11;break}return e.next=7,this.host.getWorkspaceProjects();case 7:r=e.sent,this.sendMessageCore({type:"pxthost",id:t.id,success:!!r,projects:null==r?void 0:r.projects,editor:null==r?void 0:r.editor,controllerId:null==r?void 0:r.controllerId}),e.next=25;break;case 11:if("workspacereset"!==t.action){e.next=16;break}return e.next=14,this.host.resetWorkspace();case 14:e.next=25;break;case 16:if("workspacesave"!==t.action){e.next=21;break}return e.next=19,this.host.saveProject(t.project);case 19:e.next=25;break;case 21:if("workspaceloaded"!==t.action){e.next=25;break}if(!this.host.onWorkspaceLoaded){e.next=25;break}return e.next=25,this.host.onWorkspaceLoaded();case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(3),n=e.t0,xi.error(e.t0);case 31:return e.prev=31,t.response&&this.sendMessageCore({type:"pxthost",id:t.id,success:!n,error:n}),e.finish(31);case 34:case"end":return e.stop()}}),e,this,[[3,27,31,34]])})));return function(t){return e.apply(this,arguments)}}()}]),n}(wi);function Si(){return(Si=o(i().mark((function e(){var t,n,r,a,o,s,l,c,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=function(e){var t;return e.name&&0!=(null===(t=e.blocks)||void 0===t?void 0:t.length)},t=Ve(),n=t.dispatch,e.next=4,Promise.all([_i(!1),_i(!0)]);case 4:if(r=e.sent,a=u(r,2),o=a[0],s=a[1],0!==(l=(null!=o?o:[]).concat(null!=s?s:[])).length){e.next=11;break}return e.abrupt("return");case 11:f=l.reduce((function(e,t){if(c(t)){var n,r=null===(n=t.blocks)||void 0===n?void 0:n.filter((function(e,t,n){return n.findIndex((function(t){return t.blockId===e.blockId}))===t}));e[t.name]=p(p({},t),{},{blocks:r})}return e}),{}),n(Qe(f));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ki(e){return Ci.apply(this,arguments)}function Ci(){return(Ci=o(i().mark((function e(t){var n,r,a,o,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Ve(),(r=n.state).projectMetadata){e.next=4;break}return e.abrupt("return");case 4:if(t&&Ht("results"),0!==(a=r.checklist.criteria.map((function(e){return Vi(e.instanceId,t)}))).length){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,Promise.all(a);case 10:o=e.sent,t&&((s=o.filter((function(e){return!e})).length)===r.checklist.criteria.length?_t(_("error",m.UnableToEvaluate)):_t(s>0?_("error",m.UnableToEvaluatePartial):_("success",m.EvaluationComplete)));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _i(e){return Ti.apply(this,arguments)}function Ti(){return(Ti=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!gi){e.next=6;break}return e.next=3,gi.getToolboxCategories(t);case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=void 0;case 7:return n=e.t0,e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pi(e){return Oi.apply(this,arguments)}function Oi(){return(Oi=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!gi){e.next=6;break}return e.next=3,gi.renderXml(t);case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=void 0;case 7:return n=e.t0,e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ji(e){return Ai.apply(this,arguments)}function Ai(){return(Ai=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!gi){e.next=6;break}return e.next=3,gi.renderByBlockId(t);case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=void 0;case 7:return n=e.t0,e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ii(e,t){return Ni.apply(this,arguments)}function Ni(){return(Ni=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=void 0,e.prev=1,e.next=4,gi.runValidatorPlan(t,n);case 4:if(r=e.sent){e.next=7;break}throw new Error("Missing response data.");case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),ne(Z.runEval,e.t0);case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}var Ri=n(538),Li=n.n(Ri);function Mi(e){return Di.apply(this,arguments)}function Di(){return(Di=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(1===t.checks.length||"aiQuestion"===t.checks[0].validator){e.next=3;break}return ne(Z.invalidValidatorPlan,{planName:t.name,checks:t.checks}),e.abrupt("return",void 0);case 3:return n=t.checks[0],re("Asking question: '".concat(n.question,"' on project with shareId: '").concat(n.shareId,"'")),e.next=7,lt(n.shareId,n.question);case 7:return r=e.sent,re("Response: ".concat(r)),e.abrupt("return",{executionSuccess:!!r,result:void 0,notes:r,executionErrorMsg:r?void 0:m.UnableToReachAI});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fi(e){return Bi.apply(this,arguments)}function Bi(){return(Bi=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.name,e.next="ai_question"===e.t0?3:6;break;case 3:return e.next=5,Mi(t);case 5:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",void 0);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ui(e,t,n){var r=Ve(),i=r.state,a=(r.dispatch,p({},i.evalResults[e]));a.error=void 0,void 0!==t&&(a.result=t),void 0!==n&&(a.notes!==n&&ui(e,void 0),a.notes=n),Yr(e,a)}function zi(e,t){var n,r,i=Ve().state,a=tn(e.catalogCriteriaId);if(a){var o=null===(n=i.validatorPlans)||void 0===n?void 0:n.find((function(e){return e.name===a.use}));if(o){var s,l=pxt.Util.deepCopy(o),u=v(null!==(r=e.params)&&void 0!==r?r:[]);try{var c,f=function(){var n,r=s.value,o=null===(n=a.params)||void 0===n?void 0:n.find((function(e){return e.name===r.name}));if(!o)return t&&ne(Z.evalMissingCatalogParameter,"Attempting to evaluate criteria with unrecognized parameter",{catalogId:e.catalogCriteriaId,paramName:r.name}),{v:void 0};if("system"===o.type&&o.key&&(r.value=function(e,t){var n;if("SHARE_ID"===e)return null===(n=t.projectMetadata)||void 0===n?void 0:n.id;ne(Z.unrecognizedSystemParameter,"Unrecognized system parameter",{key:e})}(o.key,i),r.value||(r.value=o.default)),!r.value)return t&&ne(Z.evalParameterUnset,"Attempting to evaluate criteria with unset parameter value",{catalogId:e.catalogCriteriaId,paramName:r.name}),{v:void 0};var u,c=v(o.paths);try{for(c.s();!(u=c.n()).done;){var f=u.value;Li().apply(l,f,(function(){return r.value}))}}catch(e){c.e(e)}finally{c.f()}};for(u.s();!(s=u.n()).done;)if(c=f())return c.v}catch(e){u.e(e)}finally{u.f()}return l}ne(Z.evalMissingPlan,"Attempting to evaluate criteria with unrecognized plan",{plan:a.use})}else ne(Z.evalMissingCriteria,"Attempting to evaluate criteria with unrecognized catalog id",{id:e.catalogCriteriaId})}function Vi(e,t){return Hi.apply(this,arguments)}function Hi(){return(Hi=o(i().mark((function e(t,n){var r,a,s,l,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Ve(),a=r.state,s=r.dispatch,a.projectMetadata){e.next=4;break}return e.abrupt("return");case 4:if(l=nn(a,t)){e.next=8;break}return ne(Z.criteriaInstanceNotFound,"Attempting to evaluate criteria that does not exist",{criteriaInstanceId:t}),e.abrupt("return");case 8:return u=new Promise(function(){var e=o(i().mark((function e(r){var o,u,c,f,d,p,h,v,y;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=null===(o=a.evalResults[l.instanceId])||void 0===o?void 0:o.result,n||void 0===u||u===fn.NotStarted){e.next=3;break}return e.abrupt("return",r(!0));case 3:if(Kr(l.instanceId,fn.InProgress),c=a.validatorPlans){e.next=9;break}return ne(Z.validatorPlansNotFound,"Attempting to evaluate criteria without any plans"),s(Xe(l.instanceId)),e.abrupt("return",r(!1));case 9:if(f=zi(l,n),re("".concat(l.instanceId,": Generated Plan"),f),f){e.next=14;break}return s(Xe(l.instanceId)),e.abrupt("return",r(!1));case 14:return e.prev=14,e.next=17,Fi(f);case 17:if(p=e.sent){e.next=22;break}return e.next=21,Ii(f,c);case 21:p=e.sent;case 22:if(null===(d=p)||void 0===d||!d.executionSuccess){e.next=28;break}return h=void 0===p.result?fn.CompleteWithNoResult:p.result?fn.Pass:fn.Fail,Ui(l.instanceId,h,p.notes),e.abrupt("return",r(!0));case 28:return Yr(l.instanceId,{result:fn.NotStarted,error:null!==(v=null===(y=p)||void 0===y?void 0:y.executionErrorMsg)&&void 0!==v?v:m.UnexpectedError}),ui(t,void 0),e.abrupt("return",r(!1));case 31:e.next=39;break;case 33:return e.prev=33,e.t0=e.catch(14),pxt.tickEvent(g.UnhandledEvalError,{catalogCriteriaId:l.catalogCriteriaId,error:null===e.t0||void 0===e.t0?void 0:e.t0.message}),ui(t,void 0),Yr(l.instanceId,{result:fn.NotStarted,error:m.UnexpectedError}),e.abrupt("return",r(!1));case 39:case"end":return e.stop()}}),e,null,[[14,33]])})));return function(t){return e.apply(this,arguments)}}()),e.next=11,u;case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wi(e){var t=Ve().state;re("Removing criteria with id: ".concat(e));var n=nn(t,e),r=null==n?void 0:n.catalogCriteriaId;pn(p(p({},t.checklist),{},{criteria:t.checklist.criteria.filter((function(t){return t.instanceId!==e}))})),r&&pxt.tickEvent(g.RemoveCriteria,{catalogCriteriaId:r})}var $i,qi,Gi=function(t){var n,r=t.criteriaId,i=null===(n=(0,e.useContext)(He).state.evalResults[r])||void 0===n?void 0:n.notes;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:S(qr,"no-print"),children:(0,x.jsx)(ai,{placeholder:lf("Write your notes here"),ariaLabel:lf("Feedback regarding the criteria result"),label:lf("Feedback"),title:lf("Write your notes here"),initialValue:i,autoResize:!0,onChange:function(e){!function(e,t){var n=Ve(),r=n.state;n.dispatch,Yr(e,p(p({},r.evalResults[e]),{},{notes:t}))}(r,e)},autoComplete:!1,intervalMs:500})}),i&&(0,x.jsx)("div",{className:S(qr,"EvalResultDisplay_for-print__Rnqa+","only-print"),children:i})]})},Xi=function(e){var t=e.criteriaInstanceId,n=e.error;return(0,x.jsxs)("div",{className:S("EvalResultDisplay_result-error__a+sfL","no-print"),children:[(0,x.jsx)("i",{className:"fas fa-exclamation-circle"}),(0,x.jsxs)("div",{className:"EvalResultDisplay_error-info-container__jqhSa",children:[(0,x.jsx)("span",{className:"EvalResultDisplay_error-title__xcwl+",children:m.UnableToEvaluate}),(0,x.jsx)("span",{className:"EvalResultDisplay_error-details__xm+u3",children:n})]}),(0,x.jsx)(ft,{className:"EvalResultDisplay_dismiss-button__UtBgi",leftIcon:"fas fa-times-circle",title:m.Dismiss,onClick:function(){return Yr(t,{result:fn.NotStarted,error:void 0})}})]})},Yi=function(t){var n=t.criteriaId,r=(0,e.useContext)(He).state;function a(){return(a=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent(g.Evaluate),e.next=3,Vi(n,!0);case 3:_t(e.sent?_("success",m.EvaluationComplete):_("error",m.UnableToEvaluate));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function s(){return(s=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:confirm(m.ConfirmDeleteCriteriaInstance)&&Wi(n);case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,x.jsxs)("div",{className:S("EvalResultDisplay_result-toolbar-tray__RV0m1","no-print"),children:[(0,x.jsx)(ft,{className:S("secondary",Hr,Wr),rightIcon:"fas fa-trash",title:m.Remove,onClick:function(){return s.apply(this,arguments)}}),(0,x.jsx)(ft,{className:S("secondary",Hr,Wr),rightIcon:"fas fa-play",title:m.Evaluate,onClick:function(){return a.apply(this,arguments)},disabled:!on(r)})]})},Ki=function(t){var n=t.criteriaId,r=(0,e.useContext)(He).state,i=r.evalResults[n],a=i?i.result:fn.NotStarted,o=!(null==i||!i.notes),s=!(null==i||!i.error),l=nn(r,n),u=l?tn(l.catalogCriteriaId):void 0,c=a===fn.InProgress,f=a===fn.NotStarted;return(0,x.jsx)(x.Fragment,{children:u&&l&&(0,x.jsxs)("div",{className:"EvalResultDisplay_specific-criteria-result__9RJhy","aria-busy":c,children:[(0,x.jsxs)("div",{className:"EvalResultDisplay_result-details__PzpKE",children:[(0,x.jsx)(mi,{criteriaInstance:l}),!c&&(0,x.jsxs)("div",{className:"EvalResultDisplay_result-controls__qd+FO",children:[(0,x.jsx)(ni,{result:a,criteriaId:n}),(0,x.jsx)(Yi,{criteriaId:n})]})]}),c?(0,x.jsx)(si,{className:"EvalResultDisplay_loading-display__k9vcu"}):s?(0,x.jsx)(Xi,{criteriaInstanceId:l.instanceId,error:i.error}):(0,x.jsx)("div",{className:S("EvalResultDisplay_result-notes__yMfib",o?void 0:"no-print"),children:(0,x.jsx)(Gi,{criteriaId:n})}),!c&&!f&&!s&&u.requestFeedback&&(0,x.jsx)(ci,{criteriaInstanceId:l.instanceId,className:S("no-print","EvalResultDisplay_criteria-feedback__hjU79")}),(0,x.jsx)("div",{className:$r})]},n)})},Qi=Object.defineProperty,Ji=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable,ta=function(e,t,n){return t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},na=function(e,t){for(var n in t||(t={}))Zi.call(t,n)&&ta(e,n,t[n]);if(Ji){var r,i=v(Ji(t));try{for(i.s();!(r=i.n()).done;)n=r.value,ea.call(t,n)&&ta(e,n,t[n])}catch(e){i.e(e)}finally{i.f()}}return e},ra=function(e,t){var n={};for(var r in e)Zi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ji){var i,a=v(Ji(e));try{for(a.s();!(i=a.n()).done;)r=i.value,t.indexOf(r)<0&&ea.call(e,r)&&(n[r]=e[r])}catch(e){a.e(e)}finally{a.f()}}return n};!function(e){var t=function(){function t(e,n,r,a){if(R(this,t),this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;for(var o=[],s=0;s<this.size;s++)o.push(!1);for(var l=0;l<this.size;l++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var u=this.addEccAndInterleave(r);if(this.drawCodewords(u),-1==a)for(var c=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var d=this.getPenaltyScore();d<c&&(a=f,c=d),this.applyMask(f)}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return M(t,[{key:"getModule",value:function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,r=0;r<n;r++)for(var i=0;i<n;i++)0==r&&0==i||0==r&&i==n-1||r==n-1&&0==i||this.drawAlignmentPattern(t[r],t[i]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,a=0;a<10;a++)n=n<<1^1335*(n>>>9);var o=21522^(t<<10|n);i(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,r(o,s));this.setFunctionModule(8,7,r(o,6)),this.setFunctionModule(8,8,r(o,7)),this.setFunctionModule(7,8,r(o,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,r(o,l));for(var u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,r(o,u));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,r(o,c));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;i(n>>>18==0);for(var a=0;a<18;a++){var o=r(n,a),s=this.size-11+a%3,l=Math.floor(a/3);this.setFunctionModule(s,l,o),this.setFunctionModule(l,s,o)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,2!=i&&4!=i)}}},{key:"drawAlignmentPattern",value:function(e,t){for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}},{key:"setFunctionModule",value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:"addEccAndInterleave",value:function(e){var n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");for(var a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),l=a-s%a,u=Math.floor(s/a),c=[],f=t.reedSolomonComputeDivisor(o),d=0,p=0;d<a;d++){var h=e.slice(p,p+u-o+(d<l?0:1));p+=h.length;var v=t.reedSolomonComputeRemainder(h,f);d<l&&h.push(0),c.push(h.concat(v))}for(var m=[],y=function(e){c.forEach((function(t,n){(e!=u-o||n>=l)&&m.push(t[e])}))},g=0;g<c[0].length;g++)y(g);return i(m.length==s),m}},{key:"drawCodewords",value:function(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var n=0,a=this.size-1;a>=1;a-=2){6==a&&(a=5);for(var o=0;o<this.size;o++)for(var s=0;s<2;s++){var l=a-s,u=0==(a+1&2)?this.size-1-o:o;!this.isFunction[u][l]&&n<8*e.length&&(this.modules[u][l]=r(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var r=void 0;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}},{key:"getPenaltyScore",value:function(){for(var e=0,n=0;n<this.size;n++){for(var r=!1,a=0,o=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[n][s]==r?5==++a?e+=t.PENALTY_N1:a>5&&e++:(this.finderPenaltyAddHistory(a,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][s],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,o)*t.PENALTY_N3}for(var l=0;l<this.size;l++){for(var u=!1,c=0,f=[0,0,0,0,0,0,0],d=0;d<this.size;d++)this.modules[d][l]==u?5==++c?e+=t.PENALTY_N1:c>5&&e++:(this.finderPenaltyAddHistory(c,f),u||(e+=this.finderPenaltyCountPatterns(f)*t.PENALTY_N3),u=this.modules[d][l],c=1);e+=this.finderPenaltyTerminateAndCount(u,c,f)*t.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var h=0;h<this.size-1;h++){var m=this.modules[p][h];m==this.modules[p][h+1]&&m==this.modules[p+1][h]&&m==this.modules[p+1][h+1]&&(e+=t.PENALTY_N2)}var y,g=0,b=v(this.modules);try{for(b.s();!(y=b.n()).done;)g=y.value.reduce((function(e,t){return e+(t?1:0)}),g)}catch(e){b.e(e)}finally{b.f()}var w=this.size*this.size,x=Math.ceil(Math.abs(20*g-10*w)/w)-1;return i(0<=x&&x<=9),i(0<=(e+=x*t.PENALTY_N4)&&e<=2568888),e}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6],r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}},{key:"finderPenaltyCountPatterns",value:function(e){var t=e[1];i(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}],[{key:"encodeText",value:function(n,r){var i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}},{key:"encodeSegments",value:function(e,r){var o,s,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=l&&l<=u&&u<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");for(o=l;;o++){var d=8*t.getNumDataCodewords(o,r),p=a.getTotalBits(e,o);if(p<=d){s=p;break}if(o>=u)throw new RangeError("Data too long")}for(var h=0,m=[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH];h<m.length;h++){var y=m[h];f&&s<=8*t.getNumDataCodewords(o,y)&&(r=y)}var g,b=[],w=v(e);try{for(w.s();!(g=w.n()).done;){var x=g.value;n(x.mode.modeBits,4,b),n(x.numChars,x.mode.numCharCountBits(o),b);var E,S=v(x.getData());try{for(S.s();!(E=S.n()).done;){var k=E.value;b.push(k)}}catch(e){S.e(e)}finally{S.f()}}}catch(e){w.e(e)}finally{w.f()}i(b.length==s);var C=8*t.getNumDataCodewords(o,r);i(b.length<=C),n(0,Math.min(4,C-b.length),b),n(0,(8-b.length%8)%8,b),i(b.length%8==0);for(var _=236;b.length<C;_^=253)n(_,8,b);for(var T=[];8*T.length<b.length;)T.push(0);return b.forEach((function(e,t){return T[t>>>3]|=e<<7-(7&t)})),new t(o,r,T,c)}},{key:"getNumRawDataModules",value:function(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;n-=(25*r-10)*r-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}},{key:"reedSolomonComputeDivisor",value:function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r<e-1;r++)n.push(0);n.push(1);for(var i=1,a=0;a<e;a++){for(var o=0;o<n.length;o++)n[o]=t.reedSolomonMultiply(n[o],i),o+1<n.length&&(n[o]^=n[o+1]);i=t.reedSolomonMultiply(i,2)}return n}},{key:"reedSolomonComputeRemainder",value:function(e,n){var r,i=n.map((function(e){return 0})),a=v(e);try{var o=function(){var e=r.value^i.shift();i.push(0),n.forEach((function(n,r){return i[r]^=t.reedSolomonMultiply(n,e)}))};for(a.s();!(r=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return i}},{key:"reedSolomonMultiply",value:function(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}}]),t}();function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;var a=function(){function e(t,n,r){if(R(this,e),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return M(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var r,i=[],a=v(t);try{for(a.s();!(r=a.n()).done;)n(r.value,8,i)}catch(e){a.e(e)}finally{a.f()}return new e(e.Mode.BYTE,t.length,i)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i<t.length;){var a=Math.min(t.length-i,3);n(parseInt(t.substr(i,a),10),3*a+1,r),i+=a}return new e(e.Mode.NUMERIC,t.length,r)}},{key:"makeAlphanumeric",value:function(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r,i=[];for(r=0;r+2<=t.length;r+=2){var a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));n(a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),11,i)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,i),new e(e.Mode.ALPHANUMERIC,t.length,i)}},{key:"makeSegments",value:function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}},{key:"isNumeric",value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(e,t){var n,r=0,i=v(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.mode.numCharCountBits(t);if(a.numChars>=1<<o)return 1/0;r+=4+o+a.bitData.length}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"toUtf8ByteArray",value:function(e){e=encodeURI(e);for(var t=[],n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}}]),e}();a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a}($i||($i={})),function(e){var t=M((function e(t,n){R(this,e),this.ordinal=t,this.formatBits=n})),n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n}((qi=$i||($i={})).QrCode||(qi.QrCode={})),function(e){!function(e){var t=function(){function e(t,n){R(this,e),this.modeBits=t,this.numBitsCharCount=n}return M(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}(),n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n}(e.QrSegment||(e.QrSegment={}))}($i||($i={}));var ia=$i,aa={L:ia.QrCode.Ecc.LOW,M:ia.QrCode.Ecc.MEDIUM,Q:ia.QrCode.Ecc.QUARTILE,H:ia.QrCode.Ecc.HIGH};function oa(t){var n=t,r=n.value,i=n.size,a=void 0===i?128:i,o=n.level,s=void 0===o?"L":o,l=n.bgColor,u=void 0===l?"#FFFFFF":l,c=n.fgColor,f=void 0===c?"#000000":c,d=n.includeMargin,p=void 0!==d&&d,h=n.imageSettings,v=ra(n,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),m=ia.QrCode.encodeText(r,aa[s]).getModules(),y=p?4:0,g=m.length+2*y,b=function(e,t,n,r){if(null==r)return null;var i=n?4:0,a=e.length+2*i,o=Math.floor(.1*t),s=a/t,l=(r.width||o)*s,u=(r.height||o)*s,c=null==r.x?e.length/2-l/2:r.x*s,f=null==r.y?e.length/2-u/2:r.y*s,d=null;if(r.excavate){var p=Math.floor(c),h=Math.floor(f);d={x:p,y:h,w:Math.ceil(l+c-p),h:Math.ceil(u+f-h)}}return{x:c,y:f,h:u,w:l,excavation:d}}(m,a,p,h),w=null;null!=h&&null!=b&&(null!=b.excavation&&(m=function(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}(m,b.excavation)),w=e.createElement("image",{xlinkHref:h.src,height:b.h,width:b.w,x:b.x+y,y:b.y+y,preserveAspectRatio:"none"}));var x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var i=null;e.forEach((function(a,o){if(!a&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(o-i,"v1H").concat(i+t,"z")),void(i=null);if(o!==e.length-1)a&&null===i&&(i=o);else{if(!a)return;null===i?n.push("M".concat(o+t,",").concat(r+t," h1v1H").concat(o+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(o+1-i,"v1H").concat(i+t,"z"))}}))})),n.join("")}(m,y);return e.createElement("svg",na({height:a,width:a,viewBox:"0 0 ".concat(g," ").concat(g)},v),e.createElement("path",{fill:u,d:"M0,0 h".concat(g,"v").concat(g,"H0z"),shapeRendering:"crispEdges"}),e.createElement("path",{fill:f,d:x,shapeRendering:"crispEdges"}),w)}function sa(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function la(e){var t=Ve(),n=t.state,r=t.dispatch;n.catalogOpen!=e&&r(function(e){return{type:"SET_CATALOG_OPEN",open:e}}(e))}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var ua=function(t){return sa(t),(0,e.useContext)(He).state.catalogOpen?null:(0,x.jsx)(ft,{className:S("inline","outline-button"),label:m.AddCriteria,onClick:function(){return la(!0)},title:m.AddCriteria,leftIcon:"fas fa-plus-circle"})},ca=["intervalMs"],fa=function(t){var n=t.intervalMs,r=void 0===n?500:n,i=wn(t,ca),a=(0,e.useRef)(void 0),o=(0,e.useRef)(""),s=function(){i.onChange&&i.onChange(o.current)};return(0,e.useEffect)((function(){return function(){a.current&&(clearTimeout(a.current),s())}}),[]),(0,x.jsx)(pi,p(p({},i),{},{onChange:function(e){o.current=e,a.current&&clearTimeout(a.current),a.current=setTimeout(s,r)}}))};function da(e){var t=Ve().state;t.checklist.name!==e&&pn(p(p({},t.checklist),{},{name:e}))}function pa(e){return ha.apply(this,arguments)}function ha(){return(ha=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=void 0,e.prev=1,e.next=4,pxt.Util.fileReadAsTextAsync(t);case 4:r=e.sent,n=JSON.parse(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),ne(Z.unableToReadChecklistFile,e.t0);case 11:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}var va=function(t){var n,r,a,s,l=t.printRef,c=(0,e.useContext)(He).state,f=c.checklist,d=c.projectMetadata,p=f.name,h=u((0,e.useState)(),2),v=h[0],y=h[1],b=function(){var e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent(g.Evaluate),e.next=3,ki(!0);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=(0,Xr.useReactToPrint)({content:function(){return l.current},onPrintError:function(){return $e(_("error",lf("Unable to print evaluation results"),2e3))},documentTitle:"".concat(pxt.Util.sanitizeFileName(ln(c))," - ").concat(pxt.Util.sanitizeFileName((null===(n=c.projectMetadata)||void 0===n?void 0:n.name)||m.UntitledProject))});return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"EvalResultDisplay_header__XkIrv",children:[(0,x.jsxs)("div",{className:Gr,children:[(0,x.jsxs)("div",{className:"EvalResultDisplay_checklist-name-input__wG5OM",children:[(0,x.jsx)("div",{className:S(Gr,"only-print"),children:(0,x.jsx)("h2",{children:p})}),(0,x.jsx)(fa,{className:"no-print",ariaLabel:m.Name,onChange:da,placeholder:m.ChecklistNamePlaceholder,initialValue:p,preserveValueOnBlur:!0,handleInputRef:y,onFocus:function(){return null==v?void 0:v.select()}})]}),d&&(0,x.jsxs)("div",{className:S("EvalResultDisplay_project-details__0IJH+","only-print"),children:[(0,x.jsxs)("div",{className:"EvalResultDisplay_project-text__C+-Wn",children:[(0,x.jsx)("h3",{children:null==c||null===(r=c.projectMetadata)||void 0===r?void 0:r.name}),(0,x.jsx)("p",{children:P(null===(a=c.projectMetadata)||void 0===a?void 0:a.inputText)})]}),(0,x.jsx)("div",{className:"EvalResultDisplay_project-qrcode__Bo6ad",children:(0,x.jsx)(oa,{size:60,value:P(null===(s=c.projectMetadata)||void 0===s?void 0:s.inputText)})})]})]}),(0,x.jsxs)("div",{className:S("EvalResultDisplay_checklist-control-tray__D15BX","no-print"),children:[(0,x.jsx)(ft,{className:S("secondary",Hr),label:m.Export,title:m.ExportChecklist,rightIcon:"fas fa-download",onClick:function(){pxt.tickEvent(g.ExportChecklist),function(e){var t=e.name?pxt.Util.sanitizeFileName(e.name):"",n="".concat(t||lf("unnamed-checklist"),".json"),r=JSON.stringify(e,null,4);try{pxt.BrowserUtils.browserDownloadText(r,n)}catch(e){return ne(Z.unableToExportChecklist,e),!1}}(f)},disabled:!on(c)}),(0,x.jsx)(ft,{className:S("secondary",Hr),label:m.Print,title:m.PrintChecklist,rightIcon:"fas fa-print",onClick:function(){pxt.tickEvent(g.Print),w()}}),(0,x.jsx)(ft,{className:S("primary",Hr),label:m.Evaluate,title:m.EvaluateChecklist,rightIcon:"fas fa-play",onClick:b,disabled:!on(c)})]})]}),(0,x.jsx)("div",{className:$r})]})},ma=function(){var t=(0,e.useContext)(He).state.checklist.criteria;return(0,x.jsx)("div",{className:"EvalResultDisplay_results-list__iAYMf",children:Object.values(t).map((function(e){return(0,x.jsx)(Ki,{criteriaId:e.instanceId},e.instanceId)}))})},ya=function(){return(0,x.jsx)("div",{className:S("EvalResultDisplay_footer__W5dJw","no-print"),children:(0,x.jsx)(ua,{})})},ga=function(e){var t=e.resultsRef;return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:"EvalResultDisplay_eval-results-container__9XZK7",ref:t,children:[(0,x.jsx)(va,{printRef:t}),(0,x.jsx)(ma,{}),(0,x.jsx)(ya,{})]})})},ba=function(){return(0,x.jsxs)($t,{children:[(0,x.jsx)(Wt,{name:"home",children:m.Home}),(0,x.jsx)(Wt,{name:"results",children:m.Checklist})]})},wa=function(e){var t=e.resultsRef;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(qt,{name:"home",children:(0,x.jsx)(Vr,{})}),(0,x.jsx)(qt,{name:"results",children:(0,x.jsx)(ga,{resultsRef:t})})]})},xa=function(){var t=(0,e.useRef)(null);return(0,x.jsxs)("div",{className:"ChecklistWorkspace_panel__MBC+K",children:[(0,x.jsx)(Vt,{left:(0,x.jsx)(ba,{})}),(0,x.jsx)(wa,{resultsRef:t})]})};function Ea(){var e=Ve().dispatch;dn({overwriteExistingEntries:!0}),e({type:"CLEAR_ALL_EVAL_RESULT_NOTES"})}function Sa(e,t){return ka.apply(this,arguments)}function ka(){return(ka=o(i().mark((function e(t,n){var r,a,o,s,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Ve(),a=r.dispatch,o=pxt.Cloud.parseScriptId(n)){e.next=6;break}return _t(_("error",lf("Invalid share link"))),a(Ge(void 0)),e.abrupt("return");case 6:return e.next=8,tt(o);case 8:if(s=e.sent){e.next=13;break}return _t(_("error",lf("Failed to load project"))),a(Ge(void 0)),e.abrupt("return");case 13:if(s.target===pxt.appTarget.id){e.next=17;break}return _t(_("error",lf("That project was built with a different MakeCode editor"))),a(Ge(void 0)),e.abrupt("return");case 17:l=p(p({},s),{},{inputText:t}),a(Ge(l)),Ea(),re("Loaded project metadata",s);case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ca=function(){var t=(0,e.useContext)(He).state.projectMetadata,n=u((0,e.useState)(""),2),r=n[0],i=n[1],a=u((0,e.useState)(!1),2),o=a[0],s=a[1],l=u((0,e.useState)(),2),c=l[0],f=l[1];(0,e.useEffect)((function(){var e=pxt.Cloud.parseScriptId(r);s(!!e&&!(e===(null==t?void 0:t.shortid)||e===(null==t?void 0:t.persistId)))}),[r,null==t?void 0:t.shortid,null==t?void 0:t.persistId]);var d=(0,e.useCallback)((function(){var e=pxt.Cloud.parseScriptId(r);e&&e!==(null==t?void 0:t.shortid)&&e!==(null==t?void 0:t.persistId)&&Sa(r,e)}),[r,null==t?void 0:t.shortid,null==t?void 0:t.persistId]),p=(0,e.useMemo)((function(){return o?"fas fa-arrow-right":void 0}),[o]);return(0,x.jsx)("div",{className:S("ShareLinkInput_share-link-input__fFei9","tt-share-link-input"),children:(0,x.jsx)(pi,{placeholder:lf("Enter Project Link or Share ID"),ariaLabel:lf("Project Link or Share ID"),icon:p,iconTitle:lf("Submit project link or share ID"),onChange:function(e){i(e)},onEnterKey:d,onIconClick:d,onFocus:function(){return null==c?void 0:c.select()},preserveValueOnBlur:!0,autoComplete:!1,handleInputRef:f})})},_a=function(){var t,n,r=(0,e.useContext)(He).state,i=u((0,e.useState)(pxt.Util.guidGen()),2),a=i[0],o=i[1],s=u((0,e.useState)(""),2),l=s[0],c=s[1],f=(0,e.useRef)(null);function d(){o(pxt.Util.guidGen())}return(0,e.useEffect)((function(){var e,t=function(e){var t=pxt.BrowserUtils.isLocalHost()?"http://localhost:3232/index.html":function(e){var t,n;if(!pxt.webConfig&&window.pxtConfig&&pxt.setupWebConfig(window.pxtConfig),null!==(t=pxt.webConfig)&&void 0!==t&&t.targetUrl&&null!==(n=pxt.webConfig)&&void 0!==n&&n.relprefix)return pxt.webConfig.targetUrl+pxt.webConfig.relprefix.substr(0,pxt.webConfig.relprefix.length-3);var r=/\/([\da-zA-Z\.]+)(?:--)?/i.exec(window.location.pathname);return"".concat(e.replace(/\/$/,""),"/").concat((null==r?void 0:r[1])||"")}(window.pxtTargetBundle.appTheme.embedUrl),n=t;"/"!==t.charAt(t.length-1)||pxt.BrowserUtils.isLocalHost()||(n=t.substr(0,t.length-1));var r=e?"#pub:".concat(e):"",i="";return pxt.options.debug&&(i+="&dbg=1"),pxt.analytics.consoleTicks&&(i+="&consoleticks=1"),n+="?controller=1&teachertool=1&readonly=1&ws=mem&nocookiebanner=1&frameid=".concat(a).concat(r).concat(i)}((null===(e=r.projectMetadata)||void 0===e?void 0:e.id)||"");c(t)}),[a,null===(t=r.projectMetadata)||void 0===t?void 0:t.id]),(0,x.jsx)("iframe",{id:"code-eval-project-view-frame",className:S("MakeCodeFrame_makecode-frame__K4VQc",null!==(n=r.projectMetadata)&&void 0!==n&&n.id?void 0:"MakeCodeFrame_invisible__FWWvH"),src:l,title:"title",ref:function(e){f.current=e,e&&function(e,t){if(gi){if(gi.iframe===e)return;gi.dispose(),gi=void 0}e&&((gi=new Ei(e)).addEventListener("message",(function(e){re("Message received from iframe. ID: ".concat(null==e?void 0:e.id),e)})),gi.addEventListener("sent",(function(e){re("Sent message to iframe. ID: ".concat(null==e?void 0:e.id),e)})),gi.addEventListener("serviceworkerregistered",(function(e){re("Service worker registered. Reloading iframe."),t()})),gi.addEventListener("editorcontentloaded",(function(e){var t=Ve().state,n=t.runOnLoad,r=t.projectMetadata;n&&r&&ki(!0),function(){Si.apply(this,arguments)}()})),gi.setHighContrast(!1))}(e,d)}})},Ta={"criteria-display":"ReadonlyCriteriaDisplay_criteria-display__HTFDh","criteria-template":"ReadonlyCriteriaDisplay_criteria-template__bw5da","plain-text-segment":"ReadonlyCriteriaDisplay_plain-text-segment__Ear1R","param-segment":"ReadonlyCriteriaDisplay_param-segment__IwtzK","criteria-description":"ReadonlyCriteriaDisplay_criteria-description__G8hLB"},Pa=function(t){var n=t.catalogCriteria,r=t.criteriaInstance,i=t.showDescription,a=(0,e.useContext)(He).state;function o(e){var t;return r&&"plain-text"!==e.type?null!==(t=function(e,t,n){var r,i,a=nn(e,t);return null==a||null===(r=a.params)||void 0===r||null===(i=r.find((function(e){return e.name===n})))||void 0===i?void 0:i.value}(a,r.instanceId,e.content))&&void 0!==t?t:"":e.content}var s=(0,e.useMemo)((function(){return O(n.template)}),[n.template]);return(0,x.jsxs)("div",{className:Ta["criteria-display"],children:[n.template&&(0,x.jsx)("div",{className:Ta["criteria-template"],children:s.map((function(e,t){return(0,x.jsx)("span",{className:Ta["".concat(e.type,"-segment")],children:o(e)},t)}))}),i&&n.description&&(0,x.jsx)("div",{className:Ta["criteria-description"],children:n.description})]})},Oa=e.createContext(null),ja=e.createContext(null),Aa=function(t){var n=t.multiExpand,r=t.defaultExpandedIds,i=t.children,a=u(e.useReducer(Ia,{expanded:null!=r?r:[],multiExpand:n}),2),o=a[0],s=a[1];return(0,x.jsx)(Oa.Provider,{value:o,children:(0,x.jsx)(ja.Provider,{value:s,children:i})})};function Ia(e,t){switch(t.type){case"SET_EXPANDED":return p(p({},e),{},{expanded:e.multiExpand?[].concat(N(e.expanded),[t.id]):[t.id]});case"REMOVE_EXPANDED":return p(p({},e),{},{expanded:e.expanded.filter((function(e){return e!==t.id}))})}}var Na=Object.assign((function(e){var t=e.children,n=e.id,r=e.className,i=e.ariaLabel,a=e.ariaHidden,o=e.ariaDescribedBy,s=e.role,l=e.multiExpand,u=e.defaultExpandedIds;return(0,x.jsx)(Aa,{multiExpand:l,defaultExpandedIds:u,children:(0,x.jsx)("div",{className:S("common-accordion",r),id:n,"aria-label":i,"aria-hidden":a,"aria-describedby":o,role:s,children:t})})}),{Header:function(e){var t=e.id,n=e.className,r=e.ariaLabel,i=e.children;return(0,x.jsx)("div",{id:t,className:S("common-accordion-header",n),"aria-label":r,children:i})},Item:function(t){var n=t.children,r=t.id,i=t.className,a=t.ariaLabel,o=t.ariaHidden,s=t.ariaDescribedBy,l=t.role,u=t.noChevron,c=t.itemId,f=t.onExpandToggled,d=e.useContext(Oa).expanded,p=e.useContext(ja),h=null!=c?c:e.useMemo((function(){return pxt.Util.guidGen()}),[]),v=e.Children.toArray(n),m=-1!==d.indexOf(h),y=e.useCallback((function(){p(m?function(e){return{type:"REMOVE_EXPANDED",id:e}}(h):function(e){return{type:"SET_EXPANDED",id:e}}(h)),null==f||f(!m)}),[m]);return(0,x.jsxs)("div",{className:S("common-accordion",i),id:r,"aria-label":a,"aria-hidden":o,"aria-describedby":s,role:l,children:[(0,x.jsx)("button",{className:"common-accordion-header-outer","aria-expanded":m,"aria-controls":h,onClick:y,onKeyDown:E,children:(0,x.jsxs)("div",{children:[!u&&(0,x.jsx)("div",{className:"common-accordion-chevron",children:(0,x.jsx)("i",{className:S("fas",m?"fa-chevron-down":"fa-chevron-right"),"aria-hidden":!0})}),(0,x.jsx)("div",{className:"common-accordion-header-content",children:v[0]})]})}),(0,x.jsx)("div",{id:h,className:"common-accordion-panel-outer",style:{display:m?"block":"none"},children:m&&v[1]})]})},Panel:function(e){var t=e.id,n=e.className,r=e.ariaLabel,i=e.children;return(0,x.jsx)("div",{id:t,className:S("common-accordion-body",n),"aria-label":r,children:i})}}),Ra="CatalogOverlay_hide-indicator__yApKo",La=function(e){var t=e.onClose;return(0,x.jsxs)("div",{className:"CatalogOverlay_header__sjmbq",children:[(0,x.jsx)("span",{className:"CatalogOverlay_title__onPIB",children:m.SelectCriteriaDescription}),(0,x.jsx)(ft,{className:"CatalogOverlay_close-button__b7Lzu",rightIcon:"fas fa-times-circle",onClick:t,title:m.Close})]})},Ma=function(e){var t=e.catalogCriteria,n=e.isMaxed,r=e.recentlyAdded&&!n;return(0,x.jsxs)("div",{className:"CatalogOverlay_catalog-item-label__0zJI4",children:[(0,x.jsx)("div",{className:"CatalogOverlay_action-indicators__UIaXM",children:n?(0,x.jsx)("span",{children:m.Max}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("i",{className:S("fas fa-check","CatalogOverlay_recently-added-indicator__4roV1",r?void 0:Ra),title:lf("Added!")}),(0,x.jsx)("i",{className:S("fas fa-plus",r?Ra:void 0),title:m.AddToChecklist})]})}),(0,x.jsx)(Pa,{catalogCriteria:t,showDescription:!0})]})},Da=function(t){var n=t.catalogCriteria,r=t.recentlyAddedIds,i=t.onItemClicked,a=(0,e.useContext)(He).state.checklist.criteria.filter((function(e){return e.catalogCriteriaId===n.id})).length,o=void 0!==n.maxCount&&a>=n.maxCount;return n.template?(0,x.jsx)(ft,{title:j(n),className:"CatalogOverlay_catalog-item__jSGMy",label:(0,x.jsx)(Ma,{catalogCriteria:n,isMaxed:o,recentlyAdded:void 0!==r[n.id]}),onClick:function(){return i(n)},disabled:o},n.id):null},Fa=function(){var t=(0,e.useContext)(He).state,n=u((0,e.useState)({}),2),r=n[0],i=n[1],a=(0,e.useMemo)((function(){var e,n={};return null===(e=function(e){var t,n;return null!==(t=null===(n=e.catalog)||void 0===n?void 0:n.filter((function(e){return!e.hideInCatalog})))&&void 0!==t?t:[]}(t))||void 0===e||e.forEach((function(e){if(e.tags&&0!==e.tags.length){var t=e.tags[0];n[t]||(n[t]=[]),n[t].push(e)}else ne(Z.missingTag,{message:"Catalog criteria missing tag",criteria:e})})),n}),[t.catalog]);function o(e,t){i((function(n){var r=p({},n);return t?r[e]=t:delete r[e],r}))}function s(e){!function(e){var t,n,r=Ve(),i=r.state,a=(r.dispatch,p(p({},i.checklist),{},{criteria:N(null!==(t=i.checklist.criteria)&&void 0!==t?t:[])})),o=v(e);try{for(o.s();!(n=o.n()).done;){var s,l=n.value,u=tn(l);if(u){var c=null===(s=u.params)||void 0===s?void 0:s.map((function(e){return{name:e.name,value:e.default}})),f=h();re("Adding criteria with Catalog ID '".concat(l,"' and Instance ID '").concat(f,"'"));var d={catalogCriteriaId:l,instanceId:f,params:c};a.criteria.push(d)}else ne(Z.addingMissingCriteria,"Attempting to add criteria with unrecognized id",{id:l})}}catch(e){o.e(e)}finally{o.f()}pn(a),pxt.tickEvent(g.AddCriteria,{ids:JSON.stringify(e)})}([e.id]),r[e.id]&&clearTimeout(r[e.id]);var t,n=setTimeout((function(){o(e.id,void 0)}),500);o(e.id,n),t=lf("Added '{0}' to checklist.",j(e)),(0,Ve().dispatch)(function(e){return{type:"SET_SCREEN_READER_ANNOUNCEMENT",announcement:e}}(t))}function l(e){return"accordion-item-".concat(e)}var c=Object.keys(a);if(0===c.length)return ne(Z.noCatalogCriteria),null;var f=Oe();f||(Ae(c[0]),f=[c[0]]);var d=f.map((function(e){return l(e)}));return(0,x.jsx)(Na,{className:"CatalogOverlay_catalog-list__xYFxU",multiExpand:!0,defaultExpandedIds:d,children:c.map((function(e){return(0,x.jsxs)(Na.Item,{itemId:l(e),onExpandToggled:function(t){return function(e,t){t?Ae(e):function(e){var t=Oe();if(t){var n=t.indexOf(e);-1!==n&&(t.splice(n,1),je(t))}else je([])}(e)}(e,t)},children:[(0,x.jsx)(Na.Header,{children:e}),(0,x.jsx)(Na.Panel,{children:a[e].map((function(e){return(0,x.jsx)(Da,{catalogCriteria:e,recentlyAddedIds:r,onItemClicked:s},"catalog-item-".concat(e.id))}))})]},l(e))}))})},Ba=function(t){return sa(t),(0,e.useContext)(He).state.catalogOpen?(0,x.jsx)(ht,{onEscape:function(){},children:(0,x.jsx)("div",{className:"CatalogOverlay_catalog-overlay__dPVh1",children:(0,x.jsxs)("div",{className:"CatalogOverlay_catalog-content-container__opkVF",children:[(0,x.jsx)(La,{onClose:function(){la(!1)}}),(0,x.jsx)(Fa,{})]})})}):null};var Ua=function(){var t=function(e){var t;if(e.projectMetadata)return null!==(t=e.projectMetadata.name)&&void 0!==t?t:m.UntitledProject}((0,e.useContext)(He).state);return t?(0,x.jsx)("div",{className:"ProjectWorkspace_projectName__DC+1K",children:t}):null},za=function(){var t=(0,e.useContext)(He).state.runOnLoad;return(0,x.jsx)(Vt.ControlGroup,{children:(0,x.jsx)(Vt.Toggle,{label:m.RunOnLoad,title:m.RunOnLoadDescription,isChecked:t,onToggle:function(e){pxt.tickEvent(g.RunOnLoad,{checked:e?"true":"false"}),function(e){(0,Ve().dispatch)(function(e){return{type:"SET_RUN_ON_LOAD",runOnLoad:e}}(e)),function(e){try{ce(ae,e.toString())}catch(e){ne(Z.localStorageWriteError,e)}}(e)}(e)}})})},Va=function(){return(0,x.jsxs)("div",{className:"ProjectWorkspace_panel__FKcHF",children:[(0,x.jsx)(Ba,{}),(0,x.jsx)(Vt,{left:(0,x.jsx)(Ua,{}),right:(0,x.jsx)(za,{})}),(0,x.jsx)(Ca,{}),(0,x.jsx)(_a,{})]})},Ha=function(){var e=function(){try{var e;return null!==(e=ue(se))&&void 0!==e?e:""}catch(e){return ne(Z.localStorageReadError,e),""}}();return(0,x.jsx)("div",{className:"MainPanel_main-panel__ZlyxZ",children:(0,x.jsx)(Ut,{split:"vertical",defaultSize:"50%",startingSize:e,primary:"left",left:(0,x.jsx)(xa,{}),right:(0,x.jsx)(Va,{}),leftMinSize:"5rem",rightMinSize:"5rem",onResizeEnd:function(e){!function(e){try{ce(se,e)}catch(e){ne(Z.localStorageWriteError,e)}}(e.toString())}})})},Wa=function(e,t){return(Wa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function $a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var qa=function(){return(qa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ga(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Xa(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Ya(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,n(7490);var Ka=1/60*1e3,Qa="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},Ja="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(Qa())}),Ka)},Za=!0,eo=!1,to=!1,no={delta:0,timestamp:0},ro=["read","update","preRender","render","postRender"],io=ro.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:function(e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),a&&i&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(e){if(i)a=!0;else{i=!0;var l=[n,t];if(t=l[0],(n=l[1]).length=0,r=t.length)for(var u=0;u<r;u++){var c=t[u];c(e),o.has(c)&&(s.schedule(c),eo=!0)}i=!1,a&&(a=!1,s.process(e))}}};return s}(),e}),{}),ao=ro.reduce((function(e,t){var n=io[t];return e[t]=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return eo||co(),n.schedule(e,t,r)},e}),{}),oo=ro.reduce((function(e,t){return e[t]=io[t].cancel,e}),{}),so=ro.reduce((function(e,t){return e[t]=function(){return io[t].process(no)},e}),{}),lo=function(e){return io[e].process(no)},uo=function e(t){eo=!1,no.delta=Za?Ka:Math.max(Math.min(t-no.timestamp,40),1),no.timestamp=t,to=!0,ro.forEach(lo),to=!1,eo&&(Za=!1,Ja(e))},co=function(){eo=!0,Za=!0,to||Ja(uo)},fo=function(){return no},po=ao,ho="undefined"!=typeof document,vo=ho?e.useLayoutEffect:e.useEffect;function mo(){var t=(0,e.useRef)(!1);return vo((function(){return t.current=!0,function(){t.current=!1}}),[]),t}var yo=(0,e.createContext)(null);function go(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}var bo=0,wo=function(){return bo++},xo=function(){return go(wo)},Eo=function(t){var n=t.children,r=t.initial,i=t.isPresent,a=t.onExitComplete,o=t.custom,s=t.presenceAffectsLayout,l=go(So),u=xo(),c=(0,e.useMemo)((function(){return{id:u,initial:r,isPresent:i,custom:o,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),s?void 0:[i]);return(0,e.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[i]),e.useEffect((function(){!i&&!l.size&&(null==a||a())}),[i]),e.createElement(yo.Provider,{value:c},n)};function So(){return new Map}var ko=(0,e.createContext)({});function Co(t){return(0,e.useEffect)((function(){return function(){return t()}}),[])}n(8466);var _o=function(e){return e.key||""},To=function(t){var n=t.children,r=t.custom,i=t.initial,a=void 0===i||i,o=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,u=void 0===l||l,c=Xa(function(){var t=mo(),n=Xa((0,e.useState)(0),2),r=n[0],i=n[1],a=(0,e.useCallback)((function(){t.current&&i(r+1)}),[r]);return[(0,e.useCallback)((function(){return po.postRender(a)}),[a]),r]}(),1)[0],f=(0,e.useContext)(ko).forceRender;f&&(c=f);var d=mo(),p=function(t){var n=[];return e.Children.forEach(t,(function(t){(0,e.isValidElement)(t)&&n.push(t)})),n}(n),h=p,v=new Set,m=(0,e.useRef)(h),y=(0,e.useRef)(new Map).current,g=(0,e.useRef)(!0);if(vo((function(){g.current=!1,function(e,t){e.forEach((function(e){var n=_o(e);t.set(n,e)}))}(p,y),m.current=h})),Co((function(){g.current=!0,y.clear(),v.clear()})),g.current)return e.createElement(e.Fragment,null,h.map((function(t){return e.createElement(Eo,{key:_o(t),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:u},t)})));h=Ya([],Xa(h),!1);for(var b=m.current.map(_o),w=p.map(_o),x=b.length,E=0;E<x;E++){var S=b[E];-1===w.indexOf(S)&&v.add(S)}return s&&v.size&&(h=[]),v.forEach((function(t){if(-1===w.indexOf(t)){var n=y.get(t);if(n){var i=b.indexOf(t);h.splice(i,0,e.createElement(Eo,{key:_o(n),isPresent:!1,onExitComplete:function(){y.delete(t),v.delete(t);var e=m.current.findIndex((function(e){return e.key===t}));if(m.current.splice(e,1),!v.size){if(m.current=p,!1===d.current)return;c(),o&&o()}},custom:r,presenceAffectsLayout:u},n))}}})),h=h.map((function(t){var n=t.key;return v.has(n)?t:e.createElement(Eo,{key:_o(t),isPresent:!0,presenceAffectsLayout:u},t)})),e.createElement(e.Fragment,null,v.size?h:h.map((function(t){return(0,e.cloneElement)(t)})))},Po=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Oo={measureLayout:Po(["layout","layoutId","drag"]),animation:Po(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Po(["exit"]),drag:Po(["drag","dragControls"]),focus:Po(["whileFocus"]),hover:Po(["whileHover","onHoverStart","onHoverEnd"]),tap:Po(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Po(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Po(["whileInView","onViewportEnter","onViewportLeave"])},jo=(0,e.createContext)({strict:!1}),Ao=Object.keys(Oo),Io=Ao.length,No=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Ro=(0,e.createContext)({}),Lo={current:null},Mo=!1;function Do(t,n,r,i){var a=(0,e.useContext)(jo),o=(0,e.useContext)(Ro).visualElement,s=(0,e.useContext)(yo),l=function(){var t=(!Mo&&function(){if(Mo=!0,ho)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Lo.current=e.matches};e.addListener(t),t()}else Lo.current=!1}(),Xa((0,e.useState)(Lo.current),1)[0]),n=(0,e.useContext)(No).reducedMotion;return"never"!==n&&("always"===n||t)}(),u=(0,e.useRef)(void 0);i||(i=a.renderer),!u.current&&i&&(u.current=i(t,{visualState:n,parent:o,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:l}));var c=u.current;return vo((function(){null==c||c.syncRender()})),(0,e.useEffect)((function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()})),vo((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function Fo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Bo(e){return Array.isArray(e)}function Uo(e){return"string"==typeof e||Bo(e)}function zo(e,t,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Vo(e,t,n){var r=e.getProps();return zo(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function Ho(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Uo(e.initial)||Uo(e.animate)||Uo(e.whileHover)||Uo(e.whileDrag)||Uo(e.whileTap)||Uo(e.whileFocus)||Uo(e.exit)}function Wo(e){return Boolean(Ho(e)||e.variants)}function $o(e){return Array.isArray(e)?e.join(" "):e}var qo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Go=1,Xo=(0,e.createContext)({}),Yo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $a(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(e.Component);function Ko(t){var n=t.preloadedFeatures,r=t.createVisualElement,i=t.projectionNodeConstructor,a=t.useRender,o=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Oo.projectionNodeConstructor=e[t]:Oo[t].Component=e[t])}(n),(0,e.forwardRef)((function(t,n){var l=function(t){var n,r=t.layoutId,i=null===(n=(0,e.useContext)(ko))||void 0===n?void 0:n.id;return i&&void 0!==r?i+"-"+r:r}(t);t=qa(qa({},t),{layoutId:l});var u=(0,e.useContext)(No),c=null,f=function(t){var n=function(e,t){if(Ho(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Uo(n)?n:void 0,animate:Uo(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(Ro)),r=n.initial,i=n.animate;return(0,e.useMemo)((function(){return{initial:r,animate:i}}),[$o(r),$o(i)])}(t),d=u.isStatic?void 0:go((function(){if(qo.hasEverUpdated)return Go++})),p=o(t,u.isStatic);return!u.isStatic&&ho&&(f.visualElement=Do(s,p,qa(qa({},u),t),r),function(t,n,r,i){var a,o=n.layoutId,s=n.layout,l=n.drag,u=n.dragConstraints,c=n.layoutScroll,f=(0,e.useContext)(Xo);i&&r&&!(null==r?void 0:r.projection)&&(r.projection=new i(t,r.getLatestValues(),null===(a=r.parent)||void 0===a?void 0:a.projection),r.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(l)||u&&Fo(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,t,f.visualElement,i||Oo.projectionNodeConstructor),c=function(t,n,r){var i=[];(0,e.useContext)(jo);if(!n)return null;for(var a=0;a<Io;a++){var o=Ao[a],s=Oo[o],l=s.isEnabled,u=s.Component;l(t)&&u&&i.push(e.createElement(u,qa({key:o},t,{visualElement:n})))}return i}(t,f.visualElement)),e.createElement(Yo,{visualElement:f.visualElement,props:qa(qa({},u),t)},c,e.createElement(Ro.Provider,{value:f},a(s,t,d,function(t,n,r){return(0,e.useCallback)((function(e){var i;e&&(null===(i=t.mount)||void 0===i||i.call(t,e)),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Fo(r)&&(r.current=e))}),[n])}(p,f.visualElement,n),p,u.isStatic,f.visualElement)))}))}var Qo=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Jo(e){return"string"==typeof e&&!e.includes("-")&&!!(Qo.indexOf(e)>-1||/[A-Z]/.test(e))}var Zo={},es=["","X","Y","Z"],ts=["transformPerspective","x","y","z"];function ns(e,t){return ts.indexOf(e)-ts.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return es.forEach((function(t){return ts.push(e+t)}))}));var rs=new Set(ts);function is(e){return rs.has(e)}var as=new Set(["originX","originY","originZ"]);function os(e){return as.has(e)}function ss(e,t){var n=t.layout,r=t.layoutId;return is(e)||os(e)||(n||void 0!==r)&&(!!Zo[e]||"opacity"===e)}var ls=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},us={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function cs(e){return e.startsWith("--")}var fs=function(e,t){return t&&"number"==typeof e?t.transform(e):e},ds=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},ps=function(e){return e%1?Number(e.toFixed(5)):e},hs=/(-)?([\d]*\.?[\d])+/g,vs=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ms=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ys(e){return"string"==typeof e}var gs=function(e){return{test:function(t){return ys(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return"".concat(t).concat(e)}}},bs=gs("deg"),ws=gs("%"),xs=gs("px"),Es=gs("vh"),Ss=gs("vw"),ks=Object.assign(Object.assign({},ws),{parse:function(e){return ws.parse(e)/100},transform:function(e){return ws.transform(100*e)}}),Cs={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},_s=Object.assign(Object.assign({},Cs),{transform:ds(0,1)}),Ts=Object.assign(Object.assign({},Cs),{default:1}),Ps=qa(qa({},Cs),{transform:Math.round}),Os={borderWidth:xs,borderTopWidth:xs,borderRightWidth:xs,borderBottomWidth:xs,borderLeftWidth:xs,borderRadius:xs,radius:xs,borderTopLeftRadius:xs,borderTopRightRadius:xs,borderBottomRightRadius:xs,borderBottomLeftRadius:xs,width:xs,maxWidth:xs,height:xs,maxHeight:xs,size:xs,top:xs,right:xs,bottom:xs,left:xs,padding:xs,paddingTop:xs,paddingRight:xs,paddingBottom:xs,paddingLeft:xs,margin:xs,marginTop:xs,marginRight:xs,marginBottom:xs,marginLeft:xs,rotate:bs,rotateX:bs,rotateY:bs,rotateZ:bs,scale:Ts,scaleX:Ts,scaleY:Ts,scaleZ:Ts,skew:bs,skewX:bs,skewY:bs,distance:xs,translateX:xs,translateY:xs,translateZ:xs,x:xs,y:xs,z:xs,perspective:xs,transformPerspective:xs,opacity:_s,originX:ks,originY:ks,originZ:xs,zIndex:Ps,fillOpacity:_s,strokeOpacity:_s,numOctaves:Ps};function js(e,t,n,r){var i,a=e.style,o=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,f=!1,d=!0;for(var p in t){var h=t[p];if(cs(p))o[p]=h;else{var v=Os[p],m=fs(h,v);if(is(p)){if(c=!0,s[p]=m,l.push(p),!d)continue;h!==(null!==(i=v.default)&&void 0!==i?i:0)&&(d=!1)}else os(p)?(u[p]=m,f=!0):a[p]=m}}c?a.transform=function(e,t,n,r){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=void 0===o||o,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(ns);for(var f=!1,d=a.length,p=0;p<d;p++){var h=a[p];c+="".concat(us[h]||h,"(").concat(i[h],") "),"z"===h&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):u&&n&&(c="none"),c}(e,n,d,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,a=e.originZ,o=void 0===a?0:a;return"".concat(n," ").concat(i," ").concat(o)}(u))}var As=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Is(e,t,n){for(var r in t)ls(t[r])||ss(r,n)||(e[r]=t[r])}function Ns(t,n,r){var i={};return Is(i,t.style||{},t),Object.assign(i,function(t,n,r){var i=t.transformTemplate;return(0,e.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};js(e,n,{enableHardwareAcceleration:!r},i);var t=e.style;return qa(qa({},e.vars),t)}),[n])}(t,n,r)),t.transformValues&&(i=t.transformValues(i)),i}function Rs(e,t,n){var r={},i=Ns(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var Ls=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Ms(e){return Ls.has(e)}var Ds,Fs=function(e){return!Ms(e)};try{(Ds=require("@emotion/is-prop-valid").default)&&(Fs=function(e){return e.startsWith("on")?!Ms(e):Ds(e)})}catch(e){}function Bs(e,t,n){return"string"==typeof e?e:xs.transform(t+n*e)}var Us={offset:"stroke-dashoffset",array:"stroke-dasharray"},zs={offset:"strokeDashoffset",array:"strokeDasharray"};function Vs(e,t,n,r){var i=t.attrX,a=t.attrY,o=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,f=t.pathOffset,d=void 0===f?0:f;js(e,Ga(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,v=e.dimensions;p.transform&&(v&&(h.transform=p.transform),delete p.transform),v&&(void 0!==o||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=Bs(t,e.x,e.width),i=Bs(n,e.y,e.height);return"".concat(r," ").concat(i)}(v,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==a&&(p.y=a),void 0!==l&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var a=i?Us:zs;e[a.offset]=xs.transform(-r);var o=xs.transform(t),s=xs.transform(n);e[a.array]="".concat(o," ").concat(s)}(p,l,c,d,!1)}var Hs=function(){return qa(qa({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Ws(t,n){var r=(0,e.useMemo)((function(){var e=Hs();return Vs(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),qa(qa({},e.attrs),{style:qa({},e.style)})}),[n]);if(t.style){var i={};Is(i,t.style,t),r.style=qa(qa({},i),r.style)}return r}function $s(t){return void 0===t&&(t=!1),function(n,r,i,a,o,s){var l=o.latestValues,u=(Jo(n)?Ws:Rs)(r,l,s),c=function(e,t,n){var r={};for(var i in e)(Fs(i)||!0===n&&Ms(i)||!t&&!Ms(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,t),f=qa(qa(qa({},c),u),{ref:a});return i&&(f["data-projection-id"]=i),(0,e.createElement)(n,f)}}var qs=/([a-z])([A-Z])/g,Gs=function(e){return e.replace(qs,"$1-$2").toLowerCase()};function Xs(e,t,n,r){var i=t.style,a=t.vars;for(var o in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(o,a[o])}var Ys=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Ks(e,t,n,r){for(var i in Xs(e,t,void 0,r),t.attrs)e.setAttribute(Ys.has(i)?i:Gs(i),t.attrs[i])}function Qs(e){var t=e.style,n={};for(var r in t)(ls(t[r])||ss(r,e))&&(n[r]=t[r]);return n}function Js(e){var t=Qs(e);for(var n in e)ls(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Zs(e){return"object"==typeof e&&"function"==typeof e.start}var el=function(e){return Array.isArray(e)},tl=function(e){return el(e)?e[e.length-1]||0:e};function nl(e){var t=ls(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function rl(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:al(t,n,r,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var il=function(t){return function(n,r){var i=(0,e.useContext)(Ro),a=(0,e.useContext)(yo);return r?rl(t,n,i,a):go((function(){return rl(t,n,i,a)}))}};function al(e,t,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(e);for(var s in o)i[s]=nl(o[s]);var l=e.initial,u=e.animate,c=Ho(e),f=Wo(e);t&&f&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var d=a||!1===l,p=d?u:l;return p&&"boolean"!=typeof p&&!Zs(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=zo(e,t);if(n){var r=n.transitionEnd;n.transition;var a=Ga(n,["transitionEnd","transition"]);for(var o in a){var s=a[o];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(i[o]=s)}for(var o in r)i[o]=r[o]}})),i}var ol,sl={useVisualState:il({scrapeMotionValuesFromProps:Js,createRenderState:Hs,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Vs(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),Ks(t,r)}})},ll={useVisualState:il({scrapeMotionValuesFromProps:Qs,createRenderState:As})};function ul(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function cl(t,n,r,i){(0,e.useEffect)((function(){var e=t.current;if(r&&e)return ul(e,n,r,i)}),[t,n,r,i])}function fl(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function dl(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(ol||(ol={}));var pl={pageX:0,pageY:0};function hl(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||pl;return{x:n[t+"X"],y:n[t+"Y"]}}function vl(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ml(e,t){return void 0===t&&(t="page"),{point:dl(e)?hl(e,t):vl(e,t)}}var yl=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,ml(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},gl={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},bl={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function wl(e){return ho&&null===window.onpointerdown?e:ho&&null===window.ontouchstart?bl[e]:ho&&null===window.onmousedown?gl[e]:e}function xl(e,t,n,r){return ul(e,wl(t),yl(n,"pointerdown"===t),r)}function El(e,t,n,r){return cl(e,wl(t),n&&yl(n,"pointerdown"===t),r)}function Sl(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var kl=Sl("dragHorizontal"),Cl=Sl("dragVertical");function _l(e){var t=!1;if("y"===e)t=Cl();else if("x"===e)t=kl();else{var n=kl(),r=Cl();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Tl(){var e=_l(!0);return!e||(e(),!1)}function Pl(e,t,n){return function(r,i){var a;fl(r)&&!Tl()&&(null===(a=e.animationState)||void 0===a||a.setActive(ol.Hover,t),null==n||n(r,i))}}var Ol=function e(t,n){return!!n&&(t===n||e(t,n.parentElement))},jl=function(e,t){return function(n){return t(e(n))}},Al=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(jl)},Il=(n(8466),new Set,new WeakMap),Nl=new WeakMap,Rl=function(e){var t;null===(t=Il.get(e.target))||void 0===t||t(e)},Ll=function(e){e.forEach(Rl)};var Ml={some:0,all:1};function Dl(t,n,r,i){var a=i.root,o=i.margin,s=i.amount,l=void 0===s?"some":s,u=i.once;(0,e.useEffect)((function(){if(t){var e={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof l?l:Ml[l]};return function(e,t,n){var r=function(e){var t=e.root,n=Ga(e,["root"]),r=t||document;Nl.has(r)||Nl.set(r,{});var i=Nl.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(Ll,qa({root:t},n))),i[a]}(t);return Il.set(e,n),r.observe(e),function(){Il.delete(e),r.unobserve(e)}}(r.getInstance(),e,(function(e){var t,i=e.isIntersecting;if(n.isInView!==i&&(n.isInView=i,!u||i||!n.hasEnteredView)){i&&(n.hasEnteredView=!0),null===(t=r.animationState)||void 0===t||t.setActive(ol.InView,i);var a=r.getProps(),o=i?a.onViewportEnter:a.onViewportLeave;null==o||o(e)}}))}}),[t,a,o,l])}function Fl(t,n,r,i){var a=i.fallback,o=void 0===a||a;(0,e.useEffect)((function(){t&&o&&requestAnimationFrame((function(){var e;n.hasEnteredView=!0;var t=r.getProps().onViewportEnter;null==t||t(null),null===(e=r.animationState)||void 0===e||e.setActive(ol.InView,!0)}))}),[t])}var Bl=function(e){return function(t){return e(t),null}},Ul={inView:Bl((function(t){var n=t.visualElement,r=t.whileInView,i=t.onViewportEnter,a=t.onViewportLeave,o=t.viewport,s=void 0===o?{}:o,l=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||i||a);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Fl:Dl)(u,l.current,n,s)})),tap:Bl((function(t){var n=t.onTap,r=t.onTapStart,i=t.onTapCancel,a=t.whileTap,o=t.visualElement,s=n||r||i||a,l=(0,e.useRef)(!1),u=(0,e.useRef)(null),c={passive:!(r||n||i||v)};function f(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function d(){var e;return f(),l.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(ol.Tap,!1),!Tl()}function p(e,t){d()&&(Ol(o.getInstance(),e.target)?null==n||n(e,t):null==i||i(e,t))}function h(e,t){d()&&(null==i||i(e,t))}function v(e,t){var n;f(),l.current||(l.current=!0,u.current=Al(xl(window,"pointerup",p,c),xl(window,"pointercancel",h,c)),null===(n=o.animationState)||void 0===n||n.setActive(ol.Tap,!0),null==r||r(e,t))}El(o,"pointerdown",s?v:void 0,c),Co(f)})),focus:Bl((function(e){var t=e.whileFocus,n=e.visualElement;cl(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ol.Focus,!0)}:void 0),cl(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ol.Focus,!1)}:void 0)})),hover:Bl((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;El(i,"pointerenter",t||r?Pl(i,!0,t):void 0,{passive:!t}),El(i,"pointerleave",n||r?Pl(i,!1,n):void 0,{passive:!n})}))};function zl(){var t=(0,e.useContext)(yo);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,i=t.register,a=xo();return(0,e.useEffect)((function(){return i(a)}),[]),!n&&r?[!1,function(){return null==r?void 0:r(a)}]:[!0]}function Vl(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Hl=function(e,t,n){return Math.min(Math.max(n,e),t)},Wl=.001;var $l=12;function ql(e,t){return e*Math.sqrt(1-t*t)}var Gl=["duration","bounce"],Xl=["stiffness","damping","mass"];function Yl(e,t){return t.some((function(t){return void 0!==e[t]}))}function Kl(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.restSpeed,o=void 0===a?2:a,s=e.restDelta,l=Ga(e,["from","to","restSpeed","restDelta"]),u={done:!1,value:n},c=function(e){var t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Yl(e,Xl)&&Yl(e,Gl)){var n=function(e){var t,n,r=e.duration,i=void 0===r?800:r,a=e.bounce,o=void 0===a?.25:a,s=e.velocity,l=void 0===s?0:s,u=e.mass,c=void 0===u?1:u,f=1-o;f=Hl(.05,1,f),i=Hl(.01,10,i/1e3),f<1?(t=function(e){var t=e*f,n=t*i,r=t-l,a=ql(e,f),o=Math.exp(-n);return Wl-r/a*o},n=function(e){var n=e*f*i,r=n*l+l,a=Math.pow(f,2)*Math.pow(e,2)*i,o=Math.exp(-n),s=ql(Math.pow(e,2),f);return(-t(e)+Wl>0?-1:1)*((r-a)*o)/s}):(t=function(e){return Math.exp(-e*i)*((e-l)*i+1)-Wl},n=function(e){return Math.exp(-e*i)*(i*i*(l-e))});var d=function(e,t,n){for(var r=n,i=1;i<$l;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var p=Math.pow(d,2)*c;return{stiffness:p,damping:2*f*Math.sqrt(c*p),duration:i}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(l),f=c.stiffness,d=c.damping,p=c.mass,h=c.velocity,v=c.duration,m=c.isResolvedFromDuration,y=Ql,g=Ql;function b(){var e=h?-h/1e3:0,t=i-n,r=d/(2*Math.sqrt(f*p)),a=Math.sqrt(f/p)/1e3;if(void 0===s&&(s=Math.min(Math.abs(i-n)/100,.4)),r<1){var o=ql(a,r);y=function(n){var s=Math.exp(-r*a*n);return i-s*((e+r*a*t)/o*Math.sin(o*n)+t*Math.cos(o*n))},g=function(n){var i=Math.exp(-r*a*n);return r*a*i*(Math.sin(o*n)*(e+r*a*t)/o+t*Math.cos(o*n))-i*(Math.cos(o*n)*(e+r*a*t)-o*t*Math.sin(o*n))}}else if(1===r)y=function(n){return i-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var l=a*Math.sqrt(r*r-1);y=function(n){var o=Math.exp(-r*a*n),s=Math.min(l*n,300);return i-o*((e+r*a*t)*Math.sinh(s)+l*t*Math.cosh(s))/l}}}return b(),{next:function(e){var t=y(e);if(m)u.done=e>=v;else{var n=1e3*g(e),r=Math.abs(n)<=o,a=Math.abs(i-t)<=s;u.done=r&&a}return u.value=u.done?i:t,u},flipTarget:function(){h=-h;var e=[i,n];n=e[0],i=e[1],b()}}}Kl.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Ql=function(e){return 0},Jl=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},Zl=function(e,t,n){return-n*e+n*t+e},eu=function(e,t){return function(n){return Boolean(ys(n)&&ms.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},tu=function(e,t,n){return function(r){var i;if(!ys(r))return r;var a=u(r.match(hs),4),o=a[0],s=a[1],l=a[2],c=a[3];return f(i={},e,parseFloat(o)),f(i,t,parseFloat(s)),f(i,n,parseFloat(l)),f(i,"alpha",void 0!==c?parseFloat(c):1),i}},nu=ds(0,255),ru=Object.assign(Object.assign({},Cs),{transform:function(e){return Math.round(nu(e))}}),iu={test:eu("rgb","red"),parse:tu("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,a=void 0===i?1:i;return"rgba("+ru.transform(t)+", "+ru.transform(n)+", "+ru.transform(r)+", "+ps(_s.transform(a))+")"}},au={test:eu("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:iu.transform},ou={test:eu("hsl","hue"),parse:tu("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,a=void 0===i?1:i;return"hsla("+Math.round(t)+", "+ws.transform(ps(n))+", "+ws.transform(ps(r))+", "+ps(_s.transform(a))+")"}};function su(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lu(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;t/=360,r/=100;var a=0,o=0,s=0;if(n/=100){var l=r<.5?r*(1+n):r+n-r*n,u=2*r-l;a=su(u,l,t+1/3),o=su(u,l,t),s=su(u,l,t-1/3)}else a=o=s=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}var uu=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},cu=[au,iu,ou],fu=function(e){return cu.find((function(t){return t.test(e)}))},du=function(e){return"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")},pu=function(e,t){var n=fu(e),r=fu(t);du(e),du(t);var i=n.parse(e),a=r.parse(t);n===ou&&(i=lu(i),n=iu),r===ou&&(a=lu(a),r=iu);var o=Object.assign({},i);return function(e){for(var t in o)"alpha"!==t&&(o[t]=uu(i[t],a[t],e));return o.alpha=Zl(i.alpha,a.alpha,e),n.transform(o)}},hu={test:function(e){return iu.test(e)||au.test(e)||ou.test(e)},parse:function(e){return iu.test(e)?iu.parse(e):ou.test(e)?ou.parse(e):au.parse(e)},transform:function(e){return ys(e)?e:e.hasOwnProperty("red")?iu.transform(e):ou.transform(e)}},vu="${c}",mu="${n}";function yu(e){"number"==typeof e&&(e="".concat(e));var t=[],n=0,r=e.match(vs);r&&(n=r.length,e=e.replace(vs,vu),t.push.apply(t,N(r.map(hu.parse))));var i=e.match(hs);return i&&(e=e.replace(hs,mu),t.push.apply(t,N(i.map(Cs.parse)))),{values:t,numColors:n,tokenised:e}}function gu(e){return yu(e).values}function bu(e){var t=yu(e),n=t.values,r=t.numColors,i=t.tokenised,a=n.length;return function(e){for(var t=i,n=0;n<a;n++)t=t.replace(n<r?vu:mu,n<r?hu.transform(e[n]):ps(e[n]));return t}}var wu=function(e){return"number"==typeof e?0:e},xu={test:function(e){var t,n,r,i;return isNaN(e)&&ys(e)&&(null!==(n=null===(t=e.match(hs))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(vs))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:gu,createTransformer:bu,getAnimatableNone:function(e){var t=gu(e);return bu(e)(t.map(wu))}},Eu=function(e){return"number"==typeof e};function Su(e,t){return Eu(e)?function(n){return Zl(e,t,n)}:hu.test(e)?pu(e,t):Tu(e,t)}var ku=function(e,t){var n=N(e),r=n.length,i=e.map((function(e,n){return Su(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},Cu=function(e,t){var n=Object.assign(Object.assign({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Su(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function _u(e){for(var t=xu.parse(e),n=t.length,r=0,i=0,a=0,o=0;o<n;o++)r||"number"==typeof t[o]?r++:void 0!==t[o].hue?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var Tu=function(e,t){var n=xu.createTransformer(t),r=_u(e),i=_u(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Al(ku(r.parsed,i.parsed),n):("Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),function(n){return"".concat(n>0?t:e)})},Pu=function(e,t){return function(n){return Zl(e,t,n)}};function Ou(e,t,n){for(var r,i=[],a=n||("number"==typeof(r=e[0])?Pu:"string"==typeof r?hu.test(r)?pu:Tu:Array.isArray(r)?ku:"object"==typeof r?Cu:void 0),o=e.length-1,s=0;s<o;s++){var l=a(e[s],e[s+1]);if(t){var u=Array.isArray(t)?t[s]:t;l=Al(u,l)}i.push(l)}return i}function ju(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,a=n.ease,o=n.mixer,s=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=Ou(t,a,o),c=2===s?function(e,t){var n=u(e,2),r=n[0],i=n[1],a=u(t,1)[0];return function(e){return a(Jl(r,i,e))}}(e,l):function(e,t){var n=e.length,r=n-1;return function(i){var a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){for(var s=1;s<n&&!(e[s]>i||s===r);s++);a=s-1}var l=Jl(e[a],e[a+1],i);return t[a](l)}}(e,l);return i?function(t){return c(Hl(e[0],e[s-1],t))}:c}var Au=function(e){return function(t){return 1-e(1-t)}},Iu=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Nu=function(e){return function(t){return t*t*((e+1)*t-e)}},Ru=function(e){return e},Lu=(2,function(e){return Math.pow(e,2)}),Mu=Au(Lu),Du=Iu(Lu),Fu=function(e){return 1-Math.sin(Math.acos(e))},Bu=Au(Fu),Uu=Iu(Bu),zu=Nu(1.525),Vu=Au(zu),Hu=Iu(zu),Wu=function(e){var t=Nu(1.525);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(),$u=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},qu=Au($u);function Gu(e,t){return e.map((function(){return t||Du})).splice(0,e.length-1)}function Xu(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.ease,o=e.offset,s=e.duration,l=void 0===s?300:s,u={done:!1,value:n},c=Array.isArray(i)?i:[n,i],f=function(e,t){return e.map((function(e){return e*t}))}(o&&o.length===c.length?o:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(c),l);function d(){return ju(f,c,{ease:Array.isArray(a)?a:Gu(c,a)})}var p=d();return{next:function(e){return u.value=p(e),u.done=e>=l,u},flipTarget:function(){c.reverse(),p=d()}}}var Yu={keyframes:Xu,spring:Kl,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,i=void 0===r?0:r,a=e.power,o=void 0===a?.8:a,s=e.timeConstant,l=void 0===s?350:s,u=e.restDelta,c=void 0===u?.5:u,f=e.modifyTarget,d={done:!1,value:i},p=o*n,h=i+p,v=void 0===f?h:f(h);return v!==h&&(p=v-i),{next:function(e){var t=-p*Math.exp(-e/l);return d.done=!(t>c||t<-c),d.value=d.done?v:v+t,d},flipTarget:function(){}}}};function Ku(e,t){return e-t-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)}var Qu=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return po.update(t,!0)},stop:function(){return oo.update(t)}}};function Ju(e){var t,n,r,i,a,o=e.from,s=e.autoplay,l=void 0===s||s,u=e.driver,c=void 0===u?Qu:u,f=e.elapsed,d=void 0===f?0:f,p=e.repeat,h=void 0===p?0:p,v=e.repeatType,m=void 0===v?"loop":v,y=e.repeatDelay,g=void 0===y?0:y,b=e.onPlay,w=e.onStop,x=e.onComplete,E=e.onRepeat,S=e.onUpdate,k=Ga(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),C=k.to,_=0,T=k.duration,P=!1,O=!0,j=function(e){if(Array.isArray(e.to))return Xu;if(Yu[e.type])return Yu[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Xu:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Kl:Xu}(k);(null===(n=(t=j).needsInterpolation)||void 0===n?void 0:n.call(t,o,C))&&(a=ju([0,100],[o,C],{clamp:!1}),o=0,C=100);var A=j(Object.assign(Object.assign({},k),{from:o,to:C}));return l&&(null==b||b(),(r=c((function(e){if(O||(e=-e),d+=e,!P){var t=A.next(Math.max(0,d));i=t.value,a&&(i=a(i)),P=O?t.done:d<=0}null==S||S(i),P&&(0===_&&(null!=T||(T=d)),_<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(d,T,g,O)&&(_++,"reverse"===m?d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?t-(e-t)+n:Ku(t+-e,t,n)}(d,T,g,O=_%2==0):(d=Ku(d,T,g),"mirror"===m&&A.flipTarget()),P=!1,E&&E()):(r.stop(),x&&x()))}))).start()),{stop:function(){null==w||w(),r.stop()}}}function Zu(e,t){return t?e*(1e3/t):0}var ec=function(e){return 1e3*e},tc=function(e,t){return 1-3*t+3*e},nc=function(e,t){return 3*t-6*e},rc=function(e){return 3*e},ic=function(e,t,n){return((tc(t,n)*e+nc(t,n))*e+rc(t))*e},ac=function(e,t,n){return 3*tc(t,n)*e*e+2*nc(t,n)*e+rc(t)},oc=.1;var sc={linear:Ru,easeIn:Lu,easeInOut:Du,easeOut:Mu,circIn:Fu,circInOut:Uu,circOut:Bu,backIn:zu,backInOut:Hu,backOut:Vu,anticipate:Wu,bounceIn:qu,bounceInOut:function(e){return e<.5?.5*(1-$u(1-2*e)):.5*$u(2*e-1)+.5},bounceOut:$u},lc=function(e){if(Array.isArray(e)){e.length;var t=Xa(e,4);return function(e,t,n,r){if(e===t&&n===r)return Ru;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=ic(a*oc,e,n);function o(t){for(var r=0,a=1;10!==a&&i[a]<=t;++a)r+=oc;--a;var o=r+(t-i[a])/(i[a+1]-i[a])*oc,s=ac(o,e,n);return s>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var a=ac(t,n,r);if(0===a)return t;t-=(ic(t,n,r)-e)/a}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){var a,o,s=0;do{(a=ic(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+oc,e,n)}return function(e){return 0===e||1===e?e:ic(o(e),t,r)}}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),sc[e]):e},uc=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!xu.test(t)||t.startsWith("url(")))},cc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},fc=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},dc=function(){return{type:"keyframes",ease:"linear",duration:.3}},pc=function(e){return{type:"keyframes",duration:.8,values:e}},hc={x:cc,y:cc,z:cc,rotate:cc,rotateX:cc,rotateY:cc,rotateZ:cc,scaleX:fc,scaleY:fc,scale:fc,opacity:dc,backgroundColor:dc,color:dc,default:fc},vc=new Set(["brightness","contrast","saturate","opacity"]);function mc(e){var t=u(e.slice(0,-1).split("("),2),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=u(r.match(hs)||[],1)[0];if(!i)return e;var a=r.replace(i,""),o=vc.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var yc=/([a-z-]*)\(.*?\)/g,gc=Object.assign(Object.assign({},xu),{getAnimatableNone:function(e){var t=e.match(yc);return t?t.map(mc).join(" "):e}}),bc=qa(qa({},Os),{color:hu,backgroundColor:hu,outlineColor:hu,fill:hu,stroke:hu,borderColor:hu,borderTopColor:hu,borderRightColor:hu,borderBottomColor:hu,borderLeftColor:hu,filter:gc,WebkitFilter:gc}),wc=function(e){return bc[e]};function xc(e,t){var n,r=wc(e);return r!==gc&&(r=xu),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Ec=!1;function Sc(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Ya([],Xa(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Ga(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=qa(qa({},e),function(e,t){var n;return n=el(t)?pc:hc[e]||hc.default,qa({to:t},n(t))}(n,t.to))),qa(qa({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,a=e.loop,o=Ga(e,["ease","times","yoyo","flip","loop"]),s=qa({},o);return n&&(s.offset=n),o.duration&&(s.duration=ec(o.duration)),o.repeatDelay&&(s.repeatDelay=ec(o.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(lc):lc(t)),"tween"===o.type&&(s.type="keyframes"),(r||a||i)&&(!0,r?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||r||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}(e))}function kc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Cc(e){return"number"==typeof e?0:xc("",e)}function _c(e,t){return e[t]||e.default||e}function Tc(e,t,n,r){return void 0===r&&(r={}),Ec&&(r={type:!1}),t.start((function(i){var a,o,s=function(e,t,n,r,i){var a,o=_c(r,e),s=null!==(a=o.from)&&void 0!==a?a:t.get(),l=uc(e,n);"none"===s&&l&&"string"==typeof n?s=xc(e,n):kc(s)&&"string"==typeof n?s=Cc(n):!Array.isArray(n)&&kc(n)&&"string"==typeof s&&(n=Cc(s));var u=uc(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),u&&l&&!1!==o.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===o.type||"decay"===o.type?function(e){var t,n=e.from,r=void 0===n?0:n,i=e.velocity,a=void 0===i?0:i,o=e.min,s=e.max,l=e.power,u=void 0===l?.8:l,c=e.timeConstant,f=void 0===c?750:c,d=e.bounceStiffness,p=void 0===d?500:d,h=e.bounceDamping,v=void 0===h?10:h,m=e.restDelta,y=void 0===m?1:m,g=e.modifyTarget,b=e.driver,w=e.onUpdate,x=e.onComplete,E=e.onStop;function S(e){return void 0!==o&&e<o||void 0!==s&&e>s}function k(e){return void 0===o?s:void 0===s||Math.abs(o-e)<Math.abs(s-e)?o:s}function C(e){null==t||t.stop(),t=Ju(Object.assign(Object.assign({},e),{driver:b,onUpdate:function(t){var n;null==w||w(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:x,onStop:E}))}function _(e){C(Object.assign({type:"spring",stiffness:p,damping:v,restDelta:y},e))}if(S(r))_({from:r,velocity:a,to:k(r)});else{var T=u*a+r;void 0!==g&&(T=g(T));var P,O,j=k(T),A=j===o?-1:1;C({type:"decay",from:r,velocity:a,timeConstant:f,power:u,restDelta:y,modifyTarget:g,onUpdate:S(T)?function(e){P=O,O=e,a=Zu(e-P,fo().delta),(1===A&&e>j||-1===A&&e<j)&&_({from:e,to:j,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(qa(qa({},r),o)):Ju(qa(qa({},Sc(o,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=o.onUpdate)||void 0===t||t.call(o,e)},onComplete:function(){var e;r.onComplete(),null===(e=o.onComplete)||void 0===e||e.call(o)}}))}:function(){var e,r,a=tl(n);return t.set(a),i(),null===(e=null==o?void 0:o.onUpdate)||void 0===e||e.call(o,a),null===(r=null==o?void 0:o.onComplete)||void 0===r||r.call(o),{stop:function(){}}}}(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(_c(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return o=s()};return l?a=window.setTimeout(u,ec(l)):u(),function(){clearTimeout(a),null==o||o.stop()}}))}var Pc=function(e){return/^0[^.\s]+$/.test(e)};function Oc(e,t){-1===e.indexOf(t)&&e.push(t)}function jc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ac=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Oc(this.subscriptions,e),function(){return jc(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Ic=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ac,this.velocityUpdateSubscribers=new Ac,this.renderSubscribers=new Ac,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=fo(),i=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=i,t.lastUpdated=a,po.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return po.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=function(e){return!isNaN(parseFloat(e))}(this.current)}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Zu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Nc(e){return new Ic(e)}var Rc=function(e){return function(t){return t.test(e)}},Lc=[Cs,xs,ws,bs,Ss,Es,{test:function(e){return"auto"===e},parse:function(e){return e}}],Mc=function(e){return Lc.find(Rc(e))},Dc=Ya(Ya([],Xa(Lc),!1),[hu,xu],!1),Fc=function(e){return Dc.find(Rc(e))};function Bc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nc(n))}function Uc(e,t){if(t)return(t[e]||t.default||t).from}function zc(e,t,n){var r;void 0===n&&(n={});var i=Vo(e,t,n.custom),a=(i||{}).transition,o=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return Vc(e,i,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=o.delayChildren,a=void 0===i?0:i,s=o.staggerChildren,l=o.staggerDirection;return function(e,t,n,r,i,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var o=[],s=(e.variantChildren.size-1)*r,l=1===i?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Hc).forEach((function(e,r){o.push(zc(e,t,qa(qa({},a),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(o)}(e,t,a+r,s,l,n)}:function(){return Promise.resolve()},u=o.when;if(u){var c=Xa("beforeChildren"===u?[s,l]:[l,s],2),f=c[0],d=c[1];return f().then(d)}return Promise.all([s(),l(n.delay)])}function Vc(e,t,n){var r,i=void 0===n?{}:n,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,l=i.type,u=e.makeTargetAnimatable(t),c=u.transition,f=void 0===c?e.getDefaultTransition():c,d=u.transitionEnd,p=Ga(u,["transition","transitionEnd"]);s&&(f=s);var h=[],v=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var m in p){var y=e.getValue(m),g=p[m];if(!(!y||void 0===g||v&&Wc(v,m))){var b=qa({delay:o},f);e.shouldReduceMotion&&is(m)&&(b=qa(qa({},b),{type:!1,delay:0}));var w=Tc(m,y,g,b);h.push(w)}}return Promise.all(h).then((function(){d&&function(e,t){var n=Vo(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var o=Ga(r,["transitionEnd","transition"]);for(var s in o=qa(qa({},o),a))Bc(e,s,tl(o[s]))}(e,d)}))}function Hc(e,t){return e.sortNodePosition(t)}function Wc(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var $c=[ol.Animate,ol.InView,ol.Focus,ol.Hover,ol.Tap,ol.Drag,ol.Exit],qc=Ya([],Xa($c),!1).reverse(),Gc=$c.length;function Xc(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map((function(t){return zc(e,t,n)}));r=Promise.all(i)}else if("string"==typeof t)r=zc(e,t,n);else{var a="function"==typeof t?Vo(e,t,n.custom):t;r=Vc(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[ol.Animate]=Yc(!0),e[ol.InView]=Yc(),e[ol.Hover]=Yc(),e[ol.Tap]=Yc(),e[ol.Drag]=Yc(),e[ol.Focus]=Yc(),e[ol.Exit]=Yc(),e}(),r={},i=!0,a=function(t,n){var r=Vo(e,n);if(r){r.transition;var i=r.transitionEnd,a=Ga(r,["transition","transitionEnd"]);t=qa(qa(qa({},t),a),i)}return t};function o(o,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set,p={},h=1/0,v=function(t){var r=qc[t],v=n[r],m=null!==(l=u[r])&&void 0!==l?l:c[r],y=Uo(m),g=r===s?v.isActive:null;!1===g&&(h=t);var b=m===c[r]&&m!==u[r]&&y;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=qa({},p),!v.isActive&&null===g||!m&&!v.prevProp||Zs(m)||"boolean"==typeof m)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Bo(t)&&!Vl(t,e)}(v.prevProp,m),x=w||r===s&&v.isActive&&!b&&y||t>h&&y,E=Array.isArray(m)?m:[m],S=E.reduce(a,{});!1===g&&(S={});var k=v.prevResolvedValues,C=void 0===k?{}:k,_=qa(qa({},C),S),T=function(e){x=!0,d.delete(e),v.needsAnimating[e]=!0};for(var P in _){var O=S[P],j=C[P];p.hasOwnProperty(P)||(O!==j?el(O)&&el(j)?!Vl(O,j)||w?T(P):v.protectedKeys[P]=!0:void 0!==O?T(P):d.add(P):void 0!==O&&d.has(P)?T(P):v.protectedKeys[P]=!0)}v.prevProp=m,v.prevResolvedValues=S,v.isActive&&(p=qa(qa({},p),S)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,Ya([],Xa(E.map((function(e){return{animation:e,options:qa({type:r},o)}}))),!1))},m=0;m<Gc;m++)v(m);if(r=qa({},p),d.size){var y={};d.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var g=Boolean(f.length);return i&&!1===u.initial&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,g?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=o(i,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Yc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Kc={animation:Bl((function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=Xc(n)),Zs(r)&&(0,e.useEffect)((function(){return r.subscribe(n)}),[r])})),exit:Bl((function(t){var n=t.custom,r=t.visualElement,i=Xa(zl(),2),a=i[0],o=i[1],s=(0,e.useContext)(yo);(0,e.useEffect)((function(){var e,t;r.isPresent=a;var i=null===(e=r.animationState)||void 0===e?void 0:e.setActive(ol.Exit,!a,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!a&&(null==i||i.then(o))}),[a])}))},Qc=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Jc=function(e){return Qc(e)&&e.hasOwnProperty("z")},Zc=function(e,t){return Math.abs(e-t)};function ef(e,t){if(Eu(e)&&Eu(t))return Zc(e,t);if(Qc(e)&&Qc(t)){var n=Zc(e.x,t.x),r=Zc(e.y,t.y),i=Jc(e)&&Jc(t)?Zc(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var tf=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=af(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=ef(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=fo().timestamp;r.history.push(qa(qa({},i),{timestamp:a}));var o=r.handlers,s=o.onStart,l=o.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=nf(t,r.transformPagePoint),fl(e)&&0===e.buttons?r.handlePointerUp(e,t):po.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=af(nf(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)},!(dl(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=nf(ml(e),this.transformPagePoint),o=a.point,s=fo().timestamp;this.history=[qa(qa({},o),{timestamp:s})];var l=t.onSessionStart;l&&l(e,af(a,this.history)),this.removeListeners=Al(xl(window,"pointermove",this.handlePointerMove),xl(window,"pointerup",this.handlePointerUp),xl(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),oo.update(this.updatePoint)},e}();function nf(e,t){return t?{point:t(e.point)}:e}function rf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function af(e,t){var n=e.point;return{point:n,delta:rf(n,sf(t)),offset:rf(n,of(t)),velocity:uf(t,.1)}}function of(e){return e[0]}function sf(e){return e[e.length-1]}function uf(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=sf(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ec(t)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function cf(e){return e.max-e.min}function ff(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ef(e,t)<n}function df(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Zl(t.min,t.max,e.origin),e.scale=cf(n)/cf(t),(ff(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Zl(n.min,n.max,e.origin)-e.originPoint,(ff(e.translate)||isNaN(e.translate))&&(e.translate=0)}function pf(e,t,n,r){df(e.x,t.x,n.x,null==r?void 0:r.originX),df(e.y,t.y,n.y,null==r?void 0:r.originY)}function hf(e,t,n){e.min=n.min+t.min,e.max=e.min+cf(t)}function vf(e,t,n){e.min=t.min-n.min,e.max=e.min+cf(t)}function mf(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function yf(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function gf(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Xa([i,r],2))[0],i=n[1]),{min:r,max:i}}var bf=.35;function wf(e,t,n){return{min:xf(e,t),max:xf(e,n)}}function xf(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Ef(e){return[e("x"),e("y")]}function Sf(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function kf(e){return void 0===e||1===e}function Cf(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!kf(t)||!kf(n)||!kf(r)}function _f(e){return Cf(e)||Tf(e.x)||Tf(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Tf(e){return e&&"0%"!==e}function Pf(e,t,n){return n+t*(e-n)}function Of(e,t,n,r,i){return void 0!==i&&(e=Pf(e,i,r)),Pf(e,n,r)+t}function jf(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Of(e.min,t,n,r,i),e.max=Of(e.max,t,n,r,i)}function Af(e,t){var n=t.x,r=t.y;jf(e.x,n.translate,n.scale,n.originPoint),jf(e.y,r.translate,r.scale,r.originPoint)}function If(e,t){e.min=e.min+t,e.max=e.max+t}function Nf(e,t,n){var r=Xa(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==t[o]?t[o]:.5,l=Zl(e.min,e.max,s);jf(e,t[i],t[a],l,t.scale)}var Rf=["x","scaleX","originX"],Lf=["y","scaleY","originY"];function Mf(e,t){Nf(e.x,t,Rf),Nf(e.y,t,Lf)}function Df(e,t){return Sf(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Ff=new WeakMap,Bf=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new tf(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(ml(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),a=i.drag,o=i.dragPropagation,s=i.onDragStart;(!a||o||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=_l(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Ef((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(ws.test(i)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(i=cf(a)*(parseFloat(i)/100))}n.originPoint[e]=i})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(ol.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,a=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var l=t.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(ol.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Uf(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?Zl(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?Zl(i,e,n.max):Math.min(e,i)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Fo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:yf(e.x,r,a),y:yf(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=bf),!1===e?e=0:!0===e&&(e=bf),{x:wf(e,"left","right"),y:wf(e,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ef((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Fo(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(e,t,n){var r=Df(e,n),i=t.scroll;return i&&(If(r.x,i.x),If(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:gf(e.x,t.x),y:gf(e.y,t.y)}}(i.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!s,s&&(o=Sf(s))}return o},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Ef((function(n){var l;if(Uf(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var f=a?200:1e6,d=a?40:1e7,p=qa(qa({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Tc(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Ef((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Ef((function(n){if(Uf(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],o=a.min,s=a.max;i.set(e[n]-Zl(o,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(Fo(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};Ef((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(e,t){var n=.5,r=cf(e),i=cf(t);return i>r?n=Jl(t.min,t.max-r,e.min):r>i&&(n=Jl(e.min,e.max-i,t.min)),Hl(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Ef((function(e){if(Uf(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;n.set(Zl(a,s,o[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Ff.set(this.visualElement,this);var n=xl(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){Fo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var o=ul(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Ef((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){o(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,a=e.dragPropagation,o=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?bf:u,f=e.dragMomentum,d=void 0===f||f;return qa(qa({},e),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:l,dragElastic:c,dragMomentum:d})},e}();function Uf(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var zf={pan:Bl((function(t){var n=t.onPan,r=t.onPanStart,i=t.onPanEnd,a=t.onPanSessionStart,o=t.visualElement,s=n||r||i||a,l=(0,e.useRef)(null),u=(0,e.useContext)(No).transformPagePoint,c={onSessionStart:a,onStart:r,onMove:n,onEnd:function(e,t){l.current=null,i&&i(e,t)}};(0,e.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),El(o,"pointerdown",s&&function(e){l.current=new tf(e,c,{transformPagePoint:u})}),Co((function(){return l.current&&l.current.end()}))})),drag:Bl((function(t){var n=t.dragControls,r=t.visualElement,i=go((function(){return new Bf(r)}));(0,e.useEffect)((function(){return n&&n.subscribe(i)}),[i,n]),(0,e.useEffect)((function(){return i.addListeners()}),[i])}))},Vf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Hf=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var d=e.parent,p=e.props,h=e.presenceId,v=e.blockInitialAnimation,m=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,w=!1,x=m.latestValues,E=m.renderState,S=function(){var e=Vf.map((function(){return new Ac})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Vf.forEach((function(r){var i,a="on"+r,o=e[a];null===(i=t[r])||void 0===i||i.call(t),o&&(t[r]=n[a](o))}))}};return e.forEach((function(e,t){n["on"+Vf[t]]=function(t){return e.add(t)},n["notify"+Vf[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Ya([],Xa(t),!1))}})),n}(),k=new Map,C=new Map,_={},T=qa({},x);function P(){g&&w&&(O(),s(g,E,p.style,D.projection))}function O(){r(D,E,x,t,p)}function j(){S.notifyUpdate(x)}function A(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&po.update(j,!1,!0)})),r=t.onRenderRequest(D.scheduleRender);C.set(e,(function(){n(),r()}))}var I=f(p);for(var N in I){var R=I[N];void 0!==x[N]&&ls(R)&&R.set(x[N],!1)}var L=Ho(p),M=Wo(p),D=qa(qa({treeType:n,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:h,shouldReduceMotion:y,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(g)},mount:function(e){w=!0,g=D.current=e,D.projection&&D.projection.mount(e),M&&d&&!L&&(b=null==d?void 0:d.addVariantChild(D)),k.forEach((function(e,t){return A(t,e)})),null==d||d.children.add(D),D.setProps(p)},unmount:function(){var e;null===(e=D.projection)||void 0===e||e.unmount(),oo.update(j),oo.render(P),C.forEach((function(e){return e()})),null==b||b(),null==d||d.children.delete(D),S.clearAllListeners(),g=void 0,w=!1},addVariantChild:function(e){var t,n=D.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(D.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?D:null==d?void 0:d.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){D.isVisible!==e&&(D.isVisible=e,D.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(D,e,p,t)},measureViewportBox:function(){return o(g,p)},addValue:function(e,t){D.hasValue(e)&&D.removeValue(e),k.set(e,t),x[e]=t.get(),A(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete x[e],u(e,E)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=Nc(t),D.addValue(e,n)),n},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){T[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!ls(t))return t}return T[e]}},S),{build:function(){return O(),E},scheduleRender:function(){po.render(P,!1,!0)},syncRender:P,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&D.scheduleRender(),p=e,S.updatePropListeners(e),_=function(e,t,n){var r;for(var i in t){var a=t[i],o=n[i];if(ls(a))e.addValue(i,a);else if(ls(o))e.addValue(i,Nc(a));else if(o!==a)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(a)}else e.addValue(i,Nc(null!==(r=e.getStaticValue(i))&&void 0!==r?r:a))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(D,f(p),_)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==d?void 0:d.getVariantContext();if(!L){var t=(null==d?void 0:d.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<$f;r++){var i=Wf[r],a=p[i];(Uo(a)||!1===a)&&(n[i]=a)}return n}});return D}},Wf=Ya(["initial"],Xa($c),!1),$f=Wf.length;function qf(e){return"string"==typeof e&&e.startsWith("var(--")}var Gf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Xf(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=Xa(function(e){var t=Gf.exec(e);if(!t)return[,];var n=Xa(t,3);return[n[1],n[2]]}(e),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():qf(a)?Xf(a,t,n+1):a}}var Yf,Kf=new Set(["width","height","top","left","right","bottom","x","y"]),Qf=function(e){return Kf.has(e)},Jf=function(e,t){e.set(t,!1),e.set(t)},Zf=function(e){return e===Cs||e===xs};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Yf||(Yf={}));var ed=function(e,t){return parseFloat(e.split(", ")[t])},td=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return ed(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?ed(o[1],e):0}},nd=new Set(["x","y","z"]),rd=ts.filter((function(e){return!nd.has(e)})),id={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:td(4,13),y:td(5,14)};function ad(e,t,n,r){return function(e){return Object.keys(e).some(Qf)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=qa({},t),r=qa({},r);var i=Object.keys(t).filter(Qf),a=[],o=!1,s=[];if(i.forEach((function(i){var l=e.getValue(i);if(e.hasValue(i)){var u,c=n[i],f=Mc(c),d=t[i];if(el(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=Mc(c);for(var v=h;v<p;v++)u?Mc(d[v]):(u=Mc(d[v]))===f||Zf(f)&&Zf(u)}else u=Mc(d);if(f!==u)if(Zf(f)&&Zf(u)){var m=l.get();"string"==typeof m&&l.set(parseFloat(m)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&u===xs&&(t[i]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==u?void 0:u.transform)&&(0===c||0===d)?0===c?l.set(u.transform(c)):t[i]=f.transform(d):(o||(a=function(e){var t=[];return rd.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],Jf(l,d))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=id[e](r,a)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Jf(r,s[n]),e[n]=id[n](l,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Xa(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var od={treeType:"dom",readValueFromInstance:function(e,t){if(is(t)){var n=wc(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(cs(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Df(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var a=t.transition,o=t.transitionEnd,s=Ga(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,a={};for(var o in e)a[o]=null!==(r=Uc(o,t))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,a,o,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],f=t[c],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(i=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==i?i:t[c]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||Pc(d))?d=parseFloat(d):!Fc(d)&&xu.test(f)&&(d=xc(c,f)),e.addValue(c,Nc(d)),null!==(a=(o=n)[c])&&void 0!==a||(o[c]=d),e.setBaseTarget(c,d))}}(e,s,l);var u=function(e,t,n,r){var i=function(e,t,n){var r,i=Ga(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=qa({},n)),e.forEachValue((function(e){var t=e.get();if(qf(t)){var n=Xf(t,a);n&&e.set(n)}})),i){var s=i[o];if(qf(s)){var l=Xf(s,a);l&&(i[o]=l,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return ad(e,t=i.target,n,r=i.transitionEnd)}(e,s,l,o);o=u.transitionEnd,s=u.target}return qa({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:Qs,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),js(t,n,r,i.transformTemplate)},render:Xs},sd=Hf(od),ld=Hf(qa(qa({},od),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return is(t)?(null===(n=wc(t))||void 0===n?void 0:n.default)||0:(t=Ys.has(t)?t:Gs(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Js,build:function(e,t,n,r,i){Vs(t,n,r,i.transformTemplate)},render:Ks})),ud=function(e,t){return Jo(e)?ld(t,{enableHardwareAcceleration:!1}):sd(t,{enableHardwareAcceleration:!0})};function cd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var fd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!xs.test(e))return e;e=parseFloat(e)}var n=cd(e,t.target.x),r=cd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},dd="_$css",pd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(Gf,(function(e){return o.push(e),dd})));var s=xu.parse(e);if(s.length>5)return i;var l=xu.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,f=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=f;var d=Zl(c,f,.5);"number"==typeof s[2+u]&&(s[2+u]/=d),"number"==typeof s[3+u]&&(s[3+u]/=d);var p=l(s);if(a){var h=0;p=p.replace(dd,(function(){var e=o[h];return h++,e}))}return p}},hd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $a(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=vd,Object.assign(Zo,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==a?void 0:a.register)&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(qa(qa({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),qo.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||po.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(e.Component),vd={borderRadius:qa(qa({},fd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:fd,borderTopRightRadius:fd,borderBottomLeftRadius:fd,borderBottomRightRadius:fd,boxShadow:pd},md={measureLayout:function(t){var n=Xa(zl(),2),r=n[0],i=n[1],a=(0,e.useContext)(ko);return e.createElement(hd,qa({},t,{layoutGroup:a,switchLayoutGroup:(0,e.useContext)(Xo),isPresent:r,safeToRemove:i}))}},yd=["TopLeft","TopRight","BottomLeft","BottomRight"],gd=yd.length,bd=function(e){return"string"==typeof e?parseFloat(e):e},wd=function(e){return"number"==typeof e||xs.test(e)};function xd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Ed=kd(0,.5,Bu),Sd=kd(.5,.95,Ru);function kd(e,t,n){return function(r){return r<e?0:r>t?1:n(Jl(e,t,r))}}function Cd(e,t){e.min=t.min,e.max=t.max}function _d(e,t){Cd(e.x,t.x),Cd(e.y,t.y)}function Td(e,t,n,r,i){return e=Pf(e-=t,1/n,r),void 0!==i&&(e=Pf(e,1/i,r)),e}function Pd(e,t,n,r,i){var a=Xa(n,3),o=a[0],s=a[1],l=a[2];!function(e,t,n,r,i,a,o){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===o&&(o=e),ws.test(t)&&(t=parseFloat(t),t=Zl(o.min,o.max,t/100)-o.min),"number"==typeof t){var s=Zl(a.min,a.max,r);e===a&&(s-=t),e.min=Td(e.min,t,n,s,i),e.max=Td(e.max,t,n,s,i)}}(e,t[o],t[s],t[l],t.scale,r,i)}var Od=["x","scaleX","originX"],jd=["y","scaleY","originY"];function Ad(e,t,n,r){Pd(e.x,t,Od,null==n?void 0:n.x,null==r?void 0:r.x),Pd(e.y,t,jd,null==n?void 0:n.y,null==r?void 0:r.y)}function Id(e){return 0===e.translate&&1===e.scale}function Nd(e){return Id(e.x)&&Id(e.y)}function Rd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Ld=function(){function e(){this.members=[]}return e.prototype.add=function(e){Oc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(jc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Md(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,s=n.rotateX,l=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),l&&(a+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(u,", ").concat(c,")"))?"none":a}var Dd=function(e,t){return e.depth-t.depth},Fd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Oc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){jc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Dd),this.isDirty=!1,this.children.forEach(e)},e}();function Bd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(qd),i.nodes.forEach(Gd)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Ya(Ya([],Xa(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ac),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Ya([],Xa(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,o=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||o)&&(this.isLayoutDirty=!0),t){var u,c=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),qo.hasAnimatedSinceResize&&(qo.hasAnimatedSinceResize=!1,i.nodes.forEach($d))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&l&&(o||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,o,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,f=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var d=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:Zd,p=l.getProps(),h=p.onLayoutAnimationStart,v=p.onLayoutAnimationComplete,m=!i.targetLayout||!Rd(i.targetLayout,f)||c,y=!u&&c;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||y||u&&(m||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,y);var g=qa(qa({},_c(d,"layout")),{onPlay:h,onComplete:v});l.shouldReduceMotion&&(g.delay=0,g.type=!1),i.startAnimation(g)}else u||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(o=(a=i.options).onExitComplete)||void 0===o||o.call(a));i.targetLayout=f}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,oo.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Xd))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var a=this.path[i];a.shouldResetTransform=!0,a.updateScroll()}var o=this.options,s=o.layoutId,l=o.layout;if(void 0!==s||l){var u=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Hd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ep),this.potentialNodes.clear()),this.nodes.forEach(Wd),this.nodes.forEach(Ud),this.nodes.forEach(zd),this.clearAllSnapshots(),so.update(),so.preRender(),so.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Vd),this.sharedNodes.forEach(Yd)},e.prototype.scheduleUpdateProjection=function(){po.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;po.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));np(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();np(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Nd(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),o=i!==this.prevTransformTemplateValue;t&&(n||_f(this.latestValues)||o)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(If(t.x,n.x),If(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};_d(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,a=r.options,o=r.isScrollRoot;if(r!==this.root&&i&&a.layoutScroll){if(o){_d(t,e);var s=this.root.scroll;s&&(If(t.x,-s.x),If(t.y,-s.y))}If(t.x,i.x),If(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};_d(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Mf(n,{x:-i.scroll.x,y:-i.scroll.y}),_f(i.latestValues)&&Mf(n,i.latestValues)}return _f(this.latestValues)&&Mf(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};_d(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&_f(i.latestValues)){Cf(i.latestValues)&&i.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};_d(a,i.measure()),Ad(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,a)}}return _f(this.latestValues)&&Ad(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=qa(qa(qa({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,a=i.layout,o=i.layoutId;this.layout&&(a||o)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},mf(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),_d(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,hf(t.x,n.x,r.x),hf(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):_d(this.target,this.layout.actual),Af(this.target,this.targetDelta)):_d(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},mf(this.relativeTargetOrigin,this.target,this.relativeParent.target),_d(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!_f(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();_d(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,a;void 0===r&&(r=!1);var o=n.length;if(o){var s,l;t.x=t.y=1;for(var u=0;u<o;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(a=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Mf(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Af(e,l)),r&&_f(s.latestValues)&&Mf(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var a=i.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var o=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;pf(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Md(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},o=qa({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==i?void 0:i.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(Jd));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i,d,p,h,v=t/1e3;Kd(s.x,e.x,v),Kd(s.y,e.y,v),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(mf(l,r.layout.actual,r.relativeParent.layout.actual),i=r.relativeTarget,d=r.relativeTargetOrigin,p=l,h=v,Qd(i.x,d.x,p.x,h),Qd(i.y,d.y,p.y,h)),u&&(r.animationValues=o,function(e,t,n,r,i,a){var o,s,l,u;i?(e.opacity=Zl(0,null!==(o=n.opacity)&&void 0!==o?o:1,Ed(r)),e.opacityExit=Zl(null!==(s=t.opacity)&&void 0!==s?s:1,0,Sd(r))):a&&(e.opacity=Zl(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<gd;c++){var f="border".concat(yd[c],"Radius"),d=xd(t,f),p=xd(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||wd(d)===wd(p)?(e[f]=Math.max(Zl(bd(d),bd(p),r),0),(ws.test(p)||ws.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=Zl(t.rotate||0,n.rotate||0,r))}(o,a,r.latestValues,v,f,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=v},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(oo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=po.update((function(){qo.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=ls(0)?0:Nc(0);return Tc("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,qa(qa({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(_d(t,n),Mf(t,i),pf(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ld),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<es.length;r++){var i="rotate"+es[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,a,o;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=nl(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=nl(e.pointerEvents)||""),this.hasProjected&&!_f(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var f=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Md(this.projectionDeltaWithTransform,this.treeScale,f),l&&(s.transform=l(f,s.transform));var d=this.projectionDelta,p=d.x,h=d.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(i=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=u===this?null!==(a=f.opacity)&&void 0!==a?a:"":null!==(o=f.opacityExit)&&void 0!==o?o:0,Zo)if(void 0!==f[v]){var m=Zo[v],y=m.correct,g=m.applyTo,b=y(f[v],u);if(g)for(var w=g.length,x=0;x<w;x++)s[g[x]]=b;else s[v]=b}return this.options.layoutId&&(s.pointerEvents=u===this?nl(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Hd),this.root.sharedNodes.clear()},e}()}function Ud(e){e.updateLayout()}function zd(e){var t,n,r,i,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var o=e.layout,s=o.actual,l=o.measured;"size"===e.options.animationType?Ef((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=cf(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Ef((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=cf(s[e]);t.max=t.min+n}));var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};pf(u,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?pf(c,e.applyTransform(l,!0),a.measured):pf(c,s,a.layout);var f=!Nd(u),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,v=p.layout;if(h&&v){var m={x:{min:0,max:0},y:{min:0,max:0}};mf(m,a.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};mf(y,s,v.actual),Rd(m,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function Vd(e){e.clearSnapshot()}function Hd(e){e.clearMeasurements()}function Wd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function $d(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function qd(e){e.resolveTargetDelta()}function Gd(e){e.calcProjection()}function Xd(e){e.resetRotation()}function Yd(e){e.removeLeadSnapshot()}function Kd(e,t,n){e.translate=Zl(t.translate,0,n),e.scale=Zl(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qd(e,t,n,r){e.min=Zl(t.min,n.min,r),e.max=Zl(t.max,n.max,r)}function Jd(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Zd={duration:.45,ease:[.4,0,.1,1]};function ep(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function tp(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function np(e){tp(e.x),tp(e.y)}var rp=Bd({attachResizeListener:function(e,t){return ul(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ip={current:void 0},ap=Bd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!ip.current){var e=new rp(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ip.current=e}return ip.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),op=qa(qa(qa(qa({},Kc),Ul),zf),md),sp=function(e){function t(t,n){return void 0===n&&(n={}),Ko(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}((function(e,t){return function(e,t,n,r,i){var a=t.forwardMotionProps,o=void 0!==a&&a,s=Jo(e)?sl:ll;return qa(qa({},s),{preloadedFeatures:n,useRender:$s(o),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,op,ud,ap)})),lp={"toast-container":"Toasts_toast-container__y-Lf4",toast:"Toasts_toast__XCKjV",success:"Toasts_success__-Nlb6",info:"Toasts_info__WN7dx",warning:"Toasts_warning__D7Z9u",error:"Toasts_error__KRbGr","toast-content":"Toasts_toast-content__9jW74","icon-container":"Toasts_icon-container__x7hY3","text-container":"Toasts_text-container__6fxjF",text:"Toasts_text__DpqMN",detail:"Toasts_detail__iz+1a","dismiss-btn":"Toasts_dismiss-btn__dK4qJ",icon:"Toasts_icon__WpL+z",spinner:"Toasts_spinner__54CjX",slider:"Toasts_slider__Uv4U7"},up={success:"😊",info:"🔔",warning:"😮",error:"😢"},cp=function(t){var n,r=t.toast,i=(0,e.useContext)(He).dispatch,a=u((0,e.useState)(!1),2),o=a[0],s=a[1],l=(0,e.useRef)(null);(0,e.useEffect)((function(){var e,t;return r.timeoutMs&&(e=setTimeout((function(){return i(qe(r.id))}),300+r.timeoutMs),t=setTimeout((function(){return s(!0)}),300)),function(){clearTimeout(e),clearTimeout(t)}}),[i,r.id,r.timeoutMs]);var c=(0,e.useCallback)((function(){return o?"0%":"100%"}),[o]);return(0,x.jsxs)("div",{className:S(lp.toast,lp[r.type],r.className),children:[(0,x.jsxs)("div",{className:lp["toast-content"],children:[!r.hideIcon&&(0,x.jsx)("div",{className:S(lp["icon-container"],lp[r.type]),children:null!==(n=r.icon)&&void 0!==n?n:up[r.type]}),(0,x.jsxs)("div",{className:lp["text-container"],children:[r.text&&(0,x.jsx)("div",{className:S(lp.text,"tt-toast-text"),children:r.text}),r.detail&&(0,x.jsx)("div",{className:lp.detail,children:r.detail}),r.jsx&&(0,x.jsx)("div",{children:r.jsx})]}),!r.hideDismissBtn&&!r.showSpinner&&(0,x.jsx)("div",{className:lp["dismiss-btn"],onClick:function(){i(qe(r.id))},children:(0,x.jsx)("i",{className:S("far fa-times-circle",lp.icon)})}),r.showSpinner&&(0,x.jsx)("div",{className:lp.spinner,children:(0,x.jsx)("i",{className:"fas fa-circle-notch fa-spin"})})]}),r.timeoutMs&&(0,x.jsx)("div",{children:(0,x.jsx)("div",{ref:l,className:S(lp.slider,lp[r.type]),style:{width:c(),transitionDuration:"".concat(r.timeoutMs,"ms")}})})]})},fp=function(t){sa(t);var n=(0,e.useContext)(He).state;return(0,x.jsx)("div",{className:S(lp["toast-container"]),children:(0,x.jsx)(To,{children:n.toasts.map((function(e){return(0,x.jsx)(sp.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,transition:{duration:.2}},children:(0,x.jsx)(cp,{toast:e})},e.id)}))})})},dp=["/teachertool/catalog-shared.json","/teachertool/catalog.json"];function pp(){return hp.apply(this,arguments)}function hp(){return(hp=o(i().mark((function e(){var t,n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ve(),n=t.dispatch,e.next=3,ot(dp,"criteria");case 3:(r=e.sent).forEach((function(e){var t;null===(t=e.params)||void 0===t||t.forEach((function(e){e.name=e.name.toLocaleLowerCase()})),e.tags&&0!==e.tags.length||(e.tags=[m.Other])})),n(Ye(r));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var vp=["/teachertool/validator-plans.json","/teachertool/validator-plans-shared.json"];function mp(){return yp.apply(this,arguments)}function yp(){return(yp=o(i().mark((function e(){var t,n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ve(),n=t.dispatch,e.next=3,ot(vp,"validatorPlans");case 3:r=e.sent,n(Ke(r));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gp(){return bp.apply(this,arguments)}function bp(){return(bp=o(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Se();case 2:(t=e.sent)?(re("Loading last active checklist...",t),(n=an(t)).valid||_t(_("error",lf("Some criteria could not be loaded."))),pn(p(p({},t),{},{criteria:n.validCriteria}))):re("No last active checklist to load.");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var wp=function(e){var n=e.children,r=e.id,i=e.className,a=e.ariaLabel,o=e.ariaHidden,s=e.ariaDescribedBy,l=e.role,u=e.title,c=e.leftIcon,f=e.helpUrl,d=e.actions,p=e.onClose,h=e.parentElement,v=e.fullscreen,m=e.hideDismissButton,y=function(e){p&&p()},g=S("common-modal-container",v&&"fullscreen",i);return t.createPortal((0,x.jsx)(ht,{className:g,onEscape:y,children:(0,x.jsxs)("div",{id:r,className:"common-modal",role:l||"dialog","aria-hidden":o,"aria-label":a,"aria-describedby":s,"aria-labelledby":"modal-title",children:[(0,x.jsxs)("div",{className:"common-modal-header",children:[v&&!m&&(0,x.jsx)("div",{className:"common-modal-back",children:(0,x.jsx)(ft,{className:"menu-button",onClick:y,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,x.jsxs)("div",{id:"modal-title",className:"common-modal-title",children:[c&&(0,x.jsx)("i",{className:c,"aria-hidden":!0}),u]}),v&&f&&(0,x.jsx)("div",{className:"common-modal-help",children:(0,x.jsx)(ft,{className:"menu-button",title:lf("Help on {0} dialog",u),href:e.helpUrl,onClick:function(){},rightIcon:"fas fa-question"})}),!v&&!m&&(0,x.jsx)("div",{className:"common-modal-close",children:(0,x.jsx)(ft,{className:"menu-button inverted",onClick:y,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,x.jsx)("div",{className:"common-modal-body",children:n}),(null==d?void 0:d.length)&&(0,x.jsx)("div",{className:"common-modal-footer",children:d.map((function(e,t){var n;return(0,x.jsx)(ft,{className:null!==(n=e.className)&&void 0!==n?n:"primary inverted",disabled:e.disabled,onClick:e.onClick,href:e.url,label:e.label,title:e.label,rightIcon:(e.xicon?"xicon ":"")+e.icon,leftIcon:e.leftIcon},t)}))})]})}),h||document.getElementById("root")||document.body)};function xp(e,t){return Ep.apply(this,arguments)}function Ep(){return(Ep=o(i().mark((function e(t,n){var r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pa(t);case 2:return(r=e.sent)&&(re("Loading checklist from file...",{file:t,checklist:r}),(a=an(r)).valid||(r=n?p(p({},r),{},{criteria:a.validCriteria}):void 0)),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Sp,kp={"notice-label-background":"NoticeLabel_notice-label-background__S8h7b","notice-label-container":"NoticeLabel_notice-label-container__gKJ5B","error-notice-label-container":"NoticeLabel_error-notice-label-container__jM73c","warning-notice-label-container":"NoticeLabel_warning-notice-label-container__zMjO-","info-notice-label-container":"NoticeLabel_info-notice-label-container__YPcBC","neutral-notice-label-container":"NoticeLabel_neutral-notice-label-container__KB8v8",icon:"NoticeLabel_icon__IXZIF"},Cp=function(e){var t=void 0;switch(e.severity){case"info":t="fas fa-exclamation-circle";break;case"warning":t="fas fa-exclamation-triangle";break;case"error":t="fas fa-times"}return(0,x.jsx)("div",{className:kp["notice-label-background"],children:(0,x.jsxs)("div",{className:S(kp["notice-label-container"],kp["".concat(e.severity,"-notice-label-container")]),children:["neutral"!==e.severity&&(0,x.jsx)("i",{className:S(t,kp.icon)}),(0,x.jsx)("label",{className:"notice-label",children:e.children})]})})},_p=function(t){var n=t.onFileDroppedAsync,r=t.errorMessage,i=u((0,e.useState)(!1),2),a=i[0],o=i[1],s=u((0,e.useState)(0),2),l=s[0],c=s[1],f=(0,e.useRef)(null);function d(e){c(l+1),n(e)}return(0,x.jsxs)("div",{className:"DragAndDropFileSurface_drag-and-drop-file-surface__CGJg4",onDragEnter:function(e){e.stopPropagation(),e.preventDefault(),o(!0)},children:[(0,x.jsxs)("div",{className:"DragAndDropFileSurface_instruction-container__WjVOu",children:[(0,x.jsx)("i",{className:S("fas fa-file-upload","DragAndDropFileSurface_upload-icon__gZxir")}),(0,x.jsx)("div",{className:"no-select",children:a?m.ReleaseToUpload:m.DragAndDrop}),(0,x.jsxs)("div",{className:"DragAndDropFileSurface_or-browse-container__Q8Y6R",children:[(0,x.jsx)("span",{className:"DragAndDropFileSurface_or-container__lvbPp",children:lf("or")}),(0,x.jsx)(ft,{className:S("link-button","DragAndDropFileSurface_browse-button__BZ1Qx"),title:m.Browse,onClick:function(){var e;return null==f||null===(e=f.current)||void 0===e?void 0:e.click()},children:m.Browse}),(0,x.jsx)("input",{type:"file",ref:f,className:"hidden",onChange:function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];n&&d(n)},"aria-label":m.SelectChecklistFile,accept:".json"})]})]}),r&&(0,x.jsx)("div",{className:"DragAndDropFileSurface_error-label-container__iWbcy",role:"alert",title:r,children:(0,x.jsx)(Cp,{severity:"error",children:r})},l),(0,x.jsx)("div",{className:S("DragAndDropFileSurface_droppable-surface__AEZcb",a?"DragAndDropFileSurface_dragging__x+kg6":void 0),onDrop:function(e){e.stopPropagation(),e.preventDefault(),o(!1);var t=e.dataTransfer.files[0];t&&d(t)},onDragLeave:function(e){e.stopPropagation(),e.preventDefault(),o(!1)},onDragOver:function(e){e.stopPropagation(),e.preventDefault()}})]})},Tp=function(){var t,n=(0,e.useContext)(He).state,r=u((0,e.useState)(void 0),2),a=r[0],s=r[1];function l(){s(void 0),kt()}function c(){return(c=o(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xp(t,!1);case 2:(n=e.sent)?(s(void 0),l(),hn(n)):s(m.InvalidChecklistFile);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return"import-checklist"===(null===(t=n.modalOptions)||void 0===t?void 0:t.modal)?(0,x.jsx)(wp,{title:m.ImportChecklist,onClose:l,className:"ImportChecklistModal_import-checklist-modal__dbQFL",children:(0,x.jsx)("div",{className:"ImportChecklistModal_import-checklist__AYZta",children:(0,x.jsx)(_p,{onFileDroppedAsync:function(e){return c.apply(this,arguments)},errorMessage:a})})}):null},Pp=function(){var t=(0,e.useContext)(He).state,n=u((0,e.useState)(void 0),2),r=n[0],i=n[1];function a(){var e;kt(),null==r||null===(e=r.onCancel)||void 0===e||e.call(r)}(0,e.useEffect)((function(){var e;"confirmation"===(null===(e=t.modalOptions)||void 0===e?void 0:e.modal)?i(t.modalOptions):i(void 0)}),[t.modalOptions]);var o=[{label:m.Cancel,className:"secondary",onClick:a},{label:m.Continue,className:"primary",onClick:function(){var e;kt(),null==r||null===(e=r.onContinue)||void 0===e||e.call(r)}}];return r?(0,x.jsx)(wp,{title:r.title,onClose:a,actions:o,children:r.message}):null},Op=function(e){var t,n=e.id,r=e.className,i=e.role,a=e.src,o=e.alt,s=e.title,l=e.ariaLabel,u=e.ariaHidden,c=e.ariaDescribedBy,f=e.loadingElement;return function(){if(!Sp){Sp=new IntersectionObserver((function(e){e.forEach((function(e){if(e.intersectionRatio>0){Sp.unobserve(e.target);var t=e.target.getAttribute("data-src");e.target.src=t;var n=e.target;n.src=t,n.onload=function(){n.parentElement.classList.add("loaded"),n.parentElement.classList.remove("error")},n.onerror=function(){n.parentElement.classList.add("error"),n.parentElement.classList.remove("loaded")}}}))}),{rootMargin:"50px 0px",threshold:.01})}}(),(0,x.jsxs)("div",{className:"common-lazy-image-wrapper",children:[(0,x.jsx)("div",{className:"loading-element",children:f||(0,x.jsx)("div",{className:"common-spinner"})}),(0,x.jsx)("img",{id:n,ref:function(e){e&&(t&&Sp.unobserve(t),t=e,Sp.observe(e))},className:r,"data-src":a,alt:o,title:s,role:i,"aria-label":l,"aria-hidden":u,"aria-describedby":c}),(0,x.jsx)("i",{className:"fas fa-image","aria-hidden":!0})]})};function jp(e){return Ap.apply(this,arguments)}function Ap(){return(Ap=o(i().mark((function e(t){var n,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Ve(),r=n.state,t.blockId){e.next=3;break}return e.abrupt("return");case 3:if(!r.blockImageCache[t.blockId]){e.next=6;break}return e.abrupt("return");case 6:if(!t.blockXml){e.next=12;break}return e.next=9,Pi(t.blockXml);case 9:e.t0=e.sent,e.next=15;break;case 12:return e.next=14,ji(t.blockId);case 14:e.t0=e.sent;case 15:(a=e.t0)&&(0,Ve().dispatch)(Je(t.blockId,a));case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ip(){return(Ip=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.blocks?pxt.Util.promisePoolAsync(4,t.blocks,function(){var e=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jp(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):Promise.resolve());case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Np="BlockPickerModal_bottom-border__0nTNr",Rp=function(t){var n,r=t.block,i=(t.category,t.onBlockSelected),a=(0,e.useContext)(He).state,o=r.blockId?a.blockImageCache[r.blockId]:void 0,s=(0,x.jsx)("div",{className:"BlockPickerModal_block-placeholder__i+3Wr",children:A(r.name)});return(0,x.jsx)(ft,{className:"BlockPickerModal_block-button__3rKXi",title:null!==(n=r.jsDoc)&&void 0!==n?n:A(r.name),ariaLabel:r.name,label:o?(0,x.jsx)(Op,{src:o,alt:r.name,loadingElement:s,ariaHidden:!0}):s,onClick:function(){return i(r)}})},Lp=function(t){var n=t.category,r=t.onBlockSelected,i=u((0,e.useState)(!1),2),a=i[0],o=i[1];function s(e){null==r||r(e)}var l=n.color?{"--category-color":n.color}:{},c="".concat(n.name,"-block-list");return n.name&&n.blocks&&n.blocks.length>0?(0,x.jsx)("div",{className:Np,children:(0,x.jsxs)("div",{className:"BlockPickerModal_category-container__+Gqcm",style:l,children:[(0,x.jsx)(ft,{className:S("BlockPickerModal_category-button__Qn83F",a?Np:void 0),title:n.name,label:pxt.Util.capitalize(n.name),onClick:function(){a||function(e){Ip.apply(this,arguments)}(n),o(!a)},ariaExpanded:a,ariaControls:c}),(0,x.jsx)(dt,{id:c,role:"group",ariaLabel:lf("{0} Blocks",n.name),className:S("BlockPickerModal_category-block-list__71uBq",a?"BlockPickerModal_expanded__wJ-8m":"BlockPickerModal_collapsed__-7UXk"),children:n.blocks.map((function(e){return(0,x.jsx)(Rp,{block:e,category:n,onBlockSelected:s},e.blockId)}))})]})}):null},Mp=function(){return(0,x.jsx)("div",{className:"BlockPickerModal_loading-container__UaRXi",children:(0,x.jsx)("div",{className:"common-spinner"})})},Dp=function(t){sa(t);var n=(0,e.useContext)(He).state,r=u((0,e.useState)(void 0),2),i=r[0],a=r[1];(0,e.useEffect)((function(){var e;"block-picker"===(null===(e=n.modalOptions)||void 0===e?void 0:e.modal)?a(n.modalOptions):a(void 0)}),[n.modalOptions]);var o=[{label:m.Cancel,className:"secondary",onClick:kt}];return i?(0,x.jsxs)(wp,{className:"BlockPickerModal_block-picker-modal__2YDwQ",title:m.SelectBlock,onClose:kt,actions:o,children:[n.toolboxCategories&&Object.values(n.toolboxCategories).map((function(e){return(0,x.jsx)(Lp,{category:e,onBlockSelected:function(e){return function(e){i?di(i.criteriaInstanceId,i.paramName,e.blockId):ne(Z.selectedBlockWithoutOptions,"Block selected without block picker options."),kt()}(e)}},e.name)})),!n.toolboxCategories&&(0,x.jsx)(Mp,{})]}):null},Fp=function(){var t=(0,e.useContext)(He).state;return(0,x.jsx)(x.Fragment,{children:t.screenReaderAnnouncement&&(0,x.jsx)("div",{className:"ActionAnnouncer_sr-only__YUu-E","aria-live":"polite",children:t.screenReaderAnnouncement})})},Bp=function(e){var t=e.id,n=e.className,r=e.ariaHidden,i=e.ariaLabel,a=e.role,o=e.isChecked,s=e.onChange,l=e.label;return(0,x.jsxs)("div",{className:S("common-checkbox",n),children:[(0,x.jsx)("input",{id:t,tabIndex:0,type:"checkbox",checked:o,onChange:function(){s(!o)},onKeyDown:E,role:a,"aria-hidden":r,"aria-label":i}),l&&(0,x.jsx)("label",{htmlFor:t,children:l})]})},Up=function(t){var n,r,i=t.onSignIn,a=t.onClose,o=t.appMessage,s=t.dialogMessages,l=t.hideDismissButton,c=s||{signInMessage:lf("Sign in to save your progress and access your work anytime, anywhere."),signUpMessage:lf("Join now to save your progress and access your work anytime, anywhere.")},f=c.signInMessage,d=c.signUpMessage,p=null!==(n=t.resolvePath)&&void 0!==n?n:function(e){return e},h=u(e.useState(!1),2),v=h[0],m=h[1],y=u(e.useState(null!==(r=t.mode)&&void 0!==r?r:"signin"),2),g=y[0],b=y[1],w=e.useMemo((function(){return"signin"===g?lf("Sign in"):lf("Sign up")}),[g]),E=e.useMemo((function(){return"signin"===g?f:d}),[g,f,d]),S=e.useMemo((function(){return"signin"===g?(0,x.jsxs)("div",{className:"switch",children:[(0,x.jsx)("span",{children:lf("Don't have an account?")}),(0,x.jsx)(ft,{className:"link-button",onClick:function(){return b("signup")},title:lf("Sign up"),label:lf("Sign up")})]}):(0,x.jsxs)("div",{className:"switch",children:[(0,x.jsx)("span",{children:lf("Have an account?")}),(0,x.jsx)(ft,{className:"link-button",onClick:function(){return b("signin")},title:lf("Sign in"),label:lf("Sign in")})]})}),[g]);return(0,x.jsx)(wp,{title:w,onClose:a,hideDismissButton:l,children:(0,x.jsxs)("div",{className:"signin-form",children:[(0,x.jsxs)("div",{className:"signin-header",children:[o||void 0," ",E]}),(0,x.jsx)("div",{className:"signin-body",children:(0,x.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map((function(e,t){var n="signin"===g?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name);return(0,x.jsx)(ft,{className:"teal inverted provider",onClick:function(){return i(e,v)},title:n,ariaLabel:n,label:(0,x.jsxs)("div",{className:"label",children:[(0,x.jsx)("div",{children:(0,x.jsx)("img",{className:"logo",src:p(e.icon)})}),(0,x.jsx)("div",{className:"title",children:n})]})},t)})),(0,x.jsx)("div",{className:"rememberme",children:(0,x.jsx)(Bp,{id:"rememberme",label:lf("Remember me"),isChecked:v,onChange:m})})]})}),(0,x.jsxs)("div",{className:"signin-footer",children:[S,(0,x.jsx)("div",{className:"learn",children:(0,x.jsx)(en,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})},zp=function(){var t;return"sign-in"===(null===(t=(0,e.useContext)(He).state.modalOptions)||void 0===t?void 0:t.modal)?(0,x.jsx)(Up,{onClose:kt,onSignIn:function(){var e=o(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Lt(t.id,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),dialogMessages:{signInMessage:lf("Sign in to use MakeCode Code Evaluation."),signUpMessage:lf("Sign up to use MakeCode Code Evaluation.")},hideDismissButton:!0}):null},Vp={"signed-out-container":"SignedOutPanel_signed-out-container__zVi8m","signed-out-panel":"SignedOutPanel_signed-out-panel__ETF9s"},Hp=function(){return(0,x.jsx)("div",{className:Vp["signed-out-container"],children:(0,x.jsxs)("div",{className:Vp["signed-out-panel"],children:[(0,x.jsx)("h1",{children:lf("Sign In Required")}),(0,x.jsx)("div",{children:lf("Sign in is required to use this tool.")}),(0,x.jsx)(ft,{className:S("primary",Vp["sign-in-button"]),rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:function(){pxt.tickEvent(g.SignedOutPanelSignIn),mt({modal:"sign-in"})}})]})})},Wp=function(){var t=(0,e.useContext)(He),n=t.state,r=t.dispatch,a=u((0,e.useState)(!1),2),s=a[0],l=a[1],c=u((0,e.useState)(!1),2),f=c[0],d=c[1],p=function(t,n){var r=u((0,e.useState)(!1),2),i=r[0],a=r[1];return(0,e.useEffect)((function(){t.then(a)}),[]),i}(ze);return(0,e.useEffect)((function(){p&&!s&&Promise.resolve().then(o(i().mark((function e(){var t,n,a,o,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rt();case 2:return n=e.sent,r({type:"SET_TARGET_CONFIG",config:n||{}}),pxt.BrowserUtils.initTheme(),e.next=7,pp();case 7:return e.next=9,mp();case 9:return e.next=11,gp();case 11:if(l(!0),!(a=null===(t=window.location.href.match(/project=([^&]+)/))||void 0===t?void 0:t[1])){e.next=19;break}if(o=decodeURIComponent(a),!(s=pxt.Cloud.parseScriptId(o))){e.next=19;break}return e.next=19,Sa(o,s);case 19:re("App initialized");case 20:case"end":return e.stop()}}),e)}))))}),[p,s]),(0,e.useEffect)((function(){function e(){return(e=o(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,At();case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),ne(Z.authCheckFailed),re("Auth check failed details",e.t0);case 9:d(!0);case 10:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),s&&f?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Ft,{}),n.userProfile?(0,x.jsx)(Ha,{}):(0,x.jsx)(Hp,{}),(0,x.jsx)(zp,{}),(0,x.jsx)(Tp,{}),(0,x.jsx)(Pp,{}),(0,x.jsx)(Dp,{}),(0,x.jsx)(fp,{}),(0,x.jsx)(Fp,{})]}):(0,x.jsx)("div",{className:"ui active dimmer",children:(0,x.jsx)("div",{className:"ui large main loader msft"})})},$p=n(8466);window.addEventListener("DOMContentLoaded",(function(){var n=window.pxtTargetBundle,r=pxt.Util.parseQueryString(window.location.href.toLowerCase());pxt.options.debug="1"==r.dbg,pxt.options.debug&&(pxt.debug=$p.debug),"1"==r.consoleticks||"verbose"==r.consoleticks?pxt.analytics.consoleTicks=pxt.analytics.ConsoleTickOptions.Verbose:"2"!=r.consoleticks&&"short"!=r.consoleticks||(pxt.analytics.consoleTicks=pxt.analytics.ConsoleTickOptions.Short),pxt.setupWebConfig(window.pxtConfig||pxt.webConfig),pxt.setAppTarget(n),pxt.Cloud.apiRoot="https://www.makecode.com/api/",function(){pxt.analytics.enable(pxt.Util.userLanguage());var e={};if("undefined"!=typeof window){var t=window.screen;e["screen.width"]=t.width,e["screen.height"]=t.height,e["screen.availwidth"]=t.availWidth,e["screen.availheight"]=t.availHeight,e["screen.innerWidth"]=window.innerWidth,e["screen.innerHeight"]=window.innerHeight,e["screen.devicepixelratio"]=pxt.BrowserUtils.devicePixelRatio();var n=document.firstElementChild;n&&(e["screen.clientWidth"]=n.clientWidth,e["screen.clientHeight"]=n.clientHeight)}pxt.tickEvent(g.Loaded,e)}(),t.render((0,x.jsx)(e.StrictMode,{children:(0,x.jsx)(We,{children:(0,x.jsx)(Wp,{})})}),document.getElementById("root"))}))}()}();
|