-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (34 loc) · 121 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";e.exports=n(8)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.todo=(()=>{throw new Error("Not implemented.")}),t.exhaust=((...e)=>e[0])},function(e,t,n){"use strict";
/*!
* Abstract syntax tree (AST).
*/Object.defineProperty(t,"__esModule",{value:!0}),t.nilTerm={atom:"nil"},t.CutProp={pred:"!",term:t.nilTerm},t.TrueProp={pred:"true",term:t.nilTerm};t.AstHelper={varTerm:e=>({var:{varName:e,varId:-1}}),listTerm:(e,n)=>{let r=n||t.nilTerm;for(let t=e.length-1;t>=0;t--)r={head:e[t],tail:r};return r}}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=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,t){for(var n,i,l=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var s in n=Object(arguments[u]))a.call(n,s)&&(l[s]=n[s]);if(r){i=r(n);for(var c=0;c<i.length;c++)o.call(n,i[c])&&(l[i[c]]=n[i[c]])}}return l}},function(e,t,n){"use strict";function*r(e){const t=new Set;for(const n of e)t.has(n)||(t.add(n),yield n)}Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=function*(e,t){for(const n of e)for(const e of t(n))yield e},t.distinct=r,t.testSuite=(({describe:e,context:t,it:n,eq:a})=>{e("distinct",()=>{n("works",()=>{a([1,2,3],[...r([1,2,1,3,2])])})})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.None=[],t.Some=(e=>[e])},function(e,t,n){e.exports=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),a=n(9),o=n(13),i=n(19);a.render(r.createElement(i.AppLayout,null,r.createElement(o.ReplComponent,null)),document.getElementById("app"))},function(e,t,n){"use strict";
/** @license React v16.5.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(3),a="function"==typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,s=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.async_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112;a&&Symbol.for("react.placeholder");var m="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,a,o,i,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,i,l],s=0;(e=Error(t.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function g(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||v}function b(){}function k(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||v}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&h("85"),this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var w=k.prototype=new b;w.constructor=k,r(w,g.prototype),w.isPureReactComponent=!0;var x={current:null,currentDispatcher:null},T=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r=void 0,a={},i=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)T.call(t,r)&&!_.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===a[r]&&(a[r]=u[r]);return{$$typeof:o,type:e,key:i,ref:l,props:a,_owner:x.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var S=/\/+/g,P=[];function N(e,t,n,r){if(P.length){var a=P.pop();return a.result=e,a.keyPrefix=t,a.func=n,a.context=r,a.count=0,a}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function O(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case i:u=!0}}if(u)return r(a,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var c=n+I(l=t[s],s);u+=e(l,c,r,a)}else if(c=null===t||"object"!=typeof t?null:"function"==typeof(c=m&&t[m]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),s=0;!(l=t.next()).done;)u+=e(l=l.value,c=n+I(l,s++),r,a);else"object"===l&&h("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return u}(e,"",t,n)}function I(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 R(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,function(e){return e}):null!=e&&(C(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(S,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,a){var o="";null!=n&&(o=(""+n).replace(S,"$&/")+"/"),M(e,F,t=N(t,o,r,a)),O(t)}var U={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;M(e,R,t=N(null,null,t,n)),O(t)},count:function(e){return M(e,function(){return null},null)},toArray:function(e){var t=[];return L(e,t,null,function(e){return e}),t},only:function(e){return C(e)||h("143"),e}},createRef:function(){return{current:null}},Component:g,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,Provider:null,Consumer:null,unstable_read:null}).Provider={$$typeof:c,_context:e},e.Consumer=e,e.unstable_read=function(e,t){var n=x.currentDispatcher;return null===n&&h("277"),n.readContext(e,t)}.bind(null,e),e},forwardRef:function(e){return{$$typeof:p,render:e}},Fragment:l,StrictMode:u,unstable_AsyncMode:d,unstable_Profiler:s,createElement:E,cloneElement:function(e,t,n){(null===e||void 0===e)&&h("267",e);var a=void 0,i=r({},e.props),l=e.key,u=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,s=x.current),void 0!==t.key&&(l=""+t.key);var c=void 0;for(a in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)T.call(t,a)&&!_.hasOwnProperty(a)&&(i[a]=void 0===t[a]&&void 0!==c?c[a]:t[a])}if(1===(a=arguments.length-2))i.children=n;else if(1<a){c=Array(a);for(var f=0;f<a;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:o,type:e.type,key:l,ref:u,props:i,_owner:s}},createFactory:function(e){var t=E.bind(null,e);return t.type=e,t},isValidElement:C,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:x,assign:r}},D={default:U},A=D&&U||D;e.exports=A.default||A},function(e,t,n){"use strict";!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){console.error(e)}}(),e.exports=n(10)},function(e,t,n){"use strict";
/** @license React v16.5.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(0),a=n(3),o=n(11);function i(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,a,o,i,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,i,l],s=0;(e=Error(t.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||i("227");var l=!1,u=null,s=!1,c=null,f={onError:function(e){l=!0,u=e}};function d(e,t,n,r,a,o,i,s,c){l=!1,u=null,function(e,t,n,r,a,o,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}.apply(f,arguments)}var p=null,m={};function h(){if(p)for(var e in m){var t=m[e],n=p.indexOf(e);if(-1<n||i("96",e),!y[n])for(var r in t.extractEvents||i("97",e),y[n]=t,n=t.eventTypes){var a=void 0,o=n[r],l=t,u=r;g.hasOwnProperty(u)&&i("99",u),g[u]=o;var s=o.phasedRegistrationNames;if(s){for(a in s)s.hasOwnProperty(a)&&v(s[a],l,u);a=!0}else o.registrationName?(v(o.registrationName,l,u),a=!0):a=!1;a||i("98",r,e)}}}function v(e,t,n){b[e]&&i("100",e),b[e]=t,k[e]=t.eventTypes[n].dependencies}var y=[],g={},b={},k={},w=null,x=null,T=null;function _(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=T(r),function(e,t,n,r,a,o,f,p,m){if(d.apply(this,arguments),l){if(l){var h=u;l=!1,u=null}else i("198"),h=void 0;s||(s=!0,c=h)}}(t,n,void 0,e),e.currentTarget=null}function E(e,t){return null==t&&i("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function C(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var S=null;function P(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var a=0;a<n.length&&!e.isPropagationStopped();a++)_(e,t,n[a],r[a]);else n&&_(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function N(e){return P(e,!0)}function O(e){return P(e,!1)}var M={injectEventPluginOrder:function(e){p&&i("101"),p=Array.prototype.slice.call(e),h()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];m.hasOwnProperty(t)&&m[t]===r||(m[t]&&i("102",t),m[t]=r,n=!0)}n&&h()}};function I(e,t){var n=e.stateNode;if(!n)return null;var r=w(n);if(!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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&i("231",t,typeof n),n)}function R(e,t){if(null!==e&&(S=E(S,e)),e=S,S=null,e&&(C(e,t?N:O),S&&i("95"),s))throw t=c,s=!1,c=null,t}var F=Math.random().toString(36).slice(2),L="__reactInternalInstance$"+F,U="__reactEventHandlers$"+F;function D(e){if(e[L])return e[L];for(;!e[L];){if(!e.parentNode)return null;e=e.parentNode}return 7===(e=e[L]).tag||8===e.tag?e:null}function A(e){return!(e=e[L])||7!==e.tag&&8!==e.tag?null:e}function z(e){if(7===e.tag||8===e.tag)return e.stateNode;i("33")}function j(e){return e[U]||null}function V(e){do{e=e.return}while(e&&7!==e.tag);return e||null}function W(e,t,n){(t=I(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=E(n._dispatchListeners,t),n._dispatchInstances=E(n._dispatchInstances,e))}function $(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=V(t);for(t=n.length;0<t--;)W(n[t],"captured",e);for(t=0;t<n.length;t++)W(n[t],"bubbled",e)}}function B(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=I(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=E(n._dispatchListeners,t),n._dispatchInstances=E(n._dispatchInstances,e))}function q(e){e&&e.dispatchConfig.registrationName&&B(e._targetInst,null,e)}function H(e){C(e,$)}var K=!("undefined"==typeof window||!window.document||!window.document.createElement);function Q(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Y={animationend:Q("Animation","AnimationEnd"),animationiteration:Q("Animation","AnimationIteration"),animationstart:Q("Animation","AnimationStart"),transitionend:Q("Transition","TransitionEnd")},X={},G={};function Z(e){if(X[e])return X[e];if(!Y[e])return e;var t,n=Y[e];for(t in n)if(n.hasOwnProperty(t)&&t in G)return X[e]=n[t];return e}K&&(G=document.createElement("div").style,"AnimationEvent"in window||(delete Y.animationend.animation,delete Y.animationiteration.animation,delete Y.animationstart.animation),"TransitionEvent"in window||delete Y.transitionend.transition);var J=Z("animationend"),ee=Z("animationiteration"),te=Z("animationstart"),ne=Z("transitionend"),re="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ae=null,oe=null,ie=null;function le(){if(ie)return ie;var e,t,n=oe,r=n.length,a="value"in ae?ae.value:ae.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return ie=a.slice(e,1<t?1-t:void 0)}function ue(){return!0}function se(){return!1}function ce(e,t,n,r){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(n):"target"===a?this.target=r:this[a]=n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ue:se,this.isPropagationStopped=se,this}function fe(e,t,n,r){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)}function de(e){e instanceof this||i("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=fe,e.release=de}a(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ue)},persist:function(){this.isPersistent=ue},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return a(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,pe(n),n},pe(ce);var me=ce.extend({data:null}),he=ce.extend({data:null}),ve=[9,13,27,32],ye=K&&"CompositionEvent"in window,ge=null;K&&"documentMode"in document&&(ge=document.documentMode);var be=K&&"TextEvent"in window&&!ge,ke=K&&(!ye||ge&&8<ge&&11>=ge),we=String.fromCharCode(32),xe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Te=!1;function _e(e,t){switch(e){case"keyup":return-1!==ve.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ee(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ce=!1;var Se={eventTypes:xe,extractEvents:function(e,t,n,r){var a=void 0,o=void 0;if(ye)e:{switch(e){case"compositionstart":a=xe.compositionStart;break e;case"compositionend":a=xe.compositionEnd;break e;case"compositionupdate":a=xe.compositionUpdate;break e}a=void 0}else Ce?_e(e,n)&&(a=xe.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=xe.compositionStart);return a?(ke&&"ko"!==n.locale&&(Ce||a!==xe.compositionStart?a===xe.compositionEnd&&Ce&&(o=le()):(oe="value"in(ae=r)?ae.value:ae.textContent,Ce=!0)),a=me.getPooled(a,t,n,r),o?a.data=o:null!==(o=Ee(n))&&(a.data=o),H(a),o=a):o=null,(e=be?function(e,t){switch(e){case"compositionend":return Ee(t);case"keypress":return 32!==t.which?null:(Te=!0,we);case"textInput":return(e=t.data)===we&&Te?null:e;default:return null}}(e,n):function(e,t){if(Ce)return"compositionend"===e||!ye&&_e(e,t)?(e=le(),ie=oe=ae=null,Ce=!1,e):null;switch(e){case"paste":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 ke&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=he.getPooled(xe.beforeInput,t,n,r)).data=e,H(t)):t=null,null===o?t:null===t?o:[o,t]}},Pe=null,Ne=null,Oe=null;function Me(e){if(e=x(e)){"function"!=typeof Pe&&i("280");var t=w(e.stateNode);Pe(e.stateNode,e.type,t)}}function Ie(e){Ne?Oe?Oe.push(e):Oe=[e]:Ne=e}function Re(){if(Ne){var e=Ne,t=Oe;if(Oe=Ne=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function Fe(e,t){return e(t)}function Le(e,t,n){return e(t,n)}function Ue(){}var De=!1;function Ae(e,t){if(De)return e(t);De=!0;try{return Fe(e,t)}finally{De=!1,(null!==Ne||null!==Oe)&&(Ue(),Re())}}var ze={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 je(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ze[e.type]:"textarea"===t}function Ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function We(e){if(!K)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function $e(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Be(e){e._valueTracker||(e._valueTracker=function(e){var t=$e(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 a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.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 qe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$e(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var He=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ke=/^(.*)[\\\/]/,Qe="function"==typeof Symbol&&Symbol.for,Ye=Qe?Symbol.for("react.element"):60103,Xe=Qe?Symbol.for("react.portal"):60106,Ge=Qe?Symbol.for("react.fragment"):60107,Ze=Qe?Symbol.for("react.strict_mode"):60108,Je=Qe?Symbol.for("react.profiler"):60114,et=Qe?Symbol.for("react.provider"):60109,tt=Qe?Symbol.for("react.context"):60110,nt=Qe?Symbol.for("react.async_mode"):60111,rt=Qe?Symbol.for("react.forward_ref"):60112,at=Qe?Symbol.for("react.placeholder"):60113,ot="function"==typeof Symbol&&Symbol.iterator;function it(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=ot&&e[ot]||e["@@iterator"])?e:null}function lt(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 nt:return"AsyncMode";case Ge:return"Fragment";case Xe:return"Portal";case Je:return"Profiler";case Ze:return"StrictMode";case at:return"Placeholder"}if("object"==typeof e){switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case rt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef")}if("function"==typeof e.then&&(e=1===e._reactStatus?e._reactResult:null))return lt(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 4:case 0:case 1:case 2:case 3:case 7:case 10:var n=e._debugOwner,r=e._debugSource,a=lt(e.type),o=null;n&&(o=lt(n.type)),n=a,a="",r?a=" (at "+r.fileName.replace(Ke,"")+":"+r.lineNumber+")":o&&(a=" (created by "+o+")"),o="\n in "+(n||"Unknown")+a;break e;default:o=""}t+=o,e=e.return}while(e);return t}var st=/^[: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]*$/,ct=Object.prototype.hasOwnProperty,ft={},dt={};function pt(e,t,n,r,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t}var mt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){mt[e]=new pt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];mt[t]=new pt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){mt[e]=new pt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){mt[e]=new pt(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){mt[e]=new pt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){mt[e]=new pt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){mt[e]=new pt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){mt[e]=new pt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){mt[e]=new pt(e,5,!1,e.toLowerCase(),null)});var ht=/[\-:]([a-z])/g;function vt(e){return e[1].toUpperCase()}function yt(e,t,n,r){var a=mt.hasOwnProperty(t)?mt[t]:null;(null!==a?0===a.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||void 0===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,a,r)&&(n=null),r||null===a?function(e){return!!ct.call(dt,e)||!ct.call(ft,e)&&(st.test(e)?dt[e]=!0:(ft[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function gt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bt(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 kt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=gt(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 wt(e,t){null!=(t=t.checked)&&yt(e,"checked",t,!1)}function xt(e,t){wt(e,t);var n=gt(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")?_t(e,t.type,n):t.hasOwnProperty("defaultValue")&&_t(e,t.type,gt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Tt(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.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function _t(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+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(ht,vt);mt[t]=new pt(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ht,vt);mt[t]=new pt(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ht,vt);mt[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),mt.tabIndex=new pt("tabIndex",1,!1,"tabindex",null);var Et={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Ct(e,t,n){return(e=ce.getPooled(Et.change,e,t,n)).type="change",Ie(n),H(e),e}var St=null,Pt=null;function Nt(e){R(e,!1)}function Ot(e){if(qe(z(e)))return e}function Mt(e,t){if("change"===e)return t}var It=!1;function Rt(){St&&(St.detachEvent("onpropertychange",Ft),Pt=St=null)}function Ft(e){"value"===e.propertyName&&Ot(Pt)&&Ae(Nt,e=Ct(Pt,e,Ve(e)))}function Lt(e,t,n){"focus"===e?(Rt(),Pt=n,(St=t).attachEvent("onpropertychange",Ft)):"blur"===e&&Rt()}function Ut(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ot(Pt)}function Dt(e,t){if("click"===e)return Ot(t)}function At(e,t){if("input"===e||"change"===e)return Ot(t)}K&&(It=We("input")&&(!document.documentMode||9<document.documentMode));var zt={eventTypes:Et,_isInputEventSupported:It,extractEvents:function(e,t,n,r){var a=t?z(t):window,o=void 0,i=void 0,l=a.nodeName&&a.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===a.type?o=Mt:je(a)?It?o=At:(o=Ut,i=Lt):(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(o=Dt),o&&(o=o(e,t)))return Ct(o,n,r);i&&i(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&_t(a,"number",a.value)}},jt=ce.extend({view:null,detail:null}),Vt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Vt[e])&&!!t[e]}function $t(){return Wt}var Bt=0,qt=0,Ht=!1,Kt=!1,Qt=jt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:$t,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Bt;return Bt=e.screenX,Ht?"mousemove"===e.type?e.screenX-t:0:(Ht=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=qt;return qt=e.screenY,Kt?"mousemove"===e.type?e.screenY-t:0:(Kt=!0,0)}}),Yt=Qt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Xt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Gt={eventTypes:Xt,extractEvents:function(e,t,n,r){var a="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(a&&(n.relatedTarget||n.fromElement)||!o&&!a)return null;if(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?D(t):null):o=null,o===t)return null;var i=void 0,l=void 0,u=void 0,s=void 0;"mouseout"===e||"mouseover"===e?(i=Qt,l=Xt.mouseLeave,u=Xt.mouseEnter,s="mouse"):"pointerout"!==e&&"pointerover"!==e||(i=Yt,l=Xt.pointerLeave,u=Xt.pointerEnter,s="pointer");var c=null==o?a:z(o);if(a=null==t?a:z(t),(e=i.getPooled(l,o,n,r)).type=s+"leave",e.target=c,e.relatedTarget=a,(n=i.getPooled(u,t,n,r)).type=s+"enter",n.target=a,n.relatedTarget=c,r=t,o&&r)e:{for(a=r,s=0,i=t=o;i;i=V(i))s++;for(i=0,u=a;u;u=V(u))i++;for(;0<s-i;)t=V(t),s--;for(;0<i-s;)a=V(a),i--;for(;s--;){if(t===a||t===a.alternate)break e;t=V(t),a=V(a)}t=null}else t=null;for(a=t,t=[];o&&o!==a&&(null===(s=o.alternate)||s!==a);)t.push(o),o=V(o);for(o=[];r&&r!==a&&(null===(s=r.alternate)||s!==a);)o.push(r),r=V(r);for(r=0;r<t.length;r++)B(t[r],"bubbled",e);for(r=o.length;0<r--;)B(o[r],"captured",n);return[e,n]}},Zt=Object.prototype.hasOwnProperty;function Jt(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function en(e,t){if(Jt(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(!Zt.call(t,n[r])||!Jt(e[n[r]],t[n[r]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 5===t.tag?2:3}function nn(e){2!==tn(e)&&i("188")}function rn(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&i("188"),1===t?null:e;for(var n=e,r=t;;){var a=n.return,o=a?a.alternate:null;if(!a||!o)break;if(a.child===o.child){for(var l=a.child;l;){if(l===n)return nn(a),e;if(l===r)return nn(a),t;l=l.sibling}i("188")}if(n.return!==r.return)n=a,r=o;else{l=!1;for(var u=a.child;u;){if(u===n){l=!0,n=a,r=o;break}if(u===r){l=!0,r=a,n=o;break}u=u.sibling}if(!l){for(u=o.child;u;){if(u===n){l=!0,n=o,r=a;break}if(u===r){l=!0,r=o,n=a;break}u=u.sibling}l||i("189")}}n.alternate!==r&&i("190")}return 5!==n.tag&&i("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(7===t.tag||8===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}var an=ce.extend({animationName:null,elapsedTime:null,pseudoElement:null}),on=ce.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ln=jt.extend({relatedTarget:null});function un(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}var sn={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"},fn=jt.extend({key:function(e){if(e.key){var t=sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=un(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:$t,charCode:function(e){return"keypress"===e.type?un(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?un(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),dn=Qt.extend({dataTransfer:null}),pn=jt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:$t}),mn=ce.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),hn=Qt.extend({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:null,deltaMode:null}),vn=[["abort","abort"],[J,"animationEnd"],[ee,"animationIteration"],[te,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ne,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],yn={},gn={};function bn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},yn[e]=t,gn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["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"]].forEach(function(e){bn(e,!0)}),vn.forEach(function(e){bn(e,!1)});var kn={eventTypes:yn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=gn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var a=gn[e];if(!a)return null;switch(e){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=ln;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=dn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=pn;break;case J:case ee:case te:e=an;break;case ne:e=mn;break;case"scroll":e=jt;break;case"wheel":e=hn;break;case"copy":case"cut":case"paste":e=on;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Yt;break;default:e=ce}return H(t=e.getPooled(a,t,n,r)),t}},wn=kn.isInteractiveTopLevelEventType,xn=[];function Tn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=5!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=D(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var a=Ve(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,i=null,l=0;l<y.length;l++){var u=y[l];u&&(u=u.extractEvents(r,t,o,a))&&(i=E(i,u))}R(i,!1)}}var _n=!0;function En(e,t){if(!t)return null;var n=(wn(e)?Sn:Pn).bind(null,e);t.addEventListener(e,n,!1)}function Cn(e,t){if(!t)return null;var n=(wn(e)?Sn:Pn).bind(null,e);t.addEventListener(e,n,!0)}function Sn(e,t){Le(Pn,e,t)}function Pn(e,t){if(_n){var n=Ve(t);if(null===(n=D(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),xn.length){var r=xn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Ae(Tn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>xn.length&&xn.push(e)}}}var Nn={},On=0,Mn="_reactListenersID"+(""+Math.random()).slice(2);function In(e){return Object.prototype.hasOwnProperty.call(e,Mn)||(e[Mn]=On++,Nn[e[Mn]]={}),Nn[e[Mn]]}function Rn(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 Fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ln(e,t){var n,r=Fn(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=Fn(r)}}function Un(){for(var e=window,t=Rn();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Rn(e.document)}return t}function Dn(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 An=K&&"documentMode"in document&&11>=document.documentMode,zn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},jn=null,Vn=null,Wn=null,$n=!1;function Bn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return $n||null==jn||jn!==Rn(n)?null:("selectionStart"in(n=jn)&&Dn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wn&&en(Wn,n)?null:(Wn=n,(e=ce.getPooled(zn.select,Vn,e,t)).type="select",e.target=jn,H(e),e))}var qn={eventTypes:zn,extractEvents:function(e,t,n,r){var a,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(a=!o)){e:{o=In(o),a=k.onSelect;for(var i=0;i<a.length;i++){var l=a[i];if(!o.hasOwnProperty(l)||!o[l]){o=!1;break e}}o=!0}a=!o}if(a)return null;switch(o=t?z(t):window,e){case"focus":(je(o)||"true"===o.contentEditable)&&(jn=o,Vn=t,Wn=null);break;case"blur":Wn=Vn=jn=null;break;case"mousedown":$n=!0;break;case"contextmenu":case"mouseup":case"dragend":return $n=!1,Bn(n,r);case"selectionchange":if(An)break;case"keydown":case"keyup":return Bn(n,r)}return null}};function Hn(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Kn(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+gt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Qn(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&i("92"),Array.isArray(t)&&(1>=t.length||i("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:gt(n)}}function Xn(e,t){var n=gt(t.value),r=gt(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 Gn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}M.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w=j,x=A,T=z,M.injectEventPluginsByName({SimpleEventPlugin:kn,EnterLeaveEventPlugin:Gt,ChangeEventPlugin:zt,SelectEventPlugin:qn,BeforeInputEventPlugin:Se});var Zn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Jn(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 er(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Jn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tr=void 0,nr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==Zn.svg||"innerHTML"in e)e.innerHTML=t;else{for((tr=tr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rr(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 ar={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},or=["Webkit","ms","Moz","O"];function ir(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=n,o=t[n];a=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||ar.hasOwnProperty(a)&&ar[a]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ar).forEach(function(e){or.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ar[t]=ar[e]})});var lr=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 ur(e,t){t&&(lr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&i("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&i("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||i("61")),null!=t.style&&"object"!=typeof t.style&&i("62",""))}function sr(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 cr(e,t){var n=In(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=k[t];for(var r=0;r<t.length;r++){var a=t[r];if(!n.hasOwnProperty(a)||!n[a]){switch(a){case"scroll":Cn("scroll",e);break;case"focus":case"blur":Cn("focus",e),Cn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":We(a)&&Cn(a,e);break;case"invalid":case"submit":case"reset":break;default:-1===re.indexOf(a)&&En(a,e)}n[a]=!0}}}function fr(){}var dr=null,pr=null;function mr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function hr(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}function vr(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function yr(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var gr=[],br=-1;function kr(e){0>br||(e.current=gr[br],gr[br]=null,br--)}function wr(e,t){gr[++br]=e.current,e.current=t}var xr={},Tr={current:xr},_r={current:!1},Er=xr;function Cr(e,t){var n=e.type.contextTypes;if(!n)return xr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Sr(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pr(e){kr(_r),kr(Tr)}function Nr(e){kr(_r),kr(Tr)}function Or(e,t,n){Tr.current!==xr&&i("168"),wr(Tr,t),wr(_r,n)}function Mr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())o in e||i("108",lt(t)||"Unknown",o);return a({},n,r)}function Ir(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||xr,Er=Tr.current,wr(Tr,t),wr(_r,_r.current),!0}function Rr(e,t,n){var r=e.stateNode;r||i("169"),n?(t=Mr(e,t,Er),r.__reactInternalMemoizedMergedChildContext=t,kr(_r),kr(Tr),wr(Tr,t)):kr(_r),wr(_r,n)}var Fr=null,Lr=null;function Ur(e){return function(t){try{return e(t)}catch(e){}}}function Dr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ar(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zr(e,t,n){var r=e.alternate;return null===r?((r=new Dr(e.tag,t,e.key,e.mode)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=t!==e.pendingProps?n:e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.firstContextDependency=e.firstContextDependency,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function jr(e,t,n){var r=e.type,a=e.key;e=e.props;var o=void 0;if("function"==typeof r)o=Ar(r)?2:4;else if("string"==typeof r)o=7;else e:switch(r){case Ge:return Vr(e.children,t,n,a);case nt:o=10,t|=3;break;case Ze:o=10,t|=2;break;case Je:return(r=new Dr(15,e,a,4|t)).type=Je,r.expirationTime=n,r;case at:o=16;break;default:if("object"==typeof r&&null!==r)switch(r.$$typeof){case et:o=12;break e;case tt:o=11;break e;case rt:o=13;break e;default:if("function"==typeof r.then){o=4;break e}}i("130",null==r?r:typeof r,"")}return(t=new Dr(o,e,a,t)).type=r,t.expirationTime=n,t}function Vr(e,t,n,r){return(e=new Dr(9,e,r,t)).expirationTime=n,e}function Wr(e,t,n){return(e=new Dr(8,e,null,t)).expirationTime=n,e}function $r(e,t,n){return(t=new Dr(6,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Br(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n>t?e.earliestPendingTime=t:e.latestPendingTime<t&&(e.latestPendingTime=t),qr(t,e)}function qr(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,a=t.earliestPendingTime,o=t.latestPingedTime;0===(a=0!==a?a:o)&&(0===e||r>e)&&(a=r),0!==(e=a)&&0!==n&&n<e&&(e=n),t.nextExpirationTimeToWorkOn=a,t.expirationTime=e}var Hr=!1;function Kr(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Qr(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Yr(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Xr(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Gr(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,a=null;null===r&&(r=e.updateQueue=Kr(e.memoizedState))}else r=e.updateQueue,a=n.updateQueue,null===r?null===a?(r=e.updateQueue=Kr(e.memoizedState),a=n.updateQueue=Kr(n.memoizedState)):r=e.updateQueue=Qr(a):null===a&&(a=n.updateQueue=Qr(r));null===a||r===a?Xr(r,t):null===r.lastUpdate||null===a.lastUpdate?(Xr(r,t),Xr(a,t)):(Xr(r,t),a.lastUpdate=t)}function Zr(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Kr(e.memoizedState):Jr(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Jr(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Qr(t)),t}function ea(e,t,n,r,o,i){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(i,r,o):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(null===(o="function"==typeof(e=n.payload)?e.call(i,r,o):e)||void 0===o)break;return a({},r,o);case 2:Hr=!0}return r}function ta(e,t,n,r,a){Hr=!1;for(var o=(t=Jr(e,t)).baseState,i=null,l=0,u=t.firstUpdate,s=o;null!==u;){var c=u.expirationTime;c>a?(null===i&&(i=u,o=s),(0===l||l>c)&&(l=c)):(s=ea(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(c=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f>a?(null===c&&(c=u,null===i&&(o=s)),(0===l||l>f)&&(l=f)):(s=ea(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===i&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===i&&null===c&&(o=s),t.baseState=o,t.firstUpdate=i,t.firstCapturedUpdate=c,e.expirationTime=l,e.memoizedState=s}function na(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ra(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ra(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ra(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&i("191",n),n.call(r)}e=e.nextEffect}}function aa(e,t){return{value:e,source:t,stack:ut(t)}}var oa={current:null},ia=null,la=null,ua=null;function sa(e,t){var n=e.type._context;wr(oa,n._currentValue),n._currentValue=t}function ca(e){var t=oa.current;kr(oa),e.type._context._currentValue=t}function fa(e){ia=e,ua=la=null,e.firstContextDependency=null}function da(e,t){return ua!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(ua=e,t=1073741823),t={context:e,observedBits:t,next:null},null===la?(null===ia&&i("277"),ia.firstContextDependency=la=t):la=la.next=t),e._currentValue}var pa={},ma={current:pa},ha={current:pa},va={current:pa};function ya(e){return e===pa&&i("174"),e}function ga(e,t){wr(va,t),wr(ha,e),wr(ma,pa);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:er(null,"");break;default:t=er(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}kr(ma),wr(ma,t)}function ba(e){kr(ma),kr(ha),kr(va)}function ka(e){ya(va.current);var t=ya(ma.current),n=er(t,e.type);t!==n&&(wr(ha,e),wr(ma,n))}function wa(e){ha.current===e&&(kr(ma),kr(ha))}var xa=(new r.Component).refs;function Ta(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var _a={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ii(),a=Yr(r=Io(r,e));a.payload=t,void 0!==n&&null!==n&&(a.callback=n),Gr(e,a),Ro(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ii(),a=Yr(r=Io(r,e));a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),Gr(e,a),Ro(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ii(),r=Yr(n=Io(n,e));r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Gr(e,r),Ro(e,n)}};function Ea(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,r)||!en(a,o))}function Ca(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&&_a.enqueueReplaceState(t,t.state,null)}function Sa(e,t,n,r){var a=e.stateNode,o=Sr(t)?Er:Tr.current;a.props=n,a.state=e.memoizedState,a.refs=xa,a.context=Cr(e,o),null!==(o=e.updateQueue)&&(ta(e,o,n,a,r),a.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(Ta(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&_a.enqueueReplaceState(a,a.state,null),null!==(o=e.updateQueue)&&(ta(e,o,n,a,r),a.state=e.memoizedState)),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var Pa=Array.isArray;function Na(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){var r=void 0;(n=n._owner)&&(2!==n.tag&&3!==n.tag&&i("110"),r=n.stateNode),r||i("147",e);var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===xa&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}"string"!=typeof e&&i("284"),n._owner||i("254",e)}return e}function Oa(e,t){"textarea"!==e.type&&i("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Ma(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.effectTag=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 a(e,t,n){return(e=zr(e,t,n)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||8!==t.tag?((t=Wr(n,e.mode,r)).return=e,t):((t=a(t,n,r)).return=e,t)}function s(e,t,n,r){return null!==t&&t.type===n.type?((r=a(t,n.props,r)).ref=Na(e,t,n),r.return=e,r):((r=jr(n,e.mode,r)).ref=Na(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||6!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$r(n,e.mode,r)).return=e,t):((t=a(t,n.children||[],r)).return=e,t)}function f(e,t,n,r,o){return null===t||9!==t.tag?((t=Vr(n,e.mode,r,o)).return=e,t):((t=a(t,n,r)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Wr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ye:return(n=jr(t,e.mode,n)).ref=Na(e,null,t),n.return=e,n;case Xe:return(t=$r(t,e.mode,n)).return=e,t}if(Pa(t)||it(t))return(t=Vr(t,e.mode,n,null)).return=e,t;Oa(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ye:return n.key===a?n.type===Ge?f(e,t,n.props.children,r,a):s(e,t,n,r):null;case Xe:return n.key===a?c(e,t,n,r):null}if(Pa(n)||it(n))return null!==a?null:f(e,t,n,r,null);Oa(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ye:return e=e.get(null===r.key?n:r.key)||null,r.type===Ge?f(t,e,r.props.children,a,r.key):s(t,e,r,a);case Xe:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(Pa(r)||it(r))return f(t,e=e.get(n)||null,r,a,null);Oa(t,r)}return null}function h(a,i,l,u){for(var s=null,c=null,f=i,h=i=0,v=null;null!==f&&h<l.length;h++){f.index>h?(v=f,f=null):v=f.sibling;var y=p(a,f,l[h],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(a,f),i=o(y,i,h),null===c?s=y:c.sibling=y,c=y,f=v}if(h===l.length)return n(a,f),s;if(null===f){for(;h<l.length;h++)(f=d(a,l[h],u))&&(i=o(f,i,h),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(a,f);h<l.length;h++)(v=m(f,a,h,l[h],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?h:v.key),i=o(v,i,h),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return t(a,e)}),s}function v(a,l,u,s){var c=it(u);"function"!=typeof c&&i("150"),null==(u=c.call(u))&&i("151");for(var f=c=null,h=l,v=l=0,y=null,g=u.next();null!==h&&!g.done;v++,g=u.next()){h.index>v?(y=h,h=null):y=h.sibling;var b=p(a,h,g.value,s);if(null===b){h||(h=y);break}e&&h&&null===b.alternate&&t(a,h),l=o(b,l,v),null===f?c=b:f.sibling=b,f=b,h=y}if(g.done)return n(a,h),c;if(null===h){for(;!g.done;v++,g=u.next())null!==(g=d(a,g.value,s))&&(l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return c}for(h=r(a,h);!g.done;v++,g=u.next())null!==(g=m(h,a,v,g.value,s))&&(e&&null!==g.alternate&&h.delete(null===g.key?v:g.key),l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return e&&h.forEach(function(e){return t(a,e)}),c}return function(e,r,o,u){var s="object"==typeof o&&null!==o&&o.type===Ge&&null===o.key;s&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case Ye:e:{for(c=o.key,s=r;null!==s;){if(s.key===c){if(9===s.tag?o.type===Ge:s.type===o.type){n(e,s.sibling),(r=a(s,o.type===Ge?o.props.children:o.props,u)).ref=Na(e,s,o),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}o.type===Ge?((r=Vr(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=jr(o,e.mode,u)).ref=Na(e,r,o),u.return=e,e=u)}return l(e);case Xe:e:{for(s=o.key;null!==r;){if(r.key===s){if(6===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=a(r,o.children||[],u)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=$r(o,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&8===r.tag?(n(e,r.sibling),(r=a(r,o,u)).return=e,e=r):(n(e,r),(r=Wr(o,e.mode,u)).return=e,e=r),l(e);if(Pa(o))return h(e,r,o,u);if(it(o))return v(e,r,o,u);if(c&&Oa(e,o),void 0===o&&!s)switch(e.tag){case 2:case 3:case 0:i("152",(u=e.type).displayName||u.name||"Component")}return n(e,r)}}var Ia=Ma(!0),Ra=Ma(!1),Fa=null,La=null,Ua=!1;function Da(e,t){var n=new Dr(7,null,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Aa(e,t){switch(e.tag){case 7:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 8:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function za(e){if(Ua){var t=La;if(t){var n=t;if(!Aa(e,t)){if(!(t=vr(n))||!Aa(e,t))return e.effectTag|=2,Ua=!1,void(Fa=e);Da(Fa,n)}Fa=e,La=yr(t)}else e.effectTag|=2,Ua=!1,Fa=e}}function ja(e){for(e=e.return;null!==e&&7!==e.tag&&5!==e.tag;)e=e.return;Fa=e}function Va(e){if(e!==Fa)return!1;if(!Ua)return ja(e),Ua=!0,!1;var t=e.type;if(7!==e.tag||"head"!==t&&"body"!==t&&!hr(t,e.memoizedProps))for(t=La;t;)Da(e,t),t=vr(t);return ja(e),La=Fa?vr(e.stateNode):null,!0}function Wa(){La=Fa=null,Ua=!1}var $a=He.ReactCurrentOwner;function Ba(e,t,n,r){t.child=null===e?Ra(t,null,n,r):Ia(t,e.child,n,r)}function qa(e,t,n,r,a){n=n.render;var o=t.ref;return _r.current||t.memoizedProps!==r||o!==(null!==e?e.ref:null)?(Ba(e,t,n=n(r,o),a),t.memoizedProps=r,t.child):Za(e,t,a)}function Ha(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ka(e,t,n,r,a){var o=Sr(n)?Er:Tr.current;return o=Cr(t,o),fa(t),n=n(r,o),t.effectTag|=1,Ba(e,t,n,a),t.memoizedProps=r,t.child}function Qa(e,t,n,r,a){if(Sr(n)){var o=!0;Ir(t)}else o=!1;if(fa(t),null===e)if(null===t.stateNode){var i=Sr(n)?Er:Tr.current,l=n.contextTypes,u=null!==l&&void 0!==l,s=new n(r,l=u?Cr(t,i):xr);t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,s.updater=_a,t.stateNode=s,s._reactInternalFiber=t,u&&((u=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,u.__reactInternalMemoizedMaskedChildContext=l),Sa(t,n,r,a),r=!0}else{i=t.stateNode,l=t.memoizedProps,i.props=l;var c=i.context;u=Cr(t,u=Sr(n)?Er:Tr.current);var f=n.getDerivedStateFromProps;(s="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||c!==u)&&Ca(t,i,r,u),Hr=!1;var d=t.memoizedState;c=i.state=d;var p=t.updateQueue;null!==p&&(ta(t,p,r,i,a),c=t.memoizedState),l!==r||d!==c||_r.current||Hr?("function"==typeof f&&(Ta(t,n,f,r),c=t.memoizedState),(l=Hr||Ea(t,n,l,r,d,c,u))?(s||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.effectTag|=4)):("function"==typeof i.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=l):("function"==typeof i.componentDidMount&&(t.effectTag|=4),r=!1)}else i=t.stateNode,l=t.memoizedProps,i.props=l,c=i.context,u=Cr(t,u=Sr(n)?Er:Tr.current),(s="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||c!==u)&&Ca(t,i,r,u),Hr=!1,c=t.memoizedState,d=i.state=c,null!==(p=t.updateQueue)&&(ta(t,p,r,i,a),d=t.memoizedState),l!==r||c!==d||_r.current||Hr?("function"==typeof f&&(Ta(t,n,f,r),d=t.memoizedState),(f=Hr||Ea(t,n,l,r,c,d,u))?(s||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,d,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,d,u)),"function"==typeof i.componentDidUpdate&&(t.effectTag|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),i.props=r,i.state=d,i.context=u,r=f):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return Ya(e,t,n,r,o,a)}function Ya(e,t,n,r,a,o){Ha(e,t);var i=0!=(64&t.effectTag);if(!r&&!i)return a&&Rr(t,n,!1),Za(e,t,o);r=t.stateNode,$a.current=t;var l=i?null:r.render();return t.effectTag|=1,null!==e&&i&&(Ba(e,t,null,o),t.child=null),Ba(e,t,l,o),t.memoizedState=r.state,t.memoizedProps=r.props,a&&Rr(t,n,!0),t.child}function Xa(e){var t=e.stateNode;t.pendingContext?Or(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Or(0,t.context,!1),ga(e,t.containerInfo)}function Ga(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}function Za(e,t,n){null!==e&&(t.firstContextDependency=e.firstContextDependency);var r=t.childExpirationTime;if(0===r||r>n)return null;if(null!==e&&t.child!==e.child&&i("153"),null!==t.child){for(n=zr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Ja(e,t,n){var r=t.expirationTime;if(!_r.current&&(0===r||r>n)){switch(t.tag){case 5:Xa(t),Wa();break;case 7:ka(t);break;case 2:Sr(t.type)&&Ir(t);break;case 3:Sr(t.type._reactResult)&&Ir(t);break;case 6:ga(t,t.stateNode.containerInfo);break;case 12:sa(t,t.memoizedProps.value)}return Za(e,t,n)}switch(t.expirationTime=0,t.tag){case 4:return function(e,t,n,r){null!==e&&i("155");var a=t.pendingProps;if("object"==typeof n&&null!==n&&"function"==typeof n.then){var o=n=function(e){switch(e._reactStatus){case 1:return e._reactResult;case 2:throw e._reactResult;case 0:throw e;default:throw e._reactStatus=0,e.then(function(t){if(0===e._reactStatus){if(e._reactStatus=1,"object"==typeof t&&null!==t){var n=t.default;t=void 0!==n&&null!==n?n:t}e._reactResult=t}},function(t){0===e._reactStatus&&(e._reactStatus=2,e._reactResult=t)}),e}}(n);o="function"==typeof o?Ar(o)?3:1:void 0!==o&&null!==o&&o.$$typeof?14:4,o=t.tag=o;var l=Ga(n,a);switch(o){case 1:return Ka(e,t,n,l,r);case 3:return Qa(e,t,n,l,r);case 14:return qa(e,t,n,l,r);default:i("283",n)}}if(o=Cr(t,Tr.current),fa(t),o=n(a,o),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){t.tag=2,Sr(n)?(l=!0,Ir(t)):l=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var u=n.getDerivedStateFromProps;return"function"==typeof u&&Ta(t,n,u,a),o.updater=_a,t.stateNode=o,o._reactInternalFiber=t,Sa(t,n,a,r),Ya(e,t,n,!0,l,r)}return t.tag=0,Ba(e,t,o,r),t.memoizedProps=a,t.child}(e,t,t.type,n);case 0:return Ka(e,t,t.type,t.pendingProps,n);case 1:var a=t.type._reactResult;return e=Ka(e,t,a,Ga(a,r=t.pendingProps),n),t.memoizedProps=r,e;case 2:return Qa(e,t,t.type,t.pendingProps,n);case 3:return e=Qa(e,t,a=t.type._reactResult,Ga(a,r=t.pendingProps),n),t.memoizedProps=r,e;case 5:return Xa(t),null===(r=t.updateQueue)&&i("282"),a=null!==(a=t.memoizedState)?a.element:null,ta(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===a?(Wa(),t=Za(e,t,n)):(a=t.stateNode,(a=(null===e||null===e.child)&&a.hydrate)&&(La=yr(t.stateNode.containerInfo),Fa=t,a=Ua=!0),a?(t.effectTag|=2,t.child=Ra(t,null,r,n)):(Ba(e,t,r,n),Wa()),t=t.child),t;case 7:ka(t),null===e&&za(t),r=t.type,a=t.pendingProps;var o=null!==e?e.memoizedProps:null,l=a.children;return hr(r,a)?l=null:null!==o&&hr(r,o)&&(t.effectTag|=16),Ha(e,t),1073741823!==n&&1&t.mode&&a.hidden?(t.expirationTime=1073741823,t.memoizedProps=a,t=null):(Ba(e,t,l,n),t.memoizedProps=a,t=t.child),t;case 8:return null===e&&za(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 6:return ga(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ia(t,null,r,n):Ba(e,t,r,n),t.memoizedProps=r,t.child;case 13:return qa(e,t,t.type,t.pendingProps,n);case 14:return e=qa(e,t,a=t.type._reactResult,Ga(a,r=t.pendingProps),n),t.memoizedProps=r,e;case 9:return Ba(e,t,r=t.pendingProps,n),t.memoizedProps=r,t.child;case 10:return Ba(e,t,r=t.pendingProps.children,n),t.memoizedProps=r,t.child;case 15:return Ba(e,t,(r=t.pendingProps).children,n),t.memoizedProps=r,t.child;case 12:e:{if(r=t.type._context,a=t.pendingProps,l=t.memoizedProps,o=a.value,t.memoizedProps=a,sa(t,o),null!==l){var u=l.value;if(0===(o=u===o&&(0!==u||1/u==1/o)||u!=u&&o!=o?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(l.children===a.children&&!_r.current){t=Za(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){if(null!==(u=l.firstContextDependency))do{if(u.context===r&&0!=(u.observedBits&o)){if(2===l.tag||3===l.tag){var s=Yr(n);s.tag=2,Gr(l,s)}(0===l.expirationTime||l.expirationTime>n)&&(l.expirationTime=n),null!==(s=l.alternate)&&(0===s.expirationTime||s.expirationTime>n)&&(s.expirationTime=n);for(var c=l.return;null!==c;){if(s=c.alternate,0===c.childExpirationTime||c.childExpirationTime>n)c.childExpirationTime=n,null!==s&&(0===s.childExpirationTime||s.childExpirationTime>n)&&(s.childExpirationTime=n);else{if(null===s||!(0===s.childExpirationTime||s.childExpirationTime>n))break;s.childExpirationTime=n}c=c.return}}s=l.child,u=u.next}while(null!==u);else s=12===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}}Ba(e,t,a.children,n),t=t.child}return t;case 11:return o=t.type,a=(r=t.pendingProps).children,fa(t),a=a(o=da(o,r.unstable_observedBits)),t.effectTag|=1,Ba(e,t,a,n),t.memoizedProps=r,t.child;default:i("156")}}function eo(e){e.effectTag|=4}var to=void 0,no=void 0,ro=void 0;function ao(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ut(n)),null!==n&<(n.type),t=t.value,null!==e&&2===e.tag&<(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function oo(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Mo(e,t)}else t.current=null}function io(e){switch("function"==typeof Lr&&Lr(e),e.tag){case 2:case 3:oo(e);var t=e.stateNode;if("function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Mo(e,t)}break;case 7:oo(e);break;case 6:so(e)}}function lo(e){return 7===e.tag||5===e.tag||6===e.tag}function uo(e){e:{for(var t=e.return;null!==t;){if(lo(t)){var n=t;break e}t=t.return}i("160"),n=void 0}var r=t=void 0;switch(n.tag){case 7:t=n.stateNode,r=!1;break;case 5:case 6:t=n.stateNode.containerInfo,r=!0;break;default:i("161")}16&n.effectTag&&(rr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||lo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;7!==n.tag&&8!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||6===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var a=e;;){if(7===a.tag||8===a.tag)if(n)if(r){var o=t,l=a.stateNode,u=n;8===o.nodeType?o.parentNode.insertBefore(l,u):o.insertBefore(l,u)}else t.insertBefore(a.stateNode,n);else r?(o=t,l=a.stateNode,8===o.nodeType?(u=o.parentNode).insertBefore(l,o):(u=o).appendChild(l),null===u.onclick&&(u.onclick=fr)):t.appendChild(a.stateNode);else if(6!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function so(e){for(var t=e,n=!1,r=void 0,a=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&i("160"),n.tag){case 7:r=n.stateNode,a=!1;break e;case 5:case 6:r=n.stateNode.containerInfo,a=!0;break e}n=n.return}n=!0}if(7===t.tag||8===t.tag){e:for(var o=t,l=o;;)if(io(l),null!==l.child&&6!==l.tag)l.child.return=l,l=l.child;else{if(l===o)break;for(;null===l.sibling;){if(null===l.return||l.return===o)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}a?(o=r,l=t.stateNode,8===o.nodeType?o.parentNode.removeChild(l):o.removeChild(l)):r.removeChild(t.stateNode)}else if(6===t.tag?(r=t.stateNode.containerInfo,a=!0):io(t),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;6===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function co(e,t){switch(t.tag){case 2:case 3:break;case 7:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,a=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[U]=r,"input"===e&&"radio"===r.type&&null!=r.name&&wt(n,r),sr(e,a),t=sr(e,r),a=0;a<o.length;a+=2){var l=o[a],u=o[a+1];"style"===l?ir(n,u):"dangerouslySetInnerHTML"===l?nr(n,u):"children"===l?rr(n,u):yt(n,l,u,t)}switch(e){case"input":xt(n,r);break;case"textarea":Xn(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?Kn(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?Kn(n,!!r.multiple,r.defaultValue,!0):Kn(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 8:null===t.stateNode&&i("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 5:case 15:case 16:break;default:i("163")}}function fo(e,t,n){(n=Yr(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pi(r),ao(e,t)},n}function po(e,t,n){(n=Yr(n)).tag=3;var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===Co?Co=new Set([this]):Co.add(this);var n=t.value,r=t.stack;ao(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function mo(e){switch(e.tag){case 2:Sr(e.type)&&Pr();var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return Sr(e.type._reactResult)&&Pr(),1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 5:return ba(),Nr(),0!=(64&(t=e.effectTag))&&i("285"),e.effectTag=-1025&t|64,e;case 7:return wa(e),null;case 16:return 1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 6:return ba(),null;case 12:return ca(e),null;default:return null}}to=function(){},no=function(e,t,n,r,o){var i=e.memoizedProps;if(i!==r){var l=t.stateNode;switch(ya(ma.current),e=null,n){case"input":i=bt(l,i),r=bt(l,r),e=[];break;case"option":i=Hn(l,i),r=Hn(l,r),e=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),e=[];break;case"textarea":i=Qn(l,i),r=Qn(l,r),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(l.onclick=fr)}ur(n,r),l=n=void 0;var u=null;for(n in i)if(!r.hasOwnProperty(n)&&i.hasOwnProperty(n)&&null!=i[n])if("style"===n){var s=i[n];for(l in s)s.hasOwnProperty(l)&&(u||(u={}),u[l]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(b.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var c=r[n];if(s=null!=i?i[n]:void 0,r.hasOwnProperty(n)&&c!==s&&(null!=c||null!=s))if("style"===n)if(s){for(l in s)!s.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(u||(u={}),u[l]="");for(l in c)c.hasOwnProperty(l)&&s[l]!==c[l]&&(u||(u={}),u[l]=c[l])}else u||(e||(e=[]),e.push(n,u)),u=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(e=e||[]).push(n,""+c)):"children"===n?s===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(b.hasOwnProperty(n)?(null!=c&&cr(o,n),e||s===c||(e=[])):(e=e||[]).push(n,c))}u&&(e=e||[]).push("style",u),o=e,(t.updateQueue=o)&&eo(t)}},ro=function(e,t,n,r){n!==r&&eo(t)};var ho={readContext:da},vo=He.ReactCurrentOwner,yo=0,go=0,bo=!1,ko=null,wo=null,xo=0,To=!1,_o=null,Eo=!1,Co=null;function So(){if(null!==ko)for(var e=ko.return;null!==e;){var t=e;switch(t.tag){case 2:var n=t.type.childContextTypes;null!==n&&void 0!==n&&Pr();break;case 3:null!==(n=t.type._reactResult.childContextTypes)&&void 0!==n&&Pr();break;case 5:ba(),Nr();break;case 7:wa(t);break;case 6:ba();break;case 12:ca(t)}e=e.return}wo=null,xo=0,To=!1,ko=null}function Po(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(512&e.effectTag)){var o=t,l=(t=e).pendingProps;switch(t.tag){case 0:case 1:break;case 2:Sr(t.type)&&Pr();break;case 3:Sr(t.type._reactResult)&&Pr();break;case 5:ba(),Nr(),(l=t.stateNode).pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==o&&null!==o.child||(Va(t),t.effectTag&=-3),to(t);break;case 7:wa(t);var u=ya(va.current),s=t.type;if(null!==o&&null!=t.stateNode)no(o,t,s,l,u),o.ref!==t.ref&&(t.effectTag|=128);else if(l){var c=ya(ma.current);if(Va(t)){o=(l=t).stateNode;var f=l.type,d=l.memoizedProps,p=u;switch(o[L]=l,o[U]=d,s=void 0,u=f){case"iframe":case"object":En("load",o);break;case"video":case"audio":for(f=0;f<re.length;f++)En(re[f],o);break;case"source":En("error",o);break;case"img":case"image":case"link":En("error",o),En("load",o);break;case"form":En("reset",o),En("submit",o);break;case"details":En("toggle",o);break;case"input":kt(o,d),En("invalid",o),cr(p,"onChange");break;case"select":o._wrapperState={wasMultiple:!!d.multiple},En("invalid",o),cr(p,"onChange");break;case"textarea":Yn(o,d),En("invalid",o),cr(p,"onChange")}for(s in ur(u,d),f=null,d)d.hasOwnProperty(s)&&(c=d[s],"children"===s?"string"==typeof c?o.textContent!==c&&(f=["children",c]):"number"==typeof c&&o.textContent!==""+c&&(f=["children",""+c]):b.hasOwnProperty(s)&&null!=c&&cr(p,s));switch(u){case"input":Be(o),Tt(o,d,!0);break;case"textarea":Be(o),Gn(o);break;case"select":case"option":break;default:"function"==typeof d.onClick&&(o.onclick=fr)}s=f,l.updateQueue=s,(l=null!==s)&&eo(t)}else{d=t,o=s,p=l,f=9===u.nodeType?u:u.ownerDocument,c===Zn.html&&(c=Jn(o)),c===Zn.html?"script"===o?((o=f.createElement("div")).innerHTML="<script><\/script>",f=o.removeChild(o.firstChild)):"string"==typeof p.is?f=f.createElement(o,{is:p.is}):(f=f.createElement(o),"select"===o&&p.multiple&&(f.multiple=!0)):f=f.createElementNS(c,o),(o=f)[L]=d,o[U]=l;e:for(d=o,p=t,f=p.child;null!==f;){if(7===f.tag||8===f.tag)d.appendChild(f.stateNode);else if(6!==f.tag&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===p)break;for(;null===f.sibling;){if(null===f.return||f.return===p)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}p=o;var m=u,h=sr(f=s,d=l);switch(f){case"iframe":case"object":En("load",p),u=d;break;case"video":case"audio":for(u=0;u<re.length;u++)En(re[u],p);u=d;break;case"source":En("error",p),u=d;break;case"img":case"image":case"link":En("error",p),En("load",p),u=d;break;case"form":En("reset",p),En("submit",p),u=d;break;case"details":En("toggle",p),u=d;break;case"input":kt(p,d),u=bt(p,d),En("invalid",p),cr(m,"onChange");break;case"option":u=Hn(p,d);break;case"select":p._wrapperState={wasMultiple:!!d.multiple},u=a({},d,{value:void 0}),En("invalid",p),cr(m,"onChange");break;case"textarea":Yn(p,d),u=Qn(p,d),En("invalid",p),cr(m,"onChange");break;default:u=d}ur(f,u),c=void 0;var v=f,y=p,g=u;for(c in g)if(g.hasOwnProperty(c)){var k=g[c];"style"===c?ir(y,k):"dangerouslySetInnerHTML"===c?null!=(k=k?k.__html:void 0)&&nr(y,k):"children"===c?"string"==typeof k?("textarea"!==v||""!==k)&&rr(y,k):"number"==typeof k&&rr(y,""+k):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(b.hasOwnProperty(c)?null!=k&&cr(m,c):null!=k&&yt(y,c,k,h))}switch(f){case"input":Be(p),Tt(p,d,!1);break;case"textarea":Be(p),Gn(p);break;case"option":null!=d.value&&p.setAttribute("value",""+gt(d.value));break;case"select":(u=p).multiple=!!d.multiple,null!=(p=d.value)?Kn(u,!!d.multiple,p,!1):null!=d.defaultValue&&Kn(u,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof u.onClick&&(p.onclick=fr)}(l=mr(s,l))&&eo(t),t.stateNode=o}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&i("166");break;case 8:o&&null!=t.stateNode?ro(o,t,o.memoizedProps,l):("string"!=typeof l&&(null===t.stateNode&&i("166")),o=ya(va.current),ya(ma.current),Va(t)?(s=(l=t).stateNode,o=l.memoizedProps,s[L]=l,(l=s.nodeValue!==o)&&eo(t)):(s=t,(l=(9===o.nodeType?o:o.ownerDocument).createTextNode(l))[L]=s,t.stateNode=l));break;case 13:case 14:case 16:case 9:case 10:case 15:break;case 6:ba(),to(t);break;case 12:ca(t);break;case 11:break;case 4:i("167");default:i("156")}if(t=ko=null,l=e,1073741823===xo||1073741823!==l.childExpirationTime){for(s=0,o=l.child;null!==o;)u=o.expirationTime,d=o.childExpirationTime,(0===s||0!==u&&u<s)&&(s=u),(0===s||0!==d&&d<s)&&(s=d),o=o.sibling;l.childExpirationTime=s}if(null!==t)return t;null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=mo(e)))return e.effectTag&=511,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512)}if(null!==r)return r;if(null===n)break;e=n}return null}function No(e){var t=Ja(e.alternate,e,xo);return null===t&&(t=Po(e)),vo.current=null,t}function Oo(e,t,n){bo&&i("243"),bo=!0,vo.currentDispatcher=ho;var r=e.nextExpirationTimeToWorkOn;r===xo&&e===wo&&null!==ko||(So(),xo=r,ko=zr((wo=e).current,null,xo),e.pendingCommitExpirationTime=0);for(var a=!1;;){try{if(t)for(;null!==ko&&!di();)ko=No(ko);else for(;null!==ko;)ko=No(ko)}catch(e){if(null===ko)a=!0,pi(e);else{null===ko&&i("271");var o=ko,l=o.return;if(null!==l){e:{var u=l,s=o,c=e;l=xo,s.effectTag|=512,s.firstEffect=s.lastEffect=null,To=!0,c=aa(c,s);do{switch(u.tag){case 5:u.effectTag|=1024,u.expirationTime=l,Zr(u,l=fo(u,c,l));break e;case 2:case 3:s=c;var f=u.stateNode;if(0==(64&u.effectTag)&&null!==f&&"function"==typeof f.componentDidCatch&&(null===Co||!Co.has(f))){u.effectTag|=1024,u.expirationTime=l,Zr(u,l=po(u,s,l));break e}}u=u.return}while(null!==u)}ko=Po(o);continue}a=!0,pi(e)}}break}if(bo=!1,ua=la=ia=vo.currentDispatcher=null,a)wo=null,e.finishedWork=null;else if(null!==ko)e.finishedWork=null;else{if(null===(t=e.current.alternate)&&i("281"),wo=null,To){if(a=e.latestPendingTime,o=e.latestSuspendedTime,l=e.latestPingedTime,0!==a&&a>r||0!==o&&o>r||0!==l&&l>r)return e.didError=!1,0!==(n=e.latestPingedTime)&&n<=r&&(e.latestPingedTime=0),n=e.earliestPendingTime,t=e.latestPendingTime,n===r?e.earliestPendingTime=t===r?e.latestPendingTime=0:t:t===r&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,t=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=r:n>r?e.earliestSuspendedTime=r:t<r&&(e.latestSuspendedTime=r),qr(r,e),void(e.expirationTime=e.expirationTime);if(!e.didError&&!n)return e.didError=!0,e.nextExpirationTimeToWorkOn=r,r=e.expirationTime=1,void(e.expirationTime=r)}e.pendingCommitExpirationTime=r,e.finishedWork=t}}function Mo(e,t){var n;e:{for(bo&&!Eo&&i("263"),n=e.return;null!==n;){switch(n.tag){case 2:case 3:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof r.componentDidCatch&&(null===Co||!Co.has(r))){Gr(n,e=po(n,e=aa(t,e),1)),Ro(n,1),n=void 0;break e}break;case 5:Gr(n,e=fo(n,e=aa(t,e),1)),Ro(n,1),n=void 0;break e}n=n.return}5===e.tag&&(Gr(e,n=fo(e,n=aa(t,e),1)),Ro(e,1)),n=void 0}return n}function Io(e,t){return 0!==go?e=go:bo?e=Eo?1:xo:1&t.mode?(e=Yo?2+10*(1+((e-2+15)/10|0)):2+25*(1+((e-2+500)/25|0)),null!==wo&&e===xo&&(e+=1)):e=1,Yo&&(0===Wo||e>Wo)&&(Wo=e),e}function Ro(e,t){e:{(0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t);var n=e.alternate;null!==n&&(0===n.expirationTime||n.expirationTime>t)&&(n.expirationTime=t);var r=e.return;if(null===r&&5===e.tag)e=e.stateNode;else{for(;null!==r;){if(n=r.alternate,(0===r.childExpirationTime||r.childExpirationTime>t)&&(r.childExpirationTime=t),null!==n&&(0===n.childExpirationTime||n.childExpirationTime>t)&&(n.childExpirationTime=t),null===r.return&&5===r.tag){e=r.stateNode;break e}r=r.return}e=null}}null!==e&&(!bo&&0!==xo&&t<xo&&So(),Br(e,t),bo&&!Eo&&wo===e||(t=e,e=e.expirationTime,null===t.nextScheduledRoot?(t.expirationTime=e,null===Uo?(Lo=Uo=t,t.nextScheduledRoot=t):(Uo=Uo.nextScheduledRoot=t).nextScheduledRoot=Lo):(0===(n=t.expirationTime)||e<n)&&(t.expirationTime=e),zo||(Ko?Qo&&(jo=t,Vo=1,ci(t,1,!0)):1===e?si(1,null):oi(t,e))),ti>ei&&(ti=0,i("185")))}function Fo(e,t,n,r,a){var o=go;go=1;try{return e(t,n,r,a)}finally{go=o}}var Lo=null,Uo=null,Do=0,Ao=void 0,zo=!1,jo=null,Vo=0,Wo=0,$o=!1,Bo=!1,qo=null,Ho=null,Ko=!1,Qo=!1,Yo=!1,Xo=null,Go=o.unstable_now(),Zo=2+(Go/10|0),Jo=Zo,ei=50,ti=0,ni=null,ri=1;function ai(){Zo=2+((o.unstable_now()-Go)/10|0)}function oi(e,t){if(0!==Do){if(t>Do)return;null!==Ao&&o.unstable_cancelScheduledWork(Ao)}Do=t,e=o.unstable_now()-Go,Ao=o.unstable_scheduleWork(ui,{timeout:10*(t-2)-e})}function ii(){return zo?Jo:(li(),0!==Vo&&1073741823!==Vo||(ai(),Jo=Zo),Jo)}function li(){var e=0,t=null;if(null!==Uo)for(var n=Uo,r=Lo;null!==r;){var a=r.expirationTime;if(0===a){if((null===n||null===Uo)&&i("244"),r===r.nextScheduledRoot){Lo=Uo=r.nextScheduledRoot=null;break}if(r===Lo)Lo=a=r.nextScheduledRoot,Uo.nextScheduledRoot=a,r.nextScheduledRoot=null;else{if(r===Uo){(Uo=n).nextScheduledRoot=Lo,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===e||a<e)&&(e=a,t=r),r===Uo)break;if(1===e)break;n=r,r=r.nextScheduledRoot}}jo=t,Vo=e}function ui(e){if(e.didTimeout&&null!==Lo){ai();var t=Lo;do{var n=t.expirationTime;0!==n&&Zo>=n&&(t.nextExpirationTimeToWorkOn=Zo),t=t.nextScheduledRoot}while(t!==Lo)}si(0,e)}function si(e,t){if(Ho=t,li(),null!==Ho)for(ai(),Jo=Zo;null!==jo&&0!==Vo&&(0===e||e>=Vo)&&(!$o||Zo>=Vo);)ci(jo,Vo,Zo>=Vo),li(),ai(),Jo=Zo;else for(;null!==jo&&0!==Vo&&(0===e||e>=Vo);)ci(jo,Vo,!0),li();if(null!==Ho&&(Do=0,Ao=null),0!==Vo&&oi(jo,Vo),Ho=null,$o=!1,ti=0,ni=null,null!==Xo)for(e=Xo,Xo=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Bo||(Bo=!0,qo=e)}}if(Bo)throw e=qo,qo=null,Bo=!1,e}function ci(e,t,n){if(zo&&i("245"),zo=!0,null===Ho||n){var r=e.finishedWork;null!==r?fi(e,r,t):(e.finishedWork=null,Oo(e,!1,n),null!==(r=e.finishedWork)&&fi(e,r,t))}else null!==(r=e.finishedWork)?fi(e,r,t):(e.finishedWork=null,Oo(e,!0,n),null!==(r=e.finishedWork)&&(di()?e.finishedWork=r:fi(e,r,t)));zo=!1}function fi(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime<=n&&(null===Xo?Xo=[r]:Xo.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===ni?ti++:(ni=e,ti=0),Eo=bo=!0,e.current===t&&i("177"),0===(n=e.pendingCommitExpirationTime)&&i("261"),e.pendingCommitExpirationTime=0,r=t.expirationTime;var a=t.childExpirationTime;if(r=0===r||0!==a&&a<r?a:r,e.didError=!1,0===r?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(0!==(a=e.latestPendingTime)&&(a<r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime<r&&(e.earliestPendingTime=e.latestPendingTime)),0===(a=e.earliestSuspendedTime)?Br(e,r):r>e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Br(e,r)):r<a&&Br(e,r)),qr(0,e),vo.current=null,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,dr=_n,Dn(a=Un())){if("selectionStart"in a)var o={start:a.selectionStart,end:a.selectionEnd};else e:{var l=(o=(o=a.ownerDocument)&&o.defaultView||window).getSelection&&o.getSelection();if(l&&0!==l.rangeCount){o=l.anchorNode;var u=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{o.nodeType,s.nodeType}catch(e){o=null;break e}var c=0,f=-1,d=-1,p=0,m=0,h=a,v=null;t:for(;;){for(var y;h!==o||0!==u&&3!==h.nodeType||(f=c+u),h!==s||0!==l&&3!==h.nodeType||(d=c+l),3===h.nodeType&&(c+=h.nodeValue.length),null!==(y=h.firstChild);)v=h,h=y;for(;;){if(h===a)break t;if(v===o&&++p===u&&(f=c),v===s&&++m===l&&(d=c),null!==(y=h.nextSibling))break;v=(h=v).parentNode}h=y}o=-1===f||-1===d?null:{start:f,end:d}}else o=null}o=o||{start:0,end:0}}else o=null;for(pr={focusedElem:a,selectionRange:o},_n=!1,_o=r;null!==_o;){a=!1,o=void 0;try{for(;null!==_o;){if(256&_o.effectTag){var g=_o.alternate;e:switch(u=_o,u.tag){case 2:case 3:if(256&u.effectTag&&null!==g){var b=g.memoizedProps,k=g.memoizedState,w=u.stateNode;w.props=u.memoizedProps,w.state=u.memoizedState;var x=w.getSnapshotBeforeUpdate(b,k);w.__reactInternalSnapshotBeforeUpdate=x}break e;case 5:case 7:case 8:case 6:break e;default:i("163")}}_o=_o.nextEffect}}catch(e){a=!0,o=e}a&&(null===_o&&i("178"),Mo(_o,o),null!==_o&&(_o=_o.nextEffect))}for(_o=r;null!==_o;){g=!1,b=void 0;try{for(;null!==_o;){var T=_o.effectTag;if(16&T&&rr(_o.stateNode,""),128&T){var _=_o.alternate;if(null!==_){var E=_.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(14&T){case 2:uo(_o),_o.effectTag&=-3;break;case 6:uo(_o),_o.effectTag&=-3,co(_o.alternate,_o);break;case 4:co(_o.alternate,_o);break;case 8:so(k=_o),k.return=null,k.child=null,k.alternate&&(k.alternate.child=null,k.alternate.return=null)}_o=_o.nextEffect}}catch(e){g=!0,b=e}g&&(null===_o&&i("178"),Mo(_o,b),null!==_o&&(_o=_o.nextEffect))}if(E=pr,_=Un(),T=E.focusedElem,b=E.selectionRange,_!==T&&T&&T.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(T.ownerDocument.documentElement,T)){null!==b&&Dn(T)&&(_=b.start,void 0===(E=b.end)&&(E=_),"selectionStart"in T?(T.selectionStart=_,T.selectionEnd=Math.min(E,T.value.length)):(_=((g=T.ownerDocument||document)&&g.defaultView||window).getSelection(),k=T.textContent.length,E=Math.min(b.start,k),b=void 0===b.end?E:Math.min(b.end,k),!_.extend&&E>b&&(k=b,b=E,E=k),k=Ln(T,E),w=Ln(T,b),k&&w&&(1!==_.rangeCount||_.anchorNode!==k.node||_.anchorOffset!==k.offset||_.focusNode!==w.node||_.focusOffset!==w.offset)&&((g=g.createRange()).setStart(k.node,k.offset),_.removeAllRanges(),E>b?(_.addRange(g),_.extend(w.node,w.offset)):(g.setEnd(w.node,w.offset),_.addRange(g))))),_=[];for(E=T;E=E.parentNode;)1===E.nodeType&&_.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof T.focus&&T.focus(),T=0;T<_.length;T++)(E=_[T]).element.scrollLeft=E.left,E.element.scrollTop=E.top}for(pr=null,_n=!!dr,dr=null,e.current=t,_o=r;null!==_o;){r=!1,T=void 0;try{for(_=n;null!==_o;){var C=_o.effectTag;if(36&C){var S=_o.alternate;switch(g=_,(E=_o).tag){case 2:case 3:var P=E.stateNode;if(4&E.effectTag)if(null===S)P.props=E.memoizedProps,P.state=E.memoizedState,P.componentDidMount();else{var N=S.memoizedProps,O=S.memoizedState;P.props=E.memoizedProps,P.state=E.memoizedState,P.componentDidUpdate(N,O,P.__reactInternalSnapshotBeforeUpdate)}var M=E.updateQueue;null!==M&&(P.props=E.memoizedProps,P.state=E.memoizedState,na(0,M,P));break;case 5:var I=E.updateQueue;if(null!==I){if(b=null,null!==E.child)switch(E.child.tag){case 7:b=E.child.stateNode;break;case 2:case 3:b=E.child.stateNode}na(0,I,b)}break;case 7:var R=E.stateNode;null===S&&4&E.effectTag&&mr(E.type,E.memoizedProps)&&R.focus();break;case 8:case 6:case 15:case 16:break;default:i("163")}}if(128&C){var F=_o.ref;if(null!==F){var L=_o.stateNode;switch(_o.tag){case 7:var U=L;break;default:U=L}"function"==typeof F?F(U):F.current=U}}var D=_o.nextEffect;_o.nextEffect=null,_o=D}}catch(e){r=!0,T=e}r&&(null===_o&&i("178"),Mo(_o,T),null!==_o&&(_o=_o.nextEffect))}bo=Eo=!1,"function"==typeof Fr&&Fr(t.stateNode),C=t.expirationTime,t=t.childExpirationTime,0===(t=0===C||0!==t&&t<C?t:C)&&(Co=null),e.expirationTime=t,e.finishedWork=null}function di(){return!!$o||!(null===Ho||Ho.timeRemaining()>ri)&&($o=!0)}function pi(e){null===jo&&i("246"),jo.expirationTime=0,Bo||(Bo=!0,qo=e)}function mi(e,t){var n=Ko;Ko=!0;try{return e(t)}finally{(Ko=n)||zo||si(1,null)}}function hi(e,t){if(Ko&&!Qo){Qo=!0;try{return e(t)}finally{Qo=!1}}return e(t)}function vi(e,t,n){if(Yo)return e(t,n);Ko||zo||0===Wo||(si(Wo,null),Wo=0);var r=Yo,a=Ko;Ko=Yo=!0;try{return e(t,n)}finally{Yo=r,(Ko=a)||zo||si(1,null)}}function yi(e,t,n,r,a){var o=t.current;return n=function(e){if(!e)return xr;e=e._reactInternalFiber;e:{(2!==tn(e)||2!==e.tag&&3!==e.tag)&&i("170");var t=e;do{switch(t.tag){case 5:t=t.stateNode.context;break e;case 2:if(Sr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}break;case 3:if(Sr(t.type._reactResult)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);i("171"),t=void 0}if(2===e.tag){var n=e.type;if(Sr(n))return Mr(e,n,t)}else if(3===e.tag&&Sr(n=e.type._reactResult))return Mr(e,n,t);return t}(n),null===t.context?t.context=n:t.pendingContext=n,t=a,(a=Yr(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(a.callback=t),Gr(o,a),Ro(o,r),r}function gi(e,t,n,r){var a=t.current;return yi(e,t,n,a=Io(ii(),a),r)}function bi(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 7:default:return e.child.stateNode}}function ki(e){var t=2+25*(1+((ii()-2+500)/25|0));t<=yo&&(t=yo+1),this._expirationTime=yo=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function wi(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function xi(e,t,n){e={current:t=new Dr(5,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Ti(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function _i(e,t,n,r,a){Ti(n)||i("200");var o=n._reactRootContainer;if(o){if("function"==typeof a){var l=a;a=function(){var e=bi(o._internalRoot);l.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,a):o.render(t,a)}else{if(o=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 xi(e,!1,t)}(n,r),"function"==typeof a){var u=a;a=function(){var e=bi(o._internalRoot);u.call(e)}}hi(function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,a):o.render(t,a)})}return bi(o._internalRoot)}function Ei(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Ti(t)||i("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Xe,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Pe=function(e,t,n){switch(t){case"input":if(xt(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 a=j(r);a||i("90"),qe(r),xt(r,a)}}}break;case"textarea":Xn(e,n);break;case"select":null!=(t=n.value)&&Kn(e,!!n.multiple,t,!1)}},ki.prototype.render=function(e){this._defer||i("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new wi;return yi(e,t,null,n,r._onCommit),r},ki.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},ki.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||i("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,a=t;a!==this;)r=a,a=a._next;null===r&&i("251"),r._next=a._next,this._next=t,e.firstBatch=this}this._defer=!1,t=n,zo&&i("253"),jo=e,Vo=t,ci(e,t,!0),si(1,null),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},ki.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},wi.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},wi.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&i("191",n),n()}}},xi.prototype.render=function(e,t){var n=this._internalRoot,r=new wi;return null!==(t=void 0===t?null:t)&&r.then(t),gi(e,n,null,r._onCommit),r},xi.prototype.unmount=function(e){var t=this._internalRoot,n=new wi;return null!==(e=void 0===e?null:e)&&n.then(e),gi(null,t,null,n._onCommit),n},xi.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,a=new wi;return null!==(n=void 0===n?null:n)&&a.then(n),gi(t,r,e,a._onCommit),a},xi.prototype.createBatch=function(){var e=new ki(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime<=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Fe=mi,Le=vi,Ue=function(){zo||0===Wo||(si(Wo,null),Wo=0)};var Ci={createPortal:Ei,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?i("188"):i("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return _i(null,e,t,!0,n)},render:function(e,t,n){return _i(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&i("38"),_i(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Ti(e)||i("40"),!!e._reactRootContainer&&(hi(function(){_i(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ei.apply(void 0,arguments)},unstable_batchedUpdates:mi,unstable_interactiveUpdates:vi,flushSync:function(e,t){zo&&i("187");var n=Ko;Ko=!0;try{return Fo(e,t)}finally{Ko=n,si(1,null)}},unstable_flushControlled:function(e){var t=Ko;Ko=!0;try{Fo(e)}finally{(Ko=t)||zo||si(1,null)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[A,z,j,M.injectEventPluginsByName,g,H,function(e){C(e,q)},Ie,Re,Pn,R]},unstable_createRoot:function(e,t){return Ti(e)||i("278"),new xi(e,!0,null!=t&&!0===t.hydrate)}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Fr=Ur(function(e){return t.onCommitFiberRoot(n,e)}),Lr=Ur(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}})(a({},e,{findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:D,bundleType:0,version:"16.5.2",rendererPackageName:"react-dom"});var Si={default:Ci},Pi=Si&&Ci||Si;e.exports=Pi.default||Pi},function(e,t,n){"use strict";e.exports=n(12)},function(e,t,n){"use strict";
/** @license React v16.5.2
* schedule.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/Object.defineProperty(t,"__esModule",{value:!0});var r=null,a=!1,o=!1,i="object"==typeof performance&&"function"==typeof performance.now,l={timeRemaining:i?function(){var e=h()-performance.now();return 0<e?e:0}:function(){var e=h()-Date.now();return 0<e?e:0},didTimeout:!1};function u(){if(!a){var e=r.timesOutAt;o?m():o=!0,p(c,e)}}function s(){var e=r,t=r.next;if(r===t)r=null;else{var n=r.previous;r=n.next=t,t.previous=n}e.next=e.previous=null,(e=e.callback)(l)}function c(e){a=!0,l.didTimeout=e;try{if(e)for(;null!==r;){var n=t.unstable_now();if(!(r.timesOutAt<=n))break;do{s()}while(null!==r&&r.timesOutAt<=n)}else if(null!==r)do{s()}while(null!==r&&0<h()-t.unstable_now())}finally{a=!1,null!==r?u():o=!1}}var f,d,p,m,h,v=Date,y="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,k="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(e){f=b(function(t){g(d),e(t)}),d=y(function(){k(f),e(t.unstable_now())},100)}if(i){var x=performance;t.unstable_now=function(){return x.now()}}else t.unstable_now=function(){return v.now()};if("undefined"==typeof window){var T=-1;p=function(e){T=setTimeout(e,0,!0)},m=function(){clearTimeout(T)},h=function(){return 0}}else if(window._schedMock){var _=window._schedMock;p=_[0],m=_[1],h=_[2]}else{"undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof k&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var E=null,C=!1,S=-1,P=!1,N=!1,O=0,M=33,I=33;h=function(){return O};var R="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===R){C=!1;var n=t.unstable_now();if(e=!1,0>=O-n){if(!(-1!==S&&S<=n))return void(P||(P=!0,w(F)));e=!0}if(S=-1,n=E,E=null,null!==n){N=!0;try{n(e)}finally{N=!1}}}},!1);var F=function(e){P=!1;var t=e-O+I;t<I&&M<I?(8>t&&(t=8),I=t<M?M:t):M=t,O=e+I,C||(C=!0,window.postMessage(R,"*"))};p=function(e,t){E=e,S=t,N?window.postMessage(R,"*"):P||(P=!0,w(F))},m=function(){E=null,C=!1,S=-1}}t.unstable_scheduleWork=function(e,n){var a=t.unstable_now();if(e={callback:e,timesOutAt:n=void 0!==n&&null!==n&&null!==n.timeout&&void 0!==n.timeout?a+n.timeout:a+5e3,next:null,previous:null},null===r)r=e.next=e.previous=e,u();else{a=null;var o=r;do{if(o.timesOutAt>n){a=o;break}o=o.next}while(o!==r);null===a?a=r:a===r&&(r=e,u()),(n=a.previous).next=a.previous=e,e.next=a,e.previous=n}return e},t.unstable_cancelScheduledWork=function(e){var t=e.next;if(null!==t){if(t===e)r=null;else{e===r&&(r=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),a=n(14),o=n(1),i=n(18),l=n(4);const u=()=>[][Symbol.iterator](),s=e=>JSON.stringify(e,void 0,2),c=new class{debug(e){console.debug(s(e))}},f=new i.FriendsLangPrinter;let d=0;const p=(e,t)=>({key:++d,type:e,content:t}),m={repl:a.createFriendsLangRepl(c),query:"すごーい! あなた は 定命の フレンズ なんだね!",statements:[],assignment:"No results.",iter:u(),messages:[p("rule","すごーい! あなた は 定命の フレンズ なんだね!"),p("rule","すごーい! あなた が 人間の フレンズ なら あなた は 定命の フレンズ なんだね!"),p("query","だれ が 定命の フレンズ なんですか?"),p("solution","定命の フレンズ は ソクラテス なのです")],errorMessage:""};t.ReplComponent=class extends r.Component{constructor(e){super(e),this.state=m}setQuery(e){this.setState({query:e})}post(e){this.setState(t=>({messages:[...t.messages,e]}))}onAsk(){c.debug("onAsk");const{query:e,repl:t,statements:n}=this.state,r=e.trim();if(""===r)return;const a=t.input(e);if(!("err"in a)){if("accepted"in a){const e=n.length;return this.setState(t=>({errorMessage:"",statements:[...n,{id:e,content:r}]})),void this.post(p("rule",r))}return"solutions"in a?(this.setState(e=>({errorMessage:"",iter:a.solutions[Symbol.iterator]()})),this.post(p("query",r)),void this.onNo()):o.exhaust(a)}this.setState({errorMessage:a.err})}onYes(){c.debug("onYes"),this.setState({iter:u(),errorMessage:"このくらいは朝飯前なのです"})}onNo(){c.debug("onNo");const e=this.state.iter.next();if(c.debug({result:e}),e.done)return this.setState({assignment:"",errorMessage:"解なしなのです"}),void this.post(p("solution","解なしなのです"));const t=e.value;if(0===[...l.flatMap(t,e=>"term"in e?[e]:[])].length)this.setState({assignment:"",errorMessage:"そのようですね"}),this.post(p("solution","そのようですね"));else{const e=[...l.flatMap(t,e=>"term"in e?[`${e.varName} は ${f.printTerm(e.term)} 、`]:[]),"なのです"].join("\n");this.setState({assignment:e}),this.post(p("solution",e))}}render(){const{query:e,messages:t,errorMessage:n}=this.state;return r.createElement("article",{className:"friends-repl"},r.createElement("div",{className:"stream"},t.map(e=>r.createElement("div",{className:"stream-item",key:e.key,"data-type":e.type},r.createElement("div",{className:"icon"}),r.createElement("div",{className:"message"},e.content)))),r.createElement("p",null,"例: あなた は 定命の フレンズ なんですか?"),r.createElement("p",null,"例: ソクラテスさん は 定命の フレンズ なんですか?"),r.createElement("form",null,r.createElement("textarea",{className:"friends-repl-editor friends-repl-panel",rows:8,onChange:e=>this.setQuery(e.currentTarget.value),value:e}),r.createElement("button",{type:"button",className:"friends-repl-ask-button",onClick:()=>this.onAsk()},"Ask")),r.createElement("section",null,r.createElement("form",null,r.createElement("button",{type:"button",className:"friends-repl-yes-button",onClick:()=>this.onYes()},"Yes"),r.createElement("button",{type:"button",className:"friends-repl-no-button",onClick:()=>this.onNo()},"No")),r.createElement("div",{className:"friends-repl-solution friends-repl-panel"},this.state.assignment),n&&r.createElement("div",{className:"friends-repl-error friends-repl-panel"},n),r.createElement("h4",null,"知識: "),r.createElement("ol",null,this.state.statements.map(e=>r.createElement("li",{key:e.id},e.content)))))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15),a=n(16),o=n(1);t.createFriendsLangRepl=(e=>new class{constructor(e,t,n){this.proofSystem=e,this.parser=t,this.logger=n}input(e){const t=this.parser.parse(e);return"err"in t?t:"head"in t?(this.logger.debug({rule:t}),this.proofSystem=this.proofSystem.assume(t),{accepted:!0}):"query"in t?(this.logger.debug({query:t.query}),{solutions:this.proofSystem.query(t)}):o.exhaust(t)}}(r.createProofSystem(),new a.FriendsLangParser,e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),a=n(4),o=n(1),i=(()=>{let e=0;return()=>++e})(),l={vars:e=>"var"in e?[e.var]:"atom"in e?[]:"f"in e?l.vars(e.x):"head"in e?[...l.vars(e.head),...l.vars(e.tail)]:o.exhaust(e),withVarId:(e,t)=>"var"in e?{var:{varId:t,varName:e.var.varName}}:"atom"in e?e:"f"in e?{f:e.f,x:l.withVarId(e.x,t)}:"head"in e?{head:l.withVarId(e.head,t),tail:l.withVarId(e.tail,t)}:o.exhaust(e)},u={withVarId:(e,t)=>"pred"in e?{pred:e.pred,term:l.withVarId(e.term,t)}:"left"in e?{left:u.withVarId(e.left,t),right:u.withVarId(e.right,t)}:o.exhaust(e),refresh:e=>u.withVarId(e,i()),vars:e=>"pred"in e?l.vars(e.term):"left"in e?[...u.vars(e.left),...u.vars(e.right)]:o.exhaust(e)},s={refresh(e){const t=i();return{head:u.withVarId(e.head,t),goal:void 0!==e.goal?u.withVarId(e.goal,t):void 0}}},c={default:()=>({}),assume(e,t){const n=t.head.pred,r=[...e[n]||[],t];return Object.assign({},e,{[n]:r})},assumeMany(e,t){let n=e;for(const e of t)n=c.assume(n,e);return n},rules:(e,t)=>e[t]||[]},f={default:()=>({}),tryFind(e,t){const n=e[t.varName];if(void 0!==n)return n[t.varId]},bind(e,t,n){const r=f.substitute(e,n);if("var"in r&&r.var.varName===t.varName&&r.var.varId===t.varId)return e;const a=Object.assign({},e[t.varName]||{},{[t.varId]:r});return Object.assign({},e,{[t.varName]:a})},substitute(e,t){if("var"in t){const n=f.tryFind(e,t.var);return void 0===n?t:f.substitute(e,n)}return"atom"in t?t:"f"in t?{f:t.f,x:f.substitute(e,t.x)}:"head"in t?{head:f.substitute(e,t.head),tail:f.substitute(e,t.tail)}:o.exhaust(t)},tryUnify:(()=>{const e=(e,t,n)=>{const r=f.tryFind(e,t);return void 0===r?f.bind(e,t,n):f.tryUnify(e,n,f.substitute(e,r))};return(t,n,r)=>{if("var"in n)return e(t,n.var,r);if("var"in r)return e(t,r.var,n);if("atom"in n&&"atom"in r&&n.atom===r.atom)return t;if("f"in n&&"f"in r&&n.f===r.f)return f.tryUnify(t,n.x,r.x);if("head"in n&&"head"in r){const e=f.tryUnify(t,n.head,r.head);if(void 0===e)return;return f.tryUnify(e,n.tail,r.tail)}return"atom"in n||"atom"in r||"f"in n||"f"in r||"head"in n||"head"in r?void 0:o.exhaust(n,r)}})()},d=(()=>{const e=e=>"atom"in e&&e.atom===r.nilTerm.atom;function*t(n,a,i){if("pred"in n)for(const o of function*(n,a,o){if(n.pred===r.CutProp.pred&&e(n.term))return void(yield{env:a,cut:!0});if(n.pred===r.TrueProp.pred&&e(n.term))return void(yield{env:a,cut:!1});const i=c.rules(o,n.pred);for(const e of i){const r=s.refresh(e),i=f.tryUnify(a,n.term,r.head.term);if(void 0===i)continue;if(void 0===r.goal){yield{env:i,cut:!1};continue}const l=t(r.goal,i,o);for(const{env:e,cut:t}of l)if(yield{env:e,cut:!1},t)return}}(n,a,i))yield o;else{if(!("left"in n))return o.exhaust(n);for(const{env:e,cut:r}of t(n.left,a,i))for(const{env:a,cut:o}of t(n.right,e,i))yield{env:a,cut:r||o}}}return function*(e,n,r){for(const{env:a}of t(e,n,r))yield a}})();function*p(e,t,n){e=u.refresh(e);const r=[...a.distinct(u.vars(e))];for(const a of d(e,t,n)){const e=[];for(const t of r){const n=f.substitute(a,{var:t}),r="var"in n&&void 0===f.tryFind(a,n.var),o=r?{varName:t.varName,unbound:r}:{varName:t.varName,term:n};e.push(o)}yield e}}t.query=p;class m{constructor(e){this.knowledge=e}assume(e){return new m(c.assume(this.knowledge,e))}query({query:e}){return p(e,f.default(),this.knowledge)}}t.createProofSystem=(()=>new m(c.default())),t.testSuite=(({describe:e,context:t,it:n,eq:a})=>{const o=e=>({var:{varId:-1,varName:e}}),i=o("x"),l=o("y"),u=e=>t=>({pred:e,term:t}),s=(...e)=>{let t=r.nilTerm;for(let n=e.length-1;n>=0;n--)t={head:e[n],tail:t};return t},d={atom:"socrates"},m={atom:"plato"},h=e=>({f:"f",x:e}),v=u("mortal"),y=u("human");e("Knowledge",()=>{const e=c.default();n("doesn't know undefined predicates",()=>{a(c.rules(e,"human"),[])}),n("can assume many",()=>{const t={head:y(d)},n={head:y(m)},r=c.assume(e,t),o=c.assume(r,n);a(c.rules(r,"human"),[t]),a(c.rules(o,"human"),[t,n])})}),e("Env",()=>{const t=f.default();n("can bind a var and find it",()=>{a(f.tryFind(f.bind(t,i.var,d),i.var),d)}),n("can't find unbound var",()=>{a(f.tryFind(t,i.var),void 0)}),e("tryUnify",()=>{const e=[{desc:"var binding",left:i,right:d,test:i,expected:d},{desc:"app binding",left:h(i),right:h(d),test:i,expected:d},{desc:"list binding",left:s(i,m),right:s(d,l),test:s(i,l),expected:s(d,m)}];for(const{desc:r,left:o,right:i,test:l,expected:u}of e)n(r,()=>{const e=f.tryUnify(t,o,i);if(void 0===e)throw new Error("Couldn't unify.");a(f.substitute(e,l),u)})})}),e("query",()=>{n("detects unbound vars",()=>{const e=c.assumeMany(c.default(),[{head:{pred:"unknown",term:i}},{head:{pred:"unknown",term:{atom:"a"}}}]);a([...p({pred:"unknown",term:l},f.default(),e)],[[{varName:"y",unbound:!0}],[{varName:"y",term:{atom:"a"}}]])}),n("includes bindings between vars",()=>{})}),t("Syllogism",()=>{const e={head:v(i),goal:y(i)},t={head:y(d)},r=v(d),o=f.default(),l=c.assumeMany(c.default(),[e,t]);n("can find rules",()=>{a(c.rules(l,r.pred),[e]),a(c.rules(l,e.goal.pred),[t])}),n("can match head",()=>{a(f.tryUnify(o,e.head.term,r.term),{x:{[-1]:d}})}),n("can conclude",()=>{const e=[...p(r,o,l)];a(e,[[]])}),n("can find all solutions",()=>{const e={head:y(m)},t=c.assume(l,e),n=[...p(v(i),o,t)];a(n,[[{varName:"x",term:d}],[{varName:"x",term:m}]])})})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),a=n(5),o=n(17),i=new Set(["あなた","きみ","かれ","かのじょ","だれ","なに","あれ","これ","これら","それ","それら"]),l=({term:e,apps:t})=>{for(let n=t.length-1;n>=0;n--)e={f:t[n],x:e};return{term:e}},u=({term:e,items:t,tailed:n})=>{if(0===t.length)return{term:e};let a,o=t.length-1;for(n?(a=t[o].term,o--):a=r.nilTerm;o>=0;o--)a={head:t[o].term,tail:a};return{term:a={head:e,tail:a}}},s=e=>{let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)t={left:e[n],right:t};return t},[c,f]=o.recursiveP(),[d,p]=o.recursiveP(),m=o.expect("//").attempt().andR(o.restOfLineP()),h=o.spaceP().andL(m.andR(o.spaceP()).many()),v=o.wordP(),y=e=>v.filter(t=>t===e,e),g=v.filter(e=>"はがも".includes(e),"は/が/も"),b=v.map(e=>({pred:e})),k=v.map(e=>e.startsWith("_")||i.has(e)?{term:{var:{varName:e,varId:-1}}}:{term:{atom:e}}),w=o.expect("「").attempt().andR(h).andR(c).andL(h).andL(o.expect("」")),x=y("の").attempt().andL(h).andR(v).many().map(e=>({apps:e})),T=y("と").attempt().andL(h).andR(d).andL(h).many().map(e=>({items:e})).andA(y("とか").attempt().opt().map(e=>({tailed:e!==a.None}))),_=c.andL(h).andL(g).andL(h).andA(b).andL(h).andL(o.expect("フレンズ")),E=y("で").attempt().andR(h).andR(_).andL(h).many().map(e=>({deProps:e})),C=_.map(e=>({first:e})).andL(h).andA(E).map(({first:e,deProps:t})=>s([e,...t])),S=_.map(e=>({head:e})),P=o.expect("なんだね!").attempt().map(()=>({head:void 0,deProps:[]})),N=E.andL(h).andL(y("なら").andR(h)).andA(S).andL(h).andL(o.expect("なんだね!")),O=o.expect("すごーい!").attempt().andR(h).andR(_.map(e=>({first:e}))).andL(h).andA(o.choice([P,N])).map(e=>void 0===e.head?{head:e.first}:{head:e.head,goal:s([e.first,...e.deProps])}),M=C.map(e=>({query:e})).andL(h).andL(o.choice([o.expect("なんですか?"),o.expect("なんだっけ?")])).andL(h),I=o.choice([O,M]);p(o.choice([w,k]).andL(h).andA(x).map(l)),f(d.andL(h).andA(T).map(u));const R=e=>{const t=o.runParser({source:e,parser:(e=>h.andR(e).andL(h).andL(o.endOfInputP()))(I)});return t.ok?t.value:{err:`文法的に間違いがあります:\n${o.makeErrorMessage(t.error).join("\n")}`}},F=e=>{const t=R(e);if("err"in t)throw new Error(t.err);return t};t.FriendsLangParser=class{parse(e){return R(e)}},t.testSuite=(({describe:e,context:t,it:n,eq:a})=>{const o={var:{varName:"あなた",varId:-1}};n("can parse axiom",()=>{a({head:{term:{var:{varName:"あなた",varId:-1}},pred:"定命の"}},F("すごーい! あなた は 定命の フレンズ なんだね!"))}),n("can parse inference rule",()=>{a({head:{term:{var:{varName:"あなた",varId:-1}},pred:"定命の"},goal:{term:{var:{varName:"あなた",varId:-1}},pred:"人間の"}},F("すごーい! あなた が 人間の フレンズ なら あなた は 定命の フレンズ なんだね!"))}),n("can parse group term",()=>{a({head:{term:{atom:"ソクラテス"},pred:"人間の"}},F("すごーい! 「「 ソクラテス 」」 は 人間の フレンズ なんだね!"))}),n("can parse list term",()=>{a({head:{term:{head:{atom:"ソクラテス"},tail:{head:{atom:"プラトン"},tail:r.nilTerm}},pred:"師弟の"}},F("すごーい! ソクラテス と プラトン は 師弟の フレンズ なんだね!"))}),n("can parse list with tail term",()=>{a({head:{term:{head:{atom:"ソクラテス"},tail:o},pred:"哲学が得意な"}},F("すごーい! ソクラテス と あなた とか は 哲学が得意な フレンズ なんだね!"))}),n("can parse query",()=>{a({query:{term:{atom:"ソクラテスさん"},pred:"定命の"}},F("ソクラテスさん は\r\n\t定命の フレンズ なんですか? "))}),n("can parse conjunctive",()=>{a({query:{left:{term:{atom:"ソクラテスさん"},pred:"定命の"},right:{left:{term:{atom:"ソクラテスさん"},pred:"人間の"},right:{term:{atom:"プラトンさん"},pred:"弟子の"}}}},F("ソクラテスさん は 定命の フレンズ で ソクラテスさん は 人間の フレンズ で プラトンさん が 弟子の フレンズ なんですか?"))}),n("can parse comments",()=>{F("//\nソクラテス//ここはこめんと\r\nは 定命の フレンズ なんですか? /////")})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5);class a{constructor(e){this.parseFn=e}map(e){return t.parser(t=>{const[n,r]=this.parse(t);return n.ok?[{ok:!0,value:e(n.value)},r]:[n,r]})}withLabel(e){return t.parser(t=>{const[n,r]=this.parse(t);return n.ok?[n,r]:[{ok:!1,error:Object.assign({},n.error,{label:e})},r]})}filter(e,n){return t.parser(t=>{const[r,a]=this.parse(t);return r.ok&&!e(r.value)?s(n,t):[r,a]})}discard(){return this.map(e=>r.None)}and(e){return t.parser(t=>{const[n,r]=this.parse(t);if(!n.ok)return[n,r];const[a,o]=e.parse(r);return a.ok?u([n.value,a.value],o):[a,o]})}andL(e){return this.and(e).map(([e,t])=>e)}andR(e){return this.and(e).map(([e,t])=>t)}andA(e){return this.and(e).map(([e,t])=>Object.assign({},e,t))}many(){return t.parser(e=>{let t=e;const n=[];for(;;){const[e,r]=this.parse(t);if(!e.ok)return u(n,t);n.push(e.value),t=r}})}opt(){return t.choice([this.map(r.Some),t.successP(r.None)])}attempt(){return t.parser(e=>{const[t,n]=this.parse(e);return[t,Object.assign({},n,{cut:!1})]})}nonempty(){return t.parser(e=>{const[t,n]=this.parse(e);return t.ok&&n.pos.index===e.pos.index?s("any character",e):[t,n]})}parse(e){return this.parseFn(e)}}t.Parser=a,t.parser=(e=>new a(e)),t.runParser=(e=>{const{source:t,parser:n}=e,r=i({source:t}),[a,o]=n.parse(r);return a});const o={index:0,line:0,column:0},i=e=>({source:(e=>(e.includes("\r")&&(e=e.split("\r\n").join("\n")),{str:e,lines:e.split("\n")}))(e.source),pos:o,warning:[],cut:!0}),l=(e,t)=>{const n=t.source.str;let{line:r,column:a,index:o}=t.pos;for(let t=0;t<e;t++)"\n"===n[o]?(r++,a=0):a++,o++;return Object.assign({},t,{pos:{line:r,column:a,index:o}})},u=(e,t)=>{return[{ok:!0,value:e},t]},s=(e,t,n)=>{return[{ok:!1,error:{source:t.source,pos:t.pos,label:e,children:void 0!==n?n:[]}},t]};t.successP=(e=>t.parser(t=>u(e,t))),t.endOfInputP=(()=>t.parser(e=>{const{source:{str:t},pos:{index:n}}=e;return n<t.length?s("終端",e):u(r.None,e)})),t.expect=(e=>t.parser(t=>{const{source:{str:n},pos:{index:r}}=t;for(let a=0;a<e.length;a++){const o=r+a;if(o>=n.length||e[a]!==n[o])return s(e,l(a,t))}return u(e,l(e.length,t))})),t.choice=(e=>t.parser(t=>{const n=[];for(const r of e){const[e,a]=r.parse(t);if(e.ok)return[e,Object.assign({},a,{cut:!0})];if(n.push(e.error),a.cut)break}return s("いずれか",t,n)}));const c=e=>t.parser(t=>{const{source:{str:n},pos:{index:r}}=t;let a=r;for(;a<n.length;){const t=String.fromCodePoint(n.codePointAt(a)).match(e);if(null===t||0===t.length||0===t[0].length)break;a+=t[0].length}return u(n.substring(r,a),l(a-r,t))});t.spaceP=(()=>c(/^\s/u).map(e=>r.None)),t.wordP=(()=>c(/^[\w\d_あ-んア-ン一-龠々〆]/u).nonempty().withLabel("単語")),t.restOfLineP=(()=>t.parser(e=>{const{source:{str:t},pos:{index:n}}=e,r=t.indexOf("\n",n),{endIndex:a,skip:o}=r<0?{endIndex:t.length,skip:0}:{endIndex:r,skip:1},i=t.substring(n,a);return u(i,l(i.length+o,e))})),t.recursiveP=(()=>{let e;return[t.parser(t=>e.parse(t)),t=>{e=t}]}),t.makeErrorMessage=(e=>{const{label:n,source:{lines:r},pos:{line:a,column:o},children:i}=e,l=[`${n} ${1+a}行目 ${1+o}文字目《${r[a].substring(o-4,o+4)}》付近`];for(const e of i)for(const n of t.makeErrorMessage(e))l.push(" "+n);return l})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),a=n(1),o=e=>{if("var"in e)return e.var.varName;if("atom"in e)return e.atom;if("f"in e)return o(e.x)+" の "+e.f;if("head"in e){const t="head"in e.head?`「${o(e.head)}」`:o(e.head);return e.tail===r.nilTerm?t:`${t} と ${"head"in e.tail?o(e.tail):`${o(e.tail)} とか`}`}return a.exhaust(e)};t.FriendsLangPrinter=class{printTerm(e){return o(e)}},t.testSuite=(({describe:e,context:t,it:n,eq:a})=>{const{varTerm:i,listTerm:l}=r.AstHelper;e("printTerm",()=>{n("can print var",()=>{a(o({var:{varId:-1,varName:"あなた"}}),"あなた")}),n("can print atom",()=>{a(o({atom:"かばんちゃん"}),"かばんちゃん")}),n("can print app",()=>{a(o({f:"かばん",x:{var:{varId:-1,varName:"かばんちゃん"}}}),"かばんちゃん の かばん")}),n("can print list",()=>{a(o({f:"かばん",x:{var:{varId:-1,varName:"かばんちゃん"}}}),"かばんちゃん の かばん")}),n("can print list term",()=>{a(o(l([i("x"),i("y")])),"x と y")}),n("can print var-tailed list term",()=>{a(o(l([i("x"),i("y")],i("z"))),"x と y と z とか")}),n("can print nested list term",()=>{a(o(l([l([i("x"),i("y")]),i("z")])),"「x と y」 と z")})})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);t.AppLayout=class extends r.Component{render(){return r.createElement("article",{id:"app-layout-component"},r.createElement("header",null,r.createElement("a",{href:"/"},r.createElement("img",{id:"header-logo",width:"874px",height:"350px",alt:"logo",src:"/assets/logo.png"}))),r.createElement("main",{id:"app-layout-main"},this.props.children),r.createElement("footer",null,r.createElement("a",{href:"/about.html"},"Try Friends-lang")," powered by",r.createElement("a",{href:"https://aratama.github.io/kemonogen/"},"Kemono Friends Logo Generator"),"and ",r.createElement("a",{href:"https://www.flickr.com/photos/5lab/4004317022/"},"Savanna"),"."))}}}]);
//# sourceMappingURL=index.js.map