0% found this document useful (0 votes)
60 views

React16 Js

This document discusses React DOM event handling. It describes how events are handled in React by explaining the event system architecture and APIs. Key points covered include event pooling, event propagation, and cross-browser event normalization.

Uploaded by

tfrcuy76
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

React16 Js

This document discusses React DOM event handling. It describes how events are handled in React by explaining the event system architecture and APIs. Key points covered include event pooling, event propagation, and cross-browser event normalization.

Uploaded by

tfrcuy76
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 20

===e.value||(e.value=t),e.defaultValue=t}""!

==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!
==n&&(e.name=n)}function Oe(e,t,n)
{"number"===t&&e.ownerDocument.activeElement===e||(null==n?
e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!
==""+n&&(e.defaultValue=""+n))}function Pe(e,t){return e=o({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 _e(e,t,n,r)
{if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!
0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!
==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!
0)}else{for(n=""+ye(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return
e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||
(t=e[o])}null!==t&&(t.selected=!0)}}function Ne(e,t){if(null!
=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void
0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Re(e,t)
{var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!
=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw
Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}fu
nction Le(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!
==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!
==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Fe(e){var
t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var
je="http://www.w3.org/1999/xhtml",Ie="http://www.w3.org/2000/svg";function Me(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
De(e,t){return
null==e||"http://www.w3.org/1999/xhtml"===e?Me(t):"http://www.w3.org/2000/
svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var
ze,Ae=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?
function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}
((function(e,t){if(e.namespaceURI!==Ie||"innerHTML"in
e)e.innerHTML=t;else{for((ze=ze||
document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</
svg>",t=ze.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)
e.appendChild(t.firstChild)}}));function Ue(e,t){if(t){var
n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return
void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return
n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}va
r
We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","
AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:
Ve("Transition","TransitionEnd")},He={},$e={};function Be(e){if(He[e])return
He[e];if(!We[e])return e;var t,n=We[e];for(t in n)if(n.hasOwnProperty(t)&&t in
$e)return He[e]=n[t];return
e}O&&($e=document.createElement("div").style,"AnimationEvent"in window||(delete
We.animationend.animation,delete We.animationiteration.animation,delete
We.animationstart.animation),"TransitionEvent"in window||delete
We.transitionend.transition);var
qe=Be("animationend"),Ke=Be("animationiteration"),Qe=Be("animationstart"),Ye=Be("tr
ansitionend"),Ge="abort canplay canplaythrough durationchange emptied encrypted
ended error loadeddata loadedmetadata loadstart pause play playing progress
ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split("
"),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var
t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Ze(e){var
t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!
=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?
n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!
==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return
null}function tt(e){if(Ze(e)!==e)throw Error(a(188))}function nt(e){if(!
(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw
Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var
o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return))
{n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return
tt(o),e;if(i===r)return tt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!
==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!
0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;)
{if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw
Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw
Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;)
{if(5===t.tag||6===t.tag)return
t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!
t.return||t.return===e)return
null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t)
{if(null==t)throw Error(a(30));return 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
ot(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function at(e)
{if(e){var
t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var
r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else
t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||
e.constructor.release(e)}}function lt(e){if(null!==e&&(it=rt(it,e)),e=it,it=null,e)
{if(ot(e,at),it)throw Error(a(95));if(c)throw e=f,c=!1,f=null,e}}function ut(e)
{return(e=e.target||e.srcElement||
window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?
e.parentNode:e}function st(e){if(!O)return!1;var t=(e="on"+e)in document;return t||
((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof
t[e]),t}var ct=[];function ft(e)
{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>c
t.length&&ct.push(e)}function dt(e,t,n,r){if(ct.length){var o=ct.pop();return
o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLe
velType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function
pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var
r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!
==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||
e.ancestors.push(n),n=On(r)}while(n);for(n=0;n<e.ancestors.length;n++)
{t=e.ancestors[n];var o=ut(e.nativeEvent);r=e.topLevelType;var
i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var
l=null,u=0;u<k.length;u++){var
s=k[u];s&&(s=s.extractEvents(r,t,i,o,a))&&(l=rt(l,s))}lt(l)}}function ht(e,t,n)
{if(!n.has(e)){switch(e){case"scroll":Qt(t,"scroll",!
0);break;case"focus":case"blur":Qt(t,"focus",!0),Qt(t,"blur",!
0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":st(e)&&Qt(
t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-
1===Ge.indexOf(e)&&Kt(e,t)}n.set(e,null)}}var gt,mt,vt,yt=!
1,bt=[],wt=null,xt=null,kt=null,Et=new Map,St=new Map,Tt=[],Ct="mousedown mouseup
touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown
pointerup dragend dragstart drop compositionend compositionstart keydown keypress
keyup input textInput close cancel copy cut paste click change contextmenu reset
submit".split(" "),Ot="focus blur dragenter dragleave mouseover mouseout
pointerover pointerout gotpointercapture lostpointercapture".split(" ");function
Pt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|
n,nativeEvent:o,container:r}}function _t(e,t){switch(e)
{case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":xt=null;break
;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":Et
.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.dele
te(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?
(e=Pt(t,n,r,o,i),null!==t&&(null!==(t=Pn(t))&&mt(t)),e):(e.eventSystemFlags|
=r,e)}function Rt(e){var t=On(e.target);if(null!==t){var n=Ze(t);if(null!
==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void
i.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else
if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?
n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!
==e.blockedOn)return!1;var
t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var
n=Pn(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function Ft(e,t,n)
{Lt(e)&&n.delete(t)}function jt(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!
==e.blockedOn){null!==(e=Pn(e.blockedOn))&&gt(e);break}var
t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?
e.blockedOn=t:bt.shift()}null!==wt&&Lt(wt)&&(wt=null),null!
==xt&&Lt(xt)&&(xt=null),null!
==kt&&Lt(kt)&&(kt=null),Et.forEach(Ft),St.forEach(Ft)}function It(e,t)
{e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!
0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Mt(e)
{function t(t){return It(t,e)}if(0<bt.length){It(bt[0],e);forn={}),n[u]="");for(u
in c)c.hasOwnProperty(u)&&s[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(e||
(e=[]),e.push(l,n)),n=c;else"dangerouslySetInnerHTML"===l?(c=c?c.__html:void 0,s=s?
s.__html:void 0,null!=c&&s!==c&&(e=e||[]).push(l,c)):"children"===l?
s===c||"string"!=typeof c&&"number"!=typeof c||(e=e||
[]).push(l,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!
==l&&(S.hasOwnProperty(l)?(null!=c&&un(i,l),e||s===c||(e=[])):(e=e||
[]).push(l,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|
=4)}},Wa=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Za="function"==typeof
WeakSet?WeakSet:Set;function el(e,t){var n=t.source,r=t.stack;null===r&&null!
==n&&(r=ve(n)),null!==n&&me(n.type),t=t.value,null!==e&&1===e.tag&
&me(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw
e}))}}function tl(e){var t=e.ref;if(null!==t)if("function"==typeof
t)try{t(null)}catch(t){yu(e,t)}else t.current=null}function nl(e,t){switch(t.tag)
{case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var
n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.ele
mentType===t.type?
n:Yo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case
6:case 4:case 17:return}throw Error(a(163))}function rl(e,t){if(null!==(t=null!
==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var
r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function
ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var
n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!
==t)}}function il(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void
ol(3,n);case
1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var
r=n.elementType===n.type?
t.memoizedProps:Yo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e
.__reactInternalSnapshotBeforeUpdate)}return void(null!
==(t=n.updateQueue)&&di(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!
==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case
1:e=n.child.stateNode}di(n,t,e)}return;case 5:return
e=n.stateNode,void(null===t&&4&n.effectTag&&vn(n.type,n.memoizedProps)&&e.focus());
case 6:case 4:case 12:return;case 13:return
void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!
==n&&(n=n.dehydrated,null!==n&&Mt(n)))));case 19:case 17:case 20:case
21:return}throw Error(a(163))}function al(e,t,n){switch("function"==typeof
ku&&ku(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!
==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Ho(97<n?97:n,(function()
{var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e)
{yu(o,e)}}e=e.next}while(e!==r)}))}break;case
1:tl(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t)
{try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch
(t){yu(e,t)}}(t,n);break;case 5:tl(t);break;case 4:cl(e,t,n)}}function ll(e){var
t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.
dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingPr
ops=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ll(t)}function ul(e)
{return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:{for(var t=e.return;null!
==t;){if(ul(t)){var n=t;break e}t=t.return}throw
Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case
4:t=t.containerInfo,r=!0;break;default:throw
Error(a(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;)
{for(;null===n.sibling;){if(null===n.return||ul(n.return)){n=null;break
e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!
==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue
t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function
e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?
8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?
(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!
==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=sn));else
if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!
==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var o=t.tag,i=5===o||
6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?
r.insertBefore(t,n):r.appendChild(t);else if(4!==o&&null!
==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}
(e,n,t)}function cl(e,t,n){for(var r,o,i=t,l=!1;;){if(!l){l=i.return;e:for(;;)
{if(null===l)throw Error(a(160));switch(r=l.stateNode,l.tag){case 5:o=!1;break
e;case 3:case 4:r=r.containerInfo,o=!0;break e}l=l.return}l=!0}if(5===i.tag||
6===i.tag){e:for(var u=e,s=i,c=n,f=s;;)if(al(u,f,c),null!==f.child&&4!
==f.tag)f.child.return=f,f=f.child;else{if(f===s)break e;for(;null===f.sibling;)
{if(null===f.return||f.return===s)break
e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?
(u=r,s=i.stateNode,8===u.nodeType?
u.parentNode.removeChild(s):u.removeChild(s)):r.removeChild(i.stateNode)}else
if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!
0,i.child.return=i,i=i.child;continue}}else if(al(e,i,n),null!==i.child)
{i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;)
{if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(l=!
1)}i.sibling.return=i.return,i=i.sibling}}function fl(e,t){switch(t.tag){case
0:case 11:case 14:case 15:case 22:return void rl(3,t);case 1:return;case 5:var
n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?
e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i)
{for(n[Tn]=r,"input"===e&&"radio"===r.type&&null!
=r.name&&Se(n,r),an(e,o),t=an(e,r),o=0;o<i.length;o+=2){var
l=i[o],u=i[o+1];"style"===l?nn(n,u):"dangerouslySetInnerHTML"===l?
Ae(n,u):"children"===l?Ue(n,u):X(n,l,u,t)}switch(e)
{case"input":Te(n,r);break;case"textarea":Le(n,r);break;case"select":t=n._wrapperSt
ate.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?_e(n,!!
r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?_e(n,!!
r.multiple,r.defaultValue,!0):_e(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case
6:if(null===t.stateNode)throw Error(a(162));return
void(t.stateNode.nodeValue=t.memoizedProps);case 3:return
void((t=t.stateNode).hydrate&&(t.hydrate=!1,Mt(t.containerInfo)));case
12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,jl=Uo()),null!
==n)e:for(e=n;;)
{if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?
i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!
=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?
o.display:null,i.style.display=tn("display",o));else
if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!
==e.memoizedState&&null===e.memoizedState.dehydrated)
{(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child)
{e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;)
{if(null===e.return||e.return===n)break
e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void dl(t);case 19:return
void dl(t);case 17:return}throw Error(a(163))}function dl(e){var
t=e.updateQueue;if(null!==t){e.updateQueue=null;var
n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var
r=wu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var pl="function"==typeof
WeakMap?WeakMap:Map;function hl(e,t,n)
{(n=ui(n,null)).tag=3,n.payload={element:null};var r=t.value;return
n.callback=function(){Ml||(Ml=!0,Dl=r),el(e,t)},n}function gl(e,t,n)
{(n=ui(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof
r){var o=t.value;n.payload=function(){return el(e,t),r(o)}}var i=e.stateNode;return
null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function()
{"function"!=typeof r&&(null===zl?zl=new Set([this]):zl.add(this),el(e,t));var
n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var
ml,vl=Math.ceil,yl=G.ReactCurrentDispatcher,bl=G.ReactCurrentOwner,wl=0,xl=3,kl=4,E
l=0,Sl=null,Tl=null,Cl=0,Ol=wl,Pl=null,_l=1073741823,Nl=1073741823,Rl=null,Ll=0,Fl=
!1,jl=0,Il=null,Ml=!1,Dl=null,zl=null,Al=!
1,Ul=null,Vl=90,Wl=null,Hl=0,$l=null,Bl=0;function ql(){return 0!=(48&El)?
1073741821-(Uo()/10|0):0!==Bl?Bl:Bl=1073741821-(Uo()/10|0)}function Kl(e,t,n)
{if(0==(2&(t=t.mode)))return 1073741823;var r=Vo();if(0==(4&t))return 99===r?
1073741823:1073741822;if(0!=(16&El))return Cl;if(null!==n)e=Qo(e,0|n.timeoutMs||
5e3,250);else switch(r){case 99:e=1073741823;break;case
98:e=Qo(e,150,100);break;case 97:case 96:e=Qo(e,5e3,250);break;case
95:e=2;break;default:throw Error(a(326))}return null!==Sl&&e===Cl&&--e,e}function
Ql(e,t){if(50<Hl)throw Hl=0,$l=null,Error(a(185));if(null!==(e=Yl(e,t))){var
n=Vo();1073741823===t?0!=(8&El)&&0==(48&El)?Zl(e):
(Xl(e),0===El&&qo()):Xl(e),0==(4&El)||98!==n&&99!==n||(null===Wl?Wl=new
Map([[e,t]]):(void 0===(n=Wl.get(e))||n>t)&&Wl.set(e,t))}}function Yl(e,t)
{e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!
==n&&n.expirationTime<t&&(n.expirationTime=t);var
r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;)
{if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!
==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag)
{o=r.stateNode;break}r=r.return}return null!
==o&&(Sl===o&&(au(t),Ol===kl&&Fu(o,Cl)),ju(o,t)),o}function Gl(e){var
t=e.lastExpiredTime;if(0!==t)return t;if(!Lu(e,t=e.firstPendingTime))return t;var
n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?
0:e}function Xl(e){if(0!
==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.cal
lbackNode=Bo(Zl.bind(null,e));else{var t=Gl(e),n=e.callbackNode;if(0===t)null!
==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{va
r r=ql();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-
10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var
o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!
==Fo&&So(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?
Bo(Zl.bind(null,e)):$o(r,Jl.bind(null,e),{timeout:10*(1073741821-t)-
Uo()}),e.callbackNode=t}}}function Jl(e,t){if(Bl=0,t)return
Iu(e,t=ql()),Xl(e),null;var n=Gl(e);if(0!==n){if(t=e.callbackNode,0!=(48&El))throw
Error(a(327));if(gu(),e===Sl&&n===Cl||nu(e,n),null!==Tl){var r=El;El|=16;for(var
o=ou();;)try{uu();break}catch(t){ru(e,t)}if(ei(),El=r,yl.current=o,1===Ol)throw
t=Pl,nu(e,n),Fu(e,n),Xl(e),t;if(null===Tl)switch(o=e.finishedWork=e.current.alterna
te,e.finishedExpirationTime=n,r=Ol,Sl=null,r){case wl:case
1:throw Error(a(345));case 2:Iu(e,2<n?2:n);break;case
xl:if(Fu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fu(o)),10737418
23===_l&&10<(o=jl+500-Uo())){if(Fl){var i=e.lastPingedTime;if(0===i||i>=n)
{e.lastPingedTime=n,nu(e,n);break}}if(0!==(i=Gl(e))&&i!==n)break;if(0!==r&&r!==n)
{e.lastPingedTime=r;break}e.timeoutHandle=bn(du.bind(null,e),o);break}du(e);break;c
ase
kl:if(Fu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fu(o)),Fl&&(0==
=(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,nu(e,n);break}if(0!==(o=Gl(e))&&o!
==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Nl?
r=10*(1073741821-Nl)-Uo():1073741823===_l?r=0:(r=10*(1073741821-_l)-
5e3,0>(r=(o=Uo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?
1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vl(r/1960))-r)&&(r=n)),10<r)
{e.timeoutHandle=bn(du.bind(null,e),r);break}du(e);break;case 5:if(1073741823!
==_l&&null!==Rl){i=_l;var l=Rl;if(0>=(r=0|l.busyMinDurationMs)?r=0:(o=0|
l.busyDelayMs,r=(i=Uo()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=o?0:o+r-i),10<r)
{Fu(e,n),e.timeoutHandle=bn(du.bind(null,e),r);break}}du(e);break;default:throw
Error(a(329))}if(Xl(e),e.callbackNode===t)return Jl.bind(null,e)}}return
null}function Zl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!
=(48&El))throw Error(a(327));if(gu(),e===Sl&&t===Cl||nu(e,t),null!==Tl){var
n=El;El|=16;for(var r=ou();;)try{lu();break}catch(t)
{ru(e,t)}if(ei(),El=n,yl.current=r,1===Ol)throw
n=Pl,nu(e,t),Fu(e,t),Xl(e),n;if(null!==Tl)throw
Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Sl=null
,du(e),Xl(e)}return null}function eu(e,t){var n=El;El|=1;try{return
e(t)}finally{0===(El=n)&&qo()}}function tu(e,t){var n=El;El&=-2,El|=8;try{return
e(t)}finally{0===(El=n)&&qo()}}function nu(e,t)
{e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!
==n&&(e.timeoutHandle=-1,wn(n)),null!==Tl)for(n=Tl.return;null!==n;){var
r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vo();break;case
3:Fi(),uo(po),uo(fo);break;case 5:Ii(r);break;case 4:Fi();break;case 13:case
19:uo(Mi);break;case
10:ti(r)}n=n.return}Sl=e,Tl=Cu(e.current,null),Cl=t,Ol=wl,Pl=null,Nl=_l=1073741823,
Rl=null,Ll=0,Fl=!1}function ru(e,t){for(;;){try{if(ei(),Ai.current=ma,Bi)for(var
n=Wi.memoizedState;null!==n;){var r=n.queue;null!
==r&&(r.pending=null),n=n.next}if(Vi=0,$i=Hi=Wi=null,Bi=!1,null===Tl||
null===Tl.return)return Ol=1,Pl=t,Tl=null;e:{var
o=e,i=Tl.return,a=Tl,l=t;if(t=Cl,a.effectTag|
=2048,a.firstEffect=a.lastEffect=null,null!==l&&"object"==typeof
l&&"function"==typeof l.then){var u=l;if(0==(2&a.mode)){var s=a.alternate;s?
(a.updateQueue=s.updateQueue,a.memoizedState=s.memoizedState,a.expirationTime=s.exp
irationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!
=(1&Mi.current),f=i;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!
==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!
==h.unstable_avoidThisFallback||!c)}}if(d){var g=f.updateQueue;if(null===g){var
m=new Set;m.add(u),f.updateQueue=m}else g.add(u);if(0==(2&f.mode)){if(f.effectTag|
=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var
v=ui(1073741823,null);v.tag=2,si(a,v)}a.expirationTime=1073741823;break e}l=void
0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new pl,l=new
Set,y.set(u,l)):void 0===(l=y.get(u))&&(l=new Set,y.set(u,l)),!l.has(a))
{l.add(a);var b=bu.bind(null,o,u,a);u.then(b,b)}f.effectTag|
=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);l=Error((me(a.type)||"A
React component")+" suspended while rendering, but no fallback UI was specified.\n\
nAdd a <Suspense fallback=...> component higher in the tree to provide a loading
indicator or placeholder to display."+ve(a))}5!
==Ol&&(Ol=2),l=Ja(l,a),f=i;do{switch(f.tag){case 3:u=l,f.effectTag|
=4096,f.expirationTime=t,ci(f,hl(f,u,t));break e;case 1:u=l;var
w=f.type,x=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof
w.getDerivedStateFromError||null!==x&&"function"==typeof
x.componentDidCatch&&(null===zl||!zl.has(x)))){f.effectTag|
=4096,f.expirationTime=t,ci(f,gl(f,u,t));break e}}f=f.return}while(null!
==f)}Tl=cu(Tl)}catch(e){t=e;continue}break}}function ou(){var e=yl.current;return
yl.current=ma,null===e?ma:e}function iu(e,t){e<_l&&2<e&&(_l=e),null!
==t&&e<Nl&&2<e&&(Nl=e,Rl=t)}function au(e){e>Ll&&(Ll=e)}function lu(){for(;null!
==Tl;)Tl=su(Tl)}function uu(){for(;null!==Tl&&!jo();)Tl=su(Tl)}function su(e){var
t=ml(e.alternate,e,Cl);return
e.memoizedProps=e.pendingProps,null===t&&(t=cu(e)),bl.current=null,t}function cu(e)
{Tl=e;do{var t=Tl.alternate;if(e=Tl.return,0==(2048&Tl.effectTag))
{if(t=Ga(t,Tl,Cl),1===Cl||1!==Tl.childExpirationTime){for(var n=0,r=Tl.child;null!
==r;){var
o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Tl.chi
ldExpirationTime=n}if(null!==t)return t;null!
==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Tl.firstEffect),n
ull!==Tl.lastEffect&&(null!
==e.lastEffect&&(e.lastEffect.nextEffect=Tl.firstEffect),e.lastEffect=Tl.lastEffect
),1<Tl.effectTag&&(null!==e.lastEffect?
e.lastEffect.nextEffect=Tl:e.firstEffect=Tl,e.lastEffect=Tl))}else{if(null!
==(t=Xa(Tl)))return t.effectTag&=2047,t;null!
==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!
==(t=Tl.sibling))return t;Tl=e}while(null!==Tl);return
Ol===wl&&(Ol=5),null}function fu(e){var t=e.expirationTime;return
t>(e=e.childExpirationTime)?t:e}function du(e){var t=Vo();return
Ho(99,pu.bind(null,e,t)),null}function pu(e,t){do{gu()}while(null!==Ul);if(0!
=(48&El))throw Error(a(327));var
n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return
null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw
Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,
e.nextKnownPendingLevel=0;var
o=fu(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?
e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspen
dedTime&&(e.firstSuspendedTime=r-
1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTi
me=0),e===Sl&&(Tl=Sl=null,Cl=0),1<n.effectTag?null!==n.lastEffect?
(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var
i=El;El|=32,bl.current=null,gn=qt;var l=pn();if(hn(l)){if("selectionStart"in l)var
u={start:l.selectionStart,end:l.selectionEnd};else e:{var
s=(u=(u=l.ownerDocument)&&u.defaultView||
window).getSelection&&u.getSelection();if(s&&0!==s.rangeCount){u=s.anchorNode;var
c=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{u.nodeType,f.nodeType}catch(e)
{u=null;break e}var d=0,p=-1,h=-1,g=0,m=0,v=l,y=null;t:for(;;){for(var b;v!==u||0!
==c&&3!==v.nodeType||(p=d+c),v!==f||0!==s&&3!==v.nodeType||
(h=d+s),3===v.nodeType&&(d+=v.nodeValue.length),null!
==(b=v.firstChild);)y=v,v=b;for(;;){if(",e.displayName||(""!
==t?"ForwardRef("+t+")":"ForwardRef");case v:return k(e.type);case b:return
k(e.render);case y:if(e=1===e._status?e._result:null)return k(e)}return null}var
E=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;E.hasOwnProperty("ReactCurre
ntDispatcher")||
(E.ReactCurrentDispatcher={current:null}),E.hasOwnProperty("ReactCurrentBatchConfig
")||(E.ReactCurrentBatchConfig={suspense:null});var S={};function T(e,t){for(var
n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var C=new
Uint16Array(16),O=0;15>O;O++)C[O]=O+1;C[15]=0;var P=/^[:A-Z_a-z\u00C0-\u00D6\
u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\
u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\
u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\
u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\
u2040]*$/,_=Object.prototype.hasOwnProperty,N={},R={};function L(e){return!!
_.call(R,e)||!_.call(N,e)&&(P.test(e)?R[e]=!0:(N[e]=!0,!1))}function F(e,t,n,r,o,i)
{this.acceptsBooleans=2===t||3===t||
4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.pr
opertyName=e,this.type=t,this.sanitizeURL=i}var j={};"children
dangerouslySetInnerHTML defaultValue defaultChecked innerHTML
suppressContentEditableWarning suppressHydrationWarning style".split("
").forEach((function(e){j[e]=new F(e,0,!1,e,null,!1)})),[["acceptCharset","accept-
charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-
equiv"]].forEach((function(e){var t=e[0];j[t]=new F(t,1,!1,e[1],null,!1)})),
["contentEditable","draggable","spellCheck","value"].forEach((function(e){j[e]=new
F(e,2,!1,e.toLowerCase(),null,!1)})),
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((fu
nction(e){j[e]=new F(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay
controls default defer disabled disablePictureInPicture formNoValidate hidden loop
noModule noValidate open playsInline readOnly required reversed scoped seamless
itemScope".split(" ").forEach((function(e){j[e]=new F(e,3,!1,e.toLowerCase(),null,!
1)})),["checked","multiple","muted","selected"].forEach((function(e){j[e]=new
F(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){j[e]=new F(e,4,!
1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){j[e]=new F(e,6,!
1,e,null,!1)})),["rowSpan","start"].forEach((function(e){j[e]=new F(e,5,!
1,e.toLowerCase(),null,!1)}));var I=/[\-:]([a-z])/g;function M(e){return
e[1].toUpperCase()}"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(I,M);j[t]=new F(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole
xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var
t=e.replace(I,M);j[t]=new F(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),
["xml:base","xml:lang","xml:space"].forEach((function(e){var
t=e.replace(I,M);j[t]=new F(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),
["tabIndex","crossOrigin"].forEach((function(e){j[e]=new F(e,1,!
1,e.toLowerCase(),null,!1)})),j.xlinkHref=new F("xlinkHref",1,!
1,"xlink:href","http://www.w3.org/1999/xlink",!0),
["src","href","action","formAction"].forEach((function(e){j[e]=new F(e,1,!
1,e.toLowerCase(),null,!0)}));var D=/["'&<>]/;function z(e){if("boolean"==typeof
e||"number"==typeof e)return""+e;e=""+e;var t=D.exec(e);if(t){var
n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case
34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case
60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!
==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return
e}function A(e,t){var n,r=j.hasOwnProperty(e)?j[e]:null;return(n="style"!
==e)&&(n=null!==r?
0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||
function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!
1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!
r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!
==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type)
{case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return
isNaN(t)||1>t}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||
4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+z(t)+'"')):L(e)?e+'="'+z(t)
+'"':""}var U="function"==typeof Object.is?Object.is:function(e,t){return
e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},V=null,W=null,H=null,$=!1,B=!
1,q=null,K=0;function Q(){if(null===V)throw Error(i(321));return V}function Y()
{if(0<K)throw
Error(i(312));return{memoizedState:null,queue:null,next:null}}function G(){return
null===H?null===W?($=!1,W=H=Y()):($=!0,H=W):null===H.next?($=!1,H=H.next=Y()):($=!
0,H=H.next),H}function X(e,t,n,r){for(;B;)B=!1,K+=1,H=null,n=e(t,r);return
W=V=null,K=0,H=q=null,n}function J(e,t){return"function"==typeof t?t(e):t}function
Z(e,t,n){if(V=Q(),H=G(),$){var r=H.queue;if(t=r.dispatch,null!==q&&void 0!
==(n=q.get(r)))
{q.delete(r),r=H.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return
H.memoizedState=r,[r,t]}return[H.memoizedState,t]}return e=e===J?"function"==typeof
t?t():t:void 0!==n?
n(t):t,H.memoizedState=e,e=(e=H.queue={last:null,dispatch:null}).dispatch=ee.bind(n
ull,V,e),[H.memoizedState,e]}function ee(e,t,n){if(!(25>K))throw
Error(i(301));if(e===V)if(B=!0,e={action:n,next:null},null===q&&(q=new Map),void
0===(n=q.get(t)))q.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function
te(){}var ne=0,re={readContext:function(e){var t=ne;return
T(e,t),e[t]},useContext:function(e){Q();var t=ne;return
T(e,t),e[t]},useMemo:function(e,t){if(V=Q(),t=void 0===t?null:t,null!==(H=G())){var
n=H.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!
1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!U(t[o],r[o])){r=!1;break e}r=!
0}}if(r)return n[0]}}return
e=e(),H.memoizedState=[e,t],e},useReducer:Z,useRef:function(e){V=Q();var
t=(H=G()).memoizedState;return null===t?
(e={current:e},H.memoizedState=e):t},useState:function(e){return
Z(J,e)},useLayoutEffect:function(){},useCallback:function(e){return
e},useImperativeHandle:te,useEffect:te,useDebugValue:te,useResponder:function(e,t)
{return{props:t,responder:e}},useDeferredValue:function(e){return
Q(),e},useTransition:function(){return
Q(),[function(e){e()},!1]}},oe="http://www.w3.org/1999/xhtml";function ie(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"}}var
ae={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},le=r({menuitem:!
0},ae),ue={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},se=["Webkit","ms","Moz","O"];Object.keys(ue).forEach((function(e)
{se.forEach((function(t){t=t+e.charAt(0).toUpperCase()
+e.substring(1),ue[t]=ue[e]}))}));var
ce=/([A-Z])/g,fe=/^ms-/,de=o.Children.toArray,pe=E.ReactCurrentDispatcher,he={listi
ng:!0,pre:!0,textarea:!0},ge=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,me={},ve={};var
ye=Object.prototype.hasOwnProperty,be={children:null,dangerouslySetInnerHTML:null,s
uppressContentEditableWarning:null,suppressHydrationWarning:null};function we(e,t)
{if(void 0===e)throw Error(i(152,k(t)||"Component"))}function xe(e,t,n){function
a(o,a){var l=a.prototype&&a.prototype.isReactComponent,u=function(e,t,n,r)
{if(r&&("object"==typeof(r=e.contextType)&&null!==r))return
T(r,n),r[n];if(e=e.contextTypes){for(var o in n={},e)n[o]=t[o];t=n}else t=S;return
t}(a,t,n,l),s=[],c=!1,f={isMounted:function(){return!
1},enqueueForceUpdate:function(){if(null===s)return
null},enqueueReplaceState:function(e,t){c=!0,s=[t]},enqueueSetState:function(e,t)
{if(null===s)return null;s.push(t)}};if(l){if(l=new
a(o.props,u,f),"function"==typeof a.getDerivedStateFromProps){var
d=a.getDerivedStateFromProps.call(null,o.props,l.state);null!
=d&&(l.state=r({},l.state,d))}}else
if(V={},l=a(o.props,u,f),null==(l=X(a,o.props,l,u))||null==l.render)return void
we(e=l,a);if(l.props=o.props,l.context=u,l.updater=f,void
0===(f=l.state)&&(l.state=f=null),"function"==typeof
l.UNSAFE_componentWillMount||"function"==typeof
l.componentWillMount)if("function"==typeof l.componentWillMount&&"function"!=typeof
a.getDerivedStateFromProps&&l.componentWillMount(),"function"==typeof
l.UNSAFE_componentWillMount&&"function"!=typeof
a.getDerivedStateFromProps&&l.UNSAFE_componentWillMount(),s.length){f=s;var
p=c;if(s=null,c=!1,p&&1===f.length)l.state=f[0];else{d=p?f[0]:l.state;var h=!
0;for(p=p?1:0;p<f.length;p++){var g=f[p];null!=(g="function"==typeof g?
g.call(l,d,o.props,u):g)&&(h?(h=!1,d=r({},d,g)):r(d,g))}l.state=d}}else
s=null;if(we(e=l.render(),a),"function"==typeof
l.getChildContext&&"object"==typeof(o=a.childContextTypes)){var
m=l.getChildContext();for(var v in m)if(!(v in o))throw
Error(i(108,k(a)||"Unknown",v))}m&&(t=r({},t,m))}for(;o.isValidElement(e);){var
l=e,u=l.type;if("function"!=typeof u)break;a(l,u)}return{child:e,context:t}}var
ke=function(){function e(e,t){o.isValidElement(e)?e.type!==u?e=[e]:
(e=e.props.children,e=o.isValidElement(e)?
[e]:de(e)):e=de(e),e={type:null,domNamespace:oe,children:e,childIndex:0,context:S,f
ooter:""};var n=C[0];if(0===n){var r=C,a=2*(n=r.length);if(!(65536>=a))throw
Error(i(304));var l=new Uint16Array(a);for(l.set(r),(C=l)[0]=n+1,r=n;r<a-1;r+
+)C[r]=r+1;C[a-1]=0}else C[0]=C[n];this.threadID=n,this.stack=[e],this.exhausted=!
1,this.currentSelectValue=null,this.previousWasTextNode=!
1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-
1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return
t.destroy=function(){if(!this.exhausted){this.exhausted=!
0,this.clearProviders();var
e=this.threadID;C[e]=C[0],C[0]=e}},t.pushProvider=function(e){var t=+
+this.contextIndex,n=e.type._context,r=this.threadID;T(n,r);var
o=n[r];this.contextStack[t]=n,this.contextValueStack[t]=o,n[r]=e.props.value},t.pop
Provider=function(){var
e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.context
Stack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n
},t.clearProviders=function(){for(var
e=this.contextIndex;0<=e;e--)this.contextStack[e]
[this.threadID]=this.contextValueStack[e]},t.read=function(e)
{if(this.exhausted)return null;var t=ne;ne=this.threadID;var
n=pe.current;pe.current=re;try{for(var r=[""],o=!1;r[0].length<e;)
{if(0===this.stack.length){this.exhausted=!0;var
a=this.threadID;C[a]=C[0],C[0]=a;break}var l=this.stack[this.stack.length-1];if(o||
l.childIndex>=l.children.length){var u=l.footer;if(""!
==u&&(this.previousWasTextNode=!
1),this.stack.pop(),"select"===l.type)this.currentSelectValue=null;else if(null!
=l.type&&null!=l.type.type&&l.type.type.$$typeof===f)this.popProvider(l.type);else
if(l.type===g){this.suspenseDepth--;var s=r.pop();if(o){o=!1;var
c=l.fallbackFrame;if(!c)throw
Error(i(303));this.stack.push(c),r[this.suspenseDepth]+="\x3c!--$!--\
x3e";continue}r[this.suspenseDepth]+=s}r[this.suspenseDepth]+=u}else{var
d=l.children[l.childIndex+
+],p="";try{p+=this.render(d,l.context,l.domNamespace)}catch(e){if(null!
=e&&"function"==typeof e.then)throw Error(i(294));throw
e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return
r[0]}finally{pe.current=n,ne=t}},t.render=function(e,t,n){if("string"==typeof
e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?
z(n):this.previousWasTextNode?"\x3c!--
--\x3e"+z(n):(this.previousWasTextNode=!
0,z(n));if(e=(t=xe(e,t,this.threadID)).child,t=t.context,null===e||!
1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$
$typeof)===l)throw Error(i(257));throw Error(i(258,n.toString()))}return
e=de(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t
,footer:""}),""}var a=e.type;if("string"==typeof a)return
this.renderDOM(e,t,n);switch(a){case s:case p:case c:case m:case u:return
e=de(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIn
dex:0,context:t,footer:""}),"";case g:throw Error(i(294))}if("object"==typeof
a&&null!==a)switch(a.$$typeof){case h:V={};var b=a.render(e.props,e.ref);return
b=X(a.render,e.props,b,e.ref),b=de(b),this.stack.push({type:null,domNamespace:n,chi
ldren:b,childIndex:0,context:t,footer:""}),"";case v:return
e=[o.createElement(a.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNa
mespace:n,children:e,childIndex:0,context:t,footer:""}),"";case f:return
n={type:e,domNamespace:n,children:a=de(e.props.children),childIndex:0,context:t,foo
ter:""},this.pushProvider(e),this.stack.push(n),"";case d:a=e.type,b=e.props;var
k=this.threadID;return
T(a,k),a=de(b.children(a[k])),this.stack.push({type:e,domNamespace:n,children:a,chi
ldIndex:0,context:t,footer:""}),"";case w:throw Error(i(338));case
y:switch(function(e){if(-1===e._status){e._status=0;var
t=e._ctor;t=t(),e._result=t,t.then((function(t)
{0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t)
{0===e._status&&(e._status=2,e._result=t)}))}}(a=e.type),a._status){case 1:return
e=[o.createElement(a._result,r({ref:e.ref},e.props))],this.stack.push({type:null,do
mNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw
a._result;default:throw Error(i(295))}case x:throw Error(i(343))}throw
Error(i(130,null==a?a:typeof a,""))},t.renderDOM=function(e,t,n){var
a=e.type.toLowerCase();if(n===oe&&ie(a),!me.hasOwnProperty(a)){if(!ge.test(a))throw
Error(i(65,a));me[a]=!0}var l=e.props;if("input"===a)l=r({type:void 0},l,
{defaultChecked:void 0,defaultValue:void 0,value:null!=l.value?
l.value:l.defaultValue,checked:null!=l.checked?l.checked:l.defaultChecked});else
if("textarea"===a){var u=l.value;if(null==u){u=l.defaultValue;var
s=l.children;if(null!=s){if(null!=u)throw Error(i(92));if(Array.isArray(s)){if(!
(1>=s.length))throw Error(i(93));s=s[0]}u=""+s}null==u&&(u="")}l=r({},l,{value:void
0,children:""+u})}else if("select"===a)this.currentSelectValue=null!=l.value?
l.value:l.defaultValue,l=r({},l,{value:void 0});else if("option"===a)
{s=this.currentSelectValue;var c=function(e){if(null==e)return e;var t="";return
o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(l.children);if(null!=s){var
f=null!=l.value?l.value+"":c;if(u=!1,Array.isArray(s)){for(var d=0;d<s.length;d+
+)if(""+s[d]===f){u=!0;break}}else u=""+s===f;l=r({selected:void 0,children:void
0},l,{selected:u,children:c})}}if(u=l){if(le[a]&&(null!=u.children||null!
=u.dangerouslySetInnerHTML))throw Error(i(137,a,""));if(null!
=u.dangerouslySetInnerHTML){if(null!=u.children)throw Error(i(60));if("object"!
=typeof u.dangerouslySetInnerHTML||!("__html"in u.dangerouslySetInnerHTML))throw
Error(i(61))}if(null!=u.style&&"object"!=typeof u.style)throw Error(i(62,""))}for(w
in
u=l,s=this.makeStaticMarkup,c=1===this.stack.length,f="<"+e.type,u)if(ye.call(u,w))
{var p=u[w];if(null!=p){if("style"===w){d=void 0;var h="",g="";for(d in
p)if(p.hasOwnProperty(d)){var m=0===d.indexOf("--"),v=p[d];if(null!=v){if(m)var
y=d;else if(y=d,ve.hasOwnProperty(y))y=ve[y];else{var b=y.replace(ce,"-
$1").toLowerCase().replace(fe,"-
ms-");y=ve[y]=b}h+=g+y+":",g=d,h+=m=null==v||"boolean"==typeof
v||""===v?"":m||"number"!=typeof v||0===v||ue.hasOwnProperty(g)&&ue[g]?
(""+v).trim():v+"px",g=";"}}p=h||null}d=null;e:if(m=a,v=u,-
1===m.indexOf("-"))m="string"==typeof v.is;else switch(m){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":m=!1;break
e;default:m=!0}m?be.hasOwnProperty(w)||(d=L(d=w)&&null!=p?d+'="'+z(p)
+'"':""):d=A(w,p),d&&(f+=" "+d)}}s||c&&(f+=' data-reactroot=""');var
w=f;u="",ae.hasOwnProperty(a)?w+="/>":(w+=">",u="</"+e.type+">");e:{if(null!
=(s=l.dangerouslySetInnerHTML)){if(null!=s.__html){s=s.__html;break e}}else
if("string"==typeof(s=l.children)||"number"==typeof s){s=z(s);break e}s=null}return
null!=s?(l=[],he.hasOwnProperty(a)&&"\n"===s.charAt(0)&&(w+="\
n"),w+=s):l=de(l.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?
ie(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/
1999/
xhtml":n,this.stack.push({domNamespace:n,type:a,children:l,childIndex:0,context:t,f
ooter:u}),this.previousWasTextNode=!1,w},e}(),Ee={renderToString:function(e){e=new
ke(e,!1);try{return
e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new ke(e,!
0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw
Error(i(207))},renderToStaticNodeStream:function(){throw
Error(i(208))},version:"16.13.1"};e.exports=Ee.default||Ee},function(e,t,n){"use
strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t)
{if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t)
{var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!
(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!
0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}
(e,t);throw new TypeError("Invalid attempt to destructure non-iterable
instance")};function o(e,t,n){return t in e?Object.defineProperty(e,t,
{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=f;var
i=[["&","&amp;"],[">","&gt;"]],a="hypernova-key",l="hypernova-id";function u(e,t)
{var
n=e.toLowerCase().replace(/[^0-9a-z_-]/g,""),r=t.replace(/&/g,"&amp;").replace(/"/
g,"&quot;");return"data-"+String(n)+'="'+String(r)+'"'}function s(e,t){var
n,o=Object.keys(e).map((function(t){return u(t,e[t])}));return'<script
type="application/json" '+String(o.join(" "))+">\
x3c!--"+String((n=t,i.reduce((function(e,t){var n=r(t,2),o=n[0],i=n[1];return
e.replace(new RegExp(o,"g"),i)}),JSON.stringify(n))))+"--\x3e<\/script>"}function
c(e){var t=Object.keys(e).map((function(t){return"["+String(u(t,e[t]))
+"]"})).join(""),n=document.querySelector("script"+String(t));if(!n)return null;var
o=n.innerHTML;return function(e){var t=i.reduceRight((function(e,t){var
n=r(t,2),o=n[0],i=n[1];return e.replace(new RegExp(i,"g"),o)}),e);return
JSON.parse(t)}(o.slice("\x3c!--".length,o.length-"--\x3e".length))}function f(e)
{return"undefined"==typeof window?
e.server():e.client()}f.toScript=s,f.fromScript=c,f.serialize=function(e,t,n){var
r,i=e.replace(/\W/g,""),u=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,
(function(e){return(e^16*Math.random()>>e/4).toString(16)})),c="<div
data-"+a+'="'+String(i)+'"
data-'+l+'="'+String(u)+'">'+String(t)+"</div>",f=s((o(r={},a,i),o(r,l,u),r),n);ret
urn c+"\n"+String(f)},f.load=function(e){var
t=e.replace(/\W/g,""),n=document.querySelectorAll("div[data-"+a+'="'+String(t)
+'"]');return Array.prototype.map.call(n,(function(e){var
n,r=e.getAttribute("data-"+l);return{node:e,data:c((o(n={},a,t),o(n,l,r),n))}}))},e
.exports=t.default},function(e,t,n){"use strict";function r()
{return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var
n=arguments[t];for(var r in
n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return
e}).apply(this,arguments)}function o(e,t){if(null==e)return{};var
n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||
(o[n]=e[n]);return o}function i(e,t)
{e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.r
(t),n.d(t,"CSSTransition",(function(){return w})),n.d(t,"ReplaceTransition",
(function(){return R})),n.d(t,"SwitchTransition",(function(){return
z})),n.d(t,"TransitionGroup",(function(){return O})),n.d(t,"Transition",(function()
{return v})),n.d(t,"config",(function(){return f}));n(3);function a(e,t){return
e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g,"
").replace(/^\s*|\s*$/g,"")}var l=n(0),u=n.n(l),s=n(2),c=n.n(s),f={disabled:!
1},d=u.a.createContext(null),p="entering",h="entered",g=function(e){function t(t,n)
{var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return
r.appearStatus=null,t.in?i?(o="exited",r.appearStatus=p)solveHierarchy(t.lng||
this.language):F.push(t.lng||this.language);var M=function(e,n)
{o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,n,R?
t.defaultValue:g,R,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backend
Connector.saveMissing(e,c,n,R?
t.defaultValue:g,R,t),o.emit("missingKey",e,c,n,g)};if(this.options.saveMissing)
{var D=void 0!==t.count&&"string"!=typeof
t.count;this.options.saveMissingPlurals&&D?F.forEach((function(e)
{o.pluralResolver.getPluralFormsOfKey(e,u).forEach((function(t){return
M([e],t)}))})):M(F,u)}}g=this.extendTranslation(g,e,t,h,n),_&&g===u&&this.options.a
ppendNamespaceToMissingKey&&(g="".concat(c,":").concat(u)),_&&this.options.parseMis
singKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},
{key:"extendTranslation",value:function(e,t,n,r,o){var
a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.used
Lng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation)
{n.interpolation&&this.interpolator.init(i({},n,
{interpolation:i({},this.options.interpolation,n.interpolation)}));var
l,u=n.interpolation&&n.interpolation.skipOnVariables||
this.options.interpolation.skipOnVariables;if(u){var
s=e.match(this.interpolator.nestingRegexp);l=s&&s.length}var c=n.replace&&"string"!
=typeof n.replace?
n.replace:n;if(this.options.interpolation.defaultVariables&&(c=i({},this.options.in
terpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||
this.language,n),u){var
f=e.match(this.interpolator.nestingRegexp);l<(f&&f.length)&&(n.nest=!1)}!1!
==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new
Array(e),r=0;r<e;r++)n[r]=arguments[r];return o&&o[0]===n[0]?(a.logger.warn("It
seems you are nesting recursively key: ".concat(n[0]," in key:
").concat(t[0])),null):a.translate.apply(a,n.concat([t]))}),n)),n.interpolation&&th
is.interpolator.reset()}var d=n.postProcess||
this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!
1!
==n.applyPostProcessor&&(e=N.handle(p,e,t,this.options&&this.options.postProcessPas
sResolved?i({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var
t,n,r,o,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t))
{var u=a.extractFromKey(e,l),s=u.key;n=s;var
c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void
0!==l.count&&"string"!=typeof l.count,d=void 0!==l.context&&"string"==typeof
l.context&&""!==l.context,p=l.lngs?
l.lngs:a.languageUtils.toResolveHierarchy(l.lng||
a.language,l.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!
R["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!
a.utils.hasLoadedNamespace(i)&&(R["".concat(p[0],"-").concat(e)]=!
0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t
get resolved as namespace "').concat(i,'" was not yet loaded'),"This means
something IS WRONG in your setup. You access the t function before i18next.init /
i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or
Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!
a.isValidLookup(t)){o=n;var
i,u,c=s,p=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKey
s(p,s,n,e,l);else
f&&(i=a.pluralResolver.getSuffix(n,l.count)),f&&d&&p.push(c+i),d&&p.push(c+="".conc
at(a.options.contextSeparator).concat(l.context)),f&&p.push(c+=i);for(;u=p.pop();)a
.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,l))}})))}))}})),
{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},
{key:"isValidLookup",value:function(e){return!(void 0===e||!
this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},
{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!
==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?
this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}]),t}
(m);function F(e){return e.charAt(0).toUpperCase()+e.slice(1)}var j=function()
{function e(t)
{a(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!
1,this.supportedLngs=this.options.supportedLngs||!
1,this.logger=g.create("languageUtils")}return u(e,
[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return
null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-
1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},
{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return
e;var t=e.split("-");return this.formatLanguageCode(t[0])}},
{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-
1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return
this.options.lowerCaseLng?n=n.map((function(e){return
e.toLowerCase()})):2===n.length?
(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-
1&&(n[1]=F(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].le
ngth&&(n[1]=n[1].toUpperCase()),"sgn"!
==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-
1&&(n[1]=F(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-
1&&(n[2]=F(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||
this.options.lowerCaseLng?e.toLowerCase():e}},
{key:"isWhitelisted",value:function(e){return
this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will
be renamed to "isSupportedCode" in the next major - please make sure to rename
it\'s usage asap.'),this.isSupportedCode(e)}},
{key:"isSupportedCode",value:function(e)
{return("languageOnly"===this.options.load||
this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!
this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},
{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?
(e.forEach((function(e){if(!t){var
r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||
(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var
r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return
t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return
e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},
{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"==typeof
e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!
t)return e.default||[];var n=e[t];return n||
(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||
(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},
{key:"toResolveHierarchy",value:function(e,t){var
n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||
[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?
o.push(e):n.logger.warn("rejecting language code not found in supportedLngs:
".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!
==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!
==this.options.load&&"currentOnly"!
==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!
==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof
e&&i(this.formatLanguageCode(e)),r.forEach((function(e)
{o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),I=[{lngs:
["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-
BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:
["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu",
"fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","
ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-
PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:
[1,2],fc:2},{lngs:
["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah"
,"su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:
["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:
[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:
[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:
["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:
[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:
["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:
[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},
{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:
[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],M={1:function(e){return
Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return
0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e
%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e
%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?
1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?
1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e)
{return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?
3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?
2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return
Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e)
{return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?
1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e)
{return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?
0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e
%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e
%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e
%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?
2:3)}};function D(){var e={};return I.forEach((function(t)
{t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:M[t.fc]}}))})),e}var
z=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:
{};a(this,e),this.languageUtils=t,this.options=n,this.logger=g.create("pluralResolv
er"),this.rules=D()}return u(e,[{key:"addRule",value:function(e,t)
{this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||
this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},
{key:"needsPlural",value:function(e){var t=this.getRule(e);return
t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var
n=this,r=[],o=this.getRule(e);return o?(o.numbers.forEach((function(o){var
i=n.getSuffix(e,o);r.push("".concat(t).concat(i))})),r):r}},
{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var
o=r.noAbs?
r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffi
x&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var
a=function(){return n.options.prepend&&i.toString()?
n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilit
yJSON?1===i?"":"number"==typeof
i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||
this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?
a():this.options.prepend&&o.toString()?
this.options.prepend+o.toString():o.toString()}return
this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),A=function()
{function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{};a(this,e),this.logger=g.create("interpolator"),this.options=t,this.format=t.inte
rpolation&&t.interpolation.format||function(e){return e},this.init(t)}return u(e,
[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var
t=e.interpolation;this.escape=void 0!==t.escape?t.escape:O,this.escapeValue=void
0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!
==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?
T(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?
T(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?
t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.
unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||""
,this.nestingPrefix=t.nestingPrefix?T(t.nestingPrefix):t.nestingPrefixEscaped||
T("$t("),this.nestingSuffix=t.nestingSuffix?
T(t.nestingSuffix):t.nestingSuffixEscaped||
T(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?
t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxRepl
aces?t.maxReplaces:1e3,this.alwaysFormat=void 0!
==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function()
{this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var
e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new
RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.
+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new
RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.
+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},
{key:"interpolate",value:function(e,t,n,r){var
o,i,a,l=this,u=this.options&&this.options.interpolation&&this.options.interpolation
.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}var
c=function(e){if(e.indexOf(l.formatSeparator)<0){var o=E(t,u,e);return
l.alwaysFormat?l.format(o,void 0,n):o}var
i=e.split(l.formatSeparator),a=i.shift().trim(),s=i.join(l.formatSeparator).trim();
return l.format(E(t,u,a),s,n,r)};this.resetRegExp();var
f=r&&r.missingInterpolationHandler||
this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skip
OnVariables||
this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeVa
lue:function(e){return s(e)}},{regex:this.regexp,safeValue:function(e){return
l.escapeValue?s(l.escape(e)):s(e)}}].forEach((function(t)
{for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof
f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d)
{i=o[0];continue}l.logger.warn("missed to pass in variable ".concat(o[1]," for
interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||
(i=y(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,+
+a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var
n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:
{},l=i({},a);function u(e,t){var
n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new
RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,l))
.replace(/'/g,'"');try{l=JSON.parse(o),t&&(l=i({},t,l))}catch(t){return
this.logger.warn("failed parsing options string in nesting for key
".concat(e),t),"".concat(e).concat(n).concat(o)}return delete
l.defaultValue,e}for(l.applyPostProcessor=!1,delete
l.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],c=!
1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var
f=n[1].split(this.formatSeparator).map((function(e){return
e.trim()}));n[1]=f.shift(),s=f,c=!
0}if((r=t(u.call(this,n[1].trim(),l),l))&&n[0]===e&&"string"!=typeof r)return
r;"string"!=typeof r&&(r=y(r)),r||(this.logger.warn("missed to resolve
".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce((function(e,t)
{return
o.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}retu
rn e}}]),e}();var U=function(e){function t(e,n,r){var o,i=arguments.length>3&&void
0!==arguments[3]?arguments[3]:{};return
a(this,t),o=c(this,f(t).call(this)),P&&m.call(Object(s.a)
(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i
,o.logger=g.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.i
nit&&o.backend.init(r,i.backend,i),o}return p(t,e),u(t,
[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],l=[],u=[];return
e.forEach((function(e){var r=!0;t.forEach((function(t){var
l="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?
o.state[l]=2:o.state[l]<0||(1===o.state[l]?a.indexOf(l)<0&&a.push(l):
(o.state[l]=1,r=!
1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),u.indexOf(t)<0&&u.push(t)))})
),r||l.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:
{},errors:[],callback:r}),
{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:u}}},
{key:"loaded",value:function(e,t,n){var
r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addR
esourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n)
{var r,l,u,s,c,f;r=n.loaded,l=i,s=w(r,[o],Object),c=s.obj,f=s.k,c[f]=c[f]||
[],u&&(c[f]=c[f].concat(l)),u||c[f].push(l),function(e,t){for(var n=e.indexOf(t);-
1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!
==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||
(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t)
{a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?
n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.f
ilter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var
r=this,o=arguments.length>3&&void 0!==arguments[3]?
arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?
arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?
this.backend[n](e,t,(function(l,u){l&&u&&o<5?setTimeout((function()
{r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(l,u)})):a(null,{})}},
{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!
this.backend)return this.logger.warn("No backend was added via i18next.use. Will
not load resources."),o&&o();"string"==typeof
e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var
i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||
o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},
{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},
{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},
{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!
==arguments[1]?
arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,
(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for
language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded
namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},
{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!
==arguments[5]?arguments[5]:
{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!
this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key
"'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means
something IS WRONG in your setup. You access the t function before i18next.init /
i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or
Promise to resolve before accessing it!!!"):null!=n&&""!
==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},a,
{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(m);function V()
{return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:
["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!
1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!
1,load:"all",preload:!1,simplifyPluralSuffix:!
0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partial
BundledLanguages:!1,saveMissing:!1,updateMissing:!
1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!
1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!
1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!
1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!
1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var
t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof
e[1]&&(t.defaultValue=e[1]),"string"==typeof
e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var n=e[3]||
e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:
{escapeValue:!0,format:function(e,t,n,r){return
e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t
(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!
1}}}function W(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof
e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof
e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.
indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e
.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitel
ist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.suppo
rtedLngs.concat(["cimode"])),e}function H(){}var $=new(function(e){function t(){var
e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?
arguments[1]:void 0;if(a(this,t),e=c(this,f(t).call(this)),P&&m.call(Object(s.a)
(e)),e.options=W(n),e.services={},e.logger=g,e.modules={external:[]},r&&!
e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return
e.init(n,r),c(e,Object(s.a)(e));setTimeout((function(){e.init(n,r)}),0)}return
e}return p(t,e),u(t,[{key:"init",value:function(){var
e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=arguments.length>1?arguments[1]:void 0;function r(e){return
e?"function"==typeof e?new e:e:null}if("function"==typeof
t&&(n=t,t={}),t.whitelist&&!
t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be
renamed to "supportedLngs" in the next major - please make sure to rename this
option asap.'),t.nonExplicitWhitelist&&!
t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options
"nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next
major - please make sure to rename this option
asap.'),this.options=i({},V(),this.options,W(t)),this.format=this.options.interpola
tion.format,n||(n=H),!this.options.isClone){this.modules.logger?
g.init(r(this.modules.logger),this.options):g.init(null,this.options);var o=new
j(this.options);this.store=new _(this.options.resources,this.options);var
a=this.services;a.logger=g,a.resourceStore=this.store,a.languageUtils=o,a.pluralRes
olver=new z(o,
{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJ
SON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new
A(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.b
ackendConnector=new
U(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*"
,(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-
1]=arguments[o];e.emit.apply(e,
[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules
.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),
this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init
&&a.i18nFormat.init(this)),this.translator=new
L(this.services,this.options),this.translator.on("*",(function(t){for(var
n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-
1]=arguments[o];e.emit.apply(e,
[t].concat(r))})),this.modules.external.forEach((function(t)
{t.init&&t.init(e)}))}this.modules.languageDetector||this.options.lng||
this.logger.warn("init: no languageDetector is used and no lng is defined");var
l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.for
Each((function(t){e[t]=function(){var n;return(n=e.store)
[t].apply(n,arguments)}}));var
u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEa
ch((function(t){e[t]=function(){var n;return(n=e.store)
[t].apply(n,arguments),e}}));var s=v(),c=function(){e.changeLanguage(e.options.lng,
(function(t,r){e.isInitialized=!
0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r
),n(t,r)}))};return this.options.resources||!this.options.initImmediate?
c():setTimeout(c,0),s}},{key:"loadResources",value:function(e){var
t=this,n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:H,r=n,o="string"==typeof e?e:this.language;if("function"==typeof
e&&(r=e),!this.options.resources||this.options.partialBundledLanguages)
{if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e)
{e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e)
{i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var
l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(
(function(e){return
a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return
a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},
{key:"reloadResources",value:function(e,t,n){var r=v();return e||
(e=this.languages),t||(t=this.options.ns),n||
(n=H),this.services.backendConnector.reload(e,t,(function(e)
{r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You
are passing an undefined module! Please check the object you are passing to
i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please
check the object you are passing to
i18next.use()");return"backend"===e.type&&(this.modules.backend=e),
("logger"===e.type||
e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this
.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"po
stProcessor"===e.type&&N.addPostProcessor(e),"3rdParty"===e.type&&this.modules.exte
rnal.push(e),this}},{key:"changeLanguage",value:function(e,t){var
n=this;this.isLanguageChangingTo=e;var r=v();this.emit("languageChanging",e);var
o=function(e){var o="string"==typeof e?
e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||
(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.transla
tor.language||
n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDete
ctor.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?
(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translat
or.changeLanguage(o),n.isLanguageChangingTo=void
0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangi
ngTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,
(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!
this.services.languageDetector||this.services.languageDetector.async?!
e&&this.services.languageDetector&&this.services.languageDetector.async?
this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.dete
ct()),r}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var
a;if("object"!==r(o)){for(var l=arguments.length,u=new Array(l>2?l-2:0),s=2;s<l;s+
+)u[s-
2]=arguments[s];a=n.options.overloadTranslationOptionHandler([t,o].concat(u))}else
a=i({},o);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||
e.ns,n.t(t,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},
{key:"t",value:function(){var e;return
this.translator&&(e=this.translator).translate.apply(e,arguments)}},
{key:"exists",value:function(){var e;return
this.translator&&(e=this.translator).exists.apply(e,arguments)}},
{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},
{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void
0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return
this.logger.warn("hasLoadedNamespace: i18next was not
initialized",this.languages),!1;if(!this.languages||!this.languages.length)return
this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or
empty",this.languages),!1;var r=this.languages[0],o=!!
this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-
1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var
r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||
2===r};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!!
this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||
o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=v();return
this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e)
{n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e)
{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},
{key:"loadLanguages",value:function(e,t){var n=v();"string"==typeof e&&(e=[e]);var
r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return
o.length?(this.options.preload=r.concat(o),this.loadResources((function(e)
{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},
{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?
this.languages[0]:this.language),!
e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","ac
m","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","a
rq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps
","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","
xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.g
etLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function()
{var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},
{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:H,o=i({},this.options,n,{isClone:!0}),a=new
t(o),l=["store","services","language"];return l.forEach((function(t)
{a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a
.hasLoadedNamespace.bind(a)},a.translator=new
L(a.services,a.options),a.translator.on("*",(function(e){for(var
t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-
1]=arguments[r];a.emit.apply(a,
[e].concat(n))})),a.init(o,r),a.translator.options=a.options,a.translator.backendCo
nnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}
(m));t.default=$}]);

You might also like