1function e9(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(i,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var xv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p4(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function i(){var o=!1;try{o=this instanceof i}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}),n}var tp={exports:{}},Ul={},np={exports:{}},gn={};var Sv;function t9(){if(Sv)return gn;Sv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function w(H){return H===null||typeof H!="object"?null:(H=g&&H[g]||H["@@iterator"],typeof H=="function"?H:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,_={};function C(H,K,he){this.props=H,this.context=K,this.refs=_,this.updater=he||m}C.prototype.isReactComponent={},C.prototype.setState=function(H,K){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,H,K,"setState")},C.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function R(){}R.prototype=C.prototype;function I(H,K,he){this.props=H,this.context=K,this.refs=_,this.updater=he||m}var k=I.prototype=new R;k.constructor=I,b(k,C.prototype),k.isPureReactComponent=!0;var A=Array.isArray,L=Object.prototype.hasOwnProperty,j={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function V(H,K,he){var Ce,ke={},be=null,Re=null;if(K!=null)for(Ce in K.ref!==void 0&&(Re=K.ref),K.key!==void 0&&(be=""+K.key),K)L.call(K,Ce)&&!D.hasOwnProperty(Ce)&&(ke[Ce]=K[Ce]);var Ve=arguments.length-2;if(Ve===1)ke.children=he;else if(1<Ve){for(var ht=Array(Ve),dt=0;dt<Ve;dt++)ht[dt]=arguments[dt+2];ke.children=ht}if(H&&H.defaultProps)for(Ce in Ve=H.defaultProps,Ve)ke[Ce]===void 0&&(ke[Ce]=Ve[Ce]);return{$$typeof:e,type:H,key:be,ref:Re,props:ke,_owner:j.current}}function q(H,K){return{$$typeof:e,type:H.type,key:K,ref:H.ref,props:H.props,_owner:H._owner}}function $(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function W(H){var K={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(he){return K[he]})}var ae=/\/+/g;function te(H,K){return typeof H=="object"&&H!==null&&H.key!=null?W(""+H.key):K.toString(36)}function ce(H,K,he,Ce,ke){var be=typeof H;(be==="undefined"||be==="boolean")&&(H=null);var Re=!1;if(H===null)Re=!0;else switch(be){case"string":case"number":Re=!0;break;case"object":switch(H.$$typeof){case e:case t:Re=!0}}if(Re)return Re=H,ke=ke(Re),H=Ce===""?"."+te(Re,0):Ce,A(ke)?(he="",H!=null&&(he=H.replace(ae,"$&/")+"/"),ce(ke,K,he,"",function(dt){return dt})):ke!=null&&($(ke)&&(ke=q(ke,he+(!ke.key||Re&&Re.key===ke.key?"":(""+ke.ke
vendor: 4,216 bytes, line 1
1y).replace(ae,"$&/")+"/")+H)),K.push(ke)),1;if(Re=0,Ce=Ce===""?".":Ce+":",A(H))for(var Ve=0;Ve<H.length;Ve++){be=H[Ve];var ht=Ce+te(be,Ve);Re+=ce(be,K,he,ht,ke)}else if(ht=w(H),typeof ht=="function")for(H=ht.call(H),Ve=0;!(be=H.next()).done;)be=be.value,ht=Ce+te(be,Ve++),Re+=ce(be,K,he,ht,ke);else if(be==="object")throw K=String(H),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return Re}function pe(H,K,he){if(H==null)return H;var Ce=[],ke=0;return ce(H,Ce,"","",function(be){return K.call(he,be,ke++)}),Ce}function me(H){if(H._status===-1){var K=H._result;K=K(),K.then(function(he){(H._status===0||H._status===-1)&&(H._status=1,H._result=he)},function(he){(H._status===0||H._status===-1)&&(H._status=2,H._result=he)}),H._status===-1&&(H._status=0,H._result=K)}if(H._status===1)return H._result.default;throw H._result}var ne={current:null},X={transition:null},re={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:X,ReactCurrentOwner:j};return gn.Children={map:pe,forEach:function(H,K,he){pe(H,function(){K.apply(this,arguments)},he)},count:function(H){var K=0;return pe(H,function(){K++}),K},toArray:function(H){return pe(H,function(K){return K})||[]},only:function(H){if(!$(H))throw Error("React.Children.only expected to receive a single React element child.");return H}},gn.Component=C,gn.Fragment=n,gn.Profiler=o,gn.PureComponent=I,gn.StrictMode=i,gn.Suspense=d,gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,gn.cloneElement=function(H,K,he){if(H==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+H+".");var Ce=b({},H.props),ke=H.key,be=H.ref,Re=H._owner;if(K!=null){if(K.ref!==void 0&&(be=K.ref,Re=j.current),K.key!==void 0&&(ke=""+K.key),H.type&&H.type.defaultProps)var Ve=H.type.defaultProps;for(ht in K)L.call(K,ht)&&!D.hasOwnProperty(ht)&&(Ce[ht]=K[ht]===void 0&&Ve!==void 0?Ve[ht]:K[ht])}var ht=arguments.length-2;if(ht===1)Ce.children=he;else if(1<ht){Ve=Array(ht);for(var dt=0;dt<ht;dt++)Ve[dt]=arguments[dt+2];Ce.children=Ve}return{$$typeof:e,type:H.type,key:ke,ref:be,props:Ce,_owner:Re}},gn.createContext=function(H){return H={$$typeof:l,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},H.Provider={$$typeof:s,_context:H},H.Consumer=H},gn.createElement=V,gn.createFactory=function(H){var K=V.bind(null,H);return K.type=H,K},gn.createRef=function(){return{current:null}},gn.forwardRef=function(H){return{$$typeof:c,render:H}},gn.isValidElement=$,gn.lazy=function(H){return{$$typeof:h,_payload:{_status:-1,_result:H},_init:me}},gn.memo=function(H,K){return{$$typeof:f,type:H,compare:K===void 0?null:K}},gn.startTransition=function(H){var K=X.transition;X.transition={};try{H()}finally{X.transition=K}},gn.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},gn.useCallback=function(H,K){return ne.current.useCallback(H,K)},gn.useContext=function(H){return ne.current.useContext(H)},gn.useDebugValue=function(){},gn.useDeferredValue=function(H){return ne.current.useDeferredValue(H)},gn.useEffect=function(H,K){return ne.current.useEffect(H,K)},gn.useId=function(){return ne.current.useId()},gn.useImperativeHandle=function(H,K,he){return ne.current.useImperativeHandle(H,K,he)},gn.useInsertionEffect=function(H,K){return ne.current.useInsertionEffect(H,K)},gn.useLayoutEffect=function(H,K){return ne.current.useLayoutEffect(H,K)},gn.useMemo=function(H,K){return ne.current.useMemo(H,K)},gn.useReducer=function(H,K,he){return ne.current.useReducer(H,K,he)},gn.useRef=function(H){return ne.current.useRef(H)},gn.useState=function(H){return ne.current.useState(H)},gn.useSyncExternalStore=function(H,K,he){return ne.current.useSyncExternalStore(H,K,he)},gn.useTransition=function(){return ne.current.useTransition()},gn.version="18.2.0",gn}var Av;function wu(){return Av||(Av=1,np.exports=t9()),np.exports}var Ev;function n9(){if(Ev)return Ul;Ev=1;var e=wu(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INT
vendor: 6,035 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,d,f){var h,g={},w=null,m=null;f!==void 0&&(w=""+f),d.key!==void 0&&(w=""+d.key),d.ref!==void 0&&(m=d.ref);for(h in d)i.call(d,h)&&!s.hasOwnProperty(h)&&(g[h]=d[h]);if(c&&c.defaultProps)for(h in d=c.defaultProps,d)g[h]===void 0&&(g[h]=d[h]);return{$$typeof:t,type:c,key:w,ref:m,props:g,_owner:o.current}}return Ul.Fragment=n,Ul.jsx=l,Ul.jsxs=l,Ul}var kv;function r9(){return kv||(kv=1,tp.exports=n9()),tp.exports}var T=r9(),z=wu();const x=f4(z),xd=e9({__proto__:null,default:x},[z]);var jc={},rp={exports:{}},ii={},ip={exports:{}},ap={};var Tv;function i9(){return Tv||(Tv=1,(function(e){function t(X,re){var H=X.length;X.push(re);e:for(;0<H;){var K=H-1>>>1,he=X[K];if(0<o(he,re))X[K]=re,X[H]=he,H=K;else break e}}function n(X){return X.length===0?null:X[0]}function i(X){if(X.length===0)return null;var re=X[0],H=X.pop();if(H!==re){X[0]=H;e:for(var K=0,he=X.length,Ce=he>>>1;K<Ce;){var ke=2*(K+1)-1,be=X[ke],Re=ke+1,Ve=X[Re];if(0>o(be,H))Re<he&&0>o(Ve,be)?(X[K]=Ve,X[Re]=H,K=Re):(X[K]=be,X[ke]=H,K=ke);else if(Re<he&&0>o(Ve,H))X[K]=Ve,X[Re]=H,K=Re;else break e}}return re}function o(X,re){var H=X.sortIndex-re.sortIndex;return H!==0?H:X.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],h=1,g=null,w=3,m=!1,b=!1,_=!1,C=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(X){for(var re=n(f);re!==null;){if(re.callback===null)i(f);else if(re.startTime<=X)i(f),re.sortIndex=re.expirationTime,t(d,re);else break;re=n(f)}}function A(X){if(_=!1,k(X),!b)if(n(d)!==null)b=!0,me(L);else{var re=n(f);re!==null&&ne(A,re.startTime-X)}}function L(X,re){b=!1,_&&(_=!1,R(V),V=-1),m=!0;var H=w;try{for(k(re),g=n(d);g!==null&&(!(g.expirationTime>re)||X&&!W());){var K=g.callback;if(typeof K=="function"){g.callback=null,w=g.priorityLevel;var he=K(g.expirationTime<=re);re=e.unstable_now(),typeof he=="function"?g.callback=he:g===n(d)&&i(d),k(re)}else i(d);g=n(d)}if(g!==null)var Ce=!0;else{var ke=n(f);ke!==null&&ne(A,ke.startTime-re),Ce=!1}return Ce}finally{g=null,w=H,m=!1}}var j=!1,D=null,V=-1,q=5,$=-1;function W(){return!(e.unstable_now()-$<q)}function ae(){if(D!==null){var X=e.unstable_now();$=X;var re=!0;try{re=D(!0,X)}finally{re?te():(j=!1,D=null)}}else j=!1}var te;if(typeof I=="function")te=function(){I(ae)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,pe=ce.port2;ce.port1.onmessage=ae,te=function(){pe.postMessage(null)}}else te=function(){C(ae,0)};function me(X){D=X,j||(j=!0,te())}function ne(X,re){V=C(function(){X(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){b||m||(b=!0,me(L))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(X){switch(w){case 1:case 2:case 3:var re=3;break;default:re=w}var H=w;w=re;try{return X()}finally{w=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,re){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var H=w;w=X;try{return re()}finally{w=H}},e.unstable_scheduleCallback=function(X,re,H){var K=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?K+H:K):H=K,X){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=H+he,X={id:h++,callback:re,priorityLevel:X,startTime:H,expirationTime:he,sortIndex:-1},H>K?(X.sortIndex=H,t(f,X),n(d)===null&&X===n(f)&&(_?(R(V),V=-1):_=!0,ne(A,H-K))):(X.sortIndex=he,t(d,X),b||m||(b=!0,me(L))),X},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(X){var re=w;return function(){var H=w;w=re;try{return X.apply(this,arguments)}finally{w=H}}}})(ap)),ap}var Pv;function a9(){return Pv||(Pv=1,ip.exports=i9()),ip.exports}var Lv;function o9(){if(Lv)return ii;Lv=1;var e=wu(),t=a9();function n(r){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+r,u=1;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,o={};function s(r,a){l(r,a),l(r+"Capture",a)}function l(r,a){for(o[r]=a,r=0;r<a.length;r++)i.add(a[r])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},g={};function w(r){return d.call(g,r)?!0:d.call(h,r)?!1:f.test(r)?g[r]=!0:(h[r]=!0,!1)}function m(r,a,u,p){if(u!==null&&u.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return p?!1:u!==null?!u.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function b(r,a,u,p){if(a===null||typeof a>"u"||m(r,a,u,p))return!0;
vendor: 23,325 bytes, lines 1-5
1if(p)return!1;if(u!==null)switch(u.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function _(r,a,u,p,y,S,F){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=p,this.attributeNamespace=y,this.mustUseProperty=u,this.propertyName=r,this.type=a,this.sanitizeURL=S,this.removeEmptyString=F}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){C[r]=new _(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var a=r[0];C[a]=new _(a,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){C[r]=new _(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){C[r]=new _(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){C[r]=new _(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){C[r]=new _(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){C[r]=new _(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){C[r]=new _(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){C[r]=new _(r,5,!1,r.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function I(r){return r[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(r){var a=r.replace(R,I);C[a]=new _(a,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var a=r.replace(R,I);C[a]=new _(a,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var a=r.replace(R,I);C[a]=new _(a,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){C[r]=new _(r,1,!1,r.toLowerCase(),null,!1,!1)}),C.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){C[r]=new _(r,1,!1,r.toLowerCase(),null,!0,!0)});function k(r,a,u,p){var y=C.hasOwnProperty(a)?C[a]:null;(y!==null?y.type!==0:p||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(b(a,u,y,p)&&(u=null),p||y===null?w(a)&&(u===null?r.removeAttribute(a):r.setAttribute(a,""+u)):y.mustUseProperty?r[y.propertyName]=u===null?y.type===3?!1:"":u:(a=y.attributeName,p=y.attributeNamespace,u===null?r.removeAttribute(a):(y=y.type,u=y===3||y===4&&u===!0?"":""+u,p?r.setAttributeNS(p,a,u):r.setAttribute(a,u))))}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,L=Symbol.for("react.element"),j=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),W=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),X=Symbol.iterator;function re(r){return r===null||typeof r!="object"?null:(r=X&&r[X]||r["@@iterator"],typeof r=="function"?r:null)}var H=Object.assign,K;function he(r){if(K===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);K=a&&a[1]||""}return` 2`+K+r}var Ce=!1;function ke(r,a){if(!r||Ce)return"";Ce=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(Se){var p=Se}Reflect.construct(r,[],a)}else{try{a.call()}catch(Se){p=Se}r.call(a.prototype)}else{try{throw Error()}catch(Se){p=Se}r()}}catch(Se){if(Se&&p&&typeof Se.stack=="string"){for(var y=Se.stack.split(` 3`),S=p.stack.split(` 4`),F=y.length-1,Z=S.length-1;1<=F&&0<=Z&&y[F]!==S[Z];)Z--;for(;1<=F&&0<=Z;F--,Z--)if(y[F]!==S[Z]){if(F!==1||Z!==1)do if(F--,Z--,0>Z||y[F]!==S[Z]){var ie=` 5`+y[F].replace(" at new "," at ");return r.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",r.displayName)),ie}while(1<=F&&0<=Z);break}}}finally{Ce=!1,Error.prepareStackTrace=u}return(r=r?r.displayName||r.name:"")?he(r):""}function be(r){switch(r.tag){case 5:return he(r.type);case 16:return he("Lazy");case 13:return he("Suspense");case 19:return he("SuspenseList");case 0:case 2:case 15:return r=ke(r.type,!1),r;case 11:return r=ke(r.type.render,!1),r;case 1:return r=ke(r.type,!0),r;default:return""}}function Re(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case D:return"Fragment";case j:return"Portal";case q:return"Profiler";case V:return"StrictMode";case te:return"Suspense";case ce:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case W:return(r.displayName||"Context")+".Consumer";case $:return(r._context.displayName||"Context")+".Provider";case ae:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case pe:return a=r.displayName||null,a!==null?a:Re(r.type)||"Memo";case me:a=r._payload,r=r._init;try{return Re(r(a))}catch{}}return null}function Ve(r){var a=r.type;switch(r.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=a.render,r=r.displayName||r.name||"",a.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Re(a);case 8:return a===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function ht(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function dt(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ut(r){var a=dt(r)?"checked":"value",u=Object.getOwnPropertyDescriptor(r.constructor.prototype,a),p=""+r[a];if(!r.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var y=u.get,S=u.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return y.call(this)},set:function(F){p=""+F,S.call(this,F)}}),Object.defineProperty(r,a,{enumerable:u.enumerable}),{getValue:function(){return p},setValue:function(F){p=""+F},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function $t(r){r._valueTracker||(r._valueTracker=ut(r))}function bt(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var u=a.getValue(),p="";return r&&(p=dt(r)?r.checked?"true":"false":r.value),r=p,r!==u?(a.setValue(r),!0):!1}function vn(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function yn(r,a){var u=a.checked;return H({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??r._wrapperState.initialChecked})}function Wn(r,a){var u=a.defaultValue==null?"":a.defaultValue,p=a.checked!=null?a.checked:a.defaultChecked;u=ht(a.value!=null?a.value:u),r._wrapperState={initialChecked:p,initialValue:u,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function ot(r,a){a=a.checked,a!=null&&k(r,"checked",a,!1)}function sn(r,a){ot(r,a);var u=ht(a.value),p=a.type;if(u!=null)p==="number"?(u===0&&r.value===""||r.value!=u)&&(r.value=""+u):r.value!==""+u&&(r.value=""+u);else if(p==="submit"||p==="reset"){r.removeAttribute("value");return}a.hasOwnProperty("value")?en(r,a.type,u):a.hasOwnProperty("defaultValue")&&en(r,a.type,ht(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(r.defaultChecked=!!a.defaultChecked)}function qt(r,a,u){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type;if(!(p!=="submit"&&p!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+r._wrapperState.initialValue,u||a===r.value||(r.value=a),r.defaultValue=a}u=r.name,u!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,u!==""&&(r.name=u)}function en(r,a,u){(a!=="number"||vn(r.ownerDocument)!==r)&&(u==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+u&&(r.defaultValue=""+u))}var Pn=Array.isArray;function O(r,a,u,p){if(r=r.options,a){a={};for(var y=0;y<u.length;y++)a["$"+u[y]]=!0;for(u=0;u<r.length;u++)y=a.hasOwnProperty("$"+r[u].value),r[u].selected!==y&&(r[u].selected=y),y&&p&&(r[u].defaultSelected=!0)}else{for(u=""+ht(u),a=null,y=0;y<r.length;y++){if(r[y].value===u){r[y].selected=!0,p&&(r[y].defaultSelected=!0);return}a!==null||r[y].disabled||(a=r[y])}a!==null&&(a.selected=!0)}}function v(r,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return H({},a,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function P(r,a){var u=a.value;if(u==null){if(u=a.children,a=a.defaultValue,u!=null){if(a!=null)throw Error(n(92));if(Pn(u)){if(1<u.length)throw Error(n(93));u=u[0]}a=u}a==null&&(a=""),u=a}r._wrapperState={initialValue:ht(u)}}function U(r,a){var u=ht(a.value),p=ht(a.defaultValue);u!=null&&(u=""+u,u!==r.value&&(r.value=u),a.defaultValue==null&&r.defaultValue!==u&&(r.defaultValue=u)),p!=null&&(r.defaultValue=""+p)}function Y(r){var a=r.textContent;a===r._wrapperState.initialValue&&a!==""&&a!==null&&(r.value=a)}function Ee(r){switch(r){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 B(r,a){return r==null||r==="http://www.w3.org/1999/xhtml"?Ee(a):r==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var ee,fe=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,u,p,y){MSApp.execUnsafeLocalFunction(function(){return r(a,u,p,y)})}:r})(function(r,a){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=a;else{for(ee=ee||document.createElement("div"),ee.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=ee.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;a.firstChild;)r.appendChild(a.firstChild)}});function oe(r,a){if(a){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=a;return}}r.textContent=a}var de={animationIterationCount:!0,aspectRatio:!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},Pe=["Webkit","ms","Moz","O"];Object.keys(de).forEach(function(r){Pe.forEach(function(a){a=a+r.charAt(0).toUpperCase()+r.substring(1),de[a]=de[r]})});function Ue(r,a,u){return a==null||typeof a=="boolean"||a===""?"":u||typeof a!="number"||a===0||de.hasOwnProperty(r)&&de[r]?(""+a).trim():a+"px"}function Le(r,a){r=r.style;for(var u in a)if(a.hasOwnProperty(u)){var p=u.indexOf("--")===0,y=Ue(u,a[u],p);u==="float"&&(u="cssFloat"),p?r.setProperty(u,y):r[u]=y}}var Me=H({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 _e(r,a){if(a){if(Me[r]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function Ae(r,a){if(r.indexOf("-")===-1)return typeof a.is=="string";switch(r){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}}var $e=null;function tt(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ct=null,Ft=null,Qt=null;function ln(r){if(r=kl(r)){if(typeof ct!="function")throw Error(n(280));var a=r.stateNode;a&&(a=Yu(a),ct(r.stateNode,r.type,a))}}function Yt(r){Ft?Qt?Qt.push(r):Qt=[r]:Ft=r}function Hn(){if(Ft){var r=Ft,a=Qt;if(Qt=Ft=null,ln(r),a)for(r=0;r<a.length;r++)ln(a[r])}}function Nn(r,a){return r(a)}function Ni(){}var Yr=!1;function fa(r,a,u){if(Yr)return r(a,u);Yr=!0;try{return Nn(r,a,u)}finally{Yr=!1,(Ft!==null||Qt!==null)&&(Ni(),Hn())}}function si(r,a){var u=r.stateNode;if(u===null)return null;var p=Yu(u);if(p===null)return null;u=p[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(r=r.type,p=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!p;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error(n(231,a,typeof u));return u}var xr=!1;if(c)try{var Zr={};Object.defineProperty(Zr,"passive",{get:function(){xr=!0}}),window.addEventListener("test",Zr,Zr),window.removeEventListener("test",Zr,Zr)}catch{xr=!1}function pa(r,a,u,p,y,S,F,Z,ie){var Se=Array.prototype.slice.call(arguments,3);try{a.apply(u,Se)}catch(Ge){this.onError(Ge)}}var ir=!1,Fi=null,le=!1,Ie=null,je={onError:function(r){ir=!0,Fi=r}};function Qe(r,a,u,p,y,S,F,Z,ie){ir=!1,Fi=null,pa.apply(je,arguments)}function Be(r,a,u,p,y,S,F,Z,ie){if(Qe.apply(this,arguments),ir){if(ir){var Se=Fi;ir=!1,Fi=null}else throw Error(n(198));le||(le=!0,Ie=Se)}}function vt(r){var a=r,u=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(u=a.return),r=a.return;while(r)}return a.tag===3?u:null}function Ct(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function rn(r){if(vt(r)!==r)throw Error(n(188))}function Tt(r){var a=r.alternate;if(!a){if(a=vt(r),a===null)throw Error(n(188));return a!==r?null:r}for(var u=r,p=a;;){var y=u.return;if(y===null)break;var S=y.alternate;if(S===null){if(p=y.return,p!==null){u=p;continue}break}if(y.child===S.child){for(S=y.child;S;){if(S===u)return rn(y),r;if(S===p)return rn(y),a;S=S.sibling}throw Error(n(188))}if(u.return!==p.return)u=y,p=S;else{for(var F=!1,Z=y.child;Z;){if(Z===u){F=!0,u=y,p=S;break}if(Z===p){F=!0,p=y,u=S;break}Z=Z.sibling}if(!F){for(Z=S.child;Z;){if(Z===u){F=!0,u=S,p=y;break}if(Z===p){F=!0,p=S,u=y;break}Z=Z.sibling}if(!F)throw Error(n(189))}}if(u.alternate!==p)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?r:a}function Ot(r){return r=Tt(r),r!==null?it(r):null}function it(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var a=it(r);if(a!==null)return a;r=r.sibling}return null}var Oe=t.unstable_scheduleCallback,nt=t.unstable_cancelCallback,Ht=t.unstable_shouldYield,yt=t.unstable_requestPaint,wt=t.unstable_now,Dt=t.unstable_getCurrentPriorityLevel,Ut=t.unstable_ImmediatePriority,un=t.unstable_UserBlockingPriority,hn=t.unstable_NormalPriority,Mn=t.unstable_LowPriority,Fn=t.unstable_IdlePriority,er=null,Kn=null;function ar(r){if(Kn&&typeof Kn.onCommitFiberRoot=="function")try{Kn.onCommitFiberRoot(er,r,void 0,(r.current.flags&128)===128)}catch{}}var cn=Math.clz32?Math.clz32:zr,mr=Math.log,or=Math.LN2;function zr(r){return r>>>=0,r===0?32:31-(mr(r)/or|0)|0}var Tr=64,Bt=4194304;function wn(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Cn(r,a){var u=r.pendingLanes;if(u===0)return 0;var p=0,y=r.suspendedLanes,S=r.pingedLanes,F=u&268435455;if(F!==0){var Z=F&~y;Z!==0?p=wn(Z):(S&=F,S!==0&&(p=wn(S)))}else F=u&~y,F!==0?p=wn(F):S!==0&&(p=wn(S));if(p===0)return 0;if(a!==0&&a!==p&&(a&y)===0&&(y=p&-p,S=a&-a,y>=S||y===16&&(S&4194240)!==0))return a;if((p&4)!==0&&(p|=u&16),a=r.entangledLanes,a!==0)for(r=r.entanglements,a&=p;0<a;)u=31-cn(a),y=1<<u,p|=r[u],a&=~y;return p}function tr(r,a){switch(r){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qn(r,a){for(var u=r.suspendedLanes,p=r.pingedLanes,y=r.expirationTimes,S=r.pendingLanes;0<S;){var F=31-cn(S),Z=1<<F,ie=y[F];ie===-1?((Z&u)===0||(Z&p)!==0)&&(y[F]=tr(Z,a)):ie<=a&&(r.expiredLanes|=Z),S&=~Z}}function cr(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Rn(){var r=Tr;return Tr<<=1,(Tr&4194240)===0&&(Tr=64),r}function nn(r){for(var a=[],u=0;31>u;u++)a.push(r);return a}function fn(r,a,u){r.pendingLanes|=a,a!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,a=31-cn(a),r[a]=u}function xn(r,a){var u=r.pendingLanes&~a;r.pendingLanes=a,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=a,r.mutableReadLanes&=a,r.entangledLanes&=a,a=r.entanglements;var p=r.eventTimes;for(r=r.expirationTimes;0<u;){var y=31-cn(u),S=1<<y;a[y]=0,p[y]=-1,r[y]=-1,u&=~S}}function Bn(r,a){var u=r.entangledLanes|=a;for(r=r.entanglements;u;){var p=31-cn(u),y=1<<p;y&a|r[p]&a&&(r[p]|=a),u&=~y}}var jt=0;function Je(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Gt,gt,ft,xt,Jt,Pt=!1,Ke=[],ze=null,Xe=null,De=null,Ye=new Map,rt=new Map,Lt=[],M="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function E(r,a){switch(r){case"focusin":case"focusout":ze=null;break;case"dragenter":case"dragleave":Xe=null;break;case"mouseover":case"mouseout":De=null;break;case"pointerover":case"pointerout":Ye.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":rt.delete(a.pointerId)}}function N(r,a,u,p,y,S){return r===null||r.nativeEvent!==S?(r={blockedOn:a,domEventName:u,eventSystemFlags:p,nativeEvent:S,targetContainers:[y]},a!==null&&(a=kl(a),a!==null&>(a)),r):(r.eventSystemFlags|=p,a=r.targetContainers,y!==null&&a.indexOf(y)===-1&&a.push(y),r)}function G(r,a,u,p,y){switch(a){case"focusin":return ze=N(ze,r,a,u,p,y),!0;case"dragenter":return Xe=N(Xe,r,a,u,p,y),!0;case"mouseover":return De=N(De,r,a,u,p,y),!0;case"pointerover":var S=y.pointerId;return Ye.set(S,N(Ye.get(S)||null,r,a,u,p,y)),!0;case"gotpointercapture":return S=y.pointerId,rt.set(S,N(rt.get(S)||null,r,a,u,p,y)),!0}return!1}function Q(r){var a=Io(r.target);if(a!==null){var u=vt(a);if(u!==null){if(a=u.tag,a===13){if(a=Ct(u),a!==null){r.blockedOn=a,Jt(r.priority,function(){ft(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function J(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var u=pt(r.domEventName,r.eventSystemFlags,a[0],r.nativeEvent);if(u===null){u=r.nativeEvent;var p=new u.constructor(u.type,u);$e=p,u.target.dispatchEvent(p),$e=null}else return a=kl(u),a!==null&>(a),r.blockedOn=u,!1;a.shift()}return!0}function ve(r,a,u){J(r)&&u.delete(a)}function ge(){Pt=!1,ze!==null&&J(ze)&&(ze=null),Xe!==null&&J(Xe)&&(Xe=null),De!==null&&J(De)&&(De=null),Ye.forEach(ve),rt.forEach(ve)}function Te(r,a){r.blockedOn===a&&(r.blockedOn=null,Pt||(Pt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,ge)))}function xe(r){function a(y){return Te(y,r)}if(0<Ke.length){Te(Ke[0],r);for(var u=1;u<Ke.length;u++){var p=Ke[u];p.blockedOn===r&&(p.blockedOn=null)}}for(ze!==null&&Te(ze,r),Xe!==null&&Te(Xe,r),De!==null&&Te(De,r),Ye.forEach(a),rt.forEach(a),u=0;u<Lt.length;u++)p=Lt[u],p.blockedOn===r&&(p.blockedOn=null);for(;0<Lt.length&&(u=Lt[0],u.blockedOn===null);)Q(u),u.blockedOn===null&&Lt.shift()}var Fe=A.ReactCurrentBatchConfig,et=!0;function It(r,a,u,p){var y=jt,S=Fe.transition;Fe.transition=null;try{jt=1,We(r,a,u,p)}finally{jt=y,Fe.transition=S}}function se(r,a,u,p){var y=jt,S=Fe.transition;Fe.transition=null;try{jt=4,We(r,a,u,p)}finally{jt=y,Fe.transition=S}}function We(r,a,u,p){if(et){var y=pt(r,a,u,p);if(y===null)Wf(r,a,p,St,u),E(r,p);else if(G(y,r,a,u,p))p.stopPropagation();else if(E(r,p),a&4&&-1<M.indexOf(r)){for(;y!==null;){var S=kl(y);if(S!==null&&Gt(S),S=pt(r,a,u,p),S===null&&Wf(r,a,p,St,u),S===y)break;y=S}y!==null&&p.stopPropagation()}else Wf(r,a,p,null,u)}}var St=null;function pt(r,a,u,p){if(St=null,r=tt(p),r=Io(r),r!==null)if(a=vt(r),a===null)r=null;else if(u=a.tag,u===13){if(r=Ct(a),r!==null)return r;r=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null);return St=r,null}
vendor: 1,543 bytes, line 5
5function dn(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Dt()){case Ut:return 1;case un:return 4;case hn:case Mn:return 16;case Fn:return 536870912;default:return 16}default:return 16}}var st=null,Sn=null,An=null;function Nr(){if(An)return An;var r,a=Sn,u=a.length,p,y="value"in st?st.value:st.textContent,S=y.length;for(r=0;r<u&&a[r]===y[r];r++);var F=u-r;for(p=1;p<=F&&a[u-p]===y[S-p];p++);return An=y.slice(r,1<p?1-p:void 0)}function Vr(r){var a=r.keyCode;
vendor: 11,135 bytes, line 5
5return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function tn(){return!0}function Pr(){return!1}function sr(r){function a(u,p,y,S,F){this._reactName=u,this._targetInst=y,this.type=p,this.nativeEvent=S,this.target=F,this.currentTarget=null;for(var Z in r)r.hasOwnProperty(Z)&&(u=r[Z],this[Z]=u?u(S):S[Z]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?tn:Pr,this.isPropagationStopped=Pr,this}return H(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=tn)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=tn)},persist:function(){},isPersistent:tn}),a}var Ne={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},at=sr(Ne),an=H({},Ne,{view:0,detail:0}),bn=sr(an),Xt,pn,mn,_n=H({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jf,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==mn&&(mn&&r.type==="mousemove"?(Xt=r.screenX-mn.screenX,pn=r.screenY-mn.screenY):pn=Xt=0,mn=r),Xt)},movementY:function(r){return"movementY"in r?r.movementY:pn}}),Kr=sr(_n),gr=H({},_n,{dataTransfer:0}),Jr=sr(gr),yr=H({},an,{relatedTarget:0}),hs=sr(yr),Hu=H({},Ne,{animationName:0,elapsedTime:0,pseudoElement:0}),Lo=sr(Hu),Mo=H({},Ne,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),ha=sr(Mo),ma=H({},Ne,{data:0}),vl=sr(ma),Bu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ba={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"},Rf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gu(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=Rf[r])?!!a[r]:!1}function jf(){return Gu}var B7=H({},an,{key:function(r){if(r.key){var a=Bu[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Vr(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Ba[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jf,charCode:function(r){return r.type==="keypress"?Vr(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Vr(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),G7=sr(B7),U7=H({},_n,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pm=sr(U7),z7=H({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jf}),V7=sr(z7),W7=H({},Ne,{propertyName:0,elapsedTime:0,pseudoElement:0}),q7=sr(W7),$7=H({},_n,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Q7=sr($7),Y7=[9,13,27,32],Of=c&&"CompositionEvent"in window,yl=null;c&&"documentMode"in document&&(yl=document.documentMode);var Z7=c&&"TextEvent"in window&&!yl,hm=c&&(!Of||yl&&8<yl&&11>=yl),mm=" ",gm=!1;function vm(r,a){switch(r){case"keyup":return Y7.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ym(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ms=!1;function K7(r,a){switch(r){case"compositionend":return ym(a);case"keypress":return a.which!==32?null:(gm=!0,mm);case"textInput":return r=a.data,r===mm&&gm?null:r;default:return null}}function J7(r,a){if(ms)return r==="compositionend"||!Of&&vm(r,a)?(r=Nr(),An=Sn=st=null,ms=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return hm&&a.locale!=="ko"?null:a.data;default:return null}}var X7={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 wm(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!X7[r.type]:a==="textarea"}function bm(r,a,u,p){Yt(p),a=qu(a,"onChange"),0<a.length&&(u=new at("onChange","change",null,u,p),r.push({event:u,listeners:a}))}var wl=null,bl=null;function e3(r){Dm(r,0)}function Uu(r){var a=bs(r);if(bt(a))return r}function t3(r,a){if(r==="change")return a}var _m=!1;if(c){var Nf;if(c){var Ff="oninput"in document;if(!Ff){var Cm=document.createElement("div");Cm.setAttribute("oninput","return;"),Ff=typeof Cm.oninput=="function"}Nf=Ff}else Nf=!1;_m=Nf&&(!document.documentMode||9<document.documentMode)}function xm(){wl&&(wl.detachEvent("onpropertychange",Sm),bl=wl=null)}function Sm(r){if(r.propertyName==="value"&&Uu(bl)){var a=[];bm(a,bl,r,tt(r)),fa(e3,a)}}function n3(r,a,u){r==="focusin"?(xm(),wl=a,bl=u,wl.attachEvent("onpropertychange",Sm)):r==="focusout"&&xm()}function r3(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Uu(bl)}function i3(r,a){if(r==="click")return Uu(a)}function a3(r,a){if(r==="input"||r==="change")return Uu(a)}function o3(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Di=typeof Object.is=="function"?Object.is:o3;function _l(r,a){if(Di(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var u=Object.keys(r),p=Object.keys(a);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var y=u[p];if(!d.call(a,y)||!Di(r[y],a[y]))return!1}return!0}function Am(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Em(r,a){var u=Am(r);r=0;for(var p;u;){if(u.nodeType===3){if(p=r+u.textContent.length,r<=a&&p>=a)return{node:u,offset:a-r};r=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Am(u)}}function km(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?km(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Tm(){for(var r=window,a=vn();a instanceof r.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)r=a.contentWindow;else break;a=vn(r.document)}return a}function Df(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function s3(r){var a=Tm(),u=r.focusedElem,p=r.selectionRange;if(a!==u&&u&&u.ownerDocument&&km(u.ownerDocument.documentElement,u)){if(p!==null&&Df(u)){if(a=p.start,r=p.end,r===void 0&&(r=a),"selectionStart"in u)u.selectionStart=a,u.selectionEnd=Math.min(r,u.value.length);else if(r=(a=u.ownerDocument||document)&&a.defaultView||window,r.getSelection){r=r.getSelection();var y=u.textContent.length,S=Math.min(p.start,y);p=p.end===void 0?S:Math.min(p.end,y),!r.extend&&S>p&&(y=p,p=S,S=y),y=Em(u,S);var F=Em(u,p);y&&F&&(r.rangeCount!==1||r.anchorNode!==y.node||r.anchorOffset!==y.offset||r.focusNode!==F.node||r.focusOffset!==F.offset)&&(a=a.createRange(),a.setStart(y.node,y.offset),r.removeAllRanges(),S>p?(r.addRange(a),r.extend(F.node,F.offset)):(a.setEnd(F.node,F.offset),r.addRange(a)))}}for(a=[],r=u;r=r.parentNode;)r.nodeType===1&&a.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<a.length;u++)r=a[u],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var l3=c&&"documentMode"in document&&11>=document.documentMode,gs=null,Hf=null,Cl=null,Bf=!1;function Pm(r,a,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Bf||gs==null||gs!==vn(p)||(p=gs,"selectionStart"in p&&Df(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Cl&&_l(Cl,p)||(Cl=p,p=qu(Hf,"onSelect"),0<p.length&&(a=new at("onSelect","select",null,a,u),r.push({event:a,listeners:p}),a.target=gs)))}function zu(r,a){var u={};return u[r.toLowerCase()]=a.toLowerCase(),u["Webkit"+r]="webkit"+a,u["Moz"+r]="moz"+a,u}var vs={animationend:zu("Animation","AnimationEnd"),animationiteration:zu("Animation","AnimationIteration"),animationstart:zu("Animation","AnimationStart"),transitionend:zu("Transition","TransitionEnd")},Gf={},Lm={};c&&(Lm=document.createElement("div").style,"AnimationEvent"in window||(delete vs.animationend.animation,delete vs.animationiteration.animation,delete vs.animationstart.animation),"TransitionEvent"in window||delete vs.transitionend.transition);function Vu(r){if(Gf[r])return Gf[r];if(!vs[r])return r;var a=vs[r],u;for(u in a)if(a.hasOwnProperty(u)&&u in Lm)return Gf[r]=a[u];return r}var Mm=Vu("animationend"),Im=Vu("animationiteration"),Rm=Vu("animationstart"),jm=Vu("transitionend"),Om=new Map,Nm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ga(r,a){Om.set(r,a),s(a,[r])}for(var Uf=0;Uf<Nm.length;Uf++){var zf=Nm[Uf],u3=zf.toLowerCase(),c3=zf[0].toUpperCase()+zf.slice(1);Ga(u3,"on"+c3)}Ga(Mm,"onAnimationEnd"),Ga(Im,"onAnimationIteration"),Ga(Rm,"onAnimationStart"),Ga("dblclick","onDoubleClick"),Ga("focusin","onFocus"),Ga("focusout","onBlur"),Ga(jm,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focu
5sin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),d3=new Set("cancel close invalid load scroll toggle".split(" ").concat(xl));function Fm(r,a,u){var p=r.type||"unknown-event";r.currentTarget=u,Be(p,a,void 0,r),r.currentTarget=null}function Dm(r,a){a=(a&4)!==0;for(var u=0;u<r.length;u++){var p=r[u],y=p.event;p=p.listeners;e:{var S=void 0;if(a)for(var F=p.length-1;0<=F;F--){var Z=p[F],ie=Z.instance,Se=Z.currentTarget;if(Z=Z.listener,ie!==S&&y.isPropagationStopped())break e;Fm(y,Z,Se),S=ie}else for(F=0;F<p.length;F++){if(Z=p[F],ie=Z.instance,Se=Z.currentTarget,Z=Z.listener,ie!==S&&y.isPropagationStopped())break e;Fm(y,Z,Se),S=ie}}}if(le)throw r=Ie,le=!1,Ie=null,r}function $n(r,a){var u=a[Kf];u===void 0&&(u=a[Kf]=new Set);var p=r+"__bubble";u.has(p)||(Hm(a,r,2,!1),u.add(p))}function Vf(r,a,u){var p=0;a&&(p|=4),Hm(u,r,p,a)}var Wu="_reactListening"+Math.random().toString(36).slice(2);function Sl(r){if(!r[Wu]){r[Wu]=!0,i.forEach(function(u){u!=="selectionchange"&&(d3.has(u)||Vf(u,!1,r),Vf(u,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Wu]||(a[Wu]=!0,Vf("selectionchange",!1,a))}}function Hm(r,a,u,p){switch(dn(a)){case 1:var y=It;break;case 4:y=se;break;default:y=We}u=y.bind(null,a,u,r),y=void 0,!xr||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(y=!0),p?y!==void 0?r.addEventListener(a,u,{capture:!0,passive:y}):r.addEventListener(a,u,!0):y!==void 0?r.addEventListener(a,u,{passive:y}):r.addEventListener(a,u,!1)}function Wf(r,a,u,p,y){var S=p;if((a&1)===0&&(a&2)===0&&p!==null)e:for(;;){if(p===null)return;var F=p.tag;if(F===3||F===4){var Z=p.stateNode.containerInfo;if(Z===y||Z.nodeType===8&&Z.parentNode===y)break;if(F===4)for(F=p.return;F!==null;){var ie=F.tag;if((ie===3||ie===4)&&(ie=F.stateNode.containerInfo,ie===y||ie.nodeType===8&&ie.parentNode===y))return;F=F.return}for(;Z!==null;){if(F=Io(Z),F===null)return;if(ie=F.tag,ie===5||ie===6){p=S=F;continue e}Z=Z.parentNode}}p=p.return}fa(function(){var Se=S,Ge=tt(u),qe=[];e:{var He=Om.get(r);if(He!==void 0){var mt=at,At=r;switch(r){case"keypress":if(Vr(u)===0)break e;case"keydown":case"keyup":mt=G7;break;case"focusin":At="focus",mt=hs;break;case"focusout":At="blur",mt=hs;break;case"beforeblur":case"afterblur":mt=hs;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":mt=Kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":mt=Jr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":mt=V7;break;case Mm:case Im:case Rm:mt=Lo;break;case jm:mt=q7;break;case"scroll":mt=bn;break;case"wheel":mt=Q7;break;case"copy":case"cut":case"paste":mt=ha;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":mt=pm}var Rt=(a&4)!==0,dr=!Rt&&r==="scroll",ye=Rt?He!==null?He+"Capture":null:He;Rt=[];for(var ue=Se,we;ue!==null;){we=ue;var Ze=we.stateNode;if(we.tag===5&&Ze!==null&&(we=Ze,ye!==null&&(Ze=si(ue,ye),Ze!=null&&Rt.push(Al(ue,Ze,we)))),dr)break;ue=ue.return}0<Rt.length&&(He=new mt(He,At,null,u,Ge),qe.push({event:He,listeners:Rt}))}}if((a&7)===0){e:{if(He=r==="mouseover"||r==="pointerover",mt=r==="mouseout"||r==="pointerout",He&&u!==$e&&(At=u.relatedTarget||u.fromElement)&&(Io(At)||At[ga]))break e;if((mt||He)&&(He=Ge.window===Ge?Ge:(He=Ge.ownerDocument)?He.defaultView||He.parentWindow:window,mt?(At=u.relatedTarget||u.toElement,mt=Se,At=At?Io(At):null,At!==null&&(dr=vt(At),At!==dr||At.tag!==5&&At.tag!==6)&&(At=null)):(mt=null,At=Se),mt!==At)){if(Rt=Kr,Ze="onMouseLeave",ye="onMouseEnter",ue="mouse",(r==="pointerout"||r==="pointerover")&&(Rt=pm,Ze="onPointerLeave",ye="onPointerEnter",ue="pointer"),dr=mt==null?He:bs(mt),we=At==null?He:bs(At),He=new Rt(Ze,ue+"leave",mt,u,Ge),He.target=dr,He.relatedTarget=we,Ze=null,Io(Ge)===Se&&(Rt=new Rt(ye,ue+"enter",At,u,Ge),Rt.target=we,Rt.relatedTarget=dr,Ze=Rt),dr=Ze,mt&&At)t:{for(Rt=mt,ye=At,ue=0,we=Rt;we;we=ys(we))ue++;for(we=0,Ze=ye;Ze;Ze=ys(Ze))we++;for(;0<ue-we;)Rt=ys(Rt),ue--;for(;0<we-ue;)ye=ys(ye),we--;for(;ue--;){if(Rt===ye||ye!==null&&Rt===ye.alternate)break t;Rt=ys(Rt),ye=ys(ye)}Rt=null}else Rt=null;mt!==null&&Bm(qe,He,mt,Rt,!1),At!==null&&dr!==null&&Bm(qe,dr,At,Rt,!0)}}
vendor: 87,265 bytes, lines 5-8
5e:{if(He=Se?bs(Se):window,mt=He.nodeName&&He.nodeName.toLowerCase(),mt==="select"||mt==="input"&&He.type==="file")var Nt=t3;else if(wm(He))if(_m)Nt=a3;else{Nt=r3;var Vt=n3}else(mt=He.nodeName)&&mt.toLowerCase()==="input"&&(He.type==="checkbox"||He.type==="radio")&&(Nt=i3);if(Nt&&(Nt=Nt(r,Se))){bm(qe,Nt,u,Ge);break e}Vt&&Vt(r,He,Se),r==="focusout"&&(Vt=He._wrapperState)&&Vt.controlled&&He.type==="number"&&en(He,"number",He.value)}switch(Vt=Se?bs(Se):window,r){case"focusin":(wm(Vt)||Vt.contentEditable==="true")&&(gs=Vt,Hf=Se,Cl=null);break;case"focusout":Cl=Hf=gs=null;break;case"mousedown":Bf=!0;break;case"contextmenu":case"mouseup":case"dragend":Bf=!1,Pm(qe,u,Ge);break;case"selectionchange":if(l3)break;case"keydown":case"keyup":Pm(qe,u,Ge)}var Wt;if(Of)e:{switch(r){case"compositionstart":var Zt="onCompositionStart";break e;case"compositionend":Zt="onCompositionEnd";break e;case"compositionupdate":Zt="onCompositionUpdate";break e}Zt=void 0}else ms?vm(r,u)&&(Zt="onCompositionEnd"):r==="keydown"&&u.keyCode===229&&(Zt="onCompositionStart");Zt&&(hm&&u.locale!=="ko"&&(ms||Zt!=="onCompositionStart"?Zt==="onCompositionEnd"&&ms&&(Wt=Nr()):(st=Ge,Sn="value"in st?st.value:st.textContent,ms=!0)),Vt=qu(Se,Zt),0<Vt.length&&(Zt=new vl(Zt,r,null,u,Ge),qe.push({event:Zt,listeners:Vt}),Wt?Zt.data=Wt:(Wt=ym(u),Wt!==null&&(Zt.data=Wt)))),(Wt=Z7?K7(r,u):J7(r,u))&&(Se=qu(Se,"onBeforeInput"),0<Se.length&&(Ge=new vl("onBeforeInput","beforeinput",null,u,Ge),qe.push({event:Ge,listeners:Se}),Ge.data=Wt))}Dm(qe,a)})}function Al(r,a,u){return{instance:r,listener:a,currentTarget:u}}function qu(r,a){for(var u=a+"Capture",p=[];r!==null;){var y=r,S=y.stateNode;y.tag===5&&S!==null&&(y=S,S=si(r,u),S!=null&&p.unshift(Al(r,S,y)),S=si(r,a),S!=null&&p.push(Al(r,S,y))),r=r.return}return p}function ys(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Bm(r,a,u,p,y){for(var S=a._reactName,F=[];u!==null&&u!==p;){var Z=u,ie=Z.alternate,Se=Z.stateNode;if(ie!==null&&ie===p)break;Z.tag===5&&Se!==null&&(Z=Se,y?(ie=si(u,S),ie!=null&&F.unshift(Al(u,ie,Z))):y||(ie=si(u,S),ie!=null&&F.push(Al(u,ie,Z)))),u=u.return}F.length!==0&&r.push({event:a,listeners:F})}var f3=/\r\n?/g,p3=/\u0000|\uFFFD/g;function Gm(r){return(typeof r=="string"?r:""+r).replace(f3,` 6`).replace(p3,"")}function $u(r,a,u){if(a=Gm(a),Gm(r)!==a&&u)throw Error(n(425))}function Qu(){}var qf=null,$f=null;function Qf(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Yf=typeof setTimeout=="function"?setTimeout:void 0,h3=typeof clearTimeout=="function"?clearTimeout:void 0,Um=typeof Promise=="function"?Promise:void 0,m3=typeof queueMicrotask=="function"?queueMicrotask:typeof Um<"u"?function(r){return Um.resolve(null).then(r).catch(g3)}:Yf;function g3(r){setTimeout(function(){throw r})}function Zf(r,a){var u=a,p=0;do{var y=u.nextSibling;if(r.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"){if(p===0){r.removeChild(y),xe(a);return}p--}else u!=="$"&&u!=="$?"&&u!=="$!"||p++;u=y}while(u);xe(a)}function Ua(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return r}function zm(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u==="$"||u==="$!"||u==="$?"){if(a===0)return r;a--}else u==="/$"&&a++}r=r.previousSibling}return null}var ws=Math.random().toString(36).slice(2),Yi="__reactFiber$"+ws,El="__reactProps$"+ws,ga="__reactContainer$"+ws,Kf="__reactEvents$"+ws,v3="__reactListeners$"+ws,y3="__reactHandles$"+ws;function Io(r){var a=r[Yi];if(a)return a;for(var u=r.parentNode;u;){if(a=u[ga]||u[Yi]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(r=zm(r);r!==null;){if(u=r[Yi])return u;r=zm(r)}return a}r=u,u=r.parentNode}return null}function kl(r){return r=r[Yi]||r[ga],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function bs(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Yu(r){return r[El]||null}var Jf=[],_s=-1;function za(r){return{current:r}}function Qn(r){0>_s||(r.current=Jf[_s],Jf[_s]=null,_s--)}function Vn(r,a){_s++,Jf[_s]=r.current,r.current=a}var Va={},Fr=za(Va),Xr=za(!1),Ro=Va;function Cs(r,a){var u=r.type.contextTypes;if(!u)return Va;var p=r.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var y={},S;for(S in u)y[S]=a[S];return p&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=a,r.__reactInternalMemoizedMaskedChildContext=y),y}function ei(r){return r=r.childContextTypes,r!=null}function Zu(){Qn(Xr),Qn(Fr)}function Vm(r,a,u){if(Fr.current!==Va)throw Error(n(168));Vn(Fr,a),Vn(Xr,u)}function Wm(r,a,u){var p=r.stateNode;if(a=a.childContextTypes,typeof p.getChildContext!="function")return u;p=p.getChildContext();for(var y in p)if(!(y in a))throw Error(n(108,Ve(r)||"Unknown",y));return H({},u,p)}function Ku(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Va,Ro=Fr.current,Vn(Fr,r),Vn(Xr,Xr.current),!0}function qm(r,a,u){var p=r.stateNode;if(!p)throw Error(n(169));u?(r=Wm(r,a,Ro),p.__reactInternalMemoizedMergedChildContext=r,Qn(Xr),Qn(Fr),Vn(Fr,r)):Qn(Xr),Vn(Xr,u)}var va=null,Ju=!1,Xf=!1;function $m(r){va===null?va=[r]:va.push(r)}function w3(r){Ju=!0,$m(r)}function Wa(){if(!Xf&&va!==null){Xf=!0;var r=0,a=jt;try{var u=va;for(jt=1;r<u.length;r++){var p=u[r];do p=p(!0);while(p!==null)}va=null,Ju=!1}catch(y){throw va!==null&&(va=va.slice(r+1)),Oe(Ut,Wa),y}finally{jt=a,Xf=!1}}return null}var xs=[],Ss=0,Xu=null,ec=0,_i=[],Ci=0,jo=null,ya=1,wa="";function Oo(r,a){xs[Ss++]=ec,xs[Ss++]=Xu,Xu=r,ec=a}function Qm(r,a,u){_i[Ci++]=ya,_i[Ci++]=wa,_i[Ci++]=jo,jo=r;var p=ya;r=wa;var y=32-cn(p)-1;p&=~(1<<y),u+=1;var S=32-cn(a)+y;if(30<S){var F=y-y%5;S=(p&(1<<F)-1).toString(32),p>>=F,y-=F,ya=1<<32-cn(a)+y|u<<y|p,wa=S+r}else ya=1<<S|u<<y|p,wa=r}function e1(r){r.return!==null&&(Oo(r,1),Qm(r,1,0))}function t1(r){for(;r===Xu;)Xu=xs[--Ss],xs[Ss]=null,ec=xs[--Ss],xs[Ss]=null;for(;r===jo;)jo=_i[--Ci],_i[Ci]=null,wa=_i[--Ci],_i[Ci]=null,ya=_i[--Ci],_i[Ci]=null}var li=null,ui=null,Jn=!1,Hi=null;function Ym(r,a){var u=Ei(5,null,null,0);u.elementType="DELETED",u.stateNode=a,u.return=r,a=r.deletions,a===null?(r.deletions=[u],r.flags|=16):a.push(u)}function Zm(r,a){switch(r.tag){case 5:var u=r.type;return a=a.nodeType!==1||u.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(r.stateNode=a,li=r,ui=Ua(a.firstChild),!0):!1;case 6:return a=r.pendingProps===""||a.nodeType!==3?null:a,a!==null?(r.stateNode=a,li=r,ui=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(u=jo!==null?{id:ya,overflow:wa}:null,r.memoizedState={dehydrated:a,treeContext:u,retryLane:1073741824},u=Ei(18,null,null,0),u.stateNode=a,u.return=r,r.child=u,li=r,ui=null,!0):!1;default:return!1}}function n1(r){return(r.mode&1)!==0&&(r.flags&128)===0}function r1(r){if(Jn){var a=ui;if(a){var u=a;if(!Zm(r,a)){if(n1(r))throw Error(n(418));a=Ua(u.nextSibling);var p=li;a&&Zm(r,a)?Ym(p,u):(r.flags=r.flags&-4097|2,Jn=!1,li=r)}}else{if(n1(r))throw Error(n(418));r.flags=r.flags&-4097|2,Jn=!1,li=r}}}function Km(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;li=r}function tc(r){if(r!==li)return!1;if(!Jn)return Km(r),Jn=!0,!1;var a;if((a=r.tag!==3)&&!(a=r.tag!==5)&&(a=r.type,a=a!=="head"&&a!=="body"&&!Qf(r.type,r.memoizedProps)),a&&(a=ui)){if(n1(r))throw Jm(),Error(n(418));for(;a;)Ym(r,a),a=Ua(a.nextSibling)}if(Km(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,a=0;r;){if(r.nodeType===8){var u=r.data;if(u==="/$"){if(a===0){ui=Ua(r.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++}r=r.nextSibling}ui=null}}else ui=li?Ua(r.stateNode.nextSibling):null;return!0}function Jm(){for(var r=ui;r;)r=Ua(r.nextSibling)}function As(){ui=li=null,Jn=!1}function i1(r){Hi===null?Hi=[r]:Hi.push(r)}var b3=A.ReactCurrentBatchConfig;function Bi(r,a){if(r&&r.defaultProps){a=H({},a),r=r.defaultProps;for(var u in r)a[u]===void 0&&(a[u]=r[u]);return a}return a}var nc=za(null),rc=null,Es=null,a1=null;function o1(){a1=Es=rc=null}function s1(r){var a=nc.current;Qn(nc),r._currentValue=a}function l1(r,a,u){for(;r!==null;){var p=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,p!==null&&(p.childLanes|=a)):p!==null&&(p.childLanes&a)!==a&&(p.childLanes|=a),r===u)break;r=r.return}}function ks(r,a){rc=r,a1=Es=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&a)!==0&&(ti=!0),r.firstContext=null)}function xi(r){var a=r._currentValue;if(a1!==r)if(r={context:r,memoizedValue:a,next:null},Es===null){if(rc===null)throw Error(n(308));Es=r,rc.dependencies={lanes:0,firstContext:r}}else Es=Es.next=r;return a}var No=null;function u1(r){No===null?No=[r]:No.push(r)}function Xm(r,a,u,p){var y=a.interleaved;return y===null?(u.next=u,u1(a)):(u.next=y.next,y.next=u),a.interleaved=u,ba(r,p)}function ba(r,a){r.lanes|=a;var u=r.alternate;for(u!==null&&(u.lanes|=a),u=r,r=r.return;r!==null;)r.childLanes|=a,u=r.alternate,u!==null&&(u.childLanes|=a),u=r,r=r.return;return u.tag===3?u.stateNode:null}var qa=!1;function c1(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eg(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function _a(r,a){return{eventTime:r,lane:a,tag:0,payload:null,callback:null,next:null}}function $a(r,a,u){var p=r.updateQueue;if(p===null)return null;if(p=p.shared,(En&2)!==0){var y=p.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),p.pending=a,ba(r,u)}return y=p.interleaved,y===null?(a.next=a,u1(p)):(a.next=y.next,y.next=a),p.interleaved=a,ba(r,u)}function ic(r,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194240)!==0)){var p=a.lanes;p&=r.pendingLanes,u|=p,a.lanes=u,Bn(r,u)}}function tg(r,a){var u=r.updateQueue,p=r.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var y=null,S=null;if(u=u.firstBaseUpdate,u!==null){do{var F={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};S===null?y=S=F:S=S.next=F,u=u.next}while(u!==null);S===null?y=S=a:S=S.next=a}else y=S=a;u={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:S,shared:p.shared,effects:p.effects},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=a:r.next=a,u.lastBaseUpdate=a}function ac(r,a,u,p){var y=r.updateQueue;qa=!1;var S=y.firstBaseUpdate,F=y.lastBaseUpdate,Z=y.shared.pending;if(Z!==null){y.shared.pending=null;var ie=Z,Se=ie.next;ie.next=null,F===null?S=Se:F.next=Se,F=ie;var Ge=r.alternate;Ge!==null&&(Ge=Ge.updateQueue,Z=Ge.lastBaseUpdate,Z!==F&&(Z===null?Ge.firstBaseUpdate=Se:Z.next=Se,Ge.lastBaseUpdate=ie))}if(S!==null){var qe=y.baseState;F=0,Ge=Se=ie=null,Z=S;do{var He=Z.lane,mt=Z.eventTime;if((p&He)===He){Ge!==null&&(Ge=Ge.next={eventTime:mt,lane:0,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null});e:{var At=r,Rt=Z;switch(He=a,mt=u,Rt.tag){case 1:if(At=Rt.payload,typeof At=="function"){qe=At.call(mt,qe,He);break e}qe=At;break e;case 3:At.flags=At.flags&-65537|128;case 0:if(At=Rt.payload,He=typeof At=="function"?At.call(mt,qe,He):At,He==null)break e;qe=H({},qe,He);break e;case 2:qa=!0}}Z.callback!==null&&Z.lane!==0&&(r.flags|=64,He=y.effects,He===null?y.effects=[Z]:He.push(Z))}else mt={eventTime:mt,lane:He,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},Ge===null?(Se=Ge=mt,ie=qe):Ge=Ge.next=mt,F|=He;if(Z=Z.next,Z===null){if(Z=y.shared.pending,Z===null)break;He=Z,Z=He.next,He.next=null,y.lastBaseUpdate=He,y.shared.pending=null}}while(!0);if(Ge===null&&(ie=qe),y.baseState=ie,y.firstBaseUpdate=Se,y.lastBaseUpdate=Ge,a=y.shared.interleaved,a!==null){y=a;do F|=y.lane,y=y.next;while(y!==a)}else S===null&&(y.shared.lanes=0);Ho|=F,r.lanes=F,r.memoizedState=qe}}function ng(r,a,u){if(r=a.effects,a.effects=null,r!==null)for(a=0;a<r.length;a++){var p=r[a],y=p.callback;if(y!==null){if(p.callback=null,p=u,typeof y!="function")throw Error(n(191,y));y.call(p)}}}var rg=new e.Component().refs;function d1(r,a,u,p){a=r.memoizedState,u=u(p,a),u=u==null?a:H({},a,u),r.memoizedState=u,r.lanes===0&&(r.updateQueue.baseState=u)}var oc={isMounted:function(r){return(r=r._reactInternals)?vt(r)===r:!1},enqueueSetState:function(r,a,u){r=r._reactInternals;var p=qr(),y=Ka(r),S=_a(p,y);S.payload=a,u!=null&&(S.callback=u),a=$a(r,S,y),a!==null&&(zi(a,r,y,p),ic(a,r,y))},enqueueReplaceState:function(r,a,u){r=r._reactInternals;var p=qr(),y=Ka(r),S=_a(p,y);S.tag=1,S.payload=a,u!=null&&(S.callback=u),a=$a(r,S,y),a!==null&&(zi(a,r,y,p),ic(a,r,y))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var u=qr(),p=Ka(r),y=_a(u,p);y.tag=2,a!=null&&(y.callback=a),a=$a(r,y,p),a!==null&&(zi(a,r,p,u),ic(a,r,p))}};function ig(r,a,u,p,y,S,F){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(p,S,F):a.prototype&&a.prototype.isPureReactComponent?!_l(u,p)||!_l(y,S):!0}function ag(r,a,u){var p=!1,y=Va,S=a.contextType;return typeof S=="object"&&S!==null?S=xi(S):(y=ei(a)?Ro:Fr.current,p=a.contextTypes,S=(p=p!=null)?Cs(r,y):Va),a=new a(u,S),r.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=oc,r.stateNode=a,a._reactInternals=r,p&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=y,r.__reactInternalMemoizedMaskedChildContext=S),a}function og(r,a,u,p){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,p),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,p),a.state!==r&&oc.enqueueReplaceState(a,a.state,null)}function f1(r,a,u,p){var y=r.stateNode;y.props=u,y.state=r.memoizedState,y.refs=rg,c1(r);var S=a.contextType;typeof S=="object"&&S!==null?y.context=xi(S):(S=ei(a)?Ro:Fr.current,y.context=Cs(r,S)),y.state=r.memoizedState,S=a.getDerivedStateFromProps,typeof S=="function"&&(d1(r,a,S,u),y.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(a=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),a!==y.state&&oc.enqueueReplaceState(y,y.state,null),ac(r,u,y,p),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308)}function Tl(r,a,u){if(r=u.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(n(309));var p=u.stateNode}if(!p)throw Error(n(147,r));var y=p,S=""+r;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===S?a.ref:(a=function(F){var Z=y.refs;Z===rg&&(Z=y.refs={}),F===null?delete Z[S]:Z[S]=F},a._stringRef=S,a)}if(typeof r!="string")throw Error(n(284));if(!u._owner)throw Error(n(290,r))}return r}function sc(r,a){throw r=Object.prototype.toString.call(a),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r))}function sg(r){var a=r._init;return a(r._payload)}function lg(r){function a(ye,ue){if(r){var we=ye.deletions;we===null?(ye.deletions=[ue],ye.flags|=16):we.push(ue)}}function u(ye,ue){if(!r)return null;for(;ue!==null;)a(ye,ue),ue=ue.sibling;return null}function p(ye,ue){for(ye=new Map;ue!==null;)ue.key!==null?ye.set(ue.key,ue):ye.set(ue.index,ue),ue=ue.sibling;return ye}function y(ye,ue){return ye=Xa(ye,ue),ye.index=0,ye.sibling=null,ye}function S(ye,ue,we){return ye.index=we,r?(we=ye.alternate,we!==null?(we=we.index,we<ue?(ye.flags|=2,ue):we):(ye.flags|=2,ue)):(ye.flags|=1048576,ue)}function F(ye){return r&&ye.alternate===null&&(ye.flags|=2),ye}function Z(ye,ue,we,Ze){return ue===null||ue.tag!==6?(ue=Y1(we,ye.mode,Ze),ue.return=ye,ue):(ue=y(ue,we),ue.return=ye,ue)}function ie(ye,ue,we,Ze){var Nt=we.type;return Nt===D?Ge(ye,ue,we.props.children,Ze,we.key):ue!==null&&(ue.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===me&&sg(Nt)===ue.type)?(Ze=y(ue,we.props),Ze.ref=Tl(ye,ue,we),Ze.return=ye,Ze):(Ze=Ec(we.type,we.key,we.props,null,ye.mode,Ze),Ze.ref=Tl(ye,ue,we),Ze.return=ye,Ze)}function Se(ye,ue,we,Ze){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==we.containerInfo||ue.stateNode.implementation!==we.implementation?(ue=Z1(we,ye.mode,Ze),ue.return=ye,ue):(ue=y(ue,we.children||[]),ue.return=ye,ue)}function Ge(ye,ue,we,Ze,Nt){return ue===null||ue.tag!==7?(ue=zo(we,ye.mode,Ze,Nt),ue.return=ye,ue):(ue=y(ue,we),ue.return=ye,ue)}function qe(ye,ue,we){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ue=Y1(""+ue,ye.mode,we),ue.return=ye,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case L:return we=Ec(ue.type,ue.key,ue.props,null,ye.mode,we),we.ref=Tl(ye,null,ue),we.return=ye,we;case j:return ue=Z1(ue,ye.mode,we),ue.return=ye,ue;case me:var Ze=ue._init;return qe(ye,Ze(ue._payload),we)}if(Pn(ue)||re(ue))return ue=zo(ue,ye.mode,we,null),ue.return=ye,ue;sc(ye,ue)}return null}function He(ye,ue,we,Ze){var Nt=ue!==null?ue.key:null;if(typeof we=="string"&&we!==""||typeof we=="number")return Nt!==null?null:Z(ye,ue,""+we,Ze);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case L:return we.key===Nt?ie(ye,ue,we,Ze):null;case j:return we.key===Nt?Se(ye,ue,we,Ze):null;case me:return Nt=we._init,He(ye,ue,Nt(we._payload),Ze)}if(Pn(we)||re(we))return Nt!==null?null:Ge(ye,ue,we,Ze,null);sc(ye,we)}return null}function mt(ye,ue,we,Ze,Nt){if(typeof Ze=="string"&&Ze!==""||typeof Ze=="number")return ye=ye.get(we)||null,Z(ue,ye,""+Ze,Nt);if(typeof Ze=="object"&&Ze!==null){switch(Ze.$$typeof){case L:return ye=ye.get(Ze.key===null?we:Ze.key)||null,ie(ue,ye,Ze,Nt);case j:return ye=ye.get(Ze.key===null?we:Ze.key)||null,Se(ue,ye,Ze,Nt);case me:var Vt=Ze._init;return mt(ye,ue,we,Vt(Ze._payload),Nt)}if(Pn(Ze)||re(Ze))return ye=ye.get(we)||null,Ge(ue,ye,Ze,Nt,null);sc(ue,Ze)}return null}function At(ye,ue,we,Ze){for(var Nt=null,Vt=null,Wt=ue,Zt=ue=0,Er=null;Wt!==null&&Zt<we.length;Zt++){Wt.index>Zt?(Er=Wt,Wt=null):Er=Wt.sibling;var Ln=He(ye,Wt,we[Zt],Ze);if(Ln===null){Wt===null&&(Wt=Er);break}r&&Wt&&Ln.alternate===null&&a(ye,Wt),ue=S(Ln,ue,Zt),Vt===null?Nt=Ln:Vt.sibling=Ln,Vt=Ln,Wt=Er}if(Zt===we.length)return u(ye,Wt),Jn&&Oo(ye,Zt),Nt;if(Wt===null){for(;Zt<we.length;Zt++)Wt=qe(ye,we[Zt],Ze),Wt!==null&&(ue=S(Wt,ue,Zt),Vt===null?Nt=Wt:Vt.sibling=Wt,Vt=Wt);return Jn&&Oo(ye,Zt),Nt}for(Wt=p(ye,Wt);Zt<we.length;Zt++)Er=mt(Wt,ye,Zt,we[Zt],Ze),Er!==null&&(r&&Er.alternate!==null&&Wt.delete(Er.key===null?Zt:Er.key),ue=S(Er,ue,Zt),Vt===null?Nt=Er:Vt.sibling=Er,Vt=Er);return r&&Wt.forEach(function(eo){return a(ye,eo)}),Jn&&Oo(ye,Zt),Nt}function Rt(ye,ue,we,Ze){var Nt=re(we);if(typeof Nt!="function")throw Error(n(150));if(we=Nt.call(we),we==null)throw Error(n(151));for(var Vt=Nt=null,Wt=ue,Zt=ue=0,Er=null,Ln=we.next();Wt!==null&&!Ln.done;Zt++,Ln=we.next()){Wt.index>Zt?(Er=Wt,Wt=null):Er=Wt.sibling;var eo=He(ye,Wt,Ln.value,Ze);if(eo===null){Wt===null&&(Wt=Er);break}r&&Wt&&eo.alternate===null&&a(ye,Wt),ue=S(eo,ue,Zt),Vt===null?Nt=eo:Vt.sibling=eo,Vt=eo,Wt=Er}if(Ln.done)return u(ye,Wt),Jn&&Oo(ye,Zt),Nt;if(Wt===null){for(;!Ln.done;Zt++,Ln=we.next())Ln=qe(ye,Ln.value,Ze),Ln!==null&&(ue=S(Ln,ue,Zt),Vt===null?Nt=Ln:Vt.sibling=Ln,Vt=Ln);return Jn&&Oo(ye,Zt),Nt}for(Wt=p(ye,Wt);!Ln.done;Zt++,Ln=we.next())Ln=mt(Wt,ye,Zt,Ln.value,Ze),Ln!==null&&(r&&Ln.alternate!==null&&Wt.delete(Ln.key===null?Zt:Ln.key),ue=S(Ln,ue,Zt),Vt===null?Nt=Ln:Vt.sibling=Ln,Vt=Ln);return r&&Wt.forEach(function(X3){return a(ye,X3)}),Jn&&Oo(ye,Zt),Nt}function dr(ye,ue,we,Ze){if(typeof we=="object"&&we!==null&&we.type===D&&we.key===null&&(we=we.props.children),typeof we=="object"&&we!==null){switch(we.$$typeof){case L:e:{for(var Nt=we.key,Vt=ue;Vt!==null;){if(Vt.key===Nt){if(Nt=we.type,Nt===D){if(Vt.tag===7){u(ye,Vt.sibling),ue=y(Vt,we.props.children),ue.return=ye,ye=ue;break e}}else if(Vt.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===me&&sg(Nt)===Vt.type){u(ye,Vt.sibling),ue=y(Vt,we.props),ue.ref=Tl(ye,Vt,we),ue.return=ye,ye=ue;break e}u(ye,Vt);break}else a(ye,Vt);Vt=Vt.sibling}we.type===D?(ue=zo(we.props.children,ye.mode,Ze,we.key),ue.return=ye,ye=ue):(Ze=Ec(we.type,we.key,we.props,null,ye.mode,Ze),Ze.ref=Tl(ye,ue,we),Ze.return=ye,ye=Ze)}return F(ye);case j:e:{for(Vt=we.key;ue!==null;){if(ue.key===Vt)if(ue.tag===4&&ue.stateNode.containerInfo===we.containerInfo&&ue.stateNode.implementation===we.implementation){u(ye,ue.sibling),ue=y(ue,we.children||[]),ue.return=ye,ye=ue;break e}else{u(ye,ue);break}else a(ye,ue);ue=ue.sibling}ue=Z1(we,ye.mode,Ze),ue.return=ye,ye=ue}return F(ye);case me:return Vt=we._init,dr(ye,ue,Vt(we._payload),Ze)}if(Pn(we))return At(ye,ue,we,Ze);if(re(we))return Rt(ye,ue,we,Ze);sc(ye,we)}return typeof we=="string"&&we!==""||typeof we=="number"?(we=""+we,ue!==null&&ue.tag===6?(u(ye,ue.sibling),ue=y(ue,we),ue.return=ye,ye=ue):(u(ye,ue),ue=Y1(we,ye.mode,Ze),ue.return=ye,ye=ue),F(ye)):u(ye,ue)}return dr}var Ts=lg(!0),ug=lg(!1),Pl={},Zi=za(Pl),Ll=za(Pl),Ml=za(Pl);function Fo(r){if(r===Pl)throw Error(n(174));return r}function p1(r,a){switch(Vn(Ml,a),Vn(Ll,r),Vn(Zi,Pl),r=a.nodeType,r){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:B(null,"");break;default:r=r===8?a.parentNode:a,a=r.namespaceURI||null,r=r.tagName,a=B(a,r)}Qn(Zi),Vn(Zi,a)}function Ps(){Qn(Zi),Qn(Ll),Qn(Ml)}function cg(r){Fo(Ml.current);var a=Fo(Zi.current),u=B(a,r.type);a!==u&&(Vn(Ll,r),Vn(Zi,u))}function h1(r){Ll.current===r&&(Qn(Zi),Qn(Ll))}var nr=za(0);function lc(r){for(var a=r;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var m1=[];function g1(){for(var r=0;r<m1.length;r++)m1[r]._workInProgressVersionPrimary=null;m1.length=0}var uc=A.ReactCurrentDispatcher,v1=A.ReactCurrentBatchConfig,Do=0,rr=null,wr=null,Sr=null,cc=!1,Il=!1,Rl=0,_3=0;function Dr(){throw Error(n(321))}function y1(r,a){if(a===null)return!1;for(var u=0;u<a.length&&u<r.length;u++)if(!Di(r[u],a[u]))return!1;return!0}function w1(r,a,u,p,y,S){if(Do=S,rr=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,uc.current=r===null||r.memoizedState===null?A3:E3,r=u(p,y),Il){S=0;do{if(Il=!1,Rl=0,25<=S)throw Error(n(301));S+=1,Sr=wr=null,a.updateQueue=null,uc.current=k3,r=u(p,y)}while(Il)}if(uc.current=pc,a=wr!==null&&wr.next!==null,Do=0,Sr=wr=rr=null,cc=!1,a)throw Error(n(300));return r}function b1(){var r=Rl!==0;return Rl=0,r}function Ki(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sr===null?rr.memoizedState=Sr=r:Sr=Sr.next=r,Sr}function Si(){if(wr===null){var r=rr.alternate;r=r!==null?r.memoizedState:null}else r=wr.next;var a=Sr===null?rr.memoizedState:Sr.next;if(a!==null)Sr=a,wr=r;else{if(r===null)throw Error(n(310));wr=r,r={memoizedState:wr.memoizedState,baseState:wr.baseState,baseQueue:wr.baseQueue,queue:wr.queue,next:null},Sr===null?rr.memoizedState=Sr=r:Sr=Sr.next=r}return Sr}function jl(r,a){return typeof a=="function"?a(r):a}function _1(r){var a=Si(),u=a.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=r;var p=wr,y=p.baseQueue,S=u.pending;if(S!==null){if(y!==null){var F=y.next;y.next=S.next,S.next=F}p.baseQueue=y=S,u.pending=null}if(y!==null){S=y.next,p=p.baseState;var Z=F=null,ie=null,Se=S;do{var Ge=Se.lane;if((Do&Ge)===Ge)ie!==null&&(ie=ie.next={lane:0,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null}),p=Se.hasEagerState?Se.eagerState:r(p,Se.action);else{var qe={lane:Ge,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ie===null?(Z=ie=qe,F=p):ie=ie.next=qe,rr.lanes|=Ge,Ho|=Ge}Se=Se.next}while(Se!==null&&Se!==S);ie===null?F=p:ie.next=Z,Di(p,a.memoizedState)||(ti=!0),a.memoizedState=p,a.baseState=F,a.baseQueue=ie,u.lastRenderedState=p}if(r=u.interleaved,r!==null){y=r;do S=y.lane,rr.lanes|=S,Ho|=S,y=y.next;while(y!==r)}else y===null&&(u.lanes=0);return[a.memoizedState,u.dispatch]}function C1(r){var a=Si(),u=a.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=r;var p=u.dispatch,y=u.pending,S=a.memoizedState;if(y!==null){u.pending=null;var F=y=y.next;do S=r(S,F.action),F=F.next;while(F!==y);Di(S,a.memoizedState)||(ti=!0),a.memoizedState=S,a.baseQueue===null&&(a.baseState=S),u.lastRenderedState=S}return[S,p]}function dg(){}function fg(r,a){var u=rr,p=Si(),y=a(),S=!Di(p.memoizedState,y);if(S&&(p.memoizedState=y,ti=!0),p=p.queue,x1(mg.bind(null,u,p,r),[r]),p.getSnapshot!==a||S||Sr!==null&&Sr.memoizedState.tag&1){if(u.flags|=2048,Ol(9,hg.bind(null,u,p,y,a),void 0,null),Ar===null)throw Error(n(349));(Do&30)!==0||pg(u,a,y)}return y}function pg(r,a,u){r.flags|=16384,r={getSnapshot:a,value:u},a=rr.updateQueue,a===null?(a={lastEffect:null,stores:null},rr.updateQueue=a,a.stores=[r]):(u=a.stores,u===null?a.stores=[r]:u.push(r))}function hg(r,a,u,p){a.value=u,a.getSnapshot=p,gg(a)&&vg(r)}function mg(r,a,u){return u(function(){gg(a)&&vg(r)})}function gg(r){var a=r.getSnapshot;r=r.value;try{var u=a();return!Di(r,u)}catch{return!0}}function vg(r){var a=ba(r,1);a!==null&&zi(a,r,1,-1)}function yg(r){var a=Ki();return typeof r=="function"&&(r=r()),a.memoizedState=a.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:r},a.queue=r,r=r.dispatch=S3.bind(null,rr,r),[a.memoizedState,r]}function Ol(r,a,u,p){return r={tag:r,create:a,destroy:u,deps:p,next:null},a=rr.updateQueue,a===null?(a={lastEffect:null,stores:null},rr.updateQueue=a,a.lastEffect=r.next=r):(u=a.lastEffect,u===null?a.lastEffect=r.next=r:(p=u.next,u.next=r,r.next=p,a.lastEffect=r)),r}function wg(){return Si().memoizedState}function dc(r,a,u,p){var y=Ki();rr.flags|=r,y.memoizedState=Ol(1|a,u,void 0,p===void 0?null:p)}function fc(r,a,u,p){var y=Si();p=p===void 0?null:p;var S=void 0;if(wr!==null){var F=wr.memoizedState;if(S=F.destroy,p!==null&&y1(p,F.deps)){y.memoizedState=Ol(a,u,S,p);return}}rr.flags|=r,y.memoizedState=Ol(1|a,u,S,p)}function bg(r,a){return dc(8390656,8,r,a)}function x1(r,a){return fc(2048,8,r,a)}function _g(r,a){return fc(4,2,r,a)}function Cg(r,a){return fc(4,4,r,a)}function xg(r,a){if(typeof a=="function")return r=r(),a(r),function(){a(null)};if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Sg(r,a,u){return u=u!=null?u.concat([r]):null,fc(4,4,xg.bind(null,a,r),u)}function S1(){}function Ag(r,a){var u=Si();a=a===void 0?null:a;var p=u.memoizedState;return p!==null&&a!==null&&y1(a,p[1])?p[0]:(u.memoizedState=[r,a],r)}function Eg(r,a){var u=Si();a=a===void 0?null:a;var p=u.memoizedState;return p!==null&&a!==null&&y1(a,p[1])?p[0]:(r=r(),u.memoizedState=[r,a],r)}function kg(r,a,u){return(Do&21)===0?(r.baseState&&(r.baseState=!1,ti=!0),r.memoizedState=u):(Di(u,a)||(u=Rn(),rr.lanes|=u,Ho|=u,r.baseState=!0),a)}function C3(r,a){var u=jt;jt=u!==0&&4>u?u:4,r(!0);var p=v1.transition;v1.transition={};try{r(!1),a()}finally{jt=u,v1.transition=p}}function Tg(){return Si().memoizedState}function x3(r,a,u){var p=Ka(r);if(u={lane:p,action:u,hasEagerState:!1,eagerState:null,next:null},Pg(r))Lg(a,u);else if(u=Xm(r,a,u,p),u!==null){var y=qr();zi(u,r,p,y),Mg(u,a,p)}}function S3(r,a,u){var p=Ka(r),y={lane:p,action:u,hasEagerState:!1,eagerState:null,next:null};if(Pg(r))Lg(a,y);else{var S=r.alternate;if(r.lanes===0&&(S===null||S.lanes===0)&&(S=a.lastRenderedReducer,S!==null))try{var F=a.lastRenderedState,Z=S(F,u);if(y.hasEagerState=!0,y.eagerState=Z,Di(Z,F)){var ie=a.interleaved;ie===null?(y.next=y,u1(a)):(y.next=ie.next,ie.next=y),a.interleaved=y;return}}catch{}u=Xm(r,a,y,p),u!==null&&(y=qr(),zi(u,r,p,y),Mg(u,a,p))}}function Pg(r){var a=r.alternate;return r===rr||a!==null&&a===rr}function Lg(r,a){Il=cc=!0;var u=r.pending;u===null?a.next=a:(a.next=u.next,u.next=a),r.pending=a}function Mg(r,a,u){if((u&4194240)!==0){var p=a.lanes;p&=r.pendingLanes,u|=p,a.lanes=u,Bn(r,u)}}var pc={readContext:xi,useCallback:Dr,useContext:Dr,useEffect:Dr,useImperativeHandle:Dr,useInsertionEffect:Dr,useLayoutEffect:Dr,useMemo:Dr,useReducer:Dr,useRef:Dr,useState:Dr,useDebugValue:Dr,useDeferredValue:Dr,useTransition:Dr,useMutableSource:Dr,useSyncExternalStore:Dr,useId:Dr,unstable_isNewReconciler:!1},A3={readContext:xi,useCallback:function(r,a){return Ki().memoizedState=[r,a===void 0?null:a],r},useContext:xi,useEffect:bg,useImperativeHandle:function(r,a,u){return u=u!=null?u.concat([r]):null,dc(4194308,4,xg.bind(null,a,r),u)},useLayoutEffect:function(r,a){return dc(4194308,4,r,a)},useInsertionEffect:function(r,a){return dc(4,2,r,a)},useMemo:function(r,a){var u=Ki();return a=a===void 0?null:a,r=r(),u.memoizedState=[r,a],r},useReducer:function(r,a,u){var p=Ki();return a=u!==void 0?u(a):a,p.memoizedState=p.baseState=a,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:a},p.queue=r,r=r.dispatch=x3.bind(null,rr,r),[p.memoizedState,r]},useRef:function(r){var a=Ki();return r={current:r},a.memoizedState=r},useState:yg,useDebugValue:S1,useDeferredValue:function(r){return Ki().memoizedState=r},useTransition:function(){var r=yg(!1),a=r[0];return r=C3.bind(null,r[1]),Ki().memoizedState=r,[a,r]},useMutableSource:function(){},useSyncExternalStore:function(r,a,u){var p=rr,y=Ki();if(Jn){if(u===void 0)throw Error(n(407));u=u()}else{if(u=a(),Ar===null)throw Error(n(349));(Do&30)!==0||pg(p,a,u)}y.memoizedState=u;var S={value:u,getSnapshot:a};return y.queue=S,bg(mg.bind(null,p,S,r),[r]),p.flags|=2048,Ol(9,hg.bind(null,p,S,u,a),void 0,null),u},useId:function(){var r=Ki(),a=Ar.identifierPrefix;if(Jn){var u=wa,p=ya;u=(p&~(1<<32-cn(p)-1)).toString(32)+u,a=":"+a+"R"+u,u=Rl++,0<u&&(a+="H"+u.toString(32)),a+=":"}else u=_3++,a=":"+a+"r"+u.toString(32)+":";return r.memoizedState=a},unstable_isNewReconciler:!1},E3={readContext:xi,useCallback:Ag,useContext:xi,useEffect:x1,useImperativeHandle:Sg,useInsertionEffect:_g,useLayoutEffect:Cg,useMemo:Eg,useReducer:_1,useRef:wg,useState:function(){return _1(jl)},useDebugValue:S1,useDeferredValue:function(r){var a=Si();return kg(a,wr.memoizedState,r)},useTransition:function(){var r=_1(jl)[0],a=Si().memoizedState;return[r,a]},useMutableSource:dg,useSyncExternalStore:fg,useId:Tg,unstable_isNewReconciler:!1},k3={readContext:xi,useCallback:Ag,useContext:xi,useEffect:x1,useImperativeHandle:Sg,useInsertionEffect:_g,useLayoutEffect:Cg,useMemo:Eg,useReducer:C1,useRef:wg,useState:function(){return C1(jl)},useDebugValue:S1,useDeferredValue:function(r){var a=Si();return wr===null?a.memoizedState=r:kg(a,wr.memoizedState,r)},useTransition:function(){var r=C1(jl)[0],a=Si().memoizedState;return[r,a]},useMutableSource:dg,useSyncExternalStore:fg,useId:Tg,unstable_isNewReconciler:!1};function Ls(r,a){try{var u="",p=a;do u+=be(p),p=p.return;while(p);var y=u}catch(S){y=` 7Error generating stack: `+S.message+` 8`+S.stack}return{value:r,source:a,stack:y,digest:null}}function A1(r,a,u){return{value:r,source:null,stack:u??null,digest:a??null}}function E1(r,a){try{console.error(a.value)}catch(u){setTimeout(function(){throw u})}}var T3=typeof WeakMap=="function"?WeakMap:Map;function Ig(r,a,u){u=_a(-1,u),u.tag=3,u.payload={element:null};var p=a.value;return u.callback=function(){bc||(bc=!0,G1=p),E1(r,a)},u}function Rg(r,a,u){u=_a(-1,u),u.tag=3;var p=r.type.getDerivedStateFromError;if(typeof p=="function"){var y=a.value;u.payload=function(){return p(y)},u.callback=function(){E1(r,a)}}var S=r.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(u.callback=function(){E1(r,a),typeof p!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var F=a.stack;this.componentDidCatch(a.value,{componentStack:F!==null?F:""})}),u}function jg(r,a,u){var p=r.pingCache;if(p===null){p=r.pingCache=new T3;var y=new Set;p.set(a,y)}else y=p.get(a),y===void 0&&(y=new Set,p.set(a,y));y.has(u)||(y.add(u),r=U3.bind(null,r,a,u),a.then(r,r))}function Og(r){do{var a;if((a=r.tag===13)&&(a=r.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return r;r=r.return}while(r!==null);return null}function Ng(r,a,u,p,y){return(r.mode&1)===0?(r===a?r.flags|=65536:(r.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(a=_a(-1,1),a.tag=2,$a(u,a,1))),u.lanes|=1),r):(r.flags|=65536,r.lanes=y,r)}var P3=A.ReactCurrentOwner,ti=!1;function Wr(r,a,u,p){a.child=r===null?ug(a,null,u,p):Ts(a,r.child,u,p)}function Fg(r,a,u,p,y){u=u.render;var S=a.ref;return ks(a,y),p=w1(r,a,u,p,S,y),u=b1(),r!==null&&!ti?(a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~y,Ca(r,a,y)):(Jn&&u&&e1(a),a.flags|=1,Wr(r,a,p,y),a.child)}function Dg(r,a,u,p,y){if(r===null){var S=u.type;return typeof S=="function"&&!Q1(S)&&S.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(a.tag=15,a.type=S,Hg(r,a,S,p,y)):(r=Ec(u.type,null,p,a,a.mode,y),r.ref=a.ref,r.return=a,a.child=r)}if(S=r.child,(r.lanes&y)===0){var F=S.memoizedProps;if(u=u.compare,u=u!==null?u:_l,u(F,p)&&r.ref===a.ref)return Ca(r,a,y)}return a.flags|=1,r=Xa(S,p),r.ref=a.ref,r.return=a,a.child=r}function Hg(r,a,u,p,y){if(r!==null){var S=r.memoizedProps;if(_l(S,p)&&r.ref===a.ref)if(ti=!1,a.pendingProps=p=S,(r.lanes&y)!==0)(r.flags&131072)!==0&&(ti=!0);else return a.lanes=r.lanes,Ca(r,a,y)}return k1(r,a,u,p,y)}function Bg(r,a,u){var p=a.pendingProps,y=p.children,S=r!==null?r.memoizedState:null;if(p.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},Vn(Is,ci),ci|=u;else{if((u&1073741824)===0)return r=S!==null?S.baseLanes|u:u,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:r,cachePool:null,transitions:null},a.updateQueue=null,Vn(Is,ci),ci|=r,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},p=S!==null?S.baseLanes:u,Vn(Is,ci),ci|=p}else S!==null?(p=S.baseLanes|u,a.memoizedState=null):p=u,Vn(Is,ci),ci|=p;return Wr(r,a,y,u),a.child}function Gg(r,a){var u=a.ref;(r===null&&u!==null||r!==null&&r.ref!==u)&&(a.flags|=512,a.flags|=2097152)}function k1(r,a,u,p,y){var S=ei(u)?Ro:Fr.current;return S=Cs(a,S),ks(a,y),u=w1(r,a,u,p,S,y),p=b1(),r!==null&&!ti?(a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~y,Ca(r,a,y)):(Jn&&p&&e1(a),a.flags|=1,Wr(r,a,u,y),a.child)}function Ug(r,a,u,p,y){if(ei(u)){var S=!0;Ku(a)}else S=!1;if(ks(a,y),a.stateNode===null)mc(r,a),ag(a,u,p),f1(a,u,p,y),p=!0;else if(r===null){var F=a.stateNode,Z=a.memoizedProps;F.props=Z;var ie=F.context,Se=u.contextType;typeof Se=="object"&&Se!==null?Se=xi(Se):(Se=ei(u)?Ro:Fr.current,Se=Cs(a,Se));var Ge=u.getDerivedStateFromProps,qe=typeof Ge=="function"||typeof F.getSnapshotBeforeUpdate=="function";qe||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(Z!==p||ie!==Se)&&og(a,F,p,Se),qa=!1;var He=a.memoizedState;F.state=He,ac(a,p,F,y),ie=a.memoizedState,Z!==p||He!==ie||Xr.current||qa?(typeof Ge=="function"&&(d1(a,u,Ge,p),ie=a.memoizedState),(Z=qa||ig(a,u,Z,p,He,ie,Se))?(qe||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount=="function"&&(a.flags|=4194308)):(typeof F.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=p,a.memoizedState=ie),F.props=p,F.state=ie,F.context=Se,p=Z):(typeof F.componentDidMount=="function"&&(a.flags|=4194308),p=!1)}else{F=a.stateNode,eg(r,a),Z=a.memoizedProps,Se=a.type===a.elementType?Z:Bi(a.type,Z),F.props=Se,qe=a.pendingProps,He=F.context,ie=u.contextType,typeof ie=="object"&&ie!==null?ie=xi(ie):(ie=ei(u)?Ro:Fr.current,ie=Cs(a,ie));var mt=u.getDerivedStateFromProps;(Ge=typeof mt=="function"||typeof F.getSnapshotBeforeUpdate=="function")||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(Z!==qe||He!==ie)&&og(a,F,p,ie),qa=!1,He=a.memoizedState,F.state=He,ac(a,p,F,y);var At=a.memoizedState;Z!==qe||He!==At||Xr.current||qa?(typeof mt=="function"&&(d1(a,u,mt,p),At=a.memoizedState),(Se=qa||ig(a,u,Se,p,He,At,ie)||!1)?(Ge||typeof F.UNSAFE_componentWillUpdate!="function"&&typeof F.componentWillUpdate!="function"||(typeof F.componentWillUpdate=="function"&&F.componentWillUpdate(p,At,ie),typeof F.UNSAFE_componentWillUpdate=="function"&&F.UNSAFE_componentWillUpdate(p,At,ie)),typeof F.componentDidUpdate=="function"&&(a.flags|=4),typeof F.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof F.componentDidUpdate!="function"||Z===r.memoizedProps&&He===r.memoizedState||(a.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||Z===r.memoizedProps&&He===r.memoizedState||(a.flags|=1024),a.memoizedProps=p,a.memoizedState=At),F.props=p,F.state=At,F.context=ie,p=Se):(typeof F.componentDidUpdate!="function"||Z===r.memoizedProps&&He===r.memoizedState||(a.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||Z===r.memoizedProps&&He===r.memoizedState||(a.flags|=1024),p=!1)}return T1(r,a,u,p,S,y)}function T1(r,a,u,p,y,S){Gg(r,a);var F=(a.flags&128)!==0;if(!p&&!F)return y&&qm(a,u,!1),Ca(r,a,S);p=a.stateNode,P3.current=a;var Z=F&&typeof u.getDerivedStateFromError!="function"?null:p.render();return a.flags|=1,r!==null&&F?(a.child=Ts(a,r.child,null,S),a.child=Ts(a,null,Z,S)):Wr(r,a,Z,S),a.memoizedState=p.state,y&&qm(a,u,!0),a.child}function zg(r){var a=r.stateNode;a.pendingContext?Vm(r,a.pendingContext,a.pendingContext!==a.context):a.context&&Vm(r,a.context,!1),p1(r,a.containerInfo)}function Vg(r,a,u,p,y){return As(),i1(y),a.flags|=256,Wr(r,a,u,p),a.child}var P1={dehydrated:null,treeContext:null,retryLane:0};function L1(r){return{baseLanes:r,cachePool:null,transitions:null}}function Wg(r,a,u){var p=a.pendingProps,y=nr.current,S=!1,F=(a.flags&128)!==0,Z;if((Z=F)||(Z=r!==null&&r.memoizedState===null?!1:(y&2)!==0),Z?(S=!0,a.flags&=-129):(r===null||r.memoizedState!==null)&&(y|=1),Vn(nr,y&1),r===null)return r1(a),r=a.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((a.mode&1)===0?a.lanes=1:r.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(F=p.children,r=p.fallback,S?(p=a.mode,S=a.child,F={mode:"hidden",children:F},(p&1)===0&&S!==null?(S.childLanes=0,S.pendingProps=F):S=kc(F,p,0,null),r=zo(r,p,u,null),S.return=a,r.return=a,S.sibling=r,a.child=S,a.child.memoizedState=L1(u),a.memoizedState=P1,r):M1(a,F));if(y=r.memoizedState,y!==null&&(Z=y.dehydrated,Z!==null))return L3(r,a,F,p,Z,y,u);if(S){S=p.fallback,F=a.mode,y=r.child,Z=y.sibling;var ie={mode:"hidden",children:p.children};return(F&1)===0&&a.child!==y?(p=a.child,p.childLanes=0,p.pendingProps=ie,a.deletions=null):(p=Xa(y,ie),p.subtreeFlags=y.subtreeFlags&14680064),Z!==null?S=Xa(Z,S):(S=zo(S,F,u,null),S.flags|=2),S.return=a,p.return=a,p.sibling=S,a.child=p,p=S,S=a.child,F=r.child.memoizedState,F=F===null?L1(u):{baseLanes:F.baseLanes|u,cachePool:null,transitions:F.transitions},S.memoizedState=F,S.childLanes=r.childLanes&~u,a.memoizedState=P1,p}return S=r.child,r=S.sibling,p=Xa(S,{mode:"visible",children:p.children}),(a.mode&1)===0&&(p.lanes=u),p.return=a,p.sibling=null,r!==null&&(u=a.deletions,u===null?(a.deletions=[r],a.flags|=16):u.push(r)),a.child=p,a.memoizedState=null,p}function M1(r,a){return a=kc({mode:"visible",children:a},r.mode,0,null),a.return=r,r.child=a}function hc(r,a,u,p){return p!==null&&i1(p),Ts(a,r.child,null,u),r=M1(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function L3(r,a,u,p,y,S,F){if(u)return a.flags&256?(a.flags&=-257,p=A1(Error(n(422))),hc(r,a,F,p)):a.memoizedState!==null?(a.child=r.child,a.flags|=128,null):(S=p.fallback,y=a.mode,p=kc({mode:"visible",children:p.children},y,0,null),S=zo(S,y,F,null),S.flags|=2,p.return=a,S.return=a,p.sibling=S,a.child=p,(a.mode&1)!==0&&Ts(a,r.child,null,F),a.child.memoizedState=L1(F),a.memoizedState=P1,S);if((a.mode&1)===0)return hc(r,a,F,null);if(y.data==="$!"){if(p=y.nextSibling&&y.nextSibling.dataset,p)var Z=p.dgst;return p=Z,S=Error(n(419)),p=A1(S,p,void 0),hc(r,a,F,p)}if(Z=(F&r.childLanes)!==0,ti||Z){if(p=Ar,p!==null){switch(F&-F){case 4:y=2;break;case 16:y=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(p.suspendedLanes|F))!==0?0:y,y!==0&&y!==S.retryLane&&(S.retryLane=y,ba(r,y),zi(p,r,y,-1))}return $1(),p=A1(Error(n(421))),hc(r,a,F,p)}return y.data==="$?"?(a.flags|=128,a.child=r.child,a=z3.bind(null,r),y._reactRetry=a,null):(r=S.treeContext,ui=Ua(y.nextSibling),li=a,Jn=!0,Hi=null,r!==null&&(_i[Ci++]=ya,_i[Ci++]=wa,_i[Ci++]=jo,ya=r.id,wa=r.overflow,jo=a),a=M1(a,p.children),a.flags|=4096,a)}function qg(r,a,u){r.lanes|=a;var p=r.alternate;p!==null&&(p.lanes|=a),l1(r.return,a,u)}function I1(r,a,u,p,y){var S=r.memoizedState;S===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:y}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=p,S.tail=u,S.tailMode=y)}function $g(r,a,u){var p=a.pendingProps,y=p.revealOrder,S=p.tail;if(Wr(r,a,p.children,u),p=nr.current,(p&2)!==0)p=p&1|2,a.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&qg(r,u,a);else if(r.tag===19)qg(r,u,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}p&=1}if(Vn(nr,p),(a.mode&1)===0)a.memoizedState=null;else switch(y){case"forwards":for(u=a.child,y=null;u!==null;)r=u.alternate,r!==null&&lc(r)===null&&(y=u),u=u.sibling;u=y,u===null?(y=a.child,a.child=null):(y=u.sibling,u.sibling=null),I1(a,!1,y,u,S);break;case"backwards":for(u=null,y=a.child,a.child=null;y!==null;){if(r=y.alternate,r!==null&&lc(r)===null){a.child=y;break}r=y.sibling,y.sibling=u,u=y,y=r}I1(a,!0,u,null,S);break;case"together":I1(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function mc(r,a){(a.mode&1)===0&&r!==null&&(r.alternate=null,a.alternate=null,a.flags|=2)}function Ca(r,a,u){if(r!==null&&(a.dependencies=r.dependencies),Ho|=a.lanes,(u&a.childLanes)===0)return null;if(r!==null&&a.child!==r.child)throw Error(n(153));if(a.child!==null){for(r=a.child,u=Xa(r,r.pendingProps),a.child=u,u.return=a;r.sibling!==null;)r=r.sibling,u=u.sibling=Xa(r,r.pendingProps),u.return=a;u.sibling=null}return a.child}function M3(r,a,u){switch(a.tag){case 3:zg(a),As();break;case 5:cg(a);break;case 1:ei(a.type)&&Ku(a);break;case 4:p1(a,a.stateNode.containerInfo);break;case 10:var p=a.type._context,y=a.memoizedProps.value;Vn(nc,p._currentValue),p._currentValue=y;break;case 13:if(p=a.memoizedState,p!==null)return p.dehydrated!==null?(Vn(nr,nr.current&1),a.flags|=128,null):(u&a.child.childLanes)!==0?Wg(r,a,u):(Vn(nr,nr.current&1),r=Ca(r,a,u),r!==null?r.sibling:null);Vn(nr,nr.current&1);break;case 19:if(p=(u&a.childLanes)!==0,(r.flags&128)!==0){if(p)return $g(r,a,u);a.flags|=128}if(y=a.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),Vn(nr,nr.current),p)break;return null;case 22:case 23:return a.lanes=0,Bg(r,a,u)}return Ca(r,a,u)}var Qg,R1,Yg,Zg;Qg=function(r,a){for(var u=a.child;u!==null;){if(u.tag===5||u.tag===6)r.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},R1=function(){},Yg=function(r,a,u,p){var y=r.memoizedProps;if(y!==p){r=a.stateNode,Fo(Zi.current);var S=null;switch(u){case"input":y=yn(r,y),p=yn(r,p),S=[];break;case"select":y=H({},y,{value:void 0}),p=H({},p,{value:void 0}),S=[];break;case"textarea":y=v(r,y),p=v(r,p),S=[];break;default:typeof y.onClick!="function"&&typeof p.onClick=="function"&&(r.onclick=Qu)}_e(u,p);var F;u=null;for(Se in y)if(!p.hasOwnProperty(Se)&&y.hasOwnProperty(Se)&&y[Se]!=null)if(Se==="style"){var Z=y[Se];for(F in Z)Z.hasOwnProperty(F)&&(u||(u={}),u[F]="")}else Se!=="dangerouslySetInnerHTML"&&Se!=="children"&&Se!=="suppressContentEditableWarning"&&Se!=="suppressHydrationWarning"&&Se!=="autoFocus"&&(o.hasOwnProperty(Se)?S||(S=[]):(S=S||[]).push(Se,null));for(Se in p){var ie=p[Se];if(Z=y?.[Se],p.hasOwnProperty(Se)&&ie!==Z&&(ie!=null||Z!=null))if(Se==="style")if(Z){for(F in Z)!Z.hasOwnProperty(F)||ie&&ie.hasOwnProperty(F)||(u||(u={}),u[F]="");for(F in ie)ie.hasOwnProperty(F)&&Z[F]!==ie[F]&&(u||(u={}),u[F]=ie[F])}else u||(S||(S=[]),S.push(Se,u)),u=ie;else Se==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,Z=Z?Z.__html:void 0,ie!=null&&Z!==ie&&(S=S||[]).push(Se,ie)):Se==="children"?typeof ie!="string"&&typeof ie!="number"||(S=S||[]).push(Se,""+ie):Se!=="suppressContentEditableWarning"&&Se!=="suppressHydrationWarning"&&(o.hasOwnProperty(Se)?(ie!=null&&Se==="onScroll"&&$n("scroll",r),S||Z===ie||(S=[])):(S=S||[]).push(Se,ie))}u&&(S=S||[]).push("style",u);var Se=S;(a.updateQueue=Se)&&(a.flags|=4)}},Zg=function(r,a,u,p){u!==p&&(a.flags|=4)};function Nl(r,a){if(!Jn)switch(r.tailMode){case"hidden":a=r.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:p.sibling=null}}function Hr(r){var a=r.alternate!==null&&r.alternate.child===r.child,u=0,p=0;if(a)for(var y=r.child;y!==null;)u|=y.lanes|y.childLanes,p|=y.subtreeFlags&14680064,p|=y.flags&14680064,y.return=r,y=y.sibling;else for(y=r.child;y!==null;)u|=y.lanes|y.childLanes,p|=y.subtreeFlags,p|=y.flags,y.return=r,y=y.sibling;return r.subtreeFlags|=p,r.childLanes=u,a}function I3(r,a,u){var p=a.pendingProps;switch(t1(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hr(a),null;case 1:return ei(a.type)&&Zu(),Hr(a),null;case 3:return p=a.stateNode,Ps(),Qn(Xr),Qn(Fr),g1(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(r===null||r.child===null)&&(tc(a)?a.flags|=4:r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Hi!==null&&(V1(Hi),Hi=null))),R1(r,a),Hr(a),null;case 5:h1(a);var y=Fo(Ml.current);if(u=a.type,r!==null&&a.stateNode!=null)Yg(r,a,u,p,y),r.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!p){if(a.stateNode===null)throw Error(n(166));return Hr(a),null}if(r=Fo(Zi.current),tc(a)){p=a.stateNode,u=a.type;var S=a.memoizedProps;switch(p[Yi]=a,p[El]=S,r=(a.mode&1)!==0,u){case"dialog":$n("cancel",p),$n("close",p);break;case"iframe":case"object":case"embed":$n("load",p);break;case"video":case"audio":for(y=0;y<xl.length;y++)$n(xl[y],p);break;case"source":$n("error",p);break;case"img":case"image":case"link":$n("error",p),$n("load",p);break;case"details":$n("toggle",p);break;case"input":Wn(p,S),$n("invalid",p);break;case"select":p._wrapperState={wasMultiple:!!S.multiple},$n("invalid",p);break;case"textarea":P(p,S),$n("invalid",p)}_e(u,S),y=null;for(var F in S)if(S.hasOwnProperty(F)){var Z=S[F];F==="children"?typeof Z=="string"?p.textContent!==Z&&(S.suppressHydrationWarning!==!0&&$u(p.textContent,Z,r),y=["children",Z]):typeof Z=="number"&&p.textContent!==""+Z&&(S.suppressHydrationWarning!==!0&&$u(p.textContent,Z,r),y=["children",""+Z]):o.hasOwnProperty(F)&&Z!=null&&F==="onScroll"&&$n("scroll",p)}switch(u){case"input":$t(p),qt(p,S,!0);break;case"textarea":$t(p),Y(p);break;case"select":case"option":break;default:typeof S.onClick=="function"&&(p.onclick=Qu)}p=y,a.updateQueue=p,p!==null&&(a.flags|=4)}else{F=y.nodeType===9?y:y.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Ee(u)),r==="http://www.w3.org/1999/xhtml"?u==="script"?(r=F.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof p.is=="string"?r=F.createElement(u,{is:p.is}):(r=F.createElement(u),u==="select"&&(F=r,p.multiple?F.multiple=!0:p.size&&(F.size=p.size))):r=F.createElementNS(r,u),r[Yi]=a,r[El]=p,Qg(r,a,!1,!1),a.stateNode=r;e:{switch(F=Ae(u,p),u){case"dialog":$n("cancel",r),$n("close",r),y=p;break;case"iframe":case"object":case"embed":$n("load",r),y=p;break;case"video":case"audio":for(y=0;y<xl.length;y++)$n(xl[y],r);y=p;break;case"source":$n("error",r),y=p;break;case"img":case"image":case"link":$n("error",r),$n("load",r),y=p;break;case"details":$n("toggle",r),y=p;break;case"input":Wn(r,p),y=yn(r,p),$n("invalid",r);break;case"option":y=p;break;case"select":r._wrapperState={wasMultiple:!!p.multiple},y=H({},p,{value:void 0}),$n("invalid",r);break;case"textarea":P(r,p),y=v(r,p),$n("invalid",r);break;default:y=p}_e(u,y),Z=y;for(S in Z)if(Z.hasOwnProperty(S)){var ie=Z[S];S==="style"?Le(r,ie):S==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,ie!=null&&fe(r,ie)):S==="children"?typeof ie=="string"?(u!=="textarea"||ie!=="")&&oe(r,ie):typeof ie=="number"&&oe(r,""+ie):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(o.hasOwnProperty(S)?ie!=null&&S==="onScroll"&&$n("scroll",r):ie!=null&&k(r,S,ie,F))}switch(u){case"input":$t(r),qt(r,p,!1);break;case"textarea":$t(r),Y(r);break;case"option":p.value!=null&&r.setAttribute("value",""+ht(p.value));break;case"select":r.multiple=!!p.multiple,S=p.value,S!=null?O(r,!!p.multiple,S,!1):p.defaultValue!=null&&O(r,!!p.multiple,p.defaultValue,!0);break;default:typeof y.onClick=="function"&&(r.onclick=Qu)}switch(u){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}}p&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Hr(a),null;case 6:if(r&&a.stateNode!=null)Zg(r,a,r.memoizedProps,p);else{if(typeof p!="string"&&a.stateNode===null)throw Error(n(166));if(u=Fo(Ml.current),Fo(Zi.current),tc(a)){if(p=a.stateNode,u=a.memoizedProps,p[Yi]=a,(S=p.nodeValue!==u)&&(r=li,r!==null))switch(r.tag){case 3:$u(p.nodeValue,u,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&$u(p.nodeValue,u,(r.mode&1)!==0)}S&&(a.flags|=4)}else p=(u.nodeType===9?u:u.ownerDocument).createTextNode(p),p[Yi]=a,a.stateNode=p}return Hr(a),null;case 13:if(Qn(nr),p=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Jn&&ui!==null&&(a.mode&1)!==0&&(a.flags&128)===0)Jm(),As(),a.flags|=98560,S=!1;else if(S=tc(a),p!==null&&p.dehydrated!==null){if(r===null){if(!S)throw Error(n(318));if(S=a.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(n(317));S[Yi]=a}else As(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Hr(a),S=!1}else Hi!==null&&(V1(Hi),Hi=null),S=!0;if(!S)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=u,a):(p=p!==null,p!==(r!==null&&r.memoizedState!==null)&&p&&(a.child.flags|=8192,(a.mode&1)!==0&&(r===null||(nr.current&1)!==0?br===0&&(br=3):$1())),a.updateQueue!==null&&(a.flags|=4),Hr(a),null);case 4:return Ps(),R1(r,a),r===null&&Sl(a.stateNode.containerInfo),Hr(a),null;case 10:return s1(a.type._context),Hr(a),null;case 17:return ei(a.type)&&Zu(),Hr(a),null;case 19:if(Qn(nr),S=a.memoizedState,S===null)return Hr(a),null;if(p=(a.flags&128)!==0,F=S.rendering,F===null)if(p)Nl(S,!1);else{if(br!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(F=lc(r),F!==null){for(a.flags|=128,Nl(S,!1),p=F.updateQueue,p!==null&&(a.updateQueue=p,a.flags|=4),a.subtreeFlags=0,p=u,u=a.child;u!==null;)S=u,r=p,S.flags&=14680066,F=S.alternate,F===null?(S.childLanes=0,S.lanes=r,S.child=null,S.subtreeFlags=0,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=F.childLanes,S.lanes=F.lanes,S.child=F.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=F.memoizedProps,S.memoizedState=F.memoizedState,S.updateQueue=F.updateQueue,S.type=F.type,r=F.dependencies,S.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),u=u.sibling;return Vn(nr,nr.current&1|2),a.child}r=r.sibling}S.tail!==null&&wt()>Rs&&(a.flags|=128,p=!0,Nl(S,!1),a.lanes=4194304)}else{if(!p)if(r=lc(F),r!==null){if(a.flags|=128,p=!0,u=r.updateQueue,u!==null&&(a.updateQueue=u,a.flags|=4),Nl(S,!0),S.tail===null&&S.tailMode==="hidden"&&!F.alternate&&!Jn)return Hr(a),null}else 2*wt()-S.renderingStartTime>Rs&&u!==1073741824&&(a.flags|=128,p=!0,Nl(S,!1),a.lanes=4194304);S.isBackwards?(F.sibling=a.child,a.child=F):(u=S.last,u!==null?u.sibling=F:a.child=F,S.last=F)}return S.tail!==null?(a=S.tail,S.rendering=a,S.tail=a.sibling,S.renderingStartTime=wt(),a.sibling=null,u=nr.current,Vn(nr,p?u&1|2:u&1),a):(Hr(a),null);case 22:case 23:return q1(),p=a.memoizedState!==null,r!==null&&r.memoizedState!==null!==p&&(a.flags|=8192),p&&(a.mode&1)!==0?(ci&1073741824)!==0&&(Hr(a),a.subtreeFlags&6&&(a.flags|=8192)):Hr(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function R3(r,a){switch(t1(a),a.tag){case 1:return ei(a.type)&&Zu(),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Ps(),Qn(Xr),Qn(Fr),g1(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 5:return h1(a),null;case 13:if(Qn(nr),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(n(340));As()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return Qn(nr),null;case 4:return Ps(),null;case 10:return s1(a.type._context),null;case 22:case 23:return q1(),null;case 24:return null;default:return null}}var gc=!1,Br=!1,j3=typeof WeakSet=="function"?WeakSet:Set,_t=null;function Ms(r,a){var u=r.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(p){lr(r,a,p)}else u.current=null}function j1(r,a,u){try{u()}catch(p){lr(r,a,p)}}var Kg=!1;function O3(r,a){if(qf=et,r=Tm(),Df(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var y=p.anchorOffset,S=p.focusNode;p=p.focusOffset;try{u.nodeType,S.nodeType}catch{u=null;break e}var F=0,Z=-1,ie=-1,Se=0,Ge=0,qe=r,He=null;t:for(;;){for(var mt;qe!==u||y!==0&&qe.nodeType!==3||(Z=F+y),qe!==S||p!==0&&qe.nodeType!==3||(ie=F+p),qe.nodeType===3&&(F+=qe.nodeValue.length),(mt=qe.firstChild)!==null;)He=qe,qe=mt;for(;;){if(qe===r)break t;if(He===u&&++Se===y&&(Z=F),He===S&&++Ge===p&&(ie=F),(mt=qe.nextSibling)!==null)break;qe=He,He=qe.parentNode}qe=mt}u=Z===-1||ie===-1?null:{start:Z,end:ie}}else u=null}u=u||{start:0,end:0}}else u=null;for($f={focusedElem:r,selectionRange:u},et=!1,_t=a;_t!==null;)if(a=_t,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,_t=r;else for(;_t!==null;){a=_t;try{var At=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(At!==null){var Rt=At.memoizedProps,dr=At.memoizedState,ye=a.stateNode,ue=ye.getSnapshotBeforeUpdate(a.elementType===a.type?Rt:Bi(a.type,Rt),dr);ye.__reactInternalSnapshotBeforeUpdate=ue}break;case 3:var we=a.stateNode.containerInfo;we.nodeType===1?we.textContent="":we.nodeType===9&&we.documentElement&&we.removeChild(we.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ze){lr(a,a.return,Ze)}if(r=a.sibling,r!==null){r.return=a.return,_t=r;break}_t=a.return}return At=Kg,Kg=!1,At}function Fl(r,a,u){var p=a.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var y=p=p.next;do{if((y.tag&r)===r){var S=y.destroy;y.destroy=void 0,S!==void 0&&j1(a,u,S)}y=y.next}while(y!==p)}}function vc(r,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var u=a=a.next;do{if((u.tag&r)===r){var p=u.create;u.destroy=p()}u=u.next}while(u!==a)}}function O1(r){var a=r.ref;if(a!==null){var u=r.stateNode;r.tag,r=u,typeof a=="function"?a(r):a.current=r}}function Jg(r){var a=r.alternate;a!==null&&(r.alternate=null,Jg(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&(delete a[Yi],delete a[El],delete a[Kf],delete a[v3],delete a[y3])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Xg(r){return r.tag===5||r.tag===3||r.tag===4}function ev(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Xg(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function N1(r,a,u){var p=r.tag;if(p===5||p===6)r=r.stateNode,a?u.nodeType===8?u.parentNode.insertBefore(r,a):u.insertBefore(r,a):(u.nodeType===8?(a=u.parentNode,a.insertBefore(r,u)):(a=u,a.appendChild(r)),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Qu));else if(p!==4&&(r=r.child,r!==null))for(N1(r,a,u),r=r.sibling;r!==null;)N1(r,a,u),r=r.sibling}function F1(r,a,u){var p=r.tag;if(p===5||p===6)r=r.stateNode,a?u.insertBefore(r,a):u.appendChild(r);else if(p!==4&&(r=r.child,r!==null))for(F1(r,a,u),r=r.sibling;r!==null;)F1(r,a,u),r=r.sibling}var Lr=null,Gi=!1;function Qa(r,a,u){for(u=u.child;u!==null;)tv(r,a,u),u=u.sibling}function tv(r,a,u){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(er,u)}catch{}switch(u.tag){case 5:Br||Ms(u,a);case 6:var p=Lr,y=Gi;Lr=null,Qa(r,a,u),Lr=p,Gi=y,Lr!==null&&(Gi?(r=Lr,u=u.stateNode,r.nodeType===8?r.parentNode.removeChild(u):r.removeChild(u)):Lr.removeChild(u.stateNode));break;case 18:Lr!==null&&(Gi?(r=Lr,u=u.stateNode,r.nodeType===8?Zf(r.parentNode,u):r.nodeType===1&&Zf(r,u),xe(r)):Zf(Lr,u.stateNode));break;case 4:p=Lr,y=Gi,Lr=u.stateNode.containerInfo,Gi=!0,Qa(r,a,u),Lr=p,Gi=y;break;case 0:case 11:case 14:case 15:if(!Br&&(p=u.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){y=p=p.next;do{var S=y,F=S.destroy;S=S.tag,F!==void 0&&((S&2)!==0||(S&4)!==0)&&j1(u,a,F),y=y.next}while(y!==p)}Qa(r,a,u);break;case 1:if(!Br&&(Ms(u,a),p=u.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=u.memoizedProps,p.state=u.memoizedState,p.componentWillUnmount()}catch(Z){lr(u,a,Z)}Qa(r,a,u);break;case 21:Qa(r,a,u);break;case 22:u.mode&1?(Br=(p=Br)||u.memoizedState!==null,Qa(r,a,u),Br=p):Qa(r,a,u);break;default:Qa(r,a,u)}}function nv(r){var a=r.updateQueue;if(a!==null){r.updateQueue=null;var u=r.stateNode;u===null&&(u=r.stateNode=new j3),a.forEach(function(p){var y=V3.bind(null,r,p);u.has(p)||(u.add(p),p.then(y,y))})}}function Ui(r,a){var u=a.deletions;if(u!==null)for(var p=0;p<u.length;p++){var y=u[p];try{var S=r,F=a,Z=F;e:for(;Z!==null;){switch(Z.tag){case 5:Lr=Z.stateNode,Gi=!1;break e;case 3:Lr=Z.stateNode.containerInfo,Gi=!0;break e;case 4:Lr=Z.stateNode.containerInfo,Gi=!0;break e}Z=Z.return}if(Lr===null)throw Error(n(160));tv(S,F,y),Lr=null,Gi=!1;var ie=y.alternate;ie!==null&&(ie.return=null),y.return=null}catch(Se){lr(y,a,Se)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)rv(a,r),a=a.sibling}function rv(r,a){var u=r.alternate,p=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Ui(a,r),Ji(r),p&4){try{Fl(3,r,r.return),vc(3,r)}catch(Rt){lr(r,r.return,Rt)}try{Fl(5,r,r.return)}catch(Rt){lr(r,r.return,Rt)}}break;case 1:Ui(a,r),Ji(r),p&512&&u!==null&&Ms(u,u.return);break;case 5:if(Ui(a,r),Ji(r),p&512&&u!==null&&Ms(u,u.return),r.flags&32){var y=r.stateNode;try{oe(y,"")}catch(Rt){lr(r,r.return,Rt)}}if(p&4&&(y=r.stateNode,y!=null)){var S=r.memoizedProps,F=u!==null?u.memoizedProps:S,Z=r.type,ie=r.updateQueue;if(r.updateQueue=null,ie!==null)try{Z==="input"&&S.type==="radio"&&S.name!=null&&ot(y,S),Ae(Z,F);var Se=Ae(Z,S);for(F=0;F<ie.length;F+=2){var Ge=ie[F],qe=ie[F+1];Ge==="style"?Le(y,qe):Ge==="dangerouslySetInnerHTML"?fe(y,qe):Ge==="children"?oe(y,qe):k(y,Ge,qe,Se)}switch(Z){case"input":sn(y,S);break;case"textarea":U(y,S);break;case"select":var He=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!S.multiple;var mt=S.value;mt!=null?O(y,!!S.multiple,mt,!1):He!==!!S.multiple&&(S.defaultValue!=null?O(y,!!S.multiple,S.defaultValue,!0):O(y,!!S.multiple,S.multiple?[]:"",!1))}y[El]=S}catch(Rt){lr(r,r.return,Rt)}}break;case 6:if(Ui(a,r),Ji(r),p&4){if(r.stateNode===null)throw Error(n(162));y=r.stateNode,S=r.memoizedProps;try{y.nodeValue=S}catch(Rt){lr(r,r.return,Rt)}}break;case 3:if(Ui(a,r),Ji(r),p&4&&u!==null&&u.memoizedState.isDehydrated)try{xe(a.containerInfo)}catch(Rt){lr(r,r.return,Rt)}break;case 4:Ui(a,r),Ji(r);break;case 13:Ui(a,r),Ji(r),y=r.child,y.flags&8192&&(S=y.memoizedState!==null,y.stateNode.isHidden=S,!S||y.alternate!==null&&y.alternate.memoizedState!==null||(B1=wt())),p&4&&nv(r);break;case 22:if(Ge=u!==null&&u.memoizedState!==null,r.mode&1?(Br=(Se=Br)||Ge,Ui(a,r),Br=Se):Ui(a,r),Ji(r),p&8192){if(Se=r.memoizedState!==null,(r.stateNode.isHidden=Se)&&!Ge&&(r.mode&1)!==0)for(_t=r,Ge=r.child;Ge!==null;){for(qe=_t=Ge;_t!==null;){switch(He=_t,mt=He.child,He.tag){case 0:case 11:case 14:case 15:Fl(4,He,He.return);break;case 1:Ms(He,He.return);var At=He.stateNode;if(typeof At.componentWillUnmount=="function"){p=He,u=He.return;try{a=p,At.props=a.memoizedProps,At.state=a.memoizedState,At.componentWillUnmount()}catch(Rt){lr(p,u,Rt)}}break;case 5:Ms(He,He.return);break;case 22:if(He.memoizedState!==null){ov(qe);continue}}mt!==null?(mt.return=He,_t=mt):ov(qe)}Ge=Ge.sibling}e:for(Ge=null,qe=r;;){if(qe.tag===5){if(Ge===null){Ge=qe;try{y=qe.stateNode,Se?(S=y.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none"):(Z=qe.stateNode,ie=qe.memoizedProps.style,F=ie!=null&&ie.hasOwnProperty("display")?ie.display:null,Z.style.display=Ue("display",F))}catch(Rt){lr(r,r.return,Rt)}}}else if(qe.tag===6){if(Ge===null)try{qe.stateNode.nodeValue=Se?"":qe.memoizedProps}catch(Rt){lr(r,r.return,Rt)}}else if((qe.tag!==22&&qe.tag!==23||qe.memoizedState===null||qe===r)&&qe.child!==null){qe.child.return=qe,qe=qe.child;continue}if(qe===r)break e;for(;qe.sibling===null;){if(qe.return===null||qe.return===r)break e;Ge===qe&&(Ge=null),qe=qe.return}Ge===qe&&(Ge=null),qe.sibling.return=qe.return,qe=qe.sibling}}break;case 19:Ui(a,r),Ji(r),p&4&&nv(r);break;case 21:break;default:Ui(a,r),Ji(r)}}function Ji(r){var a=r.flags;if(a&2){try{e:{for(var u=r.return;u!==null;){if(Xg(u)){var p=u;break e}u=u.return}throw Error(n(160))}switch(p.tag){case 5:var y=p.stateNode;p.flags&32&&(oe(y,""),p.flags&=-33);var S=ev(r);F1(r,S,y);break;case 3:case 4:var F=p.stateNode.containerInfo,Z=ev(r);N1(r,Z,F);break;default:throw Error(n(161))}}catch(ie){lr(r,r.return,ie)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function N3(r,a,u){_t=r,iv(r)}function iv(r,a,u){for(var p=(r.mode&1)!==0;_t!==null;){var y=_t,S=y.child;if(y.tag===22&&p){var F=y.memoizedState!==null||gc;if(!F){var Z=y.alternate,ie=Z!==null&&Z.memoizedState!==null||Br;Z=gc;var Se=Br;if(gc=F,(Br=ie)&&!Se)for(_t=y;_t!==null;)F=_t,ie=F.child,F.tag===22&&F.memoizedState!==null?sv(y):ie!==null?(ie.return=F,_t=ie):sv(y);for(;S!==null;)_t=S,iv(S),S=S.sibling;_t=y,gc=Z,Br=Se}av(r)}else(y.subtreeFlags&8772)!==0&&S!==null?(S.return=y,_t=S):av(r)}}function av(r){for(;_t!==null;){var a=_t;if((a.flags&8772)!==0){var u=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:Br||vc(5,a);break;case 1:var p=a.stateNode;if(a.flags&4&&!Br)if(u===null)p.componentDidMount();else{var y=a.elementType===a.type?u.memoizedProps:Bi(a.type,u.memoizedProps);p.componentDidUpdate(y,u.memoizedState,p.__reactInternalSnapshotBeforeUpdate)}var S=a.updateQueue;S!==null&&ng(a,S,p);break;case 3:var F=a.updateQueue;if(F!==null){if(u=null,a.child!==null)switch(a.child.tag){case 5:u=a.child.stateNode;break;case 1:u=a.child.stateNode}ng(a,F,u)}break;case 5:var Z=a.stateNode;if(u===null&&a.flags&4){u=Z;var ie=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":ie.autoFocus&&u.focus();break;case"img":ie.src&&(u.src=ie.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var Se=a.alternate;if(Se!==null){var Ge=Se.memoizedState;if(Ge!==null){var qe=Ge.dehydrated;qe!==null&&xe(qe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Br||a.flags&512&&O1(a)}catch(He){lr(a,a.return,He)}}if(a===r){_t=null;break}if(u=a.sibling,u!==null){u.return=a.return,_t=u;break}_t=a.return}}function ov(r){for(;_t!==null;){var a=_t;if(a===r){_t=null;break}var u=a.sibling;if(u!==null){u.return=a.return,_t=u;break}_t=a.return}}function sv(r){for(;_t!==null;){var a=_t;try{switch(a.tag){case 0:case 11:case 15:var u=a.return;try{vc(4,a)}catch(ie){lr(a,u,ie)}break;case 1:var p=a.stateNode;if(typeof p.componentDidMount=="function"){var y=a.return;try{p.componentDidMount()}catch(ie){lr(a,y,ie)}}var S=a.return;try{O1(a)}catch(ie){lr(a,S,ie)}break;case 5:var F=a.return;try{O1(a)}catch(ie){lr(a,F,ie)}}}catch(ie){lr(a,a.return,ie)}if(a===r){_t=null;break}var Z=a.sibling;if(Z!==null){Z.return=a.return,_t=Z;break}_t=a.return}}var F3=Math.ceil,yc=A.ReactCurrentDispatcher,D1=A.ReactCurrentOwner,Ai=A.ReactCurrentBatchConfig,En=0,Ar=null,vr=null,Mr=0,ci=0,Is=za(0),br=0,Dl=null,Ho=0,wc=0,H1=0,Hl=null,ni=null,B1=0,Rs=1/0,xa=null,bc=!1,G1=null,Ya=null,_c=!1,Za=null,Cc=0,Bl=0,U1=null,xc=-1,Sc=0;function qr(){return(En&6)!==0?wt():xc!==-1?xc:xc=wt()}function Ka(r){return(r.mode&1)===0?1:(En&2)!==0&&Mr!==0?Mr&-Mr:b3.transition!==null?(Sc===0&&(Sc=Rn()),Sc):(r=jt,r!==0||(r=window.event,r=r===void 0?16:dn(r.type)),r)}function zi(r,a,u,p){if(50<Bl)throw Bl=0,U1=null,Error(n(185));fn(r,u,p),((En&2)===0||r!==Ar)&&(r===Ar&&((En&2)===0&&(wc|=u),br===4&&Ja(r,Mr)),ri(r,p),u===1&&En===0&&(a.mode&1)===0&&(Rs=wt()+500,Ju&&Wa()))}function ri(r,a){var u=r.callbackNode;qn(r,a);var p=Cn(r,r===Ar?Mr:0);if(p===0)u!==null&&nt(u),r.callbackNode=null,r.callbackPriority=0;else if(a=p&-p,r.callbackPriority!==a){if(u!=null&&nt(u),a===1)r.tag===0?w3(uv.bind(null,r)):$m(uv.bind(null,r)),m3(function(){(En&6)===0&&Wa()}),u=null;else{switch(Je(p)){case 1:u=Ut;break;case 4:u=un;break;case 16:u=hn;break;case 536870912:u=Fn;break;default:u=hn}u=vv(u,lv.bind(null,r))}r.callbackPriority=a,r.callbackNode=u}}function lv(r,a){if(xc=-1,Sc=0,(En&6)!==0)throw Error(n(327));var u=r.callbackNode;if(js()&&r.callbackNode!==u)return null;var p=Cn(r,r===Ar?Mr:0);if(p===0)return null;if((p&30)!==0||(p&r.expiredLanes)!==0||a)a=Ac(r,p);else{a=p;var y=En;En|=2;var S=dv();(Ar!==r||Mr!==a)&&(xa=null,Rs=wt()+500,Go(r,a));do try{B3();break}catch(Z){cv(r,Z)}while(!0);o1(),yc.current=S,En=y,vr!==null?a=0:(Ar=null,Mr=0,a=br)}if(a!==0){if(a===2&&(y=cr(r),y!==0&&(p=y,a=z1(r,y))),a===1)throw u=Dl,Go(r,0),Ja(r,p),ri(r,wt()),u;if(a===6)Ja(r,p);else{if(y=r.current.alternate,(p&30)===0&&!D3(y)&&(a=Ac(r,p),a===2&&(S=cr(r),S!==0&&(p=S,a=z1(r,S))),a===1))throw u=Dl,Go(r,0),Ja(r,p),ri(r,wt()),u;switch(r.finishedWork=y,r.finishedLanes=p,a){case 0:case 1:throw Error(n(345));case 2:Uo(r,ni,xa);break;case 3:if(Ja(r,p),(p&130023424)===p&&(a=B1+500-wt(),10<a)){if(Cn(r,0)!==0)break;if(y=r.suspendedLanes,(y&p)!==p){qr(),r.pingedLanes|=r.suspendedLanes&y;break}r.timeoutHandle=Yf(Uo.bind(null,r,ni,xa),a);break}Uo(r,ni,xa);break;case 4:if(Ja(r,p),(p&4194240)===p)break;for(a=r.eventTimes,y=-1;0<p;){var F=31-cn(p);S=1<<F,F=a[F],F>y&&(y=F),p&=~S}if(p=y,p=wt()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*F3(p/1960))-p,10<p){r.timeoutHandle=Yf(Uo.bind(null,r,ni,xa),p);break}Uo(r,ni,xa);break;case 5:Uo(r,ni,xa);break;default:throw Error(n(329))}}}return ri(r,wt()),r.callbackNode===u?lv.bind(null,r):null}function z1(r,a){var u=Hl;return r.current.memoizedState.isDehydrated&&(Go(r,a).flags|=256),r=Ac(r,a),r!==2&&(a=ni,ni=u,a!==null&&V1(a)),r}function V1(r){ni===null?ni=r:ni.push.apply(ni,r)}function D3(r){for(var a=r;;){if(a.flags&16384){var u=a.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var p=0;p<u.length;p++){var y=u[p],S=y.getSnapshot;y=y.value;try{if(!Di(S(),y))return!1}catch{return!1}}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ja(r,a){for(a&=~H1,a&=~wc,r.suspendedLanes|=a,r.pingedLanes&=~a,r=r.expirationTimes;0<a;){var u=31-cn(a),p=1<<u;r[u]=-1,a&=~p}}function uv(r){if((En&6)!==0)throw Error(n(327));js();var a=Cn(r,0);if((a&1)===0)return ri(r,wt()),null;var u=Ac(r,a);if(r.tag!==0&&u===2){var p=cr(r);p!==0&&(a=p,u=z1(r,p))}if(u===1)throw u=Dl,Go(r,0),Ja(r,a),ri(r,wt()),u;if(u===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=a,Uo(r,ni,xa),ri(r,wt()),null}function W1(r,a){var u=En;En|=1;try{return r(a)}finally{En=u,En===0&&(Rs=wt()+500,Ju&&Wa())}}function Bo(r){Za!==null&&Za.tag===0&&(En&6)===0&&js();var a=En;En|=1;var u=Ai.transition,p=jt;try{if(Ai.transition=null,jt=1,r)return r()}finally{jt=p,Ai.transition=u,En=a,(En&6)===0&&Wa()}}function q1(){ci=Is.current,Qn(Is)}function Go(r,a){r.finishedWork=null,r.finishedLanes=0;var u=r.timeoutHandle;if(u!==-1&&(r.timeoutHandle=-1,h3(u)),vr!==null)for(u=vr.return;u!==null;){var p=u;switch(t1(p),p.tag){case 1:p=p.type.childContextTypes,p!=null&&Zu();break;case 3:Ps(),Qn(Xr),Qn(Fr),g1();break;case 5:h1(p);break;case 4:Ps();break;case 13:Qn(nr);break;case 19:Qn(nr);break;case 10:s1(p.type._context);break;case 22:case 23:q1()}u=u.return}if(Ar=r,vr=r=Xa(r.current,null),Mr=ci=a,br=0,Dl=null,H1=wc=Ho=0,ni=Hl=null,No!==null){for(a=0;a<No.length;a++)if(u=No[a],p=u.interleaved,p!==null){u.interleaved=null;var y=p.next,S=u.pending;if(S!==null){var F=S.next;S.next=y,p.next=F}u.pending=p}No=null}return r}function cv(r,a){do{var u=vr;try{if(o1(),uc.current=pc,cc){for(var p=rr.memoizedState;p!==null;){var y=p.queue;y!==null&&(y.pending=null),p=p.next}cc=!1}if(Do=0,Sr=wr=rr=null,Il=!1,Rl=0,D1.current=null,u===null||u.return===null){br=1,Dl=a,vr=null;break}e:{var S=r,F=u.return,Z=u,ie=a;if(a=Mr,Z.flags|=32768,ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var Se=ie,Ge=Z,qe=Ge.tag;if((Ge.mode&1)===0&&(qe===0||qe===11||qe===15)){var He=Ge.alternate;He?(Ge.updateQueue=He.updateQueue,Ge.memoizedState=He.memoizedState,Ge.lanes=He.lanes):(Ge.updateQueue=null,Ge.memoizedState=null)}var mt=Og(F);if(mt!==null){mt.flags&=-257,Ng(mt,F,Z,S,a),mt.mode&1&&jg(S,Se,a),a=mt,ie=Se;var At=a.updateQueue;if(At===null){var Rt=new Set;Rt.add(ie),a.updateQueue=Rt}else At.add(ie);break e}else{if((a&1)===0){jg(S,Se,a),$1();break e}ie=Error(n(426))}}else if(Jn&&Z.mode&1){var dr=Og(F);if(dr!==null){(dr.flags&65536)===0&&(dr.flags|=256),Ng(dr,F,Z,S,a),i1(Ls(ie,Z));break e}}S=ie=Ls(ie,Z),br!==4&&(br=2),Hl===null?Hl=[S]:Hl.push(S),S=F;do{switch(S.tag){case 3:S.flags|=65536,a&=-a,S.lanes|=a;var ye=Ig(S,ie,a);tg(S,ye);break e;case 1:Z=ie;var ue=S.type,we=S.stateNode;if((S.flags&128)===0&&(typeof ue.getDerivedStateFromError=="function"||we!==null&&typeof we.componentDidCatch=="function"&&(Ya===null||!Ya.has(we)))){S.flags|=65536,a&=-a,S.lanes|=a;var Ze=Rg(S,Z,a);tg(S,Ze);break e}}S=S.return}while(S!==null)}pv(u)}catch(Nt){a=Nt,vr===u&&u!==null&&(vr=u=u.return);continue}break}while(!0)}function dv(){var r=yc.current;return yc.current=pc,r===null?pc:r}function $1(){(br===0||br===3||br===2)&&(br=4),Ar===null||(Ho&268435455)===0&&(wc&268435455)===0||Ja(Ar,Mr)}function Ac(r,a){var u=En;En|=2;var p=dv();(Ar!==r||Mr!==a)&&(xa=null,Go(r,a));do try{H3();break}catch(y){cv(r,y)}while(!0);if(o1(),En=u,yc.current=p,vr!==null)throw Error(n(261));return Ar=null,Mr=0,br}function H3(){for(;vr!==null;)fv(vr)}function B3(){for(;vr!==null&&!Ht();)fv(vr)}function fv(r){var a=gv(r.alternate,r,ci);r.memoizedProps=r.pendingProps,a===null?pv(r):vr=a,D1.current=null}function pv(r){var a=r;do{var u=a.alternate;if(r=a.return,(a.flags&32768)===0){if(u=I3(u,a,ci),u!==null){vr=u;return}}else{if(u=R3(u,a),u!==null){u.flags&=32767,vr=u;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{br=6,vr=null;return}}if(a=a.sibling,a!==null){vr=a;return}vr=a=r}while(a!==null);br===0&&(br=5)}function Uo(r,a,u){var p=jt,y=Ai.transition;try{Ai.transition=null,jt=1,G3(r,a,u,p)}finally{Ai.transition=y,jt=p}return null}function G3(r,a,u,p){do js();while(Za!==null);if((En&6)!==0)throw Error(n(327));u=r.finishedWork;var y=r.finishedLanes;if(u===null)return null;if(r.finishedWork=null,r.finishedLanes=0,u===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var S=u.lanes|u.childLanes;if(xn(r,S),r===Ar&&(vr=Ar=null,Mr=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||_c||(_c=!0,vv(hn,function(){return js(),null})),S=(u.flags&15990)!==0,(u.subtreeFlags&15990)!==0||S){S=Ai.transition,Ai.transition=null;var F=jt;jt=1;var Z=En;En|=4,D1.current=null,O3(r,u),rv(u,r),s3($f),et=!!qf,$f=qf=null,r.current=u,N3(u),yt(),En=Z,jt=F,Ai.transition=S}else r.current=u;if(_c&&(_c=!1,Za=r,Cc=y),S=r.pendingLanes,S===0&&(Ya=null),ar(u.stateNode),ri(r,wt()),a!==null)for(p=r.onRecoverableError,u=0;u<a.length;u++)y=a[u],p(y.value,{componentStack:y.stack,digest:y.digest});if(bc)throw bc=!1,r=G1,G1=null,r;return(Cc&1)!==0&&r.tag!==0&&js(),S=r.pendingLanes,(S&1)!==0?r===U1?Bl++:(Bl=0,U1=r):Bl=0,Wa(),null}function js(){if(Za!==null){var r=Je(Cc),a=Ai.transition,u=jt;try{if(Ai.transition=null,jt=16>r?16:r,Za===null)var p=!1;else{if(r=Za,Za=null,Cc=0,(En&6)!==0)throw Error(n(331));var y=En;for(En|=4,_t=r.current;_t!==null;){var S=_t,F=S.child;if((_t.flags&16)!==0){var Z=S.deletions;if(Z!==null){for(var ie=0;ie<Z.length;ie++){var Se=Z[ie];for(_t=Se;_t!==null;){var Ge=_t;switch(Ge.tag){case 0:case 11:case 15:Fl(8,Ge,S)}var qe=Ge.child;if(qe!==null)qe.return=Ge,_t=qe;else for(;_t!==null;){Ge=_t;var He=Ge.sibling,mt=Ge.return;if(Jg(Ge),Ge===Se){_t=null;break}if(He!==null){He.return=mt,_t=He;break}_t=mt}}}var At=S.alternate;if(At!==null){var Rt=At.child;if(Rt!==null){At.child=null;do{var dr=Rt.sibling;Rt.sibling=null,Rt=dr}while(Rt!==null)}}_t=S}}if((S.subtreeFlags&2064)!==0&&F!==null)F.return=S,_t=F;else e:for(;_t!==null;){if(S=_t,(S.flags&2048)!==0)switch(S.tag){case 0:case 11:case 15:Fl(9,S,S.return)}var ye=S.sibling;if(ye!==null){ye.return=S.return,_t=ye;break e}_t=S.return}}var ue=r.current;for(_t=ue;_t!==null;){F=_t;var we=F.child;if((F.subtreeFlags&2064)!==0&&we!==null)we.return=F,_t=we;else e:for(F=ue;_t!==null;){if(Z=_t,(Z.flags&2048)!==0)try{switch(Z.tag){case 0:case 11:case 15:vc(9,Z)}}catch(Nt){lr(Z,Z.return,Nt)}if(Z===F){_t=null;break e}var Ze=Z.sibling;if(Ze!==null){Ze.return=Z.return,_t=Ze;break e}_t=Z.return}}if(En=y,Wa(),Kn&&typeof Kn.onPostCommitFiberRoot=="function")try{Kn.onPostCommitFiberRoot(er,r)}catch{}p=!0}return p}finally{jt=u,Ai.transition=a}}return!1}function hv(r,a,u){a=Ls(u,a),a=Ig(r,a,1),r=$a(r,a,1),a=qr(),r!==null&&(fn(r,1,a),ri(r,a))}function lr(r,a,u){if(r.tag===3)hv(r,r,u);else for(;a!==null;){if(a.tag===3){hv(a,r,u);break}else if(a.tag===1){var p=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Ya===null||!Ya.has(p))){r=Ls(u,r),r=Rg(a,r,1),a=$a(a,r,1),r=qr(),a!==null&&(fn(a,1,r),ri(a,r));break}}a=a.return}}function U3(r,a,u){var p=r.pingCache;p!==null&&p.delete(a),a=qr(),r.pingedLanes|=r.suspendedLanes&u,Ar===r&&(Mr&u)===u&&(br===4||br===3&&(Mr&130023424)===Mr&&500>wt()-B1?Go(r,0):H1|=u),ri(r,a)}function mv(r,a){a===0&&((r.mode&1)===0?a=1:(a=Bt,Bt<<=1,(Bt&130023424)===0&&(Bt=4194304)));var u=qr();r=ba(r,a),r!==null&&(fn(r,a,u),ri(r,u))}function z3(r){var a=r.memoizedState,u=0;a!==null&&(u=a.retryLane),mv(r,u)}function V3(r,a){var u=0;switch(r.tag){case 13:var p=r.stateNode,y=r.memoizedState;y!==null&&(u=y.retryLane);break;case 19:p=r.stateNode;break;default:throw Error(n(314))}p!==null&&p.delete(a),mv(r,u)}var gv;gv=function(r,a,u){if(r!==null)if(r.memoizedProps!==a.pendingProps||Xr.current)ti=!0;else{if((r.lanes&u)===0&&(a.flags&128)===0)return ti=!1,M3(r,a,u);ti=(r.flags&131072)!==0}else ti=!1,Jn&&(a.flags&1048576)!==0&&Qm(a,ec,a.index);switch(a.lanes=0,a.tag){case 2:var p=a.type;mc(r,a),r=a.pendingProps;var y=Cs(a,Fr.current);ks(a,u),y=w1(null,a,p,r,y,u);var S=b1();return a.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,ei(p)?(S=!0,Ku(a)):S=!1,a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,c1(a),y.updater=oc,a.stateNode=y,y._reactInternals=a,f1(a,p,r,u),a=T1(null,a,p,!0,S,u)):(a.tag=0,Jn&&S&&e1(a),Wr(null,a,y,u),a=a.child),a;case 16:p=a.elementType;e:{switch(mc(r,a),r=a.pendingProps,y=p._init,p=y(p._payload),a.type=p,y=a.tag=q3(p),r=Bi(p,r),y){case 0:a=k1(null,a,p,r,u);break e;case 1:a=Ug(null,a,p,r,u);break e;case 11:a=Fg(null,a,p,r,u);break e;case 14:a=Dg(null,a,p,Bi(p.type,r),u);break e}throw Error(n(306,p,""))}return a;case 0:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:Bi(p,y),k1(r,a,p,y,u);case 1:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:Bi(p,y),Ug(r,a,p,y,u);case 3:e:{if(zg(a),r===null)throw Error(n(387));p=a.pendingProps,S=a.memoizedState,y=S.element,eg(r,a),ac(a,p,null,u);var F=a.memoizedState;if(p=F.element,S.isDehydrated)if(S={element:p,isDehydrated:!1,cache:F.cache,pendingSuspenseBoundaries:F.pendingSuspenseBoundaries,transitions:F.transitions},a.updateQueue.baseState=S,a.memoizedState=S,a.flags&256){y=Ls(Error(n(423)),a),a=Vg(r,a,p,u,y);break e}else if(p!==y){y=Ls(Error(n(424)),a),a=Vg(r,a,p,u,y);break e}else for(ui=Ua(a.stateNode.containerInfo.firstChild),li=a,Jn=!0,Hi=null,u=ug(a,null,p,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(As(),p===y){a=Ca(r,a,u);break e}Wr(r,a,p,u)}a=a.child}return a;case 5:return cg(a),r===null&&r1(a),p=a.type,y=a.pendingProps,S=r!==null?r.memoizedProps:null,F=y.children,Qf(p,y)?F=null:S!==null&&Qf(p,S)&&(a.flags|=32),Gg(r,a),Wr(r,a,F,u),a.child;case 6:return r===null&&r1(a),null;case 13:return Wg(r,a,u);case 4:return p1(a,a.stateNode.containerInfo),p=a.pendingProps,r===null?a.child=Ts(a,null,p,u):Wr(r,a,p,u),a.child;case 11:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:Bi(p,y),Fg(r,a,p,y,u);case 7:return Wr(r,a,a.pendingProps,u),a.child;case 8:return Wr(r,a,a.pendingProps.children,u),a.child;case 12:return Wr(r,a,a.pendingProps.children,u),a.child;case 10:e:{if(p=a.type._context,y=a.pendingProps,S=a.memoizedProps,F=y.value,Vn(nc,p._currentValue),p._currentValue=F,S!==null)if(Di(S.value,F)){if(S.children===y.children&&!Xr.current){a=Ca(r,a,u);break e}}else for(S=a.child,S!==null&&(S.return=a);S!==null;){var Z=S.dependencies;if(Z!==null){F=S.child;for(var ie=Z.firstContext;ie!==null;){if(ie.context===p){if(S.tag===1){ie=_a(-1,u&-u),ie.tag=2;var Se=S.updateQueue;if(Se!==null){Se=Se.shared;var Ge=Se.pending;Ge===null?ie.next=ie:(ie.next=Ge.next,Ge.next=ie),Se.pending=ie}}S.lanes|=u,ie=S.alternate,ie!==null&&(ie.lanes|=u),l1(S.return,u,a),Z.lanes|=u;break}ie=ie.next}}else if(S.tag===10)F=S.type===a.type?null:S.child;else if(S.tag===18){if(F=S.return,F===null)throw Error(n(341));F.lanes|=u,Z=F.alternate,Z!==null&&(Z.lanes|=u),l1(F,u,a),F=S.sibling}else F=S.child;if(F!==null)F.return=S;else for(F=S;F!==null;){if(F===a){F=null;break}if(S=F.sibling,S!==null){S.return=F.return,F=S;break}F=F.return}S=F}Wr(r,a,y.children,u),a=a.child}return a;case 9:return y=a.type,p=a.pendingProps.children,ks(a,u),y=xi(y),p=p(y),a.flags|=1,Wr(r,a,p,u),a.child;case 14:return p=a.type,y=Bi(p,a.pendingProps),y=Bi(p.type,y),Dg(r,a,p,y,u);case 15:return Hg(r,a,a.type,a.pendingProps,u);case 17:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:Bi(p,y),mc(r,a),a.tag=1,ei(p)?(r=!0,Ku(a)):r=!1,ks(a,u),ag(a,p,y),f1(a,p,y,u),T1(null,a,p,!0,r,u);case 19:return $g(r,a,u);case 22:return Bg(r,a,u)}throw Error(n(156,a.tag))};function vv(r,a){return Oe(r,a)}function W3(r,a,u,p){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(r,a,u,p){return new W3(r,a,u,p)}function Q1(r){return r=r.prototype,!(!r||!r.isReactComponent)}function q3(r){if(typeof r=="function")return Q1(r)?1:0;if(r!=null){if(r=r.$$typeof,r===ae)return 11;if(r===pe)return 14}return 2}function Xa(r,a){var u=r.alternate;return u===null?(u=Ei(r.tag,a,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u.alternate=r,r.alternate=u):(u.pendingProps=a,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=r.flags&14680064,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,a=r.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u}function Ec(r,a,u,p,y,S){var F=2;if(p=r,typeof r=="function")Q1(r)&&(F=1);else if(typeof r=="string")F=5;else e:switch(r){case D:return zo(u.children,y,S,a);case V:F=8,y|=8;break;case q:return r=Ei(12,u,a,y|2),r.elementType=q,r.lanes=S,r;case te:return r=Ei(13,u,a,y),r.elementType=te,r.lanes=S,r;case ce:return r=Ei(19,u,a,y),r.elementType=ce,r.lanes=S,r;case ne:return kc(u,y,S,a);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case $:F=10;break e;case W:F=9;break e;case ae:F=11;break e;case pe:F=14;break e;case me:F=16,p=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return a=Ei(F,u,a,y),a.elementType=r,a.type=p,a.lanes=S,a}function zo(r,a,u,p){return r=Ei(7,r,p,a),r.lanes=u,r}function kc(r,a,u,p){return r=Ei(22,r,p,a),r.elementType=ne,r.lanes=u,r.stateNode={isHidden:!1},r}function Y1(r,a,u){return r=Ei(6,r,null,a),r.lanes=u,r}function Z1(r,a,u){return a=Ei(4,r.children!==null?r.children:[],r.key,a),a.lanes=u,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}function $3(r,a,u,p,y){this.tag=a,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nn(0),this.expirationTimes=nn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nn(0),this.identifierPrefix=p,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function K1(r,a,u,p,y,S,F,Z,ie){return r=new $3(r,a,u,Z,ie),a===1?(a=1,S===!0&&(a|=8)):a=0,S=Ei(3,null,null,a),r.current=S,S.stateNode=r,S.memoizedState={element:p,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},c1(S),r}function Q3(r,a,u){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:p==null?null:""+p,children:r,containerInfo:a,implementation:u}}function yv(r){if(!r)return Va;r=r._reactInternals;e:{if(vt(r)!==r||r.tag!==1)throw Error(n(170));var a=r;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(ei(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(r.tag===1){var u=r.type;if(ei(u))return Wm(r,u,a)}return a}function wv(r,a,u,p,y,S,F,Z,ie){return r=K1(u,p,!0,r,y,S,F,Z,ie),r.context=yv(null),u=r.current,p=qr(),y=Ka(u),S=_a(p,y),S.callback=a??null,$a(u,S,y),r.current.lanes=y,fn(r,y,p),ri(r,p),r}function Tc(r,a,u,p){var y=a.current,S=qr(),F=Ka(y);return u=yv(u),a.context===null?a.context=u:a.pendingContext=u,a=_a(S,F),a.payload={element:r},p=p===void 0?null:p,p!==null&&(a.callback=p),r=$a(y,a,F),r!==null&&(zi(r,y,F,S),ic(r,y,F)),F}function Pc(r){return r=r.current,r.child?(r.child.tag===5,r.child.stateNode):null}function bv(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<a?u:a}}function J1(r,a){bv(r,a),(r=r.alternate)&&bv(r,a)}function Y3(){return null}var _v=typeof reportError=="function"?reportError:function(r){console.error(r)};function X1(r){this._internalRoot=r}Lc.prototype.render=X1.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(n(409));Tc(r,a,null,null)},Lc.prototype.unmount=X1.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;Bo(function(){Tc(null,r,null,null)}),a[ga]=null}};function Lc(r){this._internalRoot=r}Lc.prototype.unstable_scheduleHydration=function(r){if(r){var a=xt();r={blockedOn:null,target:r,priority:a};for(var u=0;u<Lt.length&&a!==0&&a<Lt[u].priority;u++);Lt.splice(u,0,r),u===0&&Q(r)}};function ep(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Mc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Cv(){}function Z3(r,a,u,p,y){if(y){if(typeof p=="function"){var S=p;p=function(){var Se=Pc(F);S.call(Se)}}var F=wv(a,p,r,0,null,!1,!1,"",Cv);return r._reactRootContainer=F,r[ga]=F.current,Sl(r.nodeType===8?r.parentNode:r),Bo(),F}for(;y=r.lastChild;)r.removeChild(y);if(typeof p=="function"){var Z=p;p=function(){var Se=Pc(ie);Z.call(Se)}}var ie=K1(r,0,!1,null,null,!1,!1,"",Cv);return r._reactRootContainer=ie,r[ga]=ie.current,Sl(r.nodeType===8?r.parentNode:r),Bo(function(){Tc(a,ie,u,p)}),ie}function Ic(r,a,u,p,y){var S=u._reactRootContainer;if(S){var F=S;if(typeof y=="function"){var Z=y;y=function(){var ie=Pc(F);Z.call(ie)}}Tc(a,F,r,y)}else F=Z3(u,a,r,y,p);return Pc(F)}Gt=function(r){switch(r.tag){case 3:var a=r.stateNode;if(a.current.memoizedState.isDehydrated){var u=wn(a.pendingLanes);u!==0&&(Bn(a,u|1),ri(a,wt()),(En&6)===0&&(Rs=wt()+500,Wa()))}break;case 13:Bo(function(){var p=ba(r,1);if(p!==null){var y=qr();zi(p,r,1,y)}}),J1(r,1)}},gt=function(r){if(r.tag===13){var a=ba(r,134217728);if(a!==null){var u=qr();zi(a,r,134217728,u)}J1(r,134217728)}},ft=function(r){if(r.tag===13){var a=Ka(r),u=ba(r,a);if(u!==null){var p=qr();zi(u,r,a,p)}J1(r,a)}},xt=function(){return jt},Jt=function(r,a){var u=jt;try{return jt=r,a()}finally{jt=u}},ct=function(r,a,u){switch(a){case"input":if(sn(r,u),a=u.name,u.type==="radio"&&a!=null){for(u=r;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<u.length;a++){var p=u[a];if(p!==r&&p.form===r.form){var y=Yu(p);if(!y)throw Error(n(90));bt(p),sn(p,y)}}}break;case"textarea":U(r,u);break;case"select":a=u.value,a!=null&&O(r,!!u.multiple,a,!1)}},Nn=W1,Ni=Bo;var K3={usingClientEntryPoint:!1,Events:[kl,bs,Yu,Yt,Hn,W1]},Gl={findFiberByHostInstance:Io,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},J3={bundleType:Gl.bundleType,version:Gl.version,rendererPackageName:Gl.rendererPackageName,rendererConfig:Gl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Ot(r),r===null?null:r.stateNode},findFiberByHostInstance:Gl.findFiberByHostInstance||Y3,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};
8if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rc.isDisabled&&Rc.supportsFiber)try{er=Rc.inject(J3),Kn=Rc}catch{}}return ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K3,ii.createPortal=function(r,a){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ep(a))throw Error(n(200));return Q3(r,a,null,u)},ii.createRoot=function(r,a){if(!ep(r))throw Error(n(299));var u=!1,p="",y=_v;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(y=a.onRecoverableError)),a=K1(r,1,!1,null,null,u,!1,p,y),r[ga]=a.current,Sl(r.nodeType===8?r.parentNode:r),new X1(a)},ii.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=Ot(a),r=r===null?null:r.stateNode,r},ii.flushSync=function(r){return Bo(r)},ii.hydrate=function(r,a,u){if(!Mc(a))throw Error(n(200));return Ic(null,r,a,!0,u)},ii.hydrateRoot=function(r,a,u){if(!ep(r))throw Error(n(405));var p=u!=null&&u.hydratedSources||null,y=!1,S="",F=_v;if(u!=null&&(u.unstable_strictMode===!0&&(y=!0),u.identifierPrefix!==void 0&&(S=u.identifierPrefix),u.onRecoverableError!==void 0&&(F=u.onRecoverableError)),a=wv(a,null,r,1,u??null,y,!1,S,F),r[ga]=a.current,Sl(r),p)for(r=0;r<p.length;r++)u=p[r],y=u._getVersion,y=y(u._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[u,y]:a.mutableSourceEagerHydrationData.push(u,y);return new Lc(a)},ii.render=function(r,a,u){if(!Mc(a))throw Error(n(200));return Ic(null,r,a,!1,u)},ii.unmountComponentAtNode=function(r){if(!Mc(r))throw Error(n(40));return r._reactRootContainer?(Bo(function(){Ic(null,null,r,!1,function(){r._reactRootContainer=null,r[ga]=null})}),!0):!1},ii.unstable_batchedUpdates=W1,ii.unstable_renderSubtreeIntoContainer=function(r,a,u,p){if(!Mc(u))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Ic(r,a,u,!1,p)},ii.version="18.2.0-next-9e3b772b8-20220608",ii}var Mv;function h4(){if(Mv)return rp.exports;Mv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),rp.exports=o9(),rp.exports}var Iv;function s9(){if(Iv)return jc;Iv=1;var e=h4();return jc.createRoot=e.createRoot,jc.hydrateRoot=e.hydrateRoot,jc}var l9=s9(),s0=h4();function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},eu.apply(this,arguments)}var lo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(lo||(lo={}));const Rv="popstate";function u9(e){e===void 0&&(e={});function t(i,o){let{pathname:s,search:l,hash:c}=i.location;return ph("",{pathname:s,search:l,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(i,o){return typeof o=="string"?o:Sd(o)}return d9(t,n,null,e)}function hr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function l0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c9(){return Math.random().toString(36).substr(2,8)}function jv(e,t){return{usr:e.state,key:e.key,idx:t}}function ph(e,t,n,i){return n===void 0&&(n=null),eu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sl(t):t,{state:n,key:t&&t.key||i||c9()})}function Sd(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function sl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function d9(e,t,n,i){i===void 0&&(i={});let{window:o=document.defaultView,v5Compat:s=!1}=i,l=o.history,c=lo.Pop,d=null,f=h();f==null&&(f=0,l.replaceState(eu({},l.state,{idx:f}),""));function h(){return(l.state||{idx:null}).idx}function g(){c=lo.Pop;let C=h(),R=C==null?null:C-f;f=C,d&&d({action:c,location:_.location,delta:R})}function w(C,R){c=lo.Push;let I=ph(_.location,C,R);f=h()+1;let k=jv(I,f),A=_.createHref(I);try{l.pushState(k,"",A)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;o.location.assign(A)}s&&d&&d({action:c,location:_.location,delta:1})}function m(C,R){c=lo.Replace;let I=ph(_.location,C,R);f=h();let k=jv(I,f),A=_.createHref(I);l.replaceState(k,"",A),s&&d&&d({action:c,location:_.location,delta:0})}function b(C){let R=o.location.origin!=="null"?o.location.origin:o.location.href,I=typeof C=="string"?C:Sd(C);return I=I.replace(/ $/,"%20"),hr(R,"No window.location.(origin|href) available to create URL for href: "+I),new URL(I,R)}let _={get action(){return c},get location(){return e(o,l)},listen(C){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(Rv,g),d=C,()=>{o.removeEventListener(Rv,g),d=null}},createHref(C){return t(o,C)},createURL:b,encodeLocation(C){let R=b(C);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:m,go(C){return l.go(C)}};return _}var Ov;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ov||(Ov={}));function f9(e,t,n){return n===void 0&&(n="/"),p9(e,t,n)}function p9(e,t,n,i){let o=typeof t=="string"?sl(t):t,s=u0(o.pathname||"/",n);if(s==null)return null;let l=m4(e);h9(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let f=E9(s);c=x9(l[d],f)}return c}function m4(e,t,n,i){t===void 0&&(t=[]),n===void 0&&(n=[]),i===void 0&&(i="");let o=(s,l,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(hr(d.relativePath.startsWith(i),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+i+'" is not val
8id. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(i.length));let f=fo([i,d.relativePath]),h=n.concat(d);s.children&&s.children.length>0&&(hr(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),m4(s.children,t,h,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:_9(f,s.index),routesMeta:h})};return e.forEach((s,l)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))o(s,l);else for(let d of g4(s.path))o(s,l,d)}),t}function g4(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return o?[s,""]:[s];let l=g4(i.join("/")),c=[];return c.push(...l.map(d=>d===""?s:[s,d].join("/"))),o&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function h9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:C9(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const m9=/^:[\w-]+$/,g9=3,v9=2,y9=1,w9=10,b9=-2,Nv=e=>e==="*";function _9(e,t){let n=e.split("/"),i=n.length;return n.some(Nv)&&(i+=b9),t&&(i+=v9),n.filter(o=>!Nv(o)).reduce((o,s)=>o+(m9.test(s)?g9:s===""?y9:w9),i)}function C9(e,t){return e.length===t.length&&e.slice(0,-1).every((i,o)=>i===t[o])?e[e.length-1]-t[t.length-1]:0}function x9(e,t,n){let{routesMeta:i}=e,o={},s="/",l=[];for(let c=0;c<i.length;++c){let d=i[c],f=c===i.length-1,h=s==="/"?t:t.slice(s.length)||"/",g=S9({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},h),w=d.route;if(!g)return null;
vendor: 7,075 bytes, line 8
8Object.assign(o,g.params),l.push({params:o,pathname:fo([s,g.pathname]),pathnameBase:M9(fo([s,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(s=fo([s,g.pathnameBase]))}return l}function S9(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=A9(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:i.reduce((f,h,g)=>{let{paramName:w,isOptional:m}=h;if(w==="*"){let _=c[g]||"";l=s.slice(0,s.length-_.length).replace(/(.)\/+$/,"$1")}const b=c[g];return m&&!b?f[w]=void 0:f[w]=(b||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function A9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),l0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(i.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),i]}function E9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return l0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function u0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}const k9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,T9=e=>k9.test(e);function P9(e,t){t===void 0&&(t="/");let{pathname:n,search:i="",hash:o=""}=typeof e=="string"?sl(e):e,s;if(n)if(T9(n))s=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),l0(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?s=Fv(n.substring(1),"/"):s=Fv(n,t)}else s=t;return{pathname:s,search:I9(i),hash:R9(o)}}function Fv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function op(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function L9(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function c0(e,t){let n=L9(e);return t?n.map((i,o)=>o===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function d0(e,t,n,i){i===void 0&&(i=!1);let o;typeof e=="string"?o=sl(e):(o=eu({},e),hr(!o.pathname||!o.pathname.includes("?"),op("?","pathname","search",o)),hr(!o.pathname||!o.pathname.includes("#"),op("#","pathname","hash",o)),hr(!o.search||!o.search.includes("#"),op("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,c;if(l==null)c=n;else{let g=t.length-1;if(!i&&l.startsWith("..")){let w=l.split("/");for(;w[0]==="..";)w.shift(),g-=1;o.pathname=w.join("/")}c=g>=0?t[g]:"/"}let d=P9(o,c),f=l&&l!=="/"&&l.endsWith("/"),h=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||h)&&(d.pathname+="/"),d}const fo=e=>e.join("/").replace(/\/\/+/g,"/"),M9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,R9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function j9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const v4=["post","put","patch","delete"];new Set(v4);const O9=["get",...v4];new Set(O9);function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},tu.apply(this,arguments)}const f0=z.createContext(null),N9=z.createContext(null),Eo=z.createContext(null),rf=z.createContext(null),ua=z.createContext({outlet:null,matches:[],isDataRoute:!1}),y4=z.createContext(null);function F9(e,t){let{relative:n}=t===void 0?{}:t;ll()||hr(!1);let{basename:i,navigator:o}=z.useContext(Eo),{hash:s,pathname:l,search:c}=b4(e,{relative:n}),d=l;return i!=="/"&&(d=l==="/"?i:fo([i,l])),o.createHref({pathname:d,search:c,hash:s})}function ll(){return z.useContext(rf)!=null}function ko(){return ll()||hr(!1),z.useContext(rf).location}function w4(e){z.useContext(Eo).static||z.useLayoutEffect(e)}function ca(){let{isDataRoute:e}=z.useContext(ua);return e?X9():D9()}function D9(){ll()||hr(!1);let e=z.useContext(f0),{basename:t,future:n,navigator:i}=z.useContext(Eo),{matches:o}=z.useContext(ua),{pathname:s}=ko(),l=JSON.stringify(c0(o,n.v7_relativeSplatPath)),c=z.useRef(!1);return w4(()=>{c.current=!0}),z.useCallback(function(f,h){if(h===void 0&&(h={}),!c.current)return;if(typeof f=="number"){i.go(f);return}let g=d0(f,JSON.parse(l),s,h.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:fo([t,g.pathname])),(h.replace?i.replace:i.push)(g,h.state,h)},[t,i,l,s,e])}const H9=z.createContext(null);function B9(e){let t=z.useContext(ua).outlet;return t&&z.createElement(H9.Provider,{value:e},t)}function G9(){let{matches:e}=z.useContext(ua),t=e[e.length-1];return t?t.params:{}}function b4(e,t){let{relative:n}=t===void 0?{}:t,{future:i}=z.useContext(Eo),{matches:o}=z.useContext(ua),{pathname:s}=ko(),l=JSON.stringify(c0(o,i.v7_relativeSplatPath));return z.useMemo(()=>d0(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function U9(e,t){return z9(e,t)}function z9(e,t,n,i){ll()||hr(!1);let{navigator:o}=z.useContext(Eo),{matches:s}=z.useContext(ua),l=s[s.length-1],c=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let f=ko(),h;if(t){var g;let C=typeof t=="string"?sl(t):t;d==="/"||(g=C.pathname)!=null&&g.startsWith(d)||hr(!1),h=C}else h=f;let w=h.pathname||"/",m=w;if(d!=="/"){let C=d.replace(/^\//,"").split("/");m="/"+w.replace(/^\//,"").split("/").slice(C.length).join("/")}let b=f9(e,{pathname:m}),_=Q9(b&&b.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:fo([d,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:fo([d,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,i);return t&&_?z.createElement(rf.Provider,{value:{location:tu({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:lo.Pop}},_):_}function V9(){let e=J9(),t=j9(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application
8Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},t),n?z.createElement("pre",{style:o},n):null,null)}const W9=z.createElement(V9,null);class q9 extends z.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?z.createElement(ua.Provider,{value:this.props.routeContext},z.createElement(y4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $9(e){let{routeContext:t,match:n,children:i}=e,o=z.useContext(f0);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),z.createElement(ua.Provider,{value:t},i)}function Q9(e,t,n,i){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),i===void 0&&(i=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=i)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,c=(o=n)==null?void 0:o.errors;if(c!=null){let h=l.findIndex(g=>g.route.id&&c?.[g.route.id]!==void 0);h>=0||hr(!1),l=l.slice(0,Math.min(l.length,h+1))}let d=!1,f=-1;if(n&&i&&i.v7_partialHydration)for(let h=0;h<l.length;h++){let g=l[h];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=h),g.route.id){let{loaderData:w,errors:m}=n,b=g.route.loader&&w[g.route.id]===void 0&&(!m||m[g.route.id]===void 0);if(g.route.lazy||b){d=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((h,g,w)=>{let m,b=!1,_=null,C=null;n&&(m=c&&g.route.id?c[g.route.id]:void 0,_=g.route.errorElement||W9,d&&(f<0&&w===0?(ew("route-fallback"),b=!0,C=null):f===w&&(b=!0,C=g.route.hydrateFallbackElement||null)));let R=t.concat(l.slice(0,w+1)),I=()=>{let k;return m?k=_:b?k=C:g.route.Component?k=z.createElement(g.route.Component,null):g.route.element?k=g.route.element:k=h,z.createElement($9,{match:g,routeContext:{outlet:h,matches:R,isDataRoute:n!=null},children:k})};return n&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?z.createElement(q9,{location:n.location,revalidation:n.revalidation,component:_,error:m,children:I(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):I()},null)}var _4=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(_4||{}),C4=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(C4||{});function Y9(e){let t=z.useContext(f0);return t||hr(!1),t}function Z9(e){let t=z.useContext(N9);return t||hr(!1),t}function K9(e){let t=z.useContext(ua);return t||hr(!1),t}function x4(e){let t=K9(),n=t.matches[t.matches.length-1];return n.route.id||hr(!1),n.route.id}function J9(){var e;let t=z.useContext(y4),n=Z9(),i=x4();return t!==void 0?t:(e=n.errors)==null?void 0:e[i]}function X9(){let{router:e}=Y9(_4.UseNavigateStable),t=x4(C4.UseNavigateStable),n=z.useRef(!1);return w4(()=>{n.current=!0}),z.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,tu({fromRouteId:t},s)))},[e,t])}const Dv={};function ew(e,t,n){Dv[e]||(Dv[e]=!0)}function tw(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function S4(e){let{to:t,replace:n,state:i,relative:o}=e;ll()||hr(!1);let{future:s,static:l}=z.useContext(Eo),{matches:c}=z.useContext(ua),{pathname:d}=ko(),f=ca(),h=d0(t,c0(c,s.v7_relativeSplatPath),d,o==="path"),g=JSON.stringify(h);return z.useEffect(()=>f(JSON.parse(g),{replace:n,state:i,relative:o}),[f,g,o,n,i]),null}function A4(e){return B9(e.context)}function Ta(e){hr(!1)}function nw(e){let{basename:t="/",children:n=null,location:i,navigationType:o=lo.Pop,navigator:s,static:l=!1,future:c}=e;
8ll()&&hr(!1);let d=t.replace(/^\/*/,"/"),f=z.useMemo(()=>({basename:d,navigator:s,static:l,future:tu({v7_relativeSplatPath:!1},c)}),[d,c,s,l]);typeof i=="string"&&(i=sl(i));let{pathname:h="/",search:g="",hash:w="",state:m=null,key:b="default"}=i,_=z.useMemo(()=>{let C=u0(h,d);return C==null?null:{location:{pathname:C,search:g,hash:w,state:m,key:b},navigationType:o}},[d,h,g,w,m,b,o]);return _==null?null:z.createElement(Eo.Provider,{value:f},z.createElement(rf.Provider,{children:n,value:_}))}function E4(e){let{children:t,location:n}=e;return U9(hh(t),n)}new Promise(()=>{});function hh(e,t){t===void 0&&(t=[]);let n=[];return z.Children.forEach(e,(i,o)=>{if(!z.isValidElement(i))return;let s=[...t,o];if(i.type===z.Fragment){n.push.apply(n,hh(i.props.children,s));return}i.type!==Ta&&hr(!1),!i.props.index||!i.props.children||hr(!1);let l={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(l.children=hh(i.props.children,s)),n.push(l)}),n}function mh(){return mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},mh.apply(this,arguments)}function rw(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,s;for(s=0;s<i.length;s++)o=i[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function iw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function aw(e,t){return e.button===0&&(!t||t==="_self")&&!iw(e)}function gh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let i=e[n];return t.concat(Array.isArray(i)?i.map(o=>[n,o]):[[n,i]])},[]))}function ow(e,t){let n=gh(e);return t&&t.forEach((i,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}const sw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lw="6";try{window.__reactRouterVersion=lw}catch{}const uw="startTransition",Hv=xd[uw];function cw(e){let{basename:t,children:n,future:i,window:o}=e,s=z.useRef();s.current==null&&(s.current=u9({window:o,v5Compat:!0}));let l=s.current,[c,d]=z.useState({action:l.action,location:l.location}),{v7_startTransition:f}=i||{},h=z.useCallback(g=>{f&&Hv?Hv(()=>d(g)):d(g)},[d,f]);return z.useLayoutEffect(()=>l.listen(h),[l,h]),z.useEffect(()=>tw(i),[i]),z.createElement(nw,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:i})}const dw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k4=z.forwardRef(function(t,n){let{onClick:i,relative:o,reloadDocument:s,replace:l,state:c,target:d,to:f,preventScrollReset:h,viewTransition:g}=t,w=rw(t,sw),{basename:m}=z.useContext(Eo),b,_=!1;if(typeof f=="string"&&fw.test(f)&&(b=f,dw))try{let k=new URL(window.location.href),A=f.startsWith("//")?new URL(k.protocol+f):new URL(f),L=u0(A.pathname,m);A.origin===k.origin&&L!=null?f=L+A.search+A.hash:_=!0}catch{}let C=F9(f,{relative:o}),R=pw(f,{replace:l,state:c,target:d,preventScrollReset:h,relative:o,viewTransition:g});function I(k){i&&i(k),k.defaultPrevented||R(k)}return z.createElement("a",mh({},w,{href:b||C,onClick:_||s?i:I,ref:n,target:d}))});var Bv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Bv||(Bv={}));var Gv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gv||(Gv={}));function pw(e,t){let{target:n,replace:i,state:o,preventScrollReset:s,relative:l,viewTransition:c}=t===void 0?{}:t,d=ca(),f=ko(),h=b4(e,{relative:l});return z.useCallback(g=>{if(aw(g,n)){g.preventDefault();let w=i!==void 0?i:Sd(f)===Sd(h);d(e,{replace:w,state:o,preventScrollReset:s,relative:l,viewTransition:c})}},[f,d,h,i,o,n,e,s,l,c])}function hw(e){let t=z.useRef(gh(e)),n=z.useRef(!1),i=ko(),o=z.useMemo(()=>ow(i.search,n.current?null:t.current),[i.search]),s=ca(),l=z.useCallback((c,d)=>{const f=gh(typeof c=="function"?c(o):c);n.current=!0,s("?"+f,d)},[s,o]);return[o,l]}const mw=z.createContext(null),sp={didCatch:!1,error:null};class gw extends z.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=sp}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,i,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{args:s,reason:"imperative-api"}),this.setState(sp)}}componentDidCatch(t,n){var i,o;(i=(o=this.props).onError)===null||i===void 0||i.call(o,t,n)}componentDidUpdate(t,n){const{didCatch:i}=this.state,{resetKeys:o}=this.props;if(i&&n.error!==null&&vw(t.resetKeys,o)){var s,l;(s=(l=this.props).onReset)===null||s===void 0||s.call(l,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(sp)}}render(){const{children:t,fallbackRender:n,FallbackComponent:i,fallback:o}=this.props,{didCatch:s,error:l}=this.state;let c=t;if(s){const d={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(i)c=z.createElement(i,d);else if(o===null||z.isValidElement(o))c=o;else throw l}return z.createElement(mw.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}}function vw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,i)=>!Object.is(n,t[i]))}const yw="/assets/error-BbM2oaYm.png",ia=({onClick:e,disabled:t,buttonText:n,subText:i,imgSrc:o,type:s="button",additionalClasses:l="",isDark:c=!0,showLoading:d=!1,buttonTextAdditionalClasses:f="",subTextAdditionalClasses:h="",imgAdditionalClasses:g=""})=>T.jsxs("button",{disabled:t,type:s,onClick:e,className:`relative flex items-center justify-center 9 ${t?"":"border-b-3"} 10 ${t?"bg-gray-300 text-white cursor-not-allowed":c?"bg-gradient-to-b from-btn-grad-start to-btn-grad-end hover:from-btn-grad-end hover:to-btn-grad-end":"bg-gradient-to-b from-btn-light-grad-start to-btn-light-grad-end hover:from-btn-light-grad-end hover:to-btn-light-grad-end"} 11 ${!t&&(c?"border-btn-shadow":"border-btn-light-shadow")} ring-inset
12 ${!t&&(c?"hover:ring-btn-shadow":"hover:ring-btn-light-shadow")} 13 ${t?"":c?"text-white":"text-black"} px-4 py-2 rounded-lg 14 font-semibold ${l} 15 ${d&&!t?"animate-pulse":""}`,children:[o&&T.jsx("img",{src:o,className:`object-cover ${g}`}),T.jsxs("div",{children:[T.jsx("span",{className:`${f}`,children:n}),i&&T.jsx("span",{className:`block text-sm mt-1 ${h}`,children:i})]})]}),T4=e=>{const[t,n]=z.useState(!1);return T.jsxs("div",{className:`flex flex-col justify-center items-center bg-brown-300 ${e.extraStyles}`,children:[T.jsxs("div",{className:"flex flex-row",children:[T.jsx("img",{className:"w-12",src:yw,alt:"Error"}),T.jsx("span",{className:"text-2xl mt-2",children:"Woops! An error occurred:"})]}),T.jsx("div",{className:"flex flex-row overflow-auto mt-2 p-4 bg-white rounded-lg",children:T.jsx("div",{className:"",children:e.error.message})}),e.error.stack&&T.jsxs("div",{className:"flex flex-col items-center mt-2",children:[T.jsxs("button",{className:"underline",onClick:()=>n(!t),children:[t?"Hide":"Show"," Details"]}),t&&T.jsx("div",{className:"mt-4 p-4 bg-white rounded-lg overflow-y-scroll h-1/4-screen w-1/4-screen",children:T.jsx("pre",{className:"whitespace-pre-wrap",children:e.error.stack})})]}),T.jsx("div",{className:"flex flex-row mt-8",children:T.jsx(ia,{buttonText:"Try Again",onClick:()=>window.location.reload()})})]})},ww=e=>T.jsx(T4,{error:e.error,extraStyles:"h-screen"});var lp={exports:{}},up={};var Uv;function bw(){if(Uv)return up;Uv=1;var e=wu();function t(g,w){return g===w&&(g!==0||1/g===1/w)||g!==g&&w!==w}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function c(g,w){var m=w(),b=i({inst:{value:m,getSnapshot:w}}),_=b[0].inst,C=b[1];return s(function(){_.value=m,_.getSnapshot=w,d(_)&&C({inst:_})},[g,m,w]),o(function(){return d(_)&&C({inst:_}),g(function(){d(_)&&C({inst:_})})},[g]),l(m),m}function d(g){var w=g.getSnapshot;g=g.value;try{var m=w();return!n(g,m)}catch{return!0}}function f(g,w){return w()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:c;return up.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,up}var zv;function P4(){return zv||(zv=1,lp.exports=bw()),lp.exports}P4();var cp={exports:{}},dp={};var Vv;function _w(){if(Vv)return dp;Vv=1;var e=wu(),t=P4();function n(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var i=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,c=e.useMemo,d=e.useDebugValue;return dp.useSyncExternalStoreWithSelector=function(f,h,g,w,m){var b=s(null);if(b.current===null){var _={hasValue:!1,value:null};b.current=_}else _=b.current;b=c(function(){function R(j){if(!I){if(I=!0,k=j,j=w(j),m!==void 0&&_.hasValue){var D=_.value;if(m(D,j))return A=D}return A=j}if(D=A,i(k,j))return D;var V=w(j);return m!==void 0&&m(D,V)?D:(k=j,A=V)}var I=!1,k,A,L=g===void 0?null:g;return[function(){return R(h())},L===null?void 0:function(){return R(L())}]},[h,g,w,m]);var C=o(f,b[0],b[1]);return l(function(){_.hasValue=!0,_.value=C},[C]),d(C),C},dp}var Wv;function Cw(){return Wv||(Wv=1,cp.exports=_w()),cp.exports}var xw=Cw();function Sw(e){e()}let L4=Sw;const Aw=e=>L4=e,Ew=()=>L4,ho=z.createContext(null);function M4(){return z.useContext(ho)}const kw=()=>{throw new Error("uSES not initialized!")};let I4=kw;const Tw=e=>{I4=e},Pw=(e,t)=>e===t;function Lw(e=ho){const t=e===ho?M4:()=>z.useContext(e);return function(i,o=Pw){const{store:s,subscription:l,getServerState:c}=t(),d=I4(l.addNestedSub,s.getState,c||s.getState,i,o);return z.useDebugValue(d),d}}const R4=Lw();var fp={exports:{}},jn={};var qv;function Mw(){if(qv)return jn;qv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function k(L){if(typeof L=="object"&&L!==null){var j=L.$$typeof;switch(j){case t:switch(L=L.type,L){case d:case f:case i:case s:case o:case g:return L;default:switch(L=L&&L.$$typeof,L){case c:case h:case b:case m:case l:return L;default:return j}}case n:return j}}}function A(L){return k(L)===f}return jn.AsyncMode=d,jn.ConcurrentMode=f,jn.ContextConsumer=c,jn.ContextProvider=l,jn.Element=t,jn.ForwardRef=h,jn.Fragment=i,jn.Lazy=b,jn.Memo=m,jn.Portal=n,jn.Profiler=s,jn.StrictMode=o,jn.Suspense=g,jn.isA
15syncMode=function(L){return A(L)||k(L)===d},jn.isConcurrentMode=A,jn.isContextConsumer=function(L){return k(L)===c},jn.isContextProvider=function(L){return k(L)===l},jn.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===t},jn.isForwardRef=function(L){return k(L)===h},jn.isFragment=function(L){return k(L)===i},jn.isLazy=function(L){return k(L)===b},jn.isMemo=function(L){return k(L)===m},jn.isPortal=function(L){return k(L)===n},jn.isProfiler=function(L){return k(L)===s},jn.isStrictMode=function(L){return k(L)===o},jn.isSuspense=function(L){return k(L)===g},jn.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===i||L===f||L===s||L===o||L===g||L===w||typeof L=="object"&&L!==null&&(L.$$typeof===b||L.$$typeof===m||L.$$typeof===l||L.$$typeof===c||L.$$typeof===h||L.$$typeof===C||L.$$typeof===R||L.$$typeof===I||L.$$typeof===_)},jn.typeOf=k,jn}var $v;function Iw(){return $v||($v=1,fp.exports=Mw()),fp.exports}var pp,Qv;function Rw(){if(Qv)return pp;Qv=1;var e=Iw(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=o;function l(b){return e.isMemo(b)?o:s[b.$$typeof]||t}var c=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,w=Object.prototype;function m(b,_,C){if(typeof _!="string"){if(w){var R=g(_);R&&R!==w&&m(b,R,C)}var I=d(_);f&&(I=I.concat(f(_)));for(var k=l(b),A=l(_),L=0;L<I.length;++L){var j=I[L];if(!n[j]&&!(C&&C[j])&&!(A&&A[j])&&!(k&&k[j])){var D=h(_,j);try{c(b,j,D)}catch{}}}}return b}return pp=m,pp}Rw();var hp={exports:{}},On={};var Yv;function jw(){if(Yv)return On;Yv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function _(C){if(typeof C=="object"&&C!==null){var R=C.$$typeof;switch(R){case e:switch(C=C.type,C){case n:case o:case i:case f:case h:return C;default:switch(C=C&&C.$$typeof,C){case c:case l:case d:case w:case g:case s:return C;default:return R}}case t:return R}}}return On.ContextConsumer=l,On.ContextProvider=s,On.Element=e,On.ForwardRef=d,On.Fragment=n,On.Lazy=w,On.Memo=g,On.Portal=t,On.Profiler=o,On.StrictMode=i,On.Suspense=f,On.SuspenseList=h,On.isAsyncMode=function(){return!1},On.isConcurrentMode=function(){return!1},On.isContextConsumer=function(C){return _(C)===l},On.isContextProvider=function(C){return _(C)===s},On.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},On.isForwardRef=function(C){return _(C)===d},On.isFragment=function(C){return _(C)===n},On.isLazy=function(C){return _(C)===w},On.isMemo=function(C){return _(C)===g},On.isPortal=function(C){return _(C)===t},On.isProfiler=function(C){return _(C)===o},On.isStrictMode=function(C){return _(C)===i},On.isSuspense=function(C){return _(C)===f},On.isSuspenseList=function(C){return _(C)===h},On.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===o||C===i||C===f||C===h||C===m||typeof C=="object"&&C!==null&&(C.$$typeof===w||C.$$typeof===g||C.$$typeof===s||C.$$typeof===l||C.$$typeof===d||C.$$typeof===b||C.getModuleId!==void 0)},On.typeOf=_,On}var Zv;function Ow(){return Zv||(Zv=1,hp.exports=jw()),hp.exports}Ow();function Nw(){const e=Ew();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],o=t;for(;o;)i.push(o),o=o.next;return i},subscribe(i){let o=!0,s=n={callback:i,next:null,prev:n};return s.prev?s.prev.next=s:t=s,function(){!o||t===null||(o=!1,s.next?s.next.prev=s.prev:n=s.prev,s.prev?s.prev.next=s.next:t=s.next)}}}}const Kv={notify(){},get:()=>[]};function Fw(e,t){let n,i=Kv;function o(g){return d(),i.subscribe(g)}function s(){i.notify()}function l(){h.onStateChange&&h.onStateChange()}function c(){return!!n}function d(){n||(n=e.subscribe(l),i=Nw())}function f(){n&&(n(),n=void 0,i.clear(),i=Kv)}const h={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:f,getListeners:()=>i};return h}const Dw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Hw=Dw?z.useLayoutEffect:z.useEffect;function Jv(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Ad(e,t){if(Jv(e,t))return!0;
15if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!Jv(e[n[o]],t[n[o]]))return!1;return!0}function Bw({store:e,context:t,children:n,serverState:i}){const o=z.useMemo(()=>{const c=Fw(e);return{store:e,subscription:c,getServerState:i?()=>i:void 0}},[e,i]),s=z.useMemo(()=>e.getState(),[e]);Hw(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const l=t||ho;return x.createElement(l.Provider,{value:o},n)}function j4(e=ho){const t=e===ho?M4:()=>z.useContext(e);return function(){const{store:i}=t();return i}}const O4=j4();function Gw(e=ho){const t=e===ho?O4:j4(e);return function(){return t().dispatch}}const Ri=Gw();Tw(xw.useSyncExternalStoreWithSelector);Aw(s0.unstable_batchedUpdates);function Rr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vi(e){return!!e&&!!e[Zn]}function $i(e){var t;return!!e&&((function(n){if(!n||typeof n!="object")return!1;var i=Object.getPrototypeOf(n);if(i===null)return!0;var o=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Yw})(e)||Array.isArray(e)||!!e[Yl]||!!(!((t=e.constructor)===null||t===void 0)&&t[Yl])||af(e)||of(e))}function Uw(e){return vi(e)||Rr(23,e),e[Zn].t}function mo(e,t,n){n===void 0&&(n=!1),go(e)===0?(n?Object.keys:Hs)(e).forEach((function(i){n&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,o){return t(o,i,e)}))}function go(e){var t=e[Zn];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:af(e)?2:of(e)?3:0}function po(e,t){return go(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function td(e,t){return go(e)===2?e.get(t):e[t]}function N4(e,t,n){var i=go(e);i===2?e.set(t,n):i===3?(e.delete(t),e.add(n)):e[t]=n}function F4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function af(e){return $w&&e instanceof Map}function of(e){return Qw&&e instanceof Set}function Qo(e){return e.o||e.t}function p0(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=H4(e);delete t[Zn];for(var n=Hs(t),i=0;i<n.length;i++){var o=n[i],s=t[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function sf(e,t){return t===void 0&&(t=!1),h0(e)||vi(e)||!$i(e)||(go(e)>1&&(e.set=e.add=e.clear=e.delete=zw),Object.freeze(e),t&&mo(e,(function(n,i){return sf(i,!0)}),!0)),e}function zw(){Rr(2)}function h0(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function aa(e){var t=bh[e];return t||Rr(18,e),t}function D4(e,t){bh[e]||(bh[e]=t)}function vh(){return nu}function mp(e,t){t&&(aa("Patches"),e.u=[],e.s=[],e.v=t)}function Ed(e){yh(e),e.p.forEach(Vw),e.p=null}function yh(e){e===nu&&(nu=e.l)}function Xv(e){return nu={p:[],l:nu,h:e,m:!0,_:0}}function Vw(e){var t=e[Zn];t.i===0||t.i===1?t.j():t.O=!0}function gp(e,t){t._=t.p.length;var n=t.p[0],i=e!==void 0&&e!==n;return t.h.g||aa("ES5").S(t,e,i),i?(n[Zn].P&&(Ed(t),Rr(4)),$i(e)&&(e=kd(t,e),t.l||Td(t,e)),t.u&&aa("Patches").M(n[Zn].t,e,t.u,t.s)):e=kd(t,n,[]),Ed(t),t.u&&t.v(t.u,t.s),e!==v0?e:void 0}function kd(e,t,n){if(h0(t))return t;var i=t[Zn];if(!i)return mo(t,(function(s,l){return e2(e,i,t,s,l,n)}),!0),t;if(i.A!==e)return t;if(!i.P)return Td(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=i.i===4||i.i===5?i.o=p0(i.k):i.o;mo(i.i===3?new Set(o):o,(function(s,l){return e2(e,i,o,s,l,n)})),Td(e,o,!1),n&&e.u&&aa("Patches").R(i,n,e.u,e.s)}return i.o}function e2(e,t,n,i,o,s){if(vi(o)){var l=kd(e,o,s&&t&&t.i!==3&&!po(t.D,i)?s.concat(i):void 0);if(N4(n,i,l),!vi(l))return;e.m=!1}if($i(o)&&!h0(o)){if(!e.h.F&&e._<1)return;kd(e,o),t&&t.A.l||Td(e,o)}}function Td(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&sf(t,n)}function vp(e,t){var n=e[Zn];return(n?Qo(n):e)[t]}function t2(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function oo(e){e.P||(e.P=!0,e.l&&oo(e.l))}function yp(e){e.o||(e.o=p0(e.t))}
15function wh(e,t,n){var i=af(t)?aa("MapSet").N(t,n):of(t)?aa("MapSet").T(t,n):e.g?(function(o,s){var l=Array.isArray(o),c={i:l?1:0,A:s?s.A:vh(),P:!1,I:!1,D:{},l:s,t:o,k:null,o:null,j:null,C:!1},d=c,f=ru;l&&(d=[c],f=ql);var h=Proxy.revocable(d,f),g=h.revoke,w=h.proxy;return c.k=w,c.j=g,w})(t,n):aa("ES5").J(t,n);return(n?n.A:vh()).p.push(i),i}function m0(e){return vi(e)||Rr(22,e),(function t(n){if(!$i(n))return n;var i,o=n[Zn],s=go(n);if(o){if(!o.P&&(o.i<4||!aa("ES5").K(o)))return o.t;o.I=!0,i=n2(n,s),o.I=!1}else i=n2(n,s);return mo(i,(function(l,c){o&&td(o.t,l)===c||N4(i,l,t(c))})),s===3?new Set(i):i})(e)}function n2(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p0(e)}function Ww(){function e(s,l){var c=o[s];return c?c.enumerable=l:o[s]=c={configurable:!0,enumerable:l,get:function(){var d=this[Zn];return ru.get(d,s)},set:function(d){var f=this[Zn];ru.set(f,s,d)}},c}function t(s){for(var l=s.length-1;l>=0;l--){var c=s[l][Zn];if(!c.P)switch(c.i){case 5:i(c)&&oo(c);break;case 4:n(c)&&oo(c)}}}function n(s){for(var l=s.t,c=s.k,d=Hs(c),f=d.length-1;f>=0;f--){var h=d[f];if(h!==Zn){var g=l[h];if(g===void 0&&!po(l,h))return!0;var w=c[h],m=w&&w[Zn];if(m?m.t!==g:!F4(w,g))return!0}}var b=!!l[Zn];return d.length!==Hs(l).length+(b?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var d=0;d<l.length;d++)if(!l.hasOwnProperty(d))return!0;return!1}var o={};D4("ES5",{J:function(s,l){var c=Array.isArray(s),d=(function(h,g){if(h){for(var w=Array(g.length),m=0;m<g.length;m++)Object.defineProperty(w,""+m,e(m,!0));return w}var b=H4(g);delete b[Zn];for(var _=Hs(b),C=0;C<_.length;C++){var R=_[C];b[R]=e(R,h||!!b[R].enumerable)}return Object.create(Object.getPrototypeOf(g),b)})(c,s),f={i:c?5:4,A:l?l.A:vh(),P:!1,I:!1,D:{},l,t:s,k:d,o:null,O:!1,C:!1};return Object.defineProperty(d,Zn,{value:f,writable:!0}),d},S:function(s,l,c){c?vi(l)&&l[Zn].A===s&&t(s.p):(s.u&&(function d(f){if(f&&typeof f=="object"){var h=f[Zn];if(h){var g=h.t,w=h.k,m=h.D,b=h.i;if(b===4)mo(w,(function(k){k!==Zn&&(g[k]!==void 0||po(g,k)?m[k]||d(w[k]):(m[k]=!0,oo(h)))})),mo(g,(function(k){w[k]!==void 0||po(w,k)||(m[k]=!1,oo(h))}));else if(b===5){if(i(h)&&(oo(h),m.length=!0),w.length<g.length)for(var _=w.length;_<g.length;_++)m[_]=!1;else for(var C=g.length;C<w.length;C++)m[C]=!0;for(var R=Math.min(w.length,g.length),I=0;I<R;I++)w.hasOwnProperty(I)||(m[I]=!0),m[I]===void 0&&d(w[I])}}}})(s.p[0]),t(s.p))},K:function(s){return s.i===4?n(s):i(s)}})}function qw(){function e(i){if(!$i(i))return i;if(Array.isArray(i))return i.map(e);if(af(i))return new Map(Array.from(i.entries()).map((function(l){return[l[0],e(l[1])]})));if(of(i))return new Set(Array.from(i).map(e));var o=Object.create(Object.getPrototypeOf(i));for(var s in i)o[s]=e(i[s]);return po(i,Yl)&&(o[Yl]=i[Yl]),o}function t(i){return vi(i)?e(i):i}var n="add";D4("Patches",{$:function(i,o){return o.forEach((function(s){for(var l=s.path,c=s.op,d=i,f=0;f<l.length-1;f++){var h=go(d),g=""+l[f];h!==0&&h!==1||g!=="__proto__"&&g!=="constructor"||Rr(24),typeof d=="function"&&g==="prototype"&&Rr(24),typeof(d=td(d,g))!="object"&&Rr(15,l.join("/"))}var w=go(d),m=e(s.value),b=l[l.length-1];switch(c){case"replace":switch(w){case 2:return d.set(b,m);case 3:Rr(16);default:return d[b]=m}case n:switch(w){case 1:return b==="-"?d.push(m):d.splice(b,0,m);case 2:return d.set(b,m);case 3:return d.add(m);default:return d[b]=m}case"remove":switch(w){case 1:return d.splice(b,1);case 2:return d.delete(b);case 3:return d.delete(s.value);default:return delete d[b]}default:Rr(17,c)}})),i},R:function(i,o,s,l){switch(i.i){case 0:case 4:case 2:return(function(c,d,f,h){var g=c.t,w=c.o;mo(c.D,(function(m,b){var _=td(g,m),C=td(w,m),R=b?po(g,m)?"replace":n:"remove";if(_!==C||R!=="replace"){var I=d.concat(m);f.push(R==="remove"?{op:R,path:I}:{op:R,path:I,value:C}),h.push(R===n?{op:"remove",path:I}:R==="remove"?{op:n,path:I,value:t(_)}:{op:"replace",path:I,value:t(_)})}}))})(i,o,s,l);case 5:case 1:return(function(c,d,f,h){var g=c.t,w=c.D,m=c.o;if(m.length<g.length){var b=[m,g];g=b[0],m=b[1];var _=[h,f];f=_[0],h=_[1]}for(var C=0;C<g.length;C++)if(w[C]&&m[C]!==g[C]){var R=d.concat([C]);f.push({op:"replace",path:R,value:t(m[C])}),h.push({op:"replace",path:R,value:t(g[C])})}for(var I=g.length;I<m.length;I++){var k=d.concat([I]);f.push({op:n,path:k,value:t(m[I])})}g.length<m.length&&h.push({op:"replace",path:d.concat(["length"]),value:g.length})})(i,o,s,l);case 3:return(function(c,d,f,h){var g=c.t,w=c.o,m=0;g.forEach((function(b){if(!w.has(b)){var _=d.concat([m]);f.push({op:"remove",path:_,value:b}),h.unshift({op:n,path:_,value:b})}m++}
15)),m=0,w.forEach((function(b){if(!g.has(b)){var _=d.concat([m]);f.push({op:n,path:_,value:b}),h.unshift({op:"remove",path:_,value:b})}m++}))})(i,o,s,l)}},M:function(i,o,s,l){s.push({op:"replace",path:[],value:o===v0?void 0:o}),l.push({op:"replace",path:[],value:i})}})}var r2,nu,g0=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$w=typeof Map<"u",Qw=typeof Set<"u",i2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",v0=g0?Symbol.for("immer-nothing"):((r2={})["immer-nothing"]=!0,r2),Yl=g0?Symbol.for("immer-draftable"):"__$immer_draftable",Zn=g0?Symbol.for("immer-state"):"__$immer_state",Yw=""+Object.prototype.constructor,Hs=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,H4=Object.getOwnPropertyDescriptors||function(e){var t={};return Hs(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},bh={},ru={get:function(e,t){if(t===Zn)return e;var n=Qo(e);if(!po(n,t))return(function(o,s,l){var c,d=t2(s,l);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(o.k):void 0})(e,n,t);var i=n[t];return e.I||!$i(i)?i:i===vp(e.t,t)?(yp(e),e.o[t]=wh(e.A.h,i,e)):i},has:function(e,t){return t in Qo(e)},ownKeys:function(e){return Reflect.ownKeys(Qo(e))},set:function(e,t,n){var i=t2(Qo(e),t);if(i?.set)return i.set.call(e.k,n),!0;if(!e.P){var o=vp(Qo(e),t),s=o?.[Zn];if(s&&s.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(F4(n,o)&&(n!==void 0||po(e.t,t)))return!0;yp(e),oo(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return vp(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,yp(e),oo(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Qo(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty:function(){Rr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Rr(12)}},ql={};mo(ru,(function(e,t){ql[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ql.deleteProperty=function(e,t){return ql.set.call(this,e,t,void 0)},ql.set=function(e,t,n){return ru.set.call(this,e[0],t,n,e[0])};var Zw=(function(){function e(n){var i=this;this.g=i2,this.F=!0,this.produce=function(o,s,l){if(typeof o=="function"&&typeof s!="function"){var c=s;s=o;var d=i;return function(_){var C=this;_===void 0&&(_=c);for(var R=arguments.length,I=Array(R>1?R-1:0),k=1;k<R;k++)I[k-1]=arguments[k];return d.produce(_,(function(A){var L;return(L=s).call.apply(L,[C,A].concat(I))}))}}var f;if(typeof s!="function"&&Rr(6),l!==void 0&&typeof l!="function"&&Rr(7),$i(o)){var h=Xv(i),g=wh(i,o,void 0),w=!0;try{f=s(g),w=!1}finally{w?Ed(h):yh(h)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(_){return mp(h,l),gp(_,h)}),(function(_){throw Ed(h),_})):(mp(h,l),gp(f,h))}if(!o||typeof o!="object"){if((f=s(o))===void 0&&(f=o),f===v0&&(f=void 0),i.F&&sf(f,!0),l){var m=[],b=[];aa("Patches").M(o,f,m,b),l(m,b)}return f}Rr(21,o)},this.produceWithPatches=function(o,s){if(typeof o=="function")return function(f){for(var h=arguments.length,g=Array(h>1?h-1:0),w=1;w<h;w++)g[w-1]=arguments[w];return i.produceWithPatches(f,(function(m){return o.apply(void 0,[m].concat(g))}))};var l,c,d=i.produce(o,s,(function(f,h){l=f,c=h}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(f){return[f,l,c]})):[d,l,c]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){$i(n)||Rr(8),vi(n)&&(n=m0(n));var i=Xv(this),o=wh(this,n,void 0);return o[Zn].C=!0,yh(i),o},t.finishDraft=function(n,i){var o=n&&n[Zn],s=o.A;return mp(s,i),gp(void 0,s)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!i2&&Rr(20),this.g=n},t.applyPatches=function(n,i){var o;for(o=i.length-1;o>=0;o--){var s=i[o];if(s.path.length===0&&s.op==="replace"){n=s.value;break}}o>-1&&(i=i.slice(o+1));var l=aa("Patches").$;return vi(n)?l(n,i):this.produce(n,(function(c){return l(c,i)}))},e})(),yi=new Zw,cs=yi.produce,B4=yi.produceWithPatches.bind(yi);yi.setAutoFreeze.bind(yi);yi.setUseProxies.bind(yi);var a2=yi.applyPatches.bind(yi);yi.createDraft.bind(yi);yi.finishDraft.bind(yi);function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function Kw(e,t){if(iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(iu(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jw(e){var t=Kw(e,"string");return iu(t)=="symbol"?t:t+""}function Xw(e,t,n){return(t=Jw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function s2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
15t%2?o2(Object(n),!0).forEach(function(i){Xw(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o2(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ir(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var l2=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),wp=function(){return Math.random().toString(36).substring(7).split("").join(".")},au={INIT:"@@redux/INIT"+wp(),REPLACE:"@@redux/REPLACE"+wp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wp()}};function eb(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function lf(e,t,n){var i;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ir(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ir(1));return n(lf)(e,t)}if(typeof e!="function")throw new Error(Ir(2));var o=e,s=t,l=[],c=l,d=!1;function f(){c===l&&(c=l.slice())}function h(){if(d)throw new Error(Ir(3));return s}function g(_){if(typeof _!="function")throw new Error(Ir(4));if(d)throw new Error(Ir(5));var C=!0;return f(),c.push(_),function(){if(C){if(d)throw new Error(Ir(6));C=!1,f();var I=c.indexOf(_);c.splice(I,1),l=null}}}function w(_){if(!eb(_))throw new Error(Ir(7));if(typeof _.type>"u")throw new Error(Ir(8));if(d)throw new Error(Ir(9));try{d=!0,s=o(s,_)}finally{d=!1}for(var C=l=c,R=0;R<C.length;R++){var I=C[R];I()}return _}function m(_){if(typeof _!="function")throw new Error(Ir(10));o=_,w({type:au.REPLACE})}function b(){var _,C=g;return _={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Ir(11));function k(){I.next&&I.next(h())}k();var A=C(k);return{unsubscribe:A}}},_[l2]=function(){return this},_}return w({type:au.INIT}),i={dispatch:w,subscribe:g,getState:h,replaceReducer:m},i[l2]=b,i}var tb=lf;function nb(e){Object.keys(e).forEach(function(t){var n=e[t],i=n(void 0,{type:au.INIT});if(typeof i>"u")throw new Error(Ir(12));if(typeof n(void 0,{type:au.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ir(13))})}function y0(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var o=t[i];typeof e[o]=="function"&&(n[o]=e[o])}var s=Object.keys(n),l;try{nb(n)}catch(c){l=c}return function(d,f){if(d===void 0&&(d={}),l)throw l;for(var h=!1,g={},w=0;w<s.length;w++){var m=s[w],b=n[m],_=d[m],C=b(_,f);if(typeof C>"u")throw f&&f.type,new Error(Ir(14));g[m]=C,h=h||C!==_}return h=h||s.length!==Object.keys(d).length,h?g:d}}function u2(e,t){return function(){return t(e.apply(this,arguments))}}function rb(e,t){if(typeof e=="function")return u2(e,t);if(typeof e!="object"||e===null)throw new Error(Ir(16));var n={};for(var i in e){var o=e[i];typeof o=="function"&&(n[i]=u2(o,t))}return n}function ou(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,o){return function(){return i(o.apply(void 0,arguments))}})}function G4(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return function(){var o=i.apply(void 0,arguments),s=function(){throw new Error(Ir(15))},l={getState:o.getState,dispatch:function(){return s.apply(void 0,arguments)}},c=t.map(function(d){return d(l)});return s=ou.apply(void 0,c)(o.dispatch),s2(s2({},o),{},{dispatch:s})}}}var Pd="NOT_FOUND";function ib(e){var t;return{get:function(i){return t&&e(t.key,i)?t.value:Pd},put:function(i,o){t={key:i,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function ab(e,t){var n=[];function i(c){var d=n.findIndex(function(h){return t(c,h.key)});if(d>-1){var f=n[d];return d>0&&(n.splice(d,1),n.unshift(f)),f.value}return Pd}function o(c,d){i(c)===Pd&&(n.unshift({key:c,value:d}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:i,put:o,getEntries:s,clear:l}}var U4=function(t,n){return t===n};
15function ob(e){return function(n,i){if(n===null||i===null||n.length!==i.length)return!1;for(var o=n.length,s=0;s<o;s++)if(!e(n[s],i[s]))return!1;return!0}}function Ld(e,t){var n=typeof t=="object"?t:{equalityCheck:t},i=n.equalityCheck,o=i===void 0?U4:i,s=n.maxSize,l=s===void 0?1:s,c=n.resultEqualityCheck,d=ob(o),f=l===1?ib(d):ab(l,d);function h(){var g=f.get(arguments);if(g===Pd){if(g=e.apply(null,arguments),c){var w=f.getEntries(),m=w.find(function(b){return c(b.value,g)});m&&(g=m.value)}f.put(arguments,g)}return g}return h.clearCache=function(){return f.clear()},h}function sb(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(i){return typeof i=="function"})){var n=t.map(function(i){return typeof i=="function"?"function "+(i.name||"unnamed")+"()":typeof i}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function z4(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=function(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var f=0,h,g={memoizeOptions:void 0},w=c.pop();if(typeof w=="object"&&(g=w,w=c.pop()),typeof w!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof w+"]");var m=g,b=m.memoizeOptions,_=b===void 0?n:b,C=Array.isArray(_)?_:[_],R=sb(c),I=e.apply(void 0,[function(){return f++,w.apply(null,arguments)}].concat(C)),k=e(function(){for(var L=[],j=R.length,D=0;D<j;D++)L.push(R[D].apply(null,arguments));return h=I.apply(null,L),h});return Object.assign(k,{resultFunc:w,memoizedResultFunc:I,dependencies:R,lastResult:function(){return h},recomputations:function(){return f},resetRecomputations:function(){return f=0}}),k};return o}var Ra=z4(Ld),lb=function(t,n){if(n===void 0&&(n=Ra),typeof t!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof t));var i=Object.keys(t),o=n(i.map(function(s){return t[s]}),function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return l.reduce(function(d,f,h){return d[i[h]]=f,d},{})});return o};const ub=Object.freeze(Object.defineProperty({__proto__:null,createSelector:Ra,createSelectorCreator:z4,createStructuredSelector:lb,defaultEqualityCheck:U4,defaultMemoize:Ld},Symbol.toStringTag,{value:"Module"}));function V4(e){var t=function(i){var o=i.dispatch,s=i.getState;return function(l){return function(c){return typeof c=="function"?c(o,s,e):l(c)}}};return t}var _h=V4();_h.withExtraArgument=V4;var cb=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),bu=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(f){return function(h){return d([f,h])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,o&&(s=f[0]&2?o.return:f[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,f[1])).done)return s;switch(o=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){n.label=f[1];break}if(f[0]===6&&n.label<s[1]){n.label=s[1],s=f;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(f);break}s[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(h){f=[6,h],o=0}finally{i=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},$s=function(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e},db=Object.defineProperty,fb=Object.defineProperties,pb=Object.getOwnPropertyDescriptors,c2=Object.getOwnPropertySymbols,hb=Object.prototype.hasOwnProperty,mb=Object.prototype.propertyIsEnumerable,d2=function(e,t,n){return t in e?db(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},oi=function(e,t){for(var n in t||(t={}))hb.call(t,n)&&d2(e,n,t[n]);if(c2)for(var i=0,o=c2(t);i<o.length;i++){var n=o[i];mb.call(t,n)&&d2(e,n,t[n])}return e},bp=function(e,t){return fb(e,pb(t))},_u=function(e,t,n){return new Promise(function(i,o){var s=function(d){try{c(n.next(d))}catch(f){o(f)}},l=function(d){try{c(n.throw(d))}catch(f){o(f)}},c=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(s,l)};c((n=n.apply(e,t)).next())})},Ea=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ra.apply(void 0,e),i=function(o){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];
15return n.apply(void 0,$s([vi(o)?m0(o):o],s))};return i},gb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ou:ou.apply(null,arguments)};function Ha(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var W4=(function(e){cb(t,e);function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,$s([void 0],n[0].concat(this)))):new(t.bind.apply(t,$s([void 0],n.concat(this))))},t})(Array);function Ch(e){return $i(e)?cs(e,function(){}):e}function vb(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function yb(e){return function(){return function(t){return function(n){return t(n)}}}}function q4(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Ha(e)}function $4(e,t,n,i,o){t===void 0&&(t=""),n===void 0&&(n=q4),o===void 0&&(o=[]);var s;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var l=i!=null?i(e):Object.entries(e),c=o.length>0,d=0,f=l;d<f.length;d++){var h=f[d],g=h[0],w=h[1],m=t?t+"."+g:g;if(!(c&&o.indexOf(m)>=0)){if(!n(w))return{keyPath:m,value:w};if(typeof w=="object"&&(s=$4(w,m,n,i,o),s))return s}}return!1}function wb(e){return function(){return function(t){return function(n){return t(n)}}}}function bb(e){return typeof e=="boolean"}function _b(){return function(t){return Q4(t)}}function Q4(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck;var i=new W4;return n&&(bb(n)?i.push(_h):i.push(_h.withExtraArgument(n.extraArgument))),i}function Y4(e){var t=_b(),n=e||{},i=n.reducer,o=i===void 0?void 0:i,s=n.middleware,l=s===void 0?t():s,c=n.devTools,d=c===void 0?!0:c,f=n.preloadedState,h=f===void 0?void 0:f,g=n.enhancers,w=g===void 0?void 0:g,m;if(typeof o=="function")m=o;else if(Ha(o))m=y0(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=l;typeof b=="function"&&(b=b(t));var _=G4.apply(void 0,b),C=ou;d&&(C=gb(oi({trace:!1},typeof d=="object"&&d)));var R=[_];Array.isArray(w)?R=$s([_],w):typeof w=="function"&&(R=w(R));var I=C.apply(void 0,R);return lf(m,h,I)}function Ur(e,t){function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(t){var s=t.apply(void 0,i);if(!s)throw new Error("prepareAction did not return an object");return oi(oi({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:i[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(i){return i.type===e},n}function Cb(e){return Ha(e)&&typeof e.type=="string"&&Object.keys(e).every(xb)}function xb(e){return["type","payload","error","meta"].indexOf(e)>-1}function Sb(e){return""+e}function Z4(e){var t={},n=[],i,o={addCase:function(s,l){var c=typeof s=="string"?s:s.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=l,o},addMatcher:function(s,l){return n.push({matcher:s,reducer:l}),o},addDefaultCase:function(s){return i=s,o}};return e(o),[t,n,i]}function Ab(e){return typeof e=="function"}function K4(e,t,n,i){n===void 0&&(n=[]);var o=typeof t=="function"?Z4(t):[t,n,i],s=o[0],l=o[1],c=o[2],d;if(Ab(e))d=function(){return Ch(e())};else{var f=Ch(e);d=function(){return f}}function h(g,w){g===void 0&&(g=d());var m=$s([s[w.type]],l.filter(function(b){var _=b.matcher;return _(w)}).map(function(b){var _=b.reducer;return _}));return m.filter(function(b){return!!b}
15).length===0&&(m=[c]),m.reduce(function(b,_){if(_)if(vi(b)){var C=b,R=_(C,w);return R===void 0?b:R}else{if($i(b))return cs(b,function(I){return _(I,w)});var R=_(b,w);if(R===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return b},g)}return h.getInitialState=d,h}function Eb(e,t){return e+"/"+t}function Wi(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n=typeof e.initialState=="function"?e.initialState:Ch(e.initialState),i=e.reducers||{},o=Object.keys(i),s={},l={},c={};o.forEach(function(h){var g=i[h],w=Eb(t,h),m,b;"reducer"in g?(m=g.reducer,b=g.prepare):m=g,s[h]=m,l[w]=m,c[h]=b?Ur(w,b):Ur(w)});function d(){var h=typeof e.extraReducers=="function"?Z4(e.extraReducers):[e.extraReducers],g=h[0],w=g===void 0?{}:g,m=h[1],b=m===void 0?[]:m,_=h[2],C=_===void 0?void 0:_,R=oi(oi({},w),l);return K4(n,function(I){for(var k in R)I.addCase(k,R[k]);for(var A=0,L=b;A<L.length;A++){var j=L[A];I.addMatcher(j.matcher,j.reducer)}C&&I.addDefaultCase(C)})}var f;return{name:t,reducer:function(h,g){return f||(f=d()),f(h,g)},actions:c,caseReducers:s,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function kb(){return{ids:[],entities:{}}}function Tb(){function e(t){return t===void 0&&(t={}),Object.assign(kb(),t)}return{getInitialState:e}}function Pb(){function e(t){var n=function(f){return f.ids},i=function(f){return f.entities},o=Ea(n,i,function(f,h){return f.map(function(g){return h[g]})}),s=function(f,h){return h},l=function(f,h){return f[h]},c=Ea(n,function(f){return f.length});if(!t)return{selectIds:n,selectEntities:i,selectAll:o,selectTotal:c,selectById:Ea(i,s,l)};var d=Ea(t,i);return{selectIds:Ea(t,n),selectEntities:d,selectAll:Ea(t,o),selectTotal:Ea(t,c),selectById:Ea(d,s,l)}}return{getSelectors:e}}function Lb(e){var t=fr(function(n,i){return e(i)});return function(i){return t(i,void 0)}}function fr(e){return function(n,i){function o(l){return Cb(l)}var s=function(l){o(i)?e(i.payload,l):e(i,l)};return vi(n)?(s(n),n):cs(n,s)}}function Zl(e,t){var n=t(e);return n}function es(e){return Array.isArray(e)||(e=Object.values(e)),e}function J4(e,t,n){e=es(e);for(var i=[],o=[],s=0,l=e;s<l.length;s++){var c=l[s],d=Zl(c,t);d in n.entities?o.push({id:d,changes:c}):i.push(c)}return[i,o]}function X4(e){function t(b,_){var C=Zl(b,e);C in _.entities||(_.ids.push(C),_.entities[C]=b)}function n(b,_){b=es(b);for(var C=0,R=b;C<R.length;C++){var I=R[C];t(I,_)}}function i(b,_){var C=Zl(b,e);C in _.entities||_.ids.push(C),_.entities[C]=b}function o(b,_){b=es(b);for(var C=0,R=b;C<R.length;C++){var I=R[C];i(I,_)}}function s(b,_){b=es(b),_.ids=[],_.entities={},n(b,_)}function l(b,_){return c([b],_)}function c(b,_){var C=!1;b.forEach(function(R){R in _.entities&&(delete _.entities[R],C=!0)}),C&&(_.ids=_.ids.filter(function(R){return R in _.entities}))}function d(b){Object.assign(b,{ids:[],entities:{}})}function f(b,_,C){var R=C.entities[_.id],I=Object.assign({},R,_.changes),k=Zl(I,e),A=k!==_.id;return A&&(b[_.id]=k,delete C.entities[_.id]),C.entities[k]=I,A}function h(b,_){return g([b],_)}function g(b,_){var C={},R={};b.forEach(function(A){A.id in _.entities&&(R[A.id]={id:A.id,changes:oi(oi({},R[A.id]?R[A.id].changes:null),A.changes)})}),b=Object.values(R);var I=b.length>0;if(I){var k=b.filter(function(A){return f(C,A,_)}).length>0;k&&(_.ids=Object.keys(_.entities))}}function w(b,_){return m([b],_)}function m(b,_){var C=J4(b,e,_),R=C[0],I=C[1];g(I,_),n(R,_)}return{removeAll:Lb(d),addOne:fr(t),addMany:fr(n),setOne:fr(i),setMany:fr(o),setAll:fr(s),updateOne:fr(h),updateMany:fr(g),upsertOne:fr(w),upsertMany:fr(m),removeOne:fr(l),removeMany:fr(c)}}function Mb(e,t){var n=X4(e),i=n.removeOne,o=n.removeMany,s=n.removeAll;function l(I,k){return c([I],k)}function c(I,k){I=es(I);var A=I.filter(function(L){return!(Zl(L,e)in k.entities)});A.length!==0&&C(A,k)}function d(I,k){return f([I],k)}function f(I,k){I=es(I),I.length!==0&&C(I,k)}function h(I,k){I=es(I),k.entities={},k.ids=[],c(I,k)}function g(I,k){return w([I],k)}function w(I,k){for(var A=!1,L=0,j=I;L<j.length;L++){var D=j[L],V=k.entities[D.id];if(V){A=!0,Object.assign(V,D.changes);var q=e(V);D.id!==q&&(delete k.entities[D.id],k.entities[q]=V)}}A&&R(k)}function m(I,k){return b([I],k)}function b(I,k){var A=J4(I,e,k),L=A[0],j=A[1];w(j,k),c(L,k)}function _(I,k){if(I.length!==k.length)return!1;for(var A=0;A<I.length&&A<k.length;A++)if(I[A]!==k[A])return!1;return!0}function C(I,k){I.forEach(function(A){k.entities[e(A)]=A}),R(k)}function R(I){var k=Object.values(I.entities);k.sort(t);var A=k.map(e),L=I.ids;_(L,A)||(I.ids=A)}return{removeOne:i,removeMany:o,removeAll:s,addOne:fr(l),updateOne:fr(g),upsertOne:fr(m),setOne:fr(d),setMany:fr(f),setAll:fr(h),addMany:fr(c),updateMany:fr(w),upsertMany:fr(b)}}function Ib(e){e===void 0&&(e={});var t=oi({sortComparer:!1,selectId:function(c){return c.id}},e),n=t.selectId,i=t.sortComparer,o=Tb(),s=Pb(),l=i?Mb(n,i):X4(n);return oi(oi(oi({selectId:n,sortComparer:i},o),s),l)}var Rb="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",uf=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=Rb[Math.random()*64|0];return t},jb=["name","message","stack","code"],_p=(function(){function e(t,n){this.payload=t,this.meta=n}return e})(),f2=(function(){function e(t,n){this.payload=t,this.meta=n}return e})(),e5=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,i=jb;n<i.length;n++){var o=i[n];typeof e[o]=="string"&&(t[o]=e[o])}return t}return{message:String(e)}},Md=(function(){function e(t,n,i){var o=Ur(t+"/fulfilled",function(f,h,g,w){return{payload:f,meta:bp(oi({},w||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),s=Ur(t+"/pending",function(f,h,g){return{payload:void 0,meta:bp(oi({},g||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),l=Ur(t+"/rejected",function(f,h,g,w,m){return{payload:w,error:(i&&i.serializeError||e5)(f||"Rejected"),meta:bp(oi({},m||{}),{arg:g,requestId:h,rejectedWithValue:!!w,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),c=typeof AbortController<"u"?AbortController:(function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f})();
15function d(f){return function(h,g,w){var m=i?.idGenerator?i.idGenerator(f):uf(),b=new c,_;function C(I){_=I,b.abort()}var R=(function(){return _u(this,null,function(){var I,k,A,L,j,D,V;return bu(this,function(q){switch(q.label){case 0:return q.trys.push([0,4,,5]),L=(I=i?.condition)==null?void 0:I.call(i,f,{getState:g,extra:w}),Ob(L)?[4,L]:[3,2];case 1:L=q.sent(),q.label=2;case 2:if(L===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return j=new Promise(function($,W){return b.signal.addEventListener("abort",function(){return W({name:"AbortError",message:_||"Aborted"})})}),h(s(m,f,(k=i?.getPendingMeta)==null?void 0:k.call(i,{requestId:m,arg:f},{getState:g,extra:w}))),[4,Promise.race([j,Promise.resolve(n(f,{dispatch:h,getState:g,extra:w,requestId:m,signal:b.signal,abort:C,rejectWithValue:function($,W){return new _p($,W)},fulfillWithValue:function($,W){return new f2($,W)}})).then(function($){if($ instanceof _p)throw $;return $ instanceof f2?o($.payload,m,f,$.meta):o($,m,f)})])];case 3:return A=q.sent(),[3,5];case 4:return D=q.sent(),A=D instanceof _p?l(null,m,f,D.payload,D.meta):l(D,m,f),[3,5];case 5:return V=i&&!i.dispatchConditionRejection&&l.match(A)&&A.meta.condition,V||h(A),[2,A]}})})})();return Object.assign(R,{abort:C,requestId:m,arg:f,unwrap:function(){return R.then(t5)}})}}return Object.assign(d,{pending:s,rejected:l,fulfilled:o,typePrefix:t})}return e.withTypes=function(){return e},e})();function t5(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ob(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Nb=function(e){return e&&typeof e.match=="function"},n5=function(e,t){return Nb(e)?e.match(t):e(t)};function ds(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return e.some(function(i){return n5(i,n)})}}function Bs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return e.every(function(i){return n5(i,n)})}}function cf(e,t){if(!e||!e.meta)return!1;var n=typeof e.meta.requestId=="string",i=t.indexOf(e.meta.requestStatus)>-1;return n&&i}function Cu(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function df(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return cf(n,["pending"])}:Cu(e)?function(n){var i=e.map(function(s){return s.pending}),o=ds.apply(void 0,i);return o(n)}:df()(e[0])}function Qs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return cf(n,["rejected"])}:Cu(e)?function(n){var i=e.map(function(s){return s.rejected}),o=ds.apply(void 0,i);return o(n)}:Qs()(e[0])}function xu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(i){return i&&i.meta&&i.meta.rejectedWithValue};return e.length===0?function(i){var o=Bs(Qs.apply(void 0,e),n);return o(i)}:Cu(e)?function(i){var o=Bs(Qs.apply(void 0,e),n);return o(i)}:xu()(e[0])}function To(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return cf(n,["fulfilled"])}:Cu(e)?function(n){var i=e.map(function(s){return s.fulfilled}),o=ds.apply(void 0,i);return o(n)}:To()(e[0])}function Id(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return cf(n,["pending","fulfilled","rejected"])}:Cu(e)?function(n){for(var i=[],o=0,s=e;o<s.length;o++){var l=s[o];i.push(l.pending,l.rejected,l.fulfilled)}var c=ds.apply(void 0,i);return c(n)}:Id()(e[0])}var w0=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},Fb=function(){},b0=function(e,t){return t===void 0&&(t=Fb),e.catch(t),e},r5=function(e,t){e.addEventListener("abort",t,{once:!0})},Gs=function(e,t){var n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Db="task",i5="listener",a5="completed",_0="cancelled",Hb="task-"+_0,Bb="task-"+a5,o5=i5+"-"+_0,Gb=i5+"-"+a5,Su=(function(){function e(t){this.co
vendor: 4,386 bytes, line 15
15de=t,this.name="TaskAbortError",this.message=Db+" "+_0+" (reason: "+t+")"}return e})(),Us=function(e){if(e.aborted)throw new Su(e.reason)},s5=function(e){return b0(new Promise(function(t,n){var i=function(){return n(new Su(e.reason))};e.aborted?i():r5(e,i)}))},Ub=function(e,t){return _u(void 0,null,function(){var n,i;return bu(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return o.sent(),[4,e()];case 2:return n=o.sent(),[2,{status:"ok",value:n}];case 3:return i=o.sent(),[2,{status:i instanceof Su?"cancelled":"rejected",error:i}];case 4:return t?.(),[7];case 5:return[2]}})})},Rd=function(e){return function(t){return b0(Promise.race([s5(e),t]).then(function(n){return Us(e),n}))}},l5=function(e){var t=Rd(e);return function(n){return t(new Promise(function(i){return setTimeout(i,n)}))}},zb=Object.assign,p2={},Au="listenerMiddleware",Vb=function(e){var t=function(n){return r5(e,function(){return Gs(n,e.reason)})};return function(n){w0(n,"taskExecutor");var i=new AbortController;t(i);var o=Ub(function(){return _u(void 0,null,function(){var s;return bu(this,function(l){switch(l.label){case 0:return Us(e),Us(i.signal),[4,n({pause:Rd(i.signal),delay:l5(i.signal),signal:i.signal})];case 1:return s=l.sent(),Us(i.signal),[2,s]}})})},function(){return Gs(i,Bb)});return{result:Rd(e)(o),cancel:function(){Gs(i,Hb)}}}},Wb=function(e,t){var n=function(i,o){return _u(void 0,null,function(){var s,l,c,d;return bu(this,function(f){switch(f.label){case 0:Us(t),s=function(){},l=new Promise(function(h){s=e({predicate:i,effect:function(g,w){w.unsubscribe(),h([g,w.getState(),w.getOriginalState()])}})}),c=[s5(t),l],o!=null&&c.push(new Promise(function(h){return setTimeout(h,o,null)})),f.label=1;case 1:return f.trys.push([1,,3,4]),[4,Promise.race(c)];case 2:return d=f.sent(),Us(t),[2,d];case 3:return s(),[7];case 4:return[2]}})})};return function(i,o){return b0(n(i,o))}},u5=function(e){var t=e.type,n=e.actionCreator,i=e.matcher,o=e.predicate,s=e.effect;if(t)o=Ur(t).match;else if(n)t=n.type,o=n.match;else if(i)o=i;else if(!o)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return w0(s,"options.listener"),{predicate:o,type:t,effect:s}},qb=function(e){var t=u5(e),n=t.type,i=t.predicate,o=t.effect,s=uf(),l={id:s,effect:o,type:n,predicate:i,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return l},$b=function(e){return function(){e.forEach(xh),e.clear()}},h2=function(e,t,n){try{e(t,n)}catch(i){setTimeout(function(){throw i},0)}},c5=Ur(Au+"/add"),d5=Ur(Au+"/removeAll"),f5=Ur(Au+"/remove"),Qb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,$s([Au+"/error"],e))},xh=function(e){e.pending.forEach(function(t){Gs(t,o5)})};function Yb(e){var t=this;e===void 0&&(e={});var n=new Map,i=e.extra,o=e.onError,s=o===void 0?Qb:o;w0(s,"onError");var l=function(m){return m.unsubscribe=function(){return n.delete(m.id)},n.set(m.id,m),function(b){m.unsubscribe(),b?.cancelActive&&xh(m)}},c=function(m){for(var b=0,_=Array.from(n.values());b<_.length;b++){var C=_[b];if(m(C))return C}},d=function(m){var b=c(function(_){return _.effect===m.effect});return b||(b=qb(m)),l(b)},f=function(m){var b=u5(m),_=b.type,C=b.effect,R=b.predicate,I=c(function(k){var A=typeof _=="string"?k.type===_:k.predicate===R;return A&&k.effect===C});return I&&(I.unsubscribe(),m.cancelActive&&xh(I)),!!I},h=function(m,b,_,C){return _u(t,null,function(){var R,I,k;return bu(this,function(A){switch(A.label){case 0:R=new AbortController,I=Wb(d,R.signal),A.label=1;case 1:return A.trys.push([1,3,4,5]),m.pending.add(R),[4,Promise.resolve(m.effect(b,zb({},_,{getOriginalState:C,condition:function(L,j){return I(L,j).then(Boolean)},take:I,delay:l5(R.signal),pause:Rd(R.signal),extra:i,signal:R.signal,fork:Vb(R.signal),unsubscribe:m.unsubscribe,subscribe:function(){n.set(m.id,m)},cancelActiveListeners:function(){m.pending.forEach(function(L,j,D){L!==R&&(Gs(L,o5),D.delete(L))})}})))];case 2:return A.sent(),[3,5];case 3:return k=A.sent(),k instanceof Su||h2(s,k,{raisedBy:"effect"}),[3,5];case 4:return Gs(R,Gb),m.pending.delete(R),[7];case 5:return[2]}})})},g=$b(n),w=function(m){return function(b){return function(_){if(c5.match(_))return d(_.payload);if(d5.match(_)){g();return}if(f5.match(_))return f(_.payload);
15var C=m.getState(),R=function(){if(C===p2)throw new Error(Au+": getOriginalState can only be called synchronously");return C},I;try{if(I=b(_),n.size>0)for(var k=m.getState(),A=Array.from(n.values()),L=0,j=A;L<j.length;L++){var D=j[L],V=!1;try{V=D.predicate(_,k,C)}catch(q){V=!1,h2(s,q,{raisedBy:"predicate"})}V&&h(D,_,m,R)}}finally{C=p2}return I}}};return{middleware:w,startListening:d,stopListening:f,clearListeners:g}}var Jo="RTK_autoBatch",Sh=function(){return function(e){var t;return{payload:e,meta:(t={},t[Jo]=!0,t)}}},m2,Zb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(m2||(m2=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},p5=function(e){return function(t){setTimeout(t,e)}},Kb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:p5(10),Jb=function(e){return e===void 0&&(e={type:"raf"}),function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=t.apply(void 0,n),s=!0,l=!1,c=!1,d=new Set,f=e.type==="tick"?Zb:e.type==="raf"?Kb:e.type==="callback"?e.queueNotification:p5(e.timeout),h=function(){c=!1,l&&(l=!1,d.forEach(function(g){return g()}))};return Object.assign({},o,{subscribe:function(g){var w=function(){return s&&g()},m=o.subscribe(w);return d.add(g),function(){m(),d.delete(g)}},dispatch:function(g){var w;try{return s=!((w=g?.meta)!=null&&w[Jo]),l=!s,l&&(c||(c=!0,f(h))),o.dispatch(g)}finally{s=!0}}})}}};Ww();const Xb=Object.freeze(Object.defineProperty({__proto__:null,MiddlewareArray:W4,SHOULD_AUTOBATCH:Jo,TaskAbortError:Su,__DO_NOT_USE__ActionTypes:au,addListener:c5,applyMiddleware:G4,autoBatchEnhancer:Jb,bindActionCreators:rb,clearAllListeners:d5,combineReducers:y0,compose:ou,configureStore:Y4,createAction:Ur,createAsyncThunk:Md,createDraftSafeSelector:Ea,createEntityAdapter:Ib,createImmutableStateInvariantMiddleware:yb,createListenerMiddleware:Yb,createNextState:cs,createReducer:K4,createSelector:Ra,createSerializableStateInvariantMiddleware:wb,createSlice:Wi,createStore:lf,current:m0,findNonSerializableValue:$4,freeze:sf,getDefaultMiddleware:Q4,getType:Sb,isAllOf:Bs,isAnyOf:ds,isAsyncThunkAction:Id,isDraft:vi,isFulfilled:To,isImmutableDefault:vb,isPending:df,isPlain:q4,isPlainObject:Ha,isRejected:Qs,isRejectedWithValue:xu,legacy_createStore:tb,miniSerializeError:e5,nanoid:uf,original:Uw,prepareAutoBatched:Sh,removeListener:f5,unwrapResult:t5},Symbol.toStringTag,{value:"Module"}));var Cp={exports:{}},Vo={};const di=p4(Xb);var xp={exports:{}},Yn={},g2;function e_(){if(g2)return Yn;g2=1;function e(B){for(var ee=arguments.length,fe=Array(ee>1?ee-1:0),oe=1;oe<ee;oe++)fe[oe-1]=arguments[oe];throw Error("[Immer] minified error nr: "+B+(fe.length?" "+fe.map((function(de){return"'"+de+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t(B){return!!B&&!!B[ut]}function n(B){var ee;return!!B&&((function(fe){if(!fe||typeof fe!="object")return!1;var oe=Object.getPrototypeOf(fe);if(oe===null)return!0;var de=Object.hasOwnProperty.call(oe,"constructor")&&oe.constructor;return de===Object||typeof de=="function"&&Function.toString.call(de)===bt})(B)||Array.isArray(B)||!!B[dt]||!!(!((ee=B.constructor)===null||ee===void 0)&&ee[dt])||f(B)||h(B))}function i(B,ee,fe){fe===void 0&&(fe=!1),o(B)===0?(fe?Object.keys:vn)(B).forEach((function(oe){fe&&typeof oe=="symbol"||ee(oe,B[oe],B)})):B.forEach((function(oe,de){return ee(de,oe,B)}))}function o(B){var ee=B[ut];return ee?ee.t>3?ee.t-4:ee.t:Array.isArray(B)?1:f(B)?2:h(B)?3:0}function s(B,ee){return o(B)===2?B.has(ee):Object.prototype.hasOwnProperty.call(B,ee)}function l(B,ee){return o(B)===2?B.get(ee):B[ee]}function c(B,ee,fe){var oe=o(B);oe===2?B.set(ee,fe):oe===3?(B.delete(ee),B.add(fe)):B[ee]=fe}function d(B,ee){return B===ee?B!==0||1/B==1/ee:B!=B&&ee!=ee}function f(B){return be&&B instanceof Map}function h(B){return Re&&B instanceof Set}function g(B){return B.i||B.o}function w(B){if(Array.isArray(B))return Array.prototype.slice.call(B);var ee=yn(B);delete ee[ut];for(var fe=vn(ee),oe=0;oe<fe.length;oe++){var de=fe[oe],Pe=ee[de];Pe.writable===!1&&(Pe.writable=!0,Pe.configurable=!0),(Pe.get||Pe.set)&&(ee[de]={configurable:!0,writable:!0,enumerable:Pe.enumerable,value:
15B[de]})}return Object.create(Object.getPrototypeOf(B),ee)}function m(B,ee){return ee===void 0&&(ee=!1),_(B)||t(B)||!n(B)||(o(B)>1&&(B.set=B.add=B.clear=B.delete=b),Object.freeze(B),ee&&i(B,(function(fe,oe){return m(oe,!0)}),!0)),B}function b(){e(2)}function _(B){return B==null||typeof B!="object"||Object.isFrozen(B)}function C(B){var ee=Wn[B];return ee||e(18,B),ee}function R(B,ee){Wn[B]||(Wn[B]=ee)}function I(){return Ce}function k(B,ee){ee&&(C("Patches"),B.u=[],B.v=[],B.s=ee)}function A(B){L(B),B.p.forEach(D),B.p=null}function L(B){B===Ce&&(Ce=B.l)}function j(B){return Ce={p:[],l:Ce,h:B,_:!0,m:0}}function D(B){var ee=B[ut];ee.t===0||ee.t===1?ee.j():ee.O=!0}function V(B,ee){ee.m=ee.p.length;var fe=ee.p[0],oe=B!==void 0&&B!==fe;return ee.h.S||C("ES5").P(ee,B,oe),oe?(fe[ut].M&&(A(ee),e(4)),n(B)&&(B=q(ee,B),ee.l||W(ee,B)),ee.u&&C("Patches").g(fe[ut].o,B,ee.u,ee.v)):B=q(ee,fe,[]),A(ee),ee.u&&ee.s(ee.u,ee.v),B!==ht?B:void 0}function q(B,ee,fe){if(_(ee))return ee;var oe=ee[ut];if(!oe)return i(ee,(function(Pe,Ue){return $(B,oe,ee,Pe,Ue,fe)}),!0),ee;if(oe.A!==B)return ee;if(!oe.M)return W(B,oe.o,!0),oe.o;if(!oe.R){oe.R=!0,oe.A.m--;var de=oe.t===4||oe.t===5?oe.i=w(oe.k):oe.i;i(oe.t===3?new Set(de):de,(function(Pe,Ue){return $(B,oe,de,Pe,Ue,fe)})),W(B,de,!1),fe&&B.u&&C("Patches").F(oe,fe,B.u,B.v)}return oe.i}function $(B,ee,fe,oe,de,Pe){if(t(de)){var Ue=q(B,de,Pe&&ee&&ee.t!==3&&!s(ee.D,oe)?Pe.concat(oe):void 0);if(c(fe,oe,Ue),!t(Ue))return;B._=!1}if(n(de)&&!_(de)){if(!B.h.K&&B.m<1)return;q(B,de),ee&&ee.A.l||W(B,de)}}function W(B,ee,fe){fe===void 0&&(fe=!1),B.h.K&&B._&&m(ee,fe)}function ae(B,ee){var fe=B[ut];return(fe?g(fe):B)[ee]}function te(B,ee){if(ee in B)for(var fe=Object.getPrototypeOf(B);fe;){var oe=Object.getOwnPropertyDescriptor(fe,ee);if(oe)return oe;fe=Object.getPrototypeOf(fe)}}function ce(B){B.M||(B.M=!0,B.l&&ce(B.l))}function pe(B){B.i||(B.i=w(B.o))}function me(B,ee,fe){var oe=f(ee)?C("MapSet").$(ee,fe):h(ee)?C("MapSet").C(ee,fe):B.S?(function(de,Pe){var Ue=Array.isArray(de),Le={t:Ue?1:0,A:Pe?Pe.A:I(),M:!1,R:!1,D:{},l:Pe,o:de,k:null,i:null,j:null,I:!1},Me=Le,_e=ot;Ue&&(Me=[Le],_e=sn);var Ae=Proxy.revocable(Me,_e),$e=Ae.revoke,tt=Ae.proxy;return Le.k=tt,Le.j=$e,tt})(ee,fe):C("ES5").J(ee,fe);return(fe?fe.A:I()).p.push(oe),oe}function ne(B){return t(B)||e(22,B),(function ee(fe){if(!n(fe))return fe;var oe,de=fe[ut],Pe=o(fe);if(de){if(!de.M&&(de.t<4||!C("ES5").N(de)))return de.o;de.R=!0,oe=X(fe,Pe),de.R=!1}else oe=X(fe,Pe);return i(oe,(function(Ue,Le){de&&l(de.o,Ue)===Le||c(oe,Ue,ee(Le))})),Pe===3?new Set(oe):oe})(B)}function X(B,ee){switch(ee){case 2:return new Map(B);case 3:return Array.from(B)}return w(B)}function re(){function B(Pe,Ue){var Le=de[Pe];return Le?Le.enumerable=Ue:de[Pe]=Le={configurable:!0,enumerable:Ue,get:function(){return ot.get(this[ut],Pe)},set:function(Me){ot.set(this[ut],Pe,Me)}},Le}function ee(Pe){for(var Ue=Pe.length-1;Ue>=0;Ue--){var Le=Pe[Ue][ut];if(!Le.M)switch(Le.t){case 5:oe(Le)&&ce(Le);break;case 4:fe(Le)&&ce(Le)}}}function fe(Pe){for(var Ue=Pe.o,Le=Pe.k,Me=vn(Le),_e=Me.length-1;_e>=0;_e--){var Ae=Me[_e];if(Ae!==ut){var $e=Ue[Ae];if($e===void 0&&!s(Ue,Ae))return!0;var tt=Le[Ae],ct=tt&&tt[ut];if(ct?ct.o!==$e:!d(tt,$e))return!0}}var Ft=!!Ue[ut];return Me.length!==vn(Ue).length+(Ft?0:1)}function oe(Pe){var Ue=Pe.k;if(Ue.length!==Pe.o.length)return!0;var Le=Object.getOwnPropertyDescriptor(Ue,Ue.length-1);if(Le&&!Le.get)return!0;for(var Me=0;Me<Ue.length;Me++)if(!Ue.hasOwnProperty(Me))return!0;return!1}var de={};R("ES5",{J:function(Pe,Ue){var Le=Array.isArray(Pe),Me=(function(Ae,$e){if(Ae){for(var tt=Array($e.length),ct=0;ct<$e.length;ct++)Object.defineProperty(tt,""+ct,B(ct,!0));return tt}var Ft=yn($e);delete Ft[ut];for(var Qt=vn(Ft),ln=0;ln<Qt.length;ln++){var Yt=Qt[ln];Ft[Yt]=B(Yt,Ae||!!Ft[Yt].enumerable)}return Object.create(Object.getPrototypeOf($e),Ft)})(Le,Pe),_e={t:Le?5:4,A:Ue?Ue.A:I(),M:!1,R:!1,D:{},l:Ue,o:Pe,k:Me,i:null,O:!1,I:!1};return Object.defineProperty(Me,ut,{value:_e,writable:!0}),Me},P:function(Pe,Ue,Le){Le?t(Ue)&&Ue[ut].A===Pe&&ee(Pe.p):(Pe.u&&(function Me(_e){if(_e&&typeof _e=="object"){var Ae=_e[ut];if(Ae){var $e=Ae.o,tt=Ae.k,ct=Ae.D,Ft=Ae.t;if(Ft===4)i(tt,(function(Nn){Nn!==ut&&($e[Nn]!==void 0||s($e,Nn)?ct[Nn]||Me(tt[Nn]):(ct[Nn]=!0,ce(Ae)))})),i($e,(function(Nn){tt[Nn]!==void 0||s(tt,Nn)||(ct[Nn]=!1,ce(Ae))}));else if(Ft===5){if(oe(Ae)&&(ce(Ae),ct.length=!0),tt.length<$e.length)for(var Qt=tt.length;Qt<$e.length;Qt++)ct[Qt]=!1;else for(var ln=$e.length;ln<tt.length;ln++)ct[ln]=!0;for(var Yt=Math.min(tt.length,$e.length),Hn=0;Hn<Yt;Hn++)tt.hasOwnProperty(Hn)||(ct[Hn]=!0),ct[Hn]===void 0&&Me(tt[Hn])}}}})(Pe.p[0]),ee(Pe.p))},N:function(Pe){return Pe.t===4?fe(Pe):oe(Pe)}})}function H(){function B(oe){if(!n(oe))return oe;if(Array.isArray(oe))return oe.map(B);if(f(oe))return new Map(Array.from(oe.entries()).map((function(Ue){return[Ue[0],B(Ue[1])]})));if(h(oe))return new Set(Array.from(oe).map(B));var de=Object.create(Object.getPrototypeOf(oe));for(var Pe in oe)de[Pe]=B(oe[Pe]);return s(oe,dt)&&(de[dt]=oe[dt]),de}function ee(oe){return t(oe)?B(oe):oe}var fe="add";R("Patches",{W:function(oe,de){return de.forEach((function(Pe){for(var Ue=Pe.path,Le=Pe.op,Me=oe,_e=0;_e<Ue.length-1;_e++){var Ae=o(Me),$e=""+Ue[_e];Ae!==0&&Ae!==1||$e!=="__proto__"&&$e!=="constructor"||e(24),typeof Me=="function"&&$e==="prototype"&&e(24),typeof(Me=l(Me,$e))!="object"&&e(15,Ue.join("/"))}var tt=o(Me),ct=B(Pe.value),Ft=Ue[Ue.length-1];switch(Le){case"replace":switch(tt){case 2:return Me.set(Ft,ct);case 3:e(16);default:return Me[Ft]=ct}case fe:switch(tt){case 1:return Ft==="-"?Me.push(ct):Me.splice(Ft,0,ct);case 2:return Me.set(Ft,ct);case 3:return Me.add(ct);default:return Me[Ft]=ct}case"remove":switch(tt){case 1:return Me.splice(Ft,1);case 2:return Me.delete(Ft);case 3:return Me.delete(Pe.value);default:return delete Me[Ft]}default:e(17,Le)}})),oe},F:function(oe,de,Pe,Ue){switch(oe.t){case 0:case 4:case 2:return(function(Le,Me,_e,Ae){var $e=Le.o,tt=Le.i;i(Le.D,(function(ct,Ft){var Qt=l($e,ct),ln=l(tt,ct),Yt=Ft?s($e,ct)?"replace":fe:"remove";if(Qt!==ln||Yt!=="replace"){var Hn=Me.concat(ct);_e.push(Yt==="remove"?{op:Yt,path:Hn}:{op:Yt,path:Hn,value:ln}),Ae.push(Yt===fe?{op:"remove",path:Hn}:Yt==="remove"?{op:fe,path:Hn,value:ee(Qt)}:{op:"replace",path:Hn,value:ee(Qt)})}}))})(oe,de,Pe,Ue);case 5:case 1:return(function(Le,Me,_e,Ae){var $e=Le.o,tt=Le.D,ct=Le.i;if(ct.length<$e.length){var Ft=[ct,$e];$e=Ft[0],ct=Ft[1];var Qt=[Ae,_e];_e=Qt[0],Ae=Qt[1]}for(var ln=0;ln<$e.length;ln++)if(tt[ln]&&ct[ln]!==$e[ln]){var Yt=Me.concat([ln]);_e.push({op:"replace",path:Yt,value:ee(ct[ln])}),Ae.push({op:"replace",path:Yt,value:ee($e[ln])})}for(var Hn=$e.length;Hn<ct.length;Hn++){var Nn=Me.concat([Hn]);_e.push({op:fe,path:Nn,value:ee(ct[Hn])})}$e.length<ct.length&&Ae.push({op:"replace",path:Me.concat(["length"]),value:$e.length})})(oe,de,Pe,Ue);case 3:return(function(Le,Me,_e,Ae){var $e=Le.o,tt=Le.i,ct=0;$e.forEach((function(Ft){if(!tt.has(Ft)){var Qt=Me.concat([ct]);_e.push({op:"remove",path:Qt,value:Ft}),Ae.unshift({op:fe,path:Qt,value:Ft})}ct++})),ct=0,tt.forEach((function(Ft){if(!$e.has(Ft)){var Qt=Me.concat([ct]);_e.push({op:fe,path:Qt,value:Ft}),Ae.unshift({op:"remove",path:Qt,value:Ft})}ct++}))})(oe,de,Pe,Ue)}},g:function(oe,de,Pe,Ue){Pe.push({op:"replace",path:[],value:de===ht?void 0:de}),Ue.push({op:"replace",path:[],value:oe})}})}function K(){function B(Le,Me){function _e(){this.constructor=Le}de(Le,Me),Le.prototype=(_e.prototype=Me.prototype,new _e)}
15function ee(Le){Le.i||(Le.D=new Map,Le.i=new Map(Le.o))}function fe(Le){Le.i||(Le.i=new Set,Le.o.forEach((function(Me){if(n(Me)){var _e=me(Le.A.h,Me,Le);Le.p.set(Me,_e),Le.i.add(_e)}else Le.i.add(Me)})))}function oe(Le){Le.O&&e(3,JSON.stringify(g(Le)))}var de=function(Le,Me){return(de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Ae){_e.__proto__=Ae}||function(_e,Ae){for(var $e in Ae)Ae.hasOwnProperty($e)&&(_e[$e]=Ae[$e])})(Le,Me)},Pe=(function(){function Le(_e,Ae){return this[ut]={t:2,l:Ae,A:Ae?Ae.A:I(),M:!1,R:!1,i:void 0,D:void 0,o:_e,k:this,I:!1,O:!1},this}B(Le,Map);var Me=Le.prototype;return Object.defineProperty(Me,"size",{get:function(){return g(this[ut]).size}}),Me.has=function(_e){return g(this[ut]).has(_e)},Me.set=function(_e,Ae){var $e=this[ut];return oe($e),g($e).has(_e)&&g($e).get(_e)===Ae||(ee($e),ce($e),$e.D.set(_e,!0),$e.i.set(_e,Ae),$e.D.set(_e,!0)),this},Me.delete=function(_e){if(!this.has(_e))return!1;var Ae=this[ut];return oe(Ae),ee(Ae),ce(Ae),Ae.o.has(_e)?Ae.D.set(_e,!1):Ae.D.delete(_e),Ae.i.delete(_e),!0},Me.clear=function(){var _e=this[ut];oe(_e),g(_e).size&&(ee(_e),ce(_e),_e.D=new Map,i(_e.o,(function(Ae){_e.D.set(Ae,!1)})),_e.i.clear())},Me.forEach=function(_e,Ae){var $e=this;g(this[ut]).forEach((function(tt,ct){_e.call(Ae,$e.get(ct),ct,$e)}))},Me.get=function(_e){var Ae=this[ut];oe(Ae);var $e=g(Ae).get(_e);if(Ae.R||!n($e)||$e!==Ae.o.get(_e))return $e;var tt=me(Ae.A.h,$e,Ae);return ee(Ae),Ae.i.set(_e,tt),tt},Me.keys=function(){return g(this[ut]).keys()},Me.values=function(){var _e,Ae=this,$e=this.keys();return(_e={})[$t]=function(){return Ae.values()},_e.next=function(){var tt=$e.next();return tt.done?tt:{done:!1,value:Ae.get(tt.value)}},_e},Me.entries=function(){var _e,Ae=this,$e=this.keys();return(_e={})[$t]=function(){return Ae.entries()},_e.next=function(){var tt=$e.next();if(tt.done)return tt;var ct=Ae.get(tt.value);return{done:!1,value:[tt.value,ct]}},_e},Me[$t]=function(){return this.entries()},Le})(),Ue=(function(){function Le(_e,Ae){return this[ut]={t:3,l:Ae,A:Ae?Ae.A:I(),M:!1,R:!1,i:void 0,o:_e,k:this,p:new Map,O:!1,I:!1},this}B(Le,Set);var Me=Le.prototype;return Object.defineProperty(Me,"size",{get:function(){return g(this[ut]).size}}),Me.has=function(_e){var Ae=this[ut];return oe(Ae),Ae.i?!!Ae.i.has(_e)||!(!Ae.p.has(_e)||!Ae.i.has(Ae.p.get(_e))):Ae.o.has(_e)},Me.add=function(_e){var Ae=this[ut];return oe(Ae),this.has(_e)||(fe(Ae),ce(Ae),Ae.i.add(_e)),this},Me.delete=function(_e){if(!this.has(_e))return!1;var Ae=this[ut];return oe(Ae),fe(Ae),ce(Ae),Ae.i.delete(_e)||!!Ae.p.has(_e)&&Ae.i.delete(Ae.p.get(_e))},Me.clear=function(){var _e=this[ut];oe(_e),g(_e).size&&(fe(_e),ce(_e),_e.i.clear())},Me.values=function(){var _e=this[ut];return oe(_e),fe(_e),_e.i.values()},Me.entries=function(){var _e=this[ut];return oe(_e),fe(_e),_e.i.entries()},Me.keys=function(){return this.values()},Me[$t]=function(){return this.values()},Me.forEach=function(_e,Ae){for(var $e=this.values(),tt=$e.next();!tt.done;)_e.call(Ae,tt.value,tt.value,this),tt=$e.next()},Le})();R("MapSet",{$:function(Le,Me){return new Pe(Le,Me)},C:function(Le,Me){return new Ue(Le,Me)}})}var he;Object.defineProperty(Yn,"__esModule",{value:!0});var Ce,ke=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",be=typeof Map<"u",Re=typeof Set<"u",Ve=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ht=ke?Symbol.for("immer-nothing"):((he={})["immer-nothing"]=!0,he),dt=ke?Symbol.for("immer-draftable"):"__$immer_draftable",ut=ke?Symbol.for("immer-state"):"__$immer_state",$t=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",bt=""+Object.prototype.constructor,vn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(B){return Object.getOwnPropertyNames(B).concat(Object.getOwnPropertySymbols(B))}:Object.getOwnPropertyNames,yn=Object.getOwnPropertyDescriptors||function(B){var ee={};return vn(B).forEach((function(fe){ee[fe]=Object.getOwnPropertyDescriptor(B,fe)})),ee},Wn={},ot={get:function(B,ee){if(ee===ut)return B;var fe=g(B);if(!s(fe,ee))return(function(de,Pe,Ue){var Le,Me=te(Pe,Ue);return Me?"value"in Me?Me.value:(Le=Me.get)===null||Le===void 0?void 0:Le.call(de.k):void 0})(B,fe,ee);var oe=fe[ee];return B.R||!n(oe)?oe:oe===ae(B.o,ee)?(pe(B),B.i[ee]=me(B.A.h,oe,B)):oe},has:function(B,ee){return ee in g(B)},ownKeys:function(B){return Reflect.ownKeys(g(B))},set:function(B,ee,fe){var oe=te(g(B),ee);if(oe?.set)return oe.set.call(B.k,fe),!0;if(!B.M){var de=ae(g(B),ee),Pe=de?.[ut];if(Pe&&Pe.o===fe)return B.i[ee]=fe,B.D[ee]=!1,!0;if(d(fe,de)&&(fe!==void 0||s(B.o,ee)))return!0;pe(B),ce(B)}return B.i[ee]===fe&&typeof fe!="number"&&(fe!==void 0||ee in B.i)||(B.i[ee]=fe,B.D[ee]=!0,!0)},deleteProperty:function(B,ee){return ae(B.o,ee)!==void 0||ee in B.o?(B.D[ee]=!1,pe(B),ce(B)):delete B.D[ee],B.i&&delete B.i[ee],!0},getOwnPropertyDescriptor:function(B,ee){var fe=g(B),oe=Reflect.getOwnPropertyDescriptor(fe,ee);return oe&&{writable:!0,configurable:B.t!==1||ee!=="length",enumerable:oe.enumerable,value:fe[ee]}},defineProperty:function(){e(11)},getPrototypeOf:function(B){return Object.getPrototypeOf(B.o)},setPrototypeOf:function(){e(12)}},sn={};i(ot,(function(B,ee){sn[B]=function(){return arguments[0]=arguments[0][0],ee.apply(this,arguments)}})),sn.deleteProperty=function(B,ee){return sn.set.call(this,B,ee,void 0)},sn.set=function(B,ee,fe){return ot.set.call(this,B[0],ee,fe,B[0])};var qt=(function(){function B(fe){var oe=this;this.S=Ve,this.K=!0,this.produce=function(de,Pe,Ue){if(typeof de=="function"&&typeof Pe!="function"){var Le=Pe;Pe=de;var Me=oe;return function(Qt){var ln=this;Qt===void 0&&(Qt=Le);for(var Yt=arguments.length,Hn=Array(Yt>
151?Yt-1:0),Nn=1;Nn<Yt;Nn++)Hn[Nn-1]=arguments[Nn];return Me.produce(Qt,(function(Ni){var Yr;return(Yr=Pe).call.apply(Yr,[ln,Ni].concat(Hn))}))}}var _e;if(typeof Pe!="function"&&e(6),Ue!==void 0&&typeof Ue!="function"&&e(7),n(de)){var Ae=j(oe),$e=me(oe,de,void 0),tt=!0;try{_e=Pe($e),tt=!1}finally{tt?A(Ae):L(Ae)}return typeof Promise<"u"&&_e instanceof Promise?_e.then((function(Qt){return k(Ae,Ue),V(Qt,Ae)}),(function(Qt){throw A(Ae),Qt})):(k(Ae,Ue),V(_e,Ae))}if(!de||typeof de!="object"){if((_e=Pe(de))===void 0&&(_e=de),_e===ht&&(_e=void 0),oe.K&&m(_e,!0),Ue){var ct=[],Ft=[];C("Patches").g(de,_e,ct,Ft),Ue(ct,Ft)}return _e}e(21,de)},this.produceWithPatches=function(de,Pe){if(typeof de=="function")return function(_e){for(var Ae=arguments.length,$e=Array(Ae>1?Ae-1:0),tt=1;tt<Ae;tt++)$e[tt-1]=arguments[tt];return oe.produceWithPatches(_e,(function(ct){return de.apply(void 0,[ct].concat($e))}))};var Ue,Le,Me=oe.produce(de,Pe,(function(_e,Ae){Ue=_e,Le=Ae}));return typeof Promise<"u"&&Me instanceof Promise?Me.then((function(_e){return[_e,Ue,Le]})):[Me,Ue,Le]},typeof fe?.useProxies=="boolean"&&this.setUseProxies(fe.useProxies),typeof fe?.autoFreeze=="boolean"&&this.setAutoFreeze(fe.autoFreeze)}var ee=B.prototype;return ee.createDraft=function(fe){n(fe)||e(8),t(fe)&&(fe=ne(fe));var oe=j(this),de=me(this,fe,void 0);return de[ut].I=!0,L(oe),de},ee.finishDraft=function(fe,oe){var de=(fe&&fe[ut]).A;return k(de,oe),V(void 0,de)},ee.setAutoFreeze=function(fe){this.K=fe},ee.setUseProxies=function(fe){fe&&!Ve&&e(20),this.S=fe},ee.applyPatches=function(fe,oe){var de;for(de=oe.length-1;de>=0;de--){var Pe=oe[de];if(Pe.path.length===0&&Pe.op==="replace"){fe=Pe.value;break}}de>-1&&(oe=oe.slice(de+1));var Ue=C("Patches").W;return t(fe)?Ue(fe,oe):this.produce(fe,(function(Le){return Ue(Le,oe)}))},B})(),en=new qt,Pn=en.produce,O=en.produceWithPatches.bind(en),v=en.setAutoFreeze.bind(en),P=en.setUseProxies.bind(en),U=en.applyPatches.bind(en),Y=en.createDraft.bind(en),Ee=en.finishDraft.bind(en);return Yn.Immer=qt,Yn.applyPatches=U,Yn.castDraft=function(B){return B},Yn.castImmutable=function(B){return B},Yn.createDraft=Y,Yn.current=ne,Yn.default=Pn,Yn.enableAllPlugins=function(){re(),K(),H()},Yn.enableES5=re,Yn.enableMapSet=K,Yn.enablePatches=H,Yn.finishDraft=Ee,Yn.freeze=m,Yn.immerable=dt,Yn.isDraft=t,Yn.isDraftable=n,Yn.nothing=ht,Yn.original=function(B){return t(B)||e(23,B),B[ut].o},Yn.produce=Pn,Yn.produceWithPatches=O,Yn.setAutoFreeze=v,Yn.setUseProxies=P,Yn}var v2;function Oc(){return v2||(v2=1,xp.exports=e_()),xp.exports}const t_=p4(ub);var y2;function n_(){return y2||(y2=1,(function(e){var t,n,i=Vo&&Vo.__generator||function(le,Ie){var je,Qe,Be,vt,Ct={label:0,sent:function(){if(1&Be[0])throw Be[1];return Be[1]},trys:[],ops:[]};return vt={next:rn(0),throw:rn(1),return:rn(2)},typeof Symbol=="function"&&(vt[Symbol.iterator]=function(){return this}),vt;function rn(Tt){return function(Ot){return(function(it){if(je)throw new TypeError("Generator is already executing.");for(;Ct;)try{if(je=1,Qe&&(Be=2&it[0]?Qe.return:it[0]?Qe.throw||((Be=Qe.return)&&Be.call(Qe),0):Qe.next)&&!(Be=Be.call(Qe,it[1])).done)return Be;switch(Qe=0,Be&&(it=[2&it[0],Be.value]),it[0]){case 0:case 1:Be=it;break;case 4:return Ct.label++,{value:it[1],done:!1};case 5:Ct.label++,Qe=it[1],it=[0];continue;case 7:it=Ct.ops.pop(),Ct.trys.pop();continue;default:if(!((Be=(Be=Ct.trys).length>0&&Be[Be.length-1])||it[0]!==6&&it[0]!==2)){Ct=0;continue}if(it[0]===3&&(!Be||it[1]>Be[0]&&it[1]<Be[3])){Ct.label=it[1];break}if(it[0]===6&&Ct.label<Be[1]){Ct.label=Be[1],Be=it;break}if(Be&&Ct.label<Be[2]){Ct.label=Be[2],Ct.ops.push(it);break}Be[2]&&Ct.ops.pop(),Ct.trys.pop();continue}it=Ie.call(le,Ct)}catch(Oe){it=[6,Oe],Qe=0}finally{je=Be=0}if(5&it[0])throw it[1];return{value:it[0]?it[1]:void 0,done:!0}})([Tt,Ot])}}},o=Vo&&Vo.__spreadArray||function(le,Ie){for(var je=0,Qe=Ie.length,Be=le.length;je<Qe;je++,Be++)le[Be]=Ie[je];return le},s=Object.create,l=Object.defineProperty,c=Object.defineProperties,d=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,w=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,_=function(le,Ie,je){return Ie in le?l(le,Ie,{enumerable:!0,configurable:!0,writable:!0,value:je}):le[Ie]=je},C=function(le,Ie){for(var je in Ie||(Ie={}))m.call(Ie,je)&&_(le,je,Ie[je]);if(g)for(var Qe=0,Be=g(Ie);Qe<Be.length;Qe++)b.call(Ie,je=Be[Qe])&&_(le,je,Ie[je]);return le},R=function(le,Ie){return c(le,f(Ie))}
15,I=function(le){return l(le,"__esModule",{value:!0})},k=function(le,Ie){var je={};for(var Qe in le)m.call(le,Qe)&&Ie.indexOf(Qe)<0&&(je[Qe]=le[Qe]);if(le!=null&&g)for(var Be=0,vt=g(le);Be<vt.length;Be++)Ie.indexOf(Qe=vt[Be])<0&&b.call(le,Qe)&&(je[Qe]=le[Qe]);return je},A=function(le){return(function(Ie,je,Qe){if(je&&typeof je=="object"||typeof je=="function")for(var Be=function(rn){m.call(Ie,rn)||rn==="default"||l(Ie,rn,{get:function(){return je[rn]},enumerable:!(Qe=d(je,rn))||Qe.enumerable})},vt=0,Ct=h(je);vt<Ct.length;vt++)Be(Ct[vt]);return Ie})(I(l(le!=null?s(w(le)):{},"default",le&&le.__esModule&&"default"in le?{get:function(){return le.default},enumerable:!0}:{value:le,enumerable:!0})),le)},L=function(le,Ie,je){return new Promise((function(Qe,Be){var vt=function(Tt){try{rn(je.next(Tt))}catch(Ot){Be(Ot)}},Ct=function(Tt){try{rn(je.throw(Tt))}catch(Ot){Be(Ot)}},rn=function(Tt){return Tt.done?Qe(Tt.value):Promise.resolve(Tt.value).then(vt,Ct)};rn((je=je.apply(le,Ie)).next())}))};I(e),(function(le,Ie){for(var je in Ie)l(le,je,{get:Ie[je],enumerable:!0})})(e,{QueryStatus:function(){return t},buildCreateApi:function(){return Me},copyWithStructuralSharing:function(){return V},coreModule:function(){return ir},createApi:function(){return Fi},defaultSerializeQueryArgs:function(){return Pe},fakeBaseQuery:function(){return _e},fetchBaseQuery:function(){return ce},retry:function(){return X},setupListeners:function(){return be},skipSelector:function(){return B},skipToken:function(){return Ee}}),(n=t||(t={})).uninitialized="uninitialized",n.pending="pending",n.fulfilled="fulfilled",n.rejected="rejected";var j=function(le){return[].concat.apply([],le)},D=A(di).isPlainObject;function V(le,Ie){if(le===Ie||!(D(le)&&D(Ie)||Array.isArray(le)&&Array.isArray(Ie)))return Ie;for(var je=Object.keys(Ie),Qe=Object.keys(le),Be=je.length===Qe.length,vt=Array.isArray(Ie)?[]:{},Ct=0,rn=je;Ct<rn.length;Ct++){var Tt=rn[Ct];vt[Tt]=V(le[Tt],Ie[Tt]),Be&&(Be=le[Tt]===vt[Tt])}return Be?le:vt}var q=A(di),$=function(){for(var le=[],Ie=0;Ie<arguments.length;Ie++)le[Ie]=arguments[Ie];return fetch.apply(void 0,le)},W=function(le){return le.status>=200&&le.status<=299},ae=function(le){return/ion\/(vnd\.api\+)?json/.test(le.get("content-type")||"")};function te(le){if(!(0,q.isPlainObject)(le))return le;for(var Ie=C({},le),je=0,Qe=Object.entries(Ie);je<Qe.length;je++){var Be=Qe[je];Be[1]===void 0&&delete Ie[Be[0]]}return Ie}function ce(le){var Ie=this;le===void 0&&(le={});var je=le.baseUrl,Qe=le.prepareHeaders,Be=Qe===void 0?function(Dt){return Dt}:Qe,vt=le.fetchFn,Ct=vt===void 0?$:vt,rn=le.paramsSerializer,Tt=le.isJsonContentType,Ot=Tt===void 0?ae:Tt,it=le.jsonContentType,Oe=it===void 0?"application/json":it,nt=le.timeout,Ht=le.validateStatus,yt=k(le,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","timeout","validateStatus"]);return typeof fetch>"u"&&Ct===$&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(Dt,Ut){return L(Ie,null,(function(){var un,hn,Mn,Fn,er,Kn,ar,cn,mr,or,zr,Tr,Bt,wn,Cn,tr,qn,cr,Rn,nn,fn,xn,Bn,jt,Je,Gt,gt,ft,xt,Jt,Pt,Ke,ze,Xe,De,Ye,rt,Lt,M,E;return i(this,(function(N){switch(N.label){case 0:return un=Ut.signal,hn=Ut.getState,Mn=Ut.extra,Fn=Ut.endpoint,er=Ut.forced,Kn=Ut.type,mr=(cn=typeof Dt=="string"?{url:Dt}:Dt).url,zr=(or=cn.method)===void 0?"GET":or,Bt=(Tr=cn.headers)===void 0?new Headers(yt.headers):Tr,Cn=(wn=cn.body)===void 0?void 0:wn,qn=(tr=cn.params)===void 0?void 0:tr,Rn=(cr=cn.responseHandler)===void 0?"json":cr,fn=(nn=cn.validateStatus)===void 0?Ht??W:nn,Bn=(xn=cn.timeout)===void 0?nt:xn,jt=k(cn,["url","method","headers","body","params","responseHandler","validateStatus","timeout"]),Je=C(R(C({},yt),{method:zr,signal:un,body:Cn}),jt),Bt=new Headers(te(Bt)),Gt=Je,[4,Be(Bt,{getState:hn,extra:Mn,endpoint:Fn,forced:er,type:Kn})];case 1:Gt.headers=N.sent()||Bt,gt=function(G){return typeof G=="object"&&((0,q.isPlainObject)(G)||Array.isArray(G)||typeof G.toJSON=="function")},!Je.headers.has("content-type")&>(Cn)&&Je.headers.set("content-type",Oe),gt(Cn)&&Ot(Je.headers)&&(Je.body=JSON.stringify(Cn)),qn&&(ft=~mr.indexOf("?")?"&":"?",xt=rn?rn(qn):new URLSearchParams(te(qn)),mr+=ft+xt),mr=(function(G,Q){if(!G)return Q;if(!Q)return G;if((function(ve){return new RegExp("(^|:)//").test(ve)})(Q))return Q;var J=G.endsWith("/")||!Q.startsWith("?")?"/":"";return G=(function(ve){return ve.replace(/\/$/,"")})(G),""+G+J+(function(ve){return ve.replace(/^\//,"")})(Q)}
15)(je,mr),Jt=new Request(mr,Je),Pt=Jt.clone(),ar={request:Pt},ze=!1,Xe=Bn&&setTimeout((function(){ze=!0,Ut.abort()}),Bn),N.label=2;case 2:return N.trys.push([2,4,5,6]),[4,Ct(Jt)];case 3:return Ke=N.sent(),[3,6];case 4:return De=N.sent(),[2,{error:{status:ze?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(De)},meta:ar}];case 5:return Xe&&clearTimeout(Xe),[7];case 6:Ye=Ke.clone(),ar.response=Ye,Lt="",N.label=7;case 7:return N.trys.push([7,9,,10]),[4,Promise.all([wt(Ke,Rn).then((function(G){return rt=G}),(function(G){return M=G})),Ye.text().then((function(G){return Lt=G}),(function(){}))])];case 8:if(N.sent(),M)throw M;return[3,10];case 9:return E=N.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Ke.status,data:Lt,error:String(E)},meta:ar}];case 10:return[2,fn(Ke,rt)?{data:rt,meta:ar}:{error:{status:Ke.status,data:rt},meta:ar}]}}))}))};function wt(Dt,Ut){return L(this,null,(function(){var un;return i(this,(function(hn){switch(hn.label){case 0:return typeof Ut=="function"?[2,Ut(Dt)]:(Ut==="content-type"&&(Ut=Ot(Dt.headers)?"json":"text"),Ut!=="json"?[3,2]:[4,Dt.text()]);case 1:return[2,(un=hn.sent()).length?JSON.parse(un):null];case 2:return[2,Dt.text()]}}))}))}}var pe=function(le,Ie){Ie===void 0&&(Ie=void 0),this.value=le,this.meta=Ie};function me(le,Ie){return le===void 0&&(le=0),Ie===void 0&&(Ie=5),L(this,null,(function(){var je,Qe;return i(this,(function(Be){switch(Be.label){case 0:return je=Math.min(le,Ie),Qe=~~((Math.random()+.4)*(300<<je)),[4,new Promise((function(vt){return setTimeout((function(Ct){return vt(Ct)}),Qe)}))];case 1:return Be.sent(),[2]}}))}))}var ne={},X=Object.assign((function(le,Ie){return function(je,Qe,Be){return L(void 0,null,(function(){var vt,Ct,rn,Tt,Ot,it,Oe;return i(this,(function(nt){switch(nt.label){case 0:vt=[5,(Ie||ne).maxRetries,(Be||ne).maxRetries].filter((function(Ht){return Ht!==void 0})),Ct=vt.slice(-1)[0],rn=function(Ht,yt,wt){return wt.attempt<=Ct},Tt=C(C({maxRetries:Ct,backoff:me,retryCondition:rn},Ie),Be),Ot=0,nt.label=1;case 1:nt.label=2;case 2:return nt.trys.push([2,4,,6]),[4,le(je,Qe,Be)];case 3:if((it=nt.sent()).error)throw new pe(it);return[2,it];case 4:if(Oe=nt.sent(),Ot++,Oe.throwImmediately){if(Oe instanceof pe)return[2,Oe.value];throw Oe}return Oe instanceof pe&&!Tt.retryCondition(Oe.value.error,je,{attempt:Ot,baseQueryApi:Qe,extraOptions:Be})?[2,Oe.value]:[4,Tt.backoff(Ot,Tt.maxRetries)];case 5:return nt.sent(),[3,6];case 6:return[3,1];case 7:return[2]}}
15))}))}}),{fail:function(le){throw Object.assign(new pe({error:le}),{throwImmediately:!0})}}),re=A(di),H=(0,re.createAction)("__rtkq/focused"),K=(0,re.createAction)("__rtkq/unfocused"),he=(0,re.createAction)("__rtkq/online"),Ce=(0,re.createAction)("__rtkq/offline"),ke=!1;function be(le,Ie){return Ie?Ie(le,{onFocus:H,onFocusLost:K,onOffline:Ce,onOnline:he}):(je=function(){return le(H())},Qe=function(){return le(he())},Be=function(){return le(Ce())},vt=function(){window.document.visibilityState==="visible"?je():le(K())},ke||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",vt,!1),window.addEventListener("focus",je,!1),window.addEventListener("online",Qe,!1),window.addEventListener("offline",Be,!1),ke=!0),function(){window.removeEventListener("focus",je),window.removeEventListener("visibilitychange",vt),window.removeEventListener("online",Qe),window.removeEventListener("offline",Be),ke=!1});var je,Qe,Be,vt}var Re,Ve,ht=A(di);function dt(le){return le.type===Re.query}function ut(le,Ie,je,Qe,Be,vt){return typeof le=="function"?le(Ie,je,Qe,Be).map($t).map(vt):Array.isArray(le)?le.map($t).map(vt):[]}function $t(le){return typeof le=="string"?{type:le}:le}(Ve=Re||(Re={})).query="query",Ve.mutation="mutation";var bt=A(di);function vn(le){return le!=null}var yn=Symbol("forceQueryFn"),Wn=function(le){return typeof le[yn]=="function"},ot=A(di),sn=A(Oc()),qt=A(di);function en(le){return le}function Pn(le,Ie,je,Qe){return ut(je[le.meta.arg.endpointName][Ie],(0,ot.isFulfilled)(le)?le.payload:void 0,(0,ot.isRejectedWithValue)(le)?le.payload:void 0,le.meta.arg.originalArgs,"baseQueryMeta"in le.meta?le.meta.baseQueryMeta:void 0,Qe)}var O=A(Oc());function v(le,Ie,je){var Qe=le[Ie];Qe&&je(Qe)}function P(le){var Ie;return(Ie="arg"in le?le.arg.fixedCacheKey:le.fixedCacheKey)!=null?Ie:le.requestId}function U(le,Ie,je){var Qe=le[P(Ie)];Qe&&je(Qe)}var Y={},Ee=Symbol.for("RTKQ/skipToken"),B=Ee,ee={status:t.uninitialized},fe=(0,ht.createNextState)(ee,(function(){})),oe=(0,ht.createNextState)(ee,(function(){})),de=A(di),Pe=function(le){return le.endpointName+"("+JSON.stringify(le.queryArgs,(function(Ie,je){return(0,de.isPlainObject)(je)?Object.keys(je).sort().reduce((function(Qe,Be){return Qe[Be]=je[Be],Qe}),{}):je}))+")"},Ue=A(di),Le=A(t_);function Me(){for(var le=[],Ie=0;Ie<arguments.length;Ie++)le[Ie]=arguments[Ie];return function(je){var Qe=(0,Le.defaultMemoize)((function(Tt){var Ot,it;return(it=je.extractRehydrationInfo)==null?void 0:it.call(je,Tt,{reducerPath:(Ot=je.reducerPath)!=null?Ot:"api"})})),Be=R(C({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},je),{extractRehydrationInfo:Qe,serializeQueryArgs:function(Tt){var Ot=Pe;if("serializeQueryArgs"in Tt.endpointDefinition){var it=Tt.endpointDefinition.serializeQueryArgs;Ot=function(Oe){var nt=it(Oe);return typeof nt=="string"?nt:Pe(R(C({},Oe),{queryArgs:nt}))}}else je.serializeQueryArgs&&(Ot=je.serializeQueryArgs);return Ot(Tt)},tagTypes:o([],je.tagTypes||[])}),vt={endpointDefinitions:{},batch:function(Tt){Tt()},apiUid:(0,Ue.nanoid)(),extractRehydrationInfo:Qe,hasRehydrationInfo:(0,Le.defaultMemoize)((function(Tt){return Qe(Tt)!=null}))},Ct={injectEndpoints:function(Tt){for(var Ot=Tt.endpoints({query:function(Ut){return R(C({},Ut),{type:Re.query})},mutation:function(Ut){return R(C({},Ut),{type:Re.mutation})}}),it=0,Oe=Object.entries(Ot);it<Oe.length;it++){var nt=Oe[it],Ht=nt[0],yt=nt[1];if(Tt.overrideExisting||!(Ht in vt.endpointDefinitions)){vt.endpointDefinitions[Ht]=yt;for(var wt=0,Dt=rn;wt<Dt.length;wt++)Dt[wt].injectEndpoint(Ht,yt)}}return Ct},enhanceEndpoints:function(Tt){var Ot=Tt.addTagTypes,it=Tt.endpoints;if(Ot)for(var Oe=0,nt=Ot;Oe<nt.length;Oe++){var Ht=nt[Oe];Be.tagTypes.includes(Ht)||Be.tagTypes.push(Ht)}if(it)for(var yt=0,wt=Object.entries(it);yt<wt.length;yt++){var Dt=wt[yt],Ut=Dt[0],un=Dt[1];typeof un=="function"?un(vt.endpointDefinitions[Ut]):Object.assign(vt.endpointDefinitions[Ut]||{},un)}return Ct}},rn=le.map((function(Tt){return Tt.init(Ct,Be,vt)}));return Ct.injectEndpoints({endpoints:je.endpoints})}}function _e(){return function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")}}var Ae,$e=A(di),tt=function(le){var Ie=le.reducerPath,je=le.api,Qe=le.context,Be=le.internalState,vt=je.internalActions,Ct=vt.removeQueryResult,rn=vt.unsubscribeQueryResult;function Tt(Oe){var nt=Be.currentSubscriptions[Oe];return!!nt&&!(function(Ht){for(var yt in Ht)return!1;return!0})(nt)}var Ot={};function it(Oe,nt,Ht,yt){var wt,Dt=Qe.endpointDefinitions[nt],Ut=(wt=Dt?.keepUnusedData
15For)!=null?wt:yt.keepUnusedDataFor;if(Ut!==1/0){var un=Math.max(0,Math.min(Ut,2147482647e-3));if(!Tt(Oe)){var hn=Ot[Oe];hn&&clearTimeout(hn),Ot[Oe]=setTimeout((function(){Tt(Oe)||Ht.dispatch(Ct({queryCacheKey:Oe})),delete Ot[Oe]}),1e3*un)}}}return function(Oe,nt,Ht){var yt;if(rn.match(Oe)){var wt=nt.getState()[Ie];it(ar=Oe.payload.queryCacheKey,(yt=wt.queries[ar])==null?void 0:yt.endpointName,nt,wt.config)}if(je.util.resetApiState.match(Oe))for(var Dt=0,Ut=Object.entries(Ot);Dt<Ut.length;Dt++){var un=Ut[Dt],hn=un[0],Mn=un[1];Mn&&clearTimeout(Mn),delete Ot[hn]}if(Qe.hasRehydrationInfo(Oe)){wt=nt.getState()[Ie];for(var Fn=Qe.extractRehydrationInfo(Oe).queries,er=0,Kn=Object.entries(Fn);er<Kn.length;er++){var ar,cn=Kn[er],mr=cn[1];it(ar=cn[0],mr?.endpointName,nt,wt.config)}}}},ct=A(di),Ft=function(le){var Ie=le.reducerPath,je=le.context,Qe=le.context.endpointDefinitions,Be=le.mutationThunk,vt=le.api,Ct=le.assertTagType,rn=le.refetchQuery,Tt=vt.internalActions.removeQueryResult,Ot=(0,ct.isAnyOf)((0,ct.isFulfilled)(Be),(0,ct.isRejectedWithValue)(Be));function it(Oe,nt){var Ht=nt.getState(),yt=Ht[Ie],wt=vt.util.selectInvalidatedBy(Ht,Oe);je.batch((function(){for(var Dt,Ut=0,un=Array.from(wt.values());Ut<un.length;Ut++){var hn=un[Ut].queryCacheKey,Mn=yt.queries[hn],Fn=(Dt=yt.subscriptions[hn])!=null?Dt:{};Mn&&(Object.keys(Fn).length===0?nt.dispatch(Tt({queryCacheKey:hn})):Mn.status!==t.uninitialized&&nt.dispatch(rn(Mn,hn)))}}))}return function(Oe,nt){Ot(Oe)&&it(Pn(Oe,"invalidatesTags",Qe,Ct),nt),vt.util.invalidateTags.match(Oe)&&it(ut(Oe.payload,void 0,void 0,void 0,void 0,Ct),nt)}},Qt=function(le){var Ie=le.reducerPath,je=le.queryThunk,Qe=le.api,Be=le.refetchQuery,vt=le.internalState,Ct={};function rn(Oe,nt){var Ht=Oe.queryCacheKey,yt=nt.getState()[Ie].queries[Ht];if(yt&&yt.status!==t.uninitialized){var wt=it(vt.currentSubscriptions[Ht]);if(Number.isFinite(wt)){var Dt=Ct[Ht];Dt?.timeout&&(clearTimeout(Dt.timeout),Dt.timeout=void 0);var Ut=Date.now()+wt,un=Ct[Ht]={nextPollTimestamp:Ut,pollingInterval:wt,timeout:setTimeout((function(){un.timeout=void 0,nt.dispatch(Be(yt,Ht))}),wt)}}}}function Tt(Oe,nt){var Ht=Oe.queryCacheKey,yt=nt.getState()[Ie].queries[Ht];if(yt&&yt.status!==t.uninitialized){var wt=it(vt.currentSubscriptions[Ht]);if(Number.isFinite(wt)){var Dt=Ct[Ht],Ut=Date.now()+wt;(!Dt||Ut<Dt.nextPollTimestamp)&&rn({queryCacheKey:Ht},nt)}else Ot(Ht)}}function Ot(Oe){var nt=Ct[Oe];nt?.timeout&&clearTimeout(nt.timeout),delete Ct[Oe]}function it(Oe){Oe===void 0&&(Oe={});var nt=Number.POSITIVE_INFINITY;for(var Ht in Oe)Oe[Ht].pollingInterval&&(nt=Math.min(Oe[Ht].pollingInterval,nt));return nt}return function(Oe,nt){(Qe.internalActions.updateSubscriptionOptions.match(Oe)||Qe.internalActions.unsubscribeQueryResult.match(Oe))&&Tt(Oe.payload,nt),(je.pending.match(Oe)||je.rejected.match(Oe)&&Oe.meta.condition)&&Tt(Oe.meta.arg,nt),(je.fulfilled.match(Oe)||je.rejected.match(Oe)&&!Oe.meta.condition)&&rn(Oe.meta.arg,nt),Qe.util.resetApiState.match(Oe)&&(function(){for(var Ht=0,yt=Object.keys(Ct);Ht<yt.length;Ht++)Ot(yt[Ht])})()}},ln=A(di),Yt=new Error("Promise never resolved before cacheEntryRemoved."),Hn=function(le){var Ie=le.api,je=le.reducerPath,Qe=le.context,Be=le.queryThunk,vt=le.mutationThunk,Ct=(0,ln.isAsyncThunkAction)(Be),rn=(0,ln.isAsyncThunkAction)(vt),Tt=(0,ln.isFulfilled)(Be,vt),Ot={};function it(Oe,nt,Ht,yt,wt){var Dt=Qe.endpointDefinitions[Oe],Ut=Dt?.onCacheEntryAdded;if(Ut){var un={},hn=new Promise((function(cn){un.cacheEntryRemoved=cn})),Mn=Promise.race([new Promise((function(cn){un.valueResolved=cn})),hn.then((function(){throw Yt}))]);Mn.catch((function(){})),Ot[Ht]=un;var Fn=Ie.endpoints[Oe].select(Dt.type===Re.query?nt:Ht),er=yt.dispatch((function(cn,mr,or){return or})),Kn=R(C({},yt),{getCacheEntry:function(){return Fn(yt.getState())},requestId:wt,extra:er,updateCachedData:Dt.type===Re.query?function(cn){return yt.dispatch(Ie.util.updateQueryData(Oe,nt,cn))}:void 0,cacheDataLoaded:Mn,cacheEntryRemoved:hn}),ar=Ut(nt,Kn);Promise.resolve(ar).catch((function(cn){if(cn!==Yt)throw cn}))}}return function(Oe,nt,Ht){var yt=(function(Fn){return Ct(Fn)?Fn.meta.arg.queryCacheKey:rn(Fn)?Fn.meta.requestId:Ie.internalActions.removeQueryResult.match(Fn)?Fn.payload.queryCacheKey:Ie.internalActions.removeMutationResult.match(Fn)?P(Fn.payload):""})(Oe);if(Be.pending.match(Oe)){var wt=Ht[je].queries[yt],Dt=nt.getState()[je].queries[yt];!wt&&Dt&&it(Oe.meta.arg.endpointName,Oe.meta.arg.originalArgs,yt,nt,Oe.meta.requestId)}else if(vt.pending.match(Oe))(Dt=nt.getState()[je].mutations[yt])&&it(Oe.meta.arg.endpointName,Oe.meta.arg.originalArgs,yt,nt,Oe.meta.requestId);else if(Tt(Oe))(Mn=Ot[yt])!=null&&Mn.valueResolved&&(Mn.valueResolved({data:Oe.payload,meta:Oe.meta.baseQueryMeta}),delete Mn.valueResolved);else if(Ie.internalActions.removeQueryResult.match(Oe)||Ie.internalActions.removeMutationResult.match(Oe))(Mn=Ot[yt])&&(delete Ot[yt],Mn.cacheEntryRemoved());else if(Ie.util.resetApiState.match(Oe))for(var Ut=0,un=Object.entries(Ot);Ut<un.length;Ut++){var hn=un[Ut],Mn=hn[1];delete Ot[hn[0]],Mn.cacheEntryRemoved()}}},Nn=A(di),Ni=function(le){var Ie=le.api,je=le.context,Qe=le.queryThunk,Be=le.mutationThunk,vt=(0,Nn.isPending)(Qe,Be),Ct=(0,Nn.isRejected)(Qe,Be),rn=(0,Nn.isFulfilled)(Qe,Be),Tt={};return function(Ot,it){var Oe,nt,Ht;if(vt(Ot)){var yt=Ot.meta,wt=yt.requestId,Dt=yt.arg,Ut=Dt.endpointName,un=Dt.originalArgs,hn=je.endpointDefinitions[Ut],Mn=hn?.onQueryStarted;if(Mn){var Fn={},er=new Promise((function(Tr,Bt){Fn.resolve=Tr,Fn.reject=Bt}));er.catch((function(){})),Tt[wt]=Fn;var Kn=Ie.endpoints[Ut].select(hn.type===Re.query?un:wt),ar=it.dispatch((function(Tr,Bt,wn){return wn})),cn=R(C({},it),{getCacheEntry:function(){return Kn(it.getState())},requestId:wt,extra:ar,updateCachedData:hn.type===Re.query?function(Tr){return it.dispatch(Ie.util.updateQueryData(Ut,un,Tr))}:void 0,queryFulfilled:er});Mn(un,cn)}}else if(rn(Ot)){var mr=Ot.meta,or=mr.baseQueryMeta;(Oe=Tt[wt=mr.requestId])==null||Oe.resolve({data:Ot.payload,meta:or}),delete Tt[wt]}else if(Ct(Ot)){var zr=Ot.meta;or=zr.baseQueryMeta,(Ht=Tt[wt=zr.requestId])==null||Ht.reject({error:(nt=Ot.payload)!=null?nt:Ot.error,isUnhandledError:!zr.rejectedWithValue,meta:or}),delete Tt[wt]}}},Yr=function(le){var Ie=le.api,je=le.context.apiUid;return function(Qe,Be){Ie.util.resetApiState.match(Qe)&&Be.dispatch(Ie.internalActions.middlewareRegistered(je))}},fa=A(Oc()),si=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof xv<"u"?xv:globalThis):function(le){return(Ae||(Ae=Promise.resolve())).then(le).catch((function(Ie){return setTimeout((function(){throw Ie}),0)}))};function xr(le){for(var Ie=[],je=1;je<arguments.length;
15je++)Ie[je-1]=arguments[je];Object.assign.apply(Object,o([le],Ie))}var Zr=A(Oc()),pa=Symbol(),ir=function(){return{name:pa,init:function(le,Ie,je){var Qe=Ie.baseQuery,Be=Ie.reducerPath,vt=Ie.serializeQueryArgs,Ct=Ie.keepUnusedDataFor,rn=Ie.refetchOnMountOrArgChange,Tt=Ie.refetchOnFocus,Ot=Ie.refetchOnReconnect;(0,Zr.enablePatches)();var it=function(Bt){return Bt};Object.assign(le,{reducerPath:Be,endpoints:{},internalActions:{onOnline:he,onOffline:Ce,onFocus:H,onFocusLost:K},util:{}});var Oe=(function(Bt){var wn=this,Cn=Bt.reducerPath,tr=Bt.baseQuery,qn=Bt.context.endpointDefinitions,cr=Bt.serializeQueryArgs,Rn=Bt.api,nn=function(Je,Gt){return L(wn,[Je,Gt],(function(gt,ft){var xt,Jt,Pt,Ke,ze,Xe,De,Ye,rt,Lt,M,E,N,G=ft.signal,Q=ft.abort,J=ft.rejectWithValue,ve=ft.fulfillWithValue,ge=ft.dispatch,Te=ft.getState,xe=ft.extra;return i(this,(function(Fe){switch(Fe.label){case 0:xt=qn[gt.endpointName],Fe.label=1;case 1:return Fe.trys.push([1,8,,13]),Jt=en,Pt=void 0,Ke={signal:G,abort:Q,dispatch:ge,getState:Te,extra:xe,endpoint:gt.endpointName,type:gt.type,forced:gt.type==="query"?fn(gt,Te()):void 0},(ze=gt.type==="query"?gt[yn]:void 0)?(Pt=ze(),[3,6]):[3,2];case 2:return xt.query?[4,tr(xt.query(gt.originalArgs),Ke,xt.extraOptions)]:[3,4];case 3:return Pt=Fe.sent(),xt.transformResponse&&(Jt=xt.transformResponse),[3,6];case 4:return[4,xt.queryFn(gt.originalArgs,Ke,xt.extraOptions,(function(et){return tr(et,Ke,xt.extraOptions)}))];case 5:Pt=Fe.sent(),Fe.label=6;case 6:if(Pt.error)throw new pe(Pt.error,Pt.meta);return Xe=ve,[4,Jt(Pt.data,Pt.meta,gt.originalArgs)];case 7:return[2,Xe.apply(void 0,[Fe.sent(),(E={fulfilledTimeStamp:Date.now(),baseQueryMeta:Pt.meta},E[qt.SHOULD_AUTOBATCH]=!0,E)])];case 8:if(De=Fe.sent(),!((Ye=De)instanceof pe))return[3,12];rt=en,xt.query&&xt.transformErrorResponse&&(rt=xt.transformErrorResponse),Fe.label=9;case 9:return Fe.trys.push([9,11,,12]),Lt=J,[4,rt(Ye.value,Ye.meta,gt.originalArgs)];case 10:return[2,Lt.apply(void 0,[Fe.sent(),(N={baseQueryMeta:Ye.meta},N[qt.SHOULD_AUTOBATCH]=!0,N)])];case 11:return M=Fe.sent(),Ye=M,[3,12];case 12:throw console.error(Ye),Ye;case 13:return[2]}}
15))}))};function fn(Je,Gt){var gt,ft,xt,Jt,Pt=(ft=(gt=Gt[Cn])==null?void 0:gt.queries)==null?void 0:ft[Je.queryCacheKey],Ke=(xt=Gt[Cn])==null?void 0:xt.config.refetchOnMountOrArgChange,ze=Pt?.fulfilledTimeStamp,Xe=(Jt=Je.forceRefetch)!=null?Jt:Je.subscribe&&Ke;return!!Xe&&(Xe===!0||(Number(new Date)-Number(ze))/1e3>=Xe)}var xn=(0,qt.createAsyncThunk)(Cn+"/executeQuery",nn,{getPendingMeta:function(){var Je;return(Je={startedTimeStamp:Date.now()})[qt.SHOULD_AUTOBATCH]=!0,Je},condition:function(Je,Gt){var gt,ft,xt,Jt=(0,Gt.getState)(),Pt=(ft=(gt=Jt[Cn])==null?void 0:gt.queries)==null?void 0:ft[Je.queryCacheKey],Ke=Pt?.fulfilledTimeStamp,ze=Je.originalArgs,Xe=Pt?.originalArgs,De=qn[Je.endpointName];return!(!Wn(Je)&&(Pt?.status==="pending"||!fn(Je,Jt)&&(!dt(De)||!((xt=De?.forceRefetch)!=null&&xt.call(De,{currentArg:ze,previousArg:Xe,endpointState:Pt,state:Jt})))&&Ke))},dispatchConditionRejection:!0}),Bn=(0,qt.createAsyncThunk)(Cn+"/executeMutation",nn,{getPendingMeta:function(){var Je;return(Je={startedTimeStamp:Date.now()})[qt.SHOULD_AUTOBATCH]=!0,Je}});function jt(Je){return function(Gt){var gt,ft;return((ft=(gt=Gt?.meta)==null?void 0:gt.arg)==null?void 0:ft.endpointName)===Je}}return{queryThunk:xn,mutationThunk:Bn,prefetch:function(Je,Gt,gt){return function(ft,xt){var Jt=(function(De){return"force"in De})(gt)&>.force,Pt=(function(De){return"ifOlderThan"in De})(gt)&>.ifOlderThan,Ke=function(De){return De===void 0&&(De=!0),Rn.endpoints[Je].initiate(Gt,{forceRefetch:De})},ze=Rn.endpoints[Je].select(Gt)(xt());if(Jt)ft(Ke());else if(Pt){var Xe=ze?.fulfilledTimeStamp;if(!Xe)return void ft(Ke());(Number(new Date)-Number(new Date(Xe)))/1e3>=Pt&&ft(Ke())}else ft(Ke(!1))}},updateQueryData:function(Je,Gt,gt){return function(ft,xt){var Jt,Pt,Ke=Rn.endpoints[Je].select(Gt)(xt()),ze={patches:[],inversePatches:[],undo:function(){return ft(Rn.util.patchQueryData(Je,Gt,ze.inversePatches))}};if(Ke.status===t.uninitialized)return ze;if("data"in Ke)if((0,sn.isDraftable)(Ke.data)){var Xe=(0,sn.produceWithPatches)(Ke.data,gt),De=Xe[2];(Jt=ze.patches).push.apply(Jt,Xe[1]),(Pt=ze.inversePatches).push.apply(Pt,De)}else{var Ye=gt(Ke.data);ze.patches.push({op:"replace",path:[],value:Ye}),ze.inversePatches.push({op:"replace",path:[],value:Ke.data})}return ft(Rn.util.patchQueryData(Je,Gt,ze.patches)),ze}},upsertQueryData:function(Je,Gt,gt){return function(ft){var xt;return ft(Rn.endpoints[Je].initiate(Gt,((xt={subscribe:!1,forceRefetch:!0})[yn]=function(){return{data:gt}},xt)))}},patchQueryData:function(Je,Gt,gt){return function(ft){ft(Rn.internalActions.queryResultPatched({queryCacheKey:cr({queryArgs:Gt,endpointDefinition:qn[Je],endpointName:Je}),patches:gt}))}},buildMatchThunkActions:function(Je,Gt){return{matchPending:(0,ot.isAllOf)((0,ot.isPending)(Je),jt(Gt)),matchFulfilled:(0,ot.isAllOf)((0,ot.isFulfilled)(Je),jt(Gt)),matchRejected:(0,ot.isAllOf)((0,ot.isRejected)(Je),jt(Gt))}}}})({baseQuery:Qe,reducerPath:Be,context:je,api:le,serializeQueryArgs:vt}),nt=Oe.queryThunk,Ht=Oe.mutationThunk,yt=Oe.patchQueryData,wt=Oe.updateQueryData,Dt=Oe.upsertQueryData,Ut=Oe.prefetch,un=Oe.buildMatchThunkActions,hn=(function(Bt){var wn=Bt.reducerPath,Cn=Bt.queryThunk,tr=Bt.mutationThunk,qn=Bt.context,cr=qn.endpointDefinitions,Rn=qn.apiUid,nn=qn.extractRehydrationInfo,fn=qn.hasRehydrationInfo,xn=Bt.assertTagType,Bn=Bt.config,jt=(0,bt.createAction)(wn+"/resetApiState"),Je=(0,bt.createSlice)({name:wn+"/queries",initialState:Y,reducers:{removeQueryResult:{reducer:function(Ke,ze){delete Ke[ze.payload.queryCacheKey]},prepare:(0,bt.prepareAutoBatched)()},queryResultPatched:function(Ke,ze){var Xe=ze.payload,De=Xe.patches;v(Ke,Xe.queryCacheKey,(function(Ye){Ye.data=(0,O.applyPatches)(Ye.data,De.concat())}))}},extraReducers:function(Ke){Ke.addCase(Cn.pending,(function(ze,Xe){var De,Ye=Xe.meta,rt=Xe.meta.arg,Lt=Wn(rt);(rt.subscribe||Lt)&&(ze[De=rt.queryCacheKey]!=null||(ze[De]={status:t.uninitialized,endpointName:rt.endpointName})),v(ze,rt.queryCacheKey,(function(M){M.status=t.pending,M.requestId=Lt&&M.requestId?M.requestId:Ye.requestId,rt.originalArgs!==void 0&&(M.originalArgs=rt.originalArgs),M.startedTimeStamp=Ye.startedTimeStamp}))}
15)).addCase(Cn.fulfilled,(function(ze,Xe){var De=Xe.meta,Ye=Xe.payload;v(ze,De.arg.queryCacheKey,(function(rt){var Lt;if(rt.requestId===De.requestId||Wn(De.arg)){var M=cr[De.arg.endpointName].merge;if(rt.status=t.fulfilled,M)if(rt.data!==void 0){var E=De.fulfilledTimeStamp,N=De.arg,G=De.baseQueryMeta,Q=De.requestId,J=(0,bt.createNextState)(rt.data,(function(ve){return M(ve,Ye,{arg:N.originalArgs,baseQueryMeta:G,fulfilledTimeStamp:E,requestId:Q})}));rt.data=J}else rt.data=Ye;else rt.data=(Lt=cr[De.arg.endpointName].structuralSharing)==null||Lt?V(rt.data,Ye):Ye;delete rt.error,rt.fulfilledTimeStamp=De.fulfilledTimeStamp}}))})).addCase(Cn.rejected,(function(ze,Xe){var De=Xe.meta,Ye=De.condition,rt=De.requestId,Lt=Xe.error,M=Xe.payload;v(ze,De.arg.queryCacheKey,(function(E){if(!Ye){if(E.requestId!==rt)return;E.status=t.rejected,E.error=M??Lt}}))})).addMatcher(fn,(function(ze,Xe){for(var De=nn(Xe).queries,Ye=0,rt=Object.entries(De);Ye<rt.length;Ye++){var Lt=rt[Ye],M=Lt[1];M?.status!==t.fulfilled&&M?.status!==t.rejected||(ze[Lt[0]]=M)}}))}}),Gt=(0,bt.createSlice)({name:wn+"/mutations",initialState:Y,reducers:{removeMutationResult:{reducer:function(Ke,ze){var Xe=P(ze.payload);Xe in Ke&&delete Ke[Xe]},prepare:(0,bt.prepareAutoBatched)()}},extraReducers:function(Ke){Ke.addCase(tr.pending,(function(ze,Xe){var De=Xe.meta,Ye=De.requestId,rt=De.arg,Lt=De.startedTimeStamp;rt.track&&(ze[P(Xe.meta)]={requestId:Ye,status:t.pending,endpointName:rt.endpointName,startedTimeStamp:Lt})})).addCase(tr.fulfilled,(function(ze,Xe){var De=Xe.payload,Ye=Xe.meta;Ye.arg.track&&U(ze,Ye,(function(rt){rt.requestId===Ye.requestId&&(rt.status=t.fulfilled,rt.data=De,rt.fulfilledTimeStamp=Ye.fulfilledTimeStamp)}))})).addCase(tr.rejected,(function(ze,Xe){var De=Xe.payload,Ye=Xe.error,rt=Xe.meta;rt.arg.track&&U(ze,rt,(function(Lt){Lt.requestId===rt.requestId&&(Lt.status=t.rejected,Lt.error=De??Ye)}))})).addMatcher(fn,(function(ze,Xe){for(var De=nn(Xe).mutations,Ye=0,rt=Object.entries(De);Ye<rt.length;Ye++){var Lt=rt[Ye],M=Lt[0],E=Lt[1];E?.status!==t.fulfilled&&E?.status!==t.rejected||M===E?.requestId||(ze[M]=E)}}))}}),gt=(0,bt.createSlice)({name:wn+"/invalidation",initialState:Y,reducers:{},extraReducers:function(Ke){Ke.addCase(Je.actions.removeQueryResult,(function(ze,Xe){for(var De=Xe.payload.queryCacheKey,Ye=0,rt=Object.values(ze);Ye<rt.length;Ye++)for(var Lt=0,M=Object.values(rt[Ye]);Lt<M.length;Lt++){var E=M[Lt],N=E.indexOf(De);N!==-1&&E.splice(N,1)}})).addMatcher(fn,(function(ze,Xe){for(var De,Ye,rt,Lt,M=nn(Xe).provided,E=0,N=Object.entries(M);E<N.length;E++)for(var G=N[E],Q=G[0],J=0,ve=Object.entries(G[1]);J<ve.length;J++)for(var ge=ve[J],Te=ge[0],xe=ge[1],Fe=(Lt=(Ye=(De=ze[Q])!=null?De:ze[Q]={})[rt=Te||"__internal_without_id"])!=null?Lt:Ye[rt]=[],et=0,It=xe;et<It.length;et++){var se=It[et];Fe.includes(se)||Fe.push(se)}})).addMatcher((0,bt.isAnyOf)((0,bt.isFulfilled)(Cn),(0,bt.isRejectedWithValue)(Cn)),(function(ze,Xe){for(var De,Ye,rt,Lt,M=Pn(Xe,"providesTags",cr,xn),E=Xe.meta.arg.queryCacheKey,N=0,G=Object.values(ze);N<G.length;N++)for(var Q=0,J=Object.values(G[N]);Q<J.length;Q++){var ve=J[Q],ge=ve.indexOf(E);ge!==-1&&ve.splice(ge,1)}for(var Te=0,xe=M;Te<xe.length;Te++){var Fe=xe[Te],et=Fe.type,It=Fe.id,se=(Lt=(Ye=(De=ze[et])!=null?De:ze[et]={})[rt=It||"__internal_without_id"])!=null?Lt:Ye[rt]=[];se.includes(E)||se.push(E)}}))}}),ft=(0,bt.createSlice)({name:wn+"/subscriptions",initialState:Y,reducers:{updateSubscriptionOptions:function(Ke,ze){},unsubscribeQueryResult:function(Ke,ze){},internal_probeSubscription:function(Ke,ze){}}}),xt=(0,bt.createSlice)({name:wn+"/internalSubscriptions",initialState:Y,reducers:{subscriptionsUpdated:function(Ke,ze){return(0,O.applyPatches)(Ke,ze.payload)}}}),Jt=(0,bt.createSlice)({name:wn+"/config",initialState:C({online:typeof navigator>"u"||navigator.onLine===void 0||navigator.onLine,focused:typeof document>"u"||document.visibilityState!=="hidden",middlewareRegistered:!1},Bn),reducers:{middlewareRegistered:function(Ke,ze){Ke.middlewareRegistered=Ke.middlewareRegistered!=="conflict"&&Rn===ze.payload||"conflict"}},extraReducers:function(Ke){Ke.addCase(he,(function(ze){ze.online=!0})).addCase(Ce,(function(ze){ze.online=!1})).addCase(H,(function(ze){ze.focused=!0})).addCase(K,(function(ze){ze.focused=!1})).addMatcher(fn,(function(ze){return C({},ze)}))}}),Pt=(0,bt.combineReducers)({queries:Je.reducer,mutations:Gt.reducer,provided:gt.reducer,subscriptions:xt.reducer,config:Jt.reducer});return{reducer:function(Ke,ze){return Pt(jt.match(ze)?void 0:Ke,ze)},actions:R(C(C(C(C(C({},Jt.actions),Je.actions),ft.actions),xt.actions),Gt.actions),{unsubscribeMutationResult:Gt.actions.removeMutationResult,resetApiState:jt})}})({context:je,queryThunk:nt,mutationThunk:Ht,reducerPath:Be,assertTagType:it,config:{refetchOnFocus:Tt,refetchOnReconnect:Ot,refetchOnMountOrArgChange:rn,keepUnusedData
15For:Ct,reducerPath:Be}}),Mn=hn.reducer,Fn=hn.actions;xr(le.util,{patchQueryData:yt,updateQueryData:wt,upsertQueryData:Dt,prefetch:Ut,resetApiState:Fn.resetApiState}),xr(le.internalActions,Fn);var er=(function(Bt){var wn=Bt.reducerPath,Cn=Bt.queryThunk,tr=Bt.api,qn=Bt.context,cr=qn.apiUid,Rn={invalidateTags:(0,$e.createAction)(wn+"/invalidateTags")},nn=[Yr,tt,Ft,Qt,Hn,Ni];return{middleware:function(xn){var Bn=!1,jt=R(C({},Bt),{internalState:{currentSubscriptions:{}},refetchQuery:fn}),Je=nn.map((function(ft){return ft(jt)})),Gt=(function(ft){var xt=ft.api,Jt=ft.queryThunk,Pt=ft.internalState,Ke=xt.reducerPath+"/subscriptions",ze=null,Xe=!1,De=xt.internalActions,Ye=De.updateSubscriptionOptions,rt=De.unsubscribeQueryResult;return function(Lt,M){var E,N;if(ze||(ze=JSON.parse(JSON.stringify(Pt.currentSubscriptions))),xt.internalActions.internal_probeSubscription.match(Lt)){var G=Lt.payload;return[!1,!!((E=Pt.currentSubscriptions[G.queryCacheKey])!=null&&E[G.requestId])]}var Q=(function(ge,Te){var xe,Fe,et,It,se,We,St,pt,dn;if(Ye.match(Te)){var st=Te.payload,Sn=st.queryCacheKey,An=st.requestId;return(xe=ge?.[Sn])!=null&&xe[An]&&(ge[Sn][An]=st.options),!0}if(rt.match(Te)){var Nr=Te.payload;return An=Nr.requestId,ge[Sn=Nr.queryCacheKey]&&delete ge[Sn][An],!0}if(xt.internalActions.removeQueryResult.match(Te))return delete ge[Te.payload.queryCacheKey],!0;if(Jt.pending.match(Te)){var Vr=Te.meta;if(An=Vr.requestId,(sr=Vr.arg).subscribe)return(tn=(et=ge[Fe=sr.queryCacheKey])!=null?et:ge[Fe]={})[An]=(se=(It=sr.subscriptionOptions)!=null?It:tn[An])!=null?se:{},!0}if(Jt.rejected.match(Te)){var tn,Pr=Te.meta,sr=Pr.arg;if(An=Pr.requestId,Pr.condition&&sr.subscribe)return(tn=(St=ge[We=sr.queryCacheKey])!=null?St:ge[We]={})[An]=(dn=(pt=sr.subscriptionOptions)!=null?pt:tn[An])!=null?dn:{},!0}return!1})(Pt.currentSubscriptions,Lt);if(Q){Xe||(si((function(){var ge=JSON.parse(JSON.stringify(Pt.currentSubscriptions)),Te=(0,fa.produceWithPatches)(ze,(function(){return ge}));M.next(xt.internalActions.subscriptionsUpdated(Te[1])),ze=ge,Xe=!1})),Xe=!0);var J=!!((N=Lt.type)!=null&&N.startsWith(Ke)),ve=Jt.rejected.match(Lt)&&Lt.meta.condition&&!!Lt.meta.arg.subscribe;return[!J&&!ve,!1]}return[!0,!1]}})(jt),gt=(function(ft){var xt=ft.reducerPath,Jt=ft.context,Pt=ft.refetchQuery,Ke=ft.internalState,ze=ft.api.internalActions.removeQueryResult;function Xe(De,Ye){var rt=De.getState()[xt],Lt=rt.queries,M=Ke.currentSubscriptions;Jt.batch((function(){for(var E=0,N=Object.keys(M);E<N.length;E++){var G=N[E],Q=Lt[G],J=M[G];J&&Q&&(Object.values(J).some((function(ve){return ve[Ye]===!0}))||Object.values(J).every((function(ve){return ve[Ye]===void 0}))&&rt.config[Ye])&&(Object.keys(J).length===0?De.dispatch(ze({queryCacheKey:G})):Q.status!==t.uninitialized&&De.dispatch(Pt(Q,G)))}}))}return function(De,Ye){H.match(De)&&Xe(Ye,"refetchOnFocus"),he.match(De)&&Xe(Ye,"refetchOnReconnect")}})(jt);return function(ft){return function(xt){Bn||(Bn=!0,xn.dispatch(tr.internalActions.middlewareRegistered(cr)));var Jt,Pt=R(C({},xn),{next:ft}),Ke=xn.getState(),ze=Gt(xt,Pt,Ke),Xe=ze[1];if(Jt=ze[0]?ft(xt):Xe,xn.getState()[wn]&&(gt(xt,Pt,Ke),(function(rt){return!!rt&&typeof rt.type=="string"&&rt.type.startsWith(wn+"/")})(xt)||qn.hasRehydrationInfo(xt)))for(var De=0,Ye=Je;De<Ye.length;De++)(0,Ye[De])(xt,Pt,Ke);return Jt}}},actions:Rn};function fn(xn,Bn,jt){return jt===void 0&&(jt={}),Cn(C({type:"query",endpointName:xn.endpointName,originalArgs:xn.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:Bn},jt))}})({reducerPath:Be,context:je,queryThunk:nt,mutationThunk:Ht,api:le,assertTagType:it}),Kn=er.middleware;xr(le.util,er.actions),xr(le,{reducer:Mn,middleware:Kn});var ar=(function(Bt){var wn=Bt.serializeQueryArgs,Cn=Bt.reducerPath,tr=function(nn){return fe},qn=function(nn){return oe};return{buildQuerySelector:function(nn,fn){return function(xn){var Bn=wn({queryArgs:xn,endpointDefinition:fn,endpointName:nn});return(0,ht.createSelector)(xn===Ee?tr:function(jt){var Je,Gt,gt;return(gt=(Gt=(Je=Rn(jt))==null?void 0:Je.queries)==null?void 0:Gt[Bn])!=null?gt:fe},cr)}},buildMutationSelector:function(){return function(nn){var fn,xn;return xn=typeof nn=="object"?(fn=P(nn))!=null?fn:Ee:nn,(0,ht.createSelector)(xn===Ee?qn:function(Bn){var jt,Je,Gt;return(Gt=(Je=(jt=Rn(Bn))==null?void 0:jt.mutations)==null?void 0:Je[xn])!=null?Gt:oe},cr)}},selectInvalidatedBy:function(nn,fn){for(var xn,Bn=nn[Cn],jt=new Set,Je=0,Gt=fn.map($t);Je<Gt.length;Je++){var gt=Gt[Je],ft=Bn.provided[gt.type];if(ft)for(var xt=0,Jt=(xn=gt.id!==void 0?ft[gt.id]:j(Object.values(ft)))!=null?xn:[];xt<Jt.length;xt++)jt.add(Jt[xt])}return j(Array.from(jt.values()).map((function(Pt){var Ke=Bn.queries[Pt];return Ke?[{queryCacheKey:Pt,endpointName:Ke.endpointName,originalArgs:Ke.originalArgs}]:[]})))}};function cr(nn){return C(C({},nn),{status:fn=nn.status,isUninitialized:fn===t.uninitialized,isLoading:fn===t.pending,isSuccess:fn===t.fulfilled,isError:fn===t.rejected});var fn}function Rn(nn){return nn[Cn]}})({serializeQueryArgs:vt,reducerPath:Be}),cn=ar.buildQuerySelector,mr=ar.buildMutationSelector;xr(le.util,{selectInvalidatedBy:ar.selectInvalidatedBy});var or=(function(Bt){var wn=Bt.serializeQueryArgs,Cn=Bt.queryThunk,tr=Bt.mutationThunk,qn=Bt.api,cr=Bt.context,Rn=new Map,nn=new Map,fn=qn.internalActions,xn=fn.unsubscribeQueryResult,Bn=fn.removeMutationResult,jt=fn.updateSubscriptionOptions;return{buildInitiateQuery:function(Je,Gt){var gt=function(ft,xt){var Jt=xt===void 0?{}:xt,Pt=Jt.subscribe,Ke=Pt===void 0||Pt,ze=Jt.forceRefetch,Xe=Jt.subscriptionOptions,De=Jt[yn];return function(Ye,rt){var Lt,M,E=wn({queryArgs:ft,endpointDefinition:Gt,endpointName:Je}),N=Cn(((Lt={type:"query",subscribe:Ke,forceRefetch:ze,subscriptionOptions:Xe,endpointName:Je,originalArgs:ft,queryCacheKey:E})[yn]=De,Lt)),G=qn.endpoints[Je].select(ft),Q=Ye(N),J=G(rt()),ve=Q.requestId,ge=Q.abort,Te=J.requestId!==ve,xe=(M=Rn.get(Ye))==null?void 0:M[E],Fe=function(){return G(rt())},et=Object.assign(De?Q.then(Fe):Te&&!xe?Promise.resolve(J):Promise.all([xe,Q]).then(Fe),{arg:ft,requestId:ve,subscriptionOptions:Xe,queryCacheKey:E,abort:ge,unwrap:function(){return L(this,null,(function(){var se;return i(this,(function(We){switch(We.label){case 0:return[4,et];case 1:if((se=We.sent()).isError)throw se.error;return[2,se.data]}}))}))},refetch:function(){return Ye(gt(ft,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){Ke&&Ye(xn({queryCacheKey:E,requestId:ve}))},updateSubscriptionOptions:function(se){et.subscriptionOptions=se,Ye(jt({endpointName:Je,requestId:ve,queryCacheKey:E,options:se}))}});if(!xe&&!Te&&!De){var It=Rn.get(Ye)||{};It[E]=et,Rn.set(Ye,It),et.then((function(){delete It[E],Object.keys(It).length||Rn.delete(Ye)}))}return et}};return gt},buildInitiateMutation:function(Je){return function(Gt,gt){var ft=gt===void 0?{}:gt,xt=ft.track,Jt=xt===void 0||xt,Pt=ft.fixedCacheKey;return function(Ke,ze){var Xe=tr({type:"mutation",endpointName:Je,originalArgs:Gt,track:Jt,fixedCacheKey:Pt}),De=Ke(Xe),Ye=De.requestId,rt=De.abort,Lt=De.unwrap,M=De.unwrap().then((function(Q){return{data:Q}})).catch((function(Q){return{error:Q}})),E=function(){Ke(Bn({requestId:Ye,fixedCacheKey:Pt}))},N=Object.assign(M,{arg:De.arg,requestId:Ye,abort:rt,unwrap:Lt,unsubscribe:E,reset:E}),G=nn.get(Ke)||{};return nn.set(Ke,G),G[Ye]=N,N.then((function(){delete G[Ye],Object.keys(G).length||nn.delete(Ke)})),Pt&&(G[Pt]=N,N.then((function(){G[Pt]===N&&(delete G[Pt],Object.keys(G).length||nn.delete(Ke))}))),N}}},getRunningQueryThunk:function(Je,Gt){return function(gt){var ft,xt=wn({queryArgs:Gt,endpointDefinition:cr.endpointDefinitions[Je],endpointName:Je});return(ft=Rn.get(gt))==null?void 0:ft[xt]}},getRunningMutationThunk:function(Je,Gt){return function(gt){var ft;return(ft=nn.get(gt))==null?void 0:ft[Gt]}},getRunningQueriesThunk:function(){return function(Je){return Object.values(Rn.get(Je)||{}).filter(vn)}},getRunningMutationsThunk:function(){return function(Je){return Object.values(nn.get(Je)||{}).filter(vn)}},getRunningOperationPromises:function(){var Je=function(Gt){return Array.from(Gt.values()).flatMap((function(gt){return gt?Object.values(gt):[]}))};return o(o([],Je(Rn)),Je(nn)).filter(vn)},removalWarning:function(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. 16 Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. 17 See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}}})({queryThunk:nt,mutationThunk:Ht,api:le,serializeQueryArgs:vt,context:je}),zr=or.buildInitiateQuery,Tr=or.buildInitiateMutation;return xr(le.util,{getRunningOperationPromises:or.getRunningOperationPromises,getRunningOperationPromise:or.removalWarning,getRunningMutationThunk:or.getRunningMutationThunk,getRunningMutationsThunk:or.getRunningMutationsThunk,getRunningQueryThunk:or.getRunningQueryThunk,getRunningQueriesThunk:or.getRunningQueriesThunk}),{name:pa,injectEndpoint:function(Bt,wn){var Cn,tr=le;(Cn=tr.endpoints)[Bt]!=null||(Cn[Bt]={}),dt(wn)?xr(tr.endpoints[Bt],{name:Bt,select:cn(Bt,wn),initiate:zr(Bt,wn)},un(nt,Bt)):wn.type===Re.mutation&&xr(tr.endpoints[Bt],{name:Bt,select:mr(),initiate:Tr(Bt)},un(Ht,Bt))}}}}},Fi=Me(ir())})(Vo)),Vo}var w2;function r_(){return w2||(w2=1,Cp.exports=n_()),Cp.exports}var su=r_(),jd=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(f){return function(h){return d([f,h])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,o&&(s=f[0]&2?o.return:f[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,f[1])).done)return s;switch(o=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){n.label=f[1];break}if(f[0]===6&&n.label<s[1]){n.label=s[1],s=f;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(f);break}s[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(h){f=[6,h],o=0}finally{i=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Od=function(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e},i_=Object.defineProperty,a_=Object.defineProperties,o_=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,h5=Object.prototype.hasOwnProperty,m5=Object.prototype.propertyIsEnumerable,b2=function(e,t,n){return t in e?i_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},pr=function(e,t){for(var n in t||(t={}))h5.call(t,n)&&b2(e,n,t[n]);if(Nd)for(var i=0,o=Nd(t);i<o.length;i++){var n=o[i];m5.call(t,n)&&b2(e,n,t[n])}return e},ra=function(e,t){return a_(e,o_(t))},_2=function(e,t){var n={};for(var i in e)h5.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Nd)for(var o=0,s=Nd(e);o<s.length;o++){var i=s[o];t.indexOf(i)<0&&m5.call(e,i)&&(n[i]=e[i])}return n},Fd=function(e,t,n){return new Promise(function(i,o){var s=function(d){try{c(n.next(d))}catch(f){o(f)}},l=function(d){try{c(n.throw(d))}catch(f){o(f)}},c=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(s,l)};c((n=n.apply(e,t)).next())})},Xn;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(Xn||(Xn={}));function s_(e){return{status:e,isUninitialized:e===Xn.uninitialized,isLoading:e===Xn.pending,isSuccess:e===Xn.fulfilled,isError:e===Xn.rejected}}function l_(e){return new RegExp("(^|:)//").test(e)}var u_=function(e){return e.replace(/\/$/,"")},c_=function(e){return e.replace(/^\//,"")};function d_(e,t){if(!e)return t;if(!t)return e;if(l_(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=u_(e),t=c_(t),""+e+n+t}var C2=function(e){return[].concat.apply([],e)};function f_(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function p_(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var x2=Ha;function g5(e,t){if(e===t||!(x2(e)&&x2(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var n=Object.keys(t),i=Object.keys(e),o=n.length===i.length,s=Array.isArray(t)?[]:{},l=0,c=n;l<c.length;l++){var d=c[l];s[d]=g5(e[d],t[d]),o&&(o=e[d]===s[d])}return o?e:s}var S2=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},h_=function(e){return e.status>=200&&e.status<=299}
17,m_=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function A2(e){if(!Ha(e))return e;for(var t=pr({},e),n=0,i=Object.entries(t);n<i.length;n++){var o=i[n],s=o[0],l=o[1];l===void 0&&delete t[s]}return t}function g_(e){var t=this;e===void 0&&(e={});var n=e,i=n.baseUrl,o=n.prepareHeaders,s=o===void 0?function(R){return R}:o,l=n.fetchFn,c=l===void 0?S2:l,d=n.paramsSerializer,f=n.isJsonContentType,h=f===void 0?m_:f,g=n.jsonContentType,w=g===void 0?"application/json":g,m=n.timeout,b=n.validateStatus,_=_2(n,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","timeout","validateStatus"]);return typeof fetch>"u"&&c===S2&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(R,I){return Fd(t,null,function(){var k,A,L,j,D,V,q,$,W,ae,te,ce,pe,me,ne,X,re,H,K,he,Ce,ke,be,Re,Ve,ht,dt,ut,$t,bt,vn,yn,Wn,ot,sn,qt,en,Pn,O,v;return jd(this,function(P){switch(P.label){case 0:return k=I.signal,A=I.getState,L=I.extra,j=I.endpoint,D=I.forced,V=I.type,$=typeof R=="string"?{url:R}:R,W=$.url,ae=$.method,te=ae===void 0?"GET":ae,ce=$.headers,pe=ce===void 0?new Headers(_.headers):ce,me=$.body,ne=me===void 0?void 0:me,X=$.params,re=X===void 0?void 0:X,H=$.responseHandler,K=H===void 0?"json":H,he=$.validateStatus,Ce=he===void 0?b??h_:he,ke=$.timeout,be=ke===void 0?m:ke,Re=_2($,["url","method","headers","body","params","responseHandler","validateStatus","timeout"]),Ve=pr(ra(pr({},_),{method:te,signal:k,body:ne}),Re),pe=new Headers(A2(pe)),ht=Ve,[4,s(pe,{getState:A,extra:L,endpoint:j,forced:D,type:V})];case 1:ht.headers=P.sent()||pe,dt=function(U){return typeof U=="object"&&(Ha(U)||Array.isArray(U)||typeof U.toJSON=="function")},!Ve.headers.has("content-type")&&dt(ne)&&Ve.headers.set("content-type",w),dt(ne)&&h(Ve.headers)&&(Ve.body=JSON.stringify(ne)),re&&(ut=~W.indexOf("?")?"&":"?",$t=d?d(re):new URLSearchParams(A2(re)),W+=ut+$t),W=d_(i,W),bt=new Request(W,Ve),vn=bt.clone(),q={request:vn},Wn=!1,ot=be&&setTimeout(function(){Wn=!0,I.abort()},be),P.label=2;case 2:return P.trys.push([2,4,5,6]),[4,c(bt)];case 3:return yn=P.sent(),[3,6];case 4:return sn=P.sent(),[2,{error:{status:Wn?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(sn)},meta:q}];case 5:return ot&&clearTimeout(ot),[7];case 6:qt=yn.clone(),q.response=qt,Pn="",P.label=7;case 7:return P.trys.push([7,9,,10]),[4,Promise.all([C(yn,K).then(function(U){return en=U},function(U){return O=U}),qt.text().then(function(U){return Pn=U},function(){})])];case 8:if(P.sent(),O)throw O;return[3,10];case 9:return v=P.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:yn.status,data:Pn,error:String(v)},meta:q}];case 10:return[2,Ce(yn,en)?{data:en,meta:q}:{error:{status:yn.status,data:en},meta:q}]}})})};function C(R,I){return Fd(this,null,function(){var k;return jd(this,function(A){switch(A.label){case 0:return typeof I=="function"?[2,I(R)]:(I==="content-type"&&(I=h(R.headers)?"json":"text"),I!=="json"?[3,2]:[4,R.text()]);case 1:return k=A.sent(),[2,k.length?JSON.parse(k):null];case 2:return[2,R.text()]}})})}}var E2=(function(){function e(t,n){n===void 0&&(n=void 0),this.value=t,this.meta=n}return e})(),C0=Ur("__rtkq/focused"),v5=Ur("__rtkq/unfocused"),x0=Ur("__rtkq/online"),y5=Ur("__rtkq/offline"),sa;(function(e){e.query="query",e.mutation="mutation"})(sa||(sa={}));function w5(e){return e.type===sa.query}function v_(e){return e.type===sa.mutation}function b5(e,t,n,i,o,s){return y_(e)?e(t,n,i,o).map(Ah).map(s):Array.isArray(e)?e.map(Ah).map(s):[]}function y_(e){return typeof e=="function"}function Ah(e){return typeof e=="string"?{type:e}:e}function Sp(e){return e!=null}var lu=Symbol("forceQueryFn"),Eh=function(e){return typeof e[lu]=="function"};function w_(e){var t=e.serializeQueryArgs,n=e.queryThunk,i=e.mutationThunk,o=e.api,s=e.context,l=new Map,c=new Map,d=o.internalActions,f=d.unsubscribeQueryResult,h=d.removeMutationResult,g=d.updateSubscriptionOptions;return{buildInitiateQuery:I,buildInitiateMutation:k,getRunningQueryThunk:b,getRunningMutationThunk:_,getRunningQueriesThunk:C,getRunningMutationsThunk:R,getRunningOperationPromises:m,removalWarning:w};function w(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. 18 Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. 19 See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function m(){{var A=function(L){return Array.from(L.values()).flatMap(function(j){return j?Object.values(j):[]})};return Od(Od([],A(l)),A(c)).filter(Sp)}}function b(A,L){return function(j){var D,V=s.endpointDefinitions[A],q=t({queryArgs:L,endpointDefinition:V,endpointName:A});return(D=l.get(j))==null?void 0:D[q]}}function _(A,L){return function(j){var D;return(D=c.get(j))==null?void 0:D[L]}}function C(){return function(A){return Object.values(l.get(A)||{}).filter(Sp)}}function R(){return function(A){return Object.values(c.get(A)||{}).filter(Sp)}}
19function I(A,L){var j=function(D,V){var q=V===void 0?{}:V,$=q.subscribe,W=$===void 0?!0:$,ae=q.forceRefetch,te=q.subscriptionOptions,ce=lu,pe=q[ce];return function(me,ne){var X,re,H=t({queryArgs:D,endpointDefinition:L,endpointName:A}),K=n((X={type:"query",subscribe:W,forceRefetch:ae,subscriptionOptions:te,endpointName:A,originalArgs:D,queryCacheKey:H},X[lu]=pe,X)),he=o.endpoints[A].select(D),Ce=me(K),ke=he(ne()),be=Ce.requestId,Re=Ce.abort,Ve=ke.requestId!==be,ht=(re=l.get(me))==null?void 0:re[H],dt=function(){return he(ne())},ut=Object.assign(pe?Ce.then(dt):Ve&&!ht?Promise.resolve(ke):Promise.all([ht,Ce]).then(dt),{arg:D,requestId:be,subscriptionOptions:te,queryCacheKey:H,abort:Re,unwrap:function(){return Fd(this,null,function(){var bt;return jd(this,function(vn){switch(vn.label){case 0:return[4,ut];case 1:if(bt=vn.sent(),bt.isError)throw bt.error;return[2,bt.data]}})})},refetch:function(){return me(j(D,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){W&&me(f({queryCacheKey:H,requestId:be}))},updateSubscriptionOptions:function(bt){ut.subscriptionOptions=bt,me(g({endpointName:A,requestId:be,queryCacheKey:H,options:bt}))}});if(!ht&&!Ve&&!pe){var $t=l.get(me)||{};$t[H]=ut,l.set(me,$t),ut.then(function(){delete $t[H],Object.keys($t).length||l.delete(me)})}return ut}};return j}function k(A){return function(L,j){var D=j===void 0?{}:j,V=D.track,q=V===void 0?!0:V,$=D.fixedCacheKey;return function(W,ae){var te=i({type:"mutation",endpointName:A,originalArgs:L,track:q,fixedCacheKey:$}),ce=W(te),pe=ce.requestId,me=ce.abort,ne=ce.unwrap,X=ce.unwrap().then(function(he){return{data:he}}).catch(function(he){return{error:he}}),re=function(){W(h({requestId:pe,fixedCacheKey:$}))},H=Object.assign(X,{arg:ce.arg,requestId:pe,abort:me,unwrap:ne,unsubscribe:re,reset:re}),K=c.get(W)||{};return c.set(W,K),K[pe]=H,H.then(function(){delete K[pe],Object.keys(K).length||c.delete(W)}),$&&(K[$]=H,H.then(function(){K[$]===H&&(delete K[$],Object.keys(K).length||c.delete(W))})),H}}}}function k2(e){return e}function b_(e){var t=this,n=e.reducerPath,i=e.baseQuery,o=e.context.endpointDefinitions,s=e.serializeQueryArgs,l=e.api,c=function(k,A,L){return function(j){var D=o[k];j(l.internalActions.queryResultPatched({queryCacheKey:s({queryArgs:A,endpointDefinition:D,endpointName:k}),patches:L}))}},d=function(k,A,L){return function(j,D){var V,q,$=l.endpoints[k].select(A)(D()),W={patches:[],inversePatches:[],undo:function(){return j(l.util.patchQueryData(k,A,W.inversePatches))}};if($.status===Xn.uninitialized)return W;if("data"in $)if($i($.data)){var ae=B4($.data,L),te=ae[1],ce=ae[2];(V=W.patches).push.apply(V,te),(q=W.inversePatches).push.apply(q,ce)}else{var pe=L($.data);W.patches.push({op:"replace",path:[],value:pe}),W.inversePatches.push({op:"replace",path:[],value:$.data})}return j(l.util.patchQueryData(k,A,W.patches)),W}},f=function(k,A,L){return function(j){var D;return j(l.endpoints[k].initiate(A,(D={subscribe:!1,forceRefetch:!0},D[lu]=function(){return{data:L}},D)))}},h=function(k,A){return Fd(t,[k,A],function(L,j){var D,V,q,$,W,ae,te,ce,pe,me,ne,X,re,H=j.signal,K=j.abort,he=j.rejectWithValue,Ce=j.fulfillWithValue,ke=j.dispatch,be=j.getState,Re=j.extra;return jd(this,function(Ve){switch(Ve.label){case 0:D=o[L.endpointName],Ve.label=1;case 1:return Ve.trys.push([1,8,,13]),V=k2,q=void 0,$={signal:H,abort:K,dispatch:ke,getState:be,extra:Re,endpoint:L.endpointName,type:L.type,forced:L.type==="query"?g(L,be()):void 0},W=L.type==="query"?L[lu]:void 0,W?(q=W(),[3,6]):[3,2];case 2:return D.query?[4,i(D.query(L.originalArgs),$,D.extraOptions)]:[3,4];case 3:return q=Ve.sent(),D.transformResponse&&(V=D.transformResponse),[3,6];case 4:return[4,D.queryFn(L.originalArgs,$,D.extraOptions,function(ht){return i(ht,$,D.extraOptions)})];case 5:q=Ve.sent(),Ve.label=6;case 6:if(q.error)throw new E2(q.error,q.meta);return ae=Ce,[4,V(q.data,q.meta,L.originalArgs)];case 7:return[2,ae.apply(void 0,[Ve.sent(),(X={fulfilledTimeStamp:Date.now(),baseQueryMeta:q.meta},X[Jo]=!0,X)])];case 8:if(te=Ve.sent(),ce=te,!(ce instanceof E2))return[3,12];pe=k2,D.query&&D.transformErrorResponse&&(pe=D.transformErrorResponse),Ve.label=9;case 9:return Ve.trys.push([9,11,,12]),me=he,[4,pe(ce.value,ce.meta,L.originalArgs)];case 10:return[2,me.apply(void 0,[Ve.sent(),(re={baseQueryMeta:ce.meta},re[Jo]=!0,re)])];case 11:return ne=Ve.sent(),ce=ne,[3,12];case 12:throw console.error(ce),ce;case 13:return[2]}})})};function g(k,A){var L,j,D,V,q=(j=(L=A[n])==null?void 0:L.queries)==null?void 0:j[k.queryCacheKey],$=(D=A[n])==null?void 0:D.config.refetchOnMountOrArgChange,W=q?.fulfilledTimeStamp,ae=(V=k.forceRefetch)!=null?V:k.subscribe&&$;return ae?ae===!0||(Number(new Date)-Number(W))/1e3>=ae:!1}var w=Md(n+"/executeQuery",h,{getPendingMeta:function(){var k;return k={startedTimeStamp:Date.now()},k[Jo]=!0,k},condition:function(k,A){var L=A.getState,j,D,V,q=L(),$=(D=(j=q[n])==null?void 0:j.queries)==null?void 0:D[k.queryCacheKey],W=$?.fulfilledTimeStamp,ae=k.originalArgs,te=$?.originalArgs,ce=o[k.endpointName];return Eh(k)?!0:$?.status==="pending"?!1:g(k,q)||w5(ce)&&((V=ce?.forceRefetch)!=null&&V.call(ce,{currentArg:ae,previousArg:te,endpointState:$,state:q}))?!0:!W},dispatchConditionRejection:!0}
19),m=Md(n+"/executeMutation",h,{getPendingMeta:function(){var k;return k={startedTimeStamp:Date.now()},k[Jo]=!0,k}}),b=function(k){return"force"in k},_=function(k){return"ifOlderThan"in k},C=function(k,A,L){return function(j,D){var V=b(L)&&L.force,q=_(L)&&L.ifOlderThan,$=function(ce){return ce===void 0&&(ce=!0),l.endpoints[k].initiate(A,{forceRefetch:ce})},W=l.endpoints[k].select(A)(D());if(V)j($());else if(q){var ae=W?.fulfilledTimeStamp;if(!ae){j($());return}var te=(Number(new Date)-Number(new Date(ae)))/1e3>=q;te&&j($())}else j($(!1))}};function R(k){return function(A){var L,j;return((j=(L=A?.meta)==null?void 0:L.arg)==null?void 0:j.endpointName)===k}}function I(k,A){return{matchPending:Bs(df(k),R(A)),matchFulfilled:Bs(To(k),R(A)),matchRejected:Bs(Qs(k),R(A))}}return{queryThunk:w,mutationThunk:m,prefetch:C,updateQueryData:d,upsertQueryData:f,patchQueryData:c,buildMatchThunkActions:I}}function _5(e,t,n,i){return b5(n[e.meta.arg.endpointName][t],To(e)?e.payload:void 0,xu(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,i)}function Nc(e,t,n){var i=e[t];i&&n(i)}function uu(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function T2(e,t,n){var i=e[uu(t)];i&&n(i)}var zl={};function __(e){var t=e.reducerPath,n=e.queryThunk,i=e.mutationThunk,o=e.context,s=o.endpointDefinitions,l=o.apiUid,c=o.extractRehydrationInfo,d=o.hasRehydrationInfo,f=e.assertTagType,h=e.config,g=Ur(t+"/resetApiState"),w=Wi({name:t+"/queries",initialState:zl,reducers:{removeQueryResult:{reducer:function(L,j){var D=j.payload.queryCacheKey;delete L[D]},prepare:Sh()},queryResultPatched:function(L,j){var D=j.payload,V=D.queryCacheKey,q=D.patches;Nc(L,V,function($){$.data=a2($.data,q.concat())})}},extraReducers:function(L){L.addCase(n.pending,function(j,D){var V=D.meta,q=D.meta.arg,$,W,ae=Eh(q);(q.subscribe||ae)&&((W=j[$=q.queryCacheKey])!=null||(j[$]={status:Xn.uninitialized,endpointName:q.endpointName})),Nc(j,q.queryCacheKey,function(te){te.status=Xn.pending,te.requestId=ae&&te.requestId?te.requestId:V.requestId,q.originalArgs!==void 0&&(te.originalArgs=q.originalArgs),te.startedTimeStamp=V.startedTimeStamp})}).addCase(n.fulfilled,function(j,D){var V=D.meta,q=D.payload;Nc(j,V.arg.queryCacheKey,function($){var W;if(!($.requestId!==V.requestId&&!Eh(V.arg))){var ae=s[V.arg.endpointName].merge;if($.status=Xn.fulfilled,ae)if($.data!==void 0){var te=V.fulfilledTimeStamp,ce=V.arg,pe=V.baseQueryMeta,me=V.requestId,ne=cs($.data,function(X){return ae(X,q,{arg:ce.originalArgs,baseQueryMeta:pe,fulfilledTimeStamp:te,requestId:me})});$.data=ne}else $.data=q;else $.data=(W=s[V.arg.endpointName].structuralSharing)==null||W?g5($.data,q):q;delete $.error,$.fulfilledTimeStamp=V.fulfilledTimeStamp}})}).addCase(n.rejected,function(j,D){var V=D.meta,q=V.condition,$=V.arg,W=V.requestId,ae=D.error,te=D.payload;Nc(j,$.queryCacheKey,function(ce){if(!q){if(ce.requestId!==W)return;ce.status=Xn.rejected,ce.error=te??ae}})}).addMatcher(d,function(j,D){for(var V=c(D).queries,q=0,$=Object.entries(V);q<$.length;q++){var W=$[q],ae=W[0],te=W[1];(te?.status===Xn.fulfilled||te?.status===Xn.rejected)&&(j[ae]=te)}})}}),m=Wi({name:t+"/mutations",initialState:zl,reducers:{removeMutationResult:{reducer:function(L,j){var D=j.payload,V=uu(D);V in L&&delete L[V]},prepare:Sh()}},extraReducers:function(L){L.addCase(i.pending,function(j,D){var V=D.meta,q=D.meta,$=q.requestId,W=q.arg,ae=q.startedTimeStamp;W.track&&(j[uu(V)]={requestId:$,status:Xn.pending,endpointName:W.endpointName,startedTimeStamp:ae})}).addCase(i.fulfilled,function(j,D){var V=D.payload,q=D.meta;q.arg.track&&T2(j,q,function($){$.requestId===q.requestId&&($.status=Xn.fulfilled,$.data=V,$.fulfilledTimeStamp=q.fulfilledTimeStamp)})}).addCase(i.rejected,function(j,D){var V=D.payload,q=D.error,$=D.meta;$.arg.track&&T2(j,$,function(W){W.requestId===$.requestId&&(W.status=Xn.rejected,W.error=V??q)})}).addMatcher(d,function(j,D){for(var V=c(D).mutations,q=0,$=Object.entries(V);q<$.length;q++){var W=$[q],ae=W[0],te=W[1];(te?.status===Xn.fulfilled||te?.status===Xn.rejected)&&ae!==te?.requestId&&(j[ae]=te)}})}}),b=Wi({name:t+"/invalidation",initialState:zl,reducers:{},extraReducers:function(L){L.addCase(w.actions.removeQueryResult,function(j,D){for(var V=D.payload.queryCacheKey,q=0,$=Object.values(j);q<$.length;q++)for(var W=$[q],ae=0,te=Object.values(W);ae<te.length;ae++){var ce=te[ae],pe=ce.indexOf(V);pe!==-1&&ce.splice(pe,1)}}).addMatcher(d,function(j,D){for(var V,q,$,W,ae=c(D).provided,te=0,ce=Object.entries(ae);te<ce.length;te++)for(var pe=ce[te],me=pe[0],ne=pe[1],X=0,re=Object.entries(ne);X<re.length;
19X++)for(var H=re[X],K=H[0],he=H[1],Ce=(W=(q=(V=j[me])!=null?V:j[me]={})[$=K||"__internal_without_id"])!=null?W:q[$]=[],ke=0,be=he;ke<be.length;ke++){var Re=be[ke],Ve=Ce.includes(Re);Ve||Ce.push(Re)}}).addMatcher(ds(To(n),xu(n)),function(j,D){for(var V,q,$,W,ae=_5(D,"providesTags",s,f),te=D.meta.arg.queryCacheKey,ce=0,pe=Object.values(j);ce<pe.length;ce++)for(var me=pe[ce],ne=0,X=Object.values(me);ne<X.length;ne++){var re=X[ne],H=re.indexOf(te);H!==-1&&re.splice(H,1)}for(var K=0,he=ae;K<he.length;K++){var Ce=he[K],ke=Ce.type,be=Ce.id,Re=(W=(q=(V=j[ke])!=null?V:j[ke]={})[$=be||"__internal_without_id"])!=null?W:q[$]=[],Ve=Re.includes(te);Ve||Re.push(te)}})}}),_=Wi({name:t+"/subscriptions",initialState:zl,reducers:{updateSubscriptionOptions:function(L,j){},unsubscribeQueryResult:function(L,j){},internal_probeSubscription:function(L,j){}}}),C=Wi({name:t+"/internalSubscriptions",initialState:zl,reducers:{subscriptionsUpdated:function(L,j){return a2(L,j.payload)}}}),R=Wi({name:t+"/config",initialState:pr({online:f_(),focused:p_(),middlewareRegistered:!1},h),reducers:{middlewareRegistered:function(L,j){var D=j.payload;L.middlewareRegistered=L.middlewareRegistered==="conflict"||l!==D?"conflict":!0}},extraReducers:function(L){L.addCase(x0,function(j){j.online=!0}).addCase(y5,function(j){j.online=!1}).addCase(C0,function(j){j.focused=!0}).addCase(v5,function(j){j.focused=!1}).addMatcher(d,function(j){return pr({},j)})}}),I=y0({queries:w.reducer,mutations:m.reducer,provided:b.reducer,subscriptions:C.reducer,config:R.reducer}),k=function(L,j){return I(g.match(j)?void 0:L,j)},A=ra(pr(pr(pr(pr(pr({},R.actions),w.actions),_.actions),C.actions),m.actions),{unsubscribeMutationResult:m.actions.removeMutationResult,resetApiState:g});return{reducer:k,actions:A}}var so=Symbol.for("RTKQ/skipToken"),C5={status:Xn.uninitialized},P2=cs(C5,function(){}),L2=cs(C5,function(){});function C_(e){var t=e.serializeQueryArgs,n=e.reducerPath,i=function(h){return P2},o=function(h){return L2};return{buildQuerySelector:c,buildMutationSelector:d,selectInvalidatedBy:f};function s(h){return pr(pr({},h),s_(h.status))}function l(h){var g=h[n];return g}function c(h,g){return function(w){var m=t({queryArgs:w,endpointDefinition:g,endpointName:h}),b=function(C){var R,I,k;return(k=(I=(R=l(C))==null?void 0:R.queries)==null?void 0:I[m])!=null?k:P2},_=w===so?i:b;return Ra(_,s)}}function d(){return function(h){var g,w;typeof h=="object"?w=(g=uu(h))!=null?g:so:w=h;var m=function(_){var C,R,I;return(I=(R=(C=l(_))==null?void 0:C.mutations)==null?void 0:R[w])!=null?I:L2},b=w===so?o:m;return Ra(b,s)}}function f(h,g){for(var w,m=h[n],b=new Set,_=0,C=g.map(Ah);_<C.length;_++){var R=C[_],I=m.provided[R.type];if(I)for(var k=(w=R.id!==void 0?I[R.id]:C2(Object.values(I)))!=null?w:[],A=0,L=k;A<L.length;A++){var j=L[A];b.add(j)}}return C2(Array.from(b.values()).map(function(D){var V=m.queries[D];return V?[{queryCacheKey:D,endpointName:V.endpointName,originalArgs:V.originalArgs}]:[]}))}}var M2=function(e){var t=e.endpointName,n=e.queryArgs;return t+"("+JSON.stringify(n,function(i,o){return Ha(o)?Object.keys(o).sort().reduce(function(s,l){return s[l]=o[l],s},{}):o})+")"};function x_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(i){var o=Ld(function(h){var g,w;return(w=i.extractRehydrationInfo)==null?void 0:w.call(i,h,{reducerPath:(g=i.reducerPath)!=null?g:"api"})}),s=ra(pr({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},i),{extractRehydrationInfo:o,serializeQueryArgs:function(h){var g=M2;if("serializeQueryArgs"in h.endpointDefinition){var w=h.endpointDefinition.serializeQueryArgs;g=function(m){var b=w(m);return typeof b=="string"?b:M2(ra(pr({},m),{queryArgs:b}))}}else i.serializeQueryArgs&&(g=i.serializeQueryArgs);return g(h)},tagTypes:Od([],i.tagTypes||[])}),l={endpointDefinitions:{},batch:function(h){h()},apiUid:uf(),extractRehydrationInfo:o,hasRehydrationInfo:Ld(function(h){return o(h)!=null})},c={injectEndpoints:f,enhanceEndpoints:function(h){var g=h.addTagTypes,w=h.endpoints;if(g)for(var m=0,b=g;m<b.length;m++){var _=b[m];s.tagTypes.includes(_)||s.tagTypes.push(_)}if(w)for(var C=0,R=Object.entries(w);C<R.length;C++){var I=R[C],k=I[0],A=I[1];typeof A=="function"?A(l.endpointDefinitions[k]):Object.assign(l.endpointDefinitions[k]||{},A)}return c}},d=e.map(function(h){return h.init(c,s,l)});function f(h){for(var g=h.endpoints({query:function(A){return ra(pr({},A),{type:sa.query})},mutation:function(A){return ra(pr({},A),{type:sa.mutation})}}),w=0,m=Object.entries(g);w<m.length;w++){var b=m[w],_=b[0],C=b[1];if(!(!h.overrideExisting&&_ in l.endpointDefinitions)){l.endpointDefinitions[_]=C;for(var R=0,I=d;R<I.length;R++){var k=I[R];k.injectEndpoint(_,C)}}}return c}return c.injectEndpoints({endpoints:i.endpoints})}}function S_(e){for(var t in e)return!1;return!0}var A_=2147483647/1e3-1,E_=function(e){var t=e.reducerPath,n=e.api,i=e.context,o=e.internalState,s=n.internalActions,l=s.removeQueryResult,c=s.unsubscribeQueryResult;function d(w){var m=o.currentSubscriptions[w];return!!m&&!S_(m)}var f={},h=function(w,m,b){var _;if(c.match(w)){var C=m.getState()[t],R=w.payload.queryCacheKey;g(R,(_=C.queries[R])==null?void 0:_.endpointName,m,C.config)}if(n.util.resetApiState.match(w))for(var I=0,k=Object.entries(f);I<k.length;I++){var A=k[I],L=A[0],j=A[1];j&&clearTimeout(j),delete f[L]}if(i.hasRehydrationInfo(w))for(var C=m.getState()[t],D=i.extractRehydrationInfo(w).queries,V=0,q=Object.entries(D);V<q.length;V++){var $=q[V],R=$[0],W=$[1];g(R,W?.endpointName,m,C.config)}};function g(w,m,b,_){var C,R=i.endpointDefinitions[m],I=(C=R?.keepUnusedData
19For)!=null?C:_.keepUnusedDataFor;if(I!==1/0){var k=Math.max(0,Math.min(I,A_));if(!d(w)){var A=f[w];A&&clearTimeout(A),f[w]=setTimeout(function(){d(w)||b.dispatch(l({queryCacheKey:w})),delete f[w]},k*1e3)}}}return h},k_=function(e){var t=e.reducerPath,n=e.context,i=e.context.endpointDefinitions,o=e.mutationThunk,s=e.api,l=e.assertTagType,c=e.refetchQuery,d=s.internalActions.removeQueryResult,f=ds(To(o),xu(o)),h=function(w,m){f(w)&&g(_5(w,"invalidatesTags",i,l),m),s.util.invalidateTags.match(w)&&g(b5(w.payload,void 0,void 0,void 0,void 0,l),m)};function g(w,m){var b=m.getState(),_=b[t],C=s.util.selectInvalidatedBy(b,w);n.batch(function(){for(var R,I=Array.from(C.values()),k=0,A=I;k<A.length;k++){var L=A[k].queryCacheKey,j=_.queries[L],D=(R=_.subscriptions[L])!=null?R:{};j&&(Object.keys(D).length===0?m.dispatch(d({queryCacheKey:L})):j.status!==Xn.uninitialized&&m.dispatch(c(j,L)))}})}return h},T_=function(e){var t=e.reducerPath,n=e.queryThunk,i=e.api,o=e.refetchQuery,s=e.internalState,l={},c=function(m,b){(i.internalActions.updateSubscriptionOptions.match(m)||i.internalActions.unsubscribeQueryResult.match(m))&&f(m.payload,b),(n.pending.match(m)||n.rejected.match(m)&&m.meta.condition)&&f(m.meta.arg,b),(n.fulfilled.match(m)||n.rejected.match(m)&&!m.meta.condition)&&d(m.meta.arg,b),i.util.resetApiState.match(m)&&g()};function d(m,b){var _=m.queryCacheKey,C=b.getState()[t],R=C.queries[_],I=s.currentSubscriptions[_];if(!(!R||R.status===Xn.uninitialized)){var k=w(I);if(Number.isFinite(k)){var A=l[_];A?.timeout&&(clearTimeout(A.timeout),A.timeout=void 0);var L=Date.now()+k,j=l[_]={nextPollTimestamp:L,pollingInterval:k,timeout:setTimeout(function(){j.timeout=void 0,b.dispatch(o(R,_))},k)}}}}function f(m,b){var _=m.queryCacheKey,C=b.getState()[t],R=C.queries[_],I=s.currentSubscriptions[_];if(!(!R||R.status===Xn.uninitialized)){var k=w(I);if(!Number.isFinite(k)){h(_);return}var A=l[_],L=Date.now()+k;(!A||L<A.nextPollTimestamp)&&d({queryCacheKey:_},b)}}function h(m){var b=l[m];b?.timeout&&clearTimeout(b.timeout),delete l[m]}function g(){for(var m=0,b=Object.keys(l);m<b.length;m++){var _=b[m];h(_)}}function w(m){m===void 0&&(m={});var b=Number.POSITIVE_INFINITY;for(var _ in m)m[_].pollingInterval&&(b=Math.min(m[_].pollingInterval,b));return b}return c},P_=function(e){var t=e.reducerPath,n=e.context,i=e.api,o=e.refetchQuery,s=e.internalState,l=i.internalActions.removeQueryResult,c=function(f,h){C0.match(f)&&d(h,"refetchOnFocus"),x0.match(f)&&d(h,"refetchOnReconnect")};function d(f,h){var g=f.getState()[t],w=g.queries,m=s.currentSubscriptions;n.batch(function(){for(var b=0,_=Object.keys(m);b<_.length;b++){var C=_[b],R=w[C],I=m[C];if(!(!I||!R)){var k=Object.values(I).some(function(A){return A[h]===!0})||Object.values(I).every(function(A){return A[h]===void 0})&&g.config[h];k&&(Object.keys(I).length===0?f.dispatch(l({queryCacheKey:C})):R.status!==Xn.uninitialized&&f.dispatch(o(R,C)))}}})}return c},I2=new Error("Promise never resolved before cacheEntryRemoved."),L_=function(e){var t=e.api,n=e.reducerPath,i=e.context,o=e.queryThunk,s=e.mutationThunk;e.internalState;var l=Id(o),c=Id(s),d=To(o,s),f={},h=function(m,b,_){var C=g(m);if(o.pending.match(m)){var R=_[n].queries[C],I=b.getState()[n].queries[C];!R&&I&&w(m.meta.arg.endpointName,m.meta.arg.originalArgs,C,b,m.meta.requestId)}else if(s.pending.match(m)){var I=b.getState()[n].mutations[C];I&&w(m.meta.arg.endpointName,m.meta.arg.originalArgs,C,b,m.meta.requestId)}else if(d(m)){var k=f[C];k?.valueResolved&&(k.valueResolved({data:m.payload,meta:m.meta.baseQueryMeta}),delete k.valueResolved)}else if(t.internalActions.removeQueryResult.match(m)||t.internalActions.removeMutationResult.match(m)){var k=f[C];k&&(delete f[C],k.cacheEntryRemoved())}else if(t.util.resetApiState.match(m))for(var A=0,L=Object.entries(f);A<L.length;A++){var j=L[A],D=j[0],k=j[1];delete f[D],k.cacheEntryRemoved()}};function g(m){return l(m)?m.meta.arg.queryCacheKey:c(m)?m.meta.requestId:t.internalActions.removeQueryResult.match(m)?m.payload.queryCacheKey:t.internalActions.removeMutationResult.match(m)?uu(m.payload):""}function w(m,b,_,C,R){var I=i.endpointDefinitions[m],k=I?.onCacheEntryAdded;if(k){var A={},L=new Promise(function(W){A.cacheEntryRemoved=W}),j=Promise.race([new Promise(function(W){A.valueResolved=W}),L.then(function(){throw I2})]);j.catch(function(){}),f[_]=A;var D=t.endpoints[m].select(I.type===sa.query?b:_),V=C.dispatch(function(W,ae,te){return te}),q=ra(pr({},C),{getCacheEntry:function(){return D(C.getState())},requestId:R,extra:V,updateCachedData:I.type===sa.query?function(W){return C.dispatch(t.util.updateQueryData(m,b,W))}:void 0,cacheDataLoaded:j,cacheEntryRemoved:L}),$=k(b,q);Promise.resolve($).catch(function(W){if(W!==I2)throw W})}}return h},M_=function(e){var t=e.api,n=e.context,i=e.queryThunk,o=e.mutationThunk,s=df(i,o),l=Qs(i,o),c=To(i,o),d={},f=function(h,g){var w,m,b;if(s(h)){var _=h.meta,C=_.requestId,R=_.arg,I=R.endpointName,k=R.originalArgs,A=n.endpointDefinitions[I],L=A?.onQueryStarted;if(L){var j={},D=new Promise(function(pe,me){j.resolve=pe,j.reject=me});D.catch(function(){}),d[C]=j;var V=t.endpoints[I].select(A.type===sa.query?k:C),q=g.dispatch(function(pe,me,ne){return ne}),$=ra(pr({},g),{getCacheEntry:function(){return V(g.getState())},requestId:C,extra:q,updateCachedData:A.type===sa.query?function(pe){return g.dispatch(t.util.updateQueryData(I,k,pe))}:void 0,queryFulfilled:D});L(k,$)}}else if(c(h)){var W=h.meta,C=W.requestId,ae=W.baseQueryMeta;(w=d[C])==null||w.resolve({data:h.payload,meta:ae}),delete d[C]}else if(l(h)){var te=h.meta,C=te.requestId,ce=te.rejectedWithValue,ae=te.baseQueryMeta;
19(b=d[C])==null||b.reject({error:(m=h.payload)!=null?m:h.error,isUnhandledError:!ce,meta:ae}),delete d[C]}};return f},I_=function(e){var t=e.api,n=e.context.apiUid;return e.reducerPath,function(i,o){t.util.resetApiState.match(i)&&o.dispatch(t.internalActions.middlewareRegistered(n))}},R2,R_=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(R2||(R2=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},j_=function(e){var t=e.api,n=e.queryThunk,i=e.internalState,o=t.reducerPath+"/subscriptions",s=null,l=!1,c=t.internalActions,d=c.updateSubscriptionOptions,f=c.unsubscribeQueryResult,h=function(g,w){var m,b,_,C,R,I,k,A,L;if(d.match(w)){var j=w.payload,D=j.queryCacheKey,V=j.requestId,q=j.options;return(m=g?.[D])!=null&&m[V]&&(g[D][V]=q),!0}if(f.match(w)){var $=w.payload,D=$.queryCacheKey,V=$.requestId;return g[D]&&delete g[D][V],!0}if(t.internalActions.removeQueryResult.match(w))return delete g[w.payload.queryCacheKey],!0;if(n.pending.match(w)){var W=w.meta,ae=W.arg,V=W.requestId;if(ae.subscribe){var te=(_=g[b=ae.queryCacheKey])!=null?_:g[b]={};return te[V]=(R=(C=ae.subscriptionOptions)!=null?C:te[V])!=null?R:{},!0}}if(n.rejected.match(w)){var ce=w.meta,pe=ce.condition,ae=ce.arg,V=ce.requestId;if(pe&&ae.subscribe){var te=(k=g[I=ae.queryCacheKey])!=null?k:g[I]={};return te[V]=(L=(A=ae.subscriptionOptions)!=null?A:te[V])!=null?L:{},!0}}return!1};return function(g,w){var m,b;if(s||(s=JSON.parse(JSON.stringify(i.currentSubscriptions))),t.internalActions.internal_probeSubscription.match(g)){var _=g.payload,C=_.queryCacheKey,R=_.requestId,I=!!((m=i.currentSubscriptions[C])!=null&&m[R]);return[!1,I]}var k=h(i.currentSubscriptions,g);if(k){l||(R_(function(){var D=JSON.parse(JSON.stringify(i.currentSubscriptions)),V=B4(s,function(){return D}),q=V[1];w.next(t.internalActions.subscriptionsUpdated(q)),s=D,l=!1}),l=!0);var A=!!((b=g.type)!=null&&b.startsWith(o)),L=n.rejected.match(g)&&g.meta.condition&&!!g.meta.arg.subscribe,j=!A&&!L;return[j,!1]}return[!0,!1]}};function O_(e){var t=e.reducerPath,n=e.queryThunk,i=e.api,o=e.context,s=o.apiUid,l={invalidateTags:Ur(t+"/invalidateTags")},c=function(g){return!!g&&typeof g.type=="string"&&g.type.startsWith(t+"/")},d=[I_,E_,k_,T_,L_,M_],f=function(g){var w=!1,m={currentSubscriptions:{}},b=ra(pr({},e),{internalState:m,refetchQuery:h}),_=d.map(function(I){return I(b)}),C=j_(b),R=P_(b);return function(I){return function(k){w||(w=!0,g.dispatch(i.internalActions.middlewareRegistered(s)));var A=ra(pr({},g),{next:I}),L=g.getState(),j=C(k,A,L),D=j[0],V=j[1],q;if(D?q=I(k):q=V,g.getState()[t]&&(R(k,A,L),c(k)||o.hasRehydrationInfo(k)))for(var $=0,W=_;$<W.length;$++){var ae=W[$];ae(k,A,L)}return q}}};return{middleware:f,actions:l};function h(g,w,m){return m===void 0&&(m={}),n(pr({type:"query",endpointName:g.endpointName,originalArgs:g.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:w},m))}}function to(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,Od([e],t))}var j2=Symbol(),N_=function(){return{name:j2,init:function(e,t,n){var i=t.baseQuery;t.tagTypes;var o=t.reducerPath,s=t.serializeQueryArgs,l=t.keepUnusedDataFor,c=t.refetchOnMountOrArgChange,d=t.refetchOnFocus,f=t.refetchOnReconnect;qw();var h=function(he){return he};Object.assign(e,{reducerPath:o,endpoints:{},internalActions:{onOnline:x0,onOffline:y5,onFocus:C0,onFocusLost:v5},util:{}});var g=b_({baseQuery:i,reducerPath:o,context:n,api:e,serializeQueryArgs:s}),w=g.queryThunk,m=g.mutationThunk,b=g.patchQueryData,_=g.updateQueryData,C=g.upsertQueryData,R=g.prefetch,I=g.buildMatchThunkActions,k=__({context:n,queryThunk:w,mutationThunk:m,reducerPath:o,assertTagType:h,config:{refetchOnFocus:d,refetchOnReconnect:f,refetchOnMountOrArgChange:c,keepUnusedDataFor:l,reducerPath:o}}),A=k.reducer,L=k.actions;to(e.util,{patchQueryData:b,updateQueryData:_,upsertQueryData:C,prefetch:R,resetApiState:L.resetApiState}),to(e.internalActions,L);var j=O_({reducerPath:o,context:n,queryThunk:w,mutationThunk:m,api:e,assertTagType:h}),D=j.middleware,V=j.actions;to(e.util,V),to(e,{reducer:A,middleware:D});var q=C_({serializeQueryArgs:s,reducerPath:o}
19),$=q.buildQuerySelector,W=q.buildMutationSelector,ae=q.selectInvalidatedBy;to(e.util,{selectInvalidatedBy:ae});var te=w_({queryThunk:w,mutationThunk:m,api:e,serializeQueryArgs:s,context:n}),ce=te.buildInitiateQuery,pe=te.buildInitiateMutation,me=te.getRunningMutationThunk,ne=te.getRunningMutationsThunk,X=te.getRunningQueriesThunk,re=te.getRunningQueryThunk,H=te.getRunningOperationPromises,K=te.removalWarning;return to(e.util,{getRunningOperationPromises:H,getRunningOperationPromise:K,getRunningMutationThunk:me,getRunningMutationsThunk:ne,getRunningQueryThunk:re,getRunningQueriesThunk:X}),{name:j2,injectEndpoint:function(he,Ce){var ke,be,Re=e;(be=(ke=Re.endpoints)[he])!=null||(ke[he]={}),w5(Ce)?to(Re.endpoints[he],{name:he,select:$(he,Ce),initiate:ce(he,Ce)},I(w,he)):v_(Ce)&&to(Re.endpoints[he],{name:he,select:W(),initiate:pe(he)},I(m,he))}}}}},F_=function(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e},D_=Object.defineProperty,H_=Object.defineProperties,B_=Object.getOwnPropertyDescriptors,O2=Object.getOwnPropertySymbols,G_=Object.prototype.hasOwnProperty,U_=Object.prototype.propertyIsEnumerable,N2=function(e,t,n){return t in e?D_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ka=function(e,t){for(var n in t||(t={}))G_.call(t,n)&&N2(e,n,t[n]);if(O2)for(var i=0,o=O2(t);i<o.length;i++){var n=o[i];U_.call(t,n)&&N2(e,n,t[n])}return e},nd=function(e,t){return H_(e,B_(t))};function F2(e,t,n,i){var o=z.useMemo(function(){return{queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:i}):e}},[e,t,n,i]),s=z.useRef(o);return z.useEffect(function(){s.current.serialized!==o.serialized&&(s.current=o)},[o]),s.current.serialized===o.serialized?s.current.queryArgs:e}var Ap=Symbol();function Ep(e){var t=z.useRef(e);return z.useEffect(function(){Ad(t.current,e)||(t.current=e)},[e]),Ad(t.current,e)?t.current:e}var z_=function(e){var t=e.endpointName,n=e.queryArgs;return t+"("+JSON.stringify(n,function(i,o){return Ha(o)?Object.keys(o).sort().reduce(function(s,l){return s[l]=o[l],s},{}):o})+")"},V_=typeof window<"u"&&window.document&&window.document.createElement?z.useLayoutEffect:z.useEffect,W_=function(e){return e},q_=function(e){return e.isUninitialized?nd(ka({},e),{isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Xn.pending}):e};function $_(e){var t=e.api,n=e.moduleOptions,i=n.batch,o=n.useDispatch,s=n.useSelector,l=n.useStore,c=n.unstable__sideEffectsInRender,d=e.serializeQueryArgs,f=e.context,h=c?function(_){return _()}:z.useEffect;return{buildQueryHooks:m,buildMutationHook:b,usePrefetch:w};function g(_,C,R){if(C?.endpointName&&_.isUninitialized){var I=C.endpointName,k=f.endpointDefinitions[I];d({queryArgs:C.originalArgs,endpointDefinition:k,endpointName:I})===d({queryArgs:R,endpointDefinition:k,endpointName:I})&&(C=void 0)}R===so&&(C=void 0);var A=_.isSuccess?_.data:C?.data;A===void 0&&(A=_.data);var L=A!==void 0,j=_.isLoading,D=!L&&j,V=_.isSuccess||j&&L;return nd(ka({},_),{data:A,currentData:_.data,isFetching:j,isLoading:D,isSuccess:V})}function w(_,C){var R=o(),I=Ep(C);return z.useCallback(function(k,A){return R(t.util.prefetch(_,k,ka(ka({},I),A)))},[_,R,I])}function m(_){var C=function(k,A){var L=A===void 0?{}:A,j=L.refetchOnReconnect,D=L.refetchOnFocus,V=L.refetchOnMountOrArgChange,q=L.skip,$=q===void 0?!1:q,W=L.pollingInterval,ae=W===void 0?0:W,te=t.endpoints[_].initiate,ce=o(),pe=F2($?so:k,z_,f.endpointDefinitions[_],_),me=Ep({refetchOnReconnect:j,refetchOnFocus:D,pollingInterval:ae}),ne=z.useRef(!1),X=z.useRef(),re=X.current||{},H=re.queryCacheKey,K=re.requestId,he=!1;if(H&&K){var Ce=ce(t.internalActions.internal_probeSubscription({queryCacheKey:H,requestId:K}));he=!!Ce}var ke=!he&&ne.current;return h(function(){ne.current=he}),h(function(){X.current=void 0},[ke]),h(function(){var be,Re=X.current;if(pe===so){Re?.unsubscribe(),X.current=void 0;return}var Ve=(be=X.current)==null?void 0:be.subscriptionOptions;if(!Re||Re.arg!==pe){Re?.unsubscribe();var ht=ce(te(pe,{subscriptionOptions:me,forceRefetch:V}));X.current=ht}else me!==Ve&&Re.updateSubscriptionOptions(me)},[ce,te,V,pe,me,ke]),z.useEffect(function(){return function(){var be;(be=X.current)==null||be.unsubscribe(),X.current=void 0}},[]),z.useMemo(function(){return{refetch:function(){var be;if(!X.current)throw new Error("Cannot refetch a query that has not been started yet.");return(be=X.current)==null?void 0:be.refetch()}}},[])},R=function(k){var A=k===void 0?{}:k,L=A.refetchOnReconnect,j=A.refetchOnFocus,D=A.pollingInterval,V=D===void 0?0:D,q=t.endpoints[_].initiate,$=o(),W=z.useState(Ap),ae=W[0],te=W[1],ce=z.useRef(),pe=Ep({refetchOnReconnect:L,refetchOnFocus:j,pollingInterval:V});h(function(){var X,re,H=(X=ce.current)==null?void 0:X.subscriptionOptions;pe!==H&&((re=ce.current)==null||re.updateSubscriptionOptions(pe))},[pe]);var me=z.useRef(pe);h(function(){me.current=pe},[pe]);var ne=z.useCallback(function(X,re){re===void 0&&(re=!1);var H;return i(function(){var K;(K=ce.current)==null||K.unsubscribe(),ce.current=H=$(q(X,{subscriptionOptions:me.current,forceRefetch:!re})),te(X)}),H},[$,q]);return z.useEffect(function(){return function(){var X;(X=ce?.current)==null||X.unsubscribe()}},[]),z.useEffect(function(){ae!==Ap&&!ce.current&&ne(ae,!0)},[ae,ne]),z.useMemo(function(){return[ne,ae]},[ne,ae])},I=function(k,A){var L=A===void 0?{}:A,j=L.skip,D=j===void 0?!1:j,V=L.selectFromResult,q=t.endpoints[_].select,$=F2(D?so:k,d,f.endpointDefinitions[_],_),W=z.useRef(),ae=z.useMemo(function(){return Ra([q($),function(ne,X){return X},function(ne){return $}],g)},[q,$]),te=z.useMemo(function(){return V?Ra([ae],V):ae},[ae,V]),ce=s(function(ne){return te(ne,W.current)}
19,Ad),pe=l(),me=ae(pe.getState(),W.current);return V_(function(){W.current=me},[me]),ce};return{useQueryState:I,useQuerySubscription:C,useLazyQuerySubscription:R,useLazyQuery:function(k){var A=R(k),L=A[0],j=A[1],D=I(j,nd(ka({},k),{skip:j===Ap})),V=z.useMemo(function(){return{lastArg:j}},[j]);return z.useMemo(function(){return[L,D,V]},[L,D,V])},useQuery:function(k,A){var L=C(k,A),j=I(k,ka({selectFromResult:k===so||A?.skip?void 0:q_},A)),D=j.data,V=j.status,q=j.isLoading,$=j.isSuccess,W=j.isError,ae=j.error;return z.useDebugValue({data:D,status:V,isLoading:q,isSuccess:$,isError:W,error:ae}),z.useMemo(function(){return ka(ka({},j),L)},[j,L])}}}function b(_){return function(C){var R=C===void 0?{}:C,I=R.selectFromResult,k=I===void 0?W_:I,A=R.fixedCacheKey,L=t.endpoints[_],j=L.select,D=L.initiate,V=o(),q=z.useState(),$=q[0],W=q[1];z.useEffect(function(){return function(){$?.arg.fixedCacheKey||$?.reset()}},[$]);var ae=z.useCallback(function(Re){var Ve=V(D(Re,{fixedCacheKey:A}));return W(Ve),Ve},[V,D,A]),te=($||{}).requestId,ce=z.useMemo(function(){return Ra([j({fixedCacheKey:A,requestId:$?.requestId})],k)},[j,$,k,A]),pe=s(ce,Ad),me=A==null?$?.arg.originalArgs:void 0,ne=z.useCallback(function(){i(function(){$&&W(void 0),A&&V(t.internalActions.removeMutationResult({requestId:te,fixedCacheKey:A}))})},[V,A,$,te]),X=pe.endpointName,re=pe.data,H=pe.status,K=pe.isLoading,he=pe.isSuccess,Ce=pe.isError,ke=pe.error;z.useDebugValue({endpointName:X,data:re,status:H,isLoading:K,isSuccess:he,isError:Ce,error:ke});var be=z.useMemo(function(){return nd(ka({},pe),{originalArgs:me,reset:ne})},[pe,me,ne]);return z.useMemo(function(){return[ae,be]},[ae,be])}}}var Dd;(function(e){e.query="query",e.mutation="mutation"})(Dd||(Dd={}));function Q_(e){return e.type===Dd.query}function Y_(e){return e.type===Dd.mutation}function kp(e){return e.replace(e[0],e[0].toUpperCase())}function Fc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,F_([e],t))}var Z_=Symbol(),K_=function(e){var t={},n=t.batch,i=n===void 0?s0.unstable_batchedUpdates:n,o=t.useDispatch,s=o===void 0?Ri:o,l=t.useSelector,c=l===void 0?R4:l,d=t.useStore,f=d===void 0?O4:d,h=t.unstable__sideEffectsInRender,g=h===void 0?!1:h;return{name:Z_,init:function(w,m,b){var _=m.serializeQueryArgs,C=w,R=$_({api:w,moduleOptions:{batch:i,useDispatch:s,useSelector:c,useStore:f,unstable__sideEffectsInRender:g},serializeQueryArgs:_,context:b}),I=R.buildQueryHooks,k=R.buildMutationHook,A=R.usePrefetch;return Fc(C,{usePrefetch:A}),Fc(b,{batch:i}),{injectEndpoint:function(L,j){if(Q_(j)){var D=I(L),V=D.useQuery,q=D.useLazyQuery,$=D.useLazyQuerySubscription,W=D.useQueryState,ae=D.useQuerySubscription;Fc(C.endpoints[L],{useQuery:V,useLazyQuery:q,useLazyQuerySubscription:$,useQueryState:W,useQuerySubscription:ae}),w["use"+kp(L)+"Query"]=V,w["useLazy"+kp(L)+"Query"]=q}else if(Y_(j)){var te=k(L);Fc(C.endpoints[L],{useMutation:te}),w["use"+kp(L)+"Mutation"]=te}}}}}},J_=x_(N_(),K_());const X_=g_({baseUrl:"https://api-prod.thewikigame.com/api/v1/",prepareHeaders:(e,{getState:t})=>{const n=t(),i=n.auth.heyggJwt,o=n.auth.token;i?e.set("Authorization",`Bearer ${i}`):o&&e.set("Authorization",`Token ${o}`)}}),vo=J_({baseQuery:X_,refetchOnFocus:!0,refetchOnReconnect:!0,endpoints:e=>({})}),Ys={PUBLIC_GROUP_LONG_CODE:"22033570-e1fd-4a9f-9a96-9068082b88aa",PUBLIC_GROUP_SHORT_CODE:"123456",IOS_APP_URL:"https://apps.apple.com/us/app/the-wiki-game/id459318432"},x5=Wi({name:"auth",initialState:{token:localStorage.getItem("authToken"),heyggJwt:null,heyggUser:null,heyggAnonymousId:null,group_member_name:null,group:null,group_membership:null,group_memberships:null},reducers:{setCredentials:(e,t)=>{const{token:n,group_member_name:i,group:o,group_membership:s,group_memberships:l}=t.payload;e.token=n,e.group_member_name=i,e.group=o,e.group_membership=s,e.group_memberships=l,localStorage.setItem("userData",JSON.stringify(t.payload)),localStorage.setItem("authToken",n)},setHeyGGCredentials:(e,t)=>{e.heyggJwt=t.payload.jwt,e.heyggUser=t.payload.user,e.heyggAnonymousId=t.payload.anonymousId,t.payload.user&&(e.group_member_name=t.payload.user.username)},logout:(e,t)=>{localStorage.setItem("heygg_explicit_logout","true"),e.token=null,localStorage.removeItem("userData"),localStorage.removeItem("authToken"),e.heyggJwt=null,e.heyggUser=null,e.heyggAnonymousId=null,e.group_member_name=null,e.group=null,e.group_membership=null,e.group_memberships=null,localStorage.removeItem("heygg_jwt"),localStorage.removeItem("heygg_user"),localStorage.removeItem("heygg_anonymous_id"),localStorage.removeItem("heygg_last_auth_check")}}}),{setCredentials:Eu,setHeyGGCredentials:eC,logout:tC}=x5.actions,S5=e=>e.auth.heyggJwt||e.auth.token,nC=e=>e.auth.heyggAnonymousId,ul=e=>e.auth.group_membership,rC=e=>e.auth.group_member_name?e.auth.group_member_name.replace("_"+e.auth.group?.long_code,""):"ANON",ji=e=>e.auth.group?e.auth.group.long_code:Ys.PUBLIC_GROUP_LONG_CODE,ff=e=>{const t=e.auth.group;return t?t.long_code===Ys.PUBLIC_GROUP_LONG_CODE:!1}
19,iC=Md.withTypes(),kh=iC("roundCountdown",async(e,t)=>{await new Promise(n=>setTimeout(()=>{n(!0)},1e3))}),aC={currentData:null,currentStats:null,remainingTime:0,isRoundActive:!1,isLoadingContent:!1},S0=Wi({name:"round",initialState:aC,reducers:{setRoundData:(e,t)=>{e.currentData=t.payload,e.isRoundActive=!0},setRoundStats:(e,t)=>{e.currentStats=t.payload},updateRemainingTime:e=>{if(e.currentData){let t=new Date(e.currentData.start_time).getTime(),n=new Date().getTime(),i=(t-n)/1e3,o=Math.round(e.currentData.max_time+i);e.remainingTime=o}},resetRound:e=>{e.currentData=null,e.currentStats=null,e.remainingTime=0,e.isRoundActive=!1,e.isLoadingContent=!1},setIsLoadingContent:(e,t)=>{e.isLoadingContent=t.payload}},extraReducers:e=>{e.addCase(kh.pending,(t,n)=>{t.remainingTime>0?(t.remainingTime--,t.isRoundActive=!0):t.isRoundActive=!1})}}),{setRoundData:A5,setRoundStats:oC,resetRound:sC,updateRemainingTime:D2,setIsLoadingContent:Th}=S0.actions,ku=e=>e.round.currentData,lC=e=>e.round.currentStats,pf=e=>e.round.remainingTime,A0=e=>e.round.isRoundActive,uC=e=>e.round.isLoadingContent;S0.reducer;const cC={isPlaying:!1},E0=Wi({name:"play",initialState:cC,reducers:{setIsPlaying:(e,t)=>{e.isPlaying=t.payload}}}),{setIsPlaying:hf}=E0.actions,E5=e=>e.play.isPlaying;E0.reducer;var kr=(e=>(e.RoundWins="RoundWins",e.AllMyWins="AllMyWins",e.GetApp="GetApp",e.ErrorMessage="ErrorMessage",e))(kr||{});const dC={isOpen:!1,type:null,data:null},k0=Wi({name:"modal",initialState:dC,reducers:{openModal:(e,t)=>{e.isOpen=!0,e.type=t.payload.type,e.data=t.payload.data},closeModal:e=>{e.isOpen=!1}}}),{openModal:La,closeModal:ss}=k0.actions,Tu=e=>e.modal;k0.reducer;const no=localStorage.getItem("userData"),H2=localStorage.getItem("heygg_user"),fC=localStorage.getItem("heygg_jwt"),k5=Y4({reducer:{api:vo.reducer,auth:x5.reducer,play:E0.reducer,round:S0.reducer,modal:k0.reducer},preloadedState:{auth:{token:localStorage.getItem("authToken"),heyggJwt:fC,heyggUser:H2?JSON.parse(H2):null,group_member_name:no?JSON.parse(no).group_member_name:null,group:no?JSON.parse(no).group:null,group_membership:no?JSON.parse(no).group_membership:null,group_memberships:no?JSON.parse(no).group_memberships:null}},middleware:e=>e().concat(vo.middleware),devTools:!1});su.setupListeners(k5.dispatch);const fs=()=>Ri(),Kt=R4;var T5={};function pC(e,t){return t.forEach((function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach((function(i){if(i!=="default"&&!(i in e)){var o=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return n[i]}})}}))})),Object.freeze(e)}var Tn=function(){return Tn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tn.apply(this,arguments)};function Et(e,t,n,i){return new(n||(n=Promise))((function(o,s){function l(f){try{d(i.next(f))}catch(h){s(h)}}function c(f){try{d(i.throw(f))}catch(h){s(h)}}function d(f){var h;f.done?o(f.value):(h=f.value,h instanceof n?h:new n((function(g){g(h)}))).then(l,c)}d((i=i.apply(e,t||[])).next())}))}function kt(e,t){var n,i,o,s,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return(function(h){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,h[0]&&(l=0)),l;)try{if(n=1,i&&(o=2&h[0]?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[2&h[0],o.value]),h[0]){case 0:case 1:o=h;break;case 4:return l.label++,{value:h[1],done:!1};case 5:l.label++,i=h[1],h=[0];continue;case 7:h=l.ops.pop(),l.trys.pop();continue;default:if(o=l.trys,!((o=o.length>0&&o[o.length-1])||h[0]!==6&&h[0]!==2)){l=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){l.label=h[1];break}if(h[0]===6&&l.label<o[1]){l.label=o[1],o=h;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(h);break}o[2]&&l.ops.pop(),l.trys.pop();continue}h=t.call(e,l)}catch(g){h=[6,g],i=0}finally{n=o=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}})([d,f])}}}function Zs(e,t,n){for(var i,o=0,s=t.length;o<s;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var hC={isAdmin:function(){var e=localStorage.getItem("heygg_user");if(!e)return!1;try{var t=JSON.parse(e);return t?.admin===!0}catch{return!1}},fetchPuzzleSolves:function(e,t,n){return Et(this,void 0,void 0,(function(){var i,o,s,l,c,d,f;return kt(this,(function(h){switch(h.label){case 0:if(i=window.HeyGoodGame.config.apiBaseUrl,!(o=localStorage.getItem("heygg_jwt")))throw new Error("Authentication required for admin puzzle analysis");s={"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},l="".concat(i,"/api/admin/game-stats/").concat(encodeURIComponent(e),"/puzzle/").concat(encodeURIComponent(t),"/solves"),n&&Object.keys(n).length>0&&(c=new URLSearchParams,n.json_path&&c.append("json_path",n.json_path),n.date_from&&c.append("date_from",n.date_from),n.date_to&&c.append("date_to",n.date_to),n.page&&c.append("page",n.page.toString()),n.per_page&&c.append("per_page",n.per_page.toString()),l+="?".concat(c.toString())),h.label=1;case 1:return h.trys.push([1,4,,5]),[4,fetch(l,{method:"GET",headers:s,credentials:"include"})];case 2:if((d=h.sent()).status===403)throw new Error("Admin privileges required for puzzle analysis");if(!d.ok)throw new Error("Failed to fetch puzzle solves: ".concat(d.status));return[4,d.json()];case 3:return[2,h.sent()];
19case 4:throw f=h.sent(),console.error("Error fetching puzzle solves:",f),f;case 5:return[2]}}))}))},fetchPuzzleStats:function(e,t,n){return Et(this,void 0,void 0,(function(){var i,o,s,l,c,d,f;return kt(this,(function(h){switch(h.label){case 0:if(i=window.HeyGoodGame.config.apiBaseUrl,!(o=localStorage.getItem("heygg_jwt")))throw new Error("Authentication required for admin puzzle analysis");s={"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},l="".concat(i,"/api/admin/game-stats/").concat(encodeURIComponent(e),"/puzzle/").concat(encodeURIComponent(t),"/stats"),n&&Object.keys(n).length>0&&(c=new URLSearchParams,n.json_path&&c.append("json_path",n.json_path),n.date_from&&c.append("date_from",n.date_from),n.date_to&&c.append("date_to",n.date_to),n.time_field&&c.append("time_field",n.time_field),n.hints_field&&c.append("hints_field",n.hints_field),n.score_field&&c.append("score_field",n.score_field),l+="?".concat(c.toString())),h.label=1;case 1:return h.trys.push([1,4,,5]),[4,fetch(l,{method:"GET",headers:s,credentials:"include"})];case 2:if((d=h.sent()).status===403)throw new Error("Admin privileges required for puzzle analysis");if(!d.ok)throw new Error("Failed to fetch puzzle stats: ".concat(d.status));return[4,d.json()];case 3:return[2,h.sent()];case 4:throw f=h.sent(),console.error("Error fetching puzzle stats:",f),f;case 5:return[2]}}
19))}))}},B2="heygg_partner_config",G2="heygg_partner_config_check",mC=864e5,T0="heygg_partner_user";function Hd(e,t){t===null?localStorage.removeItem(e):localStorage.setItem(e,typeof t!="string"?JSON.stringify(t):t)}function Ph(e){var t=localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch{return t}}function P0(e){return Et(this,void 0,void 0,(function(){var t,n,i,o,s,l;return kt(this,(function(c){switch(c.label){case 0:if(t=Date.now(),n=Ph(G2)||0,(i=Ph(B2))&&t-n<mC)return console.log("[HEYGG COMMON] Using cached partner config"),[2,i];c.label=1;case 1:return c.trys.push([1,4,,5]),console.log("[HEYGG COMMON] Fetching fresh partner config"),[4,fetch("".concat(e,"/api/partner-config"),{headers:{"Content-Type":"application/json"}})];case 2:if(!(o=c.sent()).ok)throw new Error("Failed to fetch partner config");return[4,o.json()];case 3:return s=c.sent(),Hd(B2,s),Hd(G2,t),[2,s];case 4:return l=c.sent(),console.warn("[HEYGG COMMON] Failed to fetch partner config:",l),[2,i||[]];case 5:return[2]}}))}))}function L0(e,t){var n=new URLSearchParams(window.location.search),i=t||n.get("partner");if(!i)return null;var o=e.find((function(l){return l.short_code===i}));if(!o)return null;var s=n.get(o.param_name);return{param_name:o.param_name,partner_user_id:s||void 0}}function P5(e){Hd(T0,e)}function zs(){return Ph(T0)}function L5(e,t){var n=new URLSearchParams(window.location.search);t&&n.delete(t.param_name);for(var i=0,o=e;i<o.length;i++){var s=o[i];n.delete(s.param_name)}return n}var gC=Object.freeze({__proto__:null,cleanPartnerParamsFromUrl:L5,clearPartnerUser:function(){Hd(T0,null)},fetchPartnerConfig:P0,getPartnerUserFromUrl:L0,getStoredPartnerUser:zs,savePartnerUser:P5}),M5=3e3,Ks="heygg_offline_mode";function Vs(e){return Et(this,void 0,void 0,(function(){var t,n,i;return kt(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=new AbortController,n=setTimeout((function(){return t.abort()}),M5),[4,fetch("".concat(e,"/api/health"),{method:"GET",signal:t.signal})];case 1:return i=o.sent(),clearTimeout(n),[2,i.ok];case 2:return o.sent(),[2,!1];case 3:return[2]}}
19))}))}function Bd(e){if(e){var t={active:!0,since:Date.now()};localStorage.setItem(Ks,JSON.stringify(t))}else localStorage.removeItem(Ks)}function M0(){try{var e=localStorage.getItem(Ks);return!!e&&JSON.parse(e).active===!0}catch{return!1}}function mf(){localStorage.removeItem(Ks)}function I5(){try{var e=localStorage.getItem(Ks);if(!e)return null;var t=JSON.parse(e);return t.active?t.since:null}catch{return null}}var vC={checkApiHealth:Vs,setOfflineMode:Bd,isInOfflineMode:M0,clearOfflineMode:mf,getOfflineModeSince:I5,HEALTH_CHECK_TIMEOUT:M5,OFFLINE_MODE_KEY:Ks},yC=Object.freeze({__proto__:null,checkApiHealth:Vs,clearOfflineMode:mf,default:vC,getOfflineModeSince:I5,isInOfflineMode:M0,setOfflineMode:Bd}),gf="temp_";function I0(){var e,t,n=(t=(e=crypto==null?void 0:crypto.randomUUID)===null||e===void 0?void 0:e.call(crypto))!==null&&t!==void 0?t:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(i){var o=16*Math.random()|0;return(i==="x"?o:3&o|8).toString(16)}));return"".concat(gf).concat(n)}function qi(e){var t;return(t=e?.startsWith(gf))!==null&&t!==void 0&&t}function R5(){return gf}var wC={generateTempAnonymousId:I0,isTempAnonymousId:qi,getTempPrefix:R5,TEMP_PREFIX:gf},bC=Object.freeze({__proto__:null,default:wC,generateTempAnonymousId:I0,getTempPrefix:R5,isTempAnonymousId:qi}),_C=null,U2=null;function R0(e){j5()&&U2?(console.log("[HEYGG Native Auth] Opening auth URL in system browser:",e),U2.open({url:e,presentationStyle:"popover"})):window.location.href=e}function j5(){var e,t;return((t=(e=window.Capacitor)===null||e===void 0?void 0:e.isNativePlatform)===null||t===void 0?void 0:t.call(e))===!0}function CC(e){var t,n;try{var i=(n=(t=window.HeyGoodGame)===null||t===void 0?void 0:t.config)===null||n===void 0?void 0:n.nativeAppScheme;if(!i)return null;var o="".concat(i,"://");if(!e.startsWith(o))return null;var s=e.replace(o,"").split("?"),l=s[0],c=s[1];if(l!=="auth/callback")return null;var d=new URLSearchParams(c||"");return{token:d.get("token"),anonymousId:d.get("anonymous_id")}}catch(f){return console.error("[HEYGG Native Auth] Error parsing callback URL:",f),null}}var z2="heygg_auth_callback_processed",Lh=null;function V2(e,t){t===void 0&&(t=!1),console.log("[HEYGG Native Auth] Processing deep link:",e,"isLaunchUrl:",t);var n=CC(e);if(n)return t&&(function(){var o=sessionStorage.getItem(z2);if(!o)return!1;var s=parseInt(o,10);return Date.now()-s<1e4})()?void console.log("[HEYGG Native Auth] Skipping auth callback - already processed recently"):void(function(o,s){if(console.log("[HEYGG Native Auth] Handling auth callback, token:",!!o,"anonymousId:",!!s),o)console.log("[HEYGG Native Auth] Storing JWT token"),localStorage.setItem("heygg_jwt",o),localStorage.removeItem("heygg_anonymous_id");else{if(!s)return void console.warn("[HEYGG Native Auth] Auth callback had no token or anonymousId");console.log("[HEYGG Native Auth] Storing anonymous ID"),localStorage.setItem("heygg_anonymous_id",s),localStorage.removeItem("heygg_jwt"),localStorage.removeItem("heygg_user")}sessionStorage.setItem(z2,Date.now().toString()),console.log("[HEYGG Native Auth] Navigating to home to complete auth flow"),window.location.href=o?"/index.html?token=".concat(encodeURIComponent(o)):s?"/index.html?anonymous_id=".concat(encodeURIComponent(s)):"/index.html"})(n.token,n.anonymousId);if(Lh){var i=(function(o){var s,l,c=(l=(s=window.HeyGoodGame)===null||s===void 0?void 0:s.config)===null||l===void 0?void 0:l.nativeAppScheme;if(!c)return null;var d="".concat(c,"://");if(!o.startsWith(d))return null;var f=o.replace(d,"").split("?"),h=f[0],g=f[1];return{path:"/"+(h||""),queryParams:new URLSearchParams(g||"")}})(e);i&&(console.log("[HEYGG Native Auth] Passing to app deep link handler:",i.path),Lh(e,i.path,i.queryParams))}else console.log("[HEYGG Native Auth] No deep link callback registered, ignoring non-auth deep link")}function xC(e){return Et(this,void 0,void 0,(function(){var t,n,i,o,s;return kt(this,(function(l){switch(l.label){case 0:if(!j5())return console.log("[HEYGG Native Auth] Not a native app, skipping listener setup"),[2];if(!(!((s=(o=window.HeyGoodGame)===null||o===void 0?void 0:o.config)===null||s===void 0)&&s.nativeAppScheme))return console.warn("[HEYGG Native Auth] nativeAppScheme not configured, skipping listener setup"),[2];e&&(Lh=e),console.log("[HEYGG Native Auth] Setting up deep link listener"),l.label=1;case 1:return l.trys.push([1,3,,4]),(t=_C)?(t.addListener("appUrlOpen",(function(c){console.log("[HEYGG Native Auth] App URL opened:",c.url),V2(c.url,!1)})),[4,t.getLaunchUrl()]):(console.error("[HEYGG Native Auth] App plugin not set. Call setCapacitorAppPlugin() first."),[2]);case 2:return(n=l.sent())!=null&&n.url&&(console.log("[HEYGG Native Auth] App launched with URL:",n.url),V2(n.url,!0)),console.log("[HEYGG Native Auth] Deep link listener initialized"),[3,4];case 3:return i=l.sent(),console.error("[HEYGG Native Auth] Failed to initialize listener:",i),[3,4];case 4:return[2]}}
19))}))}var Dc="heygg_last_auth_check",W2=864e5,O5="https://play.hey.gg";function Hc(e){return new URLSearchParams(window.location.search).get(e)}function $r(e,t){t===null?localStorage.removeItem(e):localStorage.setItem(e,typeof t!="string"?JSON.stringify(t):t)}function Yo(e){var t=localStorage.getItem(e);return t?typeof t=="string"?t:JSON.parse(t):null}var q2=!1;function Tp(e,t){var n=this;if(!q2){var i=function(){return Et(n,void 0,void 0,(function(){var o,s;return kt(this,(function(l){switch(l.label){case 0:return M0()?(console.log("[HEYGG COMMON] Attempting to reconnect to API..."),[4,Vs(e)]):[2];case 1:return l.sent()&&(console.log("[HEYGG COMMON] API back online - redirecting for proper auth"),mf(),o=Yo("heygg_anonymous_id"),s=t?zs():null,rd(e,o,s)),[2]}}))}))};document.addEventListener("visibilitychange",(function(){document.visibilityState==="visible"&&setTimeout(i,1e3)})),window.addEventListener("online",(function(){return setTimeout(i,2e3)})),q2=!0}}function cu(e){var t,n,i,o;e===void 0&&(e="auth/callback");var s=((n=(t=window.HeyGoodGame)===null||t===void 0?void 0:t.config)===null||n===void 0?void 0:n.isNativeApp)||!1,l=(o=(i=window.HeyGoodGame)===null||i===void 0?void 0:i.config)===null||o===void 0?void 0:o.nativeAppScheme;if(s&&l){var c=l.endsWith("://")?l:"".concat(l,"://"),d=e.startsWith("/")?e.slice(1):e;return"".concat(c).concat(d)}return window.location.href}function rd(e,t,n){var i,o,s=new URLSearchParams;s.set("redirect_uri",cu()),t&&s.set("anonymous_id",t),n&&n.partner_user_id&&s.set(n.param_name,n.partner_user_id);var l=(o=(i=window.HeyGoodGame)===null||i===void 0?void 0:i.config)===null||o===void 0?void 0:o.legacyUserIdProvider;if(l)try{var c=l();c&&c.param_name&&c.user_id&&(console.log("[HEYGG COMMON] Including legacy user ID in auth redirect:",c.param_name),s.set(c.param_name,c.user_id))}catch(d){console.warn("[HEYGG COMMON] Failed to get legacy user ID:",d)}R0("".concat(e,"/check-auth?").concat(s.toString()))}function $2(e){try{var t=JSON.parse(decodeURIComponent(e));if(typeof t!="object"||t===null)return;var n=localStorage.getItem("heygg_ab_tests"),i=n?JSON.parse(n):{},o=Tn(Tn({},i),t);localStorage.setItem("heygg_ab_tests",JSON.stringify(o))}catch(s){console.error("[HEYGG COMMON] Failed to cache experiments from auth callback:",s)}}var SC={handleGoogleCredential:function(e,t,n){return Et(this,void 0,void 0,(function(){var i,o,s,l,c,d,f,h,g,w,m,b,_,C,R,I;return kt(this,(function(k){switch(k.label){case 0:console.log("[HEYGG COMMON] Handling Google credential:",e),i=n||((b=(m=window.HeyGoodGame)===null||m===void 0?void 0:m.config)===null||b===void 0?void 0:b.apiBaseUrl)||O5,o=Yo("heygg_anonymous_id"),k.label=1;case 1:if(k.trys.push([1,4,,5]),s={credential:e},t&&(s.redirect_uri=t),o&&(s.anonymous_id=o),!((C=(_=window.HeyGoodGame)===null||_===void 0?void 0:_.config)===null||C===void 0)&&C.enablePartners&&(l=zs())&&l.partner_user_id&&(s[l.param_name]=l.partner_user_id),c=(I=(R=window.HeyGoodGame)===null||R===void 0?void 0:R.config)===null||I===void 0?void 0:I.legacyUserIdProvider)try{(d=c())&&d.param_name&&d.user_id&&(console.log("[HEYGG COMMON] Including legacy user ID in Google auth:",d.param_name),s[d.param_name]=d.user_id)}catch(A){console.warn("[HEYGG COMMON] Failed to get legacy user ID:",A)}return[4,fetch("".concat(i,"/auth/google/verify"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})];case 2:if(!(f=k.sent()).ok)throw new Error("Failed to verify Google credential");return[4,f.json()];case 3:if(h=k.sent(),console.log("[HEYGG COMMON] Google auth response:",h),h.success&&h.token)g=void 0,h.is_new_user?(console.log("[HEYGG COMMON] New user detected"),g=encodeURIComponent("".concat(i,"/welcome?return_to=").concat(encodeURIComponent(t||"")))):g=encodeURIComponent(h.redirect_url),console.log("[HEYGG COMMON] Redirecting to:",g),console.log("[HEYGG COMMON] Establishing SSO session with token:",h.token),R0("".concat(i,"/auth/sso/establish-session?token=").concat(h.token,"&return_to=").concat(g));else{if(!h.success||!h.redirect_url)throw new Error("Invalid response from Google auth endpoint");window.location.href=h.redirect_url}return[3,5];case 4:throw w=k.sent(),console.error("Error handling Google credential:",
19w),w;case 5:return[2]}}))}))},initializeOneTap:function(e,t){var n,i,o,s,l,c,d,f,h,g=this;if(t===void 0&&(t={}),d=navigator.userAgent.toLowerCase(),f=/ipad|iphone|ipod/.test(d),h=/safari/.test(d)&&!/chrome|crios|fxios|edgios/.test(d),f&&h)console.log("Google One Tap disabled for Safari on iOS");else if(!((i=(n=window.Capacitor)===null||n===void 0?void 0:n.isNativePlatform)===null||i===void 0)&&i.call(n))console.log("Google One Tap disabled for Capacitor native app");else if(!((s=(o=window.google)===null||o===void 0?void 0:o.accounts)===null||s===void 0)&&s.id){var w={client_id:e,callback:function(m){g.handleGoogleCredential(m.credential,cu(),t.apiBaseUrl).catch((function(b){console.error("Google One Tap authentication failed:",b)}))},auto_select:(l=t.autoSelect)!==null&&l!==void 0&&l,cancel_on_tap_outside:(c=t.cancelOnTapOutside)===null||c===void 0||c};window.google.accounts.id.initialize(w),window.google.accounts.id.prompt((function(m){m.isNotDisplayed()?console.log("Google One Tap not displayed:",m.getNotDisplayedReason()):m.isSkippedMoment()?console.log("Google One Tap skipped:",m.getSkippedReason()):m.isDismissedMoment()&&console.log("Google One Tap dismissed:",m.getDismissedReason())}))}else console.error("Google One Tap library not loaded")}};function N5(){return(function(){return Et(this,void 0,void 0,(function(){var e,t,n,i,o,s,l,c,d,f,h,g,w,m,b,_,C,R,I,k,A,L,j,D,V,q,$,W,ae;return kt(this,(function(te){switch(te.label){case 0:return console.log("[HEYGG COMMON] Checking auth..."),e=(($=(q=window.HeyGoodGame)===null||q===void 0?void 0:q.config)===null||$===void 0?void 0:$.apiBaseUrl)||O5,t=((ae=(W=window.HeyGoodGame)===null||W===void 0?void 0:W.config)===null||ae===void 0?void 0:ae.enablePartners)||!1,n=Date.now(),i=Hc("token"),o=Hc("anonymous_id"),s=Hc("experiments"),l=null,c=[],t?(d=Hc("partner"),[4,P0(e)]):[3,2];case 1:c=te.sent(),(l=L0(c,d||void 0))&&(console.log("[HEYGG COMMON] Found partner user:",l),P5(l)),te.label=2;case 2:if((i||o||s||l)&&((f=new URLSearchParams(window.location.search)).delete("token"),f.delete("anonymous_id"),f.delete("experiments"),t?(h=L5(c,l),g=new URLSearchParams,h.forEach((function(ce,pe){pe!=="token"&&pe!=="anonymous_id"&&g.set(pe,ce)})),w="".concat(window.location.pathname).concat(g.toString()?"?".concat(g.toString()):"").concat(window.location.hash),window.history.replaceState({},"",w)):(w="".concat(window.location.pathname).concat(f.toString()?"?".concat(f.toString()):"").concat(window.location.hash),window.history.replaceState({},"",w))),!i)return[3,8];$r("heygg_jwt",i),s&&$2(s),te.label=3;case 3:return te.trys.push([3,6,,7]),[4,fetch("".concat(e,"/api/user"),{headers:{Authorization:"Bearer ".concat(i),"Content-Type":"application/json"}})];case 4:if(!(R=te.sent()).ok)throw new Error("Failed to fetch user details");return[4,R.json()];case 5:return A=te.sent(),window.eh2=A.email_eh2,window.ehttd=A.email_ehttd,$r("heygg_user",A),$r("heygg_anonymous_id",null),[3,7];case 6:return m=te.sent(),console.error(m.message||"Failed to fetch user data"),[3,7];case 7:return $r(Dc,n),[2];case 8:return o?($r("heygg_anonymous_id",o),$r("heygg_jwt",null),$r("heygg_user",null),window.eh2="",window.ehttd="",s&&$2(s),$r(Dc,n),[2]):(b=Yo("heygg_jwt"),_=Yo("heygg_anonymous_id"),b||_?[3,10]:[4,Vs(e)]);case 9:return te.sent()?(C=t?zs():null,rd(e,_,C),[2,new Promise((function(){}))]):(console.warn("[HEYGG COMMON] API unreachable - using temp anonymous ID"),$r("heygg_anonymous_id",I0()),Bd(!0),Tp(e,t),[2]);case 10:if(!b)return[3,16];te.label=11;case 11:return te.trys.push([11,15,,16]),[4,fetch("".concat(e,"/api/user"),{headers:{Authorization:"Bearer ".concat(b),"Content-Type":"application/json"}})];case 12:return(R=te.sent()).ok?[4,R.json()]:[3,14];case 13:return A=te.sent(),window.eh2=A.email_eh2,window.ehttd=A.email_ehttd,$r("heygg_user",A),$r("heygg_anonymous_id",null),$r(Dc,n),[2];case 14:if(R.status===429){if(console.warn("[HEYGG COMMON] Rate limited by API, using cached user data"),k=Yo("heygg_user"))try{return A=typeof k=="string"?JSON.parse(k):k,window.eh2=A.email_eh2||"",window.ehttd=A.email_ehttd||"",[2]}catch{}return[2]}return $r("heygg_jwt",null),$r("heygg_user",null),window.eh2="",window.ehttd="",[3,16];case 15:if(I=te.sent(),console.warn("Failed to validate existing token:",I),k=Yo("heygg_user"))try{return A=typeof k=="string"?JSON.parse(k):k,window.eh2=A.email_eh2||"",window.ehttd=A.email_ehttd||"",[2]}catch{}return[2];case 16:return L=Yo(Dc)||0,j=n-L>W2,console.log("[HEYGG COMMON] Auth check interval:",W2,"ms"),console.log("[HEYGG COMMON] Last auth check:",L,"ms"),console.log("[HEYGG COMMON] Current time:",n,"ms"),console.log("[HEYGG COMMON] Should force check:",j),!_||j?[3,19]:qi(_)?[4,Vs(e)]:[3,18];case 17:if(te.sent())return console.log("[HEYGG COMMON] API back online - redirecting to get real anonymous ID"),mf(),$r("heygg_anonymous_id",null),D=t?zs():null,rd(e,null,D),[2,new Promise((function(){}))];Tp(e,t),te.label=18;case 18:return console.log("[HEYGG COMMON] Using existing anonymous ID:",_),[2];case 19:return[4,Vs(e)];case 20:return te.sent()?(console.log("[HEYGG COMMON] Redirecting to check-auth"),V=t?zs():null,rd(e,_,V),[2,new Promise((function(){}))]):(console.warn("[HEYGG COMMON] API unreachable - skipping re-auth"),Bd(!0),Tp(e,t),[2])}}))}))})()}var yo={getLogs:function(e,t,n,i){return Et(void 0,void 0,void 0,(function(){var o,s;return kt(this,(function(l){return o=window.HeyGoodGame.config.apiBaseUrl,(s=localStorage.getItem("heygg_jwt"))?[2,fetch("".concat(o,"/api/stats-log?game_key=").concat(e,"&option=").concat(t,"&since=").concat(n,"&game_result=").concat(i),{headers:{Authorization:"Bearer ".concat(s),"Content-Type":"application/json"}}).then((function(c){return c.json()})).then((function(c){return c.dates})).catch((function(c){console.error("Error fetching streak's logs:",c)}))]:[2]}))}))},getStreaks:function(e,t){return Et(void 0,void 0,void 0,(function(){var n,i;return kt(this,(function(o){return n=window.HeyGoodGame.config.apiBaseUrl,(i=localStorage.getItem("heygg_jwt"))?[2,fetch("".concat(n,"/api/streaks?game_key=").concat(e,"&level=").concat(t),{headers:{Authorization:"Bearer ".concat(i),"Content-Type":"application/json"}}).then((function(s){return s.json()})).then((function(s){return s})).catch((function(s){console.error("Error fetching streaks:",s)}))]:[2]}))}))}};function j0(e){var t=e?.length&&e[e.length-1];if(!t)return null;var n=new Date,i=new Date(t.updated_at);return Math.abs(i.getTime()-n.getTime())/864e5>=2?0:t?.current_win_streak}function O0(){for(var e=[],t=new Date,n=0;n<7;n++){var i=new Date;i.setDate(t.getDate()-n),e.unshift(i.toLocaleDateString("en-CA"))}return e}var id=null;function F5(e,t){id={gameKey:e,level:t}}function D5(e,t){return Et(this,void 0,void 0,(function(){var n,i,o,s,l;return kt(this,(function(c){switch(c.label){case 0:return n=id&&id.gameKey===e?id.level:t,[4,yo.getStreaks(e,n)];case 1:return(i=c.sent())!=null&&i.length&&(o=i[i.length-1],s=document.querySelector("#current-streak"),l=o&&o?.current_win_streak>=1?"ð¥ ".concat(o.current_win_streak):"𥶠0",s&&(s.innerHTML=l)),[2]}}))}))}function AC(e,t){return Et(this,void 0,void 0,(function(){var n,i,o,s,l,c,d,f,h,g,w,m,b;return kt(this,(function(_){switch(_.label){case 0:return F5(e,t),(n=document.querySelector(".dropdown-content p"))&&(n.textContent="Your ".concat((function(C){return C.split(":").map((function(R){return R.charAt(0).toUpperCase()+R.slice(1)})).join(" ")})(t)," Play Streak")),i=new Date,o=new Date,s=new Date(o.setDate(i.getDate()-7)).toISOString().split("T")[0],[4,Promise.all([yo.getLogs(e,t,s,"win"),yo.getStreaks(e,t)])];case 1:return l=_.sent(),c=l[0],d=c===void 0?[]:c,f=l[1],h=j0(f===void 0?[]:f),g=document.querySelector("#current-streak"),w=h&&h>=1?"ð¥ ".concat(h):"𥶠0",g&&(g.innerHTML=w),(m=document.querySelector("#days"))&&(b=O0().map((function(C,R){var I=d.includes(C);return'<div class="day '.concat(I?R===6?"streakCurrentDay":"streak":"",`"> 20 `).concat(C.split("-")[2],` 21 </div>`)})).join(""),m.innerHTML=b),[2]}}))}))}function Pp(e){try{if(window.parent===window)return;window.parent.postMessage(e,"*")}catch{}}var N0={sendEmbedEvent:Pp,sendGameStarted:function(e){Pp({event:"gameStarted",game:e.gameKey,gameId:e.gameId,level:e.level,timestamp:new Date().toISOString()})},sendGameEnded:function(e){Pp({event:"gameEnded",game:e.gameKey,gameId:e.gameId,level:e.level,timestamp:new Date().toISOString(),result:e.gameResult,stats:e.stats})}},Bc="heygg_partner_session",Gc="heygg_partner_tracked",EC=(function(){function e(){this.initialized=!1,this.session=null,this.lastEmbedGameId=null}return e.prototype.isInIframe=function(){try{return window.self!==window.top}catch{return!0}},e.prototype.getReferrerDomain=function(){if(!document.referrer)return"";try{return new URL(document.referrer).hostname}catch{return""}},e.prototype.generateSessionId=function(){var t=Date.now(),n=Math.random().toString(36).substring(2,15);return"".concat(t,"-").concat(n)},e.prototype.getPartnerParams=function(){return Et(this,void 0,void 0,(function(){var t,n,i,o,s,l,c,d,f,h,g;return kt(this,(function(w){switch(w.label){case 0:if(t=new URLSearchParams(window.location.search),!(n=t.get("partner")))return[3,5];i=((g=(h=window.HeyGoodGame)===null||h===void 0?void 0:h.config)===null||g===void 0?void 0:g.apiBaseUrl)||"https://play.hey.gg",o=void 0,w.label=1;case 1:return w.trys.push([1,3,,4]),[4,P0(i)];
21case 2:return s=w.sent(),(l=L0(s,n))&&(o=l.partner_user_id),[3,4];case 3:return c=w.sent(),console.warn("[HEYGG] Failed to fetch partner config, falling back to partner_user_id param:",c),[3,4];case 4:return o||(d=t.get("partner_user_id"),o=d||void 0),[2,{partner:n,partner_user_id:o}];case 5:return(f=this.getStoredSession())!=null&&f.partner?[2,{partner:f.partner,partner_user_id:f.partner_user_id}]:[2,null]}}))}))},e.prototype.getStoredSession=function(){try{var t=sessionStorage.getItem(Bc);return t?JSON.parse(t):null}catch(n){return console.warn("[HEYGG] Failed to read partner session:",n),null}},e.prototype.storeSession=function(t){try{sessionStorage.setItem(Bc,JSON.stringify(t))}catch(n){console.warn("[HEYGG] Failed to store partner session:",n)}},e.prototype.hasBeenTracked=function(){try{return sessionStorage.getItem(Gc)==="true"}catch{return!1}},e.prototype.markAsTracked=function(){try{sessionStorage.setItem(Gc,"true")}catch(t){console.warn("[HEYGG] Failed to mark session as tracked:",t)}},e.prototype.init=function(t,n,i){return Et(this,void 0,void 0,(function(){var o,s,l;return kt(this,(function(c){switch(c.label){case 0:return this.initialized?[2]:(o=this.isInIframe(),[4,this.getPartnerParams()]);case 1:if(s=c.sent(),!o||!s){if(!o)try{sessionStorage.removeItem(Bc),sessionStorage.removeItem(Gc)}catch{}return this.initialized=!0,[2]}return(l=this.getStoredSession())&&l.partner===s.partner&&l.partner_user_id===s.partner_user_id?this.session=Tn(Tn({},l),{game_metadata:{gameKey:t,gameId:n,level:i}}):this.session={partner:s.partner,partner_user_id:s.partner_user_id,session_id:this.generateSessionId(),referrer_domain:this.getReferrerDomain(),is_embedded:!0,game_metadata:{gameKey:t,gameId:n,level:i}},this.storeSession(this.session),this.initialized=!0,console.log("[HEYGG] Partner tracking initialized:",{partner:this.session.partner,session_id:this.session.session_id}),[2]}}))}))},e.prototype.isPartnerSession=function(){return this.session!==null},e.prototype.getSession=function(){return this.session},e.prototype.trackPartnerGameStart=function(t){return Et(this,void 0,void 0,(function(){var n,i,o,s,l,c,d,f,h,g,w,m,b,_,C,R,I,k,A;return kt(this,(function(L){switch(L.label){case 0:if(!this.session)return console.log("[HEYGG] No partner session, skipping tracking"),[2];if(n=t.gameKey||((_=this.session.game_metadata)===null||_===void 0?void 0:_.gameKey),i=t.gameId||((C=this.session.game_metadata)===null||C===void 0?void 0:C.gameId),o=t.level||((R=this.session.game_metadata)===null||R===void 0?void 0:R.level),!n)return console.warn("[HEYGG] No gameKey provided for partner tracking"),[2];if((s=t.trigger==="page_load")&&this.hasBeenTracked())return console.log("[HEYGG] Partner game start already tracked for this session"),[2];t.trigger!=="page_load"&&(l=i||"".concat(n,":").concat(o||"default"),this.lastEmbedGameId!==l&&(this.lastEmbedGameId=l,N0.sendGameStarted({gameKey:n,gameId:i,level:o}))),c={partner:this.session.partner,partner_user_id:this.session.partner_user_id,game_key:n,game_id:i,level:o,is_embedded:this.session.is_embedded,referrer_domain:this.session.referrer_domain,session_id:this.session.session_id,trigger:t.trigger,anonymous_id:void 0},d=localStorage.getItem("heygg_jwt"),(f=localStorage.getItem("heygg_anonymous_id"))&&(c.anonymous_id=f),h={"Content-Type":"application/json"},d&&(h.Authorization="Bearer ".concat(d)),L.label=1;case 1:return L.trys.push([1,4,,5]),g=((k=(I=window.HeyGoodGame)===null||I===void 0?void 0:I.config)===null||k===void 0?void 0:k.apiBaseUrl)||"https://play.hey.gg",console.log("Tracking partner game start to API Base URL:",g),[4,fetch("".concat(g,"/api/partner/game-start"),{method:"POST",headers:h,body:JSON.stringify(c)})];case 2:if(!(w=L.sent()).ok)throw new Error("HTTP ".concat(w.status,": ").concat(w.statusText));return[4,w.json()];case 3:return m=L.sent(),!((A=m.data)===null||A===void 0)&&A.id&&(this.session.partner_game_start_id=m.data.id,this.storeSession(this.session)),s&&this.markAsTracked(),console.log("[HEYGG] Partner game start tracked successfully:",{partner:this.session.partner,trigger:t.trigger,game_key:n,partner_game_start_id:this.session.partner_game_start_id}),[3,5];case 4:return b=L.sent(),console.error("[HEYGG] Failed to track partner game start:",b),[3,5];case 5:return[2]}}
21))}))},e.prototype.clearSession=function(){this.session=null,this.initialized=!1;try{sessionStorage.removeItem(Bc),sessionStorage.removeItem(Gc)}catch{}},e})(),ki=new EC,F0="heygg_stats_retry_queue",Wo=10,Lp=!1,Q2=[5e3,3e4,12e4,6e5,18e5,36e5,72e5,216e5,432e5,864e5];function ro(){try{var e=localStorage.getItem(F0);return e?JSON.parse(e):[]}catch{return[]}}function Os(e){try{localStorage.setItem(F0,JSON.stringify(e))}catch(t){console.warn("[StatsRetryQueue] Failed to save queue:",t)}}function H5(e){var t;return qi((t=e.anonymous_id)!==null&&t!==void 0?t:null)}var Pi={enqueue:function(e,t,n){var i=ro(),o={id:typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(c){var d=16*Math.random()|0;return(c==="x"?d:3&d|8).toString(16)})),payload:e,attempts:1,lastAttemptAt:Date.now(),createdAt:Date.now(),error:t,queued_user_id:n?.user_id,queued_anonymous_id:n?.anonymous_id};if(i.push(o),i.length>50){i.sort((function(c,d){return c.createdAt-d.createdAt}));var s=i.length-50,l=i.splice(0,s);console.warn("[StatsRetryQueue] Queue full, evicted ".concat(s," oldest entries:"),l.map((function(c){return c.id})))}return Os(i),console.log("[StatsRetryQueue] Queued failed stat submission:",o.id),o},dequeue:function(e){Os(ro().filter((function(t){return t.id!==e}))),console.log("[StatsRetryQueue] Removed from queue:",e)},updateEntry:function(e,t){var n=ro(),i=n.findIndex((function(o){return o.id===e}));i!==-1&&(n[i]=Tn(Tn({},n[i]),t),Os(n))},getRetryableEntries:function(){var e=ro(),t=Date.now(),n=e.filter((function(i){return i.attempts>=Wo})).length;return n>0&&(Os(e.filter((function(i){return i.attempts<Wo}))),console.log("[StatsRetryQueue] Cleaned up ".concat(n," exhausted entries"))),e.filter((function(i){if(i.attempts>=Wo)return!1;if(!i.lastAttemptAt)return!0;var o=Math.min(i.attempts-1,Q2.length-1),s=Q2[o],l=i.lastAttemptAt+s;return t>=l}))},getAllEntries:function(){return ro()},getPendingCount:function(){return ro().filter((function(e){return e.attempts<Wo})).length},getFailedCount:function(){return ro().filter((function(e){return e.attempts>=Wo})).length},clearQueue:function(){Os([]),console.log("[StatsRetryQueue] Queue cleared")},clearFailedEntries:function(){Os(ro().filter((function(e){return e.attempts<Wo}))),console.log("[StatsRetryQueue] Failed entries cleared")},acquireProcessingLock:function(){return!Lp&&(Lp=!0,!0)},releaseProcessingLock:function(){Lp=!1},hasTempAuth:H5,STORAGE_KEY:F0,MAX_ATTEMPTS:Wo},kC="2.0.0";const TC="awesomium",PC="cef",LC="cefsharp",MC="coachjs",Mp="electron",IC="fminer",RC="geb",jC="nightmarejs",OC="phantomas",ad="phantomjs",NC="rhino",B5="selenium",FC="sequentum",Y2="slimerjs",DC="webdriverio",HC="webdriver",ea="headless_chrome",Mh="unknown";class Gn extends Error{constructor(t,n){super(n),this.state=t,this.name="BotdError",Object.setPrototypeOf(this,Gn.prototype)}}function od(e,t){return e.indexOf(t)!==-1}function Sa(e,t){return e.indexOf(t)!==-1}function BC(e,t){if("find"in e)return e.find(t);for(let n=0;n<e.length;n++)if(t(e[n],n,e))return e[n]}function Z2(e){return Object.getOwnPropertyNames(e)}function Ih(e,...t){for(const n of t)if(typeof n=="string"){if(od(e,n))return!0}else if(BC(e,(i=>n.test(i)))!=null)return!0;return!1}function Ws(e){return e.reduce(((t,n)=>t+(n?1:0)),0)}const GC={detectAppVersion:function({appVersion:e}){return e.state===0&&(/headless/i.test(e.value)?ea:/electron/i.test(e.value)?Mp:/slimerjs/i.test(e.value)?Y2:void 0)},detectDocumentAttributes:function({documentElementKeys:e}){return e.state===0&&(Ih(e.value,"selenium","webdriver","driver")?B5:void 0)},detectErrorTrace:function({errorTrace:e}){return e.state===0&&(/PhantomJS/i.test(e.value)?ad:void 0)},detectEvalLengthInconsistency:function({evalLength:e,browserKind:t,browserEngineKind:n}){if(e.state!==0||t.state!==0||n.state!==0)return;const i=e.value;return n.value!=="unknown"&&(i===37&&!od(["webkit","gecko"],n.value)||i===39&&!od(["internet_explorer"],t.value)||i===33&&!od(["chromium"],n.value))},detectFunctionBind:function({functionBind:e}){if(e.state===-2)return ad},detectLanguagesLengthInconsistency:function({languages:e}){if(e.state===0&&e.value.length===0)return ea},detectNotificationPermissions:function({notificationPermissions:e,browserKind:t}){return t.state===0&&t.value==="chrome"&&(e.state===0&&e.value?ea:void 0)},detectPluginsArray:function({pluginsArray:e}){if(e.state===0&&!e.value)return ea},detectPluginsLengthInconsistency:function({pluginsLength:e,android:t,browserKind:n,browserEngineKind:i}){if(e.state===0&&t.state===0&&n.state===0&&i.state===0&&n.value==="chrome"&&!t.value&&i.value==="chromium")return e.value===0?ea:void 0},detectProcess:function({process:e}){var t;return e.state===0&&(e.value.type==="renderer"||((t=e.value.versions)===null||t===void 0?void 0:t.electron)!=null?Mp:void 0)},detectUserAgent:function({userAgent:e}){return e.state===0&&(/PhantomJS/i.test(e.value)?ad:/Headless/i.test(e.value)?ea:/Electron/i.test(e.value)?Mp:/slimerjs/i.test(e.value)?Y2:void 0)},detectWebDriver:function({webDriver:e}){if(e.state===0&&e.value)return ea},detectWebGL:function({webGL:e}){if(e.state===0){const{vendor:t,renderer:n}=e.value;if(t=="Brian Paul"&&n=="Mesa OffScreen")return ea}},detectWindowExternal:function({windowExternal:e}){return e.state===0&&(/Sequentum/i.test(e.value)?FC:void 0)},detectWindowSize:function({windowSize:e,documentFocus:t}){if(e.state!==0||t.state!==0)return!1;const{outerWidth:n,outerHeight:i}=e.value;return t.value&&n===0&&i===0?ea:void 0},detectMimeTypesConsistent:function({mimeTypesConsistent:e}){if(e.state===0&&!e.value)return Mh},detectProductSub:function({productSub:e,browserKind:t}){return e.state===0&&t.state===0&&(t.value!=="chrome"&&t.value!=="safari"&&t.value!=="opera"&&t.value!=="wechat"||e.value==="20030107"?void 0:Mh)},detectDistinctiveProperties:function({distinctiveProps:e}){if(e.state!==0)return!1;const t=e.value;let n;for(n in t)if(t[n])return n}};function Ip(){var e,t;const n=window,i=navigator;return Ws(["webkitPersistentStorage"in i,"webkitTemporaryStorage"in i,i.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in n,"BatteryManager"in n,"webkitMediaStream"in n,"webkitSpeechGrammar"in n])>=5?"chromium":Ws(["ApplePayError"in n,"CSSPrimitiveValue"in n,"Counter"in n,i.vendor.indexOf("Apple")===0,"getStorageUpdates"in i,"WebKitMediaKeys"in n])>=4?"webkit":Ws(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4?"gecko":"unknown"}const UC={android:function(){const e=Ip(),t=e==="gecko",n=window,i=navigator,o="connection";return e==="chromium"?Ws([!("SharedWorker"in n),i[o]&&"ontypechange"in i[o],!("sinkId"in new Audio)])>=2:!!t&&Ws(["onorientationchange"in n,"orientation"in n,/android/i.test(i.appVersion)])>=2},browserKind:function(){var e;const t=(e=navigator.userAgent)===null||e===void 0?void 0:e.toLowerCase();return Sa(t,"edg/")?"edge":Sa(t,"trident")||Sa(t,"msie")?"internet_explorer":Sa(t,"wechat")?"wechat":Sa(t,"firefox")?"firefox":Sa(t,"opera")||Sa(t,"opr")?"opera":Sa(t,"chrome")?"chrome":Sa(t,"safari")?"safari":"unknown"},browserEngineKind:Ip,documentFocus:function(){return document.hasFocus!==void 0&&document.hasFocus()},userAgent:function(){return navigator.userAgent},appVersion:function(){const e=navigator.appVersion;if(e==null)throw new Gn(-1,"navigator.appVersion is undefined");return e},rtt:function(){if(navigator.connection===void 0)throw new Gn(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new Gn(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},windowSize:function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},pluginsLength:function(){if(navigator.plugins===void 0)throw new Gn(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new Gn(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},pluginsArray:function(){if(navigator.plugins===void 0)throw new Gn(-1,"navigator.plugins is undefined");if(window.PluginArray===void 0)throw new Gn(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray},errorTrace:function(){try{null[0]()}catch(e){if(e instanceof Error&&e.stack!=null)return e.stack.toString()}throw new Gn(-3,"errorTrace signal unexpected behaviour")},productSub:function(){const{productSub:e}=navigator;if(e===void 0)throw new Gn(-1,"navigator.productSub is undefined");return e},windowExternal:function(){if(window.external===void 0)throw new Gn(-1,"window.external is undefined");const{external:e}=window;if(typeof e.toString!="function")throw new Gn(-2,"window.external.toString is not a function");return e.toString()},mimeTypesConsistent:function(){if(navigator.mimeTypes===void 0)throw new Gn(-1,"navigator.mimeTypes is undefined");const{mimeTypes:e}=navigator;let t=Object.getPrototypeOf(e)===MimeTypeArray.prototype;for(let n=0;n<e.length;n++)t&&(t=Object.getPrototypeOf(e[n])===MimeType.prototype);return t},evalLength:function(){return eval.toString().length},webGL:function(){const e=document.createElement("canvas");if(typeof e.getContext!="function")throw new Gn(-2,"HTMLCanvasElement.getContext is not a function");const t=e.getContext("webgl");
21if(t===null)throw new Gn(-4,"WebGLRenderingContext is null");if(typeof t.getParameter!="function")throw new Gn(-2,"WebGLRenderingContext.getParameter is not a function");return{vendor:t.getParameter(t.VENDOR),renderer:t.getParameter(t.RENDERER)}},webDriver:function(){if(navigator.webdriver==null)throw new Gn(-1,"navigator.webdriver is undefined");return navigator.webdriver},languages:function(){const e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))Ip()==="chromium"&&(function(){const i=window;return Ws([!("MediaSettingsRange"in i),"RTCEncodedAudioFrame"in i,""+i.Intl=="[object Intl]",""+i.Reflect=="[object Reflect]"])>=3})()||t.push(e.languages);else if(typeof e.languages=="string"){const i=e.languages;i&&t.push(i.split(","))}return t},notificationPermissions:async function(){if(window.Notification===void 0)throw new Gn(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new Gn(-1,"navigator.permissions is undefined");const{permissions:e}=navigator;if(typeof e.query!="function")throw new Gn(-2,"navigator.permissions.query is not a function");try{const t=await e.query({name:"notifications"});return window.Notification.permission==="denied"&&t.state==="prompt"}catch{throw new Gn(-3,"notificationPermissions signal unexpected behaviour")}},documentElementKeys:function(){if(document.documentElement===void 0)throw new Gn(-1,"document.documentElement is undefined");const{documentElement:e}=document;if(typeof e.getAttributeNames!="function")throw new Gn(-2,"document.documentElement.getAttributeNames is not a function");return e.getAttributeNames()},functionBind:function(){if(Function.prototype.bind===void 0)throw new Gn(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},process:function(){const{process:e}=window,t="window.process is";if(e===void 0)throw new Gn(-1,`${t} undefined`);if(e&&typeof e!="object")throw new Gn(-3,`${t} not an object`);return e},distinctiveProps:function(){const e={[TC]:{window:["awesomium"]},[PC]:{window:["RunPerfTest"]},[LC]:{window:["CefSharp"]},[MC]:{window:["emit"]},[IC]:{window:["fmget_targets"]},[RC]:{window:["geb"]}
21,[jC]:{window:["__nightmare","nightmare"]},[OC]:{window:["__phantomas"]},[ad]:{window:["callPhantom","_phantom"]},[NC]:{window:["spawn"]},[B5]:{window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},[DC]:{window:["wdioElectron"]},[HC]:{window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},[ea]:{window:["domAutomation","domAutomationController"]}};let t;const n={},i=Z2(window);let o=[];for(t in window.document!==void 0&&(o=Z2(window.document)),e){const s=e[t];if(s!==void 0){const l=s.window!==void 0&&Ih(i,...s.window),c=!(s.document===void 0||!o.length)&&Ih(o,...s.document);n[t]=l||c}}return n}};class zC{constructor(){this.components=void 0,this.detections=void 0}getComponents(){return this.components}getDetections(){return this.detections}detect(){if(this.components===void 0)throw new Error("BotDetector.detect can't be called before BotDetector.collect");const[t,n]=(function(i,o){const s={};let l={bot:!1};for(const c in o){const d=(0,o[c])(i);let f={bot:!1};typeof d=="string"?f={bot:!0,botKind:d}:d&&(f={bot:!0,botKind:Mh}),s[c]=f,f.bot&&(l=f)}return[s,l]})(this.components,GC);return this.detections=t,n}async collect(){return this.components=await(async function(t){const n={},i=Object.keys(t);return await Promise.all(i.map((async o=>{const s=t[o];try{n[o]={value:await s(),state:0}}catch(l){n[o]=l instanceof Gn?{state:l.state,error:`${l.name}: ${l.message}`}:{state:-3,error:l instanceof Error?`${l.name}: ${l.message}`:String(l)}}}))),n})(UC),this.components}}async function VC({monitoring:e=!0}={}){e&&(function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{const n=new XMLHttpRequest;n.open("get",`https://m1.openfpcdn.io/botd/v${kC}/npm-monitoring`,!0),n.send()}catch(n){console.error(n)}})();const t=new zC;return await t.collect(),t}var Rh=null,K2=!1,Rp=!1,J2=!1;function G5(){var e=localStorage.getItem("heygg_user");if(e)try{var t=JSON.parse(e);if(t?.id)return{user_id:t.id}}catch{}return{anonymous_id:localStorage.getItem("heygg_anonymous_id")||void 0}}function U5(e,t){return!t||t.status>=500}function z5(e,t){return Et(this,void 0,void 0,(function(){var n,i,o,s;return kt(this,(function(l){switch(l.label){case 0:if(e.anonymous_id&&qi(e.anonymous_id))return console.error("[Stats] BLOCKED: Attempted to submit payload with temp anonymous ID:",e.anonymous_id),[2,{success:!1,error:"Cannot submit stats with temporary anonymous ID"}];n=(function(){var c=localStorage.getItem("heygg_jwt"),d={"Content-Type":"application/json",Accept:"application/json"};return c&&(d.Authorization="Bearer ".concat(c)),d})(),l.label=1;case 1:return l.trys.push([1,4,,5]),[4,fetch("".concat(t,"/api/game-stats"),{method:"POST",headers:n,body:JSON.stringify(e)})];case 2:return(i=l.sent()).ok?[4,i.json()]:[2,{success:!1,response:i,error:"HTTP ".concat(i.status)}];case 3:return[2,{success:!0,data:o=l.sent(),duplicate:o.duplicate===!0}];case 4:return[2,{success:!1,error:(s=l.sent())instanceof Error?s.message:"Unknown error"}];case 5:return[2]}}
21))}))}function Uc(){return Et(this,void 0,void 0,(function(){var e,t,n,i,o,s,l,c,d,f,h,g,w,m,b,_,C;return kt(this,(function(R){switch(R.label){case 0:if(Rp)return[2];if(H5(e=G5())&&!e.user_id)return console.log("[Stats] Skipping retry queue - using temp anonymous ID"),[2];if((t=Pi.getRetryableEntries()).length===0)return[2];Rp=!0,n=window.HeyGoodGame.config.apiBaseUrl,console.log("[Stats] Processing ".concat(t.length," queued stats...")),i=0,o=t,R.label=1;case 1:if(!(i<o.length))return[3,7];if(s=o[i],l=(function(I,k){var A=I.queued_user_id,L=I.queued_anonymous_id,j=k.user_id,D=k.anonymous_id;return A?j===A?"retry":"skip":L?j||D===L||qi(L)&&D&&!qi(D)?"retry":qi(L)&&!D?"skip":"evict":"retry"})(s,e),l==="evict")return Pi.dequeue(s.id),console.warn("[Stats] Evicted queued stat due to auth mismatch: ".concat(s.id)),[3,6];if(l==="skip")return console.log("[Stats] Skipping queued stat, auth mismatch (user may log back in): ".concat(s.id)),[3,6];if(c=s.payload,d=(b=s.queued_anonymous_id)!==null&&b!==void 0?b:null,f=(_=s.payload.anonymous_id)!==null&&_!==void 0?_:null,h=qi(d),g=qi(f),console.log("[Stats] Processing entry ".concat(s.id,":"),{queuedAnonId:d,payloadAnonId:f,isQueuedTemp:h,isPayloadTemp:g,currentAnonId:e.anonymous_id,currentUserId:e.user_id}),h||g)if(e.user_id)delete(c=Tn({},s.payload)).anonymous_id,console.log("[Stats] Entry ".concat(s.id,": removing anonymous_id, user is authenticated"));else{if(!e.anonymous_id||qi(e.anonymous_id))return console.log("[Stats] Skipping queued stat ".concat(s.id," - waiting for real anonymous ID")),[3,6];(c=Tn({},s.payload)).anonymous_id=e.anonymous_id,console.log("[Stats] Entry ".concat(s.id,": replacing temp ID with real ID ").concat(e.anonymous_id))}return[4,z5(c,n)];case 2:return(w=R.sent()).success?(Pi.dequeue(s.id),console.log("[Stats] Retry successful for queued stat: ".concat(s.id)),(m=(C=s.payload.stats)===null||C===void 0?void 0:C.level)?[4,D5(s.payload.game_key,m)]:[3,4]):[3,5];case 3:R.sent(),R.label=4;case 4:return[3,6];case 5:U5(w.error,w.response)?(Pi.updateEntry(s.id,{attempts:s.attempts+1,lastAttemptAt:Date.now(),error:w.error}),console.log("[Stats] Retry failed for ".concat(s.id,", attempt ").concat(s.attempts+1,"/").concat(Pi.MAX_ATTEMPTS,": ").concat(w.error))):(Pi.updateEntry(s.id,{attempts:Pi.MAX_ATTEMPTS,lastAttemptAt:Date.now(),error:w.error}),console.warn("[Stats] Non-retryable error for ".concat(s.id,": ").concat(w.error))),R.label=6;case 6:return i++,[3,1];case 7:return Rp=!1,[2]}}))}))}var V5={sendStats:function(e,t,n,i,o,s){return Et(this,arguments,void 0,(function(l,c,d,f,h,g,w){var m,b,_,C,R,I,k,A,L;return w===void 0&&(w=!1),kt(this,(function(j){switch(j.label){case 0:return J2||typeof document>"u"||(document.addEventListener("visibilitychange",(function(){document.visibilityState==="visible"&&setTimeout(Uc,1e3)})),window.addEventListener("online",(function(){console.log("[Stats] Network back online, processing retry queue..."),setTimeout(Uc,2e3)})),J2=!0),m=window.HeyGoodGame.config.apiBaseUrl,b=localStorage.getItem("heygg_anonymous_id"),_=localStorage.getItem("heygg_jwt"),C=new Date,R="".concat(C.getFullYear(),"-").concat(String(C.getMonth()+1).padStart(2,"0"),"-").concat(String(C.getDate()).padStart(2,"0")),I={game_key:l,game_date:c,play_date:R,game_id:d,game_result:h,stats:Tn({level:f},g),is_archive:w},!_&&b&&(I.anonymous_id=b),(k=ki.getSession())&&(I.partner=k.partner,I.partner_user_id=k.partner_user_id,I.partner_session_id=k.session_id,I.partner_game_start_id=k.partner_game_start_id,N0.sendGameEnded({gameKey:l,gameId:d,level:f,gameResult:h,stats:g})),Rh?.bot===!0&&(I.botd=!0),[4,z5(I,m)];case 1:if((A=j.sent()).success)return setTimeout(Uc,100),D5(l,f).catch((function(){})),[2,A.data];if(U5(A.error,A.response))return L=G5(),Pi.enqueue(I,A.error,L),console.warn("[Stats] Submission failed, queued for retry: ".concat(A.error)),[2];throw new Error(A.error||"Failed to send stats")}}))}))},sendHistoryStats:function(e,t,n){return Et(this,void 0,void 0,(function(){var i,o,s,l,c,d;return kt(this,(function(f){switch(f.label){case 0:if(i=window.HeyGoodGame.config.apiBaseUrl,o=localStorage.getItem("heygg_jwt"),s=localStorage.getItem("heygg_anonymous_id"),!o&&!s)return[2];l={"Content-Type":"application/json",Accept:"application/json"},o&&(l.Authorization="Bearer ".concat(o)),c={game_key:e,level:t,stats:n},!o&&s&&(c.anonymous_id=s),f.label=1;case 1:return f.trys.push([1,4,,5]),[4,fetch("".concat(i,"/api/historical-stats"),{method:"POST",headers:l,body:JSON.stringify(c),credentials:"include"})];case 2:if(!(d=f.sent()).ok)throw new Error("Failed to send stats");return[4,d.json()];case 3:return f.sent(),[3,5];case 4:throw f.sent();case 5:return[2]}}
21))}))},getGameStatsById:function(e,t){return Et(this,void 0,void 0,(function(){var n,i,o,s,l,c;return kt(this,(function(d){switch(d.label){case 0:if(n=window.HeyGoodGame.config.apiBaseUrl,!(i=localStorage.getItem("heygg_jwt")))return[2,[]];o={"Content-Type":"application/json",Accept:"application/json"},i&&(o.Authorization="Bearer ".concat(i)),s="".concat(n,"/api/game-stats/").concat(e,"/").concat(t),d.label=1;case 1:return d.trys.push([1,4,,5]),[4,fetch(s,{method:"GET",headers:o,credentials:"include"})];case 2:if(!(l=d.sent()).ok)throw new Error("Failed to get stats: ".concat(l.status));return[4,l.json()];case 3:return[2,d.sent()];case 4:throw c=d.sent(),console.error("Error fetching game stats:",c),c;case 5:return[2]}}))}))},getUserStats:function(e,t){return Et(this,void 0,void 0,(function(){var n,i,o,s,l,c;return kt(this,(function(d){switch(d.label){case 0:if(n=window.HeyGoodGame.config.apiBaseUrl,!(i=localStorage.getItem("heygg_jwt")))return[2];o={"Content-Type":"application/json",Accept:"application/json"},i&&(o.Authorization="Bearer ".concat(i)),s="".concat(n,"/api/user-stats?game_key=").concat(e),t&&(s+="&level=".concat(t)),d.label=1;case 1:return d.trys.push([1,4,,5]),[4,fetch(s,{method:"GET",headers:o,credentials:"include"})];case 2:if(!(l=d.sent()).ok)throw new Error("Failed to get stats: ".concat(l.status));return[4,l.json()];case 3:return[2,d.sent()];case 4:throw c=d.sent(),console.error("Error fetching game stats:",c),c;case 5:return[2]}}
21))}))},fetchGameArchive:function(e,t){return Et(this,void 0,void 0,(function(){var n,i,o,s,l,c,d;return kt(this,(function(f){switch(f.label){case 0:if(n=window.HeyGoodGame.config.apiBaseUrl,!(i=localStorage.getItem("heygg_jwt")))throw new Error("Authentication required to fetch game archive data");o={"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer ".concat(i)},s="".concat(n,"/api/games/").concat(e),t&&Object.keys(t).length>0&&(l=new URLSearchParams,t.level&&l.append("level",t.level),t.start_date&&l.append("start_date",t.start_date),t.end_date&&l.append("end_date",t.end_date),t.limit&&l.append("limit",t.limit.toString()),s+="?".concat(l.toString())),f.label=1;case 1:return f.trys.push([1,4,,5]),[4,fetch(s,{method:"GET",headers:o,credentials:"include"})];case 2:if(!(c=f.sent()).ok)throw new Error("Failed to fetch game archive: ".concat(c.status));return[4,c.json()];case 3:return[2,f.sent()];case 4:throw d=f.sent(),console.error("Error fetching game archive:",d),d;case 5:return[2]}}))}))},fetchGameAggregate:function(e,t,n){return Et(this,void 0,void 0,(function(){var i,o,s,l,c;return kt(this,(function(d){switch(d.label){case 0:return d.trys.push([0,3,,4]),i=((c=(l=window.HeyGoodGame)===null||l===void 0?void 0:l.config)===null||c===void 0?void 0:c.apiBaseUrl)||"https://play.hey.gg",o="".concat(i,"/api/game-stats/").concat(encodeURIComponent(e),"/aggregate/").concat(encodeURIComponent(t)),n!==void 0&&(o+="?score=".concat(encodeURIComponent(n))),[4,fetch(o,{method:"GET",headers:{"Content-Type":"application/json"}})];case 1:return(s=d.sent()).ok?[4,s.json()]:[2,null];case 2:return[2,d.sent()];case 3:return d.sent(),[2,null];case 4:return[2]}}
21))}))},processRetryQueue:Uc,getPendingRetryCount:Pi.getPendingCount,getFailedRetryCount:Pi.getFailedCount,getRetryQueue:Pi.getAllEntries,clearRetryQueue:Pi.clearQueue},jp="https://play.hey.gg",X2=432e5;function Op(e,t){var n;if(typeof gtag<"u"){var i=e.replace(/[^a-zA-Z0-9_]/g,"_").substring(0,24);try{gtag("set","user_properties",((n={})[i]=t,n)),console.log("[AB Testing] Set GA user property: ".concat(i," = ").concat(t))}catch(o){console.error("[AB Testing] Failed to set GA user property:",o)}}else console.log("[AB Testing] gtag not available, skipping GA user property")}var Np,sd={getVariant:function(e){return Et(this,arguments,void 0,(function(t,n){var i,o,s,l,c,d,f,h,g,w,m,b,_,C,R,I,k,A,L,j;return n===void 0&&(n="default"),kt(this,(function(D){switch(D.label){case 0:if(console.log("[AB Testing] Getting variant for experiment: ".concat(t)),i=new URLSearchParams(window.location.search),o=i.get("ab[".concat(t,"]")))return console.log("[AB Testing] Using override variant from URL: ".concat(o," for experiment: ").concat(t)),Op(t,o),[2,{name:o}];if(s=localStorage.getItem("heygg_ab_tests"),(l=s?JSON.parse(s):{})[t]){if(c=l[t],d=c._cachedAt||0,!(Date.now()-d>X2))return console.log("[AB Testing] Using cached variant:",c),Op(t,c.name),[2,{id:c.id,name:c.name,config:c.config}];console.log("[AB Testing] Cache expired for experiment:",t),delete l[t],localStorage.setItem("heygg_ab_tests",JSON.stringify(l))}if(f=((A=(k=window.HeyGoodGame)===null||k===void 0?void 0:k.config)===null||A===void 0?void 0:A.apiBaseUrl)||jp,h=localStorage.getItem("heygg_jwt"),g=localStorage.getItem("heygg_anonymous_id"),console.log("[AB Testing] Using API base URL: ".concat(f)),w={"Content-Type":"application/json"},m="".concat(f,"/api/ab-testing/").concat(t,"/variant"),h)w.Authorization="Bearer ".concat(h);else{if(!g)throw new Error("User is not authenticated or anonymous");m+="?anonymous_id=".concat(g)}D.label=1;case 1:return D.trys.push([1,4,,5]),console.log("[AB Testing] Fetching variant from: ".concat(m)),console.log("[AB Testing] Headers:",w),[4,fetch(m,{method:"GET",headers:w})];case 2:if((b=D.sent()).status===404)return console.warn("[AB Testing] Experiment not found: ".concat(t,", returning default variant: ").concat(n)),[2,{name:n}];if(!b.ok)throw console.error("[AB Testing] Failed to get variant: ".concat(b.status)),new Error("Failed to get variant: ".concat(b.status));return[4,b.json()];case 3:return _=D.sent(),console.log("[AB Testing] Received response:",_),((L=_.experiment)===null||L===void 0?void 0:L.status)!=="active"?(console.warn("[AB Testing] Experiment is not active (status: ".concat((j=_.experiment)===null||j===void 0?void 0:j.status,"): ").concat(t,", returning default variant: ").concat(n)),[2,{name:n}]):_.variant?(C=localStorage.getItem("heygg_ab_tests"),(R=C?JSON.parse(C):{})[t]=Tn(Tn({},_.variant),{_cachedAt:Date.now()}),localStorage.setItem("heygg_ab_tests",JSON.stringify(R)),console.log("[AB Testing] Cached variant ".concat(_.variant.name," for experiment ").concat(t)),Op(t,_.variant.name),[2,_.variant]):(console.warn("[AB Testing] No variant returned for experiment: ".concat(t,", using default: ").concat(n)),[2,{name:n}]);case 4:throw I=D.sent(),console.error("Error fetching AB test variant:",I),I;case 5:return[2]}}
21))}))},getCachedVariant:function(e){var t=localStorage.getItem("heygg_ab_tests"),n=(t?JSON.parse(t):{})[e];if(!n)return null;var i=n._cachedAt||0;return Date.now()-i>X2?null:{id:n.id,name:n.name,config:n.config}},trackEvent:function(e,t){return Et(this,arguments,void 0,(function(n,i,o){var s,l,c,d,f,h,g,w,m,b;return o===void 0&&(o={}),kt(this,(function(_){switch(_.label){case 0:console.log("[AB Testing] Tracking event: ".concat(i," for experiment: ").concat(n)),console.log("[AB Testing] Event data:",o),s=((b=(m=window.HeyGoodGame)===null||m===void 0?void 0:m.config)===null||b===void 0?void 0:b.apiBaseUrl)||jp,l=localStorage.getItem("heygg_jwt"),c=localStorage.getItem("heygg_anonymous_id"),console.log("[AB Testing] Using API base URL: ".concat(s)),d={"Content-Type":"application/json"},l&&(d.Authorization="Bearer ".concat(l)),f={event:i,data:o},!l&&c&&(f.anonymous_id=c),_.label=1;case 1:return _.trys.push([1,3,,4]),h="".concat(s,"/api/ab-testing/").concat(n,"/event"),console.log("[AB Testing] Sending event to: ".concat(h)),console.log("[AB Testing] Request body:",f),console.log("[AB Testing] Headers:",d),[4,fetch(h,{method:"POST",headers:d,body:JSON.stringify(f)})];case 2:if(!(g=_.sent()).ok)throw console.error("[AB Testing] Failed to track event: ".concat(g.status)),new Error("Failed to track event: ".concat(g.status));return console.log("[AB Testing] Event tracked successfully"),[3,4];case 3:throw w=_.sent(),console.error("[AB Testing] Error tracking AB test event:",w),w;case 4:return[2]}}
21))}))},getAllExperiments:function(e){return Et(this,void 0,void 0,(function(){var t,n,i,o,s,l,c,d,f,h,g,w;return kt(this,(function(m){switch(m.label){case 0:if(console.log("[AB Testing] Getting all experiments".concat(e?" for game: ".concat(e):"")),t=((w=(g=window.HeyGoodGame)===null||g===void 0?void 0:g.config)===null||w===void 0?void 0:w.apiBaseUrl)||jp,n=localStorage.getItem("heygg_jwt"),i=localStorage.getItem("heygg_anonymous_id"),o={"Content-Type":"application/json"},s="".concat(t,"/api/ab-testing/experiments"),l=new URLSearchParams,e&&l.append("game_key",e),n)o.Authorization="Bearer ".concat(n);else{if(!i)throw new Error("User is not authenticated or anonymous");l.append("anonymous_id",i)}l.toString()&&(s+="?".concat(l.toString())),m.label=1;case 1:return m.trys.push([1,4,,5]),console.log("[AB Testing] Fetching experiments from: ".concat(s)),console.log("[AB Testing] Headers:",o),[4,fetch(s,{method:"GET",headers:o})];case 2:if(!(c=m.sent()).ok)throw console.error("[AB Testing] Failed to get experiments: ".concat(c.status)),new Error("Failed to get experiments: ".concat(c.status));return[4,c.json()];case 3:return d=m.sent(),console.log("[AB Testing] Received response:",d),f=d.data||[],console.log("[AB Testing] Found ".concat(f.length," experiments")),[2,f];case 4:throw h=m.sent(),console.error("Error fetching experiments:",h),h;case 5:return[2]}}
21))}))}},WC={onLoad:function(){console.log("Hey Good Game Blog JavaScript loaded");var e=document.getElementById("mobile-nav-icon");e&&e.addEventListener("click",(function(n){n.preventDefault();var i=document.getElementById("mobile-menu");i&&(i.style.display="block"),document.body.classList.add("showing-mobile-menu");var o=document.createElement("meta");o.name="theme-color",o.content="#fff",o.id="theme-meta",document.getElementsByTagName("head")[0].appendChild(o)}));var t=document.getElementById("close-mobile-menu-button");t&&t.addEventListener("click",(function(n){n.preventDefault();var i=document.getElementById("mobile-menu");i&&(i.style.display="none"),document.body.classList.remove("showing-mobile-menu");var o=document.getElementById("theme-meta");o&&o.remove()}))}},ld="0.2.42",qC=typeof window<"u"&&window.HEYGG_GAME_VERSION||typeof process<"u"&&((Np=T5)===null||Np===void 0?void 0:Np.HEYGG_GAME_VERSION)||void 0,ey=null,$C=(function(){function e(){this.config={},this.isVisible=!1,this.toolbarElement=null,this.experiments=[],this.eventListenerRegistered=!1,this.activeTab=null,this.capturedErrors=[],this.isCapturing=!1}return e.prototype.init=function(t){if(!t.gameKey)throw new Error("[DevToolbar] gameKey is required for initialization");this.config=Tn({enabled:!1,position:"bottom-center",localStorageKeys:["heygg_ab_tests","heygg_jwt","heygg_last_auth_check","heygg_user","heygg_anonymous_id"],experiments:[]},t),t.gameVersion&&typeof window<"u"&&(window.HEYGG_GAME_VERSION=t.gameVersion),this.config.enabled&&(this.setupConsoleCapture(),console.log("[DevToolbar] Initializing developer toolbar for game: ".concat(this.config.gameKey)),this.createToolbar(),this.loadExperiments(),this.setupAnalyticsListener())},e.prototype.show=function(){this.toolbarElement&&(this.toolbarElement.style.display="block",this.isVisible=!0)},e.prototype.hide=function(){this.toolbarElement&&(this.toolbarElement.style.display="none",this.isVisible=!1,this.activeTab=null)},e.prototype.toggle=function(){this.isVisible?this.hide():this.show()},e.prototype.setupConsoleCapture=function(){var t=this,n=console.error,i=console.warn;console.error=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];n.apply(console,o),t.isCapturing||t.captureError("error",o)},console.warn=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];i.apply(console,o),t.isCapturing||t.captureError("warn",o)},window.addEventListener("error",(function(o){var s;t.capturedErrors.push({type:"uncaught",message:o.message||String(o.error),stack:(s=o.error)===null||s===void 0?void 0:s.stack,timestamp:Date.now()}),t.trimErrors()})),window.addEventListener("unhandledrejection",(function(o){var s=o.reason;t.capturedErrors.push({type:"unhandled",message:s?.message||String(s),stack:s?.stack,timestamp:Date.now()}),t.trimErrors()}))},e.prototype.captureError=function(t,n){var i;this.isCapturing=!0;try{var o=n.map((function(l){if(l instanceof Error)return l.message;if(typeof l=="string")return l;try{return JSON.stringify(l)}catch{return String(l)}})).join(" "),s=(i=n.find((function(l){return l instanceof Error})))===null||i===void 0?void 0:i.stack;this.capturedErrors.push({type:t,message:o,stack:s,timestamp:Date.now()}),this.trimErrors()}finally{this.isCapturing=!1}},e.prototype.trimErrors=function(){this.capturedErrors.length>50&&(this.capturedErrors=this.capturedErrors.slice(-50))},e.prototype.createToolbar=function(){var t=document.getElementById("heygg-dev-toolbar");t&&t.remove(),this.toolbarElement=document.createElement("div"),this.toolbarElement.id="heygg-dev-toolbar",this.toolbarElement.innerHTML=this.getToolbarHTML(),this.addStyles(),document.body.appendChild(this.toolbarElement),this.addEventListeners(),this.updateInfoPanel(),this.updateStorageTable()},e.prototype.shouldShowPartnerTab=function(){return ki.isPartnerSession()},e.prototype.getToolbarHTML=function(){var t,n,i,o=this.shouldShowPartnerTab(),s=typeof window<"u"&&((n=(t=window.HeyGoodGame)===null||t===void 0?void 0:t.config)===null||n===void 0?void 0:n.apiBaseUrl)||"https://play.hey.gg",l=typeof localStorage<"u"&&!!localStorage.getItem("heygg_jwt"),c=typeof localStorage<"u"&&!!localStorage.getItem("heygg_anonymous_id"),d=l?"Authenticated":c?"Anonymous":"None",f=typeof window<"u"?window.location.hostname:"",h=window.HEYGG_GAME_VERSION||((i=window.HeyGoodGame)===null||i===void 0?void 0:i.GAME_VERSION)||this.config.gameVersion||"";return` 22 <div class="heygg-dev-bar"> 23 <!-- ââ Panel (expands upward) ââ --> 24 <div class="heygg-dev-bar__panel" id="heygg-dev-bar-panel"> 25 <div class="heygg-dev-bar__panel-inner"> 26 <!-- Events --> 27 <div class="heygg-dev-bar__tab-content" id="tab-events"> 28 <div class="heygg-dev-bar__section"> 29 <div class="heygg-dev-bar__events-header"> 30 <h4>Analytics Events</h4> 31 <div class="heygg-dev-bar__events-controls">
32 <span class="heygg-dev-bar__event-count" id="event-count">0 events</span> 33 <button class="heygg-dev-bar__btn heygg-dev-bar__btn--small" id="clear-events-btn">Clear</button> 34 </div> 35 </div> 36 <div class="heygg-dev-bar__events-list" id="events-list"> 37 <div class="heygg-dev-bar__empty">No events tracked yet</div> 38 </div> 39 </div> 40 </div> 41 42 <!-- A/B Tests --> 43 <div class="heygg-dev-bar__tab-content" id="tab-ab-tests"> 44 <div class="heygg-dev-bar__section"> 45 <h4>Active Experiments</h4> 46 <div id="experiments-list"> 47 <div class="heygg-dev-bar__loading">Loading experiments...</div> 48 </div> 49 </div> 50 </div> 51 52 <!-- Storage --> 53 <div class="heygg-dev-bar__tab-content" id="tab-storage"> 54 <div class="heygg-dev-bar__section"> 55 <h4>Local Storage Keys</h4> 56 <div class="heygg-dev-bar__storage-table" id="storage-keys-table"> 57 <div class="heygg-dev-bar__loading">Loading storage keys...</div> 58 </div> 59 </div> 60 <div class="heygg-dev-bar__section"> 61 <h4>Local Storage Reset</h4> 62 <p>Clear development data</p> 63 <div class="heygg-dev-bar__btn-group"> 64 <button class="heygg-dev-bar__btn heygg-dev-bar__btn--danger" id="reset-storage-only-btn">Reset</button> 65 <button class="heygg-dev-bar__btn heygg-dev-bar__btn--danger" id="reset-storage-btn">Reset & Refresh</button> 66 </div> 67 </div> 68 </div> 69 70 <!-- Partner --> 71 `.concat(o?` 72 <div class="heygg-dev-bar__tab-content" id="tab-partner"> 73 <div class="heygg-dev-bar__section"> 74 <h4>Partner Session Info</h4> 75 <div class="heygg-dev-bar__info-item"> 76 <span class="heygg-dev-bar__info-label">In Iframe:</span> 77 <span class="heygg-dev-bar__info-value" id="partner-iframe-status">Checking...</span> 78 </div> 79 <div class="heygg-dev-bar__info-item"> 80 <span class="heygg-dev-bar__info-label">Partner:</span> 81 <span class="heygg-dev-bar__info-value" id="partner-name-value">None</span> 82 </div> 83 <div class="heygg-dev-bar__info-item"> 84 <span class="heygg-dev-bar__info-label">Partner User ID:</span> 85 <span class="heygg-dev-bar__info-value" id="partner-user-id-value">None</span> 86 </div> 87 <div class="heygg-dev-bar__info-item"> 88 <span class="heygg-dev-bar__info-label">Session ID:</span> 89 <span class="heygg-dev-bar__info-value" id="partner-session-id-value">None</span> 90 </div> 91 <div class="heygg-dev-bar__info-item"> 92 <span class="heygg-dev-bar__info-label">Referrer Domain:</span> 93 <span class="heygg-dev-bar__info-value" id="partner-referrer-value">None</span> 94 </div> 95 <div class="heygg-dev-bar__info-item"> 96 <span class="heygg-dev-bar__info-label">Session Active:</span> 97 <span class="heygg-dev-bar__info-value" id="partner-session-active">No</span> 98 </div> 99 </div> 100 <div class="heygg-dev-bar__section"> 101 <h4>Tracking Actions</h4> 102 <p>Test partner tracking functionality</p> 103 <div class="heygg-dev-bar__btn-group"> 104 <button class="heygg-dev-bar__btn" id="test-page-load-btn">Track Page Load</button> 105 <button class="heygg-dev-bar__btn" id="test-interaction-btn">Track Interaction</button> 106 <button class="heygg-dev-bar__btn" id="test-game-start-btn">Track Game Start</button> 107 </div> 108 <button class="heygg-dev-bar__btn heygg-dev-bar__btn--danger" id="clear-partner-session-btn">Clear Partner Session</button> 109 </div> 110 </div>`:"",` 111 112 <!-- Info (mobile only tab, desktop shows inline chips) --> 113 <div class="heygg-dev-bar__tab-content" id="tab-info"> 114 <div class="heygg-dev-bar__section"> 115 <h4>Version Info</h4> 116 <div class="heygg-dev-bar__info-item">
117 <span class="heygg-dev-bar__info-label">HeyGG Common:</span> 118 <span class="heygg-dev-bar__info-value" id="heygg-common-version-value">Loading...</span> 119 </div> 120 <div class="heygg-dev-bar__info-item"> 121 <span class="heygg-dev-bar__info-label">Game Version:</span> 122 <span class="heygg-dev-bar__info-value" id="game-version-value">Loading...</span> 123 </div> 124 </div> 125 <div class="heygg-dev-bar__section"> 126 <h4>Environment Info</h4> 127 <div class="heygg-dev-bar__info-item"> 128 <span class="heygg-dev-bar__info-label">API Base URL:</span> 129 <span class="heygg-dev-bar__info-value" id="api-base-url-value">Loading...</span> 130 </div> 131 <div class="heygg-dev-bar__info-item"> 132 <span class="heygg-dev-bar__info-label">Auth Status:</span> 133 <span class="heygg-dev-bar__info-value" id="auth-status-value">Checking...</span> 134 </div> 135 <div class="heygg-dev-bar__info-item"> 136 <span class="heygg-dev-bar__info-label">Hostname:</span> 137 <span class="heygg-dev-bar__info-value">`).concat(f,`</span> 138 </div> 139 </div> 140 </div> 141 142 <!-- AI Helper --> 143 <div class="heygg-dev-bar__tab-content" id="tab-ai-helper"> 144 <div class="heygg-dev-bar__section"> 145 <h4>AI Debug Helper</h4> 146 <p>Describe your problem and generate a context-rich prompt for Claude / ChatGPT.</p> 147 <textarea id="ai-helper-input" class="heygg-dev-bar__textarea" rows="4" placeholder="Describe the problem you're seeing..."></textarea> 148 <button class="heygg-dev-bar__btn" id="ai-helper-generate-btn">Generate Prompt</button> 149 </div> 150 <div class="heygg-dev-bar__section" id="ai-helper-output-section" style="display:none"> 151 <div class="heygg-dev-bar__ai-output-header"> 152 <h4>Generated Prompt</h4> 153 <button class="heygg-dev-bar__btn heygg-dev-bar__btn--small" id="ai-helper-copy-btn">Copy to Clipboard</button> 154 </div> 155 <pre class="heygg-dev-bar__ai-output" id="ai-helper-output"></pre> 156 </div> 157 </div> 158 </div> 159 </div> 160 161 <!-- ââ Bottom Bar ââ --> 162 <div class="heygg-dev-bar__bar"> 163 <div class="heygg-dev-bar__bar-left"> 164 <div class="heygg-dev-bar__logo"> 165 <svg width="16" height="16" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> 166 <g clip-path="url(#heygg-bar-clip0)"> 167 <g clip-path="url(#heygg-bar-clip1)"> 168 <path fill-rule="evenodd" clip-rule="evenodd" d="M0.821533 7.23669L7.66169 5.40388L9.49453 12.2441L2.65436 14.0769L0.821533 7.23669ZM3.11259 15.787L4.94552 22.6276L11.7857 20.7948L9.95275 13.9542L3.11259 15.787ZM11.6629 13.496L13.4958 20.3366L20.3361 18.5037L18.5031 11.6631L11.6629 13.496ZM20.2132 11.2049L27.0538 9.37199L26.5956 7.66189L19.755 9.49481L17.9222 2.65459L24.763 0.821599L31.1781 24.7631L15.7869 28.8871L13.954 22.0467L29.345 17.9227L28.8868 16.2126L22.0462 18.0455L20.2132 11.2049ZM12.2439 22.5049L5.40374 24.3377L7.23663 31.1782L14.0768 29.3453L12.2439 22.5049ZM18.0449 9.95303L11.2046 11.7859L9.3718 4.94566L16.2121 3.11281L18.0449 9.95303Z" fill="currentColor"/> 169 <rect x="5.40356" y="24.3376" width="7.08184" height="7.08184" transform="rotate(-15 5.40356 24.3376)" fill="#FF6741"/> 170 <rect x="13.9539" y="22.0466" width="15.9339" height="7.08175" transform="rotate(-15 13.9539 22.0466)" fill="#FF6741"/> 171 </g> 172 </g> 173 <defs> 174 <clipPath id="heygg-bar-clip0"><rect width="32" height="32" fill="white"/></clipPath> 175 <clipPath id="heygg-bar-clip1"><rect width="24.786" height="24.786" fill="white" transform="translate(0.821533 7.23669) rotate(-15)"/></clipPath> 176 </defs> 177 </svg> 178 </div> 179 <div class="heygg-dev-bar__chips" id="heygg-dev-bar-chips">
180 <span class="heygg-dev-bar__chip" title="HeyGG Common version">v`).concat(ld,`</span> 181 `).concat(h?'<span class="heygg-dev-bar__chip heygg-dev-bar__chip--dim" title="Game version">'.concat(this.escapeHtml(h),"</span>"):"",` 182 <span class="heygg-dev-bar__chip heygg-dev-bar__chip--dim" title="API Base URL">`).concat(this.escapeHtml(s.replace(/^https?:\/\//,"")),`</span> 183 <span class="heygg-dev-bar__chip heygg-dev-bar__chip--`).concat(l?"success":c?"warn":"muted",'" title="Auth status"><span class="heygg-dev-bar__dot"></span>').concat(d,`</span> 184 <span class="heygg-dev-bar__chip heygg-dev-bar__chip--dim" title="Hostname">`).concat(this.escapeHtml(f),`</span> 185 </div> 186 <div class="heygg-dev-bar__separator"></div> 187 </div> 188 <div class="heygg-dev-bar__bar-right" id="heygg-dev-bar-tabs"> 189 <button class="heygg-dev-bar__tab-btn heygg-dev-bar__tab-btn--info-mobile" data-tab="info" title="Info"> 190 <svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg> 191 </button> 192 <button class="heygg-dev-bar__tab-btn" data-tab="events"> 193 <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg> 194 Events 195 </button> 196 <button class="heygg-dev-bar__tab-btn" data-tab="ab-tests"> 197 <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 3h5v5"/><path d="M8 3H3v5"/><path d="M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3"/><path d="m15 9 6-6"/></svg> 198 A/B Tests 199 </button> 200 <button class="heygg-dev-bar__tab-btn" data-tab="storage"> 201 <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5v14a9 3 0 0 0 18 0V5"/><path d="M3 12a9 3 0 0 0 18 0"/></svg> 202 Storage 203 </button> 204 `).concat(o?`<button class="heygg-dev-bar__tab-btn" data-tab="partner"> 205 <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg> 206 Partner 207 </button>`:"",` 208 <button class="heygg-dev-bar__tab-btn heygg-dev-bar__tab-btn--ai" data-tab="ai-helper"> 209 <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a4 4 0 0 0-4 4v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2h-2V6a4 4 0 0 0-4-4z"/><circle cx="9" cy="14" r="1"/><circle cx="15" cy="14" r="1"/></svg> 210 AI 211 </button> 212 </div> 213 </div> 214 </div> 215 `)},e.prototype.addStyles=function(){if(!document.getElementById("heygg-dev-bar-styles")){var t=document.createElement("style");t.id="heygg-dev-bar-styles",t.textContent=this.getStylesCSS(),document.head.appendChild(t)}},e.prototype.getStylesCSS=function(){return` 216/* â Highlight.js (minimal GitHub theme) â */ 217.hljs{color:#24292e;background:#fff} 218.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49} 219.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1} 220.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5} 221.hljs-string,.hljs-meta .hljs-string{color:#032f62} 222.hljs-comment{color:#6a737d} 223.hljs-deletion{color:#b31d28} 224.hljs-addition{color:#22863a} 225 226/* â Reset â */ 227#heygg-dev-toolbar{margin:0;padding:0} 228#heygg-dev-toolbar *{box-sizing:border-box} 229#heygg-dev-toolbar button{font-family:inherit;margin:0} 230 231/* â Bottom Bar â */ 232.heygg-dev-bar{ 233 position:fixed;bottom:0;left:0;right:0;
234 z-index:11000; 235 font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; 236 font-size:13px;line-height:1.4; 237} 238.heygg-dev-bar__bar{ 239 display:flex;align-items:center;justify-content:space-between; 240 height:36px; 241 background:#0c0a09; 242 border-top:1px solid rgba(255,255,255,0.06); 243 color:#a3a3a3; 244 padding:0 16px;gap:8px; 245} 246.heygg-dev-bar__bar-left{ 247 display:flex;align-items:center;gap:10px; 248 min-width:0;overflow:hidden; 249} 250.heygg-dev-bar__bar-right{ 251 display:flex;align-items:center;gap:4px; 252 flex-shrink:0; 253 overflow-x:auto; 254 -webkit-overflow-scrolling:touch; 255 background:rgba(255,255,255,0.04); 256 border-radius:6px; 257 padding:3px 8px; 258} 259.heygg-dev-bar__logo{ 260 flex-shrink:0;display:flex;align-items:center;color:#FF6741; 261 opacity:0.9; 262} 263 264/* Separator between chips and tabs */ 265.heygg-dev-bar__separator{ 266 width:1px;height:16px; 267 background:rgba(255,255,255,0.08); 268 flex-shrink:0; 269 margin:0 4px; 270} 271 272/* Chips (desktop info) */ 273.heygg-dev-bar__chips{ 274 display:flex;align-items:center;gap:6px; 275 overflow:hidden;flex-wrap:nowrap; 276} 277.heygg-dev-bar__chip{ 278 display:inline-flex;align-items:center;gap:5px; 279 font-family:'SF Mono','Monaco','Menlo',monospace; 280 font-size:11px; 281 color:#d4d4d4; 282 padding:2px 8px; 283 border-radius:4px; 284 white-space:nowrap; 285 max-width:220px; 286 overflow:hidden; 287 text-overflow:ellipsis; 288 letter-spacing:-0.01em; 289} 290.heygg-dev-bar__chip--dim{color:#737373} 291.heygg-dev-bar__chip--success{color:#4ade80} 292.heygg-dev-bar__chip--warn{color:#fb923c} 293.heygg-dev-bar__chip--muted{color:#525252} 294 295/* Status dot inside chips */ 296.heygg-dev-bar__dot{ 297 width:6px;height:6px;border-radius:50%; 298 flex-shrink:0; 299 background:currentColor; 300 box-shadow:0 0 6px currentColor; 301} 302 303/* Tab buttons in bar */ 304.heygg-dev-bar__tab-btn{ 305 background:transparent;border:none; 306 color:#737373; 307 padding:6px 14px;cursor:pointer; 308 font-size:11px;font-weight:500; 309 white-space:nowrap; 310 border-radius:4px; 311 transition:color .12s,background .12s; 312 display:inline-flex;align-items:center;gap:5px; 313 letter-spacing:0.01em; 314} 315.heygg-dev-bar__tab-btn svg{opacity:0.5;transition:opacity .12s;flex-shrink:0} 316.heygg-dev-bar__tab-btn:hover{color:#e5e5e5;background:rgba(255,255,255,0.06)} 317.heygg-dev-bar__tab-btn:hover svg{opacity:0.85} 318.heygg-dev-bar__tab-btn--active{ 319 color:#fff; 320 background:rgba(255,255,255,0.08); 321} 322.heygg-dev-bar__tab-btn--active svg{opacity:1} 323.heygg-dev-bar__tab-btn--ai{color:#a78bfa} 324.heygg-dev-bar__tab-btn--ai:hover{color:#c4b5fd;background:rgba(167,139,250,0.08)} 325.heygg-dev-bar__tab-btn--ai.heygg-dev-bar__tab-btn--active{color:#c4b5fd;background:rgba(167,139,250,0.12)} 326 327/* Info tab button hidden on desktop, shown on mobile */ 328.heygg-dev-bar__tab-btn--info-mobile{display:none} 329 330/* â Panel â */ 331.heygg-dev-bar__panel{ 332 background:#fafaf9; 333 border-top:1px solid #e7e5e4; 334 box-shadow:0 -8px 32px rgba(0,0,0,0.08),0 -1px 0 rgba(0,0,0,0.04); 335 max-height:0; 336 overflow:hidden; 337 transition:max-height .25s cubic-bezier(0.4,0,0.2,1); 338} 339.heygg-dev-bar__panel--open{ 340 max-height:60vh; 341} 342.heygg-dev-bar__panel-inner{ 343 max-width:860px;margin:0 auto; 344 max-height:60vh;overflow-y:auto; 345 padding:20px 24px; 346} 347 348/* Tab content */ 349.heygg-dev-bar__tab-content{display:none} 350.heygg-dev-bar__tab-content--active{display:block} 351 352/* â Shared inner styles â */ 353.heygg-dev-bar__section{margin-bottom:20px} 354.heygg-dev-bar__section:last-child{margin-bottom:0} 355.heygg-dev-bar__section h4{ 356 margin:0 0 12px 0;color:#1c1917; 357 font-size:11px;font-weight:600; 358 letter-spacing:0.05em; 359 text-transform:uppercase; 360 color:#a8a29e; 361} 362.heygg-dev-bar__section p{margin:0 0 10px 0;color:#78716c;font-size:13px} 363 364.heygg-dev-bar__loading{text-align:center;color:#a8a29e;padding:24px;font-size:12px} 365.heygg-dev-bar__empty{text-align:center;color:#a8a29e;padding:24px;font-style:italic;font-size:12px} 366 367/* Info items */ 368.heygg-dev-bar__info-item{ 369 display:flex;justify-content:space-between;align-items:center; 370 padding:8px 0;border-bottom:1px solid #f5f5f4; 371} 372.heygg-dev-bar__info-item:last-child{border-bottom:none} 373.heygg-dev-bar__info-label{font-weight:500;color:#78716c;font-size:12px} 374.heygg-dev-bar__info-value{ 375 font-family:'SF Mono','Monaco','Menlo',monospace; 376 font-size:11px;color:#1c1917; 377 background:#f5f5f4;padding:3px 8px;border-radius:4px; 378 max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; 379} 380.heygg-dev-bar__info-value--success{background:rgba(74,222,128,0.1);color:#15803d} 381.heygg-dev-bar__info-value--warning{background:rgba(251,146,60,0.1);color:#c2410c} 382 383/* Buttons */ 384.heygg-dev-bar__btn{ 385 padding:7px 14px; 386 border:1px solid #d6d3d1; 387 background:#fff;color:#1c1917; 388 border-radius:6px;cursor:pointer; 389 font-weight:500;font-size:12px; 390 transition:all .12s; 391 box-shadow:0 1px 2px rgba(0,0,0,0.04); 392} 393.heygg-dev-bar__btn:hover{ 394 background:#f5f5f4;border-color:#a8a29e; 395 box-shadow:0 1px 3px rgba(0,0,0,0.08); 396} 397.heygg-dev-bar__btn--small{padding:4px 10px;font-size:11px} 398.heygg-dev-bar__btn--danger{ 399 background:#fff;color:#dc2626;border-color:#fca5a5; 400} 401.heygg-dev-bar__btn--danger:hover{ 402 background:#fef2f2;border-color:#f87171; 403}
404.heygg-dev-bar__btn-group{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap} 405.heygg-dev-bar__btn-group .heygg-dev-bar__btn{flex:1;min-width:120px} 406 407/* Experiments */ 408.heygg-dev-bar__experiment{ 409 background:#fff;border:1px solid #e7e5e4;border-radius:8px; 410 padding:12px 14px;margin-bottom:8px; 411} 412.heygg-dev-bar__experiment:last-child{margin-bottom:0} 413.heygg-dev-bar__experiment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px} 414.heygg-dev-bar__experiment-name{ 415 font-weight:600;color:#1c1917;font-size:13px; 416 font-family:'SF Mono','Monaco','Menlo',monospace; 417} 418.heygg-dev-bar__experiment-status{font-size:10px;padding:2px 8px;border-radius:10px;font-weight:600;text-transform:uppercase;letter-spacing:0.03em} 419.heygg-dev-bar__experiment-status--active{background:rgba(74,222,128,0.1);color:#15803d} 420.heygg-dev-bar__experiment-status--inactive{background:rgba(220,38,38,0.06);color:#dc2626} 421.heygg-dev-bar__current-variant{font-size:12px;color:#78716c;margin-bottom:8px} 422.heygg-dev-bar__variant-buttons{display:flex;gap:4px;flex-wrap:wrap} 423.heygg-dev-bar__variant-btn{ 424 padding:4px 10px; 425 border:1px solid #d6d3d1;background:#fff;color:#44403c; 426 border-radius:4px;cursor:pointer;font-size:11px;font-weight:500; 427 transition:all .12s; 428} 429.heygg-dev-bar__variant-btn:hover{background:#f5f5f4;border-color:#a8a29e} 430.heygg-dev-bar__variant-btn--current{ 431 background:#1c1917;color:#fff;border-color:#1c1917; 432} 433 434/* Events */ 435.heygg-dev-bar__events-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px} 436.heygg-dev-bar__events-controls{display:flex;align-items:center;gap:8px} 437.heygg-dev-bar__event-count{ 438 font-size:11px;color:#a8a29e;font-weight:500; 439 font-family:'SF Mono','Monaco','Menlo',monospace; 440} 441.heygg-dev-bar__events-list{max-height:320px;overflow-y:auto} 442.heygg-dev-bar__event{ 443 background:#fff;border:1px solid #e7e5e4;border-radius:6px; 444 padding:10px 12px;margin-bottom:6px;font-size:12px; 445} 446.heygg-dev-bar__event:last-child{margin-bottom:0} 447.heygg-dev-bar__event-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px} 448.heygg-dev-bar__event-name{font-weight:600;color:#1c1917;font-size:12px;font-family:'SF Mono','Monaco','Menlo',monospace} 449.heygg-dev-bar__event-time{ 450 font-size:10px;color:#a8a29e; 451 font-family:'SF Mono','Monaco','Menlo',monospace; 452} 453.heygg-dev-bar__event-attributes{ 454 background:#fafaf9;border:1px solid #f5f5f4;border-radius:4px; 455 padding:8px 10px; 456 font-family:'SF Mono','Monaco','Menlo',monospace; 457 font-size:11px;line-height:1.4;color:#44403c; 458 white-space:pre-wrap;max-height:120px;overflow-y:auto; 459} 460 461/* Storage table */ 462.heygg-dev-bar__storage-table{margin-top:8px} 463.heygg-dev-bar__table{ 464 width:100%;border-collapse:collapse; 465 background:#fff; 466 border-radius:8px;overflow:hidden;border:1px solid #e7e5e4; 467} 468.heygg-dev-bar__table th,.heygg-dev-bar__table td{ 469 text-align:left;padding:8px 12px;border-bottom:1px solid #f5f5f4; 470} 471.heygg-dev-bar__table th{ 472 background:#fafaf9;font-weight:600;font-size:10px; 473 text-transform:uppercase;letter-spacing:.06em;color:#a8a29e; 474 position:sticky;top:0;z-index:1; 475} 476.heygg-dev-bar__table tbody tr:hover{background:#fafaf9} 477.heygg-dev-bar__table tbody tr:last-child td{border-bottom:none} 478.heygg-dev-bar__key{ 479 font-family:'SF Mono','Monaco','Menlo',monospace; 480 font-weight:600;color:#1c1917;width:40%;min-width:180px;white-space:nowrap;font-size:11px; 481} 482.heygg-dev-bar__value{ 483 font-family:'SF Mono','Monaco','Menlo',monospace; 484 color:#78716c;width:60%;word-break:break-word; 485 white-space:nowrap;overflow:hidden;text-overflow:ellipsis; 486 max-width:350px;font-size:11px;line-height:1.3; 487} 488.heygg-dev-bar__value--expanded{ 489 white-space:pre-wrap;overflow:visible;text-overflow:unset;max-width:none; 490 background:#fafaf9;padding:8px;border-radius:4px;margin:2px 0; 491} 492.heygg-dev-bar__value[data-full-value]:not([data-full-value=""]){ 493 cursor:pointer;transition:all .15s;position:relative; 494} 495.heygg-dev-bar__value[data-full-value]:not([data-full-value=""]):hover{ 496 color:#1c1917;background:#f5f5f4;border-radius:3px; 497} 498.heygg-dev-bar__null{color:#d6d3d1;font-style:italic;font-weight:400} 499 500/* Code & copy */ 501.heygg-dev-bar__code-container,.heygg-dev-bar__value-container{ 502 position:relative;padding-top:24px;margin:2px 0; 503} 504.heygg-dev-bar__copy-btn{ 505 position:absolute;top:2px;right:2px; 506 background:#fff; 507 border:1px solid #e7e5e4;border-radius:4px; 508 padding:3px 8px; 509 font-size:11px;font-weight:500; 510 cursor:pointer;transition:all .12s;z-index:2; 511 color:#78716c; 512} 513.heygg-dev-bar__copy-btn:hover{background:#f5f5f4;border-color:#a8a29e;color:#1c1917} 514.heygg-dev-bar__hover-copy-btn{ 515 position:absolute;top:50%;right:4px;transform:translateY(-50%); 516 background:#fff;border:1px solid #e7e5e4;border-radius:4px; 517 padding:2px 6px;font-size:10px;font-weight:500; 518 cursor:pointer;transition:all .12s; 519 z-index:2;box-shadow:0 1px 3px rgba(0,0,0,.06); 520 color:#78716c; 521} 522.heygg-dev-bar__hover-copy-btn:hover{background:#f5f5f4;border-color:#a8a29e;color:#1c1917;transform:translateY(-50%)} 523.heygg-dev-bar__code{ 524 margin:0;padding:10px 12px; 525 background:#fff;border:1px solid #e7e5e4; 526 border-radius:6px; 527 font-family:'SF Mono','Monaco','Menlo',monospace; 528 font-size:11px;line-height:1.4;white-space:pre-wrap;overflow:auto;max-height:300px; 529} 530.heygg-dev-bar__raw-value{ 531 display:block;padding:10px 12px; 532 background:#fff;border:1px solid #e7e5e4; 533 border-radius:6px; 534 font-family:'SF Mono','Monaco','Menlo',monospace; 535 font-size:11px;line-height:1.4;white-space:pre-wrap;word-break:break-word; 536} 537 538/* â AI Helper â */ 539.heygg-dev-bar__textarea{ 540 width:100%;padding:10px 12px; 541 border:1px solid #d6d3d1;border-radius:8px; 542 font-family:'SF Mono','Monaco','Menlo',monospace; 543 font-size:12px;resize:vertical; 544 margin-bottom:10px; 545 background:#fff;
546 color:#1c1917; 547 transition:border-color .12s,box-shadow .12s; 548} 549.heygg-dev-bar__textarea:focus{ 550 outline:none;border-color:#a8a29e; 551 box-shadow:0 0 0 3px rgba(168,162,158,0.1); 552} 553.heygg-dev-bar__textarea::placeholder{color:#d6d3d1} 554.heygg-dev-bar__ai-output-header{ 555 display:flex;justify-content:space-between;align-items:center;margin-bottom:10px; 556} 557.heygg-dev-bar__ai-output{ 558 background:#fff;border:1px solid #e7e5e4;border-radius:8px; 559 padding:14px 16px;font-size:11px;line-height:1.5; 560 max-height:350px;overflow-y:auto;white-space:pre-wrap;word-break:break-word; 561 font-family:'SF Mono','Monaco','Menlo',monospace; 562 color:#44403c; 563} 564 565/* â Mobile (<769px) â */ 566@media(max-width:768px){ 567 .heygg-dev-bar__chips{display:none} 568 .heygg-dev-bar__separator{display:none} 569 .heygg-dev-bar__tab-btn--info-mobile{display:inline-flex} 570 .heygg-dev-bar__bar-right{ 571 overflow-x:auto; 572 -ms-overflow-style:none;scrollbar-width:none; 573 } 574 .heygg-dev-bar__bar-right::-webkit-scrollbar{display:none} 575 .heygg-dev-bar__panel-inner{padding:14px 16px} 576} 577`},e.prototype.addEventListeners=function(){var t,n,i,o,s,l,c=this,d=(t=this.toolbarElement)===null||t===void 0?void 0:t.querySelectorAll(".heygg-dev-bar__tab-btn");d?.forEach((function(f){f.addEventListener("click",(function(){var h=f.getAttribute("data-tab");h&&c.handleTabClick(h)}))})),(n=document.getElementById("reset-storage-btn"))===null||n===void 0||n.addEventListener("click",(function(){return c.resetLocalStorage(!0)})),(i=document.getElementById("reset-storage-only-btn"))===null||i===void 0||i.addEventListener("click",(function(){return c.resetLocalStorage(!1)})),(o=document.getElementById("clear-events-btn"))===null||o===void 0||o.addEventListener("click",(function(){return c.clearEvents()})),this.shouldShowPartnerTab()&&this.addPartnerEventListeners(),(s=document.getElementById("ai-helper
577-generate-btn"))===null||s===void 0||s.addEventListener("click",(function(){return c.generateAIPrompt()})),(l=document.getElementById("ai-helper-copy-btn"))===null||l===void 0||l.addEventListener("click",(function(){return c.copyAIPrompt()}))},e.prototype.handleTabClick=function(t){this.activeTab===t?this.closePanel():this.openPanel(t)},e.prototype.openPanel=function(t){var n,i,o;this.activeTab=t;var s=document.getElementById("heygg-dev-bar-panel");s?.classList.add("heygg-dev-bar__panel--open");var l=(n=this.toolbarElement)===null||n===void 0?void 0:n.querySelectorAll(".heygg-dev-bar__tab-btn");l?.forEach((function(h){return h.classList.remove("heygg-dev-bar__tab-btn--active")}));var c=(i=this.toolbarElement)===null||i===void 0?void 0:i.querySelector('[data-tab="'.concat(t,'"]'));c?.classList.add("heygg-dev-bar__tab-btn--active");var d=(o=this.toolbarElement)===null||o===void 0?void 0:o.querySelectorAll(".heygg-dev-bar__tab-content");d?.forEach((function(h){return h.classList.remove("heygg-dev-bar__tab-content--active")}));var f=document.getElementById("tab-".concat(t));f?.classList.add("heygg-dev-bar__tab-content--active"),t==="storage"&&this.updateStorageTable(),t==="events"&&this.updateEventsList(),t==="partner"&&this.updatePartnerInfo(),t==="info"&&this.updateInfoPanel()},e.prototype.closePanel=function(){var t;this.activeTab=null;var n=document.getElementById("heygg-dev-bar-panel");n?.classList.remove("heygg-dev-bar__panel--open");var i=(t=this.toolbarElement)===null||t===void 0?void 0:t.querySelectorAll(".heygg-dev-bar__tab-btn");i?.forEach((function(o){return o.classList.remove("heygg-dev-bar__tab-btn--active")}))},e.prototype.generateAIPrompt=function(){var t,n,i,o=document.getElementById("ai-helper
577-input"),s=document.getElementById("ai-helper-output-section"),l=document.getElementById("ai-helper-output");if(o&&s&&l){var c=o.value.trim(),d=((n=(t=window.HeyGoodGame)===null||t===void 0?void 0:t.config)===null||n===void 0?void 0:n.apiBaseUrl)||"https://play.hey.gg",f=!!localStorage.getItem("heygg_jwt"),h=!!localStorage.getItem("heygg_anonymous_id"),g=f?"Authenticated":h?"Anonymous":"None",w=window.HEYGG_GAME_VERSION||((i=window.HeyGoodGame)===null||i===void 0?void 0:i.GAME_VERSION)||this.config.gameVersion||"Not set",m="";if(this.capturedErrors.length>0){var b=this.capturedErrors.map((function(D){var V=new Date(D.timestamp).toISOString(),q="[".concat(D.type.toUpperCase(),"] ").concat(V," â ").concat(D.message);return D.stack&&(q+=` 578`.concat(D.stack)),q})).join(` 579 580`);m="## Console Errors & Warnings (".concat(this.capturedErrors.length,")\n```\n").concat(b,"\n```\n\n")}var _=this.config.localStorageKeys||[],C="";if(_.length>0){var R=_.map((function(D){var V=localStorage.getItem(D);if(V===null)return"- **".concat(D,"**: _null_");var q=V.length>500?V.substring(0,500)+"...[truncated]":V;return"- **".concat(D,"**: `").concat(q,"`")})).join(` 581`);C=`## localStorage State 582`.concat(R,` 583 584`)}var I="";if(this.experiments.length>0){var k=this.experiments.map((function(D){return"- **".concat(D.key,"**: variant=").concat(D.currentVariant,", status=").concat(D.status)})).join(` 585`);I=`## A/B Test State 586`.concat(k,` 587 588`)}var A="";if(this.shouldShowPartnerTab()){var L=ki.getSession();A=`## Partner Session 589- Partner: `.concat(L?.partner||"None",` 590- Session active: `).concat(ki.isPartnerSession(),` 591 592`)}var j="# Debug Context â ".concat(this.config.gameKey||"HeyGG Game",` 593 594`).concat(c?`## Problem Description 595`.concat(c,` 596 597`):"",`## Environment 598- **Game Key**: `).concat(this.config.gameKey,` 599- **HeyGG Common Version**: `).concat(ld,` 600- **Game Version**: `).concat(w,` 601- **API Base URL**: `).concat(d,` 602- **Auth Status**: `).concat(g,` 603- **Hostname**: `).concat(window.location.hostname,` 604- **Full URL**: `).concat(window.location.href,` 605- **User Agent**: `).concat(navigator.userAgent,` 606 607`).concat(m).concat(C).concat(I).concat(A,`--- 608Please help me debug this issue. Analyze the context above and suggest solutions.`);l.textContent=j,s.style.display="block"}},e.prototype.copyAIPrompt=function(){return Et(this,void 0,void 0,(function(){var t,n,i,o,s;return kt(this,(function(l){switch(l.label){case 0:if(t=document.getElementById("ai-helper
608-output"),n=document.getElementById("ai-helper-copy-btn"),!t||!n)return[2];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(t.textContent||"")];case 2:return l.sent(),i=n.textContent,n.textContent="Copied!",setTimeout((function(){n.textContent=i}),1500),[3,4];case 3:return l.sent(),(o=document.createRange()).selectNodeContents(t),(s=window.getSelection())==null||s.removeAllRanges(),s?.addRange(o),[3,4];case 4:return[2]}}))}))},e.prototype.loadExperiments=function(){return Et(this,void 0,void 0,(function(){var t,n,i,o,s,l,c,d,f,h,g,w,m;return kt(this,(function(b){switch(b.label){case 0:if(!localStorage.getItem("heygg_jwt"))return console.log("[DevToolbar] User not authenticated (no JWT token), skipping experiment loading"),this.experiments=[],this.renderEmptyExperiments(),[2];b.label=1;case 1:return b.trys.push([1,15,,16]),console.log("[DevToolbar] Loading all experiments from API"),[4,sd.getAllExperiments(this.config.gameKey)];case 2:t=b.sent(),n=[],i=0,o=t,b.label=3;case 3:if(!(i<o.length))return[3,8];s=o[i],b.label=4;case 4:return b.trys.push([4,6,,7]),c=s.name,[4,sd.getVariant(c,"default")];case 5:return g=b.sent(),n.push({key:c,currentVariant:g.name,availableVariants:s.variants.map((function(_){return _.name})),status:s.status==="active"?"active":"inactive"}),[3,7];case 6:return l=b.sent(),c=s.name,console.warn("[DevToolbar] Failed to get current variant for ".concat(c,":"),l),n.push({key:c,currentVariant:"unknown",availableVariants:s.variants.map((function(_){return _.name})),status:s.status==="active"?"active":"inactive"}),[3,7];case 7:return i++,[3,3];case 8:if(!(n.length===0&&this.config.experiments&&this.config.experiments.length>0))return[3,14];console.log("[DevToolbar] No experiments from API, using configured experiments:",this.config.experiments),d=0,f=this.config.experiments,b.label=9;case 9:if(!(d<f.length))return[3,14];h=f[d],b.label=10;case 10:return b.trys.push([10,12,,13]),[4,sd.getVariant(h,"default")];case 11:return g=b.sent(),n.push({key:h,currentVariant:g.name,availableVariants:this.getKnownVariants(h),status:"active"}),[3,13];case 12:return w=b.sent(),console.warn("[DevToolbar] Failed to load experiment ".concat(h,":"),w),n.push({key:h,currentVariant:"unknown",availableVariants:this.getKnownVariants(h),status:"inactive"}),[3,13];case 13:return d++,[3,9];case 14:return this.experiments=n,this.renderExperiments(),[3,16];case 15:return m=b.sent(),console.error("[DevToolbar] Failed to load experiments from API:",m),m&&(m.toString().includes("401")||m.toString().includes("403")||m.toString().includes("Unauthorized"))&&console.log("[DevToolbar] Authentication error detected, showing empty experiments"),this.experiments=[],this.renderEmptyExperiments(),[3,16];case 16:return[2]}}
608))}))},e.prototype.getKnownVariants=function(t){return["default","control","treatment","variant_a","variant_b"]},e.prototype.renderExperiments=function(){var t=this,n=document.getElementById("experiments-list");n&&(this.experiments.length!==0?(n.innerHTML=this.experiments.map((function(i){return` 609 <div class="heygg-dev-bar__experiment"> 610 <div class="heygg-dev-bar__experiment-header"> 611 <div class="heygg-dev-bar__experiment-name">`.concat(i.key,`</div> 612 <div class="heygg-dev-bar__experiment-status heygg-dev-bar__experiment-status--`).concat(i.status,`"> 613 `).concat(i.status,` 614 </div> 615 </div> 616 <div class="heygg-dev-bar__current-variant"> 617 Current: <strong>`).concat(i.currentVariant,`</strong> 618 </div> 619 <div class="heygg-dev-bar__variant-buttons"> 620 `).concat((i.availableVariants||[]).map((function(o){return` 621 <button 622 class="heygg-dev-bar__variant-btn `.concat(o===i.currentVariant?"heygg-dev-bar__variant-btn--current":"",`" 623 data-experiment="`).concat(i.key,`" 624 data-variant="`).concat(o,`" 625 > 626 `).concat(o,` 627 </button> 628 `)})).join(""),` 629 </div> 630 </div> 631 `)})).join(""),n.querySelectorAll(".heygg-dev-bar__variant-btn").forEach((function(i){i.addEventListener("click",(function(o){var s=o.target,l=s.getAttribute("data-experiment"),c=s.getAttribute("data-variant");l&&c&&t.switchToVariant(l,c)}))}))):this.renderEmptyExperiments())},e.prototype.renderEmptyExperiments=function(){var t=document.getElementById("experiments-list");t&&(t.innerHTML='<div class="heygg-dev-bar__empty">No experiments configured</div>')},e.prototype.switchToVariant=function(t,n){console.log("[DevToolbar] Switching to variant ".concat(n," for experiment ").concat(t));var i=new URL(window.location.href);i.searchParams.set("ab[".concat(t,"]"),n),window.location.href=i.toString()},e.prototype.resetLocalStorage=function(t){t===void 0&&(t=!0),console.log("[DevToolbar] Resetting local storage"),this.config.localStorageResetCallback?this.config.localStorageResetCallback():((this.config.localStorageKeys||[]).forEach((function(n){localStorage.removeItem(n),console.log("[DevToolbar] Removed localStorage key: ".concat(n))})),this.updateStorageTable(),t&&window.location.reload())},e.prototype.setExperimentVariants=function(t,n){var i=this.experiments.find((function(o){return o.key===t}));i&&(i.availableVariants=n,this.renderExperiments())},e.prototype.addLocalStorageKeys=function(t){this.config.localStorageKeys=Zs(Zs([],this.config.localStorageKeys||[],!0),t)},e.prototype.updateInfoPanel=function(){var t,n,i,o,s=document.getElementById("heygg-common-version-value");s&&(s.textContent=ld,s.className="heygg-dev-bar__info-value heygg-dev-bar__info-value--success");var l=document.getElementById("game-version-value");if(l){var c=window.HEYGG_GAME_VERSION||((t=window.HeyGoodGame)===null||t===void 0?void 0:t.GAME_VERSION)||typeof process<"u"&&((n=T5)===null||n===void 0?void 0:n.HEYGG_GAME_VERSION)||this.config.gameVersion;c?(l.textContent=c,l.className="heygg-dev-bar__info-value heygg-dev-bar__info-value--success"):(l.textContent="Not set",l.className="heygg-dev-bar__info-value heygg-dev-bar__info-value--warning")}var d=document.getElementById("api-base-url-value");if(d){var f=((o=(i=window.HeyGoodGame)===null||i===void 0?void 0:i.config)===null||o===void 0?void 0:o.apiBaseUrl)||"https://play.hey.gg";d.textContent=f,f.includes("localhost")||f.includes("127.0.0.1")||f.includes("dev.")||f.includes("staging.")?d.className="heygg-dev-bar__info-value heygg-dev-bar__info-value--warning":d.className="heygg-dev-bar__info-value heygg-dev-bar__info-value--success"}var h=document.getElementById("auth-status-value");if(h){var g=!!localStorage.getItem("heygg_jwt"),w=!!localStorage.getItem("heygg_anonymous_id");g?(h.textContent="Authenticated",h.className="heygg-dev-bar__info-value heygg-dev-bar__info-value--success"):w?(h.textContent="Anonymous",h.className="heygg-dev-bar__info-value heygg-dev-bar__info-value--warning"):(h.textContent="None",h.className="heygg-dev-bar__info-value")}},e.prototype.updatePartnerInfo=function(){var t=document.getElementById("partner-iframe-status");if(t){var n=!1;try{n=window.self!==window.top}catch{n=!0}t.textContent=n?"Yes":"No",t.className="heygg-dev-bar__info-value".concat(n?" heygg-dev-bar__info-value--success":"")}var i=ki.getSession(),o=ki.isPartnerSession(),s=document.getElementById("partner-session-active");s&&(s.textContent=o?"Yes":"No",s.className="heygg-dev-bar__info-value".concat(o?" heygg-dev-bar__info-value--success":""));var l=document.getElementById("partner-name-value");l&&(l.textContent=i?.partner||"None",l.className="heygg-dev-bar__info-value".concat(i?.partner?" heygg-dev-bar__info-value--success":""));var c=document.getElementById("partner-user-id-value");c&&(c.textContent=i?.partner_user_id||"None",c.className="heygg-dev-bar__info-value".concat(i?.partner_user_id?" heygg-dev-bar__info-value--success":""));var d=document.getElementById("partner-session-id-value");d&&(i?.session_id?(d.textContent=i.session_id.substring(0,8)+"...",d.title="Full session ID: ".concat(i.session_id),d.className="heygg-dev-bar__info-value heygg-dev-bar__info-value--success"):(d.textContent="None",d.title="",d.className="heygg-dev-bar__info-value"));var f=document.getElementById("partner-referrer-value");f&&(f.textContent=i?.referrer_domain||"None",f.className="heygg-dev-bar__info-value".concat(i?.referrer_domain?" heygg-dev-bar__info-value--success":""))},e.prototype.addPartnerEventListeners=function(){var t,n,i,o,s=this;(t=document.getElementById("test-page-load-btn"))===null||t===void 0||t.addEventListener("click",(function(){return Et(s,void 0,void 0,(function(){var l;return kt(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,ki.trackPartnerGameStart({trigger:"page_load",gameKey:this.config.gameKey})];case 1:return c.sent(),this.showTrackingResult("Page Load tracking sent successfully"),[3,3];case 2:return l=c.sent(),this.showTrackingResult("Page Load tracking failed: "+l,!0),[3,3];case 3:return[2]}}
631))}))})),(n=document.getElementById("test-interaction-btn"))===null||n===void 0||n.addEventListener("click",(function(){return Et(s,void 0,void 0,(function(){var l;return kt(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,ki.trackPartnerGameStart({trigger:"first_interaction",gameKey:this.config.gameKey})];case 1:return c.sent(),this.showTrackingResult("Interaction tracking sent successfully"),[3,3];case 2:return l=c.sent(),this.showTrackingResult("Interaction tracking failed: "+l,!0),[3,3];case 3:return[2]}}))}))})),(i=document.getElementById("test-game-start-btn"))===null||i===void 0||i.addEventListener("click",(function(){return Et(s,void 0,void 0,(function(){var l;return kt(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,ki.trackPartnerGameStart({trigger:"game_start",gameKey:this.config.gameKey,gameId:"dev-test-"+Date.now(),level:"test"})];case 1:return c.sent(),this.showTrackingResult("Game Start tracking sent successfully"),[3,3];case 2:return l=c.sent(),this.showTrackingResult("Game Start tracking failed: "+l,!0),[3,3];case 3:return[2]}}
631))}))})),(o=document.getElementById("clear-partner-session-btn"))===null||o===void 0||o.addEventListener("click",(function(){ki.clearSession(),s.showTrackingResult("Partner session cleared"),s.updatePartnerInfo()}))},e.prototype.showTrackingResult=function(t,n){n===void 0&&(n=!1);var i=document.getElementById("partner-tracking-result");if(!i){(i=document.createElement("div")).id="partner-tracking-result",i.style.cssText=` 632 margin-top:12px;padding:8px 12px;border-radius:4px; 633 font-size:12px;font-weight:500;transition:opacity .3s; 634 `;var o=document.querySelector("#tab-partner .heygg-dev-bar__section:last-child");o?.appendChild(i)}i.textContent=t,i.style.backgroundColor=n?"#fee2e2":"#dcfce7",i.style.color=n?"#dc2626":"#16a34a",i.style.border=n?"1px solid #fca5a5":"1px solid #86efac",i.style.opacity="1",setTimeout((function(){i&&(i.style.opacity="0",setTimeout((function(){var s;(s=i?.parentNode)===null||s===void 0||s.removeChild(i)}),300))}),5e3)},e.prototype.updateStorageTable=function(){var t=this,n=document.getElementById("storage-keys-table");if(n){var i=this.config.localStorageKeys||[];if(i.length!==0){var o=` 635 <table class="heygg-dev-bar__table"> 636 <thead><tr><th>Key</th><th>Value</th></tr></thead> 637 <tbody> 638 `;i.forEach((function(l){var c=localStorage.getItem(l),d=c?t.escapeHtml(c):'<span class="heygg-dev-bar__null">null</span>',f=c&&c.length>50?t.escapeHtml(c.substring(0,50))+"...":d;o+=` 639 <tr> 640 <td class="heygg-dev-bar__key">`.concat(t.escapeHtml(l),`</td> 641 <td class="heygg-dev-bar__value" data-full-value="`).concat(c?encodeURIComponent(c):"",'" title="').concat(c&&c.length>50?"Click to expand":"",`"> 642 `).concat(f,` 643 </td> 644 </tr> 645 `)})),o+="</tbody></table>",n.innerHTML=o;var s=n.querySelectorAll(".heygg-dev-bar__value");s.forEach((function(l){var c=l,d=c.dataset.fullValue;if(d){var f=decodeURIComponent(d);if(f.length>50)c.style.cursor="pointer",c.addEventListener("click",(function(g){return Et(t,void 0,void 0,(function(){var w,m,b,_,C,R,I,k,A=this;return kt(this,(function(L){switch(L.label){case 0:return g.target.classList.contains("heygg-dev-bar__copy-btn")?[2]:(w=function(j){try{return JSON.stringify(JSON.parse(j),null,2)}catch{return j}},m=function(j){try{return JSON.parse(j),"json"}catch{}return j.trim().startsWith("<")&&j.trim().endsWith(">")?"html":"text"},b=function(j,D){return Et(A,void 0,void 0,(function(){var V;return kt(this,(function(q){switch(q.label){case 0:return q.trys.push([0,2,,3]),[4,window.hljs?Promise.resolve(window.hljs):ey||(ey=new Promise((function($,W){var ae=document.createElement("script");ae.src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js",ae.onload=function(){return $(window.hljs)},ae.onerror=function(){return W(new Error("Failed to load highlight.js"))},document.head.appendChild(ae)})))];case 1:return V=q.sent(),D==="json"?[2,V.highlight(j,{language:"json"}).value]:D==="html"?[2,V.highlight(j,{language:"html"}).value]:[2,this.escapeHtml(j)];case 2:return q.sent(),[2,this.escapeHtml(j)];case 3:return[2]}}
645))}))},c.classList.contains("heygg-dev-bar__value--expanded")?(c.innerHTML=this.escapeHtml(f.substring(0,50))+"...",c.classList.remove("heygg-dev-bar__value--expanded"),c.title="Click to expand",[3,5]):[3,1]);case 1:return s.forEach((function(j){if(j!==c&&j.classList.contains("heygg-dev-bar__value--expanded")){var D=j.dataset.fullValue;if(D){var V=decodeURIComponent(D);j.innerHTML=A.escapeHtml(V.substring(0,50))+"...",j.classList.remove("heygg-dev-bar__value--expanded"),j.title="Click to expand"}}})),C=m(_=f),R=C==="json"?w(_):_,C!=="json"&&C!=="html"?[3,3]:[4,b(R,C)];case 2:return I=L.sent(),c.innerHTML=` 646 <div class="heygg-dev-bar__code-container"> 647 <button class="heygg-dev-bar__copy-btn" title="Copy to clipboard">Copy</button> 648 <pre class="heygg-dev-bar__code hljs">`.concat(I,`</pre> 649 </div> 650 `),[3,4];case 3:c.innerHTML=` 651 <div class="heygg-dev-bar__value-container"> 652 <button class="heygg-dev-bar__copy-btn" title="Copy to clipboard">Copy</button> 653 <span class="heygg-dev-bar__raw-value">`.concat(this.escapeHtml(R),`</span> 654 </div> 655 `),L.label=4;case 4:c.classList.add("heygg-dev-bar__value--expanded"),c.title="Click to collapse",(k=c.querySelector(".heygg-dev-bar__copy-btn"))==null||k.addEventListener("click",(function(j){return Et(A,void 0,void 0,(function(){return kt(this,(function(D){switch(D.label){case 0:j.stopPropagation(),D.label=1;case 1:return D.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(_)];case 2:return D.sent(),k.textContent="Copied!",setTimeout((function(){k.textContent="Copy"}),1e3),[3,4];case 3:return D.sent(),k.textContent="Failed",setTimeout((function(){k.textContent="Copy"}),1e3),[3,4];case 4:return[2]}}
655))}))})),L.label=5;case 5:return[2]}}))}))}));else{c.style.position="relative";var h=document.createElement("button");h.className="heygg-dev-bar__hover-copy-btn",h.textContent="Copy",h.title="Copy to clipboard",h.style.display="none",c.appendChild(h),c.addEventListener("mouseenter",(function(){h.style.display="block"})),c.addEventListener("mouseleave",(function(){h.style.display="none"})),h.addEventListener("click",(function(g){return Et(t,void 0,void 0,(function(){return kt(this,(function(w){switch(w.label){case 0:g.stopPropagation(),w.label=1;case 1:return w.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(f)];case 2:return w.sent(),h.textContent="Copied!",setTimeout((function(){h.textContent="Copy"}),1e3),[3,4];case 3:return w.sent(),h.textContent="Failed",setTimeout((function(){h.textContent="Copy"}),1e3),[3,4];case 4:return[2]}}))}))}))}}}))}else n.innerHTML='<div class="heygg-dev-bar__empty">No localStorage keys configured</div>'}},e.prototype.setupAnalyticsListener=function(){var t=this;this.eventListenerRegistered||(window.addEventListener("heygg-analytics-updated",(function(){t.updateEventsList()})),this.eventListenerRegistered=!0)},e.prototype.updateEventsList=function(){var t,n=this,i=document.getElementById("events-list"),o=document.getElementById("event-count");if(i&&o){var s=[];try{!((t=window.HeyGoodGame)===null||t===void 0)&&t.Analytics&&(s=window.HeyGoodGame.Analytics.getEvents())}catch(l){console.warn("[DevToolbar] Failed to get analytics events:",l)}o.textContent="".concat(s.length," event").concat(s.length===1?"":"s"),s.length!==0?i.innerHTML=s.map((function(l){var c=JSON.stringify(l.attributes,null,2);return` 656 <div class="heygg-dev-bar__event"> 657 <div class="heygg-dev-bar__event-header"> 658 <div class="heygg-dev-bar__event-name">`.concat(n.escapeHtml(l.event),`</div> 659 <div class="heygg-dev-bar__event-time">`).concat(l.formattedTime,`</div> 660 </div> 661 <div class="heygg-dev-bar__event-attributes">`).concat(n.escapeHtml(c),`</div> 662 </div> 663 `)})).join(""):i.innerHTML='<div class="heygg-dev-bar__empty">No events tracked yet</div>'}},e.prototype.clearEvents=function(){var t;try{!((t=window.HeyGoodGame)===null||t===void 0)&&t.Analytics&&(window.HeyGoodGame.Analytics.clearEvents(),this.updateEventsList())}catch(n){console.warn("[DevToolbar] Failed to clear analytics events:",n)}},e.prototype.escapeHtml=function(t){var n=document.createElement("div");return n.textContent=t,n.innerHTML},e})(),W5=new $C,QC=Object.freeze({__proto__:null,default:W5}),YC=(function(){function e(){this.events=[],this.maxEvents=100}return e.prototype.trackGA=function(t,n){n===void 0&&(n={});var i=Tn({},n),o=localStorage.getItem("heygg_user"),s=localStorage.getItem("heygg_anonymous_id");if(o)try{var l=JSON.parse(o);l&&l.id&&(i.user_id=l.id)}catch(f){console.warn("[Analytics] Failed to parse user data:",f)}else s&&(i.anonymous_id=s);var c=Date.now(),d={id:"".concat(c,"-").concat(Math.random().toString(36).substr(2,9)),event:t,attributes:i,timestamp:c,formattedTime:new Date(c).toLocaleTimeString()};this.events.unshift(d),this.events.length>this.maxEvents&&(this.events=this.events.slice(0,this.maxEvents)),console.log("GA Event: ".concat(t),i),typeof gtag<"u"&>ag("event",t,i),this.notifyDevToolbar()},e.prototype.getEvents=function(){return Zs([],this.events)},e.prototype.clearEvents=function(){this.events=[],this.notifyDevToolbar()},e.prototype.getEventCount=function(){return this.events.length},e.prototype.notifyDevToolbar=function(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("heygg-analytics-updated",{detail:{eventCount:this.events.length}}))},e})(),Ti=new YC;const zt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Dn=globalThis,ts="10.5.0";function ps(){return vf(Dn),Dn}function vf(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ts,t[ts]=t[ts]||{}}function du(e,t,n=Dn){const i=n.__SENTRY__=n.__SENTRY__||{},o=i[ts]=i[ts]||{};return o[e]||(o[e]=t())}const ZC=["debug","info","warn","error","log","assert","trace"],KC="Sentry Logger ",Gd={};function cl(e){if(!("console"in Dn))return e();const t=Dn.console,n={},i=Object.keys(Gd);
663i.forEach((o=>{const s=Gd[o];n[o]=t[o],t[o]=s}));try{return e()}finally{i.forEach((o=>{t[o]=n[o]}))}}function q5(){return jh().enabled}function Fp(e,...t){zt&&q5()&&cl((()=>{Dn.console[e](`${KC}[${e}]:`,...t)}))}function jh(){return zt?du("loggerSettings",(()=>({enabled:!1}))):{enabled:!1}}const lt={enable:function(){jh().enabled=!0},disable:function(){jh().enabled=!1},isEnabled:q5,log:function(...e){Fp("log",...e)},warn:function(...e){Fp("warn",...e)},error:function(...e){Fp("error",...e)}},ty=50,ns="?",ny=/\(error: (.*)\)/,ry=/captureMessage|captureException/;function $5(...e){const t=e.sort(((n,i)=>n[0]-i[0])).map((n=>n[1]));return(n,i=0,o=0)=>{const s=[],l=n.split(` 664`);for(let c=i;c<l.length;c++){let d=l[c];d.length>1024&&(d=d.slice(0,1024));const f=ny.test(d)?d.replace(ny,"$1"):d;if(!f.match(/\S*Error: /)){for(const h of t){const g=h(f);if(g){s.push(g);break}}if(s.length>=ty+o)break}}return(function(c){if(!c.length)return[];const d=Array.from(c);return/sentryWrapped/.test(zc(d).function||"")&&d.pop(),d.reverse(),ry.test(zc(d).function||"")&&(d.pop(),ry.test(zc(d).function||"")&&d.pop()),d.slice(0,ty).map((f=>({...f,filename:f.filename||zc(d).filename,function:f.function||ns})))})(s.slice(o))}}function zc(e){return e[e.length-1]||{}}const iy="<anonymous>";function Oa(e){try{return e&&typeof e=="function"&&e.name||iy}catch{return iy}}function ay(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach((i=>{i.stacktrace.frames&&n.push(...i.stacktrace.frames)})),n}catch{return}}}const ud={},oy={};function wo(e,t){ud[e]=ud[e]||[],ud[e].push(t)}function bo(e,t){if(!oy[e]){oy[e]=!0;try{t()}catch(n){zt&<.error(`Error while instrumenting ${e}`,n)}}}function Mi(e,t){const n=e&&ud[e];if(n)for(const i of n)try{i(t)}catch(o){zt&<.error(`Error while triggering instrumentation handler. 665Type: ${e} 666Name: ${Oa(i)} 667Error:`,o)}}let Dp=null;function Q5(e){const t="error";wo(t,e),bo(t,JC)}function JC(){Dp=Dn.onerror,Dn.onerror=function(e,t,n,i,o){return Mi("error",{column:i,error:o,line:n,msg:e,url:t}),!!Dp&&Dp.apply(this,arguments)},Dn.onerror.__SENTRY_INSTRUMENTED__=!0}let Hp=null;function Y5(e){const t="unhandledrejection";wo(t,e),bo(t,XC)}function XC(){Hp=Dn.onunhandledrejection,Dn.onunhandledrejection=function(e){return Mi("unhandledrejection",e),!Hp||Hp.apply(this,arguments)},Dn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Z5=Object.prototype.toString;function D0(e){switch(Z5.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Na(e,Error)}}function dl(e,t){return Z5.call(e)===`[object ${t}]`}function K5(e){return dl(e,"ErrorEvent")}function sy(e){return dl(e,"DOMError")}function Ma(e){return dl(e,"String")}function H0(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function fu(e){return e===null||H0(e)||typeof e!="object"&&typeof e!="function"}function pu(e){return dl(e,"Object")}function yf(e){return typeof Event<"u"&&Na(e,Event)}function Pu(e){return!!(e?.then&&typeof e.then=="function")}function Na(e,t){try{return e instanceof t}catch{return!1}}function J5(e){return!(typeof e!="object"||e===null||!e.__isVue&&!e._isVue)}function X5(e){return typeof Request<"u"&&Na(e,Request)}const B0=Dn,ex=80;function la(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,o=[];let s=0,l=0;const c=" > ",d=c.length;let f;const h=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||ex;for(;n&&s++<i&&(f=tx(n,h),!(f==="html"||s>1&&l+o.length*d+f.length>=g));)o.push(f),l+=f.length,n=n.parentNode;return o.reverse().join(c)}catch{return"<unknown>"}}function tx(e,t){const n=e,i=[];if(!n?.tagName)return"";if(B0.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const o=t?.length?t.filter((l=>n.getAttribute(l))).map((l=>[l,n.getAttribute(l)])):null;if(o?.length)o.forEach((l=>{i.push(`[${l[0]}="${l[1]}"]`)}));else{n.id&&i.push(`#${n.id}`);const l=n.className;if(l&&Ma(l)){const c=l.split(/\s+/);for(const d of c)i.push(`.${d}`)}}const s=["aria-label","type","name","title","alt"];for(const l of s){const c=n.getAttribute(l);c&&i.push(`[${l}="${c}"]`)}return i.join("")}function Lu(){try{return B0.document.location.href}catch{return""}}function e6(e){if(!B0.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Ud(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ly(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const o=e[i];try{J5(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function cd(e,t,n=!1){return!!Ma(e)&&(dl(t,"RegExp")?t.test(e):!!Ma(t)&&(n?e===t:e.includes(t)))}function uo(e,t=[],n=!1){return t.some((i=>cd(e,i,n)))}function pi(e,t,n){if(!(t in e))return;const i=e[t];if(typeof i!="function")return;const o=n(i);typeof o=="function"&&t6(o,i);try{e[t]=o}catch{zt&<.log(`Failed to replace method "${t}" in object`,e)}}function wi(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{zt&<.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function t6(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,wi(e,"__sentry_original__",t)}catch{}}function G0(e){return e.__sentry_original__}function n6(e){if(D0(e))return{message:e.message,name:e.name,stack:e.stack,...cy(e)};if(yf(e)){const t={type:e.type,target:uy(e.target),currentTarget:uy(e.currentTarget),...cy(e)};return typeof CustomEvent<"u"&&Na(e,CustomEvent)&&(t.detail=e.detail),t}return e}function uy(e){try{return t=e,typeof Element<"u"&&Na(t,Element)?la(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}var t}function cy(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Ii(e=(function(){const t=Dn;return t.crypto||t.msCrypto})()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,(n=>(n^(15&t())>>n/4).toString(16)))}function r6(e){return e.exception?.values?.[0]}function Zo(e){const{message:t,event_id:n}=e;if(t)return t;const i=r6(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function Oh(e,t,n){const i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function Js(e,t){const n=r6(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const o={...i?.data,...t.data};n.mechanism.data=o}}function dy(e){if((function(t){try{return t.__sentry_captured__}catch{}})(e))return!0;try{wi(e,"__sentry_captured__",!0)}catch{}return!1}const i6=1e3;function ls(){return Date.now()/i6}let fy,Bp;function Or(){return(fy??(fy=(function(){const{performance:e}=Dn;if(!e?.now||!e.timeOrigin)return ls;const t=e.timeOrigin;return()=>(t+e.now())/i6})()))()}function gi(){return Bp||(Bp=(function(){const{performance:e}=Dn;if(!e?.now)return[void 0,"none"];const t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,s=o<t,l=e.timing?.navigationStart,c=typeof l=="number"?Math.abs(l+n-i):t;return s||c<t?o<=c?[e.timeOrigin,"timeOrigin"]:[l,"navigationStart"]:[i,"dateNow"]})()),Bp[0]}function nx(e){const t=Or(),n={sid:Ii(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(function(i){return{sid:`${i.sid}`,init:i.init,started:new Date(1e3*i.started).toISOString(),timestamp:new Date(1e3*i.timestamp).toISOString(),status:i.status,errors:i.errors,did:typeof i.did=="number"||typeof i.did=="string"?`${i.did}`:void 0,duration:i.duration,abnormal_mechanism:i.abnormal_mechanism,attrs:{release:i.release,environment:i.environment,ip_address:i.ipAddress,user_agent:i.userAgent}}})(n)};return e&&Xs(n,e),n}function Xs(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Or(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ii()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
vendor: 5,537 bytes, line 667
667ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Mu(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const i={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=Mu(i[o],t[o],n-1));return i}function _o(){return Ii()}function Iu(){return Ii().substring(16)}const Nh="_sentrySpan";function el(e,t){t?wi(e,Nh,t):delete e[Nh]}function zd(e){return e[Nh]}class Fa{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:_o(),sampleRand:Math.random()}}clone(){const t=new Fa;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,el(t,zd(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Xs(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,i=n instanceof Fa?n.getScopeData():pu(n)?t:void 0,{tags:o,extra:s,user:l,contexts:c,level:d,fingerprint:f=[],propagationContext:h}=i||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...c},l&&Object.keys(l).length&&(this._user=l),d&&(this._level=d),f.length&&(this._fingerprint=f),h&&(this._propagationContext=h),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,el(this,void 0),this._attachments=[],this.setPropagationContext({traceId:_o(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const i=typeof n=="number"?n:100;if(i<=0)return this;const o={timestamp:ls(),...t,message:t.message?Ud(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>i&&(this._breadcrumbs=this._breadcrumbs.slice(-i),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:zd(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Mu(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const i=n?.event_id||Ii();if(!this._client)return zt&<.warn("No client configured on scope - will not capture exception!"),i;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:i},this),i}captureMessage(t,n,i){const o=i?.event_id||Ii();if(!this._client)return zt&<.warn("No client configured on scope - will not capture message!"),o;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...i,event_id:o},this),o}captureEvent(t,n){const i=n?.event_id||Ii();return this._client?(this._client.captureEvent(t,{...n,event_id:i},this),i):(zt&<.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
667h((t=>{t(this)})),this._notifyingListeners=!1)}}class rx{constructor(t,n){let i,o;i=t||new Fa,o=n||new Fa,this._stack=[{scope:i}],this._isolationScope=o}withScope(t){const n=this._pushScope();let i;try{i=t(n)}catch(o){throw this._popScope(),o}return Pu(i)?i.then((o=>(this._popScope(),o)),(o=>{throw this._popScope(),o})):(this._popScope(),i)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function tl(){const e=vf(ps());return e.stack=e.stack||new rx(du("defaultCurrentScope",(()=>new Fa)),du("defaultIsolationScope",(()=>new Fa)))}function ix(e){return tl().withScope(e)}function ax(e,t){const n=tl();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function py(e){return tl().withScope((()=>e(tl().getIsolationScope())))}function fl(e){const t=vf(e);return t.acs?t.acs:{withIsolationScope:py,withScope:ix,withSetScope:ax,withSetIsolationScope:(n,i)=>py(i),getCurrentScope:()=>tl().getScope(),getIsolationScope:()=>tl().getIsolationScope()}}function zn(){return fl(ps()).getCurrentScope()}function Po(){return fl(ps()).getIsolationScope()}function wf(...e){const t=fl(ps());if(e.length===2){const[n,i]=e;return n?t.withSetScope(n,i):t.withScope(i)}return t.withScope(e[0])}function Un(){return zn().getClient()}function ox(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:o}=t,s={trace_id:n,span_id:o||Iu()};return i&&(s.parent_span_id=i),s}const na="sentry.source",U0="sentry.sample_rate",a6="sentry.previous_trace_sample_rate",Da="sentry.op",Cr="sentry.origin",Vd="sentry.idle_span_finish_reason",Ru="sentry.measurement_unit",ju="sentry.measurement_value",hy="sentry.custom_span_name",Fh="sentry.profile_id",nl="sentry.exclusive_time",sx="sentry.link.type",lx=0,o6=1,_r=2;function s6(e,t){e.setAttribute("http.response.status_code",t);const n=(function(i){if(i<400&&i>=100)return{code:o6};if(i>=400&&i<500)switch(i){case 401:return{code:_r,message:"unauthenticated"};case 403:return{code:_r,message:"permission_denied"};case 404:return{code:_r,message:"not_found"};case 409:return{code:_r,message:"already_exists"};case 413:return{code:_r,message:"failed_precondition"};case 429:return{code:_r,message:"resource_exhausted"};case 499:return{code:_r,message:"cancelled"};default:return{code:_r,message:"invalid_argument"}}if(i>=500&&i<600)switch(i){case 501:return{code:_r,message:"unimplemented"};case 503:return{code:_r,message:"unavailable"};case 504:return{code:_r,message:"deadline_exceeded"};default:return{code:_r,message:"internal_error"}}return{code:_r,message:"unknown_error"}})(t);n.message!=="unknown_error"&&e.setStatus(n)}const l6="_sentryScope",u6="_sentryIsolationScope";function Wd(e){return{scope:e[l6],isolationScope:e[u6]}}const z0="sentry-",ux=/^sentry-/,cx=8192;function c6(e){const t=(function(i){if(!(!i||!Ma(i)&&!Array.isArray(i)))return Array.isArray(i)?i.reduce(((o,s)=>{const l=my(s);return Object.entries(l).forEach((([c,d])=>{o[c]=d})),o}),{}):my(i)})(e);if(!t)return;const n=Object.entries(t).reduce(((i,[o,s])=>
667(o.match(ux)&&(i[o.slice(z0.length)]=s),i)),{});return Object.keys(n).length>0?n:void 0}function dx(e){if(e)return(function(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce(((n,[i,o],s)=>{const l=`${encodeURIComponent(i)}=${encodeURIComponent(o)}`,c=s===0?l:`${n},${l}`;return c.length>cx?(zt&<.warn(`Not adding key: ${i} with val: ${o} to baggage header due to exceeding baggage size limits.`),n):c}),"")})(Object.entries(e).reduce(((t,[n,i])=>(i&&(t[`${z0}${n}`]=i),t)),{}))}function my(e){return e.split(",").map((t=>t.split("=").map((n=>{try{return decodeURIComponent(n.trim())}catch{return}})))).reduce(((t,[n,i])=>(n&&i&&(t[n]=i),t)),{})}const fx=/^o(\d+)\./,px=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function hu(e,t=!1){const{host:n,path:i,pass:o,port:s,projectId:l,protocol:c,publicKey:d}=e;return`${c}://${d}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${i&&`${i}/`}${l}`}function gy(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function hx(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let i;return t.orgId?i=String(t.orgId):n&&(i=(function(o){return o.match(fx)?.[1]})(n)),i}function mx(e){const t=typeof e=="string"?(function(n){const i=px.exec(n);if(!i)return void cl((()=>{console.error(`Invalid Sentry Dsn: ${n}`)}));const[o,s,l="",c="",d="",f=""]=i.slice(1);let h="",g=f;const w=g.split("/");if(w.length>1&&(h=w.slice(0,-1).join("/"),g=w.pop()),g){const m=g.match(/^\d+/);m&&(g=m[0])}return gy({host:c,pass:l,path:h,projectId:g,port:d,protocol:o,publicKey:s})})(e):gy(e);if(t&&(function(n){if(!zt)return!0;const{port:i,projectId:o,protocol:s}=n;return!(["protocol","publicKey","host","projectId"].find((l=>!n[l]&&(lt.error(`Invalid Sentry Dsn: ${l} missing`),!0)))||(o.match(/^\d+$/)?(function(l){return l==="http"||l==="https"})(s)?i&&isNaN(parseInt(i,10))&&(lt.error(`Invalid Sentry Dsn: Invalid port ${i}`),1):(lt.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),1):(lt.error(`Invalid Sentry Dsn: Invalid projectId ${o}`),1)))})(t))return t}function mu(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;return typeof t!="number"||isNaN(t)||t<0||t>1?void 0:t}const d6=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function gx(e,t){const n=(function(d){if(!d)return;const f=d.match(d6);if(!f)return;let h;return f[3]==="1"?h=!0:f[3]==="0"&&(h=!1),{traceId:f[1],parentSampled:h,parentSpanId:f[2]}})(e),i=c6(t);if(!n?.traceId)return{traceId:_o(),sampleRand:Math.random()};const o=(function(d,f){const h=mu(f?.sample_rand);if(h!==void 0)return h;const g=mu(f?.sample_rate);return g&&d?.parentSampled!==void 0?d.parentSampled?Math.random()*g:g+Math.random()*(1-g):Math.random()})(n,i);i&&(i.sample_rand=o.toString());const{traceId:s,parentSpanId:l,parentSampled:c}=n;return{traceId:s,parentSpanId:l,sampled:c,dsc:i||{},sampleRand:o}}function vy(e=_o(),t=Iu(),n){let i="";return n!==void 0&&(i=n?"-1":"-0"),`${e}-${t}${i}`}const V0=1;let yy=!1;function vx(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:o,parent_span_id:s,status:l,origin:c,links:d}=In(e);return{parent_span_id:s,span_id:t,trace_id:n,data:i,op:o,status:l,origin:c,links:d}}function yx(e){const{spanId:t,traceId:n,isRemote:i}=e.spanContext(),o=i?t:In(e).parent_span_id,s=Wd(e).scope;return{parent_span_id:o,span_id:i?s?.getPropagationContext().propagationSpanId||Iu():t,trace_id:n}}function f6(e){return e&&e.length>0?e.map((({context:{spanId:t,traceId:n,traceFlags:i,...o},attributes:s})=>({span_id:t,trace_id:n,sampled:i===V0,attributes:s,...o}))):void 0}function rs(e){return typeof e=="number"?wy(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?wy(e.getTime()):Or()}function wy(e){return e>9999999999?e/1e3:e}function In(e){if((function(i){return typeof i.getSpanJSON=="function"})(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if((function(i){const o=i;return!!(o.attributes&&o.startTime&&o.name&&o.endTime&&o.status)})(e)){const{attributes:i,startTime:o,name:s,endTime:l,status:c,links:d}=e;return{span_id:t,trace_id:n,data:i,description:s,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:rs(o),timestamp:rs(l)||void 0,status:p6(c),op:i[Da],origin:i[Cr],links:f6(d)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function is(e){const{traceFlags:t}=e.spanContext();return t===V0}function p6(e){if(e&&e.code!==lx)return e.code===o6?"ok":e.message||"unknown_error"}const as="_sentryChildSpans",Dh="_sentryRootSpan";function by(e,t){const n=e[Dh]||e;wi(t,Dh,n),e[as]?e[as].add(t):wi(e,as,new Set([t]))}function dd(e){const t=new Set;return(function n(i){if(!t.has(i)&&is(i)){t.add(i);const o=i[as]?Array.from(i[as]):[];for(const s of o)n(s)}})(e),Array.from(t)}function Qr(e){return e[Dh]||e}function hi(){const e=fl(ps());return e.getActiveSpan?e.getActiveSpan():zd(zn())}function Hh(){yy||(cl((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),yy=!0)}let _y=!1;function Co(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Un()?.getOptions();return!(!t||t.tracesSampleRate==null&&!t.tracesSampler)}const W0="production",h6="_frozenDsc";function fd(e,t){wi(e,h6,t)}function m6(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},o={environment:n.environment||W0,release:n.release,public_key:i,trace_id:e,org_id:hx(t)};return t.emit("createDsc",o),o}function g6(e,t){const n=t.getPropagationContext();return n.dsc||m6(n.traceId,e)}function xo(e){const t=Un();if(!t)return{};const n=Qr(e),i=In(n),o=i.data,s=n.spanContext().traceState,l=s?.get("sentry.sample_rate")??o[U0]??o[a6];function c(b){return typeof l!="number"&&typeof l!="string"||(b.sample_rate=`${l}`),b}const d=n[h6];if(d)return c(d);const f=s?.get("sentry.dsc"),h=f&&c6(f);if(h)return c(h);const g=m6(e.spanContext().traceId,t),w=o[na],m=i.description;return w!=="url"&&m&&(g.transaction=m),Co()&&(g.sampled=String(is(n)),g.sample_rand=s?.get("sentry.sample_rand")??Wd(n).scope?.getPropagationContext().sampleRand.toString()),c(g),t.emit("createDsc",g,n),g}class So{constructor(t={}){this._traceId=t.traceId||_o(),this._spanId=t.spanId||Iu()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
667addEvent(t,n,i){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Pa(e,t=100,n=1/0){try{return Bh("",e,t,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function v6(e,t=3,n=102400){const i=Pa(e,t);return o=i,(function(s){return~-encodeURI(s).split(/%..|./).length})(JSON.stringify(o))>n?v6(e,t-1,n):i;var o}function Bh(e,t,n=1/0,i=1/0,o=(function(){const s=new WeakSet;function l(d){return!!s.has(d)||(s.add(d),!1)}function c(d){s.delete(d)}return[l,c]})()){const[s,l]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const c=(function(m,b){try{if(m==="domain"&&b&&typeof b=="object"&&b._events)return"[Domain]";if(m==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&b===global)return"[Global]";if(typeof window<"u"&&b===window)return"[Window]";if(typeof document<"u"&&b===document)return"[Document]";if(J5(b))return"[VueViewModel]";if(pu(_=b)&&"nativeEvent"in _&&"preventDefault"in _&&"stopPropagation"in _)return"[SyntheticEvent]";if(typeof b=="number"&&!Number.isFinite(b))return`[${b}]`;if(typeof b=="function")return`[Function: ${Oa(b)}]`;if(typeof b=="symbol")return`[${String(b)}]`;if(typeof b=="bigint")return`[BigInt: ${String(b)}]`;const C=(function(R){const I=Object.getPrototypeOf(R);return I?.constructor?I.constructor.name:"null prototype"})(b);return/^HTML(\w*)Element$/.test(C)?`[HTMLElement: ${C}]`:`[object ${C}]`}catch(C){return`**non-serializable** (${C})`}var _})(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const d=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(d===0)return c.replace("object ","");if(s(t))return"[Circular ~]";const f=t;if(f&&typeof f.toJSON=="function")try{return Bh("",f.toJSON(),d-1,i,o)}catch{}const h=Array.isArray(t)?[]:{};let g=0;const w=n6(t);for(const m in w){if(!Object.prototype.hasOwnProperty.call(w,m))continue;if(g>=i){h[m]="[MaxProperties ~]";break}const b=w[m];h[m]=Bh(m,b,d-1,i,o),g++}return l(t),h}function rl(e,t=[]){return[e,t]}function wx(e,t){const[n,i]=e;return[n,[...i,t]]}function Cy(e,t){const n=e[1];for(const i of n)if(t(i,i[0].type))return!0;return!1}function Gh(e){const t=vf(Dn);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function bx(e){const[t,n]=e;let i=JSON.stringify(t);function o(s){typeof i=="string"?i=typeof s=="string"?i+s:[Gh(i),s]:i.push(typeof s=="string"?Gh(s):s)}for(const s of n){const[l,c]=s;if(o(` 668${JSON.stringify(l)} 669`),typeof c=="string"||c instanceof Uint8Array)o(c);else{let d;try{d=JSON.stringify(c)}catch{d=JSON.stringify(Pa(c))}o(d)}}return typeof i=="string"?i:(function(s){const l=s.reduce(((f,h)=>f+h.length),0),c=new Uint8Array(l);let d=0;for(const f of s)c.set(f,d),d+=f.length;return c})(i)}function _x(e){return[{type:"span"},e]}function Cx(e){const t=typeof e.data=="string"?Gh(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const xx={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function xy(e){return xx[e]}function y6(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Uh(e,t){if(!t?.length||!e.description)return!1;for(const i of t){if(typeof(n=i)=="string"||n instanceof RegExp){if(cd(e.description,i))return!0;continue}if(!i.name&&!i.op)continue;const o=!i.name||cd(e.description,i.name),s=!i.op||e.op&&cd(e.op,i.op);if(o&&s)return!0}var n;return!1}function Sx(e,t){const n=t.parent_span_id,i=t.span_id;if(n)for(const o of e)o.parent_span_id===i&&(o.parent_span_id=n)}function Ax(e,t,n,i){const o=y6(n),s=e.type&&e.type!=="replay_event"?e.type:"event";(function(c,d){if(!d)return c;const f=c.sdk||{};c.sdk={...f,name:f.name||d.name,version:f.version||d.version,integrations:[...c.sdk?.integrations||[],...d.integrations||[]],packages:[...c.sdk?.packages||[],...d.packages||[]],settings:c.sdk?.settings||d.settings?{...c.sdk?.settings,...d.settings}:void 0}})(e,n?.sdk);const l=(function(c,d,f,h){const g=c.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:c.event_id,sent_at:new Date().toISOString(),...d&&{sdk:d},...!!f&&h&&{dsn:hu(h)},...g&&{trace:g}}})(e,o,i,t);return delete e.sdkProcessingMetadata,rl(l,[[{type:s},e]])}function Sy(e){if(!e||e.length===0)return;const t={};return e.forEach((n=>{const i=n.attributes||{},o=i[Ru],s=i[ju];
669typeof o=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:o})})),t}class Ou{constructor(t={}){this._traceId=t.traceId||_o(),this._spanId=t.spanId||Iu(),this._startTime=t.startTimestamp||Or(),this._links=t.links,this._attributes={},this.setAttributes({[Cr]:"manual",[Da]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:i}=this;return{spanId:t,traceId:n,traceFlags:i?V0:0}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach((n=>this.setAttribute(n,t[n]))),this}updateStartTime(t){this._startTime=rs(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(na,"custom"),this}end(t){this._endTime||(this._endTime=rs(t),(function(n){if(!zt)return;const{description:i="< unknown name >",op:o="< unknown op >"}=In(n),{spanId:s}=n.spanContext(),l=`[Tracing] Finishing "${o}" ${Qr(n)===n?"root ":""}span "${i}" with ID ${s}`;lt.log(l)})(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Da],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:p6(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Cr],profile_id:this._attributes[Fh],exclusive_time:this._attributes[nl],measurements:Sy(this._events),is_segment:this._isStandaloneSpan&&Qr(this)===this||void 0,segment_id:this._isStandaloneSpan?Qr(this).spanContext().spanId:void 0,links:f6(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,i){zt&<.log("[Tracing] Adding an event to span:",t);const o=Ay(n)?n:i||Or(),s=Ay(n)?{}:n||{},l={name:t,time:rs(o),attributes:s};return this._events.push(l),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Un();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Qr(this)))return;if(this._isStandaloneSpan)return void(this._sampled?(function(i){const o=Un();if(!o)return;const s=i[1];if(!s||s.length===0)return void o.recordDroppedEvent("before_send","span");o.sendEnvelope(i)})((function(i,o){const s=xo(i[0]),l=o?.getDsn(),c=o?.getOptions().tunnel,d={sent_at:new Date().toISOString(),...(function(_){return!!_.trace_id&&!!_.public_key})(s)&&{trace:s},...!!c&&l&&{dsn:hu(l)}},{beforeSendSpan:f,ignoreSpans:h}=o?.getOptions()||{}
669,g=h?.length?i.filter((_=>!Uh(In(_),h))):i,w=i.length-g.length;w&&o?.recordDroppedEvent("before_send","span",w);const m=f?_=>{const C=In(_);return f(C)||(Hh(),C)}:In,b=[];for(const _ of g){const C=m(_);C&&b.push(_x(C))}return rl(d,b)})([this],t)):(zt&<.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));const n=this._convertSpanToTransaction();n&&(Wd(this).scope||zn()).captureEvent(n)}_convertSpanToTransaction(){if(!Ey(In(this)))return;this._name||(zt&<.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Wd(this),i=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const o=dd(this).filter((d=>d!==this&&!(function(f){return f instanceof Ou&&f.isStandaloneSpan()})(d))).map((d=>In(d))).filter(Ey),s=this._attributes[na];delete this._attributes[hy],o.forEach((d=>{delete d.data[hy]}));const l={contexts:{trace:vx(this)},spans:o.length>1e3?o.sort(((d,f)=>d.start_timestamp-f.start_timestamp)).slice(0,1e3):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:xo(this)},request:i,...s&&{transaction_info:{source:s}}},c=Sy(this._events);return c&&Object.keys(c).length&&(zt&<.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),l.measurements=c),l}}function Ay(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Ey(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}function Ex(e,t,n=(()=>{})){let i;try{i=e()}catch(o){throw t(o),n(),o}return(function(o,s,l){return Pu(o)?o.then((c=>(l(),c)),(c=>{throw s(c),l(),c})):(l(),o)})(i,t,n)}const w6="__SENTRY_SUPPRESS_TRACING__";function kx(e,t){const n=$0();if(n.startSpan)return n.startSpan(e,t);const i=_6(e),{forceTransaction:o,parentSpan:s,scope:l}=e,c=l?.clone();return wf(c,(()=>{const d=(f=s)!==void 0?h=>q0(f,h):h=>h();var f;return d((()=>{const h=zn(),g=C6(h,s),w=e.onlyIfParent&&!g?new So:b6({parentSpan:g,spanArguments:i,forceTransaction:o,scope:h});return el(h,w),Ex((()=>t(w)),(()=>{const{status:m}=In(w);!w.isRecording()||m&&m!=="ok"||w.setStatus({code:_r,message:"internal_error"})}),(()=>{w.end()}))}))}))}function pl(e){const t=$0();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=_6(e),{forceTransaction:i,parentSpan:o}=e;return(e.scope?s=>wf(e.scope,s):o!==void 0?s=>q0(o,s):s=>s())((()=>{const s=zn(),l=C6(s,o);return e.onlyIfParent&&!l?new So:b6({parentSpan:l,spanArguments:n,forceTransaction:i,scope:s})}))}function q0(e,t){const n=$0();return n.withActiveSpan?n.withActiveSpan(e,t):wf((i=>(el(i,e||void 0),t(i))))}function b6({parentSpan:e,spanArguments:t,forceTransaction:n,scope:i}){if(!Co()){const l=new So;return(n||!e)&&fd(l,{sampled:"false",sample_rate:"0",transaction:t.name,...xo(l)}),l}const o=Po();let s;if(e&&!n)s=(function(l,c,d){const{spanId:f,traceId:h}=l.spanContext(),g=!c.getScopeData().sdkProcessingMetadata[w6]&&is(l),w=g?new Ou({...d,parentSpanId:f,traceId:h,sampled:g}):new So({traceId:h});by(l,w);const m=Un();return m&&(m.emit("spanStart",w),d.endTimestamp&&m.emit("spanEnd",w)),w})(e,i,t),by(e,s);else if(e){const l=xo(e),{traceId:c,spanId:d}=e.spanContext(),f=is(e);s=ky({traceId:c,parentSpanId:d,...t},i,f),fd(s,l)}else{const{traceId:l,dsc:c,parentSpanId:d,sampled:f}={...o.getPropagationContext(),...i.getPropagationContext()};s=ky({traceId:l,parentSpanId:d,...t},i,f),c&&fd(s,c)}return(function(l){if(!zt)return;const{description:c="< unknown name >",op:d="< unknown op >",parent_span_id:f}=In(l),{spanId:h}=l.spanContext(),g=is(l),w=Qr(l),m=w===l,b=`[Tracing] Starting ${g?"sampled":"unsampled"} ${m?"root ":""}span`,_=[`op: ${d}`,`name: ${c}`,`ID: ${h}`];if(f&&_.push(`parent ID: ${f}`),!m){const{op:C,description:R}=In(w);_.push(`root ID: ${w.spanContext().spanId}`),C&&_.push(`root op: ${C}`),R&&_.push(`root description: ${R}`)}lt.log(`${b} 670 ${_.join(` 671 `)}`)})(s),(function(l,c,d){l&&(wi(l,u6,d),wi(l,l6,c))})(s,i,o),s}function _6(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=rs(e.startTime),delete n.startTime,n}return t}function $0(){return fl(ps())}function ky(e,t,n){const i=Un(),o=i?.getOptions()||{},{name:s=""}=e,l={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};i?.emit("beforeSampling",l,{decision:!1});const c=l.parentSampled??n,d=l.spanAttributes,f=t.getPropagationContext(),[h,g,w]=t.getScopeData().sdkProcessingMetadata[w6]?[!1]:(function(b,_,C){if(!Co(b))return[!1];let R,I;typeof b.tracesSampler=="function"?(I=b.tracesSampler({..._,inheritOrSampleWith:L=>typeof _.parentSampleRate=="number"?_.parentSampleRate:typeof _.parentSampled=="boolean"?Number(_.parentSampled):L}),R=!0):_.parentSampled!==void 0?I=_.parentSampled:b.tracesSampleRate!==void 0&&(I=b.tracesSampleRate,R=!0);const k=mu(I);if(k===void 0)return zt&<.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(I)} of type ${JSON.stringify(typeof I)}.`),[!1];if(!k)return zt&<.log("[Tracing] Discarding transaction because "+(typeof b.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,k,R];const A=C<k;return A||zt&<.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(I)})`),[A,k,R]})(o,{name:s,parentSampled:c,attributes:d,parentSampleRate:mu(f.dsc?.sample_rate)},f.sampleRand),m=new Ou({...e,attributes:{[na]:"custom",[U0]:g!==void 0&&w?g:void 0,...d},sampled:h});return!h&&i&&(zt&<.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate","transaction")),i&&i.emit("spanStart",m),m}function C6(e,t){if(t)return t;if(t===null)return;const n=zd(e);if(!n)return;const i=Un();return(i?i.getOptions():{}).parentSpanIsAlwaysRootSpan?Qr(n):n}const pd={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Tx="heartbeatFailed",Px="idleTimeout",Lx="finalTimeout",Mx="externalFinish";function Ty(e,t={}){const n=new Map;let i,o=!1,s=Mx,l=!t.disableAutoFinish;const c=[],{idleTimeout:d=pd.idleTimeout,finalTimeout:f=pd.finalTimeout,childSpanTimeout:h=pd.childSpanTimeout,beforeSpanEnd:g}=t,w=Un();if(!w||!Co()){const A=new So;return fd(A,{sample_rate:"0",sampled:"false",...xo(A)}),A}const m=zn(),b=hi(),_=(function(A){const L=pl(A);
671return el(zn(),L),zt&<.log("[Tracing] Started span is an idle span"),L})(e);function C(){i&&(clearTimeout(i),i=void 0)}function R(A){C(),i=setTimeout((()=>{!o&&n.size===0&&l&&(s=Px,_.end(A))}),d)}function I(A){i=setTimeout((()=>{!o&&l&&(s=Tx,_.end(A))}),h)}function k(A){o=!0,n.clear(),c.forEach((q=>q())),el(m,b);const L=In(_),{start_timestamp:j}=L;if(!j)return;L.data[Vd]||_.setAttribute(Vd,s),lt.log(`[Tracing] Idle span "${L.op}" finished`);const D=dd(_).filter((q=>q!==_));let V=0;D.forEach((q=>{q.isRecording()&&(q.setStatus({code:_r,message:"cancelled"}),q.end(A),zt&<.log("[Tracing] Cancelling span since span ended early",JSON.stringify(q,void 0,2)));const $=In(q),{timestamp:W=0,start_timestamp:ae=0}=$,te=ae<=A,ce=W-ae<=(f+d)/1e3;if(zt){const pe=JSON.stringify(q,void 0,2);te?ce||lt.log("[Tracing] Discarding span since it finished after idle span final timeout",pe):lt.log("[Tracing] Discarding span since it happened after idle span was finished",pe)}ce&&te||((function(pe,me){pe[as]&&pe[as].delete(me)})(_,q),V++)})),V>0&&_.setAttribute("sentry.idle_span_discarded_spans",V)}return _.end=new Proxy(_.end,{apply(A,L,j){if(g&&g(_),L instanceof So)return;const[D,...V]=j,q=rs(D||Or()),$=dd(_).filter((pe=>pe!==_));if(!$.length)return k(q),Reflect.apply(A,L,[q,...V]);const W=$.map((pe=>In(pe).timestamp)).filter((pe=>!!pe)),ae=W.length?Math.max(...W):void 0,te=In(_).start_timestamp,ce=Math.min(te?te+f/1e3:1/0,Math.max(te||-1/0,Math.min(q,ae||1/0)));return k(ce),Reflect.apply(A,L,[ce,...V])}}),c.push(w.on("spanStart",(A=>{if(!(o||A===_||In(A).timestamp||A instanceof Ou&&A.isStandaloneSpan())){var L;dd(_).includes(A)&&(L=A.spanContext().spanId,C(),n.set(L,!0),I(Or()+h/1e3))}}))),c.push(w.on("spanEnd",(A=>{var L;o||(L=A.spanContext().spanId,n.has(L)&&n.delete(L),n.size===0&&R(Or()+d/1e3))}))),c.push(w.on("idleSpanEnableAutoFinish",(A=>{A===_&&(l=!0,R(),n.size&&I())}))),t.disableAutoFinish||R(),setTimeout((()=>{o||(_.setStatus({code:_r,message:"deadline_exceeded"}),s=Lx,_.end())}),f),_}function us(e){return new Ao((t=>{t(e)}))}function qd(e){return new Ao(((t,n)=>{n(e)}))}class Ao{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,n){return new Ao(((i,o)=>{this._handlers.push([!1,s=>{if(t)try{i(t(s))}catch(l){o(l)}else i(s)},s=>{if(n)try{i(n(s))}catch(l){o(l)}else o(s)}]),this._executeHandlers()}))}catch(t){return this.then((n=>n),t)}finally(t){return new Ao(((n,i)=>{let o,s;return this.then((l=>{s=!1,o=l,t&&t()}),(l=>{s=!0,o=l,t&&t()})).then((()=>{s?i(o):n(o)}))}))}_executeHandlers(){if(this._state===0)return;const t=this._handlers.slice();this._handlers=[],t.forEach((n=>{n[0]||(this._state===1&&n[1](this._value),this._state===2&&n[2](this._value),n[0]=!0)}))}_runExecutor(t){const n=(s,l)=>{this._state===0&&(Pu(l)?l.then(i,o):(this._state=s,this._value=l,this._executeHandlers()))},i=s=>{n(1,s)},o=s=>{n(2,s)};try{t(i,o)}catch(s){o(s)}}}function zh(e,t,n,i=0){return new Ao(((o,s)=>{const l=e[i];if(t===null||typeof l!="function")o(t);else{const c=l({...t},n);zt&&l.id&&c===null&<.log(`Event processor "${l.id}" dropped event`),Pu(c)?c.then((d=>zh(e,d,n,i+1).then(o))).then(null,s):zh(e,c,n,i+1).then(o).then(null,s)}}))}function Ix(e,t){const{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:s}=t;(function(l,c){const{extra:d,tags:f,user:h,contexts:g,level:w,transactionName:m}=c;Object.keys(d).length&&(l.extra={...d,...l.extra}),Object.keys(f).length&&(l.tags={...f,...l.tags}),Object.keys(h).length&&(l.user={...h,...l.user}),Object.keys(g).length&&(l.contexts={...g,...l.contexts}),w&&(l.level=w),m&&l.type!=="transaction"&&(l.transaction=m)})(e,t),i&&(function(l,c){l.contexts={trace:yx(c),...l.contexts},l.sdkProcessingMetadata={dynamicSamplingContext:xo(c),...l.sdkProcessingMetadata};const d=Qr(c),f=In(d).description;f&&!l.transaction&&l.type==="transaction"&&(l.transaction=f)})(e,i),(function(l,c){l.fingerprint=l.fingerprint?Array.isArray(l.fingerprint)?l.fingerprint:[l.fingerprint]:[],c&&(l.fingerprint=l.fingerprint.concat(c)),l.fingerprint.length||delete l.fingerprint})(e,n),(function(l,c){const d=[...l.breadcrumbs||[],...c];l.breadcrumbs=d.length?d:void 0})(e,o),(function(l,c){l.sdkProcessingMetadata={...l.sdkProcessingMetadata,...c}})(e,s)}function Py(e,t){const{extra:n,tags:i,user:o,contexts:s,level:l,sdkProcessingMetadata:c,breadcrumbs:d,fingerprint:f,eventProcessors:h,attachments:g,propagationContext:w,transactionName:m,span:b}=t;Vc(e,"extra",n),Vc(e,"tags",i),Vc(e,"user",o),Vc(e,"contexts",s),e.sdkProcessingMetadata=Mu(e.sdkProcessingMetadata,c,2),l&&(e.level=l),m&&(e.transactionName=m),b&&(e.span=b),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),f.length&&(e.fingerprint=[...e.fingerprint,...f]),h.length&&(e.eventProcessors=[...e.eventProcessors,...h]
671),g.length&&(e.attachments=[...e.attachments,...g]),e.propagationContext={...e.propagationContext,...w}}function Vc(e,t,n){e[t]=Mu(e[t],n,1)}let Wc,Ly,Gp;function Rx(e,t,n,i,o,s){const{normalizeDepth:l=3,normalizeMaxBreadth:c=1e3}=e,d={...t,event_id:t.event_id||n.event_id||Ii(),timestamp:t.timestamp||ls()},f=n.integrations||e.integrations.map((b=>b.name));(function(b,_){const{environment:C,release:R,dist:I,maxValueLength:k=250}=_;b.environment=b.environment||C||W0,!b.release&&R&&(b.release=R),!b.dist&&I&&(b.dist=I);const A=b.request;A?.url&&(A.url=Ud(A.url,k))})(d,e),(function(b,_){_.length>0&&(b.sdk=b.sdk||{},b.sdk.integrations=[...b.sdk.integrations||[],..._])})(d,f),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&(function(b,_){const C=(function(R){const I=Dn._sentryDebugIds;if(!I)return{};const k=Object.keys(I);return Gp&&k.length===Ly||(Ly=k.length,Gp=k.reduce(((A,L)=>{Wc||(Wc={});const j=Wc[L];if(j)A[j[0]]=j[1];else{const D=R(L);for(let V=D.length-1;V>=0;V--){const q=D[V],$=q?.filename,W=I[L];if($&&W){A[$]=W,Wc[L]=[$,W];break}}}return A}),{})),Gp})(_);b.exception?.values?.forEach((R=>{R.stacktrace?.frames?.forEach((I=>{I.filename&&(I.debug_id=C[I.filename])}))}))})(d,e.stackParser);const h=(function(b,_){if(!_)return b;const C=b?b.clone():new Fa;return C.update(_),C})(i,n.captureContext);n.mechanism&&Js(d,n.mechanism);const g=o?o.getEventProcessors():[],w=du("globalScope",(()=>new Fa)).getScopeData();s&&Py(w,s.getScopeData()),h&&Py(w,h.getScopeData());const m=[...n.attachments||[],...w.attachments];return m.length&&(n.attachments=m),Ix(d,w),zh([...g,...w.eventProcessors],d,n).then((b=>(b&&(function(_){const C={};if(_.exception?.values?.forEach((I=>{I.stacktrace?.frames?.forEach((k=>{k.debug_id&&(k.abs_path?C[k.abs_path]=k.debug_id:k.filename&&(C[k.filename]=k.debug_id),delete k.debug_id)}))})),Object.keys(C).length===0)return;_.debug_meta=_.debug_meta||{},_.debug_meta.images=_.debug_meta.images||[];const R=_.debug_meta.images;Object.entries(C).forEach((([I,k])=>{R.push({type:"sourcemap",code_file:I,debug_id:k})}))})(b),typeof l=="number"&&l>0?(function(_,C,R){if(!_)return null;const I={..._,..._.breadcrumbs&&{breadcrumbs:_.breadcrumbs.map((k=>({...k,...k.data&&{data:Pa(k.data,C,R)}})))},..._.user&&{user:Pa(_.user,C,R)},..._.contexts&&{contexts:Pa(_.contexts,C,R)},..._.extra&&{extra:Pa(_.extra,C,R)}};return _.contexts?.trace&&I.contexts&&(I.contexts.trace=_.contexts.trace,_.contexts.trace.data&&(I.contexts.trace.data=Pa(_.contexts.trace.data,C,R))),_.spans&&(I.spans=_.spans.map((k=>({...k,...k.data&&{data:Pa(k.data,C,R)}})))),_.contexts?.flags&&I.contexts&&(I.contexts.flags=Pa(_.contexts.flags,3,R)),I})(b,l,c):b)))}function My(e,t){return zn().captureEvent(e,t)}function Iy(e){const t=Po(),n=zn(),{userAgent:i}=Dn.navigator||{},o=nx({user:n.getUser()||t.getUser(),...i&&{userAgent:i},...e}),s=t.getSession();return s?.status==="ok"&&Xs(s,{status:"exited"}),x6(),t.setSession(o),o}function x6(){const e=Po(),t=zn().getSession()||e.getSession();t&&(function(n,i){let o={};n.status==="ok"&&(o={status:"exited"}),Xs(n,o)})(t),S6(),e.setSession()}function S6(){const e=Po(),t=Un(),n=e.getSession();n&&t&&t.captureSession(n)}function Ry(e=!1){e?x6():S6()}const jx="7";function Ox(e,t,n){return t||`${(function(i){return`${(function(o){const s=o.protocol?`${o.protocol}:`:"",l=o.port?`:${o.port}`:"";return`${s}//${o.host}${l}${o.path?`/${o.path}`:""}/api/`})(i)}${i.projectId}/envelope/`})(e)}?${(function(i,o){const s={sentry_version:jx};return i.publicKey&&(s.sentry_key=i.publicKey),o&&(s.sentry_client=`${o.name}/${o.version}`),new URLSearchParams(s).toString()})(e,n)}`}const jy=[];function Nx(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;if(t.forEach((o=>{o.isDefaultInstance=!0})),Array.isArray(n))i=[...t,...n];else if(typeof n=="function"){const o=n(t);i=Array.isArray(o)?o:[o]}else i=t;return(function(o){const s={};return o.forEach((l=>{const{name:c}=l,d=s[c];d&&!d.isDefaultInstance&&l.isDefaultInstance||(s[c]=l)})),Object.values(s)})(i)}function Oy(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Ny(e,t,n){if(n[t.name])zt&<.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,jy.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),jy.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const i=t.preprocessEvent.bind(t);e.on("preprocessEvent",((o,s)=>i(o,s,e)))}if(typeof t.processEvent=="function"){const i=t.processEvent.bind(t),o=Object.assign(((s,l)=>i(s,l,e)),{id:t.name});e.addEventProcessor(o)}zt&<.log(`Integration installed: ${t.name}`)}}function A6(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}const Fy="Not capturing exception because it's already been captured.",Dy="Discarded session because of missing or non-string release",E6=Symbol.for("SentryInternalError"),k6=Symbol.for("SentryDoNotSendEventError");function qc(e){return{message:e,[E6]:!0}}function Up(e){return{message:e,[k6]:!0}}function Hy(e){return!!e&&typeof e=="object"&&E6 in e}function By(e){return!!e&&typeof e=="object"&&k6 in e}class Fx{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=mx(t.dsn):zt&<.warn("No DSN provided, client will not send events."),this._dsn){const n=Ox(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,i){const o=Ii();if(dy(t))return zt&<.log(Fy),o;const s={event_id:o,...n};return this._process(this.eventFromException(t,s).then((l=>this._captureEvent(l,s,i)))),s.event_id}captureMessage(t,n,i,o){const s={event_id:Ii(),...i},l=H0(t)?t:String(t),c=fu(t)?this.eventFromMessage(l,n,s):this.eventFromException(t,s);return this._process(c.then((d=>this._captureEvent(d,s,o)))),s.event_id}captureEvent(t,n,i){const o=Ii();if(n?.originalException&&dy(n.originalException))return zt&<.log(Fy),o;const s={event_id:o,...n},l=t.sdkProcessingMetadata||{},c=l.capturedSpanScope,d=l.capturedSpanIsolationScope;return this._process(this._captureEvent(t,s,c||i,d)),s.event_id}captureSession(t){this.sendSession(t),Xs(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;
671return n?(this.emit("flush"),this._isClientDoneProcessing(t).then((i=>n.flush(t).then((o=>i&&o))))):us(!0)}close(t){return this.flush(t).then((n=>(this.getOptions().enabled=!1,this.emit("close"),n)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Ny(this,t,this._integrations),n||Oy(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let i=Ax(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])i=wx(i,Cx(s));const o=this.sendEnvelope(i);o&&o.then((s=>this.emit("afterSendEvent",t,s)),null)}sendSession(t){const{release:n,environment:i=W0}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n)return void(zt&<.warn(Dy));s.release=s.release||n,s.environment=s.environment||i,t.attrs=s}else{if(!t.release&&!n)return void(zt&<.warn(Dy));t.release=t.release||n,t.environment=t.environment||i}this.emit("beforeSendSession",t);const o=(function(s,l,c,d){const f=y6(c);return rl({sent_at:new Date().toISOString(),...f&&{sdk:f},...!!d&&l&&{dsn:hu(l)}},["aggregates"in s?[{type:"sessions"},s]:[{type:"session"},s.toJSON()]])})(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,i=1){if(this._options.sendClientReports){const o=`${t}:${n}`;zt&<.log(`Recording outcome: "${o}"${i>1?` (${i} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+i}}on(t,n){const i=this._hooks[t]=this._hooks[t]||[];return i.push(n),()=>{const o=i.indexOf(n);o>-1&&i.splice(o,1)}}emit(t,...n){const i=this._hooks[t];i&&i.forEach((o=>o(...n)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,(n=>(zt&<.error("Error while sending envelope:",n),n))):(zt&<.error("Transport disabled"),us({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=(function(n,i){const o={};return i.forEach((s=>{s&&Ny(n,s,o)})),o})(this,t),Oy(this,t)}_updateSessionFromEvent(t,n){let i=n.level==="fatal",o=!1;const s=n.exception?.values;if(s){o=!0;for(const c of s)if(c.mechanism?.handled===!1){i=!0;break}}const l=t.status==="ok";(l&&t.errors===0||l&&i)&&(Xs(t,{...i&&{status:"crashed"},errors:t.errors||Number(o||i)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Ao((n=>{let i=0;const o=setInterval((()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(i+=1,t&&i>=t&&(clearInterval(o),n(!1)))}),1)}))}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,i,o){const s=this.getOptions(),l=Object.keys(this._integrations);return!n.integrations&&l?.length&&(n.integrations=l),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Rx(s,t,n,i,this,o).then((c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts={trace:ox(i),...c.contexts};const d=g6(this,i);return c.sdkProcessingMetadata={dynamicSamplingContext:d,...c.sdkProcessingMetadata},c}))}_captureEvent(t,n={},i=zn(),o=Po()){return zt&&zp(t)&<.log(`Captured error event \`${A6(t)[0]||"<unknown>"}\``),this._processEvent(t,n,i,o).then((s=>s.event_id),(s=>{zt&&(By(s)?lt.log(s.message):Hy(s)?lt.warn(s.message):lt.warn(s))}))}_processEvent(t,n,i,o){const s=this.getOptions(),{sampleRate:l}=s,c=Gy(t),d=zp(t),f=t.type||"error",h=`before send for type \`${f}\``,g=l===void 0?void 0:mu(l);if(d&&typeof g=="number"&&Math.random()>g)return this.recordDroppedEvent("sample_rate","error"),qd(Up(`Discarding event because it's not included in the random sample (sampling rate = ${l})`));const w=f==="replay_event"?"replay":f;return this._prepareEvent(t,n,i,o).then((m=>{if(m===null)throw this.recordDroppedEvent("event_processor",w),Up("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return m;const b=(function(_,C,R,I){const{beforeSend:k,beforeSendTransaction:A,beforeSendSpan:L,ignoreSpans:j}=C;let D=R;if(zp(D)&&k)return k(D,I);if(Gy(D)){if(L||j){const q=(function($){const{trace_id:W,parent_span_id:ae,span_id:te,status:ce,origin:pe,data:me,op:ne}=$.contexts?.trace??{};return{data:me??{},description:$.transaction,op:ne,parent_span_id:ae,span_id:te??"",start_timestamp:$.start_timestamp??0,status:ce,timestamp:$.timestamp,trace_id:W??"",origin:pe,profile_id:me?.[Fh],exclusive_time:me?.[nl],measurements:$.measurements,is_segment:!0}})(D);if(j?.length&&Uh(q,j))return null;if(L){const $=L(q);$?D=Mu(R,{type:"transaction",timestamp:(V=$).timestamp,start_timestamp:V.start_timestamp,transaction:V.description,contexts:{trace:{trace_id:V.trace_id,span_id:V.span_id,parent_span_id:V.parent_span_id,op:V.op,status:V.status,origin:V.origin,data:{...V.data,...V.profile_id&&{[Fh]:V.profile_id},...V.exclusive_time&&{[nl]:V.exclusive_time}}}},measurements:V.measurements}):Hh()}if(D.spans){const $=[],W=D.spans;for(const te of W)if(j?.length&&Uh(te,j))Sx(W,te);else if(L){const ce=L(te);ce?$.push(ce):(Hh(),$.push(te))}else $.push(te);const ae=D.spans.length-$.length;ae&&_.recordDroppedEvent("before_send","span",ae),D.spans=$}}if(A){if(D.spans){const q=D.spans.length;D.sdkProcessingMetadata={...R.sdkProcessingMetadata,spanCountBeforeProcessing:q}}return A(D,I)}}var V;return D})(this,s,m,n);return(function(_,C){const R=`${C} must return \`null\` or a valid event.`;if(Pu(_))return _.then((I=>{if(!pu(I)&&I!==null)throw qc(R);return I}),(I=>{throw qc(`${C} rejected with ${I}`)}));if(!pu(_)&&_!==null)throw qc(R);return _})(b,h)})).then((m=>{if(m===null){if(this.recordDroppedEvent("before_send",w),c){const C=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",C)}throw Up(`${h} returned \`null\`, will not send event.`)}const b=i.getSession()||o.getSession();if(d&&b&&this._updateSessionFromEvent(b,m),c){const C=(m.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(m.spans?m.spans.length:0);C>0&&this.recordDroppedEvent("before_send","span",C)}const _=m.transaction_info;if(c&&_&&m.transaction!==t.transaction){const C="custom";m.transaction_info={..._,source:C}}return this.sendEvent(m,n),m})).then(null,(m=>{throw By(m)||Hy(m)?m:(this.captureException(m,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:m}),qc(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 672Reason: ${m}`))}))}_process(t){this._numProcessing++,t.then((n=>(this._numProcessing--,n)),(n=>(this._numProcessing--,n)))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map((([n,i])=>{const[o,s]=n.split(":");return{reason:o,category:s,quantity:i}}))}_flushOutcomes(){zt&<.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0)return void(zt&<.log("No outcomes to send"));if(!this._dsn)return void(zt&<.log("No dsn provided, will not send outcomes"));zt&<.log("Sending outcomes:",t);const n=(i=t,rl((o=this._options.tunnel&&hu(this._dsn))?{dsn:o}:{},[[{type:"client_report"},{timestamp:ls(),discarded_events:i}
672]]));var i,o;this.sendEnvelope(n)}}function zp(e){return e.type===void 0}function Gy(e){return e.type==="transaction"}function Vp(e,t){const n=(function(s){return Uy().get(s)})(e)??[];if(n.length===0)return;const i=e.getOptions(),o=(function(s,l,c,d){const f={};return l?.sdk&&(f.sdk={name:l.sdk.name,version:l.sdk.version}),c&&d&&(f.dsn=hu(d)),rl(f,[(h=s,[{type:"log",item_count:h.length,content_type:"application/vnd.sentry.items.log+json"},{items:h}])]);var h})(n,i._metadata,i.tunnel,e.getDsn());Uy().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function Uy(){return du("clientToLogBufferMap",(()=>new WeakMap))}function Dx(e,t){t.debug===!0&&(zt?lt.enable():cl((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),zn().update(t.initialScope);const n=new e(t);return(function(i){zn().setClient(i)})(n),n.init(),n}const T6=Symbol.for("SentryBufferFullError");function Hx(e){const t=[];function n(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(i){if(!(e===void 0||t.length<e))return qd(T6);const o=i();return t.indexOf(o)===-1&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(i){return new Ao(((o,s)=>{let l=t.length;if(!l)return o(!0);const c=setTimeout((()=>{i&&i>0&&o(!1)}),i);t.forEach((d=>{us(d).then((()=>{--l||(clearTimeout(c),o(!0))}),s)}))}))}}}const Bx=6e4;function Gx(e,{statusCode:t,headers:n},i=Date.now()){const o={...e},s=n?.["x-sentry-rate-limits"],l=n?.["retry-after"];if(s)for(const c of s.trim().split(",")){const[d,f,,,h]=c.split(":",5),g=parseInt(d,10),w=1e3*(isNaN(g)?60:g);if(f)for(const m of f.split(";"))m==="metric_bucket"&&h&&!h.split(";").includes("custom")||(o[m]=i+w);else o.all=i+w}else l?o.all=i+(function(c,d=Date.now()){const f=parseInt(`${c}`,10);if(!isNaN(f))return 1e3*f;const h=Date.parse(`${c}`);return isNaN(h)?Bx:h-d})(l,i):t===429&&(o.all=i+6e4);return o}const Ux=64;function zx(e,t,n=Hx(e.bufferSize||Ux)){let i={};return{send:function(o){const s=[];if(Cy(o,((d,f)=>{const h=xy(f);(function(g,w,m=Date.now()){return(function(b,_){return b[_]||b.all||0})(g,w)>m})(i,h)?e.recordDroppedEvent("ratelimit_backoff",h):s.push(d)})),s.length===0)return us({});const l=rl(o[0],s),c=d=>{Cy(l,((f,h)=>{e.recordDroppedEvent(d,xy(h))}))};return n.add((()=>t({body:bx(l)}).then((d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&zt&<.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),i=Gx(i,d),d)),(d=>{throw c("network_error"),zt&<.error("Encountered error running transport request:",d),d})))).then((d=>d),(d=>{if(d===T6)return zt&<.error("Skipped sending event because buffer is full."),c("queue_overflow"),us({});throw d}))},flush:o=>n.drain(o)}}function Vx(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function P6(e={}){const t=e.client||Un();if(!(function(){const c=Un();return c?.getOptions().enabled!==!1&&!!c?.getTransport()})()||!t)return{};const n=fl(ps());if(n.getTraceData)return n.getTraceData(e);const i=e.scope||zn(),o=e.span||hi(),s=o?(function(c){const{traceId:d,spanId:f}=c.spanContext();return vy(d,f,is(c))})(o):(function(c){const{traceId:d,sampled:f,propagationSpanId:h}=c.getPropagationContext();return vy(d,h,f)})(i),l=dx(o?xo(o):g6(t,i));return d6.test(s)?{"sentry-trace":s,baggage:l}:(lt.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}const Wx=100;function qo(e,t){const n=Un(),i=Po();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Wx}=n.getOptions();if(s<=0)return;const l={timestamp:ls(),...e},c=o?cl((()=>o(l,t))):l;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),i.addBreadcrumb(c,s))}let zy;const Vy=new WeakMap,qx=()=>({name:"FunctionToString",setupOnce(){zy=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=G0(this),n=Vy.has(Un())&&t!==void 0?t:this;return zy.apply(n,e)}}catch{}},setup(e){Vy.set(e,!0)}}),$x=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Qx=(e={})=>{let t;return{name:"EventFilters",setup(n){const i=n.getOptions();t=Wy(e,i)},processEvent(n,i,o){if(!t){const s=o.getOptions();t=Wy(e,s)}return(function(s,l){if(s.type){if(s.type==="transaction"&&(function(c,d){if(!d?.length)return!1;const f=c.transaction;return!!f&&uo(f,d)})(s,l.ignoreTransactions))return zt&<.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 673Event: ${Zo(s)}`),!0}else{if((function(c,d){return d?.length?A6(c).some((f=>uo(f,d))):!1})(s,l.ignoreErrors))return zt&<.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 674Event: ${Zo(s)}`),!0;if((function(c){return c.exception?.values?.length?!c.message&&!c.exception.values.some((d=>d.stacktrace||d.type&&d.type!=="Error"||d.value)):!1})(s))return zt&<.warn(`Event dropped due to not having an error message, error type or stacktrace. 675Event: ${Zo(s)}`),!0;if((function(c,d){if(!d?.length)return!1;const f=$c(c);return!!f&&uo(f,d)})(s,l.denyUrls))return zt&<.warn(`Event dropped due to being matched by \`denyUrls\` option. 676Event: ${Zo(s)}. 677Url: ${$c(s)}`),!0;if(!(function(c,d){if(!d?.length)return!0;const f=$c(c);return!f||uo(f,d)})(s,l.allowUrls))return zt&<.warn(`Event dropped due to not being matched by \`allowUrls\` option. 678Event: ${Zo(s)}. 679Url: ${$c(s)}`),!0}return!1})(n,t)?null:n}}},Yx=(e={})=>({...Qx(e),name:"InboundFilters"});function Wy(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:$x],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function $c(e){try{const t=[...e.exception?.values??[]].reverse().find((i=>i.mechanism?.parent_id===void 0&&i.stacktrace?.frames?.length)),n=t?.stacktrace?.frames;return n?(function(i=[]){for(let o=i.length-1;o>=0;o--){const s=i[o];if(s&&s.filename!=="<anonymous>"&&s.filename!=="[native code]")return s.filename||null}return null})(n):null}catch{return zt&<.error(`Cannot extract url for event ${Zo(e)}`),null}}
679function Zx(e,t,n,i,o,s){if(!o.exception?.values||!s||!Na(s.originalException,Error))return;const l=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;l&&(o.exception.values=Vh(e,t,i,s.originalException,n,o.exception.values,l,0))}function Vh(e,t,n,i,o,s,l,c){if(s.length>=n+1)return s;let d=[...s];if(Na(i[o],Error)){qy(l,c);const f=e(t,i[o]),h=d.length;$y(f,o,h,c),d=Vh(e,t,n,i[o],o,[f,...d],f,h)}return Array.isArray(i.errors)&&i.errors.forEach(((f,h)=>{if(Na(f,Error)){qy(l,c);const g=e(t,f),w=d.length;$y(g,`errors[${h}]`,w,c),d=Vh(e,t,n,f,o,[g,...d],g,w)}})),d}function qy(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function $y(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function Kx(){"console"in Dn&&ZC.forEach((function(e){e in Dn.console&&pi(Dn.console,e,(function(t){return Gd[e]=t,function(...n){Mi("console",{args:n,level:e}),Gd[e]?.apply(Dn.console,n)}}))}))}function Jx(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Xx=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if((function(n,i){return i?!!((function(o,s){const l=o.message,c=s.message;return!(!l&&!c||l&&!c||!l&&c||l!==c||!Yy(o,s)||!Qy(o,s))})(n,i)||(function(o,s){const l=Zy(s),c=Zy(o);return!(!l||!c||l.type!==c.type||l.value!==c.value||!Yy(o,s)||!Qy(o,s))})(n,i)):!1})(t,e))return zt&<.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function Qy(e,t){let n=ay(e),i=ay(t);if(!n&&!i)return!0;if(n&&!i||!n&&i||i.length!==n.length)return!1;for(let o=0;o<i.length;o++){const s=i[o],l=n[o];if(s.filename!==l.filename||s.lineno!==l.lineno||s.colno!==l.colno||s.function!==l.function)return!1}return!0}function Yy(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return n.join("")===i.join("")}catch{return!1}}function Zy(e){return e.exception?.values?.[0]}const eS="thismessage:/";function L6(e){return"isRelative"in e}function M6(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,i=n?eS:void 0;try{if("canParse"in URL&&!URL.canParse(e,i))return;const o=new URL(e,i);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function tS(e){if(L6(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function qs(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}function nS(e,t,n,i,o="auto.http.browser"){if(!e.fetchData)return;const{method:s,url:l}=e.fetchData,c=Co()&&t(l);if(e.endTimestamp&&c){const g=e.fetchData.__span;if(!g)return;const w=i[g];return void(w&&((function(m,b){if(b.response){s6(m,b.response.status);const _=b.response?.headers?.get("content-length");if(_){const C=parseInt(_);C>0&&m.setAttribute("http.response_content_length",C)}}else b.error&&m.setStatus({code:_r,message:"internal_error"});m.end()})(w,e),delete i[g]))}const d=!!hi(),f=c&&d?pl((function(g,w,m){const b=M6(g);return{name:b?`${w} ${tS(b)}`:w,attributes:rS(g,b,w,m)}})(l,s,o)):new So;if(e.fetchData.__span=f.spanContext().spanId,i[f.spanContext().spanId]=f,n(e.fetchData.url)){const g=e.args[0],w=e.args[1]||{},m=(function(b,_,C){const R=P6({span:C}),I=R["sentry-trace"],k=R.baggage;if(!I)return;const A=_.headers||(X5(b)?b.headers:void 0);if(A){if((function(L){return typeof Headers<"u"&&Na(L,Headers)})(A)){const L=new Headers(A);if(L.get("sentry-trace")||L.set("sentry-trace",I),k){const j=L.get("baggage");j?Qc(j)||L.set("baggage",`${j},${k}`):L.set("baggage",k)}return L}if(Array.isArray(A)){const L=[...A];A.find((D=>D[0]==="sentry-trace"))||L.push(["sentry-trace",I]);const j=A.find((D=>D[0]==="baggage"&&Qc(D[1])));return k&&!j&&L.push(["baggage",k]),L}{const L="sentry-trace"in A?A["sentry-trace"]:void 0,j="baggage"in A?A.baggage:void 0,D=j?Array.isArray(j)?[...j]:[j]:[],V=j&&(Array.isArray(j)?j.find((q=>
679Qc(q))):Qc(j));return k&&!V&&D.push(k),{...A,"sentry-trace":L??I,baggage:D.length>0?D.join(","):void 0}}}return{...R}})(g,w,Co()&&d?f:void 0);m&&(e.args[1]=w,w.headers=m)}const h=Un();if(h){const g={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};h.emit("beforeOutgoingRequestSpan",f,g)}return f}function Qc(e){return e.split(",").some((t=>t.trim().startsWith(z0)))}function rS(e,t,n,i){const o={url:e,type:"fetch","http.method":n,[Cr]:i,[Da]:"http.client"};return t&&(L6(t)||(o["http.url"]=t.href,o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function Ky(e){return e===void 0?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const Kl=Dn;function Wh(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function iS(){if(typeof EdgeRuntime=="string")return!0;if(!(function(){if(!("fetch"in Kl))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}})())return!1;if(Wh(Kl.fetch))return!0;let e=!1;const t=Kl.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Wh(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){zt&<.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function I6(e,t){const n="fetch";wo(n,e),bo(n,(()=>R6(void 0,t)))}function R6(e,t=!1){t&&!iS()||pi(Dn,"fetch",(function(n){return function(...i){const o=new Error,{method:s,url:l}=(function(d){if(d.length===0)return{method:"GET",url:""};if(d.length===2){const[h,g]=d;return{url:Jy(h),method:qh(g,"method")?String(g.method).toUpperCase():"GET"}}const f=d[0];return{url:Jy(f),method:qh(f,"method")?String(f.method).toUpperCase():"GET"}})(i),c={args:i,fetchData:{method:s,url:l},startTimestamp:1e3*Or(),virtualError:o,headers:oS(i)};return e||Mi("fetch",{...c}),n.apply(Dn,i).then((async d=>(e?e(d):Mi("fetch",{...c,endTimestamp:1e3*Or(),response:d}),d)),(d=>{if(Mi("fetch",{...c,endTimestamp:1e3*Or(),error:d}),D0(d)&&d.stack===void 0&&(d.stack=o.stack,wi(d,"framesToPop",1)),d instanceof TypeError&&(d.message==="Failed to fetch"||d.message==="Load failed"||d.message==="NetworkError when attempting to fetch resource."))try{const f=new URL(c.fetchData.url);d.message=`${d.message} (${f.host})`}catch{}throw d}))}}))}function aS(e){let t;try{t=e.clone()}catch{return}(async function(n,i){if(n?.body){const o=n.body,s=o.getReader(),l=setTimeout((()=>{o.cancel().then(null,(()=>{}))}),9e4);let c=!0;for(;c;){let d;try{d=setTimeout((()=>{o.cancel().then(null,(()=>{}))}),5e3);const{done:f}=await s.read();clearTimeout(d),f&&(i(),c=!1)}catch{c=!1}finally{clearTimeout(d)}}clearTimeout(l),s.releaseLock(),o.cancel().then(null,(()=>{}))}})(t,(()=>{Mi("fetch-body-resolved",{endTimestamp:1e3*Or(),response:e})}))}function qh(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Jy(e){return typeof e=="string"?e:e?qh(e,"url")?e.url:e.toString?e.toString():"":""}function oS(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(X5(t))return new Headers(t.headers)}catch{}}const kn=Dn;let $h=0;function Xy(){return $h>0}function il(e,t={}){if(!(function(i){return typeof i=="function"})(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(G0(e))return e}catch{return e}const n=function(...i){try{const o=i.map((s=>il(s,t)));return e.apply(this,o)}catch(o){throw $h++,setTimeout((()=>{$h--})),wf((s=>{var l;s.addEventProcessor((c=>(t.mechanism&&(Oh(c,void 0),Js(c,t.mechanism)),c.extra={...c.extra,arguments:i},c))),l=o,zn().captureException(l,void 0)})),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}catch{}t6(n,e),wi(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function Qh(){const e=Lu(),{referrer:t}=kn.document||{},{userAgent:n}=kn.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Q0(e,t){const n=Y0(e,t),i={type:uS(t),value:cS(t)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function sS(e,t,n,i){const o=Un(),s=o?.getOptions().normalizeDepth,l=(function(f){for(const h in f)if(Object.prototype.hasOwnProperty.call(f,h)){const g=f[h];if(g instanceof Error)return g}})(t),c={__serialized__:v6(t,s)};if(l)return{exception:{values:[Q0(e,l)]},extra:c};const d={exception:{values:[{type:yf(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:dS(t,{isUnhandledRejection:i})}]},extra:c};if(n){const f=Y0(e,n);f.length&&(d.exception.values[0].stacktrace={frames:f})}return d}function Wp(e,t){return{exception:{values:[Q0(e,t)]}}}function Y0(e,t){const n=t.stacktrace||t.stack||"",i=(function(s){return s&&lS.test(s.message)?1:0})(t),o=(function(s){return typeof s.framesToPop=="number"?s.framesToPop:0})(t);try{return e(n,i,o)}catch{}return[]}const lS=/Minified React error #\d+;/i;function j6(e){return typeof WebAssembly<"u"&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function uS(e){const t=e?.name;return!t&&j6(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function cS(e){const t=e?.message;return j6(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Yh(e,t,n,i,o){let s;if(K5(t)&&t.error)return Wp(e,t.error);if(sy(t)||dl(t,"DOMException")){const l=t;if("stack"in t)s=Wp(e,t);else{const c=l.name||(sy(l)?"DOMError":"DOMException"),d=l.message?`${c}: ${l.message}`:c;s=Zh(e,d,n,i),Oh(s,d)}return"code"in l&&(s.tags={...s.tags,"DOMException.code":`${l.code}`}),s}return D0(t)?Wp(e,t):pu(t)||yf(t)?(s=sS(e,t,n,o),Js(s,{synthetic:!0}),s):(s=Zh(e,t,n,i),Oh(s,`${t}`),Js(s,{synthetic:!0}),s)}function Zh(e,t,n,i){const o={};if(i&&n){const s=Y0(e,n);s.length&&(o.exception={values:[{value:t,stacktrace:{frames:s}}]}),Js(o,{synthetic:!0})}
679if(H0(t)){const{__sentry_template_string__:s,__sentry_template_values__:l}=t;return o.logentry={message:s,params:l},o}return o.message=t,o}function dS(e,{isUnhandledRejection:t}){const n=(function(o,s=40){const l=Object.keys(n6(o));l.sort();const c=l[0];if(!c)return"[object has no keys]";if(c.length>=s)return Ud(c,s);for(let d=l.length;d>0;d--){const f=l.slice(0,d).join(", ");if(!(f.length>s))return d===l.length?f:Ud(f,s)}return""})(e),i=t?"promise rejection":"exception";return K5(e)?`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``:yf(e)?`Event \`${(function(o){try{const s=Object.getPrototypeOf(o);return s?s.constructor.name:void 0}catch{}})(e)}\` (type=${e.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}class fS extends Fx{constructor(t){const n=(i=t,{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:kn.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...i});var i;(function(c,d,f=[d],h="npm"){const g=c._metadata||{};g.sdk||(g.sdk={name:`sentry.javascript.${d}`,packages:f.map((w=>({name:`${h}:@sentry/${w}`,version:ts}))),version:ts}),c._metadata=g})(n,"browser",["browser"],kn.SENTRY_SDK_SOURCE||"npm"),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:o,sendClientReports:s,enableLogs:l}=this._options;kn.document&&(s||l)&&kn.document.addEventListener("visibilitychange",(()=>{kn.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),l&&Vp(this))})),l&&(this.on("flush",(()=>{Vp(this)})),this.on("afterCaptureLog",(()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout((()=>{Vp(this)}),5e3)}))),o&&this.on("beforeSendSession",Vx)}eventFromException(t,n){return(function(i,o,s,l){const c=Yh(i,o,s?.syntheticException||void 0,l);return Js(c),c.level="error",s?.event_id&&(c.event_id=s.event_id),us(c)})(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",i){return(function(o,s,l="info",c,d){const f=Zh(o,s,c?.syntheticException||void 0,d);return f.level=l,c?.event_id&&(f.event_id=c.event_id),us(f)})(this._options.stackParser,t,n,i,this._options.attachStacktrace)}_prepareEvent(t,n,i,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,i,o)}}const bf=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,on=Dn,gu=(e,t,n,i)=>{let o,s;return l=>{t.value>=0&&(l||i)&&(s=t.value-(o??0),(s||o===void 0)&&(o=t.value,t.delta=s,t.rating=((c,d)=>c>d[1]?"poor":c>d[0]?"needs-improvement":"good")(t.value,n),e(t)))}},vu=(e=!0)=>{const t=on.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},hl=()=>vu()?.activationStart??0,yu=(e,t=-1)=>{const n=vu();let i="navigate";return n&&(on.document?.prerendering||hl()>0?i="prerender":on.document?.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},qp=new WeakMap;function Z0(e,t){return qp.get(e)||qp.set(e,new t),qp.get(e)}class $d{constructor(){$d.prototype.__init.call(this),$d.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],i=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&i&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const al=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((o=>{Promise.resolve().then((()=>{t(o.getEntries())}))}));return i.observe({type:e,buffered:!0,...n}),i}}catch{}},K0=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Jl=-1;const Qd=e=>{on.document.visibilityState==="hidden"&&Jl>-1&&(Jl=e.type==="visibilitychange"?e.timeStamp:0,pS())},pS=()=>{removeEventListener("visibilitychange",Qd,!0),removeEventListener("prerenderingchange",Qd,!0)},J0=()=>
679{if(on.document&&Jl<0){const e=hl();Jl=(on.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter((n=>n.name==="hidden"&&n.startTime>e))[0]?.startTime)??(on.document?.visibilityState!=="hidden"||on.document?.prerendering?1/0:0),addEventListener("visibilitychange",Qd,!0),addEventListener("prerenderingchange",Qd,!0)}return{get firstHiddenTime(){return Jl}}},_f=e=>{on.document?.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},hS=[1800,3e3],mS=[.1,.25],gS=(e,t={})=>{((n,i={})=>{_f((()=>{const o=J0(),s=yu("FCP");let l;const c=al("paint",(d=>{for(const f of d)f.name==="first-contentful-paint"&&(c.disconnect(),f.startTime<o.firstHiddenTime&&(s.value=Math.max(f.startTime-hl(),0),s.entries.push(f),l(!0)))}));c&&(l=gu(n,s,hS,i.reportAllChanges))}))})(K0((()=>{const n=yu("CLS",0);let i;const o=Z0(t,$d),s=c=>{for(const d of c)o._processEntry(d);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,i())},l=al("layout-shift",s);l&&(i=gu(e,n,mS,t.reportAllChanges),on.document?.addEventListener("visibilitychange",(()=>{on.document?.visibilityState==="hidden"&&(s(l.takeRecords()),i(!0))})),on?.setTimeout?.(i))})))};let O6=0,$p=1/0,Yc=0;const vS=e=>{e.forEach((t=>{t.interactionId&&($p=Math.min($p,t.interactionId),Yc=Math.max(Yc,t.interactionId),O6=Yc?(Yc-$p)/7+1:0)}))};let Kh;const e8=()=>Kh?O6:performance.interactionCount||0,yS=()=>{"interactionCount"in performance||Kh||(Kh=al("event",vS,{type:"event",buffered:!0,durationThreshold:0}))};let t8=0;class Yd{constructor(){Yd.prototype.__init.call(this),Yd.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){t8=e8(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor((e8()-t8)/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!t.interactionId&&t.entryType!=="first-input")return;const n=this._longestInteractionList.at(-1);let i=this._longestInteractionMap.get(t.interactionId);if(i||this._longestInteractionList.length<10||t.duration>n._latency){if(i?t.duration>i._latency?(i.entries=[t],i._latency=t.duration):t.duration===i._latency&&t.startTime===i.entries[0].startTime&&i.entries.push(t):(i={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(i.id,i),this._longestInteractionList.push(i)),this._longestInteractionList.sort(((o,s)=>s._latency-o._latency)),this._longestInteractionList.length>10){const o=this._longestInteractionList.splice(10);for(const s of o)this._longestInteractionMap.delete(s.id)}this._onAfterProcessingINPCandidate?.(i)}}}const X0=e=>{const t=n=>{n.type!=="pagehide"&&on.document?.visibilityState!=="hidden"||e(n)};on.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},N6=e=>{const t=on.requestIdleCallback||on.setTimeout;on.document?.visibilityState==="hidden"?e():(t(e=K0(e)),X0(e))},wS=[200,500],bS=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&_f((()=>{yS();const n=yu("INP");let i;const o=Z0(t,Yd),s=c=>{N6((()=>{for(const f of c)o._processEntry(f);const d=o._estimateP98LongestInteraction();d&&d._latency!==n.value&&(n.value=d._latency,n.entries=d.entries,i())}))},l=al("event",s,{durationThreshold:t.durationThreshold??40});i=gu(e,n,wS,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),X0((()=>{s(l.takeRecords()),i(!0)})))}))};class _S{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const CS=[2500,4e3],xS=(e,t={})=>{_f((()=>{const n=J0(),i=yu("LCP");let o;const s=Z0(t,_S),l=d=>{t.reportAllChanges||(d=d.slice(-1));for(const f of d)s._processEntry(f),f.startTime<n.firstHiddenTime&&(i.value=Math.max(f.startTime-hl(),0),i.entries=[f],o())},c=al("largest-contentful-paint",l);if(c){o=gu(e,i,CS,t.reportAllChanges);const d=K0((()=>{l(c.takeRecords()),c.disconnect(),o(!0)}));for(const f of["keydown","click","visibilitychange"])on.document&&addEventListener(f,(()=>N6(d)),{capture:!0,once:!0})}}))},SS=[800,1800],Jh=e=>{on.document?.prerendering?_f((()=>Jh(e))):on.document?.readyState!=="complete"?addEventListener("load",(()=>Jh(e)),!0):setTimeout(e)},AS=(e,t={})=>{const n=yu("TTFB"),i=gu(e,n,SS,t.reportAllChanges);Jh((()=>{const o=vu();o&&(n.value=Math.max(o.responseStart-hl(),0),n.entries=[o],i(!0))}))},Xl={},Zd={};let F6,D6,H6,B6;function G6(e,t=!1){return Cf("cls",e,ES,F6,t)}function U6(e,t=!1){return Cf("lcp",e,kS,D6,t)}function Fs(e,t){return z6(e,t),Zd[e]||((function(n){const i={};n==="event"&&(i.durationThreshold=0),al(n,(o=>{Nu(n,{entries:o})}),i)})(e),Zd[e]=!0),V6(e,t)}function Nu(e,t){const n=Xl[e];
679if(n?.length)for(const i of n)try{i(t)}catch(o){bf&<.error(`Error while triggering instrumentation handler. 680Type: ${e} 681Name: ${Oa(i)} 682Error:`,o)}}function ES(){return gS((e=>{Nu("cls",{metric:e}),F6=e}),{reportAllChanges:!0})}function kS(){return xS((e=>{Nu("lcp",{metric:e}),D6=e}),{reportAllChanges:!0})}function TS(){return AS((e=>{Nu("ttfb",{metric:e}),H6=e}))}function PS(){return bS((e=>{Nu("inp",{metric:e}),B6=e}))}function Cf(e,t,n,i,o=!1){let s;return z6(e,t),Zd[e]||(s=n(),Zd[e]=!0),i&&t({metric:i}),V6(e,t,o?s:void 0)}function z6(e,t){Xl[e]=Xl[e]||[],Xl[e].push(t)}function V6(e,t,n){return()=>{n&&n();const i=Xl[e];if(!i)return;const o=i.indexOf(t);o!==-1&&i.splice(o,1)}}function Qp(e){return typeof e=="number"&&isFinite(e)}function co(e,t,n,{...i}){const o=In(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),q0(e,(()=>{const s=pl({startTime:t,...i});return s&&s.end(n),s}))}function em(e){const t=Un();if(!t)return;const{name:n,transaction:i,attributes:o,startTime:s}=e,{release:l,environment:c,sendDefaultPii:d}=t.getOptions(),f=t.getIntegrationByName("Replay"),h=f?.getReplayId(),g=zn(),w=g.getUser(),m=w!==void 0?w.email||w.id||w.ip_address:void 0;let b;try{b=g.getScopeData().contexts.profile.profile_id}catch{}return pl({name:n,attributes:{release:l,environment:c,user:m||void 0,profile_id:b||void 0,replay_id:h||void 0,transaction:i,"user_agent.original":on.navigator?.userAgent,"client.address":d?"{{auto}}":void 0,...o},startTime:s,experimental:{standalone:!0}})}function xf(){return on.addEventListener&&on.performance}function ur(e){return e/1e3}function W6(e){let t="unknown",n="unknown",i="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=i==="h"?"http":i,n=e.split(i)[1];break}i+=o}return i===e&&(t=i),{name:t,version:n}}function q6(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function $6(e,t){let n,i=!1;function o(c){!i&&n&&t(c,n),i=!0}X0((()=>{o("pagehide")}));const s=e.on("beforeStartNavigationSpan",((c,d)=>{d?.isRedirect||(o("navigation"),n8(s,l))})),l=e.on("afterStartPageLoadSpan",(c=>{n=c.spanContext().spanId,n8(l)}))}function n8(...e){e.forEach((t=>t&&setTimeout(t,0)))}function LS(e){let t,n=0;if(!q6("layout-shift"))return;const i=G6((({metric:o})=>{const s=o.entries[o.entries.length-1];s&&(n=o.value,t=s)}),!0);$6(e,((o,s)=>{(function(l,c,d,f){bf&<.log(`Sending CLS span (${l})`);const h=ur((gi()||0)+(c?.startTime||0)),g=zn().getScopeData().transactionName,w=c?la(c.sources[0]?.node):"Layout shift",m={[Cr]:"auto.http.browser.cls",[Da]:"ui.webvital.cls",[nl]:c?.duration||0,"sentry.pageload.span_id":d,"sentry.report_event":f};c?.sources&&c.sources.forEach(((_,C)=>{m[`cls.source.${C+1}`]=la(_.node)}));const b=em({name:w,transaction:g,attributes:m,startTime:h});b&&(b.addEvent("cls",{[Ru]:"",[ju]:l}),b.end(h))})(n,t,s,o),i()}))}function MS(e){let t,n=0;if(!q6("largest-contentful-paint"))return;const i=U6((({metric:o})=>{const s=o.entries[o.entries.length-1];s&&(n=o.value,t=s)}),!0);$6(e,((o,s)=>{(function(l,c,d,f){bf&<.log(`Sending LCP span (${l})`);const h=ur((gi()||0)+(c?.startTime||0)),g=zn().getScopeData().transactionName,w=c?la(c.element):"Largest contentful paint",m={[Cr]:"auto.http.browser.lcp",[Da]:"ui.webvital.lcp",[nl]:0,"sentry.pageload.span_id":d,"sentry.report_event":f};c&&(c.element&&(m["lcp.element"]=la(c.element)),c.id&&(m["lcp.id"]=c.id),c.url&&(m["lcp.url"]=c.url.trim().slice(0,200)),c.loadTime!=null&&(m["lcp.loadTime"]=c.loadTime),c.renderTime!=null&&(m["lcp.renderTime"]=c.renderTime),c.size!=null&&(m["lcp.size"]=c.size));const b=em({name:w,transaction:g,attributes:m,startTime:h});b&&(b.addEvent("lcp",{[Ru]:"millisecond",[ju]:l}),b.end(h))})(n,t,s,o),i()}))}const IS=2147483647;let ai,hd,r8=0,Vi={};function RS({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const i=xf();if(i&&gi()){i.mark&&on.performance.mark("sentry-tracing-init");const o=t?MS(n):U6((({metric:c})=>{const d=c.entries[c.entries.length-1];d&&(Vi.lcp={value:c.value,unit:"millisecond"},ai=d)}),!0),s=Cf("ttfb",(({metric:c})=>
682{c.entries[c.entries.length-1]&&(Vi.ttfb={value:c.value,unit:"millisecond"})}),TS,H6),l=e?LS(n):G6((({metric:c})=>{const d=c.entries[c.entries.length-1];d&&(Vi.cls={value:c.value,unit:""},hd=d)}),!0);return()=>{o?.(),s(),l?.()}}return()=>{}}function jS(e,t){const n=xf(),i=gi();if(!n?.getEntries||!i)return;const o=ur(i),s=n.getEntries(),{op:l,start_timestamp:c}=In(e);s.slice(r8).forEach((d=>{const f=ur(d.startTime),h=ur(Math.max(0,d.duration));if(!(l==="navigation"&&c&&o+f<c))switch(d.entryType){case"navigation":(function(g,w,m){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((b=>{Zc(g,w,b,m)})),Zc(g,w,"secureConnection",m,"TLS/SSL"),Zc(g,w,"fetch",m,"cache"),Zc(g,w,"domainLookup",m,"DNS"),(function(b,_,C){const R=C+ur(_.requestStart),I=C+ur(_.responseEnd),k=C+ur(_.responseStart);_.responseEnd&&(co(b,R,I,{op:"browser.request",name:_.name,attributes:{[Cr]:"auto.ui.browser.metrics"}}),co(b,k,I,{op:"browser.response",name:_.name,attributes:{[Cr]:"auto.ui.browser.metrics"}}))})(g,w,m)})(e,d,o);break;case"mark":case"paint":case"measure":{(function(m,b,_,C,R,I){if(["mark","measure"].includes(b.entryType)&&uo(b.name,I))return;const k=vu(!1),A=ur(k?k.requestStart:0),L=R+Math.max(_,A),j=R+_,D=j+C,V={[Cr]:"auto.resource.browser.metrics"};L!==j&&(V["sentry.browser.measure_happened_before_request"]=!0,V["sentry.browser.measure_start_time"]=L),(function(q,$){try{const W=$.detail;if(!W)return;if(typeof W=="object"){for(const[ae,te]of Object.entries(W))if(te&&fu(te))q[`sentry.browser.measure.detail.${ae}`]=te;else if(te!==void 0)try{q[`sentry.browser.measure.detail.${ae}`]=JSON.stringify(te)}catch{}return}if(fu(W))return void(q["sentry.browser.measure.detail"]=W);try{q["sentry.browser.measure.detail"]=JSON.stringify(W)}catch{}}catch{}})(V,b),L<=D&&co(m,L,D,{name:b.name,op:b.entryType,attributes:V})})(e,d,f,h,o,t.ignorePerformanceApiSpans);const g=J0(),w=d.startTime<g.firstHiddenTime;d.name==="first-paint"&&w&&(Vi.fp={value:d.startTime,unit:"millisecond"}),d.name==="first-contentful-paint"&&w&&(Vi.fcp={value:d.startTime,unit:"millisecond"});break}case"resource":(function(g,w,m,b,_,C,R){if(w.initiatorType==="xmlhttprequest"||w.initiatorType==="fetch")return;const I=w.initiatorType?`resource.${w.initiatorType}`:"resource.other";if(R?.includes(I))return;const k=qs(m),A={[Cr]:"auto.resource.browser.metrics"};Yp(A,w,"transferSize","http.response_transfer_size"),Yp(A,w,"encodedBodySize","http.response_content_length"),Yp(A,w,"decodedBodySize","http.decoded_response_content_length");const L=w.deliveryType;L!=null&&(A["http.response_delivery_type"]=L);const j=w.renderBlockingStatus;if(j&&(A["resource.render_blocking_status"]=j),k.protocol&&(A["url.scheme"]=k.protocol.split(":").pop()),k.host&&(A["server.address"]=k.host),A["url.same_origin"]=m.includes(on.location.origin),w.nextHopProtocol!=null){const{name:q,version:$}=W6(w.nextHopProtocol);A["network.protocol.name"]=q,A["network.protocol.version"]=$}const D=C+b,V=D+_;co(g,D,V,{name:m.replace(on.location.origin,""),op:I,attributes:A})})(e,d,d.name,f,h,o,t.ignoreResourceSpans)}})),r8=Math.max(s.length-1,0),(function(d){const f=on.navigator;if(!f)return;const h=f.connection;h&&(h.effectiveType&&d.setAttribute("effectiveConnectionType",h.effectiveType),h.type&&d.setAttribute("connectionType",h.type),Qp(h.rtt)&&(Vi["connection.rtt"]={value:h.rtt,unit:"millisecond"})),Qp(f.deviceMemory)&&d.setAttribute("deviceMemory",`${f.deviceMemory} GB`),Qp(f.hardwareConcurrency)&&d.setAttribute("hardwareConcurrency",String(f.hardwareConcurrency))})(e),l==="pageload"&&((function(d){const f=vu(!1);if(!f)return;const{responseStart:h,requestStart:g}=f;g<=h&&(d["ttfb.requestTime"]={value:h-g,unit:"millisecond"})})(Vi),t.recordClsOnPageloadSpan||delete Vi.cls,t.recordLcpOnPageloadSpan||delete Vi.lcp,Object.entries(Vi).forEach((([d,f])=>{(function(h,g,w,m=hi()){const b=m&&Qr(m);b&&(zt&<.log(`[Measurement] Setting measurement on root span: ${h} = ${g} ${w}`),b.addEvent(h,{[ju]:g,[Ru]:w}))})(d,f.value,f.unit)})),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",hl()),(function(d,f){ai&&f.recordLcpOnPageloadSpan&&(ai.element&&d.setAttribute("lcp.element",la(ai.element)),ai.id&&d.setAttribute("lcp.id",ai.id),ai.url&&d.setAttribute("lcp.url",ai.url.trim().slice(0,200)),ai.loadTime!=null&&d.setAttribute("lcp.loadTime",ai.loadTime),ai.renderTime!=null&&d.setAttribute("lcp.renderTime",ai.renderTime),d.setAttribute("lcp.size",ai.size)),hd?.sources&&f.recordClsOnPageloadSpan&&hd.sources.forEac
682h(((h,g)=>d.setAttribute(`cls.source.${g+1}`,la(h.node))))})(e,t)),ai=void 0,hd=void 0,Vi={}}function Zc(e,t,n,i,o=n){const s=(function(d){return d==="secureConnection"?"connectEnd":d==="fetch"?"domainLookupStart":`${d}End`})(n),l=t[s],c=t[`${n}Start`];c&&l&&co(e,i+ur(c),i+ur(l),{op:`browser.${o}`,name:t.name,attributes:{[Cr]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Yp(e,t,n,i){const o=t[n];o!=null&&o<IS&&(e[i]=o)}const OS=({entries:e})=>{const t=hi(),n=t?Qr(t):void 0,i=n?In(n).description:zn().getScopeData().transactionName;e.forEach((o=>{const s=o;if(!s.identifier)return;const l=s.name,c=s.renderTime,d=s.loadTime,[f,h]=d?[ur(d),"load-time"]:c?[ur(c),"render-time"]:[Or(),"entry-emission"],g=l==="image-paint"?ur(Math.max(0,(c??0)-(d??0))):0,w={[Cr]:"auto.ui.browser.elementtiming",[Da]:"ui.elementtiming",[na]:"component","sentry.span_start_time_source":h,"sentry.transaction_name":i,"element.id":s.id,"element.type":s.element?.tagName?.toLowerCase()||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":c,"element.load_time":d,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":l};kx({name:`element[${s.identifier}]`,attributes:w,startTime:f,onlyIfParent:!0},(m=>{m.end(f+g)}))}))},NS=1e3;let i8,Zp,Kp,Kc;function FS(){if(!on.document)return;const e=Mi.bind(null,"dom"),t=a8(e,!0);on.document.addEventListener("click",t,!1),on.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((n=>{const i=on,o=i[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(pi(o,"addEventListener",(function(s){return function(l,c,d){if(l==="click"||l=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},h=f[l]=f[l]||{refCount:0};if(!h.handler){const g=a8(e);h.handler=g,s.call(this,l,g,d)}h.refCount++}catch{}return s.call(this,l,c,d)}})),pi(o,"removeEventListener",(function(s){return function(l,c,d){if(l==="click"||l=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},h=f[l];h&&(h.refCount--,h.refCount<=0&&(s.call(this,l,h.handler,d),h.handler=void 0,delete f[l]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,l,c,d)}})))}))}function a8(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=(function(s){try{return s.target}catch{return null}})(n);if((function(s,l){return s==="keypress"&&(!l?.tagName||l.tagName!=="INPUT"&&l.tagName!=="TEXTAREA"&&!l.isContentEditable)})(n.type,i))return;wi(n,"_sentryCaptured",!0),i&&!i._sentryId&&wi(i,"_sentryId",Ii());const o=n.type==="keypress"?"input":n.type;(function(s){if(s.type!==Zp)return!1;try{if(!s.target||s.target._sentryId!==Kp)return!1}catch{}return!0})(n)||(e({event:n,name:o,global:t}),Zp=n.type,Kp=i?i._sentryId:void 0),clearTimeout(i8),i8=on.setTimeout((()=>{Kp=void 0,Zp=void 0}),NS)}}function tm(e){const t="history";wo(t,e),bo(t,DS)}function DS(){function e(t){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const o=Kc,s=(function(l){try{return new URL(l,on.location.origin).toString()}catch{return l}})(String(i));if(Kc=s,o===s)return t.apply(this,n);Mi("history",{from:o,to:s})}return t.apply(this,n)}}on.addEventListener("popstate",(()=>{const t=on.location.href,n=Kc;Kc=t,n!==t&&Mi("history",{from:n,to:t})})),"history"in Kl&&Kl.history&&(pi(on.history,"pushState",e),pi(on.history,"replaceState",e))}const md={};function o8(e){md[e]=void 0}const Ds="__sentry_xhr_v3__";function Q6(e){wo("xhr",e),bo("xhr",HS)}function HS(){if(!on.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,i){const o=new Error,s=1e3*Or(),l=Ma(i[0])?i[0].toUpperCase():void 0,c=(function(f){if(Ma(f))return f;try{return f.toString()}catch{}})(i[1]);if(!l||!c)return t.apply(n,i);n[Ds]={method:l,url:c,request_headers:{}},l==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const d=()=>{const f=n[Ds];if(f&&n.readyState===4){try{f.status_code=n.status}catch{}Mi("xhr",{endTimestamp:1e3*Or(),startTimestamp:s,xhr:n,virtualError:o})}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply:(f,h,g)=>(d(),f.apply(h,g))}):n.addEventListener("readystatechange",d),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(f,h,g){const[w,m]=g,b=h[Ds
682];return b&&Ma(w)&&Ma(m)&&(b.request_headers[w.toLowerCase()]=m),f.apply(h,g)}}),t.apply(n,i)}}),e.send=new Proxy(e.send,{apply(t,n,i){const o=n[Ds];return o?(i[0]!==void 0&&(o.body=i[0]),Mi("xhr",{startTimestamp:1e3*Or(),xhr:n}),t.apply(n,i)):t.apply(n,i)}})}const Jp=[],gd=new Map;function BS(){if(xf()&&gi()){const e=Cf("inp",GS,PS,B6);return()=>{e()}}return()=>{}}const s8={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},GS=({metric:e})=>{if(e.value==null)return;const t=ur(e.value);if(t>60)return;const n=e.entries.find((g=>g.duration===e.value&&s8[g.name]));if(!n)return;const{interactionId:i}=n,o=s8[n.name],s=ur(gi()+n.startTime),l=hi(),c=l?Qr(l):void 0,d=(i!=null?gd.get(i):void 0)||c,f=d?In(d).description:zn().getScopeData().transactionName,h=em({name:la(n.target),transaction:f,attributes:{[Cr]:"auto.http.browser.inp",[Da]:`ui.interaction.${o}`,[nl]:n.duration},startTime:s});h&&(h.addEvent("inp",{[Ru]:"millisecond",[ju]:e.value}),h.end(s+t))};function US(e,t=(function(n){const i=md[n];if(i)return i;let o=on[n];if(Wh(o))return md[n]=o.bind(on);const s=on.document;if(s&&typeof s.createElement=="function")try{const l=s.createElement("iframe");l.hidden=!0,s.head.appendChild(l);const c=l.contentWindow;c?.[n]&&(o=c[n]),s.head.removeChild(l)}catch(l){bf&<.warn(`Could not create sandbox iframe for ${n} check, bailing to window.${n}: `,l)}return o&&(md[n]=o.bind(on))})("fetch")){let n=0,i=0;return zx(e,(function(o){const s=o.body.length;n+=s,i++;const l={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};if(!t)return o8("fetch"),qd("No fetch implementation available");try{return t(e.url,l).then((c=>(n-=s,i--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}})))}catch(c){return o8("fetch"),n-=s,i--,qd(c)}}))}function Xp(e,t,n,i){const o={filename:e,function:t==="<anonymous>"?ns:t,in_app:!0};return n!==void 0&&(o.lineno=n),i!==void 0&&(o.colno=i),o}const zS=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,VS=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,WS=/\((\S*)(?::(\d+))(?::(\d+))\)/,qS=/at (.+?) ?\(data:(.+?),/,$S=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,QS=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,YS=$5([30,e=>{const t=e.match(qS);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=zS.exec(e);if(n){const[,o,s,l]=n;return Xp(o,ns,+s,+l)}const i=VS.exec(e);if(i){if(i[2]&&i[2].indexOf("eval")===0){const l=WS.exec(i[2]);l&&(i[2]=l[1],i[3]=l[2],i[4]=l[3])}const[o,s]=l8(i[1]||ns,i[2]);return Xp(s,o,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}}],[50,e=>{const t=$S.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=QS.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let n=t[3],i=t[1]||ns;return[i,n]=l8(i,n),Xp(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),l8=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,i=e.indexOf("safari-web-extension")!==-1;return n||i?[e.indexOf("@")!==-1?e.split("@")[0]:ns,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Li=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,u8=1024,ZS=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(n){var i;t.console&&(function(o){const s="console";wo(s,o),bo(s,Kx)})((function(o){return function(s){if(Un()!==o)return;const l={category:"console",data:{arguments:s.args,logger:"console"},level:Jx(s.level),message:ly(s.args," ")};if(s.level==="assert"){if(s.args[0]!==!1)return;l.message=`Assertion failed: ${ly(s.args.slice(1)," ")||"console.assert"}`,l.data.arguments=s.args.slice(1)}
682qo(l,{input:s.args,level:s.level})}})(n)),t.dom&&(i=(function(o,s){return function(l){if(Un()!==o)return;let c,d,f=typeof s=="object"?s.serializeAttribute:void 0,h=typeof s=="object"&&typeof s.maxStringLength=="number"?s.maxStringLength:void 0;h&&h>u8&&(Li&<.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${h} was configured. Sentry will use 1024 instead.`),h=u8),typeof f=="string"&&(f=[f]);try{const w=l.event,m=(function(b){return!!b&&!!b.target})(w)?w.target:w;c=la(m,{keyAttrs:f,maxStringLength:h}),d=e6(m)}catch{c="<unknown>"}if(c.length===0)return;const g={category:`ui.${l.name}`,message:c};d&&(g.data={"ui.component_name":d}),qo(g,{event:l.event,name:l.name,global:l.global})}})(n,t.dom),wo("dom",i),bo("dom",FS)),t.xhr&&Q6((function(o){return function(s){if(Un()!==o)return;const{startTimestamp:l,endTimestamp:c}=s,d=s.xhr[Ds];if(!l||!c||!d)return;const{method:f,url:h,status_code:g,body:w}=d,m={method:f,url:h,status_code:g},b={xhr:s.xhr,input:w,startTimestamp:l,endTimestamp:c},_={category:"xhr",data:m,type:"http",level:Ky(g)};o.emit("beforeOutgoingRequestBreadcrumb",_,b),qo(_,b)}})(n)),t.fetch&&I6((function(o){return function(s){if(Un()!==o)return;const{startTimestamp:l,endTimestamp:c}=s;if(c&&(!s.fetchData.url.match(/sentry_key/)||s.fetchData.method!=="POST"))if(s.fetchData.method,s.fetchData.url,s.error){const d=s.fetchData,f={data:s.error,input:s.args,startTimestamp:l,endTimestamp:c},h={category:"fetch",data:d,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",h,f),qo(h,f)}else{const d=s.response,f={...s.fetchData,status_code:d?.status};s.fetchData.request_body_size,s.fetchData.response_body_size;const h={input:s.args,response:d,startTimestamp:l,endTimestamp:c},g={category:"fetch",data:f,type:"http",level:Ky(f.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",g,h),qo(g,h)}}})(n)),t.history&&tm((function(o){return function(s){if(Un()!==o)return;let l=s.from,c=s.to;const d=qs(kn.location.href);let f=l?qs(l):void 0;const h=qs(c);f?.path||(f=d),d.protocol===h.protocol&&d.host===h.host&&(c=h.relative),d.protocol===f.protocol&&d.host===f.host&&(l=f.relative),qo({category:"navigation",data:{from:l,to:c}})}})(n)),t.sentry&&n.on("beforeSendEvent",(function(o){return function(s){Un()===o&&qo({category:"sentry."+(s.type==="transaction"?"transaction":"event"),event_id:s.event_id,level:s.level,message:Zo(s)},{event:s})}})(n))}}},KS=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],JS=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&pi(kn,"setTimeout",c8),t.setInterval&&pi(kn,"setInterval",c8),t.requestAnimationFrame&&pi(kn,"requestAnimationFrame",XS),t.XMLHttpRequest&&"XMLHttpRequest"in kn&&pi(XMLHttpRequest.prototype,"send",eA);const n=t.eventTarget;n&&(Array.isArray(n)?n:KS).forEach((i=>(function(o,s){const l=kn,c=l[o]?.prototype;c?.hasOwnProperty?.("addEventListener")&&(pi(c,"addEventListener",(function(d){return function(f,h,g){try{typeof h.handleEvent=="function"&&(h.handleEvent=il(h.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Oa(h),target:o},handled:!1,type:"instrument"}}))}catch{}return s.unregisterOriginalCallbacks&&(function(w,m,b){w&&typeof w=="object"&&"removeEventListener"in w&&typeof w.removeEventListener=="function"&&w.removeEventListener(m,b)})(this,f,h),d.apply(this,[f,il(h,{mechanism:{data:{function:"addEventListener",handler:Oa(h),target:o},handled:!1,type:"instrument"}}),g])}})),pi(c,"removeEventListener",(function(d){return function(f,h,g){try{const w=h.__sentry_wrapped__;w&&d.call(this,f,w,g)}catch{}return d.call(this,f,h,g)}})))})(i,t)))}}};function c8(e){return function(...t){const n=t[0];return t[0]=il(n,{mechanism:{data:{function:Oa(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function XS(e){return function(t){return e.apply(this,[il(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Oa(e)},handled:!1,type:"instrument"}})])}}function eA(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((i=>{i in n&&typeof n[i]=="function"&&pi(n,i,(function(o){const s={mechanism:{data:{function:i,handler:Oa(o)},handled:!1,type:"instrument"}},l=G0(o);return l&&(s.mechanism.data.handler=Oa(l)),il(o,s)}))})),e.apply(this,t)}}const tA=()=>({name:"BrowserSession",setupOnce(){kn.document!==void 0?(Iy({ignoreDuration:!0}),Ry(),tm((({from:e,to:t})=>{e!==void 0&&e!==t&&(Iy({ignoreDuration:!0}),Ry())}))):Li&<.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),nA=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&((function(i){Q5((o=>{const{stackParser:s,attachStacktrace:l}=f8();
682if(Un()!==i||Xy())return;const{msg:c,url:d,line:f,column:h,error:g}=o,w=(function(m,b,_,C){const R=m.exception=m.exception||{},I=R.values=R.values||[],k=I[0]=I[0]||{},A=k.stacktrace=k.stacktrace||{},L=A.frames=A.frames||[],j=C,D=_,V=(function(q){if(!(!Ma(q)||q.length===0)){if(q.startsWith("data:")){const $=q.match(/^data:([^;]+)/);return`<data:${$?$[1]:"text/javascript"}${q.includes("base64,")?",base64":""}>`}return q.slice(0,1024)}})(b)??Lu();return L.length===0&&L.push({colno:j,filename:V,function:ns,in_app:!0,lineno:D}),m})(Yh(s,g||c,void 0,l,!1),d,f,h);w.level="error",My(w,{originalException:g,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}))})(n),d8("onerror")),t.onunhandledrejection&&((function(i){Y5((o=>{const{stackParser:s,attachStacktrace:l}=f8();if(Un()!==i||Xy())return;const c=(function(f){if(fu(f))return f;try{if("reason"in f)return f.reason;if("detail"in f&&"reason"in f.detail)return f.detail.reason}catch{}return f})(o),d=fu(c)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(c)}`}]}}:Yh(s,c,void 0,l,!0);d.level="error",My(d,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}))})(n),d8("onunhandledrejection"))}}};function d8(e){Li&<.log(`Global Handler attached: ${e}`)}function f8(){return Un()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const rA=()=>({name:"HttpContext",preprocessEvent(e){if(!kn.navigator&&!kn.location&&!kn.document)return;const t=Qh(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),iA=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(i,o,s){Zx(Q0,s.getOptions().stackParser,n,t,i,o)}}};function aA(){return!!(function(){if(kn.window===void 0)return!1;const e=kn;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Lu(),i=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(kn===kn.top&&i.some((o=>n.startsWith(`${o}://`))))})()&&(Li&&cl((()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})),!0)}function Xi(e=0){return((gi()||performance.timeOrigin)+e)/1e3}const p8=new WeakMap,eh=new Map,Y6={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function oA(e,t){const{traceFetch:n,traceXHR:i,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:s,enableHTTPTimings:l,tracePropagationTargets:c,onRequestSpanStart:d}={...Y6,...t},f=typeof s=="function"?s:w=>!0,h=w=>(function(m,b){const _=Lu();if(_){let C,R;try{C=new URL(m,_),R=new URL(_).origin}catch{return!1}const I=C.origin===R;return b?uo(C.toString(),b)||I&&uo(C.pathname,b):I}{const C=!!m.match(/^\/(?!\/)/);return b?uo(m,b):C}})(w,c),g={};n&&(e.addEventProcessor((w=>(w.type==="transaction"&&w.spans&&w.spans.forEach((m=>{if(m.op==="http.client"){const b=eh.get(m.span_id);b&&(m.timestamp=b/1e3,eh.delete(m.span_id))}})),w))),o&&(function(w){const m="fetch-body-resolved";wo(m,w),bo(m,(()=>R6(aS)))})((w=>{if(w.response){const m=p8.get(w.response);m&&w.endTimestamp&&eh.set(m,w.endTimestamp)}})),I6((w=>{const m=nS(w,f,h,g);if(w.response&&w.fetchData.__span&&p8.set(w.response,w.fetchData.__span),m){const b=m8(w.fetchData.url),_=b?qs(b).host:void 0;m.setAttributes({"http.url":b,"server.address":_}),l&&h8(m),d?.(m,{headers:w.headers})}}))),i&&Q6((w=>{const m=(function(b,_,C,R){const I=b.xhr,k=I?.[Ds];if(!I||I.__sentry_own_request__||!k)return;const{url:A,method:L}=k,j=Co()&&_(A);if(b.endTimestamp&&j){const ce=I.__sentry_xhr_span_id__;if(!ce)return;const pe=R[ce];return void(pe&&k.status_code!==void 0&&(s6(pe,k.status_code),pe.end(),delete R[ce]))}const D=m8(A),V=qs(D||A),q=(ae=A,ae.split(/[?#]/,1)[0]),$=!!hi(),W=j&&$?pl({name:`${L} ${q}`,attributes:{url:A,type:"xhr","http.method":L,"http.url":D,"server.address":V?.host,[Cr]:"auto.http.browser",[Da]:"http.client",...V?.search&&{"http.query":V?.search},...V?.hash&&{"http.fragment":V?.hash}}}):new So;var ae;I.__sentry_xhr_span_id__=W.spanContext().spanId,R[I.__sentry_xhr_span_id__]=W,C(A)&&(function(ce,pe){const{"sentry-trace":me,baggage:ne}=P6({span:pe});me&&(function(X,re,H){const K=X.__sentry_xhr_v3__?.request_headers;if(!K?.["sentry-trace"])try{if(X.setRequestHeader("sentry-trace",re),H){const he=K?.baggage;he&&he.split(",").some((Ce=>Ce.trim().startsWith("sentry-")))||X.setRequestHeader("baggage",H)}}catch{}})(ce,me,ne)})(I,Co()&&$?W:void 0);const te=Un();return te&&te.emit("beforeOutgoingRequestSpan",W,b),W})(w,f,h,g);if(m){let b;l&&h8(m);try{b=new Headers(w.xhr.__sentry_xhr_v3__?.request_headers)}catch{}d?.(m,{headers:b})}}))}function h8(e){const{url:t}=In(e).data;if(!t||typeof t!="string")return;const n=Fs("resource",(({entries:i})=>
682{i.forEach((o=>{(function(s){return s.entryType==="resource"&&"initiatorType"in s&&typeof s.nextHopProtocol=="string"&&(s.initiatorType==="fetch"||s.initiatorType==="xmlhttprequest")})(o)&&o.name.endsWith(t)&&((function(l){const c=[];if(l.nextHopProtocol!=null){const{name:d,version:f}=W6(l.nextHopProtocol);c.push(["network.protocol.version",f],["network.protocol.name",d])}return gi()?[...c,["http.request.redirect_start",Xi(l.redirectStart)],["http.request.fetch_start",Xi(l.fetchStart)],["http.request.domain_lookup_start",Xi(l.domainLookupStart)],["http.request.domain_lookup_end",Xi(l.domainLookupEnd)],["http.request.connect_start",Xi(l.connectStart)],["http.request.secure_connection_start",Xi(l.secureConnectionStart)],["http.request.connection_end",Xi(l.connectEnd)],["http.request.request_start",Xi(l.requestStart)],["http.request.response_start",Xi(l.responseStart)],["http.request.response_end",Xi(l.responseEnd)]]:c})(o).forEach((l=>e.setAttribute(...l))),setTimeout(n))}))}))}function m8(e){try{return new URL(e,kn.location.origin).href}catch{return}}const sA=3600,g8="sentry_previous_trace",lA="sentry.previous_trace";function uA(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const i=t==="session-storage";let o=i?(function(){try{const l=kn.sessionStorage?.getItem(g8);return JSON.parse(l)}catch{return}})():void 0;e.on("spanStart",(l=>{if(Qr(l)!==l)return;const c=zn().getPropagationContext();o=(function(d,f,h){const g=In(f);function w(){try{return Number(h.dsc?.sample_rate)??Number(g.data?.[U0])}catch{return 0}}const m={spanContext:f.spanContext(),startTimestamp:g.start_timestamp,sampleRate:w(),sampleRand:h.sampleRand};if(!d)return m;const b=d.spanContext;return b.traceId===g.trace_id?d:(Date.now()/1e3-d.startTimestamp<=sA&&(Li&<.log(`Adding previous_trace ${b} link to span ${{op:g.op,...f.spanContext()}}`),f.addLink({context:b,attributes:{[sx]:"previous_trace"}}),f.setAttribute(lA,`${b.traceId}-${b.spanId}-${th(b)?1:0}`)),m)})(o,l,c),i&&(function(d){try{kn.sessionStorage.setItem(g8,JSON.stringify(d))}catch(f){Li&<.warn("Could not store previous trace in sessionStorage",f)}})(o)}));let s=!0;n&&e.on("beforeSampling",(l=>{if(!o)return;const c=zn(),d=c.getPropagationContext();s&&d.parentSpanId?s=!1:(c.setPropagationContext({...d,dsc:{...d.dsc,sample_rate:String(o.sampleRate),sampled:String(th(o.spanContext))},sampleRand:o.sampleRand}),l.parentSampled=th(o.spanContext),l.parentSampleRate=o.sampleRate,l.spanAttributes={...l.spanAttributes,[a6]:o.sampleRate})}))}function th(e){return e.traceFlags===1}const cA={...pd,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...Y6},dA=(e={})=>{const t={name:void 0,source:void 0},n=kn.document,{enableInp:i,enableElementTiming:o,enableLongTask:s,enableLongAnimationFrame:l,_experiments:{enableInteractions:c,enableStandaloneClsSpans:d,enableStandaloneLcpSpans:f},beforeStartSpan:h,idleTimeout:g,finalTimeout:w,childSpanTimeout:m,markBackgroundSpan:b,traceFetch:_,traceXHR:C,trackFetchStreamPerformance:R,shouldCreateSpanForRequest:I,enableHTTPTimings:k,ignoreResourceSpans:A,ignorePerformanceApiSpans:L,instrumentPageLoad:j,instrumentNavigation:D,detectRedirects:V,linkPreviousTrace:q,consistentTraceSampling:$,onRequestSpanStart:W}={...cA,...e};let ae,te;function ce(pe,me,ne=!0){const X=me.op==="pageload",re=h?h(me):me,H=re.attributes||{};if(me.name!==re.name&&(H[na]="custom",re.attributes=H),!ne){const Ce=ls();return void pl({...re,startTime:Ce}).end(Ce)}t.name=re.name,t.source=H[na];const K=Ty(re,{idleTimeout:g,finalTimeout:w,childSpanTimeout:m,disableAutoFinish:X,beforeSpanEnd:Ce=>{ae?.(),jS(Ce,{recordClsOnPageloadSpan:!d,recordLcpOnPageloadSpan:!f,ignoreResourceSpans:A,ignorePerformanceApiSpans:L}),y8(pe,void 0);const ke=zn(),be=ke.getPropagationContext();ke.setPropagationContext({...be,traceId:K.spanContext().traceId,sampled:is(K),dsc:xo(Ce)})}});function he(){n&&["interactive","complete"].includes(n.readyState)&&pe.emit("idleSpanEnableAutoFinish",K)}y8(pe,K),X&&n&&(n.addEventListener("readystatechange",(()=>{he()})),he())}return{name:"BrowserTracing",setup(pe){if((function(){function ne(){const X=hi(),re=X&&Qr(X);if(re){const H="internal_error";zt&<.log(`[Tracing] Root span: ${H} -> Global error occurred`),re.setStatus({code:_r,message:H})}}_y||(ne.tag="sentry_tracingErrorCallback",_y=!0,Q5(ne),Y5(ne))})(),ae=RS({recordClsStandaloneSpans:d||!1,recordLcpStandaloneSpans:f||!1,client:pe}),i&&BS(),o&&xf()&&gi()&&Fs("element",OS),l&&Dn.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver((ne=>{const X=hi();if(X)for(const re of ne.getEntries()){if(!re.scripts[0])continue;const H=ur(gi()+re.startTime),{start_timestamp:K,op:he}=In(X);if(he==="navigation"&&K&&H<K)continue;const Ce=ur(re.duration),ke={[Cr]:"auto.ui.browser.metrics"},be=re.scripts[0],{invoker:Re,invokerType:Ve,sourceURL:ht,sourceFunctionName:dt,sourceCharPosition:ut}=be;ke["browser.script.invoker"]=Re,ke["browser.script.invoker_type"]=Ve,ht&&(ke["code.filepath"]=ht),dt&&(ke["code.function"]=dt),ut!==-1&&(ke["browser.script.source_char_position"]=ut),co(X,H,H+Ce,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:ke})}})).observe({type:"long-animation-frame",buffered:!0}):s&&Fs("longtask",(({entries:ne})=>{const X=hi();if(!X)return;const{op:re,start_timestamp:H}=In(X);for(const K of ne){const he=ur(gi()+K.startTime),Ce=ur(K.duration);re==="navigation"&&H&&he<H||co(X,he,he+Ce,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Cr]:"auto.ui.browser.metrics"}})}})),c&&Fs("event",(({entries:ne})=>{const X=hi();if(X){for(const re of ne)if(re.name==="click"){const H=ur(gi()+re.startTime),K=ur(re.duration),he
682={name:la(re.target),op:`ui.interaction.${re.name}`,startTime:H,attributes:{[Cr]:"auto.ui.browser.metrics"}},Ce=e6(re.target);Ce&&(he.attributes["ui.component_name"]=Ce),co(X,H,H+K,he)}}})),V&&n){const ne=()=>{te=Or()};addEventListener("click",ne,{capture:!0}),addEventListener("keydown",ne,{capture:!0,passive:!0})}function me(){const ne=Vl(pe);ne&&!In(ne).timestamp&&(Li&<.log(`[Tracing] Finishing current active span with op: ${In(ne).op}`),ne.setAttribute(Vd,"cancelled"),ne.end())}pe.on("startNavigationSpan",((ne,X)=>{if(Un()!==pe)return;if(X?.isRedirect)return Li&<.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void ce(pe,{op:"navigation.redirect",...ne},!1);te=void 0,me(),Po().setPropagationContext({traceId:_o(),sampleRand:Math.random()});const re=zn();re.setPropagationContext({traceId:_o(),sampleRand:Math.random()}),re.setSDKProcessingMetadata({normalizedRequest:void 0}),ce(pe,{op:"navigation",...ne})})),pe.on("startPageLoadSpan",((ne,X={})=>{if(Un()!==pe)return;me();const re=gx(X.sentryTrace||v8("sentry-trace"),X.baggage||v8("baggage")),H=zn();H.setPropagationContext(re),H.setSDKProcessingMetadata({normalizedRequest:Qh()}),ce(pe,{op:"pageload",...ne})}))},afterAllSetup(pe){let me=Lu();if(q!=="off"&&uA(pe,{linkPreviousTrace:q,consistentTraceSampling:$}),kn.location){if(j){const ne=gi();(function(X,re,H){X.emit("startPageLoadSpan",re,H),zn().setTransactionName(re.name);const K=Vl(X);K&&X.emit("afterStartPageLoadSpan",K)})(pe,{name:kn.location.pathname,startTime:ne?ne/1e3:void 0,attributes:{[na]:"url",[Cr]:"auto.pageload.browser"}})}D&&tm((({to:ne,from:X})=>{if(X===void 0&&me?.indexOf(ne)!==-1)return void(me=void 0);me=void 0;const re=M6(ne),H=Vl(pe),K=H&&V&&(function(he,Ce){const ke=In(he),be=ls(),Re=ke.start_timestamp;return!(be-Re>w8||Ce&&be-Ce<=w8)})(H,te);(function(he,Ce,ke){const{url:be,isRedirect:Re}=ke||{};he.emit("beforeStartNavigationSpan",Ce,{isRedirect:Re}),he.emit("startNavigationSpan",Ce,{isRedirect:Re});const Ve=zn();Ve.setTransactionName(Ce.name),be&&!Re&&Ve.setSDKProcessingMetadata({normalizedRequest:{...Qh(),url:be}}),Vl(he)})(pe,{name:re?.pathname||kn.location.pathname,attributes:{[na]:"url",[Cr]:"auto.navigation.browser"}},{url:ne,isRedirect:K})}))}b&&(kn.document?kn.document.addEventListener("visibilitychange",(()=>{const ne=hi();if(!ne)return;const X=Qr(ne);if(kn.document.hidden&&X){const re="cancelled",{op:H,status:K}=In(X);Li&<.log(`[Tracing] Transaction: ${re} -> since tab moved to the background, op: ${H}`),K||X.setStatus({code:_r,message:re}),X.setAttribute("sentry.cancellation_reason","document.hidden"),X.end()}})):Li&<.warn("[Tracing] Could not set up background tab detection due to lack of global document")),c&&(function(ne,X,re,H,K){const he=kn.document;let Ce;const ke=()=>{const be="ui.action.click",Re=Vl(ne);if(Re){const Ve=In(Re).op;if(["navigation","pageload"].includes(Ve))return void(Li&<.warn(`[Tracing] Did not create ${be} span because a pageload or navigation span is in progress.`))}Ce&&(Ce.setAttribute(Vd,"interactionInterrupted"),Ce.end(),Ce=void 0),K.name?Ce=Ty({name:K.name,op:be,attributes:{[na]:K.source||"url"}},{idleTimeout:X,finalTimeout:re,childSpanTimeout:H}):Li&<.warn(`[Tracing] Did not create ${be} transaction because _latestRouteName is missing.`)};he&&addEventListener("click",ke,{capture:!0})})(pe,g,w,m,t),i&&(function(){const ne=({entries:X})=>{const re=hi(),H=re&&Qr(re);X.forEach((K=>{if(!(function(Ce){return"duration"in Ce})(K)||!H)return;const he=K.interactionId;if(he!=null&&!gd.has(he)){if(Jp.length>10){const Ce=Jp.shift();gd.delete(Ce)}Jp.push(he),gd.set(he,H)}}))};Fs("event",ne),Fs("first-input",ne)})(),oA(pe,{traceFetch:_,traceXHR:C,trackFetchStreamPerformance:R,tracePropagationTargets:pe.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:I,enableHTTPTimings:k,onRequestSpanStart:W})}}};function v8(e){return kn.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}const Z6="_sentry_idleSpan";function Vl(e){return e[Z6]}function y8(e,t){wi(e,Z6,t)}const w8=1.5;var fA=(function(){function e(){this.initialized=!1}return e.prototype.initialize=function(t){return Et(this,void 0,void 0,(function(){var n,i;
682return kt(this,(function(o){if(this.initialized)return console.warn("Sentry already initialized"),[2];if(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"||window.location.hostname.includes(".local")||window.location.port==="8003")return console.log("Sentry disabled in local development"),[2];try{(function(s={}){const l=!s.skipBrowserExtensionCheck&&aA(),c={...s,enabled:!l&&s.enabled,stackParser:(d=s.stackParser||YS,Array.isArray(d)?$5(...d):d),integrations:Nx({integrations:s.integrations,defaultIntegrations:s.defaultIntegrations==null?[Yx(),qx(),JS(),ZS(),nA(),iA(),Xx(),rA(),tA()]:s.defaultIntegrations}),transport:s.transport||US};var d;Dx(fS,c)})({dsn:t.dsn,sendDefaultPii:(n=t.sendDefaultPii)===null||n===void 0||n,release:t.release,environment:t.environment||"production",integrations:[dA()],tracesSampleRate:(i=t.tracesSampleRate)!==null&&i!==void 0?i:.01,beforeSend:this.createComposedBeforeSendFilter(t)}),window.addEventListener("unhandledrejection",(function(s){var l,c,d;(((l=s.reason)===null||l===void 0?void 0:l.name)==="AbortError"||!((d=(c=s.reason)===null||c===void 0?void 0:c.message)===null||d===void 0)&&d.includes("The operation was aborted")||String(s.reason).includes("AbortError"))&&s.preventDefault()})),this.initialized=!0,console.log("Sentry initialized successfully")}catch(s){console.error("Failed to initialize Sentry:",s)}return[2]}))}))},e.prototype.setUser=function(t){var n;if(this.initialized)try{(function(i){Po().setUser(i)})(t?{id:(n=t.id)===null||n===void 0?void 0:n.toString(),email:t.email,username:t.username}:null)}catch(i){console.error("Failed to set Sentry user:",i)}},e.prototype.createComposedBeforeSendFilter=function(t){var n=this;return function(i){return t.beforeSend&&!(i=t.beforeSend(i))?null:t.enableCommonFilters===!1||(i=n.defaultBeforeSendFilter(i))?i:null}},e.prototype.defaultBeforeSendFilter=function(t){var n,i,o,s,l,c,d,f,h,g,w,m,b,_,C,R,I,k,A,L,j,D,V=((o=(i=(n=t.exception)===null||n===void 0?void 0:n.values)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.value)||"",q=t.culprit||"";if(q.includes("ym.1.js")||q.includes("ym.0.js")||q.includes("yandex")||q.includes("pagead")||q.includes("googletag")||q.includes("lngtd.com")||q.includes("ftUtils.js")||q.includes("longitudeads-sdk")||q.includes("prebid")||q.includes("publisher.js")||q.includes("btloader.com"))return null;var $=((d=(c=(l=(s=t.exception)===null||s===void 0?void 0:s.values)===null||l===void 0?void 0:l[0])===null||c===void 0?void 0:c.stacktrace)===null||d===void 0?void 0:d.frames)||[],W=$.some((function(me){var ne,X,re,H,K,he,Ce,ke,be,Re,Ve;return((ne=me.filename)===null||ne===void 0?void 0:ne.includes("/ym.0.js"))||((X=me.filename)===null||X===void 0?void 0:X.includes("/ym.1.js"))||((re=me.filename)===null||re===void 0?void 0:re.includes("yandex"))||((H=me.filename)===null||H===void 0?void 0:H.includes("pagead"))||((K=me.filename)===null||K===void 0?void 0:K.includes("googletag"))||((he=me.filename)===null||he===void 0?void 0:he.includes("lngtd.com"))||((Ce=me.filename)===null||Ce===void 0?void 0:Ce.includes("ftUtils.js"))||((ke=me.filename)===null||ke===void 0?void 0:ke.includes("longitudeads-sdk"))||((be=me.filename)===null||be===void 0?void 0:be.includes("prebid"))||((Re=me.filename)===null||Re===void 0?void 0:Re.includes("publisher.js"))||((Ve=me.filename)===null||Ve===void 0?void 0:Ve.includes("btloader.com"))})),ae=$.some((function(me){var ne,X,re,H,K,he,Ce,ke;return((ne=me.filename)===null||ne===void 0?void 0:ne.includes("Game.js"))||((X=me.filename)===null||X===void 0?void 0:X.includes("main.js"))||((re=me.filename)===null||re===void 0?void 0:re.includes("feedback-entry.js"))||((H=me.filename)===null||H===void 0?void 0:H.includes("modal.js"))||((K=me.filename)===null||K===void 0?void 0:K.includes("dark-mode.js"))||((he=me.filename)===null||he===void 0?void 0:he.includes("common.js"))||((Ce=me.filename)===null||Ce===void 0?void 0:Ce.includes("heygg-common"))||((ke=me.filename)===null||ke===void 0?void 0:ke.includes("index.js"))}));if(W&&!ae||(V.includes("AbortError")||V.includes("The operation was aborted"))&&!(!((m=(w=(g=(h=(f=t.exception)===null||f===void 0?void 0:f.values)===null||h===void 0?void 0:h[0])===null||g===void 0?void 0:g.stacktrace)===null||w===void 0?void 0:w.frames)===null||m===void 0)&&m.length)||V==="TypeError: Load failed"&&!(!((I=(R=(C=(_=(b=t.exception)===null||b===void 0?void 0:b.values)===null||_===void 0?void 0:_[0])===null||C===void 0?void 0:C.stacktrace)===null||R===void 0?void 0:R.frames)===null||I===void 0)&&I.length)||V.includes("NotReadableError: The I/O read operation failed")&&!(!((D=(j=(L=(A=(k=t.exception)===null||k===void 0?void 0:k.values)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.stacktrace)===null||j===void 0?void 0:j.frames)===null||D===void 0)&&D.length)||V==="TypeError: null is not an object (evaluating 'window.top.document')")return null;var te=$.some((function(me){var ne,X,re,H,K,he;return((ne=me.filename)===null||ne===void 0?void 0:ne.includes("vjsplayer"))||((X=me.code)===null||X===void 0?void 0:X.includes("vjsplayer"))||((re=me.context_line)===null||re===void 0?void 0:re.includes("vjsplayer"))||((H=me.context_line)===null||H===void 0?void 0:H.includes(".vjsplayer."))||((K=me.filename)===null||K===void 0?void 0:K.includes("/default."))&&((he=me.context_line)===null||he===void 0?void 0:he.includes(".play()"))})),ce=V.includes("reading 'play'")||V.includes("reading 'pause'")||V.includes("reading 'muted'")||V.includes("reading 'volume'"),pe=$.some((function(me){var ne;return(ne=me.filename)===null||ne===void 0?void 0:ne.includes("/default.")}));return V.includes("vjsplayer")||V.includes("video player")||V.includes("NotAllowedError")&&q.includes("videojs")||te||ce&&pe||V.includes("Token http status error")||V.includes("Failed to fetch")&&(V.includes("optable.co")||$.some((function(me){var ne;return(ne=me.filename)===null||ne===void 0?void 0:ne.includes("longitudeads-sdk")})))||V.includes("NS_ERROR_NOT_INITIALIZED")&&(q.includes("/rq/iv/")||$.some((function(me){var ne;return(ne=me.filename)===null||ne===void 0?void 0:ne.includes("/rq/iv/")})))?null:t},e})(),K6=new fA,b8=Object.freeze({__proto__:null,default:K6}),nh="heygg_utm_session",rh="heygg_utm_tracked",pA=(function(){function e(){this.session=null,this.initialized=!1}return e.prototype.extractUtmFromUrl=function(){var t=new URLSearchParams(window.location.search);return{utm_source:t.get("utm_source")||void 0,utm_medium:t.get("utm_medium")||void 0,utm_campaign:t.get("utm_campaign")||void 0,utm_term:t.get("utm_term")||void 0,utm_c
682ontent:t.get("utm_content")||void 0}},e.prototype.hasUtmParams=function(t){return!!(t.utm_source||t.utm_medium||t.utm_campaign||t.utm_term||t.utm_content)},e.prototype.getReferrer=function(){return document.referrer||""},e.prototype.generateSessionId=function(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,11))},e.prototype.shouldTrack=function(){var t=this.extractUtmFromUrl(),n=this.getReferrer();return this.hasUtmParams(t)||n!==""},e.prototype.getStoredSession=function(){try{var t=sessionStorage.getItem(nh);return t?JSON.parse(t):null}catch(n){return console.warn("[HEYGG] Failed to read UTM session:",n),null}},e.prototype.storeSession=function(t){try{sessionStorage.setItem(nh,JSON.stringify(t))}catch(n){console.warn("[HEYGG] Failed to store UTM session:",n)}},e.prototype.hasBeenTracked=function(){try{return sessionStorage.getItem(rh)==="true"}catch{return!1}},e.prototype.markAsTracked=function(){try{sessionStorage.setItem(rh,"true")}catch(t){console.warn("[HEYGG] Failed to mark UTM as tracked:",t)}},e.prototype.init=function(){if(!this.initialized)if(this.initialized=!0,this.shouldTrack()){var t=this.getStoredSession(),n=this.extractUtmFromUrl(),i=this.getReferrer();!t||this.hasUtmParams(n)?(this.session={utm:n,referrer_url:i,landing_page_url:window.location.href,session_id:t?.session_id||this.generateSessionId(),timestamp:Date.now()},this.storeSession(this.session)):this.session=t,console.log("[HEYGG] UTM tracking initialized:",{utm:this.session.utm,referrer:this.session.referrer_url?"present":"none"})}else console.log("[HEYGG] No UTM/referrer data to track")},e.prototype.trackVisit=function(t,n){return Et(this,void 0,void 0,(function(){var i,o,s,l,c,d,f,h,g,w,m;return kt(this,(function(b){switch(b.label){case 0:if(!this.session)return console.log("[HEYGG] No UTM session to track"),[2];if(this.hasBeenTracked())return console.log("[HEYGG] UTM visit already tracked this session"),[2];if(i=localStorage.getItem("heygg_anonymous_id"),o=localStorage.getItem("heygg_jwt"),!i&&!o)return console.log("[HEYGG] No user identifier available for UTM tracking"),[2];if(s=this.hasUtmParams(this.session.utm),l=!!this.session.referrer_url,!s&&!l)return console.log("[HEYGG] No UTM or referrer data to send"),[2];c=n||((m=(w=window.HeyGoodGame)===null||w===void 0?void 0:w.config)===null||m===void 0?void 0:m.apiBaseUrl)||"https://play.hey.gg",d=Tn(Tn({},this.session.utm),{referrer_url:this.session.referrer_url||void 0,landing_page_url:this.session.landing_page_url,game_key:t,session_id:this.session.session_id,anonymous_id:i||void 0}),f={"Content-Type":"application/json"},o&&(f.Authorization="Bearer ".concat(o)),this.markAsTracked(),b.label=1;case 1:return b.trys.push([1,3,,4]),[4,fetch("".concat(c,"/api/utm/visit"),{method:"POST",headers:f,body:JSON.stringify(d)})];case 2:return(h=b.sent()).ok?console.log("[HEYGG] UTM visit tracked successfully"):console.warn("[HEYGG] UTM tracking response not ok:",h.status),[3,4];case 3:return g=b.sent(),console.error("[HEYGG] UTM tracking failed:",g),[3,4];case 4:return[2]}}
682))}))},e.prototype.getSession=function(){return this.session},e.prototype.hasUtmData=function(){return this.session!==null&&(this.hasUtmParams(this.session.utm)||!!this.session.referrer_url)},e.prototype.cleanUrlParams=function(){var t=new URL(window.location.href),n=!1;["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].forEach((function(i){t.searchParams.has(i)&&(t.searchParams.delete(i),n=!0)})),n&&(window.history.replaceState({},"",t.toString()),console.log("[HEYGG] UTM params cleaned from URL"))},e.prototype.clearSession=function(){this.session=null,this.initialized=!1;try{sessionStorage.removeItem(nh),sessionStorage.removeItem(rh)}catch{}},e})(),vd=new pA,_8="heygg_ad_shown",C8="https://sdk.lngtd.com/sdk.js",Aa=null;function x8(){try{return!!localStorage.getItem("heygg_jwt")}catch(e){return console.warn("[HEYGG ADS] Failed to check login status:",e),!1}}function yd(){return Et(this,arguments,void 0,(function(e){return e===void 0&&(e=1e4),kt(this,(function(t){return window.lngtd?(console.log("[HEYGG ADS] Longitude SDK already available"),[2,Promise.resolve()]):(console.log("[HEYGG ADS] Waiting for Longitude SDK to load..."),[2,new Promise((function(n,i){var o=Date.now(),s=function(){if(window.lngtd)return console.log("[HEYGG ADS] Longitude SDK loaded and ready"),void n();Date.now()-o>e?i(new Error("[HEYGG ADS] Timeout waiting for Longitude SDK to load")):setTimeout(s,100)};s()}))])}))}))}function S8(){return Et(this,arguments,void 0,(function(e){var t,n,i,o,s,l,c,d,f,h,g,w,m,b,_,C,R;return e===void 0&&(e={}),kt(this,(function(I){switch(I.label){case 0:t=e.type,n=t===void 0?"reward":t,i=e.name,o=i===void 0?"reward":i,s=e.minViewTime,l=s===void 0?7e3:s,c=e.skipText,d=c===void 0?"Play in":c,f=e.onComplete,h=f===void 0?function(){}:f,g=e.placement,w=g===void 0?"default":g,m=e.timeout,b=m===void 0?2e3:m,I.label=1;case 1:return I.trys.push([1,3,,4]),[4,yd(b)];case 2:return I.sent(),[3,4];case 3:return _=I.sent(),console.error("[HEYGG ADS] Longitude SDK failed to load:",_),h(),[2];case 4:if(!(!((R=window.lngtd)===null||R===void 0)&&R.triggerInterstitial))return console.error("[HEYGG ADS] Longitude SDK loaded but triggerInterstitial not available"),h(),[2];C={type:n,name:o,minViewTime:l,rewardText:d,adBreakDone:function(){console.log("[HEYGG ADS] Ad break complete"),h()}},console.log("[HEYGG ADS] Calling window.lngtd.triggerInterstitial with:",{options:C,placement:w});try{window.lngtd.triggerInterstitial(C,w)}catch(k){console.error("[HEYGG ADS] Error triggering interstitial:",k),h()}return[2]}}
682))}))}var hA={init:function(e){e===void 0&&(e={}),e.scriptUrl&&(C8=e.scriptUrl)},loadLongitudeScript:function(e){return Et(this,void 0,void 0,(function(){var t,n=this;return kt(this,(function(i){return t=e||C8,window.lngtd?(console.log("[HEYGG ADS] Longitude SDK already loaded"),[2]):Aa?(console.log("[HEYGG ADS] Longitude SDK already loading, waiting..."),[2,Aa]):document.querySelector('script[src*="lngtd.com"]')?(console.log("[HEYGG ADS] Longitude script tag found, waiting for SDK..."),[2,Aa=yd().finally((function(){Aa=null}))]):(console.log("[HEYGG ADS] Loading Longitude SDK from:",t),Aa=new Promise((function(o,s){var l=document.createElement("script");l.src=t,l.async=!0,l.defer=!0,l.onload=function(){return Et(n,void 0,void 0,(function(){return kt(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,yd()];case 1:return c.sent(),Aa=null,console.log("[HEYGG ADS] Longitude SDK loaded successfully"),o(),[3,3];case 2:return c.sent(),Aa=null,s(new Error("Longitude SDK loaded but window.lngtd not available")),[3,3];case 3:return[2]}}
682))}))},l.onerror=function(){Aa=null,s(new Error("Failed to load Longitude SDK from ".concat(t)))},document.head.appendChild(l)})),[2,Aa])}))}))},whenLoaded:yd,showInterstitial:S8,requireAuthOrShowAd:function(){return Et(this,arguments,void 0,(function(e){var t,n,i,o,s,l,c,d,f,h;return e===void 0&&(e={}),kt(this,(function(g){switch(g.label){case 0:return t=e.onComplete,n=t===void 0?function(){}:t,i=e.minViewTime,o=i===void 0?7e3:i,s=e.skipText,l=s===void 0?"Play in":s,c=e.forceShow,d=c!==void 0&&c,f=e.timeout,h=f===void 0?2e3:f,!d&&x8()?(console.log("[HEYGG ADS] User is logged in, skipping ad"),n(),[2]):!d&&(function(){try{return sessionStorage.getItem(_8)==="true"}catch(w){return console.warn("[HEYGG ADS] Failed to check session storage:",w),!1}})()?(console.log("[HEYGG ADS] Ad already shown this session, skipping"),n(),[2]):(console.log("[HEYGG ADS] Showing auth gate interstitial"),[4,S8({type:"reward",name:"auth_gate",minViewTime:o,skipText:l,onComplete:function(){(function(){try{sessionStorage.setItem(_8,"true")}catch(w){console.warn("[HEYGG ADS] Failed to set session storage:",w)}})(),n()},placement:"default",timeout:h})]);case 1:return g.sent(),[2]}}))}))},isUserLoggedIn:x8},A8="heygg_jwt",mA="heygg_anonymous_id";function gA(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return"UTC"}}var Jc=null;function fi(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){return Jc||(Jc=(function(){return Et(this,void 0,void 0,(function(){var t,n,i,o,s,l,c,d,f,h,g,w,m,b,_,C;return kt(this,(function(R){switch(R.label){case 0:return t=(function(){var I,k;return((k=(I=window.HeyGoodGame)===null||I===void 0?void 0:I.config)===null||k===void 0?void 0:k.apiBaseUrl)||"https://play.hey.gg"})(),n=(function(){var I={"Content-Type":"application/json","X-Timezone":gA()},k=localStorage.getItem(A8);return k&&(I.Authorization="Bearer ".concat(k)),I})(),i="".concat(t,"/api/recommendations/play-next"),o=new URLSearchParams,localStorage.getItem(A8)||(s=localStorage.getItem(mA))&&o.set("anonymous_id",s),(l=typeof window<"u"&&((w=(g=window.HeyGoodGame)===null||g===void 0?void 0:g.config)===null||w===void 0?void 0:w.gameKey)||"")&&o.set("game_key",l),c=typeof window<"u"&&((b=(m=window.HeyGoodGame)===null||m===void 0?void 0:m.config)===null||b===void 0?void 0:b.currentLevel)||"",d=typeof window<"u"&&((C=(_=window.HeyGoodGame)===null||_===void 0?void 0:_.config)===null||C===void 0?void 0:C.currentMode)||"",c&&o.set("level",c),d&&o.set("mode",d),(f=o.toString())&&(i+="?".concat(f)),[4,fetch(i,{method:"GET",headers:n,credentials:"include"})];case 1:if(!(h=R.sent()).ok)throw new Error("Failed to fetch recommendations: ".concat(h.status));return[2,h.json()]}}))}))})().finally((function(){Jc=null}))),[2,Jc]}))}))}var vA={getPlayNext:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){return[2,fi()]}))}))},getPromotions:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().data.promotions]}}))}))},getStreaksAtRisk:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().data.streaks_at_risk]}}))}))},getDailyIncomplete:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().data.daily_incomplete]}}))}))},getFavorites:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().data.favorites]}}))}))},getTryNextLevel:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().data.try_next_level]}}))}))},getDiscover:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().data.discover]}}))}))},hasStreaksAtRisk:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().data.streaks_at_risk.length>0]}}))}))}
682,getCriticalStreakCount:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().data.streaks_at_risk.filter((function(t){return t.urgency==="critical"})).length]}}))}))},isPersonalized:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().meta.is_personalized]}}))}))},getData:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().data]}}))}))},getMeta:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().meta]}}))}))},getCombined:function(){return Et(this,void 0,void 0,(function(){return kt(this,(function(e){switch(e.label){case 0:return[4,fi()];case 1:return[2,e.sent().data.combined]}}))}))}};function Kd(e,t,n,i){if(!e||e==="#")return e;try{var o=new URL(e);return o.searchParams.set("utm_source",t.sourceGameKey),o.searchParams.set("utm_medium","cross_promo"),o.searchParams.set("utm_campaign",n),o.searchParams.set("utm_content",i),o.searchParams.set("utm_term",t.placement),o.toString()}catch{return e}}function E8(e){return e.recommendation_type!=="discord"&&e.recommendation_type!=="register"||!e.url?e.game_url||"#":e.url}var yA='<span class="gcm-flame" style="width:15px;height:18px"><svg width="15" height="18" viewBox="0 0 24 28" fill="none"><path d="M12 0C12 0 16 4 18 7C19.5 9.5 20 8 19 5.5C18.5 4 22 10 22.5 15.5C23 21 19 26 12 26C5 26 1 21 1.5 15.5C2 10 12 0 12 0Z" fill="#E8603C"/><path d="M12 7C12 7 5.5 13 5.5 17.5C5.5 22 8 24.5 12 24.5C16 24.5 18.5 22 18.5 17.5C18.5 13 12 7 12 7Z" fill="#F7A733"/><path d="M12 13C12 13 8.5 17 8.5 19.5C8.5 22 10 23.5 12 23.5C14 23.5 15.5 22 15.5 19.5C15.5 17 12 13 12 13Z" fill="#FCD062"/></svg><svg width="15" height="18" viewBox="0 0 24 28" fill="none"><path d="M10 0C10 0 5 5 3.5 8C2 10.5 3 8 4 5.5C4.5 4 0 11 0.5 16C1 21 5 26 12 26C19 26 22.5 21 22 15.5C21.5 10 10 0 10 0Z" fill="#E8603C"/><path d="M12 7C12 7 5.5 13.5 5.5 17.5C5.5 22 8 24.5 12 24.5C16 24.5 18.5 22 18.5 17.5C18.5 13.5 12 7 12 7Z" fill="#F7A733"/><path d="M12 13C12 13 9 17 9 19.5C9 22 10.2 23.5 12 23.5C13.8 23.5 15 22 15 19.5C15 17 12 13 12 13Z" fill="#FCD062"/></svg><svg width="15" height="18" viewBox="0 0 24 28" fill="none"><path d="M14 0C14 0 19 5 20.5 8C22 10.5 21 8 20 5.5C19.5 4 24 11 23.5 16C23 21 19 26 12 26C5 26 1.5 21 2 15.5C2.5 10 14 0 14 0Z" fill="#E8603C"/><path d="M12 7C12 7 18.5 13.5 18.5 17.5C18.5 22 16 24.5 12 24.5C8 24.5 5.5 22 5.5 17.5C5.5 13.5 12 7 12 7Z" fill="#F7A733"/><path d="M12 13C12 13 15 17 15 19.5C15 22 13.8 23.5 12 23.5C10.2 23.5 9 22 9 19.5C9 17 12 13 12 13Z" fill="#FCD062"/></svg></span>';function wA(e){if(e.recommendation_type==="streak_at_risk")return yA;if(e.recommendation_type==="discord")return"ð¬";if(e.recommendation_type==="register")return"ð¤";if(e.recommendation_type==="social_follow")return"ð";if(e.recommendation_type==="same_game"){var t=typeof document<"u"?document.querySelector('link[rel*="icon"]'):null,n=t?.href||"/favicon.ico";return'<img src="'.concat(n,'" alt="" width="20" height="20" style="border-radius:3px" />')}var i=(function(o){if(!o)return null;try{return new URL(o).hostname}catch{return null}})(e.game_url);return i?'<img src="https://www.google.com/s2/favicons?domain='.concat(i,'&sz=32" alt="" width="20" height="20" style="border-radius:3px" />'):"ð®"}function k8(e,t,n,i){t===void 0&&(t=2);var o=(function(c){var d=!1;return c.filter((function(f){if(f.recommendation_type==="social_follow"){if(d)return!1;d=!0}return!0}))})(e),s=i?.length?o.filter((function(c){return!(function(d,f){var h=E8(d);if(!h||h==="#")return!1;try{var g=new URL(h);return f.some((function(w){try{var m=new URL(w);return g.origin===m.origin&&g.pathname.startsWith(m.pathname)}catch{return!1}}))}catch{return!1}})(c,i)})):o,l=(function(c){if(c.length<=1)return c;for(var d=[],f=Zs([],c),h=function(){var g=d.length>0?d[d.length-1].game_key:null,w=f.findIndex((function(m){return m.game_key!==g}));if(w===-1)return d.push.apply(d,f),"break";d.push(f[w]),f.splice(w,1)};f.length>0&&h()!=="break";);return d})(s);return l.slice(0,t).map((function(c,d){return(function(f,h,g){var w=(function(A){var L,j=A.game_name||A.game_key;switch(A.recommendation_type){case"streak_at_risk":L={text:(A.reason||A.message||"Streak at risk")+" ·",linkText:"Play ".concat(j)};break;case"daily_incomplete":L={text:(A.reason||"Daily available")+" ·",linkText:"Play ".concat(j)};break;case"favorites":L={text:(A.reason||"Keep playing")+" ·",linkText:j};break;case"try_next_level":L={text:(A.reason||"Try ".concat(A.suggested_level))+" ·",linkText:j};break;case"discover":L={text:(A.reason||"Like logic games?")+" ·",linkText:"Try ".concat(j)};break;case"promotions":L={text:(A.tagline||"")+" ·",linkText:"Try ".concat(j)};break;case"discord":L={text:A.reason||"",linkText:"Join the community"};break;case"register":L={text:(A.reason||"Track stats & earn streaks")+" ·",linkText:A.game_name||"Create a free account"};break;case"social_follow":L={text:"See how others did yesterday ·",linkText:"View results"};break;case"same_game":L={text:(A.reason||"")+" ·",linkText:j};break;default:L={text:"",linkText:"Play ".concat(j)}}return L.text.length+L.linkText.length>50&&(L.linkText=L.linkText.replace(/^(Play|Try) /,"")),L}
682)(f),m=w.text,b=w.linkText,_=f.recommendation_type,C=h!=null?"promo_".concat(h+1):"promo",R=E8(f);g&&(R=Kd(R,g,_,C));var I={icon:wA(f),text:m,linkText:b,url:R,recommendationType:_};if(f.recommendation_type==="social_follow"){var k=f.social_accounts;I.socialAccounts=g?k.map((function(A){return Tn(Tn({},A),{url:Kd(A.url,g,_,C)})})):k}return I})(c,d,n)}))}function J6(){return window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone===!0}function Sf(e,t){var n=J6();if(console.log("[heygg] navigateCrossGame called",{targetUrl:e,surface:t,isPWA:n,displayMode:window.matchMedia("(display-mode: standalone)").matches}),!n)return!1;var i=new URL(e,window.location.origin);if(i.origin===window.location.origin)return!1;var o=localStorage.getItem("heygg_jwt");o&&i.searchParams.set("token",o),typeof window.gtag=="function"&&window.gtag("event","cross_game_navigation",{source_game:window.location.hostname,target_game:i.hostname,surface:t,platform:/iPhone|iPad/.test(navigator.userAgent)?"ios":"android_or_other"});var s=i.toString();if(/Android/i.test(navigator.userAgent)){var l="intent://".concat(i.host).concat(i.pathname).concat(i.search).concat(i.hash,"#Intent;scheme=").concat(i.protocol.replace(":",""),";action=android.intent.action.VIEW;end");console.log("[heygg] Android intent navigation",l),window.location.href=l}else window.open(s,"_blank")||(window.location.href=s);return!0}var T8="heygg_jwt";function P8(e,t,n){return Et(this,void 0,void 0,(function(){var i,o,s,l,c,d,f;return kt(this,(function(h){switch(h.label){case 0:return t.length?typeof n=="object"&&n instanceof Promise?[4,n.catch((function(){}))]:[3,2]:[2];case 1:return o=h.sent(),[3,3];case 2:o=n,h.label=3;case 3:i=o,s=(function(){var g,w;return((w=(g=window.HeyGoodGame)===null||g===void 0?void 0:g.config)===null||w===void 0?void 0:w.apiBaseUrl)||"https://play.hey.gg"})(),l=(function(){var g={"Content-Type":"application/json"},w=localStorage.getItem(T8);return w&&(g.Authorization="Bearer ".concat(w)),g})(),c={game_key:e,events:t},i&&(c.game_stat_id=i),localStorage.getItem(T8)||(d=localStorage.getItem("heygg_anonymous_id"))&&(c.anonymous_id=d),h.label=4;case 4:return h.trys.push([4,6,,7]),[4,fetch("".concat(s,"/api/modal/event"),{method:"POST",headers:l,body:JSON.stringify(c)})];case 5:return h.sent(),[3,7];case 6:return f=h.sent(),console.warn("[ModalEvents] Failed to send events:",f),[3,7];case 7:return[2]}}
682))}))}var ta={track:function(e,t,n){P8(e,[t],n)},trackBatch:function(e,t,n){P8(e,t,n)}},L8="heygg_jwt";function bA(e){return Et(this,void 0,void 0,(function(){var t,n,i,o,s;return kt(this,(function(l){switch(l.label){case 0:t=(function(){var c,d;return((d=(c=window.HeyGoodGame)===null||c===void 0?void 0:c.config)===null||d===void 0?void 0:d.apiBaseUrl)||"https://play.hey.gg"})(),n=(function(){var c={"Content-Type":"application/json"},d=localStorage.getItem(L8);return d&&(c.Authorization="Bearer ".concat(d)),c})(),i=Tn({},e),localStorage.getItem(L8)||(o=localStorage.getItem("heygg_anonymous_id"))&&(i.anonymous_id=o),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,fetch("".concat(t,"/api/puzzle-feedback"),{method:"POST",headers:n,body:JSON.stringify(i)})];case 2:return l.sent(),[3,4];case 3:return s=l.sent(),console.warn("[PuzzleFeedback] Failed to send feedback:",s),[3,4];case 4:return[2]}}))}))}var ih={send:function(e){bA(e)}},M8=["This ad = more free puzzles. Math checks out.","Brought to you by: this ad, basically.","Hey, good ad. (It pays for the good games.)","While you wait, an ad is doing the heavy lifting so our games stay free.","Think of this ad as the missing piece. It keeps everything together.","Our puzzles are free. This ad is how we keep it that way. We cool?","A small ad for you, a giant leap for indie game devs.","Loading an ad so we can keep the lights on â and by lights, we mean servers.","Free games don't pay for themselves. This ad does.","You solve our puzzles. This ad solves our rent.","Thanks for letting this ad hang out. It's the reason our games are free.","This little ad helps us build the puzzles you love â we appreciate you!","Every ad seen is another day of free puzzles â seriously, thank you!"],_A={time:"Time","time-comparison":"Your Time",streak:"Streak",percentile:"Percentile",score:"Score","win-rate":"Win Rate","games-played":"Games Played"};function I8(e){var t=Math.floor(e/60),n=e%60,i=parseFloat(n.toFixed(2)).toString();return t===0?"".concat(i,"s"):n===0?"".concat(t,"m"):"".concat(t,"m ").concat(i,"s")}function X6(e){return e.comparison?e.comparison:e.playerSeconds!=null&&e.avgSeconds!=null?{playerValue:e.playerSeconds,avgValue:e.avgSeconds,unit:"time",higherIsBetter:!1}:null}function e7(e){if(!e)return null;var t=e.playerValue,n=e.avgValue,i=e.unit,o=i===void 0?"count":i,s=e.higherIsBetter,l=s!==void 0&&s,c=e.unitLabel,d=c===void 0?"":c,f=l?t-n:n-t,h=Math.round(f),g=h>0;if(o==="time")return g?{text:"".concat(I8(h)," faster than avg"),better:!0}:{text:"Avg: ".concat(I8(Math.round(n))),better:!1};if(o==="percentage"){var w=Math.abs(h);return g?{text:"".concat(w,"% ").concat(l?"above":"below"," avg"),better:!0}:{text:"Avg: ".concat(Math.round(n),"%"),better:!1}}var m=Math.abs(h);return g?{text:"".concat(m).concat(d," ").concat(t>n?"more":"less"," than avg"),better:!0}:{text:"Avg: ".concat(Math.round(n)).concat(d),better:!1}}function io(e){return e.type==="custom"}function R8(e){return e.type==="streak"&&!!e.streakLevel}var CA=["M","T","W","T","F","S","S"];function xA(e,t){var n=document.createElement("div");n.style.textAlign="center";var i,o,s,l=document.createElement("div");l.className="gcm-card-value gcm-streak-title",l.appendChild((i=22,o=26,(s=document.createElement("span")).className="gcm-flame",s.style.width="".concat(i,"px"),s.style.height="".concat(o,"px"),['<svg width="W" height="H" viewBox="0 0 24 28" fill="none"><path d="M12 0C12 0 16 4 18 7C19.5 9.5 20 8 19 5.5C18.5 4 22 10 22.5 15.5C23 21 19 26 12 26C5 26 1 21 1.5 15.5C2 10 12 0 12 0Z" fill="#E8603C"/><path d="M12 7C12 7 5.5 13 5.5 17.5C5.5 22 8 24.5 12 24.5C16 24.5 18.5 22 18.5 17.5C18.5 13 12 7 12 7Z" fill="#F7A733"/><path d="M12 13C12 13 8.5 17 8.5 19.5C8.5 22 10 23.5 12 23.5C14 23.5 15.5 22 15.5 19.5C15.5 17 12 13 12 13Z" fill="#FCD062"/></svg>','<svg width="W" height="H" viewBox="0 0 24 28" fill="none"><path d="M10 0C10 0 5 5 3.5 8C2 10.5 3 8 4 5.5C4.5 4 0 11 0.5 16C1 21 5 26 12 26C19 26 22.5 21 22 15.5C21.5 10 10 0 10 0Z" fill="#E8603C"/><path d="M12 7C12 7 5.5 13.5 5.5 17.5C5.5 22 8 24.5 12 24.5C16 24.5 18.5 22 18.5 17.5C18.5 13.5 12 7 12 7Z" fill="#F7A733"/><path d="M12 13C12 13 9 17 9 19.5C9 22 10.2 23.5 12 23.5C13.8 23.5 15 22 15 19.5C15 17 12 13 12 13Z" fill="#FCD062"/></svg>
682','<svg width="W" height="H" viewBox="0 0 24 28" fill="none"><path d="M14 0C14 0 19 5 20.5 8C22 10.5 21 8 20 5.5C19.5 4 24 11 23.5 16C23 21 19 26 12 26C5 26 1.5 21 2 15.5C2.5 10 14 0 14 0Z" fill="#E8603C"/><path d="M12 7C12 7 18.5 13.5 18.5 17.5C18.5 22 16 24.5 12 24.5C8 24.5 5.5 22 5.5 17.5C5.5 13.5 12 7 12 7Z" fill="#F7A733"/><path d="M12 13C12 13 15 17 15 19.5C15 22 13.8 23.5 12 23.5C10.2 23.5 9 22 9 19.5C9 17 12 13 12 13Z" fill="#FCD062"/></svg>'].forEach((function(h){var g=h.replace(/W/g,String(i)).replace(/H/g,String(o));s.insertAdjacentHTML("beforeend",g)})),s)),l.appendChild(document.createTextNode(" ".concat(e,"-Day Streak!"))),n.appendChild(l);var c=document.createElement("div");c.className="gcm-streak-week";var d=O0(),f=new Set(t);return d.forEach((function(h){var g=f.has(h),w=(function(I){return(new Date(I+"T00:00:00").getDay()+6)%7})(h),m=document.createElement("div");m.className="gcm-streak-day";var b=document.createElement("div");if(b.className="gcm-streak-circle".concat(g?" gcm-streak-played":""),g){var _=document.createElementNS("http://www.w3.org/2000/svg","svg");_.setAttribute("viewBox","0 0 16 16"),_.setAttribute("fill","none");var C=document.createElementNS("http://www.w3.org/2000/svg","path");C.setAttribute("d","M3.5 8.5L6.5 11.5L12.5 4.5"),C.setAttribute("stroke","currentColor"),C.setAttribute("stroke-width","2.5"),C.setAttribute("stroke-linecap","round"),C.setAttribute("stroke-linejoin","round"),_.appendChild(C),b.appendChild(_)}var R=document.createElement("div");R.className="gcm-streak-label",R.textContent=CA[w],m.appendChild(b),m.appendChild(R),c.appendChild(m)})),n.appendChild(c),n}function SA(e,t){var n,i,o=document.createElement("div");o.className="gcm-card-inner",o.appendChild((function(){var f=document.createElement("div");f.className="gcm-card-skeleton";var h=document.createElement("div");h.className="gcm-skeleton-line gcm-skeleton-value";var g=document.createElement("div");return g.className="gcm-skeleton-line gcm-skeleton-label",f.appendChild(h),f.appendChild(g),f})());var s=e.streakLevel;if(!s)return o.innerHTML="",o.appendChild(wd(e)),o;var l=t||typeof window<"u"&&((i=(n=window.HeyGoodGame)===null||n===void 0?void 0:n.config)===null||i===void 0?void 0:i.gameKey)||"";if(!l)return o.innerHTML="",o.appendChild(wd(e)),o;var c=new Date;c.setDate(c.getDate()-7);var d=c.toISOString().split("T")[0];return Promise.all([yo.getStreaks(l,s),yo.getLogs(l,s,d,"win")]).then((function(f){var h,g=f[0],w=f[1],m=g&&(h=j0(g))!==null&&h!==void 0?h:0,b=w||[];o.innerHTML="",o.appendChild(xA(m,b))})).catch((function(f){console.warn("Failed to fetch streak data for GameCompleteModal:",f),o.innerHTML="";var h=wd(e);o.appendChild(h)})),o}function Mt(e,t,n){var i=document.createElement(e);return t&&(i.className=t),n&&(i.textContent=n),i}function j8(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");return e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.innerHTML='<path d="M16 8L12 4L8 8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 4V15" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M6 14V18.5C6 19.3284 6.67157 20 7.5 20H16.5C17.3284 20 18 19.3284 18 18.5V14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',e}var O8=function(){return typeof navigator<"u"&&/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},N8={1:{border:[["0%","#f7e47a"],["25%","#d4a828"],["50%","#f5df6b"],["75%","#c9971c"],["100%","#f0d85e"]],inner:[["0%","#fff4b8"],["40%","#e8c84a"],["100%","#b8871a"]],enamel:[["0%","#fff8e1"],["100%","#f5d660"]],text:"#8B6914",shadow:"#7a5c00"},2:{border:[["0%","#e8e8e8"],["25%","#a8a8a8"],["50%","#d8d8d8"],["75%","#909090"],["100%","#c8c8c8"]],inner:[["0%","#f5f5f5"],["40%","#c0c0c0"],["100%","#888888"]],enamel:[["0%","#f0f0f0"],["100%","#c0c0c0"]],text:"#555555",shadow:"#555555"},3:{border:[["0%","#e8b878"],["25%","#b87333"],["50%","#daa06d"],["75%","#a0622e"],["100%","#cd8c52"]],inner:[["0%","#f0d0a8"],["40%","#cd7f32"],["100%","#8b5a2b"]],enamel:[["0%","#f5dcc0"],["100%","#d4943a"]],text:"#6b3a1a",shadow:"#5c3310"}};function t7(e){var t=Mt("div","gcm-card-inner"),n=e.rank;if(n!=null&&n>=1&&n<=3){var i=e.isDaily!==!1?{1:"Best score so far today!",2:"2nd best score today!",3:"3rd best score today!"}:{1:"Best score on this puzzle!",2:"2nd best on this puzzle!",3:"3rd best on this puzzle!"},o=Mt("div","gcm-card-value"),s=Mt("span","gcm-card-podium-icon");s.innerHTML=(function(d,f){var h=N8[d]||N8[1],g="gcm-badge-".concat(d===1?"gold":d===2?"silver":"bronze"),w=function(b,_){for(var C="",R=0;R<24;R++){var I=R*Math.PI/12-Math.PI/2,k=R%2==0?b:_,A=32+k*Math.cos(I),L=32+k*Math.sin(I);C+=(R===0?"M":"L")+A.toFixed(1)+" "+L.toFixed(1)}return C+"Z"}
682,m=function(b){return b.map((function(_){var C=_[0],R=_[1];return'<stop offset="'.concat(C,'" stop-color="').concat(R,'"/>')})).join("")};return'<svg width="'.concat(f,'" height="').concat(f,`" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> 683 <defs> 684 <linearGradient id="`).concat(g,'-border" x1="0" y1="0" x2="1" y2="1">').concat(m(h.border),`</linearGradient> 685 <linearGradient id="`).concat(g,'-inner" x1="0.2" y1="0" x2="0.8" y2="1">').concat(m(h.inner),`</linearGradient> 686 <linearGradient id="`).concat(g,'-enamel" x1="0.5" y1="0" x2="0.5" y2="1">').concat(m(h.enamel),`</linearGradient> 687 <linearGradient id="`).concat(g,`-shine" x1="0.5" y1="0" x2="0.5" y2="1"> 688 <stop offset="0%" stop-color="white" stop-opacity="0.6"/><stop offset="100%" stop-color="white" stop-opacity="0"/> 689 </linearGradient> 690 <filter id="`).concat(g,`-shadow" x="-10%" y="-5%" width="120%" height="130%"> 691 <feDropShadow dx="0" dy="1.5" stdDeviation="1.5" flood-color="`).concat(h.shadow,`" flood-opacity="0.35"/> 692 </filter> 693 </defs> 694 <path d="`).concat(w(29,22),'" fill="url(#').concat(g,'-border)" filter="url(#').concat(g,`-shadow)"/> 695 <path d="`).concat(w(26.5,20.5),'" fill="url(#').concat(g,`-inner)"/> 696 <path d="`).concat(w(24,19),'" fill="url(#').concat(g,`-enamel)"/> 697 <path d="M32 8 a24 24 0 0 1 24 24 v-6 a24 24 0 0 0-24-18 a24 24 0 0 0-24 18 v6 a24 24 0 0 1 24-24Z" fill="url(#`).concat(g,`-shine)"/> 698 <text x="32" y="38" text-anchor="middle" font-family="'Nunito Sans', sans-serif" font-weight="900" font-size="22" fill="`).concat(h.text,'" letter-spacing="-0.5">#').concat(d,`</text> 699 <text x="32" y="38" text-anchor="middle" font-family="'Nunito Sans', sans-serif" font-weight="900" font-size="22" fill="url(#`).concat(g,'-border)" opacity="0.4" letter-spacing="-0.5">#').concat(d,`</text> 700 </svg>`)})(n,42),o.appendChild(s),o.appendChild(document.createTextNode({1:"Top Score",2:"2nd Place",3:"3rd Place"}[n]));var l=Mt("div","gcm-card-label",e.subtitle||e.label||i[n]);t.appendChild(o),t.appendChild(l)}else{var c=e.percentile!=null?100-e.percentile:0;(o=Mt("div","gcm-card-value")).textContent="ð Top ".concat(c,"%"),l=Mt("div","gcm-card-label",e.label||"Better than ".concat(e.percentile,"% of all players")),t.appendChild(o),t.appendChild(l)}return t}function wd(e){if(e.type==="percentile"&&e.percentile!=null)return t7(e);var t=Mt("div","gcm-card-inner"),n=Mt("div","gcm-card-value");if(e.icon&&typeof e.icon=="string"){var i=Mt("span","gcm-card-icon");e.icon.startsWith("<")?i.innerHTML=e.icon:i.textContent=e.icon,n.appendChild(i)}n.appendChild(document.createTextNode(e.value||"â"));var o=e.label!==void 0?e.label:_A[e.type]||e.type;if(t.appendChild(n),o){var s=Mt("div","gcm-card-label",o);t.appendChild(s)}var l=e7(X6(e));if(l){var c=Mt("div","gcm-card-comparison".concat(l.better?" gcm-comparison-faster":""),l.text);t.appendChild(c)}return t}function ah(e){var t,n=Mt("button",e.variant==="primary"?"gcm-btn gcm-btn-primary":"gcm-btn gcm-btn-secondary");if(e.icon){var i=Mt("span","gcm-btn-icon");e.icon==="share"?i.appendChild(j8()):e.icon==="clipboard"?i.appendChild(O8()?j8():((t=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.innerHTML='<path stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" stroke-width="2" d="M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"/>',t)):i.textContent=e.icon,n.appendChild(i)}var o=document.createTextNode(e.label);return n.appendChild(o),n.addEventListener("click",(function(){if(e.onClick(),e.icon==="clipboard"&&!O8()){n.style.minWidth="".concat(n.offsetWidth,"px"),n.style.minHeight="".concat(n.offsetHeight,"px");var s=n.querySelector(".gcm-btn-icon");
700s&&(s.style.display="none"),o.textContent="Copied!",setTimeout((function(){s&&(s.style.display=""),o.textContent=e.label,n.style.minWidth="",n.style.minHeight=""}),2e3)}})),n}var AA={twitter:'<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>',threads:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.59 12c.025 3.086.718 5.496 2.057 7.164 1.432 1.784 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.96-.065-1.17.408-2.264 1.332-3.084.9-.798 2.164-1.272 3.665-1.376 1.074-.074 2.088-.006 3.022.176-.109-.906-.455-1.6-1.03-2.065-.657-.531-1.6-.806-2.802-.82l-.025.001c-1.37.017-2.467.424-3.267 1.213l-1.4-1.46c1.134-1.12 2.642-1.71 4.487-1.754h.046c1.66.02 3.005.483 3.993 1.38.937.847 1.49 2.04 1.648 3.546.59.142 1.134.338 1.625.587 1.14.577 2.026 1.434 2.57 2.48.826 1.588.904 4.2-1.07 6.14-1.786 1.756-4.004 2.512-7.085 2.536zM13.4 13.171c-1.383.093-2.665.71-2.622 1.468.022.393.333.792.856 1.13.596.386 1.373.574 2.19.535 1.074-.058 1.9-.44 2.456-1.133.347-.432.607-.997.774-1.683-.577-.132-1.193-.218-1.84-.258-.598-.04-1.21-.064-1.814-.06z"/></svg>',bluesky:'<svg width="20" height="20" viewBox="0 0 568 501" fill="currentColor"><path d="M123.121 33.664C188.241 82.553 258.281 181.68 284 234.873c25.719-53.192 95.759-152.32 160.879-201.21C491.866-1.611 568-28.906 568 57.947c0 17.346-9.945 145.713-15.778 166.555-20.275 72.453-94.155 90.933-159.875 79.748C507.222 323.8 536.444 388.56 473.333 453.32c-119.86 122.992-172.272-30.859-185.702-70.281-2.462-7.227-3.614-10.608-3.631-7.733-.017-2.875-1.169.506-3.631 7.733-13.43 39.422-65.842 193.273-185.702 70.281-63.111-64.76-33.89-129.52 80.986-149.071-65.72 11.185-139.6-7.295-159.875-79.748C10.045 203.66.1 75.293.1 57.947.1-28.906 76.234-1.611 123.121 33.664z"/></svg>',instagram:'<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"/></svg>',discord:'<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M20.317 4.37a19.791 19.791 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.736 19.736 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 00.031.057 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.107 13.107 0 01-1.872-.892.077.077 0 01-.008-.128 10.2 10.2 0 00.372-.292.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.01c.12.098.246.198.373.292a.077.077 0 01-.006.127 12.299 12.299 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.839 19.839 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/>
700</svg>'};function EA(e,t){var n=Mt("div","");function i(){n.innerHTML="";var o=Mt("div","gcm-feedback-thanks"),s=Mt("div","gcm-card-value");s.textContent="Thanks!",o.appendChild(s),n.appendChild(o)}return n.addEventListener("click",(function(o){return o.stopPropagation()})),n.addEventListener("mousedown",(function(o){return o.stopPropagation()})),n.addEventListener("touchstart",(function(o){return o.stopPropagation()})),(function(){n.innerHTML="";var o=Mt("div","gcm-feedback-prompt");o.textContent="How did you like this puzzle?";var s=Mt("div","gcm-feedback-buttons"),l=document.createElement("button");l.className="gcm-feedback-btn",l.textContent="ð",l.setAttribute("aria-label","Thumbs up"),l.addEventListener("click",(function(){Ti.trackGA("gcm_feedback",{game_key:e||"",sentiment:"positive"}),ih.send({game_key:e||"",sentiment:"positive",game_stat_id:t}),i()}));var c=document.createElement("button");c.className="gcm-feedback-btn",c.textContent="ð",c.setAttribute("aria-label","Thumbs down"),c.addEventListener("click",(function(){Ti.trackGA("gcm_feedback",{game_key:e||"",sentiment:"negative"}),ih.send({game_key:e||"",sentiment:"negative",game_stat_id:t}),(function(){n.innerHTML="";var d=Mt("div","gcm-feedback-prompt");d.textContent="What could be better?";var f=document.createElement("textarea");f.className="gcm-feedback-textarea",f.rows=2,f.placeholder="Tell us more...";var h=document.createElement("button");h.className="gcm-feedback-submit",h.textContent="Submit",h.addEventListener("click",(function(){var g=f.value.trim();g&&ih.send({game_key:e||"",sentiment:"negative",comment:g,game_stat_id:t}),i()})),n.appendChild(d),n.appendChild(f),n.appendChild(h),setTimeout((function(){return f.focus()}),50)})()})),s.appendChild(l),s.appendChild(c),n.appendChild(o),n.appendChild(s)})(),n}function kA(e,t,n,i){var o=0,s=!1,l=0,c=0,d=[];function f(W,ae,te){W.addEventListener(ae,te),d.push({target:W,event:ae,handler:te})}var h=Zs([],e.filter((function(W){return!(!io(W)&&W.type==="percentile"&&W.percentile!=null)||W.rank!=null&&W.rank>=1&&W.rank<=3||W.percentile>=70}))),g=h.findIndex((function(W){return!io(W)&&W.type==="percentile"&&(W.rank!=null&&W.rank>=1&&W.rank<=3||W.percentile!=null&&W.percentile>=90)}));if(g>0){var w=h.splice(g,1)[0];h.unshift(w)}var m,b=Mt("div","gcm-carousel"),_=Mt("div","gcm-carousel-viewport"),C=Mt("div","gcm-carousel-track"),R={1:"gcm-card-gold",2:"gcm-card-silver",3:"gcm-card-bronze"},I=h.map((function(W){var ae=Mt("div","gcm-card");return!io(W)&&W.type==="percentile"&&W.rank!=null&&R[W.rank]&&ae.classList.add(R[W.rank]),io(W)?typeof W.content=="string"&&(ae.innerHTML=W.content):W.type==="feedback"?ae.appendChild(EA(t,n)):R8(W)?ae.appendChild(SA(W,t)):ae.appendChild(wd(W)),ae}));I.forEach((function(W,ae){var te=h[ae];!io(te)&&te.type==="feedback"||f(W,"click",(function(){D(ae===o?(o+1)%h.length:ae)})),C.appendChild(W)})),_.appendChild(C),b.appendChild(_);var k=[];if(h.length>1){m=Mt("div","gcm-dots");var A=Mt("button","gcm-dots-prev");A.setAttribute("aria-label","Previous card"),f(A,"click",(function(){return D(o-1)})),m.appendChild(A),k=h.map((function(W,ae){var te=Mt("button","gcm-dot".concat(ae===0?" gcm-dot-active":""));return te.setAttribute("aria-label","Go to card ".concat(ae+1)),f(te,"click",(function(){return D(ae)})),m.appendChild(te),te}));var L=Mt("button","gcm-dots-next");L.setAttribute("aria-label","Next card"),f(L,"click",(function(){return D(o+1)})),m.appendChild(L),b.appendChild(m)}function j(){var W=_.offsetWidth,ae=.65*W,te=(W-ae)/2-o*(ae+8)+(s?c:0);C.style.transform="translateX(".concat(te,"px)"),I.forEach((function(ce,pe){var me=(function(ne,X,re,H){var K=ne-X+(H>0?re/H:0),he=Math.abs(K),Ce=he<.5,ke=Math.max(.85,1-.1*he);return{rotation:5*K,blur:Math.min(1.5*he,3),yOffset:8*he,scale:ke,opacity:Math.max(.5,1-.3*he),isActive:Ce}})(pe,o,s?c:0,ae);ce.style.transform="scale(".concat(me.scale,") rotate(").concat(me.rotation,"deg) translateY(").concat(me.yOffset,"px)"),ce.style.opacity=String(me.opacity),ce.style.filter=me.blur>0?"blur(".concat(me.blur,"px)"):""}))}
700function D(W){o=Math.max(0,Math.min(W,h.length-1)),k.forEach((function(ae,te){ae.className="gcm-dot".concat(te===o?" gcm-dot-active":"")})),j()}function V(W){s=!0,l=W,C.classList.add("gcm-dragging")}function q(W){s&&(c=W-l,j())}function $(){if(s){s=!1,C.classList.remove("gcm-dragging");var W=(function(ae,te,ce,pe){if(pe===void 0&&(pe=50),ce<=1)return 0;var me=ae;return te<-pe?me=ae+1:te>pe&&(me=ae-1),Math.max(0,Math.min(me,ce-1))})(o,c,h.length);c=0,D(W)}}return f(_,"mousedown",(function(W){W.preventDefault(),V(W.clientX)})),f(_,"mousemove",(function(W){return q(W.clientX)})),f(_,"mouseup",(function(){return $()})),f(_,"mouseleave",(function(){s&&$()})),f(_,"touchstart",(function(W){return V(W.touches[0].clientX)})),f(_,"touchmove",(function(W){return q(W.touches[0].clientX)})),f(_,"touchend",(function(){return $()})),requestAnimationFrame(j),i&&i.then((function(W){if(W&&b.isConnected){if(W.avg_metric!=null&&(X=h.findIndex((function(ke){return!io(ke)&&ke.type==="time-comparison"})))>=0){var ae=h[X],te=e7(X6(Tn(Tn({},ae),{avgSeconds:W.avg_metric})));if(te){var ce=I[X].querySelector(".gcm-card-inner");if(ce){var pe=Mt("div","gcm-card-comparison".concat(te.better?" gcm-comparison-faster":""),te.text);ce.appendChild(pe)}}}if(W.percentile!=null&&(W.percentile>=70||W.rank!=null&&W.rank>=1&&W.rank<=3)){var me={type:"percentile",percentile:W.percentile,rank:W.rank,isDaily:h.some((function(ke){return!io(ke)&&R8(ke)}))},ne=Mt("div","gcm-card");W.rank!=null&&R[W.rank]&&ne.classList.add(R[W.rank]),ne.appendChild(t7(me));var X,re=(X=h.findIndex((function(ke){return!io(ke)&&ke.type==="time-comparison"})))>=0?X+1:0,H=W.rank!=null&&W.rank>=1&&W.rank<=3||W.percentile>=90,K=H?0:re;if(h.splice(K,0,me),I.splice(K,0,ne),K<C.children.length?C.insertBefore(ne,C.children[K]):C.appendChild(ne),f(ne,"click",(function(){D(K===o?(o+1)%h.length:K)})),m)k.forEach((function(ke){return ke.remove()})),m.querySelectorAll(".gcm-dots-prev, .gcm-dots-next").forEach((function(ke){return ke.remove()})),(he=Mt("button","gcm-dots-prev")).setAttribute("aria-label","Previous card"),f(he,"click",(function(){return D(o-1)})),m.appendChild(he),k=h.map((function(ke,be){var Re=Mt("button","gcm-dot".concat(be===o?" gcm-dot-active":""));return Re.setAttribute("aria-label","Go to card ".concat(be+1)),f(Re,"click",(function(){return D(be)})),m.appendChild(Re),Re})),(Ce=Mt("button","gcm-dots-next")).setAttribute("aria-label","Next card"),f(Ce,"click",(function(){return D(o+1)})),m.appendChild(Ce);else if(h.length>1){var he,Ce;m=Mt("div","gcm-dots"),(he=Mt("button","gcm-dots-prev")).setAttribute("aria-label","Previous card"),f(he,"click",(function(){return D(o-1)})),m.appendChild(he),k=h.map((function(ke,be){var Re=Mt("button","gcm-dot".concat(be===o?" gcm-dot-active":""));return Re.setAttribute("aria-label","Go to card ".concat(be+1)),f(Re,"click",(function(){return D(be)})),m.appendChild(Re),Re})),(Ce=Mt("button","gcm-dots-next")).setAttribute("aria-label","Next card"),f(Ce,"click",(function(){return D(o+1)})),m.appendChild(Ce),b.appendChild(m)}H&&o===0?requestAnimationFrame(j):j()}}})).catch((function(){})),{element:b,destroy:function(){d.forEach((function(W){var ae=W.target,te=W.event,ce=W.handler;return ae.removeEventListener(te,ce)}))}}}function F8(e){var t,n,i=[],o=null,s=Date.now(),l=!1,c=e.gameKey||typeof window<"u"&&((n=(t=window.HeyGoodGame)===null||t===void 0?void 0:t.config)===null||n===void 0?void 0:n.gameKey)||"",d=function(){return Math.round((Date.now()-s)/1e3)},f=e.gameStatIdPromise||e.gameStatId;function h(ne){l||(l=!0,Ti.trackGA("gcm_close",{game_key:c,duration_seconds:d(),close_method:ne}),ta.track(c,{event_type:"close",close_method:ne,duration_seconds:d()},f))}function g(ne,X,re){ne.addEventListener(X,re),i.push({target:ne,event:X,handler:re})}Ti.trackGA("gcm_impression",{game_key:c});var w=c?{sourceGameKey:c,placement:"gcm"}:void 0,m=[];e.crossPromos&&e.crossPromos.length>0?m=e.crossPromos.slice(0,e.maxPromos||2).map((function(ne,X){var re;if(!w)return ne;var H="promo_".concat(X+1),K=ne.recommendationType||"unknown";return Tn(Tn({},ne),{url:Kd(ne.url,w,K,H),socialAccounts:(re=ne.socialAccounts)===null||re===void 0?void 0:re.map((function(he){return Tn(Tn({}
700,he),{url:Kd(he.url,w,K,H)})}))})})):e.recommendations&&e.recommendations.length>0&&(m=k8(e.recommendations,e.maxPromos||2,w,e.skipPromoUrls));var b=Mt("div","gcm-backdrop");g(b,"click",(function(){return pe("backdrop")}));var _=Mt("div","gcm-modal".concat(e.className?" ".concat(e.className):""));if(e.onClose){var C=Mt("button","gcm-close");C.setAttribute("aria-label","Close"),g(C,"click",(function(){return pe()})),_.appendChild(C)}if(e.subtitle){var R=Mt("div","gcm-subtitle",e.subtitle);_.appendChild(R)}var I=Mt("div","gcm-title",e.title);_.appendChild(I),requestAnimationFrame((function(){I.style.whiteSpace="nowrap";for(var ne=1.5;ne>1&&I.scrollWidth>I.clientWidth;)ne-=.05,I.style.fontSize="".concat(ne,"rem");I.style.whiteSpace=""})),e.statCards&&e.statCards.length>0&&(o=kA(e.statCards,e.gameKey,e.gameStatId,e._aggregatePromise),_.appendChild(o.element));var k=e.secondaryAction?2:0,A=e.secondaryAction?2:1,L=Mt("div","gcm-actions");if(e.secondaryAction){var j=ah(e.secondaryAction);g(j,"click",(function(){h("cta_click"),Ti.trackGA("gcm_cta_click",{game_key:c,cta_type:"secondary",cta_label:e.secondaryAction.label,duration_seconds:d(),recommendation_type:e.secondaryAction.recommendationType}),ta.track(c,{event_type:"cta_click",cta_type:"secondary",cta_label:e.secondaryAction.label,position:k,duration_seconds:d(),recommendation_type:e.secondaryAction.recommendationType},f)})),L.appendChild(j)}var D=ah(e.primaryAction);function V(ne,X){X.forEach((function(re,H){Ti.trackGA("gcm_promo_impression",{game_key:c,promo_position:H+1,promo_label:re.linkText||re.text,promo_url:re.url,recommendation_type:re.recommendationType});var K=A+H+1;if(re.socialAccounts&&re.socialAccounts.length>0){var he=(function(be,Re,Ve,ht){var dt=Mt("div","gcm-social-follow"),ut=function(O){Array.from(Re.children).forEach((function(v){v!==dt&&v instanceof HTMLElement&&(v.style.display=O?"none":"")}))},$t=Mt("div","gcm-social-follow-collapsed gcm-promo");if(be.icon&&typeof be.icon=="string"){var bt=Mt("span","gcm-promo-icon");be.icon.startsWith("<")?bt.innerHTML=be.icon:bt.textContent=be.icon,$t.appendChild(bt)}if(be.text&&be.linkText){var vn=Mt("span","gcm-promo-text",be.text);$t.appendChild(vn)}var yn=document.createElement("a");yn.className="gcm-promo-link",yn.href="#",yn.textContent=be.linkText||be.text,yn.addEventListener("click",(function(O){O.preventDefault(),dt.classList.add("gcm-social-follow-expanded"),ut(!0),Ve?.()})),$t.appendChild(yn);var Wn=Mt("span","gcm-promo-arrow");$t.appendChild(Wn);var ot=Mt("div","gcm-social-icons-row"),sn=Mt("button","gcm-social-back");sn.setAttribute("aria-label","Back"),sn.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 18l-6-6 6-6"/></svg>',sn.addEventListener("click",(function(){dt.classList.remove("gcm-social-follow-expanded"),ut(!1)}));var qt=Mt("div","gcm-social-icons-group");qt.appendChild(sn);var en=Mt("div","gcm-social-icons");(be.socialAccounts||[]).forEach((function(O,v){var P=document.createElement("a");P.className="gcm-social-item gcm-social-item-".concat(O.platform),P.href=O.url,P.target="_blank",P.rel="noopener noreferrer",P.title=O.label,P.style.animationDelay="".concat(80*(v+1),"ms");var U=Mt("span","gcm-social-icon");U.innerHTML=AA[O.platform]||O.platform,P.appendChild(U),P.addEventListener("click",(function(){return ht?.(O.platform)})),en.appendChild(P)})),qt.appendChild(en);var Pn=Mt("span","gcm-social-subtitle","Follow along to see daily scores");return qt.appendChild(Pn),ot.appendChild(qt),dt.appendChild($t),dt.appendChild(ot),dt})(re,ne,(function(){Ti.trackGA("gcm_cta_click",{game_key:c,cta_type:"social_expand",cta_label:re.linkText||re.text,duration_seconds:d(),recommendation_type:re.recommendationType}),ta.track(c,{event_type:"cta_click",cta_type:"promo_".concat(H+1),cta_label:re.linkText||re.text,position:K,duration_seconds:d(),recommendation_type:re.recommendationType},f)}),(function(be){var Re="".concat(c,":").concat(be);Ti.trackGA("gcm_cta_click",{game_key:c,cta_type:"social_follow_click",cta_label:be,duration_seconds:d(),recommendation_type:Re}),ta.track(c,{event_type:"cta_click",cta_type:"promo_".concat(H+1),cta_label:be,position:K,duration_seconds:d(),recommendation_type:Re},f)}));ne.appendChild(he)}else{var Ce=(function(be){var Re=Mt("div","gcm-promo");
700if(be.icon&&typeof be.icon=="string"){var Ve=Mt("span","gcm-promo-icon");be.icon.startsWith("<")?Ve.innerHTML=be.icon:Ve.textContent=be.icon,Re.appendChild(Ve)}if(be.text&&be.linkText){var ht=Mt("span","gcm-promo-text",be.text);Re.appendChild(ht)}var dt=document.createElement("a");dt.className="gcm-promo-link",dt.href=be.url,(function(){try{return be.url.startsWith("/")||new URL(be.url).origin===window.location.origin}catch{return!1}})()||(dt.target="_blank",dt.rel="noopener"),dt.textContent=be.linkText||be.text,be.onClick?dt.addEventListener("click",(function($t){$t.preventDefault(),be.onClick()})):dt.addEventListener("click",(function($t){Sf(be.url,"cross-promo")&&$t.preventDefault()})),Re.appendChild(dt);var ut=Mt("span","gcm-promo-arrow");return Re.appendChild(ut),Re})(re),ke=Ce.querySelector(".gcm-promo-link");ke&&g(ke,"click",(function(){h("cta_click"),Ti.trackGA("gcm_cta_click",{game_key:c,cta_type:"promo_".concat(H+1),cta_label:re.linkText||re.text,duration_seconds:d(),recommendation_type:re.recommendationType}),ta.track(c,{event_type:"cta_click",cta_type:"promo_".concat(H+1),cta_label:re.linkText||re.text,position:K,duration_seconds:d(),recommendation_type:re.recommendationType},f)})),ne.appendChild(Ce)}})),ta.trackBatch(c,X.map((function(re,H){return{event_type:"cta_impression",cta_type:"promo_".concat(H+1),cta_label:re.linkText||re.text,cta_url:re.url,position:A+H+1,recommendation_type:re.recommendationType}})),f)}if(g(D,"click",(function(){h("cta_click");var ne=e.primaryAction.icon,X=ne==="share"||ne==="clipboard"?"share":"primary";Ti.trackGA("gcm_cta_click",{game_key:c,cta_type:X,cta_label:e.primaryAction.label,duration_seconds:d(),recommendation_type:e.primaryAction.recommendationType}),ta.track(c,{event_type:"cta_click",cta_type:X,cta_label:e.primaryAction.label,position:1,duration_seconds:d(),recommendation_type:e.primaryAction.recommendationType},f)})),L.appendChild(D),_.appendChild(L),m.length>0){var q=Mt("div","gcm-promos");V(q,m),_.appendChild(q)}else if(e._recsPromise){var $=Mt("div","gcm-promos"),W=Mt("div","gcm-promo-skeleton");$.appendChild(W),_.appendChild($),e._recsPromise.then((function(ne){var X=k8(ne,e.maxPromos||2,w,e.skipPromoUrls);W.remove(),X.length>0?V($,X):$.remove()})).catch((function(){$.remove()}))}var ae=e.primaryAction.icon==="share"||e.primaryAction.icon==="clipboard"?"share":"primary";if(ta.trackBatch(c,Zs([{event_type:"impression"},{event_type:"cta_impression",cta_type:ae,cta_label:e.primaryAction.label,cta_url:"",position:1,recommendation_type:e.primaryAction.recommendationType}],e.secondaryAction?[{event_type:"cta_impression",cta_type:"secondary",cta_label:e.secondaryAction.label,cta_url:"",position:k,recommendation_type:e.secondaryAction.recommendationType}]:[]),f),e.adSlot){var te=Mt("div","gcm-ad-slot"),ce=Mt("div");ce.id=e.adSlot.containerId||"modal_W_D_1",ce.setAttribute("data-size","".concat(e.adSlot.width||300,"x").concat(e.adSlot.height||250)),ce.setAttribute("data-placeholder",M8[Math.floor(Math.random()*M8.length)].replace(new RegExp("(?<=[.!?]) ","g"),` 701`)),ce.style.width="".concat(e.adSlot.width||300,"px"),ce.style.height="".concat(e.adSlot.height||250,"px"),te.appendChild(ce),_.appendChild(te)}function pe(ne){ne===void 0&&(ne="close_button"),h(ne),b.classList.add("gcm-exiting"),_.classList.add("gcm-exiting"),setTimeout((function(){var X;me(),(X=e.onClose)===null||X===void 0||X.call(e)}),200)}function me(){o?.destroy(),i.forEach((function(ne){var X=ne.target,re=ne.event,H=ne.handler;return X.removeEventListener(re,H)})),b.remove(),_.remove(),document.documentElement.style.overflow="",document.body.style.overflow=""}return document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",document.body.appendChild(b),document.body.appendChild(_),{element:_,destroy:me,update:function(ne){if(ne.title!==void 0&&(I.textContent=ne.title),ne.subtitle!==void 0){var X=_.querySelector(".gcm-subtitle");if(X)X.textContent=ne.subtitle;else if(ne.subtitle){var re=Mt("div","gcm-subtitle",ne.subtitle);I.insertAdjacentElement("afterend",re)}}if(ne.primaryAction!==void 0){var H=_.querySelector(".gcm-btn-primary");if(H){var K=ne.primaryAction,he=ah(K);g(he,"click",(function(){h("cta_click");var Ce=K.icon,ke=Ce==="share"||Ce==="clipboard"?"share":"primary";Ti.trackGA("gcm_cta_click",{game_key:c,cta_type:ke,cta_label:K.label,duration_seconds:d(),recommendation_type:K.recommendationType}),ta.track(c,{event_type:"cta_click",cta_type:ke,cta_label:K.label,position:1,duration_seconds:d(),recommendation_type:K.recommendationType},f)})),H.replaceWith(he)}}}}}var TA={show:function(e){return F8(e)},showWithRecommendations:function(e,t){t===void 0&&(t=2);var n=(function(s){return Et(this,void 0,void 0,(function(){var l,c,d,f,h,g,w,m,b,_,C,R,I;return kt(this,(function(k){switch(k.label){case 0:l=[],c=null,k.label=1;case 1:return k.trys.push([1,4,,5]),(d=(_=window.HeyGoodGame)===null||_===void 0?void 0:_.Recommendations)?[4,d.getPlayNext()]:[3,3];case 2:f=k.sent(),l=f.data.combined,c=(C=f.data.same_game)!==null&&C!==void 0?C:null,k.label=3;case 3:return[3,5];case 4:return h=k.sent(),console.warn("Failed to fetch recommendations for game c
701omplete modal:",h),[3,5];case 5:return(g=s.gameKey||typeof window<"u"&&((I=(R=window.HeyGoodGame)===null||R===void 0?void 0:R.config)===null||I===void 0?void 0:I.gameKey)||"")&&s.level&&(w=new Set(["streak_at_risk","daily_incomplete","favorites"]),l=l.filter((function(A){return A.game_key!==g||!w.has(A.recommendation_type)||A.level!==s.level}))),c?.secondary&&(m=c.secondary,b={recommendation_type:"same_game",game_key:g,game_url:m.url,game_name:m.label,level:m.level,reason:m.reason},l.unshift(b)),[2,{recs:l,sameGame:c}]}}))}))})(e),i=n.then((function(s){return s.recs})),o=F8(Tn(Tn({},e),{_recsPromise:i,maxPromos:t}));return n.then((function(s){var l=s.sameGame;if(l?.primary&&l.primary.strength==="strong"){var c=l.primary,d=e.urlTransform,f=d?d(c.url):c.url;o.update({primaryAction:{label:c.label,onClick:function(){setTimeout((function(){window.location.href=f}),0)},variant:"primary",recommendationType:c.recommendation_type}})}})).catch((function(){})),o}};const D8=`<header class="header"> 702 <div class="left"> 703 <canvas 704 class="burger" 705 onpointerup="HeyGoodGame.toggleSidebar()" 706 id="canvas" 707 width="42" 708 height="42" 709 ></canvas> 710 <a class="logo" href="/"> 711 <img src="" alt="" id="main-logo" /> 712 </a> 713 </div> 714 <div class="right"> 715 <ul class="navbar"> 716 <li id="log-in"> 717 <a 718 class="log-in-link" 719 href="{{ dashboardBaseUrl }}/login?redirect_uri={{ returnTo }}" 720 > 721 Log In 722 </a> 723 </li> 724 <li id="sign-up" class="sign-up"> 725 <a 726 class="sign-up-link" 727 href="{{ dashboardBaseUrl }}/register?redirect_uri={{ returnTo }}" 728 > 729 Sign Up 730 <svg 731 width="24" 732 height="24"
733 viewBox="0 0 24 24" 734 fill="none" 735 xmlns="http://www.w3.org/2000/svg" 736 > 737 <g id="Icons Navigation"> 738 <path 739 id="Vector 108" 740 d="M6 12H18M18 12L12.1463 6M18 12L12.1463 18" 741 stroke="black" 742 stroke-width="2" 743 stroke-linecap="round" 744 stroke-linejoin="round" 745 /> 746 </g> 747 </svg> 748 </a> 749 </li> 750 </ul> 751 </div> 752</header> 753 754<div class="sidebar" id="sidebar"> 755 <div class="sidebar-header"> 756 <h2 class="greeting">Hey <span id="name"></span>!</h2> 757 <p>You have a <span id="current-play-streak">0</span> day streak!</p> 758 </div> 759 <nav class="sidebar-menu"> 760 <a 761 class="menu-item" 762 href="{{ dashboardBaseUrl }}/dashboard/{{ gameKey }}?return_to={{ returnTo }}" 763 > 764 <svg 765 width="24" 766 height="24" 767 viewBox="0 0 24 24" 768 fill="none" 769 xmlns="http://www.w3.org/2000/svg" 770 > 771 <g clip-path="url(#clip0_12887_4394)"> 772 <path d="M2 12H6V23H2V12Z" fill="#FCFAFA" /> 773 <path d="M8 1H17V5H13V23H8V1Z" fill="var(--heygg-primary-color)" /> 774 <path d="M15 7H22V23H15V7Z" fill="white" /> 775 </g> 776 <defs> 777 <clipPath id="clip0_12887_4394"> 778 <rect width="24" height="24" fill="white" /> 779 </clipPath> 780 </defs> 781 </svg> 782 783 Stats 784 </a> 785 <a 786 class="menu-item" 787 href="{{ dashboardBaseUrl }}/dashboard/leaderboard/{{ gameKey }}?return_to={{ returnTo }}" 788 > 789 <svg 790 xmlns="http://www.w3.org/2000/svg" 791 width="25" 792 height="24"
793 viewBox="0 0 25 24" 794 fill="none" 795 > 796 <path 797 d="M10.5 16L8 3.5L21 1L18 7L24.5 12.5L10.5 16Z" 798 fill="var(--heygg-primary-color)" 799 /> 800 <path 801 d="M3.75641 2.92717C2.81554 3.33142 5.33432 15.1641 6.99979 22.5005C7.109 22.9832 7.70639 22.951 8.57899 22.3191C9.45158 21.6871 5.82939 2.68905 5.60237 2.55271C5.37535 2.41636 4.93249 2.42186 3.75641 2.92717Z" 802 fill="white" 803 /> 804 </svg> 805 Leaderboard</a 806 > 807 {{:if showArchive}} 808 <a class="menu-item" href="/archive" 809 ><svg 810 width="24" 811 height="24" 812 viewBox="0 0 24 24" 813 fill="none" 814 xmlns="http://www.w3.org/2000/svg" 815 > 816 <g clip-path="url(#clip0_12887_4409)"> 817 <g clip-path="url(#clip1_12887_4409)"> 818 <path 819 d="M8.67774 19.8113C11.7962 22.4443 20.4021 20.0616 21.5 14.5C22.7831 8 19.0727 3.00007 12.7337 3C6.67434 2.99993 4.91493 7.78867 4 10.3323" 820 stroke="var(--heygg-primary-color)" 821 stroke-width="3" 822 /> 823 <path 824 d="M3.81942 15.8509L0 7.83984L10.063 10.2321L3.81942 15.8509Z" 825 fill="var(--heygg-primary-color)" 826 /> 827 </g> 828 </g> 829 <defs> 830 <clipPath id="clip0_12887_4409"> 831 <rect width="24" height="24" fill="white" /> 832 </clipPath> 833 <clipPath id="clip1_12887_4409"> 834 <rect width="24" height="24" fill="white" /> 835 </clipPath> 836 </defs> 837 </svg> 838 Game Archive 839 </a> 840 {{:/if}} 841 <a 842 class="menu-item" 843 href="{{ dashboardBaseUrl }}/auth/discord?return_to={{ returnTo }}" 844 > 845 <svg 846 xmlns="http://www.w3.org/2000/svg" 847 width="24" 848 height="24"
849 viewBox="0 0 24 24" 850 fill="none" 851 > 852 <path 853 d="M14.7937 2.18484C13.3883 1.97663 7.49391 1.90289 4.93474 2.18483C3.63351 3.16079 5.29973 7.79533 5.75513 8.12065C6.21054 8.44597 10.0934 7.80486 10.1905 7.80486C10.2875 7.80486 12.8362 10.1726 13.3567 10.1076C13.8772 10.0425 13.1271 7.9657 13.062 7.64038C12.9969 7.31506 14.7339 7.60014 15.1243 7.47001C15.5147 7.33988 15.7833 2.33144 14.7937 2.18484Z" 854 fill="var(--heygg-primary-color)" 855 /> 856 <path 857 d="M8.5 17.4999C3.22956 17.0784 1.5269 22.4099 1 23H14C13.8243 21.4826 12.7164 17.8371 8.5 17.4999Z" 858 fill="var(--heygg-primary-color)" 859 /> 860 <path 861 d="M13 18.4999C13.7693 17.6281 15.2753 16 17 16C20.5 16 21.609 21.8459 21.7261 23.419" 862 stroke="var(--heygg-primary-color)" 863 stroke-width="2" 864 /> 865 <path 866 d="M9.55062 16.5963C6.55917 17.2932 3.87765 12.1442 7.03125 10.7C10.9732 8.89465 12.5421 15.8994 9.55062 16.5963Z" 867 fill="var(--heygg-primary-color)" 868 /> 869 <path 870 d="M16.9547 13.99C19.5475 14.6874 21.7211 10.0816 18.9693 8.70361C15.5296 6.98107 14.362 13.2926 16.9547 13.99Z" 871 fill="var(--heygg-primary-color)" 872 /> 873 </svg> 874 Game Community 875 </a> 876 <a 877 class="menu-item" 878 href="{{ dashboardBaseUrl }}/profile?return_to={{ returnTo }}" 879 > 880 <svg 881 xmlns="http://www.w3.org/2000/svg" 882 width="24" 883 height="24"
884 viewBox="0 0 24 24" 885 fill="none" 886 > 887 <g clip-path="url(#clip0_12887_4417)"> 888 <path 889 fill-rule="evenodd" 890 clip-rule="evenodd" 891 d="M10.4333 3.55049L5.89718 1.61806L5.40157 6.52364L0.684585 7.95905L3.45817 12.0355L0.767417 16.1671L5.51241 17.507L6.10691 22.4016L10.6031 20.378L14.2047 23.7454L16.3482 19.3051L21.2716 19.5696L20.0596 14.7903L24.0011 11.8282L20.0006 8.9462L21.116 4.14347L16.1989 4.50724L13.9662 0.111174L10.4333 3.55049ZM14.2815 7.90682L7.95918 9.66946L9.72182 15.9918L16.0442 14.2292L14.2815 7.90682Z" 892 fill="var(--heygg-primary-color)" 893 /> 894 </g> 895 <defs> 896 <clipPath id="clip0_12887_4417"> 897 <rect width="24" height="24" fill="white" /> 898 </clipPath> 899 </defs> 900 </svg> 901 Settings 902 </a> 903 </nav> 904 <h3>OTHER GOOD GAMES</h3> 905 <nav class="sidebar-games"> 906 <a 907 href="https://www.crosswordle.com" 908 target="_blank" 909 rel="noopener noreferrer" 910 class="flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal" 911 > 912 <svg 913 width="26" 914 height="26"
915 viewBox="0 0 26 26" 916 fill="none" 917 xmlns="http://www.w3.org/2000/svg" 918 class="mr-2 -rotate-[8deg]" 919 > 920 <g filter="url(#filter0_d_11954_5118)"> 921 <g clipPath="url(#clip0_11954_5118)"> 922 <rect width="24" height="24" fill="white"></rect> 923 <rect x="12" width="12" height="12" fill="#E3DCDA"></rect> 924 <rect y="12" width="12" height="12" fill="#91D67D"></rect> 925 <rect x="12" y="12" width="12" height="12" fill="#ECDD53"></rect> 926 <rect 927 x="1.76514" 928 y="1.76562" 929 width="6.70832" 930 height="6.70832" 931 fill="#91D67D" 932 ></rect> 933 <rect width="12" height="12" fill="white"></rect> 934 <path d="M12 0L12 24" stroke="#150C09"></path> 935 <path d="M0 12L24 12" stroke="#150C09"></path> 936 <path 937 d="M4.125 9.75V3.93182H6.63636C7.06818 3.93182 7.44602 4.01705 7.76989 4.1875C8.09375 4.35795 8.34564 4.59754 8.52557 4.90625C8.70549 5.21496 8.79545 5.57576 8.79545 5.98864C8.79545 6.4053 8.70265 6.7661 8.51705 7.07102C8.33333 7.37595 8.07481 7.6108 7.74148 7.77557C7.41004 7.94034 7.02273 8.02273 6.57955 8.02273H5.07955V6.79545H6.26136C6.44697 6.79545 6.60511 6.76326 6.7358 6.69886C6.86837 6.63258 6.9697 6.53883 7.03977 6.41761C7.11174 6.2964 7.14773 6.15341 7.14773 5.98864C7.14773 5.82197 7.11174 5.67992 7.03977 5.5625C6.9697 5.44318 6.86837 5.35227 6.7358 5.28977C6.60511 5.22538 6.44697 5.19318 6.26136 5.19318H5.70455V9.75H4.125Z" 938 fill="#150C09" 939 ></path> 940 <path 941 d="M16.3278 9.75H14.6232L16.5437 3.93182H18.7028L20.6232 9.75H18.9187L17.646 5.53409H17.6005L16.3278 9.75ZM16.0096 7.45455H19.2141V8.63636H16.0096V7.45455Z"
942 fill="#150C09" 943 ></path> 944 <path 945 d="M4.46484 21V15.1818H6.04439V19.7273H8.39666V21H4.46484Z" 946 fill="#150C09" 947 ></path> 948 <path 949 d="M14.7028 14.4318H16.4641L17.6005 16.7955H17.646L18.7823 14.4318H20.5437L18.4073 18.4205V20.25H16.8391V18.4205L14.7028 14.4318Z" 950 fill="#150C09" 951 ></path> 952 </g> 953 <rect x="0.5" y="0.5" width="23" height="23" stroke="black"></rect> 954 </g> 955 <defs> 956 <filter 957 id="filter0_d_11954_5118" 958 x="0" 959 y="0" 960 width="25.5" 961 height="25.5" 962 filterUnits="userSpaceOnUse" 963 colorInterpolationFilters="sRGB" 964 > 965 <feFlood floodOpacity="0" result="BackgroundImageFix"></feFlood> 966 <feColorMatrix 967 in="SourceAlpha" 968 type="matrix" 969 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 970 result="hardAlpha" 971 ></feColorMatrix> 972 <feOffset dx="1.5" dy="1.5"></feOffset> 973 <feComposite in2="hardAlpha" operator="out"></feComposite> 974 <feColorMatrix 975 type="matrix" 976 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 977 ></feColorMatrix> 978 <feBlend 979 mode="normal" 980 in2="BackgroundImageFix" 981 result="effect1_dropShadow_11954_5118" 982 ></feBlend> 983 <feBlend 984 mode="normal" 985 in="SourceGraphic" 986 in2="effect1_dropShadow_11954_5118" 987 result="shape" 988 ></feBlend> 989 </filter> 990 <clipPath id="clip0_11954_5118"> 991 <rect width="24" height="24" fill="white"></rect> 992 </clipPath> 993 </defs> 994 </svg> 995 Crosswordle 996 </a> 997 <a 998 href="https://www.sumplete.com" 999 target="_blank" 1000 rel="noopener noreferrer" 1001 class="flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal" 1002 > 1003 <svg 1004 width="26" 1005 height="26"
1006 viewBox="0 0 26 26" 1007 fill="none" 1008 xmlns="http://www.w3.org/2000/svg" 1009 class="mr-2 -rotate-[8deg]" 1010 > 1011 <g filter="url(#filter0_d_11954_5094)"> 1012 <g clipPath="url(#clip0_11954_5094)"> 1013 <rect width="24" height="24" fill="white"></rect> 1014 <path d="M12 0L12 24" stroke="#150C09"></path> 1015 <circle cx="6.5" cy="6.5" r="4.5" fill="#91D67D"></circle> 1016 <path d="M0 12L24 12" stroke="#150C09"></path> 1017 <path 1018 d="M7.7152 3.18182V9H6.13565V4.63636H6.10156L4.82884 5.39773V4.05682L6.26065 3.18182H7.7152Z" 1019 fill="#150C09" 1020 ></path> 1021 <path 1022 d="M15.8004 9V7.86364L17.9709 6.06818C18.1148 5.94886 18.2379 5.83712 18.3402 5.73295C18.4444 5.62689 18.5239 5.51799 18.5788 5.40625C18.6357 5.29451 18.6641 5.17045 18.6641 5.03409C18.6641 4.88447 18.6319 4.75663 18.5675 4.65057C18.505 4.54451 18.4179 4.46307 18.3061 4.40625C18.1944 4.34754 18.0656 4.31818 17.9197 4.31818C17.7739 4.31818 17.6451 4.34754 17.5334 4.40625C17.4235 4.46496 17.3383 4.55114 17.2777 4.66477C17.2171 4.77841 17.1868 4.91667 17.1868 5.07955H15.6868C15.6868 4.67045 15.7786 4.31818 15.9624 4.02273C16.1461 3.72727 16.4055 3.5 16.74
102208 3.34091C17.076 3.18182 17.469 3.10227 17.9197 3.10227C18.3857 3.10227 18.7891 3.17708 19.13 3.3267C19.4728 3.47443 19.737 3.68277 19.9226 3.9517C20.1101 4.22064 20.2038 4.53598 20.2038 4.89773C20.2038 5.12121 20.1574 5.34375 20.0646 5.56534C19.9718 5.78504 19.8052 6.02841 19.5646 6.29545C19.3241 6.5625 18.9822 6.88068 18.5391 7.25L17.9936 7.70455V7.73864H20.2663V9H15.8004Z" 1023 fill="#150C09" 1024 ></path> 1025 <path 1026 d="M6.45987 21.0795C6.00154 21.0795 5.59434 21.0009 5.23828 20.8438C4.88411 20.6847 4.60571 20.4659 4.40305 20.1875C4.2004 19.9091 4.09813 19.589 4.09624 19.2273H5.68714C5.68904 19.339 5.72313 19.4394 5.78942 19.5284C5.8576 19.6155 5.9504 19.6837 6.06783 19.733C6.18525 19.7822 6.31972 19.8068 6.47124 19.8068C6.61707 19.8068 6.74586 19.7812 6.8576 19.7301C6.96934 19.6771 7.05646 19.6042 7.11896 19.5114C7.18146 19.4186 7.21177 19.3125 7.20987 19.1932C7.21177 19.0758 7.17578 18.9716 7.10192 18.8807C7.02995 18.7898 6.92862 18.7187 6.79794 18.6676C6.66726 18.6165 6.51669 18.5909 6.34624 18.5909H5.75533V17.5H6.34624C6.50343 17.5 6.64169 17.4744 6.76101 17.4233C6.88222 17.3722 6.97597 17.3011 7.04226 17.2102C7.11044 17.1193 7.14358 17.0152 7.14169 16.8977C7.14358 16.7841 7.11612 16.6837 7.0593 16.5966C7.00249 16.5095 6.92294 16.4413 6.82067 16.392C6.72029 16.3428 6.60381 16.3182 6.47124 16.3182C6.3273 16.3182 6.19851 16.3437 6.08487 16.3949C5.97313 16.446 5.88506 16.517 5.82067 16.608C5.75627 16.6989 5.72313 16.803 5.72124 16.9205H4.20987C4.21177 16.5644 4.3093 16.25 4.50249 15.9773C4.69756 15.7045 4.96461 15.4905 5.30362 15.3352C5.64264 15.1799 6.03184 15.1023 6.47124 15.1023C6.90116 15.1023 7.28089 15.1752 7.61044 15.321C7.94188 15.4669 8.2004 15.6676 8.38601 15.9233C8.57351 16.1771 8.66631 16.4678 8.66442 16.7955C8.66821 17.1212 8.55646 17.3883 8.32919 17.5966C8.10381 17.8049 7.81783 17.928 7.47124 17.9659V18.0114C7.94093 18.0625 8.29415 18.2064 8.5309 18.4432C8.76764 18.678 8.88411 18.9735 8.88033 19.3295C8.88222 19.6705 8.77995 19.9725 8.57351 20.2358C8.36896 20.4991 8.08393 20.7055 7.71839 20.8551C7.35476 21.0047 6.93525 21.0795 6.45987 21.0795Z" 1027 fill="#150C09" 1028 ></path> 1029 <path 1030 fillRule="evenodd" 1031 clipRule="evenodd" 1032 d="M16.2414 17.8304L13.0562 21.0657L14.5819 22.5678L17.7438 19.3563L20.9056 22.5678L22.4314 21.0657L19.2461 17.8304L22.431 14.5954L20.9053 13.0933L17.7438 16.3044L14.5823 13.0933L13.0565 14.5954L16.2414 17.8304Z" 1033 fill="#FF6741" 1034 ></path> 1035 <path 1036 d="M15.521 20.0909V18.8636L17.8619 15.1818H18.9755V16.8182H18.3391L17.0778 18.8182V18.8636H20.5323V20.0909H15.521ZM18.3505 21V19.7159L18.3846 19.1818V15.1818H19.8619V21H18.3505Z" 1037 fill="#150C09" 1038 ></path> 1039 </g> 1040 <rect x="0.5" y="0.5" width="23" height="23" stroke="black"></rect> 1041 </g> 1042 <defs> 1043 <filter 1044 id="filter0_d_11954_5094" 1045 x="0" 1046 y="0" 1047 width="25.5" 1048 height="25.5" 1049 filterUnits="userSpaceOnUse" 1050 colorInterpolationFilters="sRGB" 1051 > 1052 <feFlood floodOpacity="0" result="BackgroundImageFix"></feFlood> 1053 <feColorMatrix 1054 in="SourceAlpha" 1055 type="matrix" 1056 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 1057 result="hardAlpha" 1058 ></feColorMatrix> 1059 <feOffset dx="1.5" dy="1.5"></feOffset> 1060 <feComposite in2="hardAlpha" operator="out"></feComposite> 1061 <feColorMatrix 1062 type="matrix" 1063 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 1064 ></feColorMatrix> 1065 <feBlend 1066 mode="normal" 1067 in2="BackgroundImageFix" 1068 result="effect1_dropShadow_11954_5094" 1069 ></feBlend> 1070 <feBlend 1071 mode="normal" 1072 in="SourceGraphic" 1073 in2="effect1_dropShadow_11954_5094" 1074 result="shape" 1075 ></feBlend> 1076 </filter> 1077 <clipPath id="clip0_11954_5094"> 1078 <rect width="24" height="24" fill="white"></rect> 1079 </clipPath> 1080 </defs> 1081 </svg> 1082 Sumplete 1083 </a> 1084 <a 1085 href="https://www.imsqueezy.com" 1086 target="_blank" 1087 rel="noopener noreferrer" 1088 class="flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal" 1089 > 1090 <svg 1091 width="26" 1092 height="26"
1093 viewBox="0 0 26 26" 1094 fill="none" 1095 xmlns="http://www.w3.org/2000/svg" 1096 class="mr-2 -rotate-[8deg]" 1097 > 1098 <g filter="url(#filter0_d_11955_6964)"> 1099 <g clipPath="url(#clip0_11955_6964)"> 1100 <path 1101 d="M24 0L-1.90735e-06 -1.04907e-06L-2.95642e-06 24L24 24L24 0Z" 1102 fill="#B2D565" 1103 ></path> 1104 <g clipPath="url(#clip1_11955_6964)"> 1105 <path 1106 d="M1.79961 19.3602C1.79961 19.9788 4.66499 20.644 8.19961 20.644C11.7342 20.644 14.5996 19.9788 14.5996 19.3602C14.5996 18.7417 11.7342 18.2402 8.19961 18.2402C4.66499 18.2402 1.79961 18.7417 1.79961 19.3602Z" 1107 fill="#150C09" 1108 ></path> 1109 <mask id="path-5-inside-1_11955_6964" fill="white"> 1110 <path 1111 fillRule="evenodd" 1112 clipRule="evenodd" 1113 d="M14.3973 19.8028C17.9709 18.5279 20.3684 15.5603 20.7242 12.4235C20.9357 11.4484 21.1792 10.8184 21.3621 10.3453C21.603 9.72178 21.7387 9.37086 21.557 8.86168C21.3881 8.38827 21.0807 8.22171 20.5673 7.94357C20.1113 7.69648 19.4927 7.36133 18.6643 6.64478C16.4037 4.43946 12.6678 3.65831 9.0927 4.93373C5.56907 6.1908 3.18892 9.09354 2.78198 12.1815C2.59503 13.3396 2.31623 14.0243 2.11271 14.524C1.89196 15.0661 1.75977 15.3907 1.9294 15.8662C2.11186 16.3776 2.43939 16.5646 3.02136 16.8969C3.47501 17.1559 4.08325 17.5032 4.89788 18.1612C7.16528 20.3134 10.8601 21.0647 14.3973 19.8028Z" 1114 ></path> 1115 </mask> 1116 <path 1117 fillRule="evenodd" 1118 clipRule="evenodd" 1119 d="M14.3973 19.8028C17.9709 18.5279 20.3684 15.5603 20.7242 12.4235C20.9357 11.4484 21.1792 10.8184 21.3621 10.3453C21.603 9.72178 21.7387 9.37086 21.557 8.86168C21.3881 8.38827 21.0807 8.22171 20.5673 7.94357C20.1113 7.69648 19.4927 7.36133 18.6643 6.64478C16.4037 4.43946 12.6678 3.65831 9.0927 4.93373C5.56907 6.1908 3.18892 9.09354 2.78198 12.1815C2.59503 13.3396 2.31623 14.0243 2.11271 14.524C1.89196 15.0661 1.75977 15.3907 1.9294 15.8662C2.11186 16.3776 2.43939 16.5646 3.02136 16.8969C3.47501 17.1559 4.08325 17.5032 4.89788 18.1612C7.16528 20.3134 10.8601 21.0647 14.3973 19.8028Z" 1120 fill="#F0CD29" 1121 ></path> 1122 <path 1123 d="M20.7242 12.4235L19.7469 12.2115L19.7362 12.2608L19.7305 12.3108L20.7242 12.4235ZM21.3621 10.3453L22.2948 10.7058L22.2948 10.7058L21.3621 10.3453ZM20.5673 7.94357L21.0437 7.06433L21.0437 7.06433L20.5673 7.94357ZM18.6643 6.64478L17.966 7.36059L17.9875 7.3815L18.0101 7.40109L18.6643 6.64478ZM2.78198 12.1815L3.7692 12.3409L3.77151 12.3266L3.77341 12.3122L2.78198 12.1815ZM2.11271 14.524L1.18656 14.1469L1.18656 14.1469L2.11271 14.524ZM3.02136 16.8969L2.52552 17.7653L2.52552 17.7653L3.02136 16.8969ZM4.89788 18.1612L5.58631 17.4359L5.55733 17.4084L5.52624 17.3833L4.89788 18.1612ZM19.7305 12.3108C19.4229 15.0227 17.3209 17.6981 14.0613 18.8609L14.7333 20.7446C18.6209 19.3577 21.3138 16.098 21.7178 12.5362L19.7305 12.3108ZM20.4293 9.98482C20.2408 10.4726 19.9751 11.1598 19.7469 12.2115L21.7014 12.6356C21.8964 11.737 22.1177 11.1642 22.2948 10.7058L20.4293 9.98482ZM20.6151 9.19769C20.6459 9.2839 20.645 9.32171 20.6339 9.38328C20.6131 9.49866 20.5608 9.64462 20.4293 9.98482L22.2948 10.7058C22.5191 10.1255 22.8221 9.43184 22.4989 8.52566L20.6151 9.19769ZM20.091 8.82281C20.2242 8.89498 20.3193 8.94673 20.4007 8.99552C20.4796 9.04282 20.5234 9.07444 20.5498 9.09652C20.5729 9.11577 20.5806 9.12612 20.5842 9.13119C20.5879 9.13659 20.5996 9.1542 20.6151 9.19769L22.4989 8.52566C22.1851 7.64612 21.5216 7.32327 21.0437 7.06433L20.091 8.82281ZM18.0101 7.40109C18.9193 8.18753 19.6114 8.563 20.091 8.82281L21.0437 7.06433C20.6111 6.82996 20.0661 6.53512 19.3186 5.88847L18.0101 7.40109ZM9.42872 5.87559C12.6896 4.71224 16.0117 5.45408 17.966 7.36059L19.3626 5.92897C16.7957 3.42483 12.6459 2.60439 8.75669 3.99187L9.42872 5.87559ZM3.77341 12.3122C4.12565 9.63926 6.21549 7.02192 9.42872 5.87559L8.75669 3.99187C4.92265 5.35969 2.25219 8.54783 1.79055 12.0509L3.77341 12.3122ZM1.79476 12.0222C1.62545 13.071 1.37882 13.6748 1.18656 14.1469L3.03886 14.9012C3.25365 14.3738 3.56461 13.6083 3.7692 12.3409L1.79476 12.0222ZM1.18656 14.1469C0.980685 14.6524 0.67358 15.3221 0.987547 16.2022L2.87126 15.5302C2.85544 15.4858 2.85314 15.4639 2.85258 15.4566C2.85206 15.4496 2.85154 15.436 2.85722 15.406C2.86371 15.3718 2.87765 15.3191 2.90873 15.2322C2.94079 15.1425 2.98158
112315.0418 3.03886 14.9012L1.18656 14.1469ZM0.987547 16.2022C1.31108 17.1091 1.9831 17.4556 2.52552 17.7653L3.51721 16.0285C3.19983 15.8473 3.06638 15.7667 2.97667 15.6897C2.92829 15.6482 2.9027 15.6183 2.87126 15.5302L0.987547 16.2022ZM2.52552 17.7653C2.96427 18.0158 3.51762 18.3318 4.26952 18.9392L5.52624 17.3833C4.64888 16.6746 3.98574 16.296 3.51721 16.0285L2.52552 17.7653ZM14.0613 18.8609C10.8355 20.0118 7.54829 19.2982 5.58631 17.4359L4.20945 18.8865C6.78227 21.3286 10.8847 22.1177 14.7333 20.7446L14.0613 18.8609Z" 1124 fill="black" 1125 mask="url(#path-5-inside-1_11955_6964)" 1126 ></path> 1127 <ellipse 1128 cx="5.61284" 1129 cy="5.54832" 1130 rx="5.61284" 1131 ry="5.54832" 1132 transform="matrix(-0.941858 -0.336012 -0.336012 0.941858 20.9668 8.06836)" 1133 fill="#FFDE43" 1134 ></ellipse> 1135 <circle 1136 cx="2" 1137 cy="2" 1138 r="2" 1139 transform="matrix(-1 0 0 1 19 7.99951)" 1140 fill="white" 1141 ></circle> 1142 <circle 1143 cx="2" 1144 cy="2" 1145 r="2" 1146 transform="matrix(-1 0 0 1 11 7.99951)" 1147 fill="white" 1148 ></circle> 1149 <circle 1150 cx="1" 1151 cy="1" 1152 r="1" 1153 transform="matrix(-1 0 0 1 10 8.99951)" 1154 fill="black" 1155 ></circle> 1156 <circle 1157 cx="0.5" 1158 cy="0.5" 1159 r="0.5" 1160 transform="matrix(-1 0 0 1 10 8.99951)" 1161 fill="white" 1162 ></circle> 1163 <circle 1164 cx="1" 1165 cy="1" 1166 r="1" 1167 transform="matrix(-1 0 0 1 18 8.99951)" 1168 fill="black" 1169 ></circle> 1170 <path 1171 d="M15 10.9995C15 10.9995 14.4706 11.9995 13.5 11.9995C12.5294 11.9995 12 10.9995 12 10.9995" 1172 stroke="black" 1173 strokeLinecap="round" 1174 ></path> 1175 <circle 1176 cx="0.5" 1177 cy="0.5" 1178 r="0.5" 1179 transform="matrix(-1 0 0 1 18 8.99951)" 1180 fill="white" 1181 ></circle> 1182 </g> 1183 </g> 1184 <rect 1185 x="0.5" 1186 y="0.5" 1187 width="23" 1188 height="23" 1189 stroke="black" 1190 shapeRendering="crispEdges" 1191 ></rect> 1192 </g> 1193 <defs> 1194 <filter 1195 id="filter0_d_11955_6964" 1196 x="0" 1197 y="0" 1198 width="26" 1199 height="26" 1200 filterUnits="userSpaceOnUse" 1201 colorInterpolationFilters="sRGB" 1202 > 1203 <feFlood floodOpacity="0" result="BackgroundImageFix"></feFlood> 1204 <feColorMatrix 1205 in="SourceAlpha" 1206 type="matrix" 1207 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 1208 result="hardAlpha" 1209 ></feColorMatrix> 1210 <feOffset dx="2" dy="2"></feOffset> 1211 <feComposite in2="hardAlpha" operator="out"></feComposite> 1212 <feColorMatrix 1213 type="matrix" 1214 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 1215 ></feColorMatrix> 1216 <feBlend 1217 mode="normal" 1218 in2="BackgroundImageFix" 1219 result="effect1_dropShadow_11955_6964" 1220 ></feBlend> 1221 <feBlend 1222 mode="normal" 1223 in="SourceGraphic" 1224 in2="effect1_dropShadow_11955_6964" 1225 result="shape" 1226 ></feBlend> 1227 </filter> 1228 <clipPath id="clip0_11955_6964"> 1229 <rect width="24" height="24" fill="white"></rect> 1230 </clipPath> 1231 <clipPath id="clip1_11955_6964"> 1232 <rect width="24" height="24" fill="white"></rect> 1233 </clipPath> 1234 </defs> 1235 </svg> 1236 Squeezy 1237 </a> 1238 <a 1239 href="https://www.pairdown.com" 1240 target="_blank" 1241 rel="noopener noreferrer" 1242 class="flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal" 1243 > 1244 <svg 1245 width="26" 1246 height="26"
1247 viewBox="0 0 26 26" 1248 fill="none" 1249 xmlns="http://www.w3.org/2000/svg" 1250 class="mr-2 -rotate-[8deg]" 1251 > 1252 <g filter="url(#filter0_d_pairdown)"> 1253 <g clipPath="url(#clip0_pairdown)"> 1254 <path 1255 d="M24 0L-1.90735e-06 -1.04907e-06L-2.95642e-06 24L24 24L24 0Z" 1256 fill="#A7DCF4" 1257 ></path> 1258 <ellipse 1259 cx="6.08509" 1260 cy="1.069" 1261 rx="6.08509" 1262 ry="1.069" 1263 transform="matrix(-1 8.64297e-08 8.64297e-08 1 20.0642 18.353)" 1264 fill="#150C09" 1265 ></ellipse> 1266 <circle 1267 cx="11.3212" 1268 cy="12.4061" 1269 r="7.54932" 1270 transform="rotate(14.8278 11.3212 12.4061)" 1271 fill="#F29760" 1272 stroke="black" 1273 ></circle> 1274 <ellipse 1275 cx="5.20848" 1276 cy="5.28552" 1277 rx="5.20848" 1278 ry="5.28552" 1279 transform="matrix(-0.66457 -0.747226 -0.747226 0.66457 17.9783 11.2778)" 1280 fill="#FFAC7A" 1281 ></ellipse> 1282 <path 1283 d="M11.2222 10.5537C11.2222 10.5537 11.1007 11.0748 10.5993 11.2553C10.0978 11.4357 9.6722 11.1114 9.6722 11.1114" 1284 stroke="black" 1285 strokeWidth="0.657847" 1286 strokeLinecap="round" 1287 ></path> 1288 <circle 1289 cx="1.46322" 1290 cy="1.46322" 1291 r="1.46322" 1292 transform="matrix(-0.940947 0.338553 0.338553 0.940947 9.33203 7.40479)" 1293 fill="white" 1294 ></circle> 1295 <circle 1296 cx="0.975481" 1297 cy="0.975481" 1298 r="0.975481" 1299 transform="matrix(-0.940947 0.338553 0.338553 0.940947 9.03809 8.02832)" 1300 fill="black" 1301 ></circle> 1302 <circle 1303 cx="0.487805" 1304 cy="0.487805" 1305 r="0.487805" 1306 transform="matrix(-0.940947 0.338553 0.338553 0.940947 9.03809 8.02832)" 1307 fill="white" 1308 ></circle> 1309 <circle 1310 cx="1.46322" 1311 cy="1.46322" 1312 r="1.46322" 1313 transform="matrix(-0.940947 0.338553 0.338553 0.940947 11.8127 6.51172)" 1314 fill="white" 1315 ></circle> 1316 <circle 1317 cx="0.975481" 1318 cy="0.975481" 1319 r="0.975481" 1320 transform="matrix(-0.940947 0.338553 0.338553 0.940947 11.519 7.13623)" 1321 fill="black" 1322 ></circle> 1323 <circle 1324 cx="0.487805" 1325 cy="0.487805" 1326 r="0.487805" 1327 transform="matrix(-0.940947 0.338553 0.338553 0.940947 11.519 7.13623)" 1328 fill="white" 1329 ></circle> 1330 </g> 1331 <rect 1332 x="0.5" 1333 y="0.5" 1334 width="23" 1335 height="23" 1336 stroke="black" 1337 shapeRendering="crispEdges" 1338 ></rect> 1339 </g> 1340 <defs> 1341 <filter 1342 id="filter0_d_pairdown" 1343 x="0" 1344 y="0" 1345 width="26" 1346 height="26" 1347 filterUnits="userSpaceOnUse" 1348 colorInterpolationFilters="sRGB" 1349 > 1350 <feFlood floodOpacity="0" result="BackgroundImageFix"></feFlood> 1351 <feColorMatrix 1352 in="SourceAlpha" 1353 type="matrix" 1354 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 1355 result="hardAlpha" 1356 ></feColorMatrix> 1357 <feOffset dx="2" dy="2"></feOffset> 1358 <feComposite in2="hardAlpha" operator="out"></feComposite> 1359 <feColorMatrix 1360 type="matrix" 1361 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 1362 ></feColorMatrix> 1363 <feBlend 1364 mode="normal" 1365 in2="BackgroundImageFix" 1366 result="effect1_dropShadow_pairdown" 1367 ></feBlend> 1368 <feBlend 1369 mode="normal" 1370 in="SourceGraphic" 1371 in2="effect1_dropShadow_pairdown" 1372 result="shape" 1373 ></feBlend> 1374 </filter> 1375 <clipPath id="clip0_pairdown"> 1376 <rect width="24" height="24" fill="white"></rect> 1377 </clipPath> 1378 </defs> 1379 </svg> 1380 Pair Down 1381 </a> 1382 <a 1383 href="https://queensultimate.com" 1384 target="_blank" 1385 rel="noopener noreferrer" 1386 class="flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal" 1387 > 1388 <svg 1389 width="26" 1390 height="26"
1391 viewBox="0 0 26 26" 1392 fill="none" 1393 xmlns="http://www.w3.org/2000/svg" 1394 > 1395 <g filter="url(#filter0_d_15729_12203)"> 1396 <g clip-path="url(#clip0_15729_12203)"> 1397 <rect width="24" height="24" fill="#CFA3FF" /> 1398 <path 1399 d="M20.4806 18.9005L18.9219 7.47033C18.9219 7.47033 18.0524 9.96129 15.6748 9.96129C13.2971 9.96129 12.4276 4.35303 12.4276 4.35303C12.4276 4.35303 11.5686 9.96129 9.18036 9.96129C6.79214 9.96129 5.93317 7.47033 5.93317 7.47033L4.37451 18.9005H20.4806Z" 1400 fill="#F9DB5D" 1401 /> 1402 <path 1403 d="M5.01611 16.8382C11.1792 15.8301 14.1347 15.7614 20.3665 16.8382" 1404 stroke="#EEC000" 1405 stroke-width="1.46631" 1406 /> 1407 <path 1408 d="M20.4808 18.9005L18.9222 7.47033C18.9222 7.47033 18.0526 10.1904 15.675 10.1904C13.2973 10.1904 12.4278 4.35303 12.4278 4.35303C12.4278 4.35303 11.5688 10.1904 9.18061 10.1904C6.79239 10.1904 5.93341 7.47033 5.93341 7.47033L4.37476 18.9005" 1409 stroke="black" 1410 stroke-width="0.733153" 1411 /> 1412 <path 1413 d="M20.4806 18.9005L18.9219 7.47033C18.9219 7.47033 18.0524 10.1904 15.6748 10.1904C13.2971 10.1904 12.4276 4.35303 12.4276 4.35303C12.4276 4.35303 11.5686 10.1904 9.18036 10.1904C6.79214 10.1904 5.93317 7.47033 5.93317 7.47033L4.37451 18.9005" 1414 stroke="black" 1415 stroke-width="0.733153" 1416 /> 1417 <path 1418 opacity="0.6" 1419 d="M20.0687 18.5795L18.7939 8.59033L15.4636 10.4461L14.2951 9.66715L8.10913 18.5795H20.0687Z" 1420 fill="#FFF4C5" 1421 /> 1422 <path 1423 d="M4.42041 18.2587C10.5835 17.2506 13.6536 17.0444 19.8854 18.1212L18.6711 9.09424" 1424 stroke="white" 1425 stroke-opacity="0.74" 1426 stroke-width="1.46631" 1427 /> 1428 <path 1429 d="M20.4806 18.9005L18.9219 7.47033C18.9219 7.47033 18.0524 10.1904 15.6748 10.1904C13.2971 10.1904 12.4276 4.35303 12.4276 4.35303C12.4276 4.35303 11.5686 10.1904 9.18036 10.1904C6.79214 10.1904 5.93317 7.47033 5.93317 7.47033L4.37451 18.9005" 1430 stroke="black" 1431 stroke-width="0.824797" 1432 /> 1433 <circle 1434 cx="5.80379" 1435 cy="7.51424" 1436 r="1.58174" 1437 fill="#F9DB5D" 1438 stroke="black" 1439 stroke-width="0.733153" 1440 /> 1441 <path 1442 d="M6.76071 6.50657C6.41861 5.96058 5.22447 6.135 4.87947 6.29679C6.17301 6.25304 6.58392 8.45232 6.58392 8.45232C6.85348 8.17782 7.33607 7.42483 6.76071 6.50657Z" 1443 fill="white" 1444 /> 1445 <circle 1446 cx="5.80379" 1447 cy="7.51424" 1448 r="1.58174" 1449 stroke="black" 1450 stroke-width="0.733153" 1451 /> 1452 <circle 1453 cx="18.8531" 1454 cy="7.37703" 1455 r="1.58174" 1456 fill="#F9DB5D" 1457 stroke="black" 1458 stroke-width="0.733153" 1459 /> 1460 <circle 1461 cx="12.4173" 1462 cy="4.94832" 1463 r="1.58174" 1464 fill="#F9DB5D" 1465 stroke="black" 1466 stroke-width="0.733153" 1467 /> 1468 <path 1469 d="M13.7064 4.23121C13.4713 3.63131 12.2655 3.58157 11.8965 3.67668C13.1758 3.87323 13.1723 6.11056 13.1723 6.11056C13.4881 5.89074 14.1018 5.24013 13.7064 4.23121Z" 1470 fill="white" 1471 /> 1472 <circle 1473 cx="12.4173" 1474 cy="4.94832" 1475 r="1.58174" 1476 stroke="black" 1477 stroke-width="0.733153" 1478 /> 1479 <path 1480 d="M19.9946 6.72297C19.8082 6.1062 18.6102 5.96023 18.2348 6.02554C19.4943 6.32373 19.312 8.55362 19.312 8.55362C19.6443 8.35974 20.308 7.76028 19.9946 6.72297Z" 1481 fill="white" 1482 /> 1483 <path 1484 d="M11.0188 12.6174L12.3945 10.4233L13.8139 12.6174L12.3945 14.3869L11.0188 12.6174Z" 1485 fill="white" 1486 stroke="black" 1487 stroke-width="0.458221" 1488 /> 1489 <circle 1490 cx="18.8531" 1491 cy="7.37703" 1492 r="1.58174" 1493 stroke="black" 1494 stroke-width="0.733153" 1495 /> 1496 <ellipse cx="12.4393" cy="18.9" rx="8.43126" ry="1.09973" fill="black" /> 1497 <circle 1498 cx="8.75069" 1499 cy="12.8288" 1500 r="0.756064" 1501 fill="white" 1502 stroke="black" 1503 stroke-width="0.458221" 1504 /> 1505 <circle 1506 cx="15.8989" 1507 cy="12.8288" 1508 r="0.756064" 1509 fill="white" 1510 stroke="black" 1511 stroke-width="0.458221" 1512 /> 1513 </g> 1514 <rect 1515 x="0.5" 1516 y="0.5" 1517 width="23" 1518 height="23" 1519 stroke="black" 1520 shape-rendering="crispEdges" 1521 /> 1522 </g> 1523 <defs> 1524 <filter 1525 id="filter0_d_15729_12203" 1526 x="0" 1527 y="0" 1528 width="26" 1529 height="26" 1530 filterUnits="userSpaceOnUse" 1531 color-interpolation-filters="sRGB" 1532 >
1533 <feFlood flood-opacity="0" result="BackgroundImageFix" /> 1534 <feColorMatrix 1535 in="SourceAlpha" 1536 type="matrix" 1537 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 1538 result="hardAlpha" 1539 /> 1540 <feOffset dx="2" dy="2" /> 1541 <feComposite in2="hardAlpha" operator="out" /> 1542 <feColorMatrix 1543 type="matrix" 1544 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 1545 /> 1546 <feBlend 1547 mode="normal" 1548 in2="BackgroundImageFix" 1549 result="effect1_dropShadow_15729_12203" 1550 /> 1551 <feBlend 1552 mode="normal" 1553 in="SourceGraphic" 1554 in2="effect1_dropShadow_15729_12203" 1555 result="shape" 1556 /> 1557 </filter> 1558 <clipPath id="clip0_15729_12203"> 1559 <rect width="24" height="24" fill="white" /> 1560 </clipPath> 1561 </defs> 1562 </svg> 1563 Queens Ultimate 1564 </a> 1565 <a 1566 href="https://minisudoku.com" 1567 target="_blank" 1568 rel="noopener noreferrer" 1569 class="flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal" 1570 > 1571 <svg 1572 width="26" 1573 height="26"
1574 viewBox="0 0 26 26" 1575 fill="none" 1576 xmlns="http://www.w3.org/2000/svg" 1577 class="mr-2 -rotate-[8deg]" 1578 > 1579 <g filter="url(#filter0_d_4950_446)"> 1580 <g clip-path="url(#clip0_4950_446)"> 1581 <rect width="24" height="24" fill="white"></rect> 1582 <rect x="12" width="12" height="12" fill="#E3DCDA"></rect> 1583 <rect y="12" width="12" height="12" fill="#91D67D"></rect> 1584 <rect x="12" y="12" width="12" height="12" fill="#ECDD53"></rect> 1585 <rect x="1.76514" y="1.76562" width="6.70832" height="6.70832" fill="#91D67D"></rect> 1586 <rect width="12" height="12" fill="white"></rect> 1587 <path d="M12 0L12 24" stroke="#150C09"></path> 1588 <path d="M0 12L24 12" stroke="#150C09"></path> 1589 <path d="M4.125 9.75V3.93182H6.63636C7.06818 3.93182 7.44602 4.01705 7.76989 4.1875C8.09375 4.35795 8.34564 4.59754 8.52557 4.90625C8.70549 5.21496 8.79545 5.57576 8.79545 5.98864C8.79545 6.4053 8.70265 6.7661 8.51705 7.07102C8.33333 7.37595 8.07481 7.6108 7.74148 7.77557C7.41004 7.94034 7.02273 8.02273 6.57955 8.02273H5.07955V6.79545H6.26136C6.44697 6.79545 6.60511 6.76326 6.7358 6.69886C6.86837 6.63258 6.9697 6.53883 7.03977 6.41761C7.11174 6.2964 7.14773 6.15341 7.14773 5.98864C7.14773 5.82197 7.11174 5.67992 7.03977 5.5625C6.9697 5.44318 6.86837 5.35227 6.7358 5.28977C6.60511 5.22538 6.44697 5.19318 6.26136 5.19318H5.70455V9.75H4.125Z" fill="#150C09"></path> 1590 <path d="M16.3278 9.75H14.6232L16.5437 3.93182H18.7028L20.6232 9.75H18.9187L17.646 5.53409H17.6005L16.3278 9.75ZM16.0096 7.45455H19.2141V8.63636H16.0096V7.45455Z" fill="#150C09"></path> 1591 <path d="M4.46484 21V15.1818H6.04439V19.7273H8.39666V21H4.46484Z" fill="#150C09"></path> 1592 <path d="M14.7028 14.4318H16.4641L17.6005 16.7955H17.646L18.7823 14.4318H20.5437L18.4073 18.4205V20.25H16.8391V18.4205L14.7028 14.4318Z" fill="#150C09"></path> 1593 <g filter="url(#filter1_d_4950_446)"> 1594 <g clip-path="url(#clip1_4950_446)"> 1595 <path d="M0 0H24V24H0V0Z" fill="#6BCB77"></path> 1596 <g filter="url(#filter2_f_4950_446)"> 1597 <circle cx="1.47687" cy="1.84638" r="14.7692" fill="#A9FFB5" fill-opacity="0.7"></circle> 1598 </g> 1599 <rect x="1" y="1" width="11" height="7" fill="white"></rect> 1600 <rect x="12" y="9" width="11" height="7" fill="white"></rect> 1601 <rect x="1" y="16" width="11" height="7" fill="white"></rect> 1602 <path d="M16.8546 6V5.43182L17.9398 4.53409C18.0118 4.47443 18.0734 4.41856 18.1245 4.36648C18.1766 4.31345 18.2164 4.259 18.2438 4.20312C18.2722 4.14725 18.2864 4.08523 18.2864 4.01705C18.2864 3.94223 18.2703 3.87831 18.2381 3.82528C18.2069 3.77225 18.1633 3.73153 18.1075 3.70312C18.0516 3.67377 17.9872 3.65909 17.9143 3.65909C17.8414 3.65909 17.777 3.67377 17.7211 3.70312C17.6662 3.73248 17.6236 3.77557 17.5932 3.83239C17.5629 3.8892 17.5478 3.95833 17.5478 4.03977H16.7978C16.7978 3.83523 16.8437 3.65909 16.9356 3.51136C17.0274 3.36364 17.1572 3.25 17.3248 3.17045C17.4924 3.09091 17.6889 3.05114 17.9143 3.05114C18.1472 3.05114 18.3489 3.08854 18.5194 3.16335C18.6908 3.23722 18.8229 3.34138 18.9157 3.47585C19.0094 3.61032 19.0563 3.76799 19.0563 3.94886C19.0563 4.06061 19.0331 4.17187 18.9867 4.28267C18.9403 4.39252 18.857 4.5142 18.7367 4.64773C18.6165 4.78125 18.4455 4.94034 18.2239 5.125L17.9512 5.35227V5.36932H19.0876V6H16.8546Z" fill="#158D24"></path> 1603 <path d="M6.562 3.09091V6H5.77223V3.81818H5.75518L5.11882 4.19886V3.52841L5.83473 3.09091H6.562Z" fill="#150C09"></path> 1604 <path d="M16.6921 13.5455V12.9318L17.8625 11.0909H18.4193V11.9091H18.1012L17.4705 12.9091V12.9318H19.1978V13.5455H16.6921ZM18.1068 14V13.358L18.1239 13.0909V11.0909H18.8625V14H18.1068Z" fill="#150C09"></path> 1605 <path d="M5.91154 14.0398C5.68237 14.0398 5.47877 14.0005 5.30074 13.9219C5.12366 13.8423 4.98445 13.733 4.88313 13.5938C4.7818 13.4545 4.73066 13.2945 4.72972 13.1136H5.52517C5.52612 13.1695 5.54316 13.2197 5.57631 13.2642C5.6104 13.3078 5.6568 13.3419 5.71551 13.3665C5.77423 13.3911 5.84146 13.4034 5.91722 13.4034C5.99013 13.4034 6.05453 13.3906 6.1104 13.3651C6.16627 13.3385 6.20983 13.3021 6.24108 13.2557C6.27233 13.2093 6.28748 13.1562 6.28654 13.0966C6.28748 13.0379 6.26949 12.9858 6.23256 12.9403C6.19657 12.8949 6.14591 12.8594 6.08057 12.8338C6.01523 12.8082 5.93995 12.7955 5.85472 12.7955H5.55926V12.25H5.85472C5.93332 12.25 6.00245 12.2372 6.0621 12.2116C6.12271 12.1861 6.16959 12.1506 6.20273 12.1051C6.23682 12.0597 6.25339 12.0076 6.25245 11.9489C6.25339 11.892 6.23966 11.8419 6.21125 11.7983C6.18284 11.7547 6.14307 11.7206 6.09193 11.696C6.04174 11.6714 5.98351 11.6591 5.91722 11.6591C5.84525 11.6591 5.78085 11.6719 5.72404 11.6974C5.66816 11.723 5.62413 11.7585 5.59193 11.804C5.55974 11.8494 5.54316 11.9015 5.54222 11.9602H4.78654C4.78748 11.7822 4.83625 11.625 4.93284 11.4886C5.03038 11.3523 5.1639 11.2453 5.33341 11.1676C5.50292 11.09 5.69752 11.
16050511 5.91722 11.0511C6.13218 11.0511 6.32205 11.0876 6.48682 11.1605C6.65254 11.2334 6.7818 11.3338 6.8746 11.4616C6.96835 11.5885 7.01476 11.7339 7.01381 11.8977C7.0157 12.0606 6.95983 12.1941 6.84619 12.2983C6.73351 12.4025 6.59051 12.464 6.41722 12.483V12.5057C6.65207 12.5312 6.82868 12.6032 6.94705 12.7216C7.06542 12.839 7.12366 12.9867 7.12176 13.1648C7.12271 13.3352 7.07157 13.4863 6.96835 13.6179C6.86608 13.7495 6.72356 13.8527 6.5408 13.9276C6.35898 14.0024 6.14923 14.0398 5.91154 14.0398Z" fill="#158D24"></path> 1606 <path d="M17.9716 21.5207C17.802 21.5207 17.6411 21.4942 17.4886 21.4412C17.3371 21.3872 17.2026 21.3025 17.0852 21.1869C16.9678 21.0714 16.8754 20.9208 16.8082 20.7352C16.7419 20.5496 16.7092 20.3247 16.7102 20.0605C16.7111 19.8247 16.7414 19.6126 16.8011 19.4241C16.8617 19.2357 16.9474 19.0752 17.0582 18.9426C17.1699 18.81 17.3035 18.7087 17.4588 18.6386C17.6141 18.5676 17.7869 18.5321 17.9772 18.5321C18.1912 18.5321 18.3797 18.5733 18.5426 18.6557C18.7055 18.7381 18.8352 18.8484 18.9318 18.9866C19.0293 19.1239 19.0861 19.2755 19.1022 19.4412H18.3238C18.3058 19.3588 18.2642 19.2987 18.1988 19.2608C18.1344 19.222 18.0606 19.2025 17.9772 19.2025C17.8115 19.2025 17.6898 19.2745 17.6122 19.4185C17.5355 19.5624 17.4962 19.7518 17.4943 19.9866H17.5113C17.5483 19.8976 17.6041 19.8214 17.6789 19.7579C17.7537 19.6945 17.8409 19.6457 17.9403 19.6116C18.0397 19.5775 18.1448 19.5605 18.2556 19.5605C18.4318 19.5605 18.5857 19.6003 18.7173 19.6798C18.8499 19.7594 18.9531 19.8683 19.0269 20.0065C19.1008 20.1448 19.1373 20.3029 19.1363 20.481C19.1373 20.6893 19.088 20.8716 18.9886 21.0278C18.8901 21.1841 18.7533 21.3053 18.5781 21.3915C18.4029 21.4776 18.2007 21.5207 17.9716 21.5207ZM17.9659 20.9241C18.0445 20.9241 18.1141 20.9061 18.1747 20.8702C18.2362 20.8342 18.2841 20.7849 18.3181 20.7224C18.3532 20.6599 18.3702 20.5889 18.3693 20.5094C18.3702 20.4289 18.3532 20.3579 18.3181 20.2963C18.2841 20.2338 18.2362 20.1846 18.1747 20.1486C18.1141 20.1126 18.0445 20.0946 17.9659 20.0946C17.9081 20.0946 17.8546 20.105 17.8054 20.1258C17.7571 20.1457 17.7149 20.1746 17.6789 20.2125C17.643 20.2494 17.6145 20.2935 17.5937 20.3446C17.5738 20.3948 17.5634 20.4497 17.5625 20.5094C17.5634 20.5889 17.5814 20.6599 17.6164 20.7224C17.6515 20.7849 17.6993 20.8342 17.7599 20.8702C17.8205 20.9061 17.8892 20.9241 17.9659 20.9241Z" fill="#158D24"></path> 1607 <path d="M5.97155 21.5207C5.80204 21.5207 5.64106 21.4942 5.4886 21.4412C5.33708 21.3872 5.20261 21.3025 5.08519 21.1869C4.96776 21.0714 4.87543 20.9208 4.8082 20.7352C4.74191 20.5496 4.70924 20.3247 4.71019 20.0605C4.71113 19.8247 4.74144 19.6126 4.8011 19.4241C4.8617 19.2357 4.9474 19.0752 5.0582 18.9426C5.16994 18.81 5.30346 18.7087 5.45877 18.6386C5.61407 18.5676 5.78689 18.5321 5.97723 18.5321C6.19125 18.5321 6.37969 18.5733 6.54257 18.6557C6.70545 18.7381 6.83519 18.8484 6.93178 18.9866C7.02932 19.1239 7.08613 19.2755 7.10223 19.4412H6.32382C6.30583 19.3588 6.26416 19.2987 6.19882 19.2608C6.13443 19.222 6.06057 19.2025 5.97723 19.2025C5.81151 19.2025 5.68983 19.2745 5.61218 19.4185C5.53547 19.5624 5.49617 19.7518 5.49428 19.9866H5.51132C5.54825 19.8976 5.60413 19.8214 5.67894 19.7579C5.75375 19.6945 5.84087 19.6457 5.9403 19.6116C6.03973 19.5775 6.14485 19.5605 6.25564 19.5605C6.43178 19.5605 6.58566 19.6003 6.71729 19.6798C6.84986 19.7594 6.95308 19.8683 7.02695 20.0065C7.10081 20.1448 7.13727 20.3029 7.13632 20.481C7.13727 20.6893 7.08803 20.8716 6.9886 21.0278C6.89011 21.1841 6.75327 21.3053 6.57808 21.3915C6.40289 21.4776 6.20072 21.5207 5.97155 21.5207ZM5.96587 20.9241C6.04447 20.9241 6.11407 20.9061 6.17468 20.8702C6.23623 20.8342 6.28405 20.7849 6.31814 20.7224C6.35318 20.6599 6.37022 20.5889 6.36928 20.5094C6.37022 20.4289 6.35318 20.3579 6.31814 20.2963C6.28405 20.2338 6.23623 20.1846 6.17468 20.1486C6.11407 20.1126 6.04447 20.0946 5.96587 20.0946C5.9081 20.0946 5.8546 20.105 5.80536 20.1258C5.75706 20.1457 5.71492 20.1746 5.67894 20.2125C5.64295 20.2494 5.61454 20.2935 5.59371 20.3446C5.57382 20.3948 5.56341 20.4497 5.56246 20.5094C5.56341 20.5889 5.5814 20.6599 5.61644 20.7224C5.65147 20.7849 5.6993 20.8342 5.7599 20.8702C5.82051 20.9061 5.88916 20.9241 5.96587 20.9241Z" fill="#150C09"></path> 1608 <path d="M0 8.4917L24 8.4917" stroke="black" stroke-width="0.923077"></path> 1609 <path d="M0 16.1914L24 16.1914" stroke="black" stroke-width="0.923077"></path> 1610 <path d="M12 0V24" stroke="#150C09" stroke-width="0.923077"></path> 1611 </g> 1612 <path d="M23.5 0.5V23.5H0.5V0.5H23.5Z" stroke="black"></path> 1613 </g> 1614 </g> 1615 <rect x="0.5" y="0.5" width="23" height="23" stroke="black"></rect> 1616 </g> 1617 <defs> 1618 <filter id="filter0_d_4950_446" x="0" y="0" width="25.5" height="25.5" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1619 <feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood> 1620 <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix> 1621 <feOffset dx="1.5" dy="1.5"></feOffset> 1622 <feComposite in2="hardAlpha" operator="out"></feComposite> 1623 <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"></feColorMatrix> 1624 <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4950_446"></feBlend> 1625 <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4950_446" result="shape"></feBlend> 1626 </filter> 1627 <filter id="filter1_d_4950_446" x="0" y="0" width="25.8462" height="25.8462" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> 1628 <feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood> 1629 <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix> 1630 <feOffset dx="1.84615" dy="1.84615"></feOffset> 1631 <feComposite in2="hardAlpha" operator="out"></feComposite> 1632 <feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 0.447059 0 0 0 0 0.309804 0 0 0 1 0"></feColorMatrix> 1633 <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4950_446"></feBlend> 1634 <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4950_446" result="shape"></feBlend> 1635 </filter> 1636 <filter id="filter2_f_4950_446" x="-26.5847" y="-26.2152" width="56.1231" height="56.1232" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> 1637 <feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood> 1638 <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend> 1639 <feGaussianBlur stdDeviation="6.64615" result="effect1_foregroundBlur_4950_446"></feGaussianBlur> 1640 </filter> 1641 <clipPath id="clip0_4950_446"> 1642 <rect width="24" height="24" fill="white"></rect> 1643 </clipPath> 1644 <clipPath id="clip1_4950_446"> 1645 <path d="M0 0H24V24H0V0Z" fill="white"></path> 1646 </clipPath> 1647 </defs> 1648 </svg> 1649 Mini Sudoku 1650 </a> 1651 <a href="https://www.mathler.com" target="_blank" rel="noopener noreferrer"> 1652 <svg 1653 width="26" 1654 height="26"
1655 viewBox="0 0 26 26" 1656 fill="none" 1657 xmlns="http://www.w3.org/2000/svg" 1658 class="mr-2 -rotate-[8deg]" 1659 > 1660 <g filter="url(#filter0_d_11955_10209)"> 1661 <g clipPath="url(#clip0_11955_10209)"> 1662 <rect width="24" height="24" fill="white"></rect> 1663 <path d="M23 12H12V1H23V12Z" fill="#FFED48"></path> 1664 <path d="M12 23H1V12H12V23Z" fill="#91D67D"></path> 1665 <path d="M12 0L12 24" stroke="#150C09"></path> 1666 <path d="M0 12L24 12" stroke="#150C09"></path> 1667 <path 1668 d="M4.02095 8.09091V6.86364L6.36186 3.18182H7.4755V4.81818H6.83913L5.57777 6.81818V6.86364H9.03232V8.09091H4.02095ZM6.8505 9V7.71591L6.88459 7.18182V3.18182H8.36186V9H6.8505Z" 1669 fill="#150C09" 1670 ></path> 1671 <path 1672 d="M17.3629 8.73864V4.53409H18.6357V8.73864H17.3629ZM15.897 7.27273V6H20.1016V7.27273H15.897Z" 1673 fill="#150C09" 1674 ></path> 1675 <path 1676 d="M7.86293 18.0909V19.2727H5.13565V18.0909H7.86293Z" 1677 fill="#150C09" 1678 ></path> 1679 <path 1680 d="M15.8004 21V19.8636L17.9709 18.0682C18.1148 17.9489 18.2379 17.8371 18.3402 17.733C18.4444 17.6269 18.5239 17.518 18.5788 17.4062C18.6357 17.2945 18.6641 17.1705 18.6641 17.0341C18.6641 16.8845 18.6319 16.7566 18.5675 16.6506C18.505 16.5445 18.4179 16.4631 18.3061 16.4062C18.1944 16.3475 18.0656 16.3182 17.9197 16.3182C17.7739 16.3182 17.6451 16.3475 17.5334 16.4062C17.4235 16.465 17.3383 16.5511 17.2777 16.6648C17.2171 16.7784 17.1868 16.9167 17.1868 17.0795H15.6868C15.6868 16.6705 15.7786 16.3182 15.9624 16.0227C16.1461 15.7273 16.4055 15.5 16.7408 15.3409C17.076 15.1818 17.469 15.1023 17.9197 15.1023C18.3857 15.1023 18.7891 15.1771 19.13 15.3267C19.4728 15.4744 19.737 15.6828 19.9226 15.9517C20.1101 16.2206 20.2038 16.536 20.2038 16.8977C20.2038 17.1212 20.1574 17.3437 20.0646 17.5653C19.9718 17.785 19.8052 18.0284 19.5646 18.2955C19.3241 18.5625 18.9822 18.8807 18.5391 19.25L17.9936 19.7045V19.7386H20.2663V21H15.8004Z" 1681 fill="#150C09" 1682 ></path> 1683 </g> 1684 <rect x="0.5" y="0.5" width="23" height="23" stroke="black"></rect> 1685 </g> 1686 <defs> 1687 <filter 1688 id="filter0_d_11955_10209" 1689 x="0" 1690 y="0" 1691 width="26" 1692 height="26" 1693 filterUnits="userSpaceOnUse" 1694 colorInterpolationFilters="sRGB" 1695 > 1696 <feFlood floodOpacity="0" result="BackgroundImageFix"></feFlood> 1697 <feColorMatrix 1698 in="SourceAlpha" 1699 type="matrix" 1700 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 1701 result="hardAlpha" 1702 ></feColorMatrix> 1703 <feOffset dx="2" dy="2"></feOffset> 1704 <feComposite in2="hardAlpha" operator="out"></feComposite> 1705 <feColorMatrix 1706 type="matrix" 1707 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 1708 ></feColorMatrix> 1709 <feBlend 1710 mode="normal" 1711 in2="BackgroundImageFix" 1712 result="effect1_dropShadow_11955_10209" 1713 ></feBlend> 1714 <feBlend 1715 mode="normal" 1716 in="SourceGraphic" 1717 in2="effect1_dropShadow_11955_10209" 1718 result="shape" 1719 ></feBlend> 1720 </filter> 1721 <clipPath id="clip0_11955_10209"> 1722 <rect width="24" height="24" fill="white"></rect> 1723 </clipPath> 1724 </defs> 1725 </svg> 1726 Mathler 1727 </a> 1728 <a 1729 href="https://www.kakuroconquest.com" 1730 target="_blank" 1731 rel="noopener noreferrer" 1732 > 1733 <svg 1734 width="26" 1735 height="26"
1736 viewBox="0 0 26 26" 1737 fill="none" 1738 xmlns="http://www.w3.org/2000/svg" 1739 class="mr-2 -rotate-[8deg]" 1740 > 1741 <g filter="url(#filter0_d_11981_5161)"> 1742 <g clipPath="url(#clip0_11981_5161)"> 1743 <rect width="24" height="24" fill="white"></rect> 1744 <rect x="12" y="12" width="11" height="11" fill="#E3DCDA"></rect> 1745 <rect x="1" y="1" width="11" height="11" fill="#E3DCDA"></rect> 1746 <path d="M12 0V24" stroke="black" strokeWidth="0.923077"></path> 1747 <path d="M0 12H24" stroke="black" strokeWidth="0.923077"></path> 1748 <path 1749 d="M9.72456 2.53091V6H8.78276V3.39818H8.76243L8.00357 3.85214V3.05263L8.85729 2.53091H9.72456Z" 1750 fill="black" 1751 ></path> 1752 <path 1753 d="M13.6885 22V21.3224L14.9826 20.2519C15.0685 20.1808 15.1419 20.1141 15.2028 20.052C15.265 19.9888 15.3124 19.9239 15.3451 19.8572C15.379 19.7906 15.3959 19.7166 15.3959 19.6353C15.3959 19.5461 15.3767 19.4699 15.3384 19.4067C15.3011 19.3434 15.2491 19.2949 15.1825 19.261C15.1159 19.226 15.0391 19.2085 14.9521 19.2085C14.8652 19.2085 14.7884 19.226 14.7218 19.261C14.6563 19.296 14.6055 19.3474 14.5693 19.4151C14.5332 19.4829 14.5151 19.5653 14.5151 19.6624H13.6207C13.6207 19.4185 13.6755 19.2085 13.7851 19.0323C13.8946 18.8561 14.0493 18.7206 14.2492 18.6258C14.4491 18.5309 14.6834 18.4835 14.9521 18.4835C15.2299 18.4835 15.4705 18.5281 15.6737 18.6173C15.8781 18.7054 16.0357 18.8296 16.1463 18.99C16.2581 19.1503 16.314 19.3383 16.314 19.554C16.314 19.6873 16.2864 19.82 16.231 19.9521C16.1757 20.0831 16.0763 20.2282 15.9329 20.3874C15.7895 20.5466 15.5857 20.7364 15.3214 20.9566L14.9962 21.2276V21.2479H16.3513V22H13.6885Z" 1754 fill="black" 1755 ></path> 1756 <path d="M1 1L24 24" stroke="#150C09" strokeWidth="0.923077"></path> 1757 </g> 1758 <rect 1759 x="0.5" 1760 y="0.5" 1761 width="23" 1762 height="23" 1763 stroke="black" 1764 shapeRendering="crispEdges" 1765 ></rect> 1766 </g> 1767 <defs> 1768 <filter 1769 id="filter0_d_11981_5161" 1770 x="0" 1771 y="0" 1772 width="26" 1773 height="26" 1774 filterUnits="userSpaceOnUse" 1775 colorInterpolationFilters="sRGB" 1776 > 1777 <feFlood floodOpacity="0" result="BackgroundImageFix"></feFlood> 1778 <feColorMatrix 1779 in="SourceAlpha" 1780 type="matrix" 1781 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 1782 result="hardAlpha" 1783 ></feColorMatrix> 1784 <feOffset dx="2" dy="2"></feOffset> 1785 <feComposite in2="hardAlpha" operator="out"></feComposite> 1786 <feColorMatrix 1787 type="matrix" 1788 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 1789 ></feColorMatrix> 1790 <feBlend 1791 mode="normal" 1792 in2="BackgroundImageFix" 1793 result="effect1_dropShadow_11981_5161" 1794 ></feBlend> 1795 <feBlend 1796 mode="normal" 1797 in="SourceGraphic" 1798 in2="effect1_dropShadow_11981_5161" 1799 result="shape" 1800 ></feBlend> 1801 </filter> 1802 <clipPath id="clip0_11981_5161"> 1803 <rect width="24" height="24" fill="white"></rect> 1804 </clipPath> 1805 </defs> 1806 </svg> 1807 Kakuro Conquest 1808 </a> 1809 <a 1810 href="https://hitoriconquest.com" 1811 target="_blank" 1812 rel="noopener noreferrer" 1813 class="flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal" 1814 > 1815 <svg 1816 width="26" 1817 height="26"
1818 viewBox="0 0 26 26" 1819 fill="none" 1820 xmlns="http://www.w3.org/2000/svg" 1821 class="mr-2 -rotate-[8deg]" 1822 > 1823 <g filter="url(#filter0_d_11981_5483)"> 1824 <g clipPath="url(#clip0_11981_5483)"> 1825 <rect width="24" height="24" fill="white"></rect> 1826 <rect x="12" y="12" width="11" height="11" fill="#150C09"></rect> 1827 <rect x="1" y="1" width="11" height="11" fill="#150C09"></rect> 1828 <path d="M12 0V24" stroke="black" strokeWidth="0.923077"></path> 1829 <path d="M0 12H24" stroke="black" strokeWidth="0.923077"></path> 1830 <path 1831 d="M7.7152 3.18182V9H6.13565V4.63636H6.10156L4.82884 5.39773V4.05682L6.26065 3.18182H7.7152Z" 1832 fill="white" 1833 ></path> 1834 <path 1835 d="M18.7152 3.18182V9H17.1357V4.63636H17.1016L15.8288 5.39773V4.05682L17.2607 3.18182H18.7152Z" 1836 fill="#150C09" 1837 ></path> 1838 <path 1839 d="M7.7152 15.1818V21H6.13565V16.6364H6.10156L4.82884 17.3977V16.0568L6.26065 15.1818H7.7152Z" 1840 fill="#150C09" 1841 ></path> 1842 <path 1843 d="M15.8004 21V19.8636L17.9709 18.0682C18.1148 17.9489 18.2379 17.8371 18.3402 17.733C18.4444 17.6269 18.5239 17.518 18.5788 17.4062C18.6357 17.2945 18.6641 17.1705 18.6641 17.0341C18.6641 16.8845 18.6319 16.7566 18.5675 16.6506C18.505 16.5445 18.4179 16.4631 18.3061 16.4062C18.1944 16.3475 18.0656 16.3182 17.9197 16.3182C17.7739 16.3182 17.6451 16.3475 17.5334 16.4062C17.4235 16.465 17.3383 16.5511 17.2777 16.6648C17.2171 16.7784 17.1868 16.9167 17.1868 17.0795H15.6868C15.6868 16.6705 15.7786 16.3182 15.9624 16.0227C16.1461 15.7273 16.4055 15.5 16.7408 15.3409C17.076 15.1818 17.469 15.1023 17.9197 15.1023C18.3857 15.1023 18.7891 15.1771 19.13 15.3267C19.4728 15.4744 19.737 15.6828 19.9226 15.9517C20.1101 16.2206 20.2038 16.536 20.2038 16.8977C20.2038 17.1212 20.1574 17.3437 20.0646 17.5653C19.9718 17.785 19.8052 18.0284 19.5646 18.2955C19.3241 18.5625 18.9822 18.8807 18.5391 19.25L17.9936 19.7045V19.7386H20.2663V21H15.8004Z" 1844 fill="white" 1845 ></path> 1846 </g> 1847 <rect 1848 x="0.5" 1849 y="0.5" 1850 width="23" 1851 height="23" 1852 stroke="black" 1853 shapeRendering="crispEdges" 1854 ></rect> 1855 </g> 1856 <defs> 1857 <filter 1858 id="filter0_d_11981_5483" 1859 x="0" 1860 y="0" 1861 width="26" 1862 height="26" 1863 filterUnits="userSpaceOnUse" 1864 colorInterpolationFilters="sRGB" 1865 > 1866 <feFlood floodOpacity="0" result="BackgroundImageFix"></feFlood> 1867 <feColorMatrix 1868 in="SourceAlpha" 1869 type="matrix" 1870 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 1871 result="hardAlpha" 1872 ></feColorMatrix> 1873 <feOffset dx="2" dy="2"></feOffset> 1874 <feComposite in2="hardAlpha" operator="out"></feComposite> 1875 <feColorMatrix 1876 type="matrix" 1877 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 1878 ></feColorMatrix> 1879 <feBlend 1880 mode="normal" 1881 in2="BackgroundImageFix" 1882 result="effect1_dropShadow_11981_5483" 1883 ></feBlend> 1884 <feBlend 1885 mode="normal" 1886 in="SourceGraphic" 1887 in2="effect1_dropShadow_11981_5483" 1888 result="shape" 1889 ></feBlend> 1890 </filter> 1891 <clipPath id="clip0_11981_5483"> 1892 <rect width="24" height="24" fill="white"></rect> 1893 </clipPath> 1894 </defs> 1895 </svg> 1896 Hitori Conquest 1897 </a> 1898 <a 1899 href="https://www.sudokuconquest.com" 1900 target="_blank" 1901 rel="noopener noreferrer" 1902 class="flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal" 1903 > 1904 <svg 1905 width="26" 1906 height="26"
1907 viewBox="0 0 26 26" 1908 fill="none" 1909 xmlns="http://www.w3.org/2000/svg" 1910 class="mr-2 -rotate-[8deg]" 1911 > 1912 <g filter="url(#filter0_d_11955_6785)"> 1913 <g clipPath="url(#clip0_11955_6785)"> 1914 <rect width="24" height="24" fill="white"></rect> 1915 <rect x="12" y="12" width="11" height="11" fill="#E3DCDA"></rect> 1916 <rect width="12" height="12" fill="#E3DCDA"></rect> 1917 <path d="M12 0L12 24" stroke="#A99F9C"></path> 1918 <path d="M0 12L24 12" stroke="#A99F9C"></path> 1919 <path 1920 d="M7.302 2.76623V9H5.60963V4.32468H5.5731L4.20947 5.14042V3.70373L5.74356 2.76623H7.302Z" 1921 fill="#150C09" 1922 ></path> 1923 <path 1924 d="M15.6433 9V7.78247L17.9688 5.85877C18.123 5.73093 18.2549 5.6112 18.3645 5.49959C18.4761 5.38596 18.5613 5.26928 18.6202 5.14955C18.6811 5.02983 18.7115 4.89692 18.7115 4.75081C18.7115 4.5905 18.677 4.45353 18.608 4.33989C18.541 4.22626 18.4477 4.139 18.328 4.07813C18.2082 4.01522 18.0703 3.98377 17.914 3.98377C17.7578 3.98377 17.6198 4.01522 17.5001 4.07813C17.3824 4.14103 17.291 4.23336 17.2261 4.35511C17.1612 4.47687 17.1287 4.625 17.1287 4.79951H15.5216C15.5216 4.3612 15.62 3.98377 15.8168 3.66721C16.0136 3.35065 16.2916 3.10714 16.6508 2.93669C17.01 2.76623 17.4311 2.68101 17.914 2.68101C18.4132 2.68101 18.8454 2.76116 19.2107 2.92147C19.578 3.07975 19.861 3.30296 20.0599 3.59111C20.2608 3.87926 20.3613 4.21713 20.3613 4.60471C20.3613 4.84416 20.3115 5.08259 20.2121 5.32001C20.1127 5.5554 19.9341 5.81615 19.6764 6.10227C19.4187 6.38839 19.0524 6.7293 18.5776 7.125L17.9932 7.61201V7.64854H20.4282V9H15.6433Z" 1925 fill="#150C09" 1926 ></path> 1927 <path 1928 d="M5.95701 21.0852C5.46593 21.0852 5.02965 21.001 4.64816 20.8326C4.26869 20.6621 3.9704 20.4278 3.75327 20.1295C3.53615 19.8312 3.42657 19.4882 3.42454 19.1006H5.12908C5.13111 19.2204 5.16764 19.3279 5.23866 19.4233C5.31171 19.5166 5.41115 19.5897 5.53696 19.6425C5.66277 19.6952 5.80684 19.7216 5.96918 19.7216C6.12543 19.7216 6.26342 19.6942 6.38314 19.6394C6.50287 19.5826 6.59621 19.5045 6.66317 19.405C6.73014 19.3056 6.76261 19.192 6.76058 19.0641C6.76261 18.9383 6.72405 18.8267 6.64491 18.7293C6.5678 18.6319 6.45924 18.5558 6.31922 18.501C6.17921 18.4462 6.01788 18.4188 5.83525 18.4188H5.20214V17.25H5.83525C6.00368 17.25 6.15181 17.2226 6.27965 17.1678C6.40952 17.113 6.50997 17.0369 6.58099 16.9395C6.65404 16.8421 6.68955 16.7305 6.68753 16.6047C6.68955 16.483 6.66013 16.3754 6.59925 16.2821C6.53838 16.1887 6.45315 16.1157 6.34357 16.0629C6.23602 16.0101 6.11123 15.9838 5.96918 15.9838C5.81496 15.9838 5.67697 16.0112 5.55522 16.0659C5.4355 16.1207 5.34114 16.1968 5.27214 16.2942C5.20315 16.3916 5.16764 16.5032 5.16561 16.6291H3.54629C3.54832 16.2476 3.65283 15.9107 3.85981 15.6185C4.06882 15.3263 4.35494 15.097 4.71817 14.9306C5.0814 14.7642 5.4984 14.681 5.96918 14.681C6.42981 14.681 6.83667 14.7591 7.18976 14.9154C7.54487 15.0716 7.82186 15.2867 8.02072 15.5607C8.22162 15.8326 8.32105 16.1441 8.31902 16.4951C8.32308 16.8442 8.20335 17.1303 7.95985 17.3535C7.71837 17.5767 7.41196 17.7086 7.04061 17.7492V17.7979C7.54386 17.8527 7.92231 18.0069 8.17596 18.2606C8.42961 18.5122 8.55441 18.8287 8.55035 19.2102C8.55238 19.5755 8.4428 19.8991 8.22162 20.1812C8.00246 20.4633 7.69706 20.6845 7.30542 20.8448C6.91581 21.0051 6.46634 21.0852 5.95701 21.0852Z" 1929 fill="#150C09" 1930 ></path> 1931 <path 1932 d="M15.3439 20.026V18.711L17.852 14.7662H19.0452V16.5195H18.3634L17.0119 18.6623V18.711H20.7132V20.026H15.3439ZM18.3755 21V19.6242L18.4121 19.0519V14.7662H19.9949V21H18.3755Z" 1933 fill="#150C09" 1934 ></path> 1935 </g> 1936 <rect 1937 x="0.5" 1938 y="0.5" 1939 width="23" 1940 height="23" 1941 stroke="black" 1942 shapeRendering="crispEdges" 1943 ></rect> 1944 </g> 1945 <defs> 1946 <filter 1947 id="filter0_d_11955_6785" 1948 x="0" 1949 y="0" 1950 width="26" 1951 height="26" 1952 filterUnits="userSpaceOnUse" 1953 colorInterpolationFilters="sRGB" 1954 >
1955 <feFlood floodOpacity="0" result="BackgroundImageFix"></feFlood> 1956 <feColorMatrix 1957 in="SourceAlpha" 1958 type="matrix" 1959 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 1960 result="hardAlpha" 1961 ></feColorMatrix> 1962 <feOffset dx="2" dy="2"></feOffset> 1963 <feComposite in2="hardAlpha" operator="out"></feComposite> 1964 <feColorMatrix 1965 type="matrix" 1966 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 1967 ></feColorMatrix> 1968 <feBlend 1969 mode="normal" 1970 in2="BackgroundImageFix" 1971 result="effect1_dropShadow_11955_6785" 1972 ></feBlend> 1973 <feBlend 1974 mode="normal" 1975 in="SourceGraphic" 1976 in2="effect1_dropShadow_11955_6785" 1977 result="shape" 1978 ></feBlend> 1979 </filter> 1980 <clipPath id="clip0_11955_6785"> 1981 <rect width="24" height="24" fill="white"></rect> 1982 </clipPath> 1983 </defs> 1984 </svg> 1985 Sudoku Conquest 1986 </a> 1987 <a 1988 href="https://www.wordga.com" 1989 target="_blank" 1990 rel="noopener noreferrer" 1991 class="flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal" 1992 > 1993 <svg 1994 width="26" 1995 height="26"
1996 viewBox="0 0 26 26" 1997 fill="none" 1998 xmlns="http://www.w3.org/2000/svg" 1999 class="mr-2 -rotate-[8deg]" 2000 > 2001 <g filter="url(#filter0_d_11954_5185)"> 2002 <g clipPath="url(#clip0_11954_5185)"> 2003 <rect width="24" height="24" fill="white"></rect> 2004 <rect 2005 width="15" 2006 height="6" 2007 transform="translate(9)" 2008 fill="#4F4644" 2009 ></rect> 2010 <rect 2011 width="18" 2012 height="8" 2013 transform="translate(0 8)" 2014 fill="#150C09" 2015 ></rect> 2016 <path 2017 d="M2.43478 13.5L1.8045 10.3708H2.59457L2.93634 12.3415L3.95278 10.3708H4.53868L4.89377 12.3593L5.88801 10.3708H6.71803L5.0935 13.5H4.44103L4.06819 11.6225L3.08726 13.5H2.43478ZM8.11785 13.5488C7.81899 13.5488 7.55859 13.4941 7.33666 13.3846C7.11473 13.2722 6.94162 13.1124 6.81734 12.9052C6.69602 12.6951 6.63536 12.4421 6.63536 12.1462C6.63536 11.7852 6.70638 11.4686 6.84841 11.1964C6.99045 10.9212 7.18871 10.7066 7.44319 10.5528C7.70062 10.3989 7.99801 10.322 8.33534 10.322C8.63421 10.322 8.89461 10.3782 9.11654 10.4906C9.33847 10.6001 9.51009 10.7599 9.63141 10.97C9.75569 11.1771 9.81783 11.4272 9.81783 11.7201C9.81783 12.0841 9.74682 12.4037 9.60478 12.6789C9.46275 12.9511 9.26449 13.1641 9.01001 13.318C8.75553 13.4719 8.45814 13.5488 8.11785 13.5488ZM8.12673 12.8653C8.30427 12.8653 8.45519 12.8179 8.57947 12.7232C8.70671 12.6286 8.80435 12.4969 8.87241 12.3282C8.94047 12.1566 8.9745 11.9598 8.9745 11.7379C8.9745 11.4893 8.91532 11.3059 8.79696 11.1875C8.68155 11.0662 8.52324 11.0055 8.32203 11.0055C8.14744 11.0055 7.99653 11.0529 7.86929 11.1475C7.74501 11.2422 7.64884 11.3754 7.58078 11.547C7.51568 11.7157 7.48313 11.911 7.48313 12.1329C7.48313 12.3815 7.54083 12.5664 7.65624 12.6877C7.77164 12.8061 7.92847 12.8653 8.12673 12.8653ZM10.0515 13.5L10.5486 10.3708H11.8935C12.2515 10.3708 12.5253 10.4507 12.7146 10.6105C12.907 10.7673 13.0032 10.9848 13.0032 11.2629C13.0032 11.5589 12.9247 11.7911 12.7679 11.9598C12.614 12.1255 12.4113 12.235 12.1598 12.2883C12.2456 12.3208 12.3181 12.3741 12.3773 12.4481C12.4365 12.5191 12.4868 12.6064 12.5282 12.7099L12.83 13.5H11.9956L11.6405 12.559C11.6109 12.4762 11.571 12.4185 11.5207 12.3859C11.4733 12.3504 11.4067 12.3326 11.3209 12.3326H11.0546L10.8682 13.5H10.0515ZM11.1434 11.7556H11.7337C12.0622 11.7556 12.2264 11.6166 12.2264 11.3384C12.2264 11.223 12.1879 11.1372 12.111 11.081C12.037 11.0247 11.9187 10.9966 11.7559 10.9966H11.2632L11.1434 11.7556ZM13.1854 13.5L13.6825 10.3708H14.7921C15.3189 10.3708 15.7243 10.4921 16.0083 10.7348C16.2954 10.9774 16.4389 11.3133 16.4389 11.7423C16.4418 12.0767 16.3738 12.377 16.2347 12.6434C16.0956 12.9097 15.89 13.1198 15.6177 13.2736C15.3485 13.4245 15.017 13.5 14.6235 13.5H13.1854ZM14.1042 12.8386H14.6324C14.949 12.8386 15.1872 12.741 15.347 12.5457C15.5097 12.3504 15.5911 12.087 15.5911 11.7556C15.5911 11.5219 15.5245 11.3428 15.3914 11.2186C15.2582 11.0943 15.0585 11.0321 14.7921 11.0321H14.3927L14.1042 12.8386Z" 2018 fill="white" 2019 ></path> 2020 <rect 2021 width="4" 2022 height="8" 2023 transform="translate(20 8)" 2024 fill="#4F4644" 2025 ></rect> 2026 <rect 2027 width="10" 2028 height="6" 2029 transform="translate(14 18)" 2030 fill="#4F4644" 2031 ></rect> 2032 <rect 2033 width="12" 2034 height="6" 2035 transform="translate(0 18)" 2036 fill="#4F4644" 2037 ></rect> 2038 <rect width="7" height="6" fill="#4F4644"></rect> 2039 </g> 2040 <rect 2041 x="0.5" 2042 y="0.5" 2043 width="23" 2044 height="23" 2045 stroke="black" 2046 shapeRendering="crispEdges" 2047 ></rect> 2048 </g> 2049 <defs> 2050 <filter 2051 id="filter0_d_11954_5185" 2052 x="0" 2053 y="0" 2054 width="26" 2055 height="26" 2056 filterUnits="userSpaceOnUse" 2057 colorInterpolationFilters="sRGB" 2058 >
2059 <feFlood floodOpacity="0" result="BackgroundImageFix"></feFlood> 2060 <feColorMatrix 2061 in="SourceAlpha" 2062 type="matrix" 2063 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 2064 result="hardAlpha" 2065 ></feColorMatrix> 2066 <feOffset dx="2" dy="2"></feOffset> 2067 <feComposite in2="hardAlpha" operator="out"></feComposite> 2068 <feColorMatrix 2069 type="matrix" 2070 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 2071 ></feColorMatrix> 2072 <feBlend 2073 mode="normal" 2074 in2="BackgroundImageFix" 2075 result="effect1_dropShadow_11954_5185" 2076 ></feBlend> 2077 <feBlend 2078 mode="normal" 2079 in="SourceGraphic" 2080 in2="effect1_dropShadow_11954_5185" 2081 result="shape" 2082 ></feBlend> 2083 </filter> 2084 <clipPath id="clip0_11954_5185"> 2085 <rect width="24" height="24" fill="white"></rect> 2086 </clipPath> 2087 </defs> 2088 </svg> 2089 Wordga 2090 </a> 2091 <a 2092 href="https://sumslide.com" 2093 target="_blank" 2094 rel="noopener noreferrer" 2095 class="flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal" 2096 > 2097 <svg 2098 width="26" 2099 height="26"
2100 viewBox="0 0 26 26" 2101 fill="none" 2102 xmlns="http://www.w3.org/2000/svg" 2103 class="mr-2 -rotate-[8deg]" 2104 > 2105 <g filter="url(#filter0_d_15768_12904)"> 2106 <g clip-path="url(#clip0_15768_12904)"> 2107 <rect width="24" height="24" fill="#7FC8EA"></rect> 2108 <path d="M25 1H1V25H25V1Z" fill="#7FC8EA"></path> 2109 <rect 2110 x="3" 2111 y="2.5459" 2112 width="8.29114" 2113 height="8.29114" 2114 rx="1.57926" 2115 fill="#09171E" 2116 ></rect> 2117 <path 2118 d="M7.98518 4.52595V8.5459H6.89383V5.53094H6.87028L5.99091 6.05699V5.13051L6.9802 4.52595H7.98518Z" 2119 fill="white" 2120 ></path> 2121 <path 2122 d="M17 3.73047L17 8.12542" 2123 stroke="white" 2124 stroke-width="1.46498" 2125 stroke-linecap="round" 2126 ></path> 2127 <path 2128 d="M14.0383 5.37793L14.0383 8.12477" 2129 stroke="white" 2130 stroke-width="1.46498" 2131 stroke-linecap="round" 2132 ></path> 2133 <path 2134 d="M20.0383 5.37793L20.0383 8.12477" 2135 stroke="white" 2136 stroke-width="1.46498" 2137 stroke-linecap="round" 2138 ></path> 2139 <rect 2140 x="12.9829" 2141 y="10" 2142 width="8.09863" 2143 height="8.09863" 2144 rx="1.5426" 2145 fill="white" 2146 ></rect> 2147 <path 2148 d="M17.0051 16.0537C16.6958 16.0537 16.421 16.0006 16.1807 15.8945C15.9417 15.7872 15.7538 15.6395 15.617 15.4517C15.4803 15.2638 15.4112 15.0477 15.41 14.8036H16.4836C16.4849 14.879 16.5079 14.9468 16.5527 15.0068C16.5987 15.0656 16.6613 15.1117 16.7406 15.1449C16.8198 15.1781 16.9106 15.1947 17.0128 15.1947C17.1112 15.1947 17.1982 15.1775 17.2736 15.143C17.349 15.1072 17.4078 15.058 17.45 14.9953C17.4921 14.9327 17.5126 14.8611 17.5113 14.7806C17.5126 14.7014 17.4883 14.6311 17.4385 14.5697C17.3899 14.5083 17.3215 14.4604 17.2333 14.4259C17.1451 14.3914 17.0435 14.3741 16.9285 14.3741H16.5297V13.6379H16.9285C17.0345 13.6379 17.1279 13.6206 17.2084 13.5861C17.2902 13.5516 17.3535 13.5037 17.3982 13.4423C17.4442 13.381 17.4666 13.3107 17.4653 13.2314C17.4666 13.1547 17.448 13.087 17.4097 13.0282C17.3713 12.9694 17.3177 12.9234 17.2486 12.8902C17.1809 12.8569 17.1023 12.8403 17.0128 12.8403C16.9157 12.8403 16.8288 12.8576 16.7521 12.8921C16.6766 12.9266 16.6172 12.9745 16.5738 13.0359C16.5303 13.0972 16.5079 13.1675 16.5066 13.2468H15.4867C15.4879 13.0065 15.5538 12.7943 15.6841 12.6102C15.8158 12.4262 15.996 12.2817 16.2248 12.1769C16.4536 12.0721 16.7163 12.0197 17.0128 12.0197C17.303 12.0197 17.5592 12.0689 17.7816 12.1673C18.0053 12.2658 18.1798 12.4012 18.3051 12.5738C18.4316 12.7451 18.4942 12.9413 18.493 13.1624C18.4955 13.3823 18.4201 13.5625 18.2667 13.7031C18.1146 13.8437 17.9216 13.9268 17.6877 13.9523V13.983C18.0047 14.0175 18.2431 14.1147 18.4028 14.2744C18.5626 14.4329 18.6412 14.6323 18.6387 14.8726C18.64 15.1027 18.5709 15.3066 18.4316 15.4842C18.2936 15.6619 18.1012 15.8012 17.8545 15.9022C17.6091 16.0032 17.326 16.0537 17.0051 16.0537Z" 2149 fill="#09171E" 2150 ></path> 2151 <rect 2152 x="3" 2153 y="13" 2154 width="8.29114" 2155 height="8.29114" 2156 rx="1.57926" 2157 fill="#09171E" 2158 ></rect> 2159 <path 2160 d="M5.62582 19V18.2149L7.12545 16.9743C7.2249 16.8919 7.30996 16.8147 7.38062 16.7427C7.45259 16.6694 7.50755 16.5942 7.5455 16.517C7.58476 16.4398 7.60439 16.3541 7.60439 16.2598C7.60439 16.1565 7.58214 16.0681 7.53765 15.9949C7.49447 15.9216 7.43427 15.8653 7.35707 15.826C7.27986 15.7855 7.19088 15.7652 7.09012 15.7652C6.98936 15.7652 6.90037 15.7855 6.82317 15.826C6.74727 15.8666 6.68839 15.9262 6.64651 16.0047C6.60464 16.0832 6.5837 16.1787 6.5837 16.2912H5.54731C5.54731 16.0086 5.61077 15.7652 5.7377 15.5611C5.86464 15.3569 6.04391 15.1999 6.27553 15.09C6.50715 14.9801 6.77868 14.9251 7.09012 14.9251C7.41203 14.9251 7.69075 14.9768 7.9263 15.0802C8.16315 15.1822 8.3457 15.3262 8.47394 15.512C8.60349 15.6978 8.66826 15.9157 8.66826 16.1656C8.66826 16.32 8.6362 16.4738 8.57208 16.6269C8.50796 16.7787 8.39281 16.9468 8.22662 17.1314C8.06043 17.3159 7.82423 17.5357 7.51802 17.7909L7.14115 18.1049V18.1285H8.71144V19H5.62582Z" 2161 fill="white" 2162 ></path> 2163 </g> 2164 <rect 2165 x="0.5" 2166 y="0.5" 2167 width="23" 2168 height="23" 2169 stroke="black" 2170 shape-rendering="crispEdges" 2171 ></rect> 2172 </g> 2173 <defs> 2174 <filter 2175 id="filter0_d_15768_12904" 2176 x="0" 2177 y="0" 2178 width="26" 2179 height="26" 2180 filterUnits="userSpaceOnUse" 2181 color-interpolation-filters="sRGB" 2182 >
2183 <feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood> 2184 <feColorMatrix 2185 in="SourceAlpha" 2186 type="matrix" 2187 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" 2188 result="hardAlpha" 2189 ></feColorMatrix> 2190 <feOffset dx="2" dy="2"></feOffset> 2191 <feComposite in2="hardAlpha" operator="out"></feComposite> 2192 <feColorMatrix 2193 type="matrix" 2194 values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" 2195 ></feColorMatrix> 2196 <feBlend 2197 mode="normal" 2198 in2="BackgroundImageFix" 2199 result="effect1_dropShadow_15768_12904" 2200 ></feBlend> 2201 <feBlend 2202 mode="normal" 2203 in="SourceGraphic" 2204 in2="effect1_dropShadow_15768_12904" 2205 result="shape" 2206 ></feBlend> 2207 </filter> 2208 <clipPath id="clip0_15768_12904"> 2209 <rect width="24" height="24" fill="white"></rect> 2210 </clipPath> 2211 </defs> 2212 </svg> 2213 SumSlide 2214 </a> 2215 </nav> 2216</div> 2217`;var PA={render(e={}){e||(e={});let t=D8;return t=this._processIfTags(t,e),t=t.replace(/\{\{\s*([^}]+)\s*\}\}/g,((n,i)=>{const o=i.trim();return o in e?e[o]:n})),t},_processIfTags:(e,t)=>e.replace(/\{\{:if\s+([^}]+)\}\}([\s\S]*?)\{\{:\/if\}\}/g,((n,i,o)=>{let s=!1;try{const l=i.trim().split(".");let c=t;for(const d of l){if(c==null){c=void 0;break}c=c[d]}s=!!c}catch(l){console.warn("Error evaluating condition:",i,l),s=!1}return s?o:""})),template:D8};const H8=`<div class="footer"> 2218 <div class="container"> 2219 <div class="aboutus"> 2220 <div class="section"> 2221 <h2>About Us</h2> 2222 <p> 2223 We're <a href="https://www.hey.gg">Hey, Good Game</a>, a tiny game studio 2224 that builds and buys games, for good. We believe brainy games can impact 2225 your life in a positive and healthy way, and we're dedicated to creating a 2226 premium game experience across platforms. 2227 </p> 2228 <p> 2229 Learn more <a href="https://www.hey.gg/about">about us</a>, and please 2230 reach out if you have a game to sell. We have a streamlined process that 2231 treats game caretakers fairly. 2232 </p> 2233 </div> 2234 <p class="copyright">{{copyrightText}}</p> 2235 </div> 2236 <div class="games"> 2237 <h2>Hey, Good Games</h2> 2238 <ul> 2239 <li class="crosswordle"> 2240 <a href="https://crosswordle.com">Crosswordle</a> 2241 </li> 2242 <li class="sumplete"><a href="https://sumplete.com">Sumplete</a></li> 2243 <li class="squeezy"><a href="https://imsqueezy.com">Squeezy</a></li> 2244 <li class="pairdown"><a href="https://pairdown.com">Pair Down</a></li> 2245 <li class="queens"><a href="https://queensultimate.com">Queens Ultimate</a></li> 2246 <li class="minisudoku"> 2247 <a href="https://minisudoku.com">Mini Sudoku</a> 2248 </li> 2249 <li class="mathler"><a href="https://www.mathler.com">Mathler</a></li> 2250 <li class="kakuroconquest"> 2251 <a href="https://www.kakuroconquest.com">Kakuro Conquest</a> 2252 </li> 2253 <li class="hitoriconquest"> 2254 <a href="https://hitoriconquest.com">Hitori Conquest</a> 2255 </li> 2256 <li class="sudokuconquest"> 2257 <a href="https://www.sudokuconquest.com">Sudoku Conquest</a> 2258 </li> 2259 <li class="wordga"><a href="https://wordga.com">WordGa</a></li> 2260 <li class="sumslide"><a href="https://sumslide.com">SumSlide</a></li> 2261 </ul> 2262 </div> 2263 <div class="resources"> 2264 {{socialLinksHTML}} 2265 <h2>Resources</h2> 2266 <ul> 2267 <li><a href="https://www.hey.gg/podcast">Podcast</a></li> 2268 <li><a href="https://www.youtube.com/@heygoodgames">YouTube</a></li> 2269 <li><a href="https://www.hey.gg/newsletter">Newsletter</a></li> 2270 {{:if showBlogLink}} 2271 <li><a href="/blog">Blog</a></li> 2272 {{:/if}} 2273 <li><a href="https://store.hey.gg/">Merch</a></li> 2274 <!-- Add any custom link after this line --> 2275 {{:if feedbackURL}} 2276 <li><a href="{{feedbackURL}}">Feedback</a></li> 2277 {{:/if}} 2278 <li><a href="https://www.hey.gg/privacy">Privacy Policy</a></li> 2279 </ul> 2280 </div> 2281 </div> 2282</div> 2283`;var n7={render(e={}){e||(e={});let t=H8;return t=this._processIfTags(t,e),t=t.replace(/\{\{\s*([^}]+)\s*\}\}/g,((n,i)=>{const o=i.trim();return o in e?e[o]:n})),t},_processIfTags:(e,t)=>e.replace(/\{\{:if\s+([^}]+)\}\}([\s\S]*?)\{\{:\/if\}\}/g,((n,i,o)=>{let s=!1;try{const l=i.trim().split(".");let c=t;
2283for(const d of l){if(c==null){c=void 0;break}c=c[d]}s=!!c}catch(l){console.warn("Error evaluating condition:",i,l),s=!1}return s?o:""})),template:H8};const B8=`<ul class="navbar"> 2284 <div class="user-profile-dropdown"> 2285 <p id="current-streak">{{ streakDisplay }}</p> 2286 <p id="username">@{{ username }}</p> 2287 </div> 2288 <div class="dropdown-content"> 2289 <p>{{ playStreakLabel }}</p> 2290 <div id="days" class="days"></div> 2291 <a 2292 href="{{ dashboardBaseUrl }}/dashboard/{{ gameKey }}?return_to={{ returnTo }}" 2293 id="accountStatsBtn" 2294 > 2295 <svg 2296 width="40" 2297 height="43" 2298 viewBox="0 0 40 43" 2299 fill="none" 2300 xmlns="http://www.w3.org/2000/svg" 2301 > 2302 <g clipPath="url(#clip0_13712_468)"> 2303 <path d="M10 21.9082H14V32.9082H10V21.9082Z" fill="#FCFAFA" /> 2304 <path 2305 d="M16 10.9082H25V14.9082H21V32.9082H16V10.9082Z" 2306 fill="var(--heygg-primary-color)" 2307 /> 2308 <path d="M23 16.9082H30V32.9082H23V16.9082Z" fill="white" /> 2309 </g> 2310 <defs> 2311 <clipPath id="clip0_13712_468"> 2312 <rect 2313 width="24" 2314 height="24" 2315 fill="white" 2316 transform="translate(8 9.9082)" 2317 /> 2318 </clipPath> 2319 </defs> 2320 </svg> 2321 <span>{{ gameTitle }} Stats</span> 2322 </a> 2323 {{:if showHowToPlay}} 2324 <a href="{{ howToPlayURL }}" id="faqBtn" data-use-callback="{{ useCallback }}"> 2325 <svg 2326 width="40" 2327 height="43"
2328 viewBox="0 0 40 43" 2329 fill="none" 2330 xmlns="http://www.w3.org/2000/svg" 2331 > 2332 <path 2333 d="M20 33.9082C26.6274 33.9082 32 28.5356 32 21.9082C32 15.2808 26.6274 9.9082 20 9.9082C13.3726 9.9082 8 15.2808 8 21.9082C8 28.5356 13.3726 33.9082 20 33.9082Z" 2334 fill="var(--heygg-primary-color)" 2335 /> 2336 <path 2337 d="M16 18.285C16.0001 17.6761 16.1952 17.0786 16.5645 16.5557C16.9339 16.0327 17.4638 15.6038 18.0982 15.3143C18.7327 15.0248 19.448 14.8856 20.1685 14.9112C20.8889 14.9368 21.5878 15.1265 22.1911 15.46C22.7945 15.7935 23.2798 16.2586 23.5957 16.8059C23.9116 17.3532 24.0464 17.9625 23.9859 18.5692C23.9253 19.1759 23.6716 19.7575 23.2516 20.2525C22.8316 20.7474 22.2609 21.1373 21.6 21.3809C21.1245 21.5561 20.7198 21.8447 20.4356 22.2112C20.1514 22.5777 20 23.0063 20 23.4444V23.9082" 2338 stroke="black" 2339 strokeWidth="2" 2340 strokeLinecap="round" 2341 strokeLinejoin="round" 2342 /> 2343 <circle cx="20" cy="27.9082" r="1" fill="black" /> 2344 </svg> 2345 <span>How to Play</span> 2346 </a> 2347 {{:/if}} 2348 </div> 2349</ul> 2350`;var LA={render(e={}){e||(e={});let t=B8;return t=this._processIfTags(t,e),t=t.replace(/\{\{\s*([^}]+)\s*\}\}/g,((n,i)=>{const o=i.trim();return o in e?e[o]:n})),t},_processIfTags:(e,t)=>e.replace(/\{\{:if\s+([^}]+)\}\}([\s\S]*?)\{\{:\/if\}\}/g,((n,i,o)=>{let s=!1;try{const l=i.trim().split(".");let c=t;for(const d of l){if(c==null){c=void 0;break}c=c[d]}s=!!c}catch(l){console.warn("Error evaluating condition:",i,l),s=!1}return s?o:""})),template:B8};const G8=`<div class="account-message"> 2351 <img src="" alt="" id="account-logo" /> 2352 <h4 id="game-title">NEW! SAVE YOUR STATS</h4> 2353 <ul> 2354 <li>Use multiple devices</li> 2355 <li>Full stats and streaks</li> 2356 <li>Leaderboard</li> 2357 {{:if showArchive}} 2358 <li>Full game archive</li> 2359 {{:/if}} 2360 <li>Join the community</li> 2361 </ul> 2362 <a 2363 href="{{ dashboardBaseUrl }}/register?redirect_uri={{ returnTo }}" 2364 id="free-account-link" 2365 > 2366 Get Your Free Account 2367 <svg 2368 width="24" 2369 height="25" 2370 viewBox="0 0 24 25" 2371 fill="none" 2372 xmlns="http://www.w3.org/2000/svg" 2373 > 2374 <g id="Icons Navigation"> 2375 <path 2376 id="Vector 108" 2377 d="M6 12.5H18M18 12.5L12.1463 6.5M18 12.5L12.1463 18.5" 2378 stroke="black" 2379 stroke-width="2" 2380 stroke-linecap="round" 2381 stroke-linejoin="round" 2382 /> 2383 </g> 2384 </svg> 2385 </a> 2386</div> 2387<nav class="sidebar-menu"> 2388 {{:if showArchive}} 2389 <a class="menu-item" href="/archive" 2390 ><svg 2391 width="24" 2392 height="24" 2393 viewBox="0 0 24 24" 2394 fill="none" 2395 xmlns="http://www.w3.org/2000/svg" 2396 > 2397 <g clip-path="url(#clip0_12887_4409)"> 2398 <g clip-path="url(#clip1_12887_4409)"> 2399 <path 2400 d="M8.67774 19.8113C11.7962 22.4443 20.4021 20.0616 21.5 14.5C22.7831 8 19.0727 3.00007 12.7337 3C6.67434 2.99993 4.91493 7.78867 4 10.3323" 2401 stroke="var(--heygg-primary-color)" 2402 stroke-width="3" 2403 /> 2404 <path 2405 d="M3.81942 15.8509L0 7.83984L10.063 10.2321L3.81942 15.8509Z" 2406 fill="var(--heygg-primary-color)" 2407 /> 2408 </g> 2409 </g> 2410 <defs> 2411 <clipPath id="clip0_12887_4409"> 2412 <rect width="24" height="24" fill="white" /> 2413 </clipPath> 2414 <clipPath id="clip1_12887_4409"> 2415 <rect width="24" height="24" fill="white" /> 2416 </clipPath> 2417 </defs> 2418 </svg> 2419 Game Archive 2420 </a> 2421 {{:/if}} 2422 {{:if showHowToPlay}} 2423 <a class="menu-item" href="{{ howToPlayURL }}" id="how-to-play-link" data-use-callback="{{ useCallback }}"> 2424 <svg 2425 width="24" 2426 height="24" 2427 viewBox="0 0 24 24" 2428 fill="none" 2429 xmlns="http://www.w3.org/2000/svg" 2430 > 2431 <path 2432 d="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" 2433 fill="var(--heygg-primary-color)" 2434 /> 2435 <path 2436 d="M8 8.37679C8.00011 7.76792 8.19517 7.1704 8.56453 6.64746C8.93389 6.12452 9.46382 5.69561 10.0982 5.40613C10.7327 5.11665 11.448 4.97736 12.1685 5.003C12.8889 5.02864 13.5878 5.21826 14.1911 5.55179C14.7945 5.88532 15.2798 6.35036 15.5957 6.89769C15.9116 7.44502 16.0464 8.05428 15.9859 8.661C15.9253 9.26772 15.6716 9.84933 15.2516 10.3443C14.8316 10.8392 14.2609 11.2291 13.6 11.4727C13.1245 11.6479 12.7198 11.9365 12.4356 12.303C12.1514 12.6695 12 13.0981 12 13.5362V14" 2437 stroke="black" 2438 stroke-width="2" 2439 stroke-linecap="round" 2440 stroke-linejoin="round" 2441 /> 2442 <circle cx="12" cy="18" r="1" fill="black" /> 2443 </svg> 2444 How to Play 2445 </a> 2446 {{:/if}} 2447</nav> 2448<!-- Trigger build --> 2449`;var MA={render(e={}){e||(e={});let t=G8;return t=this._processIfTags(t,e),t=t.replace(/\{\{\s*([^}]+)\s*\}\}/g,((n,i)=>{const o=i.trim();return o in e?e[o]:n})),t},_processIfTags:(e,t)=>e.replace(/\{\{:if\s+([^}]+)\}\}([\s\S]*?)\{\{:\/if\}\}/g,((n,i,o)=>{let s=!1;try{const l=i.trim().split(".");let c=t;
2449for(const d of l){if(c==null){c=void 0;break}c=c[d]}s=!!c}catch(l){console.warn("Error evaluating condition:",i,l),s=!1}return s?o:""})),template:G8};function U8(e){return e.split(":").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")}function r7(e){if(!e)return"";var t=[];return e.bluesky&&t.push('<li><a href="'.concat(e.bluesky,'" target="_blank" rel="noopener noreferrer">Bluesky</a></li>')),e.instagram&&t.push('<li><a href="'.concat(e.instagram,'" target="_blank" rel="noopener noreferrer">Instagram</a></li>')),e.threads&&t.push('<li><a href="'.concat(e.threads,'" target="_blank" rel="noopener noreferrer">Threads</a></li>')),e.twitter&&t.push('<li><a href="'.concat(e.twitter,'" target="_blank" rel="noopener noreferrer">X / Twitter</a></li>')),t.length===0?"":'<div class="social-links-section"><h2>Follow Us On</h2><ul>'.concat(t.join(""),"</ul></div>")}function IA(e){return Et(this,arguments,void 0,(function(t){var n=t.gameKey,i=t.showBlogLink,o=i!==void 0&&i,s=t.showArchive,l=s!==void 0&&s,c=t.copyrightText,d=t.feedbackURL,f=t.socialLinks;return kt(this,(function(h){return[2,new Promise((function(g,w){var m=function(){try{var b=document.createElement("div");b.classList.add("heygg-body");var _=document.createElement("div");_.classList.add("appShell"),_.innerHTML=PA.render({dashboardBaseUrl:window.HeyGoodGame.config.apiBaseUrl,gameKey:n,returnTo:encodeURIComponent(cu()),showArchive:l});var C=document.getElementById("main-content");if(!C)throw new Error("Element with ID #main-content not found");var R=C.cloneNode(!0);document.body.replaceChildren(b),b.appendChild(_),b.appendChild(R),b.insertAdjacentHTML("beforeend",n7.render({showBlogLink:o,copyrightText:c||"© 2022-".concat(new Date().getFullYear()," Hey Good Game, Inc."),feedbackURL:d,socialLinksHTML:r7(f)})),g(!0)}catch(I){w(I)}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",m):m()}))]}))}))}function RA(e){return Et(this,arguments,void 0,(function(t){var n,i,o,s,l,c,d,f,h,g,w,m,b,_,C,R,I,k,A,L,j,D,V=t.gameKey,q=t.gameTitle,$=t.level,W=t.svgSrc,ae=t.riveSrc,te=t.howToPlay,ce=t.howToPlayURL,pe=t.howToPlayCallback,me=t.primaryColor,ne=t.svgLogoSrc,X=t.showBlogLink,re=X!==void 0&&X,H=t.showArchive,K=H!==void 0&&H,he=t.localStorageKeys,Ce=t.devToolbarEnabled,ke=t.gameVersion,be=t.playStreakLabel,Re=t.copyrightText,Ve=t.feedbackURL,ht=t.socialLinks,dt=t.isNativeApp,ut=t.nativeAppScheme,$t=t.onDeepLink;return kt(this,(function(bt){switch(bt.label){case 0:return window.HeyGoodGame.setConfig({gameKey:V}),dt===void 0&&ut===void 0||window.HeyGoodGame.setConfig(Tn(Tn({},dt!==void 0&&{isNativeApp:dt}),ut!==void 0&&{nativeAppScheme:ut})),dt?[4,xC($t)]:[3,2];case 1:bt.sent(),n=((L=(A=window.HeyGoodGame)===null||A===void 0?void 0:A.config)===null||L===void 0?void 0:L.apiBaseUrl)||"",document.addEventListener("click",(function(ot){var sn=ot.target.closest("a");if(sn){var qt=sn.getAttribute("href");qt&&qt.startsWith(n)&&(qt.includes("/login")||qt.includes("/register")||qt.includes("/check-auth"))&&(ot.preventDefault(),R0(qt))}})),bt.label=2;case 2:if(te!==void 0&&(typeof te=="string"?ce=te:typeof te=="function"&&(pe=te)),ce&&pe)throw new Error("handleAuthAndSetupUI cannot accept both a URL and callback for how to play - use one or the other");return window.innerWidth>1010&&console.log(` 2450888 888 .d8888b. 888 .d8888b. 2451888 888 d88P Y88b 888 d88P Y88b 2452888 888 888 888 888 888 888 24538888888888 .d88b. 888 888 888 .d88b. .d88b. .d88888 888 8888b. 88888b.d88b. .d88b. 2454888 888 d8P Y8b 888 888 888 88888 d88""88b d88""88b d88" 888 888 88888 "88b 888 "888 "88b d8P Y8b 2455888 888 88888888 888 888 888 888 888 888 888 888 888 888 888 888 .d888888 888 888 888 88888888 2456888 888 Y8b. Y88b 888 d8b Y88b d88P Y88..88P Y88..88P Y88b 888 Y88b d88P 888 888 888 888 888 Y8b. 2457888 888 "Y8888 "Y88888 88P "Y8888P88 "Y88P" "Y88P" "Y88888 "Y8888P88 "Y888888 888 888 888 "Y8888 2458 888 8P 2459 Y8b d88P " 2460 "Y88P"`),F5(V,$),K2||(K2=!0,console.log("[BotD] Initializing bot detection..."),VC().then((function(ot){return ot.detect()})).then((function(ot){Rh=ot,console.log("[BotD] Detection complete:",ot)})).catch((function(ot){console.warn("[BotD] Detection failed:",ot)}))),vd.init(),me&&document.documentElement.style.setProperty("--heygg-primary-color",me),[4,IA({gameKey:V,showBlogLink:re,showArchive:K,copyrightText:Re,feedbackURL:Ve,socialLinks:ht})];case 3:bt.sent(),(function(){var ot=function(en){return function(Pn){var O=Pn.target.closest("a");if(O){var v=O.getAttribute("href");v&&Sf(v,en)&&Pn.preventDefault()}}},sn=document.querySelector(".sidebar-games");sn&&sn.addEventListener("click",ot("sidebar"));var qt=document.querySelector(".footer .games ul");qt&&qt.addEventListener("click",ot("footer"))})(),i=document.getElementById("sidebar"),o=document.querySelector("body > div > div.appShell >
2460 header"),s=document.getElementById("canvas"),l=document.getElementById("main-logo"),c=new Date,d=new Date,f=new Date(d.setDate(c.getDate()-7)).toISOString().split("T")[0],l?.setAttribute("src",ne),l?.setAttribute("alt","".concat(q," Logo")),bt.label=4;case 4:return bt.trys.push([4,12,,13]),[4,N5().then((function(){var ot=localStorage.getItem("heygg_user");return{user:ot?JSON.parse(ot):null}}))];case 5:return(h=bt.sent().user)?(console.log("Logged in! : ",h),Promise.resolve().then((function(){return b8})).then((function(ot){return ot.default.setUser(h)})).catch((function(){})),[4,Promise.all([yo.getLogs(V,$,f,"win"),yo.getStreaks(V,$)])]):[3,7];case 6:return g=bt.sent(),w=g[0],m=w===void 0?[]:w,b=g[1],_=j0(b===void 0?[]:b),document.querySelector("body > div.heygg-body > div.appShell > header > div.right > ul:nth-child(1)").remove(),(function(ot,sn,qt,en,Pn,O,v,P,U){Et(this,void 0,void 0,(function(){var Y,Ee,B,ee,fe,oe,de,Pe,Ue,Le;return kt(this,(function(Me){try{Y=document.createElement("div"),Ee=Pn&&Pn>=1?"ð¥ ".concat(Pn):"𥶠0",B=!!P,ee=!(!v&&!P),Y.innerHTML=LA.render({dashboardBaseUrl:window.HeyGoodGame.config.apiBaseUrl,gameKey:en,returnTo:encodeURIComponent(cu()),username:ot.username,gameTitle:sn,streakDisplay:Ee,level:U8(O),playStreakLabel:U||"Your ".concat(U8(O)," Play Streak"),howToPlayURL:v||"#",useCallback:B.toString(),showHowToPlay:ee}),fe=Y.querySelector("#days"),oe=O0().map((function(_e,Ae){var $e=qt.includes(_e);return'<div class="day '.concat($e?Ae===6?"streakCurrentDay":"streak":"",`"> 2461 `).concat(_e.split("-")[2],` 2462 </div>`)})).join(""),fe.innerHTML=oe,(de=document.querySelector("body > div > div.appShell > header > div.right"))==null||de.appendChild(Y),Pe=Y.querySelector(".dropdown-content"),(Ue=Y.querySelector(".user-profile-dropdown"))==null||Ue.addEventListener("click",(function(){Pe?.classList.toggle("open")})),document.addEventListener("mousedown",(function(_e){Y.contains(_e.target)||Pe==null||Pe.classList.remove("open")})),P&&ee&&(Le=Y.querySelector("#faqBtn"))&&Le.addEventListener("click",(function(_e){_e.preventDefault(),P()}))}catch(_e){console.error("Error loading profile dropdown:",_e)}return[2]}))}))})(h,q,m,V,_,$,ce,pe,be),(function(ot,sn){var qt=document.getElementById("name"),en=document.querySelector("#current-play-streak");qt&&(qt.textContent=ot.name),en&&sn&&(en.textContent=sn.toString())})(h,_),[3,11];case 7:if(console.log("Not logged in!"),Promise.resolve().then((function(){return b8})).then((function(ot){return ot.default.setUser(null)})).catch((function(){})),(function(ot,sn,qt,en,Pn){Et(this,arguments,void 0,(function(O,v,P,U,Y,Ee){var B,ee,fe,oe,de,Pe,Ue,Le,Me;return Ee===void 0&&(Ee=!1),kt(this,(function(_e){try{B=document.createElement("div"),ee=!!Y,fe=!(!U&&!Y),B.innerHTML=MA.render({dashboardBaseUrl:window.HeyGoodGame.config.apiBaseUrl,gameKey:P,howToPlayURL:U||"#",useCallback:ee.toString(),showHowToPlay:fe,returnTo:encodeURIComponent(cu()),showArchive:Ee}),(Le=B.querySelector("#account-logo"))===null||Le===void 0||Le.setAttribute("src",v),(Me=B.querySelector("#account-logo"))===null||Me===void 0||Me.setAttribute("alt",O),B.querySelector("#game-title").textContent="NEW! ".concat(O.toUpperCase()," ACCOUNTS"),oe=document.getElementById("sidebar"),de=oe?.querySelector(".sidebar-header"),Pe=oe?.querySelector(".sidebar-menu"),oe?.replaceChild(B,de),oe?.replaceChild(B,Pe),Y&&fe&&(Ue=B.querySelector("#how-to-play-link"))&&Ue.addEventListener("click",(function(Ae){Ae.preventDefault(),Y()}))}catch(Ae){console.error("Error loading account message:",Ae)}return[2]}))}))})(q,W,V,ce,pe,K),!(C=(D=(j=window.HeyGoodGame)===null||j===void 0?void 0:j.config)===null||D===void 0?void 0:D.googleClientId))return[3,11];bt.label=8;case 8:return bt.trys.push([8,10,,11]),[4,(vn="https://accounts.google.com/gsi/client",yn===void 0&&(yn=!0),Wn===void 0&&(Wn=!0),new Promise((function(ot,sn){var qt=document.createElement("script");qt.src=vn,qt.async=yn,qt.defer=Wn,document.head.appendChild(qt),qt.onload=function(){ot(!0)},qt.onerror=function(){sn(new Error("Failed to load script: ".concat(vn)))}})))];case 9:return bt.sent(),SC.initializeOneTap(C,{autoSelect:!1,cancelOnTapOutside:!0}),[3,11];case 10:return R=bt.sent(),console.warn("Failed to load Google One Tap:",R),[3,11];case 11:return[3,13];case 12:return I=bt.sent(),console.error("Error loading profile dropdown:",I),[3,13];case 13:return document.body.classList.remove("auth-pending"),V5.processRetryQueue(),[4,ki.init(V,void 0,$)];case 14:return bt.sent(),[4,vd.trackVisit(V)];case 15:return bt.sent(),vd.cleanUrlParams(),s?Promise.resolve().then((function(){return HA})).then((function(ot){var sn=ot.Rive,qt=ot.Layout,en=ot.Fit,Pn=ot.Alignment;try{var O=new qt({fit:en.Contain,alignment:Pn.Center}),v=new sn({src:ae,canvas:s,autoplay:!0,stateMachines:"State Machine 1",layout:O,onLoad:function(){if(v.resizeDrawingSurfaceToCanvas(),me)try{var P=v.stateMachineInputs("State Machine 1"),U=P?.find((function(B){return B.name==="Color"}));if(U){var Y=me.replace("#",""),Ee=parseInt(Y.substring(0,2),16)<<16|parseInt(Y.substring(2,4),16)<<8|parseInt(Y.substring(4,6),16);U.value=Ee}}catch(B){console.warn("Failed to apply primary color to Rive animation:",B)}},onLoadError:function(P){console.warn("Rive animation failed to load:",P),s.style.display="none"},isTouchScrollEnabled:!0});document.addEventListener("mousedown",(function(P){if(i&&o&&!i.contains(P.target)&&!o?.contains(P.target)){i.classList.remove("sidebar-active");try{var U=v.stateMachineInputs("State Machine 1"),Y=U?.find((function(Ee){return Ee.name==="Open"}));Y&&(Y.value=!1)}catch(Ee){console.warn("Failed to interact with Rive animation:",Ee)}}}))}catch(P){console.warn("Failed to initialize Rive animation:",P),s.style.display="none"}})).catch((function(ot){console.warn("Failed to load Rive library:",ot),s.style.display="none"})):console.warn("Canvas element not found"),k=window.location.hostname==="localhost",(Ce??k)&&Promise.resolve().then((function(){return QC})).then((function(ot){ot.default.init({gameKey:V,enabled:!0,position:"bottom-center",localStorageKeys:he,gameVersion:ke})})).catch((function(ot){console.warn("Failed to load DevToolbar:",ot)})),[2]}var vn,yn,Wn}))}))}var jA=function(){var e=document.getElementById("sidebar");e&&e.classList.toggle("sidebar-active")};function OA(e){e===void 0&&(e={});var t=e.showBlogLink,n=t!==void 0&&t,i=e.copyrightText,o=i===void 0?"© 2022-".concat(new Date().getFullYear()," Hey Good Game, Inc."):i,s=e.feedbackURL,l=e.socialLinks,c=e.targetElement,d=document.createElement("div");d.innerHTML=n7.render({showBlogLink:n,copyrightText:o,feedbackURL:s,socialLinksHTML:r7(l)});var f=d.firstElementChild,h=null;c?typeof c=="string"?(h=document.querySelector(c))||(console.warn('renderFooter: Target element "'.concat(c,'" not found, appending to body')),h=document.body):h=c:h=document.body,h.appendChild(f);var g=f.querySelector(".games ul");return g&&g.addEventListener("click",(function(w){var m=w.target.closest("a");if(m){var b=m.getAttribute("href");b&&Sf(b,"footer")&&w.preventDefault()}})),f}function z8(e){e===void 0&&(e={});var t=e.cellSize,n=t===void 0?8:t,i=e.gap,o=i===void 0?4:i,s=e.speed,l=s===void 0?250:s,c=e.duration,d=c===void 0?250:c,f=e.tilt,h=f===void 0?-8:f,g=e.accentColor,w=g===void 0?"#FF6741":g,m=n+o,b=3*n+2*o,_="cubic-bezier(0.25, 0.46, 0.45, 0.94)",C=[null,null,null,null,null,null,w,w],R=document.createElement("div");R.id="heygg-loader",R.style.cssText=` 2463 position: absolute; 2464 top: 50%; 2465 left: 50%; 2466 transform: translate(-50%, -50%); 2467 z-index: 10; 2468 opacity: 0.7; 2469 `;var I=document.createElement("div");I.style.cssText=` 2470 position: relative; 2471 width: `.concat(b,`px; 2472 height: `).concat(b,`px; 2473 margin: 0 auto; 2474 transform: rotate(`).concat(h,`deg); 2475 `);var k=[],A=[0,1,2,3,4,5,6,7,-1],L=8,j=-1;function D(V){return{x:V%3*m,y:Math.floor(V/3)*m}}
2475return C.forEach((function(V,q){var $=document.createElement("div"),W=D(q);$.style.cssText=` 2476 position: absolute; 2477 width: `.concat(n,`px; 2478 height: `).concat(n,`px; 2479 background: `).concat(V??"currentColor",`; 2480 left: `).concat(W.x,`px; 2481 top: `).concat(W.y,`px; 2482 transition: left `).concat(d,"ms ").concat(_,", top ").concat(d,"ms ").concat(_,`; 2483 `),I.appendChild($),k.push($)})),R.appendChild(I),R._shuffleInterval=setInterval((function(){var V=(function(te){var ce=[],pe=te%3,me=Math.floor(te/3);return pe>0&&ce.push(te-1),pe<2&&ce.push(te+1),me>0&&ce.push(te-3),me<2&&ce.push(te+3),ce})(L),q=V.filter((function(te){return A[te]!==j}));q.length===0&&(q=V);var $=q[Math.floor(Math.random()*q.length)],W=A[$];j=W;var ae=D(L);k[W].style.left=ae.x+"px",k[W].style.top=ae.y+"px",A[L]=W,A[$]=-1,L=$}),l),R}var NA=Tn({},{apiBaseUrl:"https://play.hey.gg"}),FA=function(e){window.HeyGoodGame.config=Tn(Tn({},window.HeyGoodGame.config),e)},nm={Admin:hC,Auth:N5,Blog:WC,Streaks:yo,Stats:V5,ABTesting:sd,DevToolbar:W5,Partners:gC,Analytics:Ti,Sentry:K6,PartnerTracking:ki,UtmTracking:vd,Ads:hA,Recommendations:vA,GameCompleteModal:TA,ModalEvents:ta,EmbedEvents:N0,ApiHealth:yC,TempAnonymousId:bC,config:NA,setConfig:FA,toggleSidebar:jA,renderFooter:OA,handleAuthAndSetupUI:RA,isRunningAsPWA:J6,navigateCrossGame:Sf,updateNavbarForLevel:AC,Loader:{createLoader:z8,showLoader:function(e,t){var n=z8(t);return e.appendChild(n),n},hideLoader:function(e){if(e){var t=e;t._shuffleInterval&&clearInterval(t._shuffleInterval),e.setAttribute("aria-hidden","true"),e.remove()}}},HEYGG_COMMON_VERSION:ld,GAME_VERSION:qC};window.HeyGoodGame=nm;var V8,W8={exports:{}},q8,DA=V8?W8.exports:(V8=1,q8=()=>(()=>{var e=[,(o,s,l)=>{l.r(s),l.d(s,{default:()=>f});var c,d=(c=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,function(h={}){var g,w,m=h;function b(){function M(ve){const ge=G;N=E=0,G=new Map,ge.forEach((Te=>{try{Te(ve)}catch(xe){console.error(xe)}})),this.xa(),Q&&Q.Ta()}let E=0,N=0,G=new Map,Q=null,J=null;this.requestAnimationFrame=function(ve){E||(E=requestAnimationFrame(M.bind(this)));const ge=++N;return G.set(ge,ve),ge},this.cancelAnimationFrame=function(ve){G.delete(ve),E&&G.size==0&&(cancelAnimationFrame(E),E=0)},this.Ra=function(ve){J&&(document.body.remove(J),J=null),ve||(J=document.createElement("div"),J.style.backgroundColor="black",J.style.position="fixed",J.style.right=0,J.style.top=0,J.style.color="white",J.style.padding="4px",J.innerHTML="RIVE FPS",ve=function(ge){J.innerHTML="RIVE FPS "+ge.toFixed(1)},document.body.appendChild(J)),Q=new function(){let ge=0,Te=0;this.Ta=function(){var xe=performance.now();Te?(++ge,1e3<(xe-=Te)&&(ve(1e3*ge/xe),ge=Te=0)):(Te=xe,ge=0)}}},this.Oa=function(){J&&(document.body.remove(J),J=null),Q=null},this.xa=function(){}}function _(M){console.assert(!0);const E=new Map;let N=-1/0;this.push=function(G){return G=G+((1<<M)-1)>>M,E.has(G)&&clearTimeout(E.get(G)),E.set(G,setTimeout((function(){E.delete(G),E.length==0?N=-1/0:G==N&&(N=Math.max(...E.keys()),console.assert(N<G))}),1e3)),N=Math.max(G,N),N<<M}}m.ready=new Promise(((M,E)=>{g=M,w=E}));const C=m.onRuntimeInitialized;m.onRuntimeInitialized=function(){C&&C();let M=m.decodeAudio;m.decodeAudio=function(Q,J){J(Q=M(Q))};let E=m.decodeFont;m.decodeFont=function(Q,J){J(Q=E(Q))};const N=m.FileAssetLoader;m.ptrToAsset=Q=>{let J=m.ptrToFileAsset(Q);return J.isImage?m.ptrToImageAsset(Q):J.isFont?m.ptrToFontAsset(Q):J.isAudio?m.ptrToAudioAsset(Q):J},m.CustomFileAssetLoader=N.extend("CustomFileAssetLoader",{__construct:function({loadContents:Q}){this.__parent.__construct.call(this),this.Ha=Q},loadContents:function(Q,J){return Q=m.ptrToAsset(Q),this.Ha(Q,J)}}),m.CDNFileAssetLoader=N.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(Q){let J=m.ptrToAsset(Q);return(Q=J.cdnUuid)!==""&&(ve=J.cdnBaseUrl+"/"+Q,(ge=new XMLHttpRequest).responseType="arraybuffer",ge.onreadystatechange=function(){ge.readyState==4&&ge.status==200&&(Te=>{J.decode(new Uint8Array(Te.response))})(ge)},ge.open("GET",ve,!0),ge.send(null),!0);var ve,ge}}),m.FallbackFileAssetLoader=N.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.wa=[]}
2483,addLoader:function(Q){this.wa.push(Q)},loadContents:function(Q,J){for(let ve of this.wa)if(ve.loadContents(Q,J))return!0;return!1}});let G=m.computeAlignment;m.computeAlignment=function(Q,J,ve,ge,Te=1){return G.call(this,Q,J,ve,ge,Te)}};const R="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),I=new function(){function M(){if(!E){let St=function(dn,st,Sn){if(st=pt.createShader(st),pt.shaderSource(st,Sn),pt.compileShader(st),0<((Sn=pt.getShaderInfoLog(st))||"").length)throw Sn;pt.attachShader(dn,st)};var se=document.createElement("canvas"),We={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let pt;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(pt=se.getContext("webgl",We),N=1,!pt)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(pt=se.getContext("webgl2",We))N=2;else{if(!(pt=se.getContext("webgl",We)))return console.log("No WebGL support. Image mesh will not be drawn."),!1;N=1}if(pt=new Proxy(pt,{get:(dn,st)=>dn.isContextLost()?(Te||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",st),Te=!0),typeof dn[st]=="function"?function(){}:void 0):typeof dn[st]=="function"?function(...Sn){return dn[st].apply(dn,Sn)}:dn[st],set(dn,st,Sn){if(!dn.isContextLost())return dn[st]=Sn,!0;Te||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+st),Te=!0)}}),G=Math.min(pt.getParameter(pt.MAX_RENDERBUFFER_SIZE),pt.getParameter(pt.MAX_TEXTURE_SIZE)),St(se=pt.createProgram(),pt.VERTEX_SHADER,`attribute vec2 vertex; 2484 attribute vec2 uv; 2485 uniform vec4 mat; 2486 uniform vec2 translate; 2487 varying vec2 st; 2488 void main() { 2489 st = uv; 2490 gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1); 2491 }`),St(se,pt.FRAGMENT_SHADER,`precision highp float; 2492 uniform sampler2D image; 2493 varying vec2 st; 2494 void main() { 2495 gl_FragColor = texture2D(image, st); 2496 }`),pt.bindAttribLocation(se,0,"vertex"),pt.bindAttribLocation(se,1,"uv"),pt.linkProgram(se),0<((We=pt.getProgramInfoLog(se))||"").trim().length)throw We;Q=pt.getUniformLocation(se,"mat"),J=pt.getUniformLocation(se,"translate"),pt.useProgram(se),pt.bindBuffer(pt.ARRAY_BUFFER,pt.createBuffer()),pt.enableVertexAttribArray(0),pt.enableVertexAttribArray(1),pt.bindBuffer(pt.ELEMENT_ARRAY_BUFFER,pt.createBuffer()),pt.uniform1i(pt.getUniformLocation(se,"image"),0),pt.pixelStorei(pt.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),E=pt}return!0}let E=null,N=0,G=0,Q=null,J=null,ve=0,ge=0,Te=!1;M(),this.eb=function(){return M(),G},this.Ma=function(se){E.deleteTexture&&E.deleteTexture(se)},this.La=function(se){if(!M())return null;const We=E.createTexture();return We?(E.bindTexture(E.TEXTURE_2D,We),E.texImage2D(E.TEXTURE_2D,0,E.RGBA,E.RGBA,E.UNSIGNED_BYTE,se),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_S,E.CLAMP_TO_EDGE),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_T,E.CLAMP_TO_EDGE),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MAG_FILTER,E.LINEAR),N==2?(E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,E.LINEAR_MIPMAP_LINEAR),E.generateMipmap(E.TEXTURE_2D)):E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,E.LINEAR),We):null};const xe=new _(8),Fe=new _(8),et=new _(10),It=new _(10);this.Qa=function(se,We,St,pt,dn){if(M()){var st=xe.push(se),Sn=Fe.push(We);if(E.canvas){for(var An of(E.canvas.width==st&&E.canvas.height==Sn||(E.canvas.width=st,E.canvas.height=Sn),E.viewport(0,Sn-We,se,We),E.disable(E.SCISSOR_TEST),E.clearColor(0,0,0,0),E.clear(E.COLOR_BUFFER_BIT),E.enable(E.SCISSOR_TEST),St.sort(((tn,Pr)=>Pr.Ba-tn.Ba)),st=et.push(pt),ve!=st&&(E.bufferData(E.ARRAY_BUFFER,8*st,E.DYNAMIC_DRAW),ve=st),st=0,St))E.bufferSubData(E.ARRAY_BUFFER,st,An.ia),st+=4*An.ia.length;for(var Nr of(console.assert(st==4*pt),St))E.bufferSubData(E.ARRAY_BUFFER,st,Nr.Ea),st+=4*Nr.Ea.length;for(var Vr of(console.assert(st==8*pt),st=It.push(dn),ge!=st&&(E.bufferData(E.ELEMENT_ARRAY_BUFFER,2*st,E.DYNAMIC_DRAW),ge=st),An=0,St))E.bufferSubData(E.ELEMENT_ARRAY_BUFFER,An,Vr.indices),An+=2*Vr.indices.length;console.assert(An==2*dn),Vr=0,Nr=!0,st=An=0;for(const tn of St){tn.image.da!=Vr&&(E.bindTexture(E.TEXTURE_2D,tn.image.ca||null),Vr=tn.image.da),tn.hb?(E.scissor(tn.na,Sn-tn.oa-tn.va,tn.sb,tn.va),Nr=!0):Nr&&(E.scissor(0,Sn-We,se,We),Nr=!1),St=2/se;const Pr=-2/We;E.uniform4f(Q,tn.N[0]*St*tn.X,tn.N[1]*Pr*tn.Y,tn.N[2]*St*tn.X,tn.N[3]*Pr*tn.Y),E.uniform2f(J,tn.N[4]*St*tn.X+St*(tn.na-tn.fb*tn.X)-1,tn.N[5]*Pr*tn.Y+Pr*(tn.oa-tn.gb*tn.Y)+1),E.vertexAttribPointer(0,2,E.FLOAT,!1,0,st),E.vertexAttribPointer(1,2,E.FLOAT,!1,0,st+4*pt),E.drawElements(E.TRIANGLES,tn.indices.length,E.UNSIGNED_SHORT,An),st+=4*tn.ia.length,An+=2*tn.indices.length}console.assert(st==4*pt),console.assert(An==2*dn)}}},this.canvas=function(){return M()&&E.canvas}},k=m.onRuntimeInitialized;m.onRuntimeInitialized=function(){function M(Ne){switch(Ne){case xe.srcOver:return"source-over";case xe.screen:return"screen";case xe.overlay:return"overlay";case xe.darken:return"darken";case xe.lighten:return"lighten";case xe.colorDodge:return"color-dodge";case xe.colorBurn:return"color-burn";case xe.hardLight:return"hard-light";case xe.softLight:return"soft-light";case xe.difference:return"difference";case xe.exclusion:return"exclusion";case xe.multiply:return"multiply";case xe.hue:return"hue";case xe.saturation:return"saturation";case xe.color:return"color";case xe.luminosity:return"luminosity"}}function E(Ne){return"rgba("+((16711680&Ne)>>>16)+","+((65280&Ne)>>>8)+","+((255&Ne)>>>0)+","+((4278190080&Ne)>>>24)/255+")"}function N(){0<Sn.length&&(I.Qa(st.drawWidth(),st.drawHeight(),Sn,An,Nr),Sn=[],Nr=An=0,st.reset(512,512));for(const Ne of dn){for(const at of Ne.u)at();Ne.u=[]}dn.clear()}k&&k();var G=m.RenderPaintStyle;const Q=m.RenderPath,J=m.RenderPaint,ve=m.Renderer,ge=m.StrokeCap,Te=m.StrokeJoin,xe=m.BlendM
2496ode,Fe=G.fill,et=G.stroke,It=m.FillRule.evenOdd;let se=1;var We=m.RenderImage.extend("CanvasRenderImage",{__construct:function({R:Ne,W:at}={}){this.__parent.__construct.call(this),this.da=se,se=se+1&2147483647||1,this.R=Ne,this.W=at},__destruct:function(){this.ca&&(I.Ma(this.ca),URL.revokeObjectURL(this.la)),this.__parent.__destruct.call(this)},decode:function(Ne){var at=this;at.W&&at.W(at);var an=new Image;at.la=URL.createObjectURL(new Blob([Ne],{type:"image/png"})),an.onload=function(){at.Ga=an,at.ca=I.La(an),at.size(an.width,an.height),at.R&&at.R(at)},an.src=at.la}}),St=Q.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.F=new Path2D},rewind:function(){this.F=new Path2D},addPath:function(Ne,at,an,bn,Xt,pn,mn){var _n=this.F,Kr=_n.addPath;Ne=Ne.F;const gr=new DOMMatrix;gr.a=at,gr.b=an,gr.c=bn,gr.d=Xt,gr.e=pn,gr.f=mn,Kr.call(_n,Ne,gr)},fillRule:function(Ne){this.ka=Ne},moveTo:function(Ne,at){this.F.moveTo(Ne,at)},lineTo:function(Ne,at){this.F.lineTo(Ne,at)},cubicTo:function(Ne,at,an,bn,Xt,pn){this.F.bezierCurveTo(Ne,at,an,bn,Xt,pn)},close:function(){this.F.closePath()}}),pt=J.extend("CanvasRenderPaint",{color:function(Ne){this.ma=E(Ne)},thickness:function(Ne){this.Ja=Ne},join:function(Ne){switch(Ne){case Te.miter:this.ba="miter";break;case Te.round:this.ba="round";break;case Te.bevel:this.ba="bevel"}},cap:function(Ne){switch(Ne){case ge.butt:this.aa="butt";break;case ge.round:this.aa="round";break;case ge.square:this.aa="square"}},style:function(Ne){this.Ia=Ne},blendMode:function(Ne){this.Fa=M(Ne)},clearGradient:function(){this.P=null},linearGradient:function(Ne,at,an,bn){this.P={Ca:Ne,Da:at,qa:an,ra:bn,ga:[]}},radialGradient:function(Ne,at,an,bn){this.P={Ca:Ne,Da:at,qa:an,ra:bn,ga:[],bb:!0}},addStop:function(Ne,at){this.P.ga.push({color:Ne,stop:at})},completeGradient:function(){},draw:function(Ne,at,an){let bn=this.Ia;var Xt=this.ma,pn=this.P;if(Ne.globalCompositeOperation=this.Fa,pn!=null){Xt=pn.Ca;var mn=pn.Da;const Kr=pn.qa;var _n=pn.ra;const gr=pn.ga;pn.bb?(pn=Kr-Xt,_n-=mn,Xt=Ne.createRadialGradient(Xt,mn,0,Xt,mn,Math.sqrt(pn*pn+_n*_n))):Xt=Ne.createLinearGradient(Xt,mn,Kr,_n);for(let Jr=0,yr=gr.length;Jr<yr;Jr++)mn=gr[Jr],Xt.addColorStop(mn.stop,E(mn.color));this.ma=Xt,this.P=null}switch(bn){case et:Ne.strokeStyle=Xt,Ne.lineWidth=this.Ja,Ne.lineCap=this.aa,Ne.lineJoin=this.ba,Ne.stroke(at);break;case Fe:Ne.fillStyle=Xt,Ne.fill(at,an)}}});const dn=new Set;let st=null,Sn=[],An=0,Nr=0;var Vr=m.CanvasRenderer=ve.extend("Renderer",{__construct:function(Ne){this.__parent.__construct.call(this),this.D=[1,0,0,1,0,0],this.o=Ne.getContext("2d"),this.ja=Ne,this.u=[]},save:function(){this.D.push(...this.D.slice(this.D.length-6)),this.u.push(this.o.save.bind(this.o))},restore:function(){const Ne=this.D.length-6;if(6>Ne)throw"restore() called without matching save().";this.D.splice(Ne),this.u.push(this.o.restore.bind(this.o))},transform:function(Ne,at,an,bn,Xt,pn){const mn=this.D,_n=mn.length-6;mn.splice(_n,6,mn[_n]*Ne+mn[_n+2]*at,mn[_n+1]*Ne+mn[_n+3]*at,mn[_n]*an+mn[_n+2]*bn,mn[_n+1]*an+mn[_n+3]*bn,mn[_n]*Xt+mn[_n+2]*pn+mn[_n+4],mn[_n+1]*Xt+mn[_n+3]*pn+mn[_n+5]),this.u.push(this.o.transform.bind(this.o,Ne,at,an,bn,Xt,pn))},rotate:function(Ne){const at=Math.sin(Ne);Ne=Math.cos(Ne),this.transform(Ne,at,-at,Ne,0,0)},_drawPath:function(Ne,at){this.u.push(at.draw.bind(at,this.o,Ne.F,Ne.ka===It?"evenodd":"nonzero"))},_drawRiveImage:function(Ne,at,an,bn){var Xt=Ne.Ga;if(Xt){var pn=this.o,mn=M(an);this.u.push((function(){pn.globalCompositeOperation=mn,pn.globalAlpha=bn,pn.drawImage(Xt,0,0),pn.globalAlpha=1}))}},_getMatrix:function(Ne){const at=this.D,an=at.length-6;for(let bn=0;6>bn;++bn)Ne[bn]=at[an+bn]},_drawImageMesh:function(Ne,at,an,bn,Xt,pn,mn,_n,Kr,gr,Jr){at=this.o.canvas.width;var yr=this.o.canvas.height;const hs=gr-_n,Hu=Jr-Kr;_n=Math.max(_n,0),Kr=Math.max(Kr,0),gr=Math.min(gr,at),Jr=Math.min(Jr,yr);const Lo=gr-_n,Mo=Jr-Kr;if(console.assert(Lo<=Math.min(hs,at)),console.assert(Mo<=Math.min(Hu,yr)),!(0>=Lo||0>=Mo)){gr=Lo<hs||Mo<Hu,at=Jr=1;var ha=Math.ceil(Lo*Jr),ma=Math.ceil(Mo*at);yr=I.eb(),ha>yr&&(Jr*=yr/ha,ha=yr),ma>yr&&(at*=yr/ma,ma=yr),st||(st=new m.DynamicRectanizer(yr),st.reset(512,512)),0>(yr=st.addRect(ha,ma))&&(N(),dn.add(this),yr=st.addRect(ha,ma),console.assert(0<=yr));var vl=65535&yr,Bu=yr>>16;Sn.push({N:this.D.slice(this.D.length-6),image:Ne,na:vl,oa:Bu,fb:_n,gb:Kr,sb:ha,va:ma,X:Jr,Y:at,ia:new Float32Array(Xt),Ea:new Float32Array(pn),indices:new Uint16Array(mn),hb:gr,Ba:Ne.da<<1|(gr?1:0)}),An+=Xt.length,Nr+=mn.length;var Ba=this.o,Rf=M(an);this.u.push((function(){Ba.save(),Ba.resetTransform(),Ba.globalCompositeOperation=Rf,Ba.globalAlpha=bn;const Gu=I.canvas();
2496Gu&&Ba.drawImage(Gu,vl,Bu,ha,ma,_n,Kr,Lo,Mo),Ba.restore()}))}},_clipPath:function(Ne){this.u.push(this.o.clip.bind(this.o,Ne.F,Ne.ka===It?"evenodd":"nonzero"))},clear:function(){dn.add(this),this.u.push(this.o.clearRect.bind(this.o,0,0,this.ja.width,this.ja.height))},flush:function(){},translate:function(Ne,at){this.transform(1,0,0,1,Ne,at)}});m.makeRenderer=function(Ne){const at=new Vr(Ne),an=at.o;return new Proxy(at,{get(bn,Xt){if(typeof bn[Xt]=="function")return function(...pn){return bn[Xt].apply(bn,pn)};if(typeof an[Xt]=="function"){if(-1<R.indexOf(Xt))throw Error("RiveException: Method call to '"+Xt+"()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");return function(...pn){at.u.push(an[Xt].bind(an,...pn))}}return bn[Xt]},set(bn,Xt,pn){if(Xt in an)return at.u.push((()=>{an[Xt]=pn})),!0}})},m.decodeImage=function(Ne,at){new We({R:at}).decode(Ne)},m.renderFactory={makeRenderPaint:function(){return new pt},makeRenderPath:function(){return new St},makeRenderImage:function(){let Ne=Pr;return new We({W:()=>{Ne.total++},R:()=>{if(Ne.loaded++,Ne.loaded===Ne.total){const at=Ne.ready;at&&(at(),Ne.ready=null)}}})}};let tn=m.load,Pr=null;m.load=function(Ne,at,an=!0){const bn=new m.FallbackFileAssetLoader;return at!==void 0&&bn.addLoader(at),an&&(at=new m.CDNFileAssetLoader,bn.addLoader(at)),new Promise((function(Xt){let pn=null;Pr={total:0,loaded:0,ready:function(){Xt(pn)}},pn=tn(Ne,bn),Pr.total==0&&Xt(pn)}))};let sr=m.RendererWrapper.prototype.align;m.RendererWrapper.prototype.align=function(Ne,at,an,bn,Xt=1){sr.call(this,Ne,at,an,bn,Xt)},G=new b,m.requestAnimationFrame=G.requestAnimationFrame.bind(G),m.cancelAnimationFrame=G.cancelAnimationFrame.bind(G),m.enableFPSCounter=G.Ra.bind(G),m.disableFPSCounter=G.Oa,G.xa=N,m.resolveAnimationFrame=N,m.cleanup=function(){st&&st.delete()}};var A,L,j=Object.assign({},m),D="./this.program",V=typeof window=="object",q=typeof importScripts=="function",$="";(V||q)&&(q?$=self.location.href:typeof document<"u"&&document.currentScript&&($=document.currentScript.src),c&&($=c),$=$.indexOf("blob:")!==0?$.substr(0,$.replace(/[?#].*/,"").lastIndexOf("/")+1):"",q&&(L=M=>{var E=new XMLHttpRequest;return E.open("GET",M,!1),E.responseType="arraybuffer",E.send(null),new Uint8Array(E.response)}),A=(M,E,N)=>{var G=new XMLHttpRequest;G.open("GET",M,!0),G.responseType="arraybuffer",G.onload=()=>{G.status==200||G.status==0&&G.response?E(G.response):N()},G.onerror=N,G.send(null)});var W,ae=m.print||console.log.bind(console),te=m.printErr||console.error.bind(console);Object.assign(m,j),j=null,m.thisProgram&&(D=m.thisProgram),m.wasmBinary&&(W=m.wasmBinary),m.noExitRuntime,typeof WebAssembly!="object"&&yn("no native wasm support detected");var ce,pe,me,ne,X,re,H,K,he,Ce,ke=!1;function be(){var M=ce.buffer;m.HEAP8=me=new Int8Array(M),m.HEAP16=X=new Int16Array(M),m.HEAP32=H=new Int32Array(M),m.HEAPU8=ne=new Uint8Array(M),m.HEAPU16=re=new Uint16Array(M),m.HEAPU32=K=new Uint32Array(M),m.HEAPF32=he=new Float32Array(M),m.HEAPF64=Ce=new Float64Array(M)}var Re,Ve=[],ht=[],dt=[];function ut(){var M=m.preRun.shift();Ve.unshift(M)}var $t,bt=0,vn=null;function yn(M){throw m.onAbort&&m.onAbort(M),te(M="Aborted("+M+")"),ke=!0,M=new WebAssembly.RuntimeError(M+". Build with -sASSERTIONS for more info."),w(M),M}function Wn(M){return M.startsWith("data:application/octet-stream;base64,")}if(!Wn($t="canvas_advanced.wasm")){var ot=$t;$t=m.locateFile?m.locateFile(ot,$):$+ot}function sn(M){if(M==$t&&W)return new Uint8Array(W);if(L)return L(M);throw"both async and sync fetching of the wasm failed"}function qt(M,E,N){return(function(G){if(!W&&(V||q)){if(typeof fetch=="function"&&!G.startsWith("file://"))return fetch(G,{credentials:"same-origin"}).then((Q=>{if(!Q.ok)throw"failed to load wasm binary file at '"+G+"'";return Q.arrayBuffer()})).catch((()=>sn(G)));if(A)return new Promise(((Q,J)=>{A(G,(ve=>Q(new Uint8Array(ve))),J)}))}return Promise.resolve().then((()=>sn(G)))})(M).then((G=>WebAssembly.instantiate(G,E))).then((G=>G)).then(N,(G=>{te("failed to asynchronously prepare wasm: "+G),yn(G)}))}var en=M=>{for(;0<M.length;)M.shift()(m)};function Pn(M){if(M===void 0)return"_unknown";
2496var E=(M=M.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=E&&57>=E?`_${M}`:M}function O(M,E){return M=Pn(M),{[M]:function(){return E.apply(this,arguments)}}[M]}function v(){this.G=[void 0],this.ta=[]}var P=new v,U=void 0;function Y(M){throw new U(M)}var Ee=M=>(M||Y("Cannot use deleted val. handle = "+M),P.get(M).value),B=M=>{switch(M){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return P.Za({Aa:1,value:M})}};function ee(M){var E=Error,N=O(M,(function(G){this.name=M,this.message=G,(G=Error(G).stack)!==void 0&&(this.stack=this.toString()+` 2497`+G.replace(/^Error(:[^\n]*)?\n/,""))}));return N.prototype=Object.create(E.prototype),N.prototype.constructor=N,N.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},N}var fe=void 0,oe=void 0;function de(M){for(var E="";ne[M];)E+=oe[ne[M++]];return E}var Pe=[];function Ue(){for(;Pe.length;){var M=Pe.pop();M.g.M=!1,M.delete()}}var Le=void 0,Me={};function _e(M,E){for(E===void 0&&Y("ptr should not be undefined");M.l;)E=M.S(E),M=M.l;return E}var Ae={};function $e(M){var E=de(M=rt(M));return De(M),E}function tt(M,E){var N=Ae[M];return N===void 0&&Y(E+" has unknown type "+$e(M)),N}function ct(){}var Ft=!1;function Qt(M){--M.count.value,M.count.value===0&&(M.s?M.A.H(M.s):M.j.h.H(M.i))}function ln(M,E,N){return E===N?M:N.l===void 0||(M=ln(M,E,N.l))===null?null:N.Pa(M)}var Yt={},Hn=void 0;function Nn(M){throw new Hn(M)}function Ni(M,E){return E.j&&E.i||Nn("makeClassHandle requires ptr and ptrType"),!!E.A!=!!E.s&&Nn("Both smartPtrType and smartPtr must be specified"),E.count={value:1},Yr(Object.create(M,{g:{value:E}}))}function Yr(M){return typeof FinalizationRegistry>"u"?(Yr=E=>E,M):(Ft=new FinalizationRegistry((E=>{Qt(E.g)})),ct=E=>{Ft.unregister(E)},(Yr=E=>{var N=E.g;return N.s&&Ft.register(E,{g:N},E),E})(M))}var fa={};function si(M){for(;M.length;){var E=M.pop();M.pop()(E)}}function xr(M){return this.fromWireType(H[M>>2])}var Zr={},pa={};function ir(M,E,N){function G(ge){(ge=N(ge)).length!==M.length&&Nn("Mismatched type converter count");for(var Te=0;Te<M.length;++Te)le(M[Te],ge[Te])}M.forEach((function(ge){pa[ge]=E}));var Q=Array(E.length),J=[],ve=0;E.forEach(((ge,Te)=>{Ae.hasOwnProperty(ge)?Q[Te]=Ae[ge]:(J.push(ge),Zr.hasOwnProperty(ge)||(Zr[ge]=[]),Zr[ge].push((()=>{Q[Te]=Ae[ge],++ve===J.length&&G(Q)})))})),J.length===0&&G(Q)}function Fi(M){switch(M){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${M}`)}}function le(M,E,N={}){if(!("argPackAdvance"in E))throw new TypeError("registerType registeredInstance requires argPackAdvance");(function(G,Q,J={}){var ve=Q.name;if(G||Y(`type "${ve}" must have a positive integer typeid pointer`),Ae.hasOwnProperty(G)){if(J.ab)return;Y(`Cannot register type '${ve}' twice`)}Ae[G]=Q,delete pa[G],Zr.hasOwnProperty(G)&&(Q=Zr[G],delete Zr[G],Q.forEach((ge=>ge())))})(M,E,N)}function Ie(M){Y(M.g.j.h.name+" instance already deleted")}function je(){}function Qe(M,E,N){if(M[E].m===void 0){var G=M[E];M[E]=function(){return M[E].m.hasOwnProperty(arguments.length)||Y(`Function '${N}' called with an invalid number of arguments (${arguments.length}) - expects one of (${M[E].m})!`),M[E].m[arguments.length].apply(this,arguments)},M[E].m=[],M[E].m[G.L]=G}}function Be(M,E,N){m.hasOwnProperty(M)?((N===void 0||m[M].m!==void 0&&m[M].m[N]!==void 0)&&Y(`Cannot register public name '${M}' twice`),Qe(m,M,M),m.hasOwnProperty(N)&&Y(`Cannot register multiple overloads of a function with the same number of arguments (${N})!`),m[M].m[N]=E):(m[M]=E,N!==void 0&&(m[M].tb=N))}function vt(M,E,N,G,Q,J,ve,ge){this.name=M,this.constructor=E,this.B=N,this.H=G,this.l=Q,this.Ua=J,this.S=ve,this.Pa=ge,this.ya=[]}function Ct(M,E,N){for(;E!==N;)E.S||Y(`Expected null or instance of ${N.name}, got an instance of ${E.name}`),M=E.S(M),E=E.l;return M}function rn(M,E){return E===null?(this.ea&&Y(`null is not a valid ${this.name}`),0):(E.g||Y(`Cannot pass "${er(E)}" as a ${this.name}`),E.g.i||Y(`Cannot pass deleted object as a pointer of type ${this.name}`),Ct(E.g.i,E.g.j.h,this.h))}function Tt(M,E){if(E===null){if(this.ea&&Y(`null is not a valid ${this.name}`),this.V){var N=this.fa();return M!==null&&M.push(this.H,N),N}return 0}if(E.g||Y(`Cannot pass "${er(E)}" as a ${this.name}`),E.g.i||Y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.U&&E.g.j.U&&Y(`Cannot convert argument of type ${E.g.A?E.g.A.name:E.g.j.name} to parameter type ${this.name}`),N=Ct(E.g.i,E.g.j.h,this.h),this.V)switch(E.g.s===void 0&&Y("Passing raw pointer to smart pointer is illegal"),this.nb){case 0:E.g.A===this?N=E.g.s:Y(`Cannot convert argument of type ${E.g.A?E.g.A.name:E.g.j.name} to parameter type ${this.name}`);break;case 1:N=E.g.s;break;case 2:if(E.g.A===this)N=E.g.s;else{var G=E.clone();N=this.jb(N,B((function(){G.delete()}))),M!==null&&M.push(this.H,N)}break;default:Y("Unsupporting sharing policy")}return N}function Ot(M,E){return E===null?(this.ea&&Y(`null is not a valid ${this.name}`),0):(E.g||Y(`Cannot pass "${er(E)}" as a ${this.name}`),E.g.i||Y(`Cannot pass deleted object as a pointer of type ${this.name}`),E.g.j.U&&Y(`Cannot convert argument of type ${E.g.j.name} to parameter type ${this.name}`),Ct(E.g.i,E.g.j.h,this.h))}function it(M,E,N,G){this.name=M,this.h=E,this.ea=N,this.U=G,this.V=!1,this.H=this.jb=this.fa=this.za=this.nb=this.ib=void 0,E.l!==void 0?this.toWireType=Tt
2497:(this.toWireType=G?rn:Ot,this.v=null)}function Oe(M,E,N){m.hasOwnProperty(M)||Nn("Replacing nonexistant public symbol"),m[M].m!==void 0&&N!==void 0?m[M].m[N]=E:(m[M]=E,m[M].L=N)}var nt=[],Ht=M=>{var E=nt[M];return E||(M>=nt.length&&(nt.length=M+1),nt[M]=E=Re.get(M)),E};function yt(M,E){var N=(M=de(M)).includes("j")?((G,Q)=>{var J=[];return function(){if(J.length=0,Object.assign(J,arguments),G.includes("j")){var ve=m["dynCall_"+G];ve=J&&J.length?ve.apply(null,[Q].concat(J)):ve.call(null,Q)}else ve=Ht(Q).apply(null,J);return ve}})(M,E):Ht(E);return typeof N!="function"&&Y(`unknown function pointer with signature ${M}: ${E}`),N}var wt=void 0;function Dt(M,E){var N=[],G={};throw E.forEach((function Q(J){G[J]||Ae[J]||(pa[J]?pa[J].forEach(Q):(N.push(J),G[J]=!0))})),new wt(`${M}: `+N.map($e).join([", "]))}function Ut(M,E,N,G,Q){var J=E.length;2>J&&Y("argTypes array size mismatch! Must at least get return value and 'this' types!");var ve=E[1]!==null&&N!==null,ge=!1;for(N=1;N<E.length;++N)if(E[N]!==null&&E[N].v===void 0){ge=!0;break}var Te=E[0].name!=="void",xe=J-2,Fe=Array(xe),et=[],It=[];return function(){if(arguments.length!==xe&&Y(`function ${M} called with ${arguments.length} arguments, expected ${xe} args!`),It.length=0,et.length=ve?2:1,et[0]=Q,ve){var se=E[1].toWireType(It,this);et[1]=se}for(var We=0;We<xe;++We)Fe[We]=E[We+2].toWireType(It,arguments[We]),et.push(Fe[We]);if(We=G.apply(null,et),ge)si(It);else for(var St=ve?1:2;St<E.length;St++){var pt=St===1?se:Fe[St-2];E[St].v!==null&&E[St].v(pt)}return se=Te?E[0].fromWireType(We):void 0}}function un(M,E){for(var N=[],G=0;G<M;G++)N.push(K[E+4*G>>2]);return N}function hn(M,E,N){return M instanceof Object||Y(`${N} with invalid "this": ${M}`),M instanceof E.h.constructor||Y(`${N} incompatible with "this" of type ${M.constructor.name}`),M.g.i||Y(`cannot call emscripten binding method ${N} on deleted object`),Ct(M.g.i,M.g.j.h,E.h)}function Mn(M){M>=P.ua&&--P.get(M).Aa==0&&P.$a(M)}function Fn(M,E,N){switch(E){case 0:return function(G){return this.fromWireType((N?me:ne)[G])};case 1:return function(G){return this.fromWireType((N?X:re)[G>>1])};case 2:return function(G){return this.fromWireType((N?H:K)[G>>2])};default:throw new TypeError("Unknown integer type: "+M)}}function er(M){if(M===null)return"null";var E=typeof M;return E==="object"||E==="array"||E==="function"?M.toString():""+M}function Kn(M,E){switch(E){case 2:return function(N){return this.fromWireType(he[N>>2])};case 3:return function(N){return this.fromWireType(Ce[N>>3])};default:throw new TypeError("Unknown float type: "+M)}}function ar(M,E,N){switch(E){case 0:return N?function(G){return me[G]}:function(G){return ne[G]};case 1:return N?function(G){return X[G>>1]}:function(G){return re[G>>1]};case 2:return N?function(G){return H[G>>2]}:function(G){return K[G>>2]};default:throw new TypeError("Unknown integer type: "+M)}}var cn=(M,E,N,G)=>{if(0<G){G=N+G-1;for(var Q=0;Q<M.length;++Q){var J=M.charCodeAt(Q);if(55296<=J&&57343>=J&&(J=65536+((1023&J)<<10)|1023&M.charCodeAt(++Q)),127>=J){if(N>=G)break;E[N++]=J}else{if(2047>=J){if(N+1>=G)break;E[N++]=192|J>>6}else{if(65535>=J){if(N+2>=G)break;E[N++]=224|J>>12}else{if(N+3>=G)break;E[N++]=240|J>>18,E[N++]=128|J>>12&63}E[N++]=128|J>>6&63}E[N++]=128|63&J}}E[N]=0}},mr=M=>{for(var E=0,N=0;N<M.length;++N){var G=M.charCodeAt(N);127>=G?E++:2047>=G?E+=2:55296<=G&&57343>=G?(E+=4,++N):E+=3}return E},or=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,zr=(M,E,N)=>{var G=E+N;for(N=E;M[N]&&!(N>=G);)++N;if(16<N-E&&M.buffer&&or)return or.decode(M.subarray(E,N));for(G="";E<N;){var Q=M[E++];if(128&Q){var J=63&M[E++];if((224&Q)==192)G+=String.fromCharCode((31&Q)<<6|J);else{var ve=63&M[E++];65536>(Q=(240&Q)==224?(15&Q)<<12|J<<6|ve:(7&Q)<<18|J<<12|ve<<6|63&M[E++])?G+=String.fromCharCode(Q):(Q-=65536,G+=String.fromCharCode(55296|Q>>10,56320|1023&Q))}}else G+=String.fromCharCode(Q)}return G},Tr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Bt=(M,E)=>{for(var N=M>>1,G=N+E/2;!(N>=G)&&re[N];)++N;if(32<(N<<=1)-M&&Tr)return Tr.decode(ne.subarray(M,N));for(N="",G=0;!(G>=E/2);++G){var Q=X[M+2*G>>1];if(Q==0)break;N+=String.fromCharCode(Q)}return N},wn=(M,E,N)=>{if(N===void 0&&(N=2147483647),2>N)return 0;var G=E;N=(N-=2)<2*M.length?N/2:M.length;for(var Q=0;Q<N;++Q)X[E>>
24971]=M.charCodeAt(Q),E+=2;return X[E>>1]=0,E-G},Cn=M=>2*M.length,tr=(M,E)=>{for(var N=0,G="";!(N>=E/4);){var Q=H[M+4*N>>2];if(Q==0)break;++N,65536<=Q?(Q-=65536,G+=String.fromCharCode(55296|Q>>10,56320|1023&Q)):G+=String.fromCharCode(Q)}return G},qn=(M,E,N)=>{if(N===void 0&&(N=2147483647),4>N)return 0;var G=E;N=G+N-4;for(var Q=0;Q<M.length;++Q){var J=M.charCodeAt(Q);if(55296<=J&&57343>=J&&(J=65536+((1023&J)<<10)|1023&M.charCodeAt(++Q)),H[E>>2]=J,(E+=4)+4>N)break}return H[E>>2]=0,E-G},cr=M=>{for(var E=0,N=0;N<M.length;++N){var G=M.charCodeAt(N);55296<=G&&57343>=G&&++N,E+=4}return E},Rn={};function nn(M){var E=Rn[M];return E===void 0?de(M):E}var fn,xn=[],Bn=[],jt={},Je=()=>{if(!fn){var M,E={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:D||"./this.program"};for(M in jt)jt[M]===void 0?delete E[M]:E[M]=jt[M];var N=[];for(M in E)N.push(`${M}=${E[M]}`);fn=N}return fn},Gt=[null,[],[]],gt=M=>M%4==0&&(M%100!=0||M%400==0),ft=[31,29,31,30,31,30,31,31,30,31,30,31],xt=[31,28,31,30,31,30,31,31,30,31,30,31],Jt=(M,E,N,G)=>{function Q(se,We,St){for(se=typeof se=="number"?se.toString():se||"";se.length<We;)se=St[0]+se;return se}function J(se,We){return Q(se,We,"0")}function ve(se,We){function St(dn){return 0>dn?-1:0<dn?1:0}var pt;return(pt=St(se.getFullYear()-We.getFullYear()))===0&&(pt=St(se.getMonth()-We.getMonth()))===0&&(pt=St(se.getDate()-We.getDate())),pt}function ge(se){switch(se.getDay()){case 0:return new Date(se.getFullYear()-1,11,29);case 1:return se;case 2:return new Date(se.getFullYear(),0,3);case 3:return new Date(se.getFullYear(),0,2);case 4:return new Date(se.getFullYear(),0,1);case 5:return new Date(se.getFullYear()-1,11,31);case 6:return new Date(se.getFullYear()-1,11,30)}}function Te(se){var We=se.J;for(se=new Date(new Date(se.K+1900,0,1).getTime());0<We;){var St=se.getMonth(),pt=(gt(se.getFullYear())?ft:xt)[St];if(!(We>pt-se.getDate())){se.setDate(se.getDate()+We);break}We-=pt-se.getDate()+1,se.setDate(1),11>St?se.setMonth(St+1):(se.setMonth(0),se.setFullYear(se.getFullYear()+1))}return St=new Date(se.getFullYear()+1,0,4),We=ge(new Date(se.getFullYear(),0,4)),St=ge(St),0>=ve(We,se)?0>=ve(St,se)?se.getFullYear()+1:se.getFullYear():se.getFullYear()-1}var xe=H[G+40>>2];for(var Fe in G={qb:H[G>>2],pb:H[G+4>>2],Z:H[G+8>>2],ha:H[G+12>>2],$:H[G+16>>2],K:H[G+20>>2],C:H[G+24>>2],J:H[G+28>>2],ub:H[G+32>>2],ob:H[G+36>>2],rb:xe&&xe?zr(ne,xe):""},N=N?zr(ne,N):"",xe={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})N=N.replace(new RegExp(Fe,"g"),xe[Fe]);var et="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),It="January February March April May June July August September October November December".split(" ");for(Fe in xe={"%a":se=>et[se.C].substring(0,3),"%A":se=>et[se.C],"%b":se=>It[se.$].substring(0,3),"%B":se=>It[se.$],"%C":se=>J((se.K+1900)/100|0,2),"%d":se=>J(se.ha,2),"%e":se=>Q(se.ha,2," "),"%g":se=>Te(se).toString().substring(2),"%G":se=>Te(se),"%H":se=>J(se.Z,2),"%I":se=>((se=se.Z)==0?se=12:12<se&&(se-=12),J(se,2)),"%j":se=>{for(var We=0,St=0;St<=se.$-1;We+=(gt(se.K+1900)?ft:xt)[St++]);return J(se.ha+We,3)},"%m":se=>J(se.$+1,2),"%M":se=>J(se.pb,2),"%n":()=>` 2498`,"%p":se=>0<=se.Z&&12>se.Z?"AM":"PM","%S":se=>J(se.qb,2),"%t":()=>" ","%u":se=>se.C||7,"%U":se=>J(Math.floor((se.J+7-se.C)/7),2),"%V":se=>{var We=Math.floor((se.J+7-(se.C+6)%7)/7);if(2>=(se.C+371-se.J-2)%7&&We++,We)We==53&&((St=(se.C+371-se.J)%7)==4||St==3&>(se.K)||(We=1));else{We=52;var St=(se.C+7-se.J-1)%7;(St==4||St==5&>(se.K%400-1))&&We++}return J(We,2)},"%w":se=>se.C,"%W":se=>J(Math.floor((se.J+7-(se.C+6)%7)/7),2),"%y":se=>(se.K+1900).toString().substring(2),"%Y":se=>se.K+1900,"%z":se=>{var We=0<=(se=se.ob);return se=Math.abs(se)/60,(We?"+":"-")+("0000"+(se/60*100+se%60)).slice(-4)},"%Z":se=>se.rb,"%%":()=>"%"},N=N.replace(/%%/g,"\0\0"),xe)N.includes(Fe)&&(N=N.replace(new RegExp(Fe,"g"),xe[Fe](G)));return Fe=(function(se){var We=Array(mr(se)+1);return cn(se,We,0,We.length),We})(N=N.replace(/\0\0/g,"%")),Fe.length>E?0:(me.set(Fe,M),Fe.length-1)};Object.assign(v.prototype,{get(M){return this.G[M]},has(M){return this.G[M]!==void 0},Za(M){var E=this.ta.pop()||this.G.length;return this.G[E]=M,E},$a(M){this.G[M]=void 0,this.ta.push(M)}}
2498),U=m.BindingError=class extends Error{constructor(M){super(M),this.name="BindingError"}},P.G.push({value:void 0},{value:null},{value:!0},{value:!1}),P.ua=P.G.length,m.count_emval_handles=function(){for(var M=0,E=P.ua;E<P.G.length;++E)P.G[E]!==void 0&&++M;return M},fe=m.PureVirtualError=ee("PureVirtualError");for(var Pt=Array(256),Ke=0;256>Ke;++Ke)Pt[Ke]=String.fromCharCode(Ke);oe=Pt,m.getInheritedInstanceCount=function(){return Object.keys(Me).length},m.getLiveInheritedInstances=function(){var M,E=[];for(M in Me)Me.hasOwnProperty(M)&&E.push(Me[M]);return E},m.flushPendingDeletes=Ue,m.setDelayFunction=function(M){Le=M,Pe.length&&Le&&Le(Ue)},Hn=m.InternalError=class extends Error{constructor(M){super(M),this.name="InternalError"}},je.prototype.isAliasOf=function(M){if(!(this instanceof je&&M instanceof je))return!1;var E=this.g.j.h,N=this.g.i,G=M.g.j.h;for(M=M.g.i;E.l;)N=E.S(N),E=E.l;for(;G.l;)M=G.S(M),G=G.l;return E===G&&N===M},je.prototype.clone=function(){if(this.g.i||Ie(this),this.g.O)return this.g.count.value+=1,this;var M=Yr,E=Object,N=E.create,G=Object.getPrototypeOf(this),Q=this.g;return(M=M(N.call(E,G,{g:{value:{count:Q.count,M:Q.M,O:Q.O,i:Q.i,j:Q.j,s:Q.s,A:Q.A}}}))).g.count.value+=1,M.g.M=!1,M},je.prototype.delete=function(){this.g.i||Ie(this),this.g.M&&!this.g.O&&Y("Object already scheduled for deletion"),ct(this),Qt(this.g),this.g.O||(this.g.s=void 0,this.g.i=void 0)},je.prototype.isDeleted=function(){return!this.g.i},je.prototype.deleteLater=function(){return this.g.i||Ie(this),this.g.M&&!this.g.O&&Y("Object already scheduled for deletion"),Pe.push(this),Pe.length===1&&Le&&Le(Ue),this.g.M=!0,this},it.prototype.Va=function(M){return this.za&&(M=this.za(M)),M},it.prototype.pa=function(M){this.H&&this.H(M)},it.prototype.argPackAdvance=8,it.prototype.readValueFromPointer=xr,it.prototype.deleteObject=function(M){M!==null&&M.delete()},it.prototype.fromWireType=function(M){function E(){return this.V?Ni(this.h.B,{j:this.ib,i:N,A:this,s:M}):Ni(this.h.B,{j:this,i:M})}var N=this.Va(M);if(!N)return this.pa(M),null;var G=(function(J,ve){return ve=_e(J,ve),Me[ve]})(this.h,N);if(G!==void 0)return G.g.count.value===0?(G.g.i=N,G.g.s=M,G.clone()):(G=G.clone(),this.pa(M),G);if(G=this.h.Ua(N),!(G=Yt[G]))return E.call(this);G=this.U?G.Ka:G.pointerType;var Q=ln(N,this.h,G.h);return Q===null?E.call(this):this.V?Ni(G.h.B,{j:G,i:Q,A:this,s:M}):Ni(G.h.B,{j:G,i:Q})},wt=m.UnboundTypeError=ee("UnboundTypeError");var ze={_embind_create_inheriting_constructor:function(M,E,N){M=de(M),E=tt(E,"wrapper"),N=Ee(N);var G=[].slice,Q=E.h,J=Q.B,ve=Q.l.B,ge=Q.l.constructor;for(var Te in M=O(M,(function(){Q.l.ya.forEach((function(xe){if(this[xe]===ve[xe])throw new fe(`Pure virtual function ${xe} must be implemented in JavaScript`)}).bind(this)),Object.defineProperty(this,"__parent",{value:J}),this.__construct.apply(this,G.call(arguments))})),J.__construct=function(){this===J&&Y("Pass correct 'this' to __construct");var xe=ge.implement.apply(void 0,[this].concat(G.call(arguments)));ct(xe);var Fe=xe.g;xe.notifyOnDestruction(),Fe.O=!0,Object.defineProperties(this,{g:{value:Fe}}),Yr(this),xe=Fe.i,xe=_e(Q,xe),Me.hasOwnProperty(xe)?Y(`Tried to register registered instance: ${xe}`):Me[xe]=this},J.__destruct=function(){this===J&&Y("Pass correct 'this' to __destruct"),ct(this);var xe=this.g.i;xe=_e(Q,xe),Me.hasOwnProperty(xe)?delete Me[xe]:Y(`Tried to unregister unregistered instance: ${xe}`)},M.prototype=Object.create(J),N)M.prototype[Te]=N[Te];return B(M)},_embind_finalize_value_object:function(M){var E=fa[M];delete fa[M];var N=E.fa,G=E.H,Q=E.sa;ir([M],Q.map((J=>J.Ya)).concat(Q.map((J=>J.lb))),(J=>{var ve={};return Q.forEach(((ge,Te)=>{var xe=J[Te],Fe=ge.Wa,et=ge.Xa,It=J[Te+Q.length],se=ge.kb,We=ge.mb;ve[ge.Sa]={read:St=>xe.fromWireType(Fe(et,St)),write:(St,pt)=>{var dn=[];se(We,St,It.toWireType(dn,pt)),si(dn)}}})),[{name:E.name,fromWireType:function(ge){var Te,xe={};for(Te in ve)xe[Te]=ve[Te].read(ge);return G(ge),xe},toWireType:function(ge,Te){for(var xe in ve)if(!(xe in Te))throw new TypeError(`Missing field: "${xe}"`);var Fe=N();for(xe in ve)ve[xe].write(Fe,Te[xe]);return ge!==null&&ge.push(G,Fe),Fe},argPackAdvance:8,readValueFromPointer:xr,v:G}]}))},_embind_register_bigint:function(){},_embind_register_bool:function(M,E,N,G,Q){var J=Fi(N);le(M,{name:E=de(E),fromWireType:function(ve){return!!ve},toWireType:function(ve,ge){return ge?G:Q},argPackAdvance:8,readValueFromPointer:function(ve){if(N===1)var ge=me;else if(N===2)ge=X;else{if(N!==4)throw new TypeError("Unknown boolean type size: "+E);ge=H}return this.fromWireType(ge[ve>>J])},v:null})},_embind_register_class:function(M,E,N,G,Q,J,ve,ge,Te,xe,Fe,et,It){Fe=de(Fe),J=yt(Q,J),ge&&(ge=yt(ve,ge)),xe&&(xe=yt(Te,xe)),It=yt(et,It);var se=Pn(Fe);Be(se,(function(){Dt(`Cannot construct ${Fe} due to unbound types`,[G])})),ir([M,E,N],G?[G]:[],(function(We){if(We=We[0],G)var St=We.h,pt=St.B;else pt=je.prototype;We=O(se,(function(){if(Object.getPrototypeOf(this)!==dn)throw new U("Use 'new' to construct "+Fe);if(st.I===void 0)throw new U(Fe+" has no accessible constructor");var An=st.I[arguments.length];if(An===void 0)throw new U(`Tried to invoke ctor of ${Fe}
2498 with invalid number of parameters (${arguments.length}) - expected (${Object.keys(st.I).toString()}) parameters instead!`);return An.apply(this,arguments)}));var dn=Object.create(pt,{constructor:{value:We}});We.prototype=dn;var st=new vt(Fe,We,dn,It,St,J,ge,xe);st.l&&(st.l.T===void 0&&(st.l.T=[]),st.l.T.push(st)),St=new it(Fe,st,!0,!1),pt=new it(Fe+"*",st,!1,!1);var Sn=new it(Fe+" const*",st,!1,!0);return Yt[M]={pointerType:pt,Ka:Sn},Oe(se,We),[St,pt,Sn]}))},_embind_register_class_class_function:function(M,E,N,G,Q,J,ve){var ge=un(N,G);E=de(E),J=yt(Q,J),ir([],[M],(function(Te){function xe(){Dt(`Cannot call ${Fe} due to unbound types`,ge)}var Fe=`${(Te=Te[0]).name}.${E}`;E.startsWith("@@")&&(E=Symbol[E.substring(2)]);var et=Te.h.constructor;return et[E]===void 0?(xe.L=N-1,et[E]=xe):(Qe(et,E,Fe),et[E].m[N-1]=xe),ir([],ge,(function(It){if(It=Ut(Fe,[It[0],null].concat(It.slice(1)),null,J,ve),et[E].m===void 0?(It.L=N-1,et[E]=It):et[E].m[N-1]=It,Te.h.T)for(const se of Te.h.T)se.constructor.hasOwnProperty(E)||(se.constructor[E]=It);return[]})),[]}))},_embind_register_class_class_property:function(M,E,N,G,Q,J,ve,ge){E=de(E),J=yt(Q,J),ir([],[M],(function(Te){var xe=`${(Te=Te[0]).name}.${E}`,Fe={get(){Dt(`Cannot access ${xe} due to unbound types`,[N])},enumerable:!0,configurable:!0};return Fe.set=ge?()=>{Dt(`Cannot access ${xe} due to unbound types`,[N])}:()=>{Y(`${xe} is a read-only property`)},Object.defineProperty(Te.h.constructor,E,Fe),ir([],[N],(function(et){et=et[0];var It={get:()=>et.fromWireType(J(G)),enumerable:!0};return ge&&(ge=yt(ve,ge),It.set=se=>{var We=[];ge(G,et.toWireType(We,se)),si(We)}),Object.defineProperty(Te.h.constructor,E,It),[]})),[]}))},_embind_register_class_constructor:function(M,E,N,G,Q,J){var ve=un(E,N);Q=yt(G,Q),ir([],[M],(function(ge){var Te=`constructor ${(ge=ge[0]).name}`;if(ge.h.I===void 0&&(ge.h.I=[]),ge.h.I[E-1]!==void 0)throw new U(`Cannot register multiple constructors with identical number of parameters (${E-1}) for class '${ge.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return ge.h.I[E-1]=()=>{Dt(`Cannot construct ${ge.name} due to unbound types`,ve)},ir([],ve,(function(xe){return xe.splice(1,0,null),ge.h.I[E-1]=Ut(Te,xe,null,Q,J),[]})),[]}))},_embind_register_class_function:function(M,E,N,G,Q,J,ve,ge){var Te=un(N,G);E=de(E),J=yt(Q,J),ir([],[M],(function(xe){function Fe(){Dt(`Cannot call ${et} due to unbound types`,Te)}var et=`${(xe=xe[0]).name}.${E}`;E.startsWith("@@")&&(E=Symbol[E.substring(2)]),ge&&xe.h.ya.push(E);var It=xe.h.B,se=It[E];
2498return se===void 0||se.m===void 0&&se.className!==xe.name&&se.L===N-2?(Fe.L=N-2,Fe.className=xe.name,It[E]=Fe):(Qe(It,E,et),It[E].m[N-2]=Fe),ir([],Te,(function(We){return We=Ut(et,We,xe,J,ve),It[E].m===void 0?(We.L=N-2,It[E]=We):It[E].m[N-2]=We,[]})),[]}))},_embind_register_class_property:function(M,E,N,G,Q,J,ve,ge,Te,xe){E=de(E),Q=yt(G,Q),ir([],[M],(function(Fe){var et=`${(Fe=Fe[0]).name}.${E}`,It={get(){Dt(`Cannot access ${et} due to unbound types`,[N,ve])},enumerable:!0,configurable:!0};return It.set=Te?()=>{Dt(`Cannot access ${et} due to unbound types`,[N,ve])}:()=>{Y(et+" is a read-only property")},Object.defineProperty(Fe.h.B,E,It),ir([],Te?[N,ve]:[N],(function(se){var We=se[0],St={get(){var dn=hn(this,Fe,et+" getter");return We.fromWireType(Q(J,dn))},enumerable:!0};if(Te){Te=yt(ge,Te);var pt=se[1];St.set=function(dn){var st=hn(this,Fe,et+" setter"),Sn=[];Te(xe,st,pt.toWireType(Sn,dn)),si(Sn)}}return Object.defineProperty(Fe.h.B,E,St),[]})),[]}))},_embind_register_emval:function(M,E){le(M,{name:E=de(E),fromWireType:function(N){var G=Ee(N);return Mn(N),G},toWireType:function(N,G){return B(G)},argPackAdvance:8,readValueFromPointer:xr,v:null})},_embind_register_enum:function(M,E,N,G){function Q(){}N=Fi(N),E=de(E),Q.values={},le(M,{name:E,constructor:Q,fromWireType:function(J){return this.constructor.values[J]},toWireType:function(J,ve){return ve.value},argPackAdvance:8,readValueFromPointer:Fn(E,N,G),v:null}),Be(E,Q)},_embind_register_enum_value:function(M,E,N){var G=tt(M,"enum");E=de(E),M=G.constructor,G=Object.create(G.constructor.prototype,{value:{value:N},constructor:{value:O(`${G.name}_${E}`,(function(){}))}}),M.values[N]=G,M[E]=G},_embind_register_float:function(M,E,N){N=Fi(N),le(M,{name:E=de(E),fromWireType:function(G){return G},toWireType:function(G,Q){return Q},argPackAdvance:8,readValueFromPointer:Kn(E,N),v:null})},_embind_register_function:function(M,E,N,G,Q,J){var ve=un(E,N);M=de(M),Q=yt(G,Q),Be(M,(function(){Dt(`Cannot call ${M} due to unbound types`,ve)}),E-1),ir([],ve,(function(ge){return Oe(M,Ut(M,[ge[0],null].concat(ge.slice(1)),null,Q,J),E-1),[]}))},_embind_register_integer:function(M,E,N,G,Q){E=de(E),Q===-1&&(Q=4294967295),Q=Fi(N);var J=ge=>ge;if(G===0){var ve=32-8*N;J=ge=>ge<<ve>>>ve}N=E.includes("unsigned")?function(ge,Te){return Te>>>0}:function(ge,Te){return Te},le(M,{name:E,fromWireType:J,toWireType:N,argPackAdvance:8,readValueFromPointer:ar(E,Q,G!==0),v:null})},_embind_register_memory_view:function(M,E,N){function G(J){J>>=2;var ve=K;return new Q(ve.buffer,ve[J+1],ve[J])}var Q=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][E];le(M,{name:N=de(N),fromWireType:G,argPackAdvance:8,readValueFromPointer:G},{ab:!0})},_embind_register_std_string:function(M,E){var N=(E=de(E))==="std::string";le(M,{name:E,fromWireType:function(G){var Q=K[G>>2],J=G+4;if(N)for(var ve=J,ge=0;ge<=Q;++ge){var Te=J+ge;if(ge==Q||ne[Te]==0){if(ve=ve?zr(ne,ve,Te-ve):"",xe===void 0)var xe=ve;else xe+="\0",xe+=ve;ve=Te+1}}else{for(xe=Array(Q),ge=0;ge<Q;++ge)xe[ge]=String.fromCharCode(ne[J+ge]);xe=xe.join("")}return De(G),xe},toWireType:function(G,Q){Q instanceof ArrayBuffer&&(Q=new Uint8Array(Q));var J=typeof Q=="string";J||Q instanceof Uint8Array||Q instanceof Uint8ClampedArray||Q instanceof Int8Array||Y("Cannot pass non-string to std::string");var ve=N&&J?mr(Q):Q.length,ge=Ye(4+ve+1),Te=ge+4;if(K[ge>>2]=ve,N&&J)cn(Q,ne,Te,ve+1);else if(J)for(J=0;J<ve;++J){var xe=Q.charCodeAt(J);255<xe&&(De(Te),Y("String has UTF-16 code units that do not fit in 8 bits")),ne[Te+J]=xe}else for(J=0;J<ve;++J)ne[Te+J]=Q[J];return G!==null&&G.push(De,ge),ge},argPackAdvance:8,readValueFromPointer:xr,v:function(G){De(G)}})}
2498,_embind_register_std_wstring:function(M,E,N){if(N=de(N),E===2)var G=Bt,Q=wn,J=Cn,ve=()=>re,ge=1;else E===4&&(G=tr,Q=qn,J=cr,ve=()=>K,ge=2);le(M,{name:N,fromWireType:function(Te){for(var xe,Fe=K[Te>>2],et=ve(),It=Te+4,se=0;se<=Fe;++se){var We=Te+4+se*E;se!=Fe&&et[We>>ge]!=0||(It=G(It,We-It),xe===void 0?xe=It:(xe+="\0",xe+=It),It=We+E)}return De(Te),xe},toWireType:function(Te,xe){typeof xe!="string"&&Y(`Cannot pass non-string to C++ string type ${N}`);var Fe=J(xe),et=Ye(4+Fe+E);return K[et>>2]=Fe>>ge,Q(xe,et+4,Fe+E),Te!==null&&Te.push(De,et),et},argPackAdvance:8,readValueFromPointer:xr,v:function(Te){De(Te)}})},_embind_register_value_object:function(M,E,N,G,Q,J){fa[M]={name:de(E),fa:yt(N,G),H:yt(Q,J),sa:[]}},_embind_register_value_object_field:function(M,E,N,G,Q,J,ve,ge,Te,xe){fa[M].sa.push({Sa:de(E),Ya:N,Wa:yt(G,Q),Xa:J,lb:ve,kb:yt(ge,Te),mb:xe})},_embind_register_void:function(M,E){le(M,{cb:!0,name:E=de(E),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:()=>!0,_emval_as:function(M,E,N){M=Ee(M),E=tt(E,"emval::as");var G=[],Q=B(G);return K[N>>2]=Q,E.toWireType(G,M)},_emval_call_method:function(M,E,N,G,Q){M=xn[M],E=Ee(E),N=nn(N);var J=[];return K[G>>2]=B(J),M(E,N,J,Q)},_emval_call_void_method:function(M,E,N,G){(M=xn[M])(E=Ee(E),N=nn(N),null,G)},_emval_decref:Mn,_emval_get_method_caller:function(M,E){var N=(function(ve,ge){for(var Te=Array(ve),xe=0;xe<ve;++xe)Te[xe]=tt(K[ge+4*xe>>2],"parameter "+xe);return Te})(M,E),G=N[0];E=G.name+"_$"+N.slice(1).map((function(ve){return ve.name})).join("_")+"$";var Q=Bn[E];if(Q!==void 0)return Q;var J=Array(M-1);return Q=(function(ve){var ge=xn.length;return xn.push(ve),ge})(((ve,ge,Te,xe)=>{for(var Fe=0,et=0;et<M-1;++et)J[et]=N[et+1].readValueFromPointer(xe+Fe),Fe+=N[et+1].argPackAdvance;for(ve=ve[ge].apply(ve,J),et=0;et<M-1;++et)N[et+1].Na&&N[et+1].Na(J[et]);if(!G.cb)return G.toWireType(Te,ve)})),Bn[E]=Q},_emval_get_module_property:function(M){return M=nn(M),B(m[M])},_emval_get_property:function(M,E){return M=Ee(M),E=Ee(E),B(M[E])},_emval_incref:function(M){4<M&&(P.get(M).Aa+=1)},_emval_new_array:function(){return B([])},_emval_new_cstring:function(M){return B(nn(M))},_emval_new_object:function(){return B({})},_emval_run_destructors:function(M){si(Ee(M)),Mn(M)},_emval_set_property:function(M,E,N){M=Ee(M),E=Ee(E),N=Ee(N),M[E]=N},_emval_take_value:function(M,E){return M=(M=tt(M,"_emval_take_value")).readValueFromPointer(E),B(M)},abort:()=>{yn("")},emscripten_date_now:function(){return Date.now()},emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:(M,E,N)=>ne.copyWithin(M,E,E+N),emscripten_resize_heap:M=>{var E=ne.length;if(2147483648<(M>>>=0))return!1;for(var N=1;4>=N;N*=2){var G=E*(1+.2/N);G=Math.min(G,M+100663296);var Q=Math;G=Math.max(M,G);e:{Q=Q.min.call(Q,2147483648,G+(65536-G%65536)%65536)-ce.buffer.byteLength+65535>>>16;try{ce.grow(Q),be();var J=1;break e}catch{}J=void 0}if(J)return!0}return!1},environ_get:(M,E)=>{var N=0;return Je().forEach((function(G,Q){var J=E+N;for(Q=K[M+4*Q>>2]=J,J=0;J<G.length;++J)me[0|Q++]=G.charCodeAt(J);me[0|Q]=0,N+=G.length+1})),0},environ_sizes_get:(M,E)=>{var N=Je();K[M>>2]=N.length;var G=0;return N.forEach((function(Q){G+=Q.length+1})),K[E>>2]=G,0},fd_close:()=>52,fd_seek:function(){return 70},fd_write:(M,E,N,G)=>{for(var Q=0,J=0;J<N;J++){var ve=K[E>>2],ge=K[E+4>>2];E+=8;for(var Te=0;Te<ge;Te++){var xe=ne[ve+Te],Fe=Gt[M];xe===0||xe===10?((M===1?ae:te)(zr(Fe,0)),Fe.length=0):Fe.push(xe)}Q+=ge}return K[G>>2]=Q,0},strftime_l:(M,E,N,G)=>Jt(M,E,N,G)};(function(){function M(N){if(pe=N=N.exports,ce=pe.memory,be(),Re=pe.__indirect_function_table,ht.unshift(pe.__wasm_call_ctors),bt--,m.monitorRunDependencies&&m.monitorRunDependencies(bt),bt==0&&vn){var G=vn;vn=null,G()}return N}var E={env:ze,wasi_snapshot_preview1:ze};if(bt++,m.monitorRunDependencies&&m.monitorRunDependencies(bt),m.instantiateWasm)try{return m.instantiateWasm(E,M)}catch(N){te("Module.instantiateWasm callback failed with error: "+N),w(N)}(function(N,G){var Q=$t;return W||typeof WebAssembly.instantiateStreaming!="function"||Wn(Q)||Q.startsWith("file://")||typeof fetch!="function"?qt(Q,N,G):fetch(Q,{credentials:"same-origin"}).then((J=>WebAssembly.instantiateStreaming(J,N).then(G,(function(ve){return te("wasm streaming compile failed: "+ve),te("falling back to ArrayBuffer instantiation"),qt(Q,N,G)}))))})(E,(function(N){M(N.instance)})).catch(w)})();var Xe,De=M=>(De=pe.free)(M),Ye=M=>(Ye=pe.malloc)(M),rt=M=>(rt=pe.__getTypeName)(M);function Lt(){function M(){if(!Xe&&(Xe=!0,m.calledRun=!0,!ke)){if(en(ht),g(m),m.onRuntimeInitialized&&m.onRuntimeInitialized(),m.postRun)for(typeof m.postRun=="function"&&(m.postRun=[m.postRun]);m.postRun.length;){var E=m.postRun.shift();dt.unshift(E)}en(dt)}}if(!(0<bt)){if(m.preRun)for(typeof m.preRun=="function"&&(m.preRun=[m.preRun]);m.preRun.length;)ut();en(Ve),0<bt||(m.setStatus?(m.setStatus("Running..."),setTimeout((function(){setTimeout((function(){m.setStatus("")}),1),M()}),1)):M())}}if(m.__embind_initialize_bindings=()=>(m.__embind_initialize_bindings=pe._embind_initialize_bindings)(),m.dynCall_jiji=(M,E,N,G,Q)=>(m.dynCall_jiji=pe.dynCall_jiji)(M,E,N,G,Q),m.dynCall_viijii=(M,E,N,G,Q,J,ve)=>(m.dynCall_viijii=pe.dynCall_viijii)(M,E,N,G,Q,J,ve),m.dynCall_iiiiij=(M,E,N,G,Q,J,ve)=>(m.dynCall_iiiiij=pe.dynCall_iiiiij)(M,E,N,G,Q,J,ve),m.dynCall_iiiiijj=(M,E,N,G,Q,J,ve,ge,Te)=>(m.dynCall_iiiiijj=pe.dynCall_iiiiijj)(M,E,N,G,Q,J,ve,ge,Te),m.dynCall_iiiiiijj=(M,E,N,G,Q,J,ve,ge,Te,xe)=>(m.dynCall_iiiiiijj=pe.dynCall_iiiiiijj)(M,E,N,G,Q,J,ve,ge,Te,xe),vn=function M(){Xe||Lt
2498(),Xe||(vn=M)},m.preInit)for(typeof m.preInit=="function"&&(m.preInit=[m.preInit]);0<m.preInit.length;)m.preInit.pop()();return Lt(),h.ready});const f=d},o=>{o.exports=JSON.parse(`{"name":"@rive-app/canvas-lite","version":"2.31.2","description":"A lite version of Rive's canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <[email protected]> (https://rive.app)","Maxwell Talbot <[email protected]> (https://rive.app)","Arthur Vivian <[email protected]> (https://rive.app)","Umberto Sonnino <[email protected]> (https://rive.app)","Matthew Sullivan <[email protected]> (mailto:[email protected])"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}`)},(o,s,l)=>{l.r(s),l.d(s,{Animation:()=>c.Animation});var c=l(4)},(o,s,l)=>{l.r(s),l.d(s,{Animation:()=>c});var c=(function(){function d(f,h,g,w){this.animation=f,this.artboard=h,this.playing=w,this.loopCount=0,this.scrubTo=null,this.instance=new g.LinearAnimationInstance(f,h)}return Object.defineProperty(d.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"time",{get:function(){return this.instance.time},set:function(f){this.instance.time=f},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"needsScrub",{get:function(){return this.scrubTo!==null},enumerable:!1,configurable:!0}),d.prototype.advance=function(f){this.scrubTo===null?this.instance.advance(f):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},d.prototype.apply=function(f){this.instance.apply(f)},d.prototype.cleanup=function(){this.instance.delete()},d})()},(o,s,l)=>{l.r(s),l.d(s,{AudioAssetWrapper:()=>f.AudioAssetWrapper,AudioWrapper:()=>f.AudioWrapper,BLANK_URL:()=>d.BLANK_URL,CustomFileAssetLoaderWrapper:()=>f.CustomFileAssetLoaderWrapper,FileAssetWrapper:()=>f.FileAssetWrapper,Finalizable:()=>f.Finalizable,FontAssetWrapper:()=>f.FontAssetWrapper,FontWrapper:()=>f.FontWrapper,ImageAssetWrapper:()=>f.ImageAssetWrapper,ImageWrapper:()=>f.ImageWrapper,finalizationRegistry:()=>f.finalizationRegistry,registerTouchInteractions:()=>c.registerTouchInteractions,sanitizeUrl:()=>d.sanitizeUrl});var c=l(6),d=l(7),f=l(8)},(o,s,l)=>{l.r(s),l.d(s,{registerTouchInteractions:()=>c});var c=function(d){var f=d.canvas,h=d.artboard,g=d.stateMachines,w=g===void 0?[]:g,m=d.renderer,b=d.rive,_=d.fit,C=d.alignment,R=d.isTouchScrollEnabled,I=R!==void 0&&R,k=d.layoutScaleFactor,A=k===void 0?1:k;if(!(f&&w.length&&m&&b&&h&&typeof window<"u"))return null;var L=null,j=!1,D=(function(V){if(j&&V instanceof MouseEvent)V.type=="mouseup"&&(j=!1);else{j=I&&V.type==="touchend"&&L==="touchstart",L=V.type;var q=V.currentTarget.getBoundingClientRect(),$=(function(dt,ut){var $t,bt;return["touchstart","touchmove"].indexOf(dt.type)>-1&&(!(($t=dt.touches)===null||$t===void 0)&&$t.length)?(ut||dt.preventDefault(),{clientX:dt.touches[0].clientX,clientY:dt.touches[0].clientY}):dt.type==="touchend"&&(!((bt=dt.changedTouches)===null||bt===void 0)&&bt.length)?{clientX:dt.changedTouches[0].clientX,clientY:dt.changedTouches[0].clientY}:{clientX:dt.clientX,clientY:dt.clientY}})(V,I),W=$.clientX,ae=$.clientY;if(W||ae){var te=W-q.left,ce=ae-q.top,pe=b.computeAlignment(_,C,{minX:0,minY:0,maxX:q.width,maxY:q.height},h.bounds,A),me=new b.Mat2D;pe.invert(me);var ne=new b.Vec2D(te,ce),X=b.mapXY(me,ne),re=X.x(),H=X.y();switch(X.delete(),me.delete(),ne.delete(),pe.delete(),V.type){case"mouseout":for(var K=0,he=w;K<he.length;K++)he[K].pointerMove(re,H);break;case"touchmove":case"mouseover":case"mousemove":for(var Ce=0,ke=w;Ce<ke.length;Ce++)ke[Ce].pointerMove(re,H);break;case"touchstart":case"mousedown":for(var be=0,Re=w;be<Re.length;be++)Re[be].pointerDown(re,H);break;case"touchend":case"mouseup":for(var Ve=0,ht=w;Ve<ht.length;Ve++)ht[Ve].pointerUp(re,H)}}}}).bind(void 0);return f.addEventListener("mouseover",D),f.addEventListener("mouseout",D),f.addEventListener("mousemove",D),f.addEventListener("mousedown",D),f.addEventListener("mouseup",D),f.addEventListener("touchmove",D,{passive:I}),f.addEventListener("touchstart",D,{passive:I}),f.addEventListener("touchend",D),function(){f.removeEventListener("mouseover",D),f.removeEventListener("mouseout",D),f.removeEventListener("mousemove",D),f.removeEventListener("mousedown",D),f.removeEventListener("mouseup",D),f.removeEventListener("touchmove",D),f.removeEventListener("touchstart",D),f.removeEventListener("touchend",D)}}},(o,s,l)=>{l.r(s),l.d(s,{BLANK_URL:()=>m,sanitizeUrl:()=>b});var c=/^([^\w]*)(javascript|data|vbscript)/im,d=/&#(\w+)(^\w|;)?/g,f=/&(newline|tab);
2498/gi,h=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,g=/^.+(:|:)/gim,w=[".","/"],m="about:blank";function b(_){if(!_)return m;var C,R=(C=_,C.replace(h,"").replace(d,(function(A,L){return String.fromCharCode(L)}))).replace(f,"").replace(h,"").trim();if(!R)return m;if((function(A){return w.indexOf(A[0])>-1})(R))return R;var I=R.match(g);if(!I)return R;var k=I[0];return c.test(k)?m:R}},(o,s,l)=>{l.r(s),l.d(s,{AudioAssetWrapper:()=>C,AudioWrapper:()=>g,CustomFileAssetLoaderWrapper:()=>m,FileAssetWrapper:()=>b,Finalizable:()=>f,FontAssetWrapper:()=>R,FontWrapper:()=>w,ImageAssetWrapper:()=>_,ImageWrapper:()=>h,finalizationRegistry:()=>k});var c,d=(c=function(A,L){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,D){j.__proto__=D}||function(j,D){for(var V in D)Object.prototype.hasOwnProperty.call(D,V)&&(j[V]=D[V])},c(A,L)},function(A,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function j(){this.constructor=A}c(A,L),A.prototype=L===null?Object.create(L):(j.prototype=L.prototype,new j)}),f=function(){this.selfUnref=!1},h=(function(A){function L(j){var D=A.call(this)||this;return D._nativeImage=j,D}return d(L,A),Object.defineProperty(L.prototype,"nativeImage",{get:function(){return this._nativeImage},enumerable:!1,configurable:!0}),L.prototype.unref=function(){this.selfUnref&&this._nativeImage.unref()},L})(f),g=(function(A){function L(j){var D=A.call(this)||this;return D._nativeAudio=j,D}return d(L,A),Object.defineProperty(L.prototype,"nativeAudio",{get:function(){return this._nativeAudio},enumerable:!1,configurable:!0}),L.prototype.unref=function(){this.selfUnref&&this._nativeAudio.unref()},L})(f),w=(function(A){function L(j){var D=A.call(this)||this;return D._nativeFont=j,D}return d(L,A),Object.defineProperty(L.prototype,"nativeFont",{get:function(){return this._nativeFont},enumerable:!1,configurable:!0}),L.prototype.unref=function(){this.selfUnref&&this._nativeFont.unref()},L})(f),m=(function(){function A(L,j){this._assetLoaderCallback=j,this.assetLoader=new L.CustomFileAssetLoader({loadContents:this.loadContents.bind(this)})}return A.prototype.loadContents=function(L,j){var D;return L.isImage?D=new _(L):L.isAudio?D=new C(L):L.isFont&&(D=new R(L)),this._assetLoaderCallback(D,j)},A})(),b=(function(){function A(L){this._nativeFileAsset=L}return A.prototype.decode=function(L){this._nativeFileAsset.decode(L)},Object.defineProperty(A.prototype,"name",{get:function(){return this._nativeFileAsset.name},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"fileExtension",{get:function(){return this._nativeFileAsset.fileExtension},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"uniqueFilename",{get:function(){return this._nativeFileAsset.uniqueFilename},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isAudio",{get:function(){return this._nativeFileAsset.isAudio},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isImage",{get:function(){return this._nativeFileAsset.isImage},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isFont",{get:function(){return this._nativeFileAsset.isFont},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"cdnUuid",{get:function(){return this._nativeFileAsset.cdnUuid},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"nativeFileAsset",{get:function(){return this._nativeFileAsset},enumerable:!1,configurable:!0}),A})(),_=(function(A){function L(){return A!==null&&A.apply(this,arguments)||this}return d(L,A),L.prototype.setRenderImage=function(j){this._nativeFileAsset.setRenderImage(j.nativeImage)},L})(b),C=(function(A){function L(){return A!==null&&A.apply(this,arguments)||this}return d(L,A),L.prototype.setAudioSource=function(j){this._nativeFileAsset.setAudioSource(j.nativeAudio)},L})(b),R=(function(A){function L(){return A!==null&&A.apply(this,arguments)||this}return d(L,A),L.prototype.setFont=function(j){this._nativeFileAsset.setFont(j.nativeFont)},L})(b),I=(function(){function A(L){}return A.prototype.register=function(L){L.selfUnref=!0},A.prototype.unregister=function(L){},A})(),k=new(typeof FinalizationRegistry<"u"?FinalizationRegistry:I)((function(A){A.unref()}))}],t={};function n(o){var s=t[o];if(s!==void 0)return s.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.d=(o,s)=>{for(var l in s)n.o(s,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:s[l]})},n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{Alignment:()=>l,DataEnum:()=>Ce,EventType:()=>j,Fit:()=>s,Layout:()=>I,LoopType:()=>D,Rive:()=>K,RiveEventType:()=>A,RiveFile:()=>
2498H,RuntimeLoader:()=>k,StateMachineInput:()=>L,StateMachineInputType:()=>R,Testing:()=>sn,ViewModel:()=>he,ViewModelInstance:()=>ke,ViewModelInstanceArtboard:()=>yn,ViewModelInstanceAssetImage:()=>vn,ViewModelInstanceBoolean:()=>ht,ViewModelInstanceColor:()=>bt,ViewModelInstanceEnum:()=>ut,ViewModelInstanceList:()=>$t,ViewModelInstanceNumber:()=>Ve,ViewModelInstanceString:()=>Re,ViewModelInstanceTrigger:()=>dt,ViewModelInstanceValue:()=>be,decodeAudio:()=>qt,decodeFont:()=>Pn,decodeImage:()=>en});var o,s,l,c=n(1),d=n(2),f=n(3),h=n(5),g=(o=function(O,v){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,U){P.__proto__=U}||function(P,U){for(var Y in U)Object.prototype.hasOwnProperty.call(U,Y)&&(P[Y]=U[Y])},o(O,v)},function(O,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function P(){this.constructor=O}o(O,v),O.prototype=v===null?Object.create(v):(P.prototype=v.prototype,new P)}),w=function(){return w=Object.assign||function(O){for(var v,P=1,U=arguments.length;P<U;P++)for(var Y in v=arguments[P])Object.prototype.hasOwnProperty.call(v,Y)&&(O[Y]=v[Y]);return O},w.apply(this,arguments)},m=function(O,v,P,U){return new(P||(P=Promise))((function(Y,Ee){function B(oe){try{fe(U.next(oe))}catch(de){Ee(de)}}function ee(oe){try{fe(U.throw(oe))}catch(de){Ee(de)}}function fe(oe){var de;oe.done?Y(oe.value):(de=oe.value,de instanceof P?de:new P((function(Pe){Pe(de)}))).then(B,ee)}fe((U=U.apply(O,[])).next())}))},b=function(O,v){var P,U,Y,Ee={label:0,sent:function(){if(1&Y[0])throw Y[1];return Y[1]},trys:[],ops:[]},B=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return B.next=ee(0),B.throw=ee(1),B.return=ee(2),typeof Symbol=="function"&&(B[Symbol.iterator]=function(){return this}),B;function ee(fe){return function(oe){return(function(de){if(P)throw new TypeError("Generator is already executing.");for(;B&&(B=0,de[0]&&(Ee=0)),Ee;)try{if(P=1,U&&(Y=2&de[0]?U.return:de[0]?U.throw||((Y=U.return)&&Y.call(U),0):U.next)&&!(Y=Y.call(U,de[1])).done)return Y;switch(U=0,Y&&(de=[2&de[0],Y.value]),de[0]){case 0:case 1:Y=de;break;case 4:return Ee.label++,{value:de[1],done:!1};case 5:Ee.label++,U=de[1],de=[0];continue;case 7:de=Ee.ops.pop(),Ee.trys.pop();continue;default:if(!((Y=(Y=Ee.trys).length>0&&Y[Y.length-1])||de[0]!==6&&de[0]!==2)){Ee=0;continue}if(de[0]===3&&(!Y||de[1]>Y[0]&&de[1]<Y[3])){Ee.label=de[1];break}if(de[0]===6&&Ee.label<Y[1]){Ee.label=Y[1],Y=de;break}if(Y&&Ee.label<Y[2]){Ee.label=Y[2],Ee.ops.push(de);break}Y[2]&&Ee.ops.pop(),Ee.trys.pop();continue}de=v.call(O,Ee)}catch(Pe){de=[6,Pe],U=0}finally{P=Y=0}if(5&de[0])throw de[1];return{value:de[0]?de[1]:void 0,done:!0}})([fe,oe])}}},_=function(O,v,P){for(var U,Y=0,Ee=v.length;Y<Ee;Y++)!U&&Y in v||(U||(U=Array.prototype.slice.call(v,0,Y)),U[Y]=v[Y]);return O.concat(U||Array.prototype.slice.call(v))},C=(function(O){function v(){var P=O!==null&&O.apply(this,arguments)||this;return P.isHandledError=!0,P}return g(v,O),v})(Error);(function(O){O.Cover="cover",O.Contain="contain",O.Fill="fill",O.FitWidth="fitWidth",O.FitHeight="fitHeight",O.None="none",O.ScaleDown="scaleDown",O.Layout="layout"})(s||(s={})),(function(O){O.Center="center",O.TopLeft="topLeft",O.TopCenter="topCenter",O.TopRight="topRight",O.CenterLeft="centerLeft",O.CenterRight="centerRight",O.BottomLeft="bottomLeft",O.BottomCenter="bottomCenter",O.BottomRight="bottomRight"})(l||(l={}));var R,I=(function(){function O(v){var P,U,Y,Ee,B,ee,fe;this.fit=(P=v?.fit)!==null&&P!==void 0?P:s.Contain,this.alignment=(U=v?.alignment)!==null&&U!==void 0?U:l.Center,this.layoutScaleFactor=(Y=v?.layoutScaleFactor)!==null&&Y!==void 0?Y:1,this.minX=(Ee=v?.minX)!==null&&Ee!==void 0?Ee:0,this.minY=(B=v?.minY)!==null&&B!==void 0?B:0,this.maxX=(ee=v?.maxX)!==null&&ee!==void 0?ee:0,this.maxY=(fe=v?.maxY)!==null&&fe!==void 0?fe:0}return O.new=function(v){var P=v.fit,U=v.alignment,Y=v.minX,Ee=v.minY,B=v.maxX,ee=v.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new O({fit:P,alignment:U,minX:Y,minY:Ee,maxX:B,maxY:ee})},O.prototype.copyWith=function(v){var P=v.fit,U=v.alignment,Y=v.layoutScaleFactor,Ee=v.minX,B=v.minY,ee=v.maxX,fe=v.maxY;return new O({fit:P??this.fit,alignment:U??this.alignment,layoutScaleFactor:Y??this.layoutScaleFactor,minX:Ee??this.minX,minY:B??this.minY,maxX:ee??this.maxX,maxY:fe??this.maxY})},O.prototype.runtimeFit=function(v){return this.cachedRuntimeFit?this.cachedRuntimeFit:(P=this.fit===s.Cover?v.Fit.cover:this.fit===s.Contain?v.Fit.contain:this.fit===s.Fill?v.Fit.fill:this.fit===s.FitWidth?v.Fit.fitWidth:this.fit===s.FitHeight?v.Fit.fitHeight:this.fit===s.ScaleDown?v.Fit.scaleDown:this.fit===s.Layout?v.Fit.layout:v.Fit.none,this.cachedRuntimeFit=P,P);var P},O.prototype.runtimeAlignment=function(v){return this.cachedRuntimeAlignment?this.cachedRuntimeAlignment:(P=this.alignment===l.TopLeft?v.Alignment.topLeft:this.alignment===l.TopCenter?v.Alignment.topCenter:this.alignment===l.TopRight?v.Alignment.topRight:this.alignment===l.CenterLeft?v.Alignment.centerLeft:this.alignment===l.CenterRight?v.Alignment.centerRight:this.alignment===l.BottomLeft?v.Alignment.bottomLeft:this.alignment===l.BottomCenter?v.Alignment.bottomCenter:this.alignment===l.BottomRight?v.Alignment.bottomRight:v.Alignment.center,this.cachedRuntimeAlignment=P,P);var P},O})(),k=(function(){function O(){}return O.loadRuntime=function(){c.default({locateFile:function(){return O.wasmURL}
2498}).then((function(v){var P;for(O.runtime=v;O.callBackQueue.length>0;)(P=O.callBackQueue.shift())===null||P===void 0||P(O.runtime)})).catch((function(v){var P={message:v?.message||"Unknown error",type:v?.name||"Error",wasmError:v instanceof WebAssembly.CompileError||v instanceof WebAssembly.RuntimeError,originalError:v};console.debug("Rive WASM load error details:",P);var U="https://cdn.jsdelivr.net/npm/".concat(d.name,"@").concat(d.version,"/rive_fallback.wasm");if(O.wasmURL.toLowerCase()!==U)console.warn("Failed to load WASM from ".concat(O.wasmURL," (").concat(P.message,"), trying jsdelivr as a backup")),O.setWasmUrl(U),O.loadRuntime();else{var Y=["Could not load Rive WASM file from ".concat(O.wasmURL," or ").concat(U,"."),"Possible reasons:","- Network connection is down","- WebAssembly is not supported in this environment","- The WASM file is corrupted or incompatible",` 2499Error details:`,"- Type: ".concat(P.type),"- Message: ".concat(P.message),"- WebAssembly-specific error: ".concat(P.wasmError),` 2500To resolve, you may need to:`,"1. Check your network connection","2. Set a new WASM source via RuntimeLoader.setWasmUrl()","3. Call RuntimeLoader.loadRuntime() again"].join(` 2501`);console.error(Y)}}))},O.getInstance=function(v){O.isLoading||(O.isLoading=!0,O.loadRuntime()),O.runtime?v(O.runtime):O.callBackQueue.push(v)},O.awaitInstance=function(){return new Promise((function(v){return O.getInstance((function(P){return v(P)}))}))},O.setWasmUrl=function(v){O.wasmURL=v},O.getWasmUrl=function(){return O.wasmURL},O.isLoading=!1,O.callBackQueue=[],O.wasmURL="https://unpkg.com/".concat(d.name,"@").concat(d.version,"/rive.wasm"),O})();(function(O){O[O.Number=56]="Number",O[O.Trigger=58]="Trigger",O[O.Boolean=59]="Boolean"})(R||(R={}));var A,L=(function(){function O(v,P){this.type=v,this.runtimeInput=P}return Object.defineProperty(O.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(v){this.runtimeInput.value=v},enumerable:!1,configurable:!0}),O.prototype.fire=function(){this.type===R.Trigger&&this.runtimeInput.fire()},O.prototype.delete=function(){this.runtimeInput=null},O})();(function(O){O[O.General=128]="General",O[O.OpenUrl=131]="OpenUrl"})(A||(A={}));var j,D,V=function(O){this.nativeArtboard=O},q=(function(){function O(v,P,U,Y){this.stateMachine=v,this.playing=U,this.artboard=Y,this.inputs=[],this.instance=new P.StateMachineInstance(v,Y),this.initInputs(P)}return Object.defineProperty(O.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"statesChanged",{get:function(){for(var v=[],P=0;P<this.instance.stateChangedCount();P++)v.push(this.instance.stateChangedNameByIndex(P));return v},enumerable:!1,configurable:!0}),O.prototype.advance=function(v){this.instance.advance(v)},O.prototype.advanceAndApply=function(v){this.instance.advanceAndApply(v)},O.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},O.prototype.reportedEventAt=function(v){return this.instance.reportedEventAt(v)},O.prototype.initInputs=function(v){for(var P=0;P<this.instance.inputCount();P++){var U=this.instance.input(P);this.inputs.push(this.mapRuntimeInput(U,v))}},O.prototype.mapRuntimeInput=function(v,P){return v.type===P.SMIInput.bool?new L(R.Boolean,v.asBool()):v.type===P.SMIInput.number?new L(R.Number,v.asNumber()):v.type===P.SMIInput.trigger?new L(R.Trigger,v.asTrigger()):void 0},O.prototype.cleanup=function(){this.inputs.forEach((function(v){v.delete()})),this.inputs.length=0,this.instance.delete()},O.prototype.bindViewModelInstance=function(v){v.runtimeInstance!=null&&this.instance.bindViewModelInstance(v.runtimeInstance)},O})(),$=(function(){function O(v,P,U,Y,Ee){Y===void 0&&(Y=[]),Ee===void 0&&(Ee=[]),this.runtime=v,this.artboard=P,this.eventManager=U,this.animations=Y,this.stateMachines=Ee}return O.prototype.add=function(v,P,U){if(U===void 0&&(U=!0),(v=ot(v)).length===0)this.animations.forEach((function(Le){return Le.playing=P}
2501)),this.stateMachines.forEach((function(Le){return Le.playing=P}));else for(var Y=this.animations.map((function(Le){return Le.name})),Ee=this.stateMachines.map((function(Le){return Le.name})),B=0;B<v.length;B++){var ee=Y.indexOf(v[B]),fe=Ee.indexOf(v[B]);if(ee>=0||fe>=0)ee>=0?this.animations[ee].playing=P:this.stateMachines[fe].playing=P;else{var oe=this.artboard.animationByName(v[B]);if(oe){var de=new f.Animation(oe,this.artboard,this.runtime,P);de.advance(0),de.apply(1),this.animations.push(de)}else{var Pe=this.artboard.stateMachineByName(v[B]);if(Pe){var Ue=new q(Pe,this.runtime,P,this.artboard);this.stateMachines.push(Ue)}}}}return U&&(P?this.eventManager.fire({type:j.Play,data:this.playing}):this.eventManager.fire({type:j.Pause,data:this.paused})),P?this.playing:this.paused},O.prototype.initLinearAnimations=function(v,P){for(var U=this.animations.map((function(fe){return fe.name})),Y=0;Y<v.length;Y++){var Ee=U.indexOf(v[Y]);if(Ee>=0)this.animations[Ee].playing=P;else{var B=this.artboard.animationByName(v[Y]);if(B){var ee=new f.Animation(B,this.artboard,this.runtime,P);ee.advance(0),ee.apply(1),this.animations.push(ee)}else console.error("Animation with name ".concat(v[Y]," not found."))}}},O.prototype.initStateMachines=function(v,P){for(var U=this.stateMachines.map((function(fe){return fe.name})),Y=0;Y<v.length;Y++){var Ee=U.indexOf(v[Y]);if(Ee>=0)this.stateMachines[Ee].playing=P;else{var B=this.artboard.stateMachineByName(v[Y]);if(B){var ee=new q(B,this.runtime,P,this.artboard);this.stateMachines.push(ee),P||ee.advanceAndApply(0)}else console.warn("State Machine with name ".concat(v[Y]," not found.")),this.initLinearAnimations([v[Y]],P)}}},O.prototype.play=function(v){return this.add(v,!0)},O.prototype.pause=function(v){return this.add(v,!1)},O.prototype.scrub=function(v,P){var U=this.animations.filter((function(Y){return v.includes(Y.name)}));return U.forEach((function(Y){return Y.scrubTo=P})),U.map((function(Y){return Y.name}))},Object.defineProperty(O.prototype,"playing",{get:function(){return this.animations.filter((function(v){return v.playing})).map((function(v){return v.name})).concat(this.stateMachines.filter((function(v){return v.playing})).map((function(v){return v.name})))},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"paused",{get:function(){return this.animations.filter((function(v){return!v.playing})).map((function(v){return v.name})).concat(this.stateMachines.filter((function(v){return!v.playing})).map((function(v){return v.name})))},enumerable:!1,configurable:!0}),O.prototype.stop=function(v){var P=this,U=[];if((v=ot(v)).length===0)U=this.animations.map((function(B){return B.name})).concat(this.stateMachines.map((function(B){return B.name}))),this.animations.forEach((function(B){return B.cleanup()})),this.stateMachines.forEach((function(B){return B.cleanup()})),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var Y=this.animations.filter((function(B){return v.includes(B.name)}));Y.forEach((function(B){B.cleanup(),P.animations.splice(P.animations.indexOf(B),1)}));var Ee=this.stateMachines.filter((function(B){return v.includes(B.name)}));Ee.forEach((function(B){B.cleanup(),P.stateMachines.splice(P.stateMachines.indexOf(B),1)})),U=Y.map((function(B){return B.name})).concat(Ee.map((function(B){return B.name})))}return this.eventManager.fire({type:j.Stop,data:U}),U},Object.defineProperty(O.prototype,"isPlaying",{get:function(){return this.animations.reduce((function(v,P){return v||P.playing}),!1)||this.stateMachines.reduce((function(v,P){return v||P.playing}),!1)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isStopped",{get:function(){return this.animations.length===0&&this.stateMachines.length===0},enumerable:!1,configurable:!0}),O.prototype.atLeastOne=function(v,P){var U;return P===void 0&&(P=!0),this.animations.length===0&&this.stateMachines.length===0&&(this.artboard.animationCount()>0?this.add([U=this.artboard.animationByIndex(0).name],v,P):this.artboard.stateMachineCount()>0&&this.add([U=this.artboard.stateMachineByIndex(0).name],v,P)),U},O.prototype.handleLooping=function(){for(var v=0,P=this.animations.filter((function(Y){return Y.playing}));v<P.length;v++){var U=P[v];U.loopValue===0&&U.loopCount?(U.loopCount=0,this.stop(U.name)):U.loopValue===1&&U.loopCount?(this.eventManager.fire({type:j.Loop,data:{animation:U.name,type:D.Loop}}),U.loopCount=0):U.loopValue===2&&U.loopCount>1&&(this.eventManager.fire({type:j.Loop,data:{animation:U.name,type:D.PingPong}}),U.loopCount=0)}},O.prototype.handleStateChanges=function(){for(var v=[],P=0,U=this.stateMachines.filter((function(Ee){return Ee.playing}));P<U.length;P++){var Y=U[P];v.push.apply(v,Y.statesChanged)}v.length>0&&this.eventManager.fire({type:j.StateChange,data:v})},O.prototype.handleAdvancing=function(v){this.eventManager.fire({type:j.Advance,data:v})},O})();(function(O){O.Load="load",O.LoadError="loaderror",O.Play="play",O.Pause="pause",O.Stop="stop",O.Loop="loop",O.Draw="draw",O.Advance="advance",O.StateChange="statechange",O.RiveEvent="riveevent",O.AudioStatusChange="audiostatuschange"})(j||(j={})),(function(O){O.OneShot="oneshot",O.Loop="loop",O.PingPong="pingpong"})(D||(D={}));var W,ae=(function(){function O(v){v===void 0&&(v=[]),this.listeners=v}return O.prototype.getListeners=function(v){return this.listeners.filter((function(P){return P.type===v}))},O.prototype.add=function(v){this.listeners.includes(v)||this.listeners.push(v)},O.prototype.remove=function(v){for(var P=0;P<this.listeners.length;P++){var U=this.listeners[P];if(U.type===v.type&&U.callback===v.callback){this.listeners.splice(P,1);break}}},O.prototype.removeAll=function(v){var P=this;v?this.listeners.filter((function(U){return U.type===v}
2501)).forEach((function(U){return P.remove(U)})):this.listeners.splice(0,this.listeners.length)},O.prototype.fire=function(v){this.getListeners(v.type).forEach((function(P){return P.callback(v)}))},O})(),te=(function(){function O(v){this.eventManager=v,this.queue=[]}return O.prototype.add=function(v){this.queue.push(v)},O.prototype.process=function(){for(;this.queue.length>0;){var v=this.queue.shift();v?.action&&v.action(),v?.event&&this.eventManager.fire(v.event)}},O})();(function(O){O[O.AVAILABLE=0]="AVAILABLE",O[O.UNAVAILABLE=1]="UNAVAILABLE"})(W||(W={}));var ce,pe=(function(O){function v(){var P=O!==null&&O.apply(this,arguments)||this;return P._started=!1,P._enabled=!1,P._status=W.UNAVAILABLE,P}return g(v,O),v.prototype.delay=function(P){return m(this,void 0,void 0,(function(){return b(this,(function(U){return[2,new Promise((function(Y){return setTimeout(Y,P)}))]}))}))},v.prototype.timeout=function(){return m(this,void 0,void 0,(function(){return b(this,(function(P){return[2,new Promise((function(U,Y){return setTimeout(Y,50)}))]}))}))},v.prototype.reportToListeners=function(){this.fire({type:j.AudioStatusChange}),this.removeAll()},v.prototype.enableAudio=function(){return m(this,void 0,void 0,(function(){return b(this,(function(P){return this._enabled||(this._enabled=!0,this._status=W.AVAILABLE,this.reportToListeners()),[2]}))}))},v.prototype.testAudio=function(){return m(this,void 0,void 0,(function(){return b(this,(function(P){switch(P.label){case 0:if(this._status!==W.UNAVAILABLE||this._audioContext===null)return[3,4];P.label=1;case 1:return P.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return P.sent(),this.enableAudio(),[3,4];case 3:return P.sent(),[3,4];case 4:return[2]}}
2501))}))},v.prototype._establishAudio=function(){return m(this,void 0,void 0,(function(){return b(this,(function(P){switch(P.label){case 0:return this._started?[3,5]:(this._started=!0,typeof window<"u"?[3,1]:(this.enableAudio(),[3,5]));case 1:this._audioContext=new AudioContext,this.listenForUserAction(),P.label=2;case 2:return this._status!==W.UNAVAILABLE?[3,5]:[4,this.testAudio()];case 3:return P.sent(),[4,this.delay(1e3)];case 4:return P.sent(),[3,2];case 5:return[2]}}))}))},v.prototype.listenForUserAction=function(){var P=this;document.addEventListener("pointerdown",(function(){return m(P,void 0,void 0,(function(){return b(this,(function(U){return this.enableAudio(),[2]}))}))}),{once:!0})},v.prototype.establishAudio=function(){return m(this,void 0,void 0,(function(){return b(this,(function(P){return this._establishAudio(),[2]}))}))},Object.defineProperty(v.prototype,"systemVolume",{get:function(){return this._status===W.UNAVAILABLE?(this.testAudio(),0):1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),v})(ae),me=new pe,ne=(function(){function O(){}return O.prototype.observe=function(){},O.prototype.unobserve=function(){},O.prototype.disconnect=function(){},O})(),X=globalThis.ResizeObserver||ne,re=new((function(){function O(){var v=this;this._elementsMap=new Map,this._onObservedEntry=function(P){var U=v._elementsMap.get(P.target);U!==null?U.onResize(P.target.clientWidth==0||P.target.clientHeight==0):v._resizeObserver.unobserve(P.target)},this._onObserved=function(P){P.forEach(v._onObservedEntry)},this._resizeObserver=new X(this._onObserved)}return O.prototype.add=function(v,P){var U={onResize:P,element:v};return this._elementsMap.set(v,U),this._resizeObserver.observe(v),U},O.prototype.remove=function(v){this._resizeObserver.unobserve(v.element),this._elementsMap.delete(v.element)},O})()),H=(function(){function O(v){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.destroyed=!1,this.src=v.src,this.buffer=v.buffer,v.assetLoader&&(this.assetLoader=v.assetLoader),this.enableRiveAssetCDN=typeof v.enableRiveAssetCDN!="boolean"||v.enableRiveAssetCDN,this.eventManager=new ae,v.onLoad&&this.on(j.Load,v.onLoad),v.onLoadError&&this.on(j.LoadError,v.onLoadError)}return O.prototype.initData=function(){return m(this,void 0,void 0,(function(){var v,P,U,Y,Ee;return b(this,(function(B){switch(B.label){case 0:return this.src?(v=this,[4,Wn(this.src)]):[3,2];case 1:v.buffer=B.sent(),B.label=2;case 2:return this.destroyed?[2]:(this.assetLoader&&(U=new h.CustomFileAssetLoaderWrapper(this.runtime,this.assetLoader),P=U.assetLoader),Y=this,[4,this.runtime.load(new Uint8Array(this.buffer),P,this.enableRiveAssetCDN)]);case 3:return Y.file=B.sent(),this.destroyed?((Ee=this.file)===null||Ee===void 0||Ee.delete(),this.file=null,[2]):(this.file!==null?this.eventManager.fire({type:j.Load,data:this}):this.fireLoadError(O.fileLoadErrorMessage),[2])}}))}))},O.prototype.init=function(){return m(this,void 0,void 0,(function(){var v,P;return b(this,(function(U){switch(U.label){case 0:if(!this.src&&!this.buffer)return this.fireLoadError(O.missingErrorMessage),[2];U.label=1;case 1:return U.trys.push([1,4,,5]),v=this,[4,k.awaitInstance()];case 2:return v.runtime=U.sent(),this.destroyed?[2]:[4,this.initData()];case 3:return U.sent(),[3,5];case 4:return P=U.sent(),this.fireLoadError(P instanceof Error?P.message:O.fileLoadErrorMessage),[3,5];case 5:return[2]}}
2501))}))},O.prototype.fireLoadError=function(v){throw this.eventManager.fire({type:j.LoadError,data:v}),new Error(v)},O.prototype.on=function(v,P){this.eventManager.add({type:v,callback:P})},O.prototype.off=function(v,P){this.eventManager.remove({type:v,callback:P})},O.prototype.cleanup=function(){var v;this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),(v=this.file)===null||v===void 0||v.delete(),this.file=null,this.destroyed=!0)},O.prototype.removeAllRiveEventListeners=function(v){this.eventManager.removeAll(v)},O.prototype.getInstance=function(){if(this.file!==null)return this.referenceCount+=1,this.file},O.prototype.destroyIfUnused=function(){this.referenceCount<=0&&this.cleanup()},O.prototype.getArtboard=function(v){var P=this.file.artboardByName(v);return P!=null?new V(P):null},O.missingErrorMessage="Rive source file or data buffer required",O.fileLoadErrorMessage="The file failed to load",O})(),K=(function(){function O(v){var P,U=this;this.loaded=!1,this.destroyed=!1,this._observed=null,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this._audioEventListener=null,this._boundDraw=null,this._viewModelInstance=null,this._dataEnums=null,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(Y){var Ee=U._hasZeroSize!==Y;U._hasZeroSize=Y,Y?U._layout.maxX&&U._layout.maxY||U.resizeToCanvas():Ee&&U.resizeDrawingSurfaceToCanvas()},this.renderSecondTimer=0,this._boundDraw=this.draw.bind(this),this.canvas=v.canvas,v.canvas.constructor===HTMLCanvasElement&&(this._observed=re.add(this.canvas,this.onCanvasResize)),this.src=v.src,this.buffer=v.buffer,this.riveFile=v.riveFile,this.layout=(P=v.layout)!==null&&P!==void 0?P:new I,this.shouldDisableRiveListeners=!!v.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!v.isTouchScrollEnabled,this.automaticallyHandleEvents=!!v.automaticallyHandleEvents,this.enableRiveAssetCDN=v.enableRiveAssetCDN===void 0||v.enableRiveAssetCDN,this.eventManager=new ae,v.onLoad&&this.on(j.Load,v.onLoad),v.onLoadError&&this.on(j.LoadError,v.onLoadError),v.onPlay&&this.on(j.Play,v.onPlay),v.onPause&&this.on(j.Pause,v.onPause),v.onStop&&this.on(j.Stop,v.onStop),v.onLoop&&this.on(j.Loop,v.onLoop),v.onStateChange&&this.on(j.StateChange,v.onStateChange),v.onAdvance&&this.on(j.Advance,v.onAdvance),v.onload&&!v.onLoad&&this.on(j.Load,v.onload),v.onloaderror&&!v.onLoadError&&this.on(j.LoadError,v.onloaderror),v.onplay&&!v.onPlay&&this.on(j.Play,v.onplay),v.onpause&&!v.onPause&&this.on(j.Pause,v.onpause),v.onstop&&!v.onStop&&this.on(j.Stop,v.onstop),v.onloop&&!v.onLoop&&this.on(j.Loop,v.onloop),v.onstatechange&&!v.onStateChange&&this.on(j.StateChange,v.onstatechange),v.assetLoader&&(this.assetLoader=v.assetLoader),this.taskQueue=new te(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:v.autoplay,autoBind:v.autoBind,animations:v.animations,stateMachines:v.stateMachines,artboard:v.artboard,useOffscreenRenderer:v.useOffscreenRenderer})}return Object.defineProperty(O.prototype,"viewModelCount",{get:function(){return this.file.viewModelCount()},enumerable:!1,configurable:!0}),O.new=function(v){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new O(v)},O.prototype.onSystemAudioChanged=function(){this.volume=this._volume},O.prototype.init=function(v){var P=this,U=v.src,Y=v.buffer,Ee=v.riveFile,B=v.animations,ee=v.stateMachines,fe=v.artboard,oe=v.autoplay,de=oe!==void 0&&oe,Pe=v.useOffscreenRenderer,Ue=Pe!==void 0&&Pe,Le=v.autoBind,Me=Le!==void 0&&Le;if(!this.destroyed){if(this.src=U,this.buffer=Y,this.riveFile=Ee,!this.src&&!this.buffer&&!this.riveFile)throw new C(O.missingErrorMessage);var _e=ot(B),Ae=ot(ee);this.loaded=!1,this.readyForPlaying=!1,k.awaitInstance().then((function($e){P.destroyed||(P.runtime=$e,P.removeRiveListeners(),P.deleteRiveRen
2501derer(),P.renderer=P.runtime.makeRenderer(P.canvas,Ue),P.canvas.width||P.canvas.height||P.resizeDrawingSurfaceToCanvas(),P.initData(fe,_e,Ae,de,Me).then((function(tt){if(tt)return P.setupRiveListeners()})).catch((function(tt){console.error(tt)})))})).catch((function($e){console.error($e)}))}},O.prototype.setupRiveListeners=function(v){var P=this;if(this.eventCleanup&&this.eventCleanup(),!this.shouldDisableRiveListeners){var U=(this.animator.stateMachines||[]).filter((function(Ee){return Ee.playing&&P.runtime.hasListeners(Ee.instance)})).map((function(Ee){return Ee.instance})),Y=this.isTouchScrollEnabled;v&&"isTouchScrollEnabled"in v&&(Y=v.isTouchScrollEnabled),this.eventCleanup=(0,h.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:U,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:Y,layoutScaleFactor:this._layout.layoutScaleFactor})}},O.prototype.removeRiveListeners=function(){this.eventCleanup&&(this.eventCleanup(),this.eventCleanup=null)},O.prototype.initializeAudio=function(){var v,P=this;me.status==W.UNAVAILABLE&&(!((v=this.artboard)===null||v===void 0)&&v.hasAudio)&&this._audioEventListener===null&&(this._audioEventListener={type:j.AudioStatusChange,callback:function(){return P.onSystemAudioChanged()}},me.add(this._audioEventListener),me.establishAudio())},O.prototype.initArtboardSize=function(){this.artboard&&(this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height)},O.prototype.initData=function(v,P,U,Y,Ee){return m(this,void 0,void 0,(function(){var B,ee,fe,oe;return b(this,(function(de){switch(de.label){case 0:return de.trys.push([0,3,,4]),this.riveFile!=null?[3,2]:(B=new H({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),this.riveFile=B,[4,B.init()]);case 1:if(de.sent(),this.destroyed)return B.destroyIfUnused(),[2,!1];de.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(v,P,U,Y,Ee),this.initArtboardSize(),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:j.Load,data:(oe=this.src)!==null&&oe!==void 0?oe:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,!0];case 3:return ee=de.sent(),fe=(function(Pe){return Pe&&Pe.isHandledError?Pe.message:"Problem loading file; may be corrupt!"})(ee),console.warn(fe),this.eventManager.fire({type:j.LoadError,data:fe}),[2,Promise.reject(fe)];case 4:return[2]}}
2501))}))},O.prototype.initArtboard=function(v,P,U,Y,Ee){if(this.file){var B,ee=v?this.file.artboardByName(v):this.file.defaultArtboard();if(!ee){var fe="Invalid artboard name or no default artboard";return console.warn(fe),void this.eventManager.fire({type:j.LoadError,data:fe})}if(this.artboard=ee,ee.volume=this._volume*me.systemVolume,this.artboard.animationCount()<1)throw fe="Artboard has no animations",this.eventManager.fire({type:j.LoadError,data:fe}),fe;if(this.animator=new $(this.runtime,this.artboard,this.eventManager),P.length>0||U.length>0?(B=P.concat(U),this.animator.initLinearAnimations(P,Y),this.animator.initStateMachines(U,Y)):B=[this.animator.atLeastOne(Y,!1)],this.taskQueue.add({event:{type:Y?j.Play:j.Pause,data:B}}),Ee){var oe=this.file.defaultArtboardViewModel(ee);if(oe!==null){var de=oe.defaultInstance();if(de!==null){var Pe=new ke(de,null);this.bindViewModelInstance(Pe)}}}}},O.prototype.drawFrame=function(){var v,P;!((v=document?.timeline)===null||v===void 0)&&v.currentTime?this.loaded&&this.artboard&&!this.frameRequestId&&(this._boundDraw(document.timeline.currentTime),(P=this.runtime)===null||P===void 0||P.resolveAnimationFrame()):this.startRendering()},O.prototype.draw=function(v,P){var U;this.frameRequestId=null;var Y=performance.now();this.lastRenderTime||(this.lastRenderTime=v),this.renderSecondTimer+=v-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,P?.());var Ee=(v-this.lastRenderTime)/1e3;this.lastRenderTime=v;for(var B=0,ee=this.animator.animations.filter((function(ln){return ln.playing||ln.needsScrub})).sort((function(ln){return ln.needsScrub?-1:1}));B<ee.length;B++){var fe=ee[B];fe.advance(Ee),fe.instance.didLoop&&(fe.loopCount+=1),fe.apply(1)}for(var oe=0,de=this.animator.stateMachines.filter((function(ln){return ln.playing}));oe<de.length;oe++){var Pe=de[oe],Ue=Pe.reportedEventCount();if(Ue)for(var Le=0;Le<Ue;Le++){var Me=Pe.reportedEventAt(Le);if(Me)if(Me.type===A.OpenUrl){if(this.eventManager.fire({type:j.RiveEvent,data:Me}),this.automaticallyHandleEvents){var _e=document.createElement("a"),Ae=Me,$e=Ae.url,tt=Ae.target,ct=(0,h.sanitizeUrl)($e);$e&&_e.setAttribute("href",ct),tt&&_e.setAttribute("target",tt),ct&&ct!==h.BLANK_URL&&_e.click()}}else this.eventManager.fire({type:j.RiveEvent,data:Me})}Pe.advanceAndApply(Ee)}this.animator.stateMachines.length==0&&this.artboard.advance(Ee);var Ft=this.renderer;Ft.clear(),Ft.save(),this.alignRenderer(),this._hasZeroSize||this.artboard.draw(Ft),Ft.restore(),Ft.flush(),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(Ee),this.frameCount++;var Qt=performance.now();for(this.frameTimes.push(Qt),this.durations.push(Qt-Y);this.frameTimes[0]<=Qt-1e3;)this.frameTimes.shift(),this.durations.shift();(U=this._viewModelInstance)===null||U===void 0||U.handleCallbacks(),this.animator.isPlaying?this.startRendering():(this.animator.isPaused||this.animator.isStopped)&&(this.lastRenderTime=0)},O.prototype.alignRenderer=function(){var v=this,P=v.renderer,U=v.runtime,Y=v._layout,Ee=v.artboard;P.align(Y.runtimeFit(U),Y.runtimeAlignment(U),{minX:Y.minX,minY:Y.minY,maxX:Y.maxX,maxY:Y.maxY},Ee.bounds,this._devicePixelRatioUsed*Y.layoutScaleFactor)},Object.defineProperty(O.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"frameTime",{get:function(){return this.durations.length===0?0:(this.durations.reduce((function(v,P){return v+P}),0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),O.prototype.cleanup=function(){var v,P;this.destroyed=!0,this.stopRendering(),this.cleanupInstances(),this._observed!==null&&re.remove(this._observed),this.removeRiveListeners(),this.file&&((v=this.riveFile)===null||v===void 0||v.cleanup(),this.file=null),this.riveFile=null,this.deleteRiveRenderer(),this._audioEventListener!==null&&(me.remove(this._audioEventListener),this._audioEventListener=null),(P=this._viewModelInstance)===null||P===void 0||P.cleanup(),this._viewModelInstance=null,this._dataEnums=null}
2501,O.prototype.deleteRiveRenderer=function(){var v;(v=this.renderer)===null||v===void 0||v.delete(),this.renderer=null},O.prototype.cleanupInstances=function(){this.eventCleanup!==null&&this.eventCleanup(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},O.prototype.retrieveTextRun=function(v){var P;if(v)if(this.artboard){var U=this.artboard.textRun(v);if(U)return U;console.warn("Could not access a text run with name '".concat(v,"' in the '").concat((P=this.artboard)===null||P===void 0?void 0:P.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."))}else console.warn("Tried to access text run, but the Artboard is null");else console.warn("No text run name provided")},O.prototype.getTextRunValue=function(v){var P=this.retrieveTextRun(v);return P?P.text:void 0},O.prototype.setTextRunValue=function(v,P){var U=this.retrieveTextRun(v);U&&(U.text=P)},O.prototype.play=function(v,P){var U=this;v=ot(v),this.readyForPlaying?(this.animator.play(v),this.eventCleanup&&this.eventCleanup(),this.setupRiveListeners(),this.startRendering()):this.taskQueue.add({action:function(){return U.play(v,P)}})},O.prototype.pause=function(v){var P=this;v=ot(v),this.readyForPlaying?(this.eventCleanup&&this.eventCleanup(),this.animator.pause(v)):this.taskQueue.add({action:function(){return P.pause(v)}})},O.prototype.scrub=function(v,P){var U=this;v=ot(v),this.readyForPlaying?(this.animator.scrub(v,P||0),this.drawFrame()):this.taskQueue.add({action:function(){return U.scrub(v,P)}})},O.prototype.stop=function(v){var P=this;v=ot(v),this.readyForPlaying?(this.animator&&this.animator.stop(v),this.eventCleanup&&this.eventCleanup()):this.taskQueue.add({action:function(){return P.stop(v)}})},O.prototype.reset=function(v){var P,U,Y=v?.artboard,Ee=ot(v?.animations),B=ot(v?.stateMachines),ee=(P=v?.autoplay)!==null&&P!==void 0&&P,fe=(U=v?.autoBind)!==null&&U!==void 0&&U;this.cleanupInstances(),this.initArtboard(Y,Ee,B,ee,fe),this.taskQueue.process()},O.prototype.load=function(v){this.file=null,this.stop(),this.init(v)},Object.defineProperty(O.prototype,"layout",{get:function(){return this._layout},set:function(v){this._layout=v,v.maxX&&v.maxY||this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),O.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},O.prototype.resizeDrawingSurfaceToCanvas=function(v){if(this.canvas instanceof HTMLCanvasElement&&window){var P=this.canvas.getBoundingClientRect(),U=P.width,Y=P.height,Ee=v||window.devicePixelRatio||1;if(this.devicePixelRatioUsed=Ee,this.canvas.width=Ee*U,this.canvas.height=Ee*Y,this.resizeToCanvas(),this.drawFrame(),this.layout.fit===s.Layout){var B=this._layout.layoutScaleFactor;this.artboard.width=U/B,this.artboard.height=Y/B}}},Object.defineProperty(O.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var v=[],P=0;P<this.artboard.animationCount();P++)v.push(this.artboard.animationByIndex(P).name);return v},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var v=[],P=0;P<this.artboard.stateMachineCount();P++)v.push(this.artboard.stateMachineByIndex(P).name);return v},enumerable:!1,configurable:!0}),O.prototype.stateMachineInputs=function(v){if(this.loaded){var P=this.animator.stateMachines.find((function(U){return U.name===v}));return P?.inputs}},O.prototype.retrieveInputAtPath=function(v,P){if(v)if(this.artboard){var U=this.artboard.inputByPath(v,P);if(U)return U;console.warn("Could not access an input with name: '".concat(v,"', at path:'").concat(P,"'"))}else console.warn("Tried to access input: '".concat(v,"', at path: '").concat(P,"', but the Artboard is null"));else console.warn("No input name provided for path '".concat(P,"'"))},O.prototype.setBooleanStateAtPath=function(v,P,U){var Y=this.retrieveInputAtPath(v,U);Y&&(Y.type===R.Boolean?Y.asBool().value=P:console.warn("Input with name: '".concat(v,"', at path:'").
2501concat(U,"' is not a boolean")))},O.prototype.setNumberStateAtPath=function(v,P,U){var Y=this.retrieveInputAtPath(v,U);Y&&(Y.type===R.Number?Y.asNumber().value=P:console.warn("Input with name: '".concat(v,"', at path:'").concat(U,"' is not a number")))},O.prototype.fireStateAtPath=function(v,P){var U=this.retrieveInputAtPath(v,P);U&&(U.type===R.Trigger?U.asTrigger().fire():console.warn("Input with name: '".concat(v,"', at path:'").concat(P,"' is not a trigger")))},O.prototype.retrieveTextAtPath=function(v,P){if(v)if(P)if(this.artboard){var U=this.artboard.textByPath(v,P);if(U)return U;console.warn("Could not access text with name: '".concat(v,"', at path:'").concat(P,"'"))}else console.warn("Tried to access text: '".concat(v,"', at path: '").concat(P,"', but the Artboard is null"));else console.warn("No path provided for text '".concat(v,"'"));else console.warn("No text name provided for path '".concat(P,"'"))},O.prototype.getTextRunValueAtPath=function(v,P){var U=this.retrieveTextAtPath(v,P);if(U)return U.text;console.warn("Could not get text with name: '".concat(v,"', at path:'").concat(P,"'"))},O.prototype.setTextRunValueAtPath=function(v,P,U){var Y=this.retrieveTextAtPath(v,U);Y?Y.text=P:console.warn("Could not set text with name: '".concat(v,"', at path:'").concat(U,"'"))},Object.defineProperty(O.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter((function(v){return v.playing})).map((function(v){return v.name})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter((function(v){return v.playing})).map((function(v){return v.name})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter((function(v){return!v.playing})).map((function(v){return v.name})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter((function(v){return!v.playing})).map((function(v){return v.name})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isStopped",{get:function(){return this.animator.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),O.prototype.on=function(v,P){this.eventManager.add({type:v,callback:P})},O.prototype.off=function(v,P){this.eventManager.remove({type:v,callback:P})},O.prototype.unsubscribe=function(v,P){console.warn("This function is deprecated: please use `off()` instead."),this.off(v,P)},O.prototype.removeAllRiveEventListeners=function(v){this.eventManager.removeAll(v)},O.prototype.unsubscribeAll=function(v){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(v)},O.prototype.stopRendering=function(){this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},O.prototype.startRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this._boundDraw):this.frameRequestId=requestAnimationFrame(this._boundDraw))},O.prototype.enableFPSCounter=function(v){this.runtime.enableFPSCounter(v)},O.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(O.prototype,"contents",{get:function(){if(this.loaded){for(var v={artboards:[]},P=0;P<this.file.artboardCount();P++){for(var U=this.file.artboardByIndex(P),Y={name:U.name,animations:[],stateMachines:[]},Ee=0;Ee<U.animationCount();Ee++){var B=U.animationByIndex(Ee);Y.animations.push(B.name)}for(var ee=0;ee<U.stateMachineCount();ee++){for(var fe=U.stateMachineByIndex(ee),oe=fe.name,de=new this.runtime.StateMachineInstance(fe,U),Pe=[],Ue=0;Ue<de.inputCount();Ue++){var Le=de.input(Ue);Pe.push({name:Le.name,type:Le.type})}Y.stateMachines.push({name:oe,inputs:Pe})}v.artboards.push(Y)}return v}}
2501,enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(v){this._volume=v,this.artboard&&(this.artboard.volume=v*me.systemVolume)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"artboardWidth",{get:function(){var v;return this.artboard?this.artboard.width:(v=this._artboardWidth)!==null&&v!==void 0?v:0},set:function(v){this._artboardWidth=v,this.artboard&&(this.artboard.width=v)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"artboardHeight",{get:function(){var v;return this.artboard?this.artboard.height:(v=this._artboardHeight)!==null&&v!==void 0?v:0},set:function(v){this._artboardHeight=v,this.artboard&&(this.artboard.height=v)},enumerable:!1,configurable:!0}),O.prototype.resetArtboardSize=function(){this.artboard?(this.artboard.resetArtboardSize(),this._artboardWidth=this.artboard.width,this._artboardHeight=this.artboard.height):(this._artboardWidth=void 0,this._artboardHeight=void 0)},Object.defineProperty(O.prototype,"devicePixelRatioUsed",{get:function(){return this._devicePixelRatioUsed},set:function(v){this._devicePixelRatioUsed=v},enumerable:!1,configurable:!0}),O.prototype.bindViewModelInstance=function(v){var P;this.artboard&&!this.destroyed&&v&&v.runtimeInstance&&(v.internalIncrementReferenceCount(),(P=this._viewModelInstance)===null||P===void 0||P.cleanup(),this._viewModelInstance=v,this.animator.stateMachines.length>0?this.animator.stateMachines.forEach((function(U){return U.bindViewModelInstance(v)})):this.artboard.bindViewModelInstance(v.runtimeInstance))},Object.defineProperty(O.prototype,"viewModelInstance",{get:function(){return this._viewModelInstance},enumerable:!1,configurable:!0}),O.prototype.viewModelByIndex=function(v){var P=this.file.viewModelByIndex(v);return P!==null?new he(P):null},O.prototype.viewModelByName=function(v){var P=this.file.viewModelByName(v);return P!==null?new he(P):null},O.prototype.enums=function(){if(this._dataEnums===null){var v=this.file.enums();this._dataEnums=v.map((function(P){return new Ce(P)}))}return this._dataEnums},O.prototype.defaultViewModel=function(){if(this.artboard){var v=this.file.defaultArtboardViewModel(this.artboard);if(v)return new he(v)}return null},O.prototype.getArtboard=function(v){var P,U;return(U=(P=this.riveFile)===null||P===void 0?void 0:P.getArtboard(v))!==null&&U!==void 0?U:null},O.missingErrorMessage="Rive source file or data buffer required",O.cleanupErrorMessage="Attempt to use file after calling cleanup.",O})(),he=(function(){function O(v){this._viewModel=v}return Object.defineProperty(O.prototype,"instanceCount",{get:function(){return this._viewModel.instanceCount},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"name",{get:function(){return this._viewModel.name},enumerable:!1,configurable:!0}),O.prototype.instanceByIndex=function(v){var P=this._viewModel.instanceByIndex(v);return P!==null?new ke(P,null):null},O.prototype.instanceByName=function(v){var P=this._viewModel.instanceByName(v);return P!==null?new ke(P,null):null},O.prototype.defaultInstance=function(){var v=this._viewModel.defaultInstance();return v!==null?new ke(v,null):null},O.prototype.instance=function(){var v=this._viewModel.instance();return v!==null?new ke(v,null):null},Object.defineProperty(O.prototype,"properties",{get:function(){return this._viewModel.getProperties()},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"instanceNames",{get:function(){return this._viewModel.getInstanceNames()},enumerable:!1,configurable:!0}),O})(),Ce=(function(){function O(v){this._dataEnum=v}return Object.defineProperty(O.prototype,"name",{get:function(){return this._dataEnum.name},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"values",{get:function(){return this._dataEnum.values},enumerable:!1,configurable:!0}),O})();(function(O){O.Number="number",O.String="string",O.Boolean="boolean",O.Color="color",O.Trigger="trigger",O.Enum="enum",O.List="list",O.Image="image",O.Artboard="artboard"})(ce||(ce={}));var ke=(function(){function O(v,P){this._parents=[],this._children=[],this._viewModelInstances=new Map,this._propertiesWithCallbacks=[],this._referenceCount=0,this._runtimeInstance=v,P!==null&&this._parents.push(P)}return Object.defineProperty(O.prototype,"runtimeInstance",{get:function(){return this._runtimeInstance}
2501,enumerable:!1,configurable:!0}),O.prototype.handleCallbacks=function(){this._propertiesWithCallbacks.length!==0&&(this._propertiesWithCallbacks.forEach((function(v){v.handleCallbacks()})),this._propertiesWithCallbacks.forEach((function(v){v.clearChanges()}))),this._children.forEach((function(v){return v.handleCallbacks()}))},O.prototype.addParent=function(v){this._parents.includes(v)||(this._parents.push(v),(this._propertiesWithCallbacks.length>0||this._children.length>0)&&v.addToViewModelCallbacks(this))},O.prototype.removeParent=function(v){var P=this._parents.indexOf(v);P!==-1&&(this._parents[P].removeFromViewModelCallbacks(this),this._parents.splice(P,1))},O.prototype.addToPropertyCallbacks=function(v){var P=this;this._propertiesWithCallbacks.includes(v)||(this._propertiesWithCallbacks.push(v),this._propertiesWithCallbacks.length>0&&this._parents.forEach((function(U){U.addToViewModelCallbacks(P)})))},O.prototype.removeFromPropertyCallbacks=function(v){var P=this;this._propertiesWithCallbacks.includes(v)&&(this._propertiesWithCallbacks=this._propertiesWithCallbacks.filter((function(U){return U!==v})),this._children.length===0&&this._propertiesWithCallbacks.length===0&&this._parents.forEach((function(U){U.removeFromViewModelCallbacks(P)})))},O.prototype.addToViewModelCallbacks=function(v){var P=this;this._children.includes(v)||(this._children.push(v),this._parents.forEach((function(U){U.addToViewModelCallbacks(P)})))},O.prototype.removeFromViewModelCallbacks=function(v){var P=this;this._children.includes(v)&&(this._children=this._children.filter((function(U){return U!==v})),this._children.length===0&&this._propertiesWithCallbacks.length===0&&this._parents.forEach((function(U){U.removeFromViewModelCallbacks(P)})))},O.prototype.clearCallbacks=function(){this._propertiesWithCallbacks.forEach((function(v){v.clearCallbacks()}))},O.prototype.propertyFromPath=function(v,P){var U=v.split("/");return this.propertyFromPathSegments(U,0,P)},O.prototype.viewModelFromPathSegments=function(v,P){var U=this.internalViewModelInstance(v[P]);return U!==null?P==v.length-1?U:U.viewModelFromPathSegments(v,P++):null},O.prototype.propertyFromPathSegments=function(v,P,U){var Y,Ee,B,ee,fe,oe,de,Pe,Ue,Le,Me,_e,Ae,$e,tt,ct,Ft,Qt;if(P<v.length-1){var ln=this.internalViewModelInstance(v[P]);return ln!==null?ln.propertyFromPathSegments(v,P+1,U):null}var Yt=null;switch(U){case ce.Number:if((Yt=(Ee=(Y=this._runtimeInstance)===null||Y===void 0?void 0:Y.number(v[P]))!==null&&Ee!==void 0?Ee:null)!==null)return new Ve(Yt,this);break;case ce.String:if((Yt=(ee=(B=this._runtimeInstance)===null||B===void 0?void 0:B.string(v[P]))!==null&&ee!==void 0?ee:null)!==null)return new Re(Yt,this);break;case ce.Boolean:if((Yt=(oe=(fe=this._runtimeInstance)===null||fe===void 0?void 0:fe.boolean(v[P]))!==null&&oe!==void 0?oe:null)!==null)return new ht(Yt,this);break;case ce.Color:if((Yt=(Pe=(de=this._runtimeInstance)===null||de===void 0?void 0:de.color(v[P]))!==null&&Pe!==void 0?Pe:null)!==null)return new bt(Yt,this);break;case ce.Trigger:if((Yt=(Le=(Ue=this._runtimeInstance)===null||Ue===void 0?void 0:Ue.trigger(v[P]))!==null&&Le!==void 0?Le:null)!==null)return new dt(Yt,this);break;case ce.Enum:if((Yt=(_e=(Me=this._runtimeInstance)===null||Me===void 0?void 0:Me.enum(v[P]))!==null&&_e!==void 0?_e:null)!==null)return new ut(Yt,this);break;case ce.List:if((Yt=($e=(Ae=this._runtimeInstance)===null||Ae===void 0?void 0:Ae.list(v[P]))!==null&&$e!==void 0?$e:null)!==null)return new $t(Yt,this);break;case ce.Image:if((Yt=(ct=(tt=this._runtimeInstance)===null||tt===void 0?void 0:tt.image(v[P]))!==null&&ct!==void 0?ct:null)!==null)return new vn(Yt,this);break;case ce.Artboard:if((Yt=(Qt=(Ft=this._runtimeInstance)===null||Ft===void 0?void 0:Ft.artboard(v[P]))!==null&&Qt!==void 0?Qt:null)!==null)return new yn(Yt,this)}return null},O.prototype.internalViewModelInstance=function(v){var P;if(this._viewModelInstances.has(v))return this._viewModelInstances.get(v);var U=(P=this._runtimeInstance)===null||P===void 0?void 0:P.viewModel(v);
2501if(U!==null){var Y=new O(U,this);return Y.internalIncrementReferenceCount(),this._viewModelInstances.set(v,Y),Y}return null},O.prototype.number=function(v){return this.propertyFromPath(v,ce.Number)},O.prototype.string=function(v){return this.propertyFromPath(v,ce.String)},O.prototype.boolean=function(v){return this.propertyFromPath(v,ce.Boolean)},O.prototype.color=function(v){return this.propertyFromPath(v,ce.Color)},O.prototype.trigger=function(v){return this.propertyFromPath(v,ce.Trigger)},O.prototype.enum=function(v){return this.propertyFromPath(v,ce.Enum)},O.prototype.list=function(v){return this.propertyFromPath(v,ce.List)},O.prototype.image=function(v){return this.propertyFromPath(v,ce.Image)},O.prototype.artboard=function(v){return this.propertyFromPath(v,ce.Artboard)},O.prototype.viewModel=function(v){var P=v.split("/"),U=P.length>1?this.viewModelFromPathSegments(P.slice(0,P.length-1),0):this;return U!=null?U.internalViewModelInstance(P[P.length-1]):null},O.prototype.internalReplaceViewModel=function(v,P){var U;if(P.runtimeInstance!==null){var Y=((U=this._runtimeInstance)===null||U===void 0?void 0:U.replaceViewModel(v,P.runtimeInstance))||!1;if(Y){P.internalIncrementReferenceCount();var Ee=this.internalViewModelInstance(v);Ee!==null&&(Ee.removeParent(this),this._children.includes(Ee)&&(this._children=this._children.filter((function(B){return B!==Ee}))),Ee.cleanup()),this._viewModelInstances.set(v,P),P.addParent(this)}return Y}return!1},O.prototype.replaceViewModel=function(v,P){var U,Y=v.split("/"),Ee=Y.length>1?this.viewModelFromPathSegments(Y.slice(0,Y.length-1),0):this;return(U=Ee?.internalReplaceViewModel(Y[Y.length-1],P))!==null&&U!==void 0&&U},O.prototype.incrementReferenceCount=function(){var v;this._referenceCount++,(v=this._runtimeInstance)===null||v===void 0||v.incrementReferenceCount()},O.prototype.decrementReferenceCount=function(){var v;this._referenceCount--,(v=this._runtimeInstance)===null||v===void 0||v.decrementReferenceCount()},Object.defineProperty(O.prototype,"properties",{get:function(){var v;return((v=this._runtimeInstance)===null||v===void 0?void 0:v.getProperties().map((function(P){return w({},P)})))||[]},enumerable:!1,configurable:!0}),O.prototype.internalIncrementReferenceCount=function(){this._referenceCount++},O.prototype.cleanup=function(){var v=this;if(this._referenceCount--,this._referenceCount<=0){this._runtimeInstance=null,this.clearCallbacks(),this._propertiesWithCallbacks=[],this._viewModelInstances.forEach((function(Y){Y.cleanup()})),this._viewModelInstances.clear();var P=_([],this._children);this._children.length=0;var U=_([],this._parents);this._parents.length=0,P.forEach((function(Y){Y.removeParent(v)})),U.forEach((function(Y){Y.removeFromViewModelCallbacks(v)}))}},O})(),be=(function(){function O(v,P){this.callbacks=[],this._viewModelInstanceValue=v,this._parentViewModel=P}return O.prototype.on=function(v){this.callbacks.length===0&&this._viewModelInstanceValue.clearChanges(),this.callbacks.includes(v)||(this.callbacks.push(v),this._parentViewModel.addToPropertyCallbacks(this))},O.prototype.off=function(v){v?this.callbacks=this.callbacks.filter((function(P){return P!==v})):this.callbacks.length=0,this.callbacks.length===0&&this._parentViewModel.removeFromPropertyCallbacks(this)},O.prototype.internalHandleCallback=function(v){},O.prototype.handleCallbacks=function(){var v=this;this._viewModelInstanceValue.hasChanged&&this.callbacks.forEach((function(P){v.internalHandleCallback(P)}))},O.prototype.clearChanges=function(){this._viewModelInstanceValue.clearChanges()},O.prototype.clearCallbacks=function(){this.callbacks.length=0},Object.defineProperty(O.prototype,"name",{get:function(){return this._viewModelInstanceValue.name},enumerable:!1,configurable:!0}),O})(),Re=(function(O){function v(P,U){return O.call(this,P,U)||this}return g(v,O),Object.defineProperty(v.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(P){this._viewModelInstanceValue.value=P},enumerable:!1,configurable:!0}),v.prototype.internalHandleCallback=function(P){P(this.value)},v})(be),Ve=(function(O){function v(P,U){return O.call(this,P,U)||this}return g(v,O),Object.defineProperty(v.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(P){this._viewModelInstanceValue.value=P}
2501,enumerable:!1,configurable:!0}),v.prototype.internalHandleCallback=function(P){P(this.value)},v})(be),ht=(function(O){function v(P,U){return O.call(this,P,U)||this}return g(v,O),Object.defineProperty(v.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(P){this._viewModelInstanceValue.value=P},enumerable:!1,configurable:!0}),v.prototype.internalHandleCallback=function(P){P(this.value)},v})(be),dt=(function(O){function v(P,U){return O.call(this,P,U)||this}return g(v,O),v.prototype.trigger=function(){return this._viewModelInstanceValue.trigger()},v.prototype.internalHandleCallback=function(P){P()},v})(be),ut=(function(O){function v(P,U){return O.call(this,P,U)||this}return g(v,O),Object.defineProperty(v.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(P){this._viewModelInstanceValue.value=P},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"valueIndex",{get:function(){return this._viewModelInstanceValue.valueIndex},set:function(P){this._viewModelInstanceValue.valueIndex=P},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"values",{get:function(){return this._viewModelInstanceValue.values},enumerable:!1,configurable:!0}),v.prototype.internalHandleCallback=function(P){P(this.value)},v})(be),$t=(function(O){function v(P,U){return O.call(this,P,U)||this}return g(v,O),Object.defineProperty(v.prototype,"length",{get:function(){return this._viewModelInstanceValue.size},enumerable:!1,configurable:!0}),v.prototype.addInstance=function(P){P.runtimeInstance!=null&&(this._viewModelInstanceValue.addInstance(P.runtimeInstance),P.addParent(this._parentViewModel))},v.prototype.addInstanceAt=function(P,U){return!(P.runtimeInstance==null||!this._viewModelInstanceValue.addInstanceAt(P.runtimeInstance,U)||(P.addParent(this._parentViewModel),0))},v.prototype.removeInstance=function(P){P.runtimeInstance!=null&&(this._viewModelInstanceValue.removeInstance(P.runtimeInstance),P.removeParent(this._parentViewModel))},v.prototype.removeInstanceAt=function(P){this._viewModelInstanceValue.removeInstanceAt(P)},v.prototype.instanceAt=function(P){var U=this._viewModelInstanceValue.instanceAt(P);return U!=null?new ke(U,this._parentViewModel):null},v.prototype.swap=function(P,U){this._viewModelInstanceValue.swap(P,U)},v.prototype.internalHandleCallback=function(P){P()},v})(be),bt=(function(O){function v(P,U){return O.call(this,P,U)||this}return g(v,O),Object.defineProperty(v.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(P){this._viewModelInstanceValue.value=P},enumerable:!1,configurable:!0}),v.prototype.rgb=function(P,U,Y){this._viewModelInstanceValue.rgb(P,U,Y)},v.prototype.rgba=function(P,U,Y,Ee){this._viewModelInstanceValue.argb(Ee,P,U,Y)},v.prototype.argb=function(P,U,Y,Ee){this._viewModelInstanceValue.argb(P,U,Y,Ee)},v.prototype.alpha=function(P){this._viewModelInstanceValue.alpha(P)},v.prototype.opacity=function(P){this._viewModelInstanceValue.alpha(Math.round(255*Math.max(0,Math.min(1,P))))},v.prototype.internalHandleCallback=function(P){P(this.value)},v})(be),vn=(function(O){function v(P,U){return O.call(this,P,U)||this}return g(v,O),Object.defineProperty(v.prototype,"value",{set:function(P){var U;this._viewModelInstanceValue.value((U=P?.nativeImage)!==null&&U!==void 0?U:null)},enumerable:!1,configurable:!0}),v.prototype.internalHandleCallback=function(P){P()},v})(be),yn=(function(O){function v(P,U){return O.call(this,P,U)||this}return g(v,O),Object.defineProperty(v.prototype,"value",{set:function(P){var U;this._viewModelInstanceValue.value((U=P?.nativeArtboard)!==null&&U!==void 0?U:null)},enumerable:!1,configurable:!0}),v.prototype.internalHandleCallback=function(P){P()},v})(be),Wn=function(O){return m(void 0,void 0,void 0,(function(){var v;return b(this,(function(P){switch(P.label){case 0:return v=new Request(O),[4,fetch(v)];case 1:return[4,P.sent().arrayBuffer()];case 2:return[2,P.sent()]}}))}))},ot=function(O){return typeof O=="string"?[O]:O instanceof Array?O:[]},sn={EventManager:ae,TaskQueueManager:te},qt=function(O){return m(void 0,void 0,void 0,(function(){var v,P,U;return b(this,(function(Y){switch(Y.label){case 0:return v=new Promise((function(Ee){return k.getInstance((function(B){B.decodeAudio(O,Ee)}))})),[4,v];case 1:return P=Y.sent(),U=new h.AudioWrapper(P),h.finalizationRegistry.register(U,P),[2,U]}}))}))},en=function(O){return m(void 0,void 0,void 0,(function(){var v,P,U;return b(this,(function(Y){switch(Y.label){case 0:return v=new Promise((function(Ee){return k.getInstance((function(B){B.decodeImage(O,Ee)}))})),[4,v];case 1:return P=Y.sent(),U=new h.ImageWrapper(P),h.finalizationRegistry.register(U,P),[2,U]}}))}))},Pn=function(O){return m(void 0,void 0,void 0,(function(){var v,P,U;return b(this,(function(Y){switch(Y.label){case 0:return v=new Promise((function(Ee){return k.getInstance((function(B){B.decodeFont(O,Ee)}))})),[4,v];case 1:return P=Y.sent(),U=new h.FontWrapper(P),h.finalizationRegistry.register(U,P),[2,U]}}))}))}})(),i})(),W8.exports=q8()),HA=pC({__proto__:null},[DA]);const Af="https://play.hey.gg";
2501nm.setConfig({apiBaseUrl:Af,legacyUserIdProvider:()=>{const e=localStorage.getItem("authToken");return e?{param_name:"wiki_game_token",user_id:e}:null}});function BA(){const e=encodeURIComponent(window.location.origin+"/");window.location.href=`${Af}/sso/logout?redirect_uri=${e}`}function Xh(){localStorage.removeItem("heygg_explicit_logout");const e=encodeURIComponent(window.location.origin+"/play");window.location.href=`${Af}/login?redirect_uri=${e}`}function e0(){localStorage.removeItem("heygg_explicit_logout");const e=encodeURIComponent(window.location.origin+"/play");window.location.href=`${Af}/register?redirect_uri=${e}`}async function GA(){await nm.Auth();const e=localStorage.getItem("heygg_jwt"),t=localStorage.getItem("heygg_user"),n=localStorage.getItem("heygg_anonymous_id");return{user:t?JSON.parse(t):null,anonymousId:n,jwt:e}}const UA="https://api-prod.thewikigame.com/api/v1/".replace(/\/?$/,"/");async function zA(e,t){const n=await fetch(`${UA}auth/login/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:t,heygg_jwt:e})});if(!n.ok){const i=await n.json().catch(()=>({}));throw new Error(i.detail||`Login failed: ${n.status}`)}return n.json()}function VA({children:e}){const t=fs(),[n,i]=z.useState(!1);return z.useEffect(()=>{async function o(){if(localStorage.getItem("heygg_explicit_logout")){i(!0);return}const{user:s,jwt:l,anonymousId:c}=await GA();(s||c)&&t(eC({user:s,jwt:l,anonymousId:c}));const d=localStorage.getItem("authToken");if(l&&s&&!d)try{const f=await zA(l,Ys.PUBLIC_GROUP_SHORT_CODE);t(Eu(f))}catch{}i(!0)}o()},[t]),n?T.jsx(T.Fragment,{children:e}):null}const WA=vo.injectEndpoints({endpoints:e=>({getCurrentRound:e.query({query:t=>`group/${t}/current-round/`}),getCurrentPublicRound:e.query({query:()=>"group/public/public/"}),currentGameClick:e.mutation({query:({longCode:t,link:n,roundPk:i,mobile:o})=>({url:`group/${t}/current-game/click/`,method:"POST",body:{link:n,roundPk:i,mobile:o}})}),startRound:e.mutation({query:({longCode:t,challengePk:n})=>({url:`group/${t}/rounds/`,method:"POST",body:{challenge_pk:n}})}),getRoundResults:e.query({query:({longCode:t,page:n,active:i})=>({url:`group/${t}/round-results/?page=${n}&active=${i}`})}),getRoundStats:e.query({query:({longCode:t,roundPk:n})=>({url:`group/${t}/round-stats/?roundPk=${n}`})})})}),{useGetCurrentRoundQuery:i7,useGetCurrentPublicRoundQuery:qA,useStartRoundMutation:$A,useCurrentGameClickMutation:QA,useGetRoundResultsQuery:a7,useGetRoundStatsQuery:bP}=WA,YA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABLCAMAAAAGeyqiAAABfVBMVEWgnmafiCH05r3QzH3778f/94zivU7//Of86qj46oXLiQXqyR/56a7SlgjpzYr/85P/9bDmwUP87bXs1p7//fDOjg3fwXP/9sv++uf57o6JfUW8uXT04aDjuBb+8KTgwSv999rdsz/34WL87rjoy2mNhlngtzT//OT97Xru15HKrA3fug3GgAP+8rz+8rbaqyj/98jjwgfapg7/8bTUnRPWpCP97K60nS365WT542L75GH75Wr952X96G/+6GP+6GP/6WQAAAD+6mhdUBf/7q733Sr/6p386Fn/8ab/540uKiH93z3+4EwiHx9bV0Y9OjD/9Jzt3GBoZVVMSDva2Mb/8Y63nA7Hul7/+9nczWn/5H//43M7NBt1cE3/9q6KdxSAfXL/4Wf/97312xykjA3/7nuupmVvXxOemGGWgA1IPxl/ahaemoz02Bfy0QvwzAHOy7m1sqT/4Fr01RCNgDPh4dFeSAazJzcgHR2fMCvm59nCIz7vZFc7NB3AIj7anbJOAAAAQnRSTlPw/e2u163mxPGi3fzU4dtKYfTC04Tb2k7dh/zmwfBx+6jfZrPs/unxfe/++dqgieX+/uc639/h/lZFNCUaEQoFAQCcr5wQAAAJ90lEQVR4XsWYZ3cTyRKGWViMsJGzZQyWFUfYIxSDPaOwaCdH5ZyjcyRsuOm33+oeCV+MfDleOGffD4w9dD/nra6a6nY/+vXH6m/hpQ39GB6mvUOC53fzDNgvSIgI+g5eekpLpZLJVAqIGPkXeRg2oSWW6AQQb00+nPe/tARFvI4nsMeJyQfzbgOl6Hj8ebGwG4/TS4CElUTAh/IAh2mJrcJrmrZks09o+riwhE0C8IE8sAe45a1EPL7btlDOradPd53Uo2Mqnoj7lwAIBh/Aixj2HhUomqKcu7u7z19bnsPDSdH0VvaJwUuk/j8vkZjQUj5uPZ3+JZXc2QLG00cEQbSPiTY8XgN068lyEgFTb/Y3p5TILJ6fc+H3myaBq22CvWScflootKv5alUbDrVqlTlsZ4gtOp5AvGcDQXIhiyn/PjeLF+EEYX8n4hJkmeu8SUKZ0NTuYZX/cKsLlXjtpDBwPdiBgabliE8ShNWZ+eBkuSELjWajIXUGz5KJOOXbNrWrX4jY297eoePJzZrUkRuNJkyBOTszeS74/z6o2ZQ6naA9TvktAU/11atXHyeCH6uBWHRth156U85JcrOJRzeEyEzejtzsvwf1+x1Qze+3xDyeuZWF0Rnb0nWFPRp5rR7gxX7eeVkulyW5j4YD0TS7XiIy4DRNe9+XOlKu/MYyH3OseLuKkiGqoON2Vj8irQDceJkbj8tSYzK675rN8zX67zVVVQEoSGAgOG+2nSiZQ4a/wOLFels/8wbMcx2GGUu3o00z412WmwjHI15TkMDBnpfNHmoI9eECkgtS65kW6QlqIuCawJuMfpH6mrcpoBGq4Q/WWGLEhdNCfgiwiTBSJBRS1cacjHmT0fKLr3gR03QEWhJZkLjgwmlbxLTLiTBRPVTIMidJMopXw6Mhw767PBMnyA08RIN0gCSNVV51u5UQRk2JXpI8OFYWmHGu0+FknI9mQ5YFbueuv/WXtUGHa0IBCIPaQMrVWR1L6V5eXl1dXV
25015dXnqPFPzqD1aF9NZqHTRahlqt2ZdTd3gTpADlBKkY1FaUbO+mVLo+L+pHiAYa6Xq2d35+XlB0Nj+o5coSFGwj+Ma+ObteoOVFXPDJlRlGtCmF69InpFIPgAZOOS+hd6Xrgn7aZMblHNdomJZRc5jFwy0qbpIlUdRUNlP69A8sBCQBF1KUG3g3fdUVASjJwlYiCbz0DB7Ygw7lk2RNPTjTbwzcTe/mU6nIAu9E72GcASwqHw+QQW6HRt1rBg86fCoR91ncJulA1zMljOvpeq933WtVKhVWuT5X9My5ATyHRDWDNVNsbTmenM2DDpqgF99uxALA6xk8SGYh04PJoOIN5ONGKWHeta6fuudisY23LuiGd3lYKFzK8nZ+Ixpg9Z4RGgZlbnmgGyNgnQ04HIB7u00jXnqGvynPHLYqBcNfBhEK5zoZCrET3vXE309zgegG8J7jBZzFSwFvEfkLh9mskcprKGDlptAKQT6Ua0TPTNfvIByOmoHng259Dy9BOxdjsRjwutNklm7Or29wAZJ67xrWsjTJb8uKeRsbPmo2L+VfX7fbH+/tP35s2qt/Ljao3qxCXoG6X9Tfwd5EL+329fXNr3jpCNfp5MrlMYPKWSV1sANfQ6kERXJyhXX6+fvo6S1eE6GioQShMXS41XT6Ls8vCwaPETWGyY1g4TK9XiGrt0ZXhkKs8f3Cuz+O5PJ4jHkS4GTh3Ve81SY0ZSknDQbBQa4sDpU2ewpiu5CLqUZGz/k3oZzwTLkTDAY5wHVg24zc4aUjAvQe2Es5MDkGk6EWwV+GQgD7QqHKaESG+KpytIAaQgd1TehaTdcX/Sq1sy/3cW+EbgYrMhBIpc1c4Mb8BW7Spi+GzeKpLSfB2klGD4YOHbnlvRAaeOt43+eCtdqgLJIKoUGrB6ANHpdTzILtwOBdDJm2UmkOgrUBGMGbSIPbvPXnFwxeMziAeMWRfqgOMe/DT+xZ9wCr+5H9jbUBD+HgfHSoj6BNBwWD19if+sOKvDDilSBeBnA8zIBZYOXgt1t1bR8ApzLqEMTXlZEILRDHK/tTd/aPRh9vVJ1OuaLUAQcOyjxMv7B9PPrzz9//88/fzw6Gl9henjgUeQTUvWUOej7M3L5bLxEZcsEJAlfLK8cIp9YLeYgYzbf9C2ll4cM0G3U9i4hq+wh2Tq4jNZvbX+2/ghB8ad/ac3tOsiIKpq0TPN59MQKEacbPPKEDMS8S7Irb5X9W4+TVu7wE59tMxp2L5jBL8HyeUHTAAoWBmLEmtCGPsiEWuyN05qqEo9APEuv7d/dzABr9bz58VqgeZ08rLZyTfB0sIgEK60LOD0FVJeQlK2TYPG/0v8R9/Xne7GV1drQwQlEPmUwdhTrkEQpKCJTPViEXWvFkxRMG3Pw24t3TnxM08KJWq21lAdsT24qIGCL+t55HaLWoH2tDnmBtHk8gOv/WRd+3f6CGaofjZ8Dj2cP2tLZegFKD5ccuqwQ4HPLHitIWh1V9wYOOlmt+1E7v33/tDgCaNEgK4FotYgiqK1VU3IRexb/pJJzjqvqKA7a3tXv3X3w+gDO93RLbY1SYysPBTEEEta0fwgN4WZQLMVuxsbpyppowLp6EcGfz8A5M2YNMjleqIuBCeh3nUkE2+XaXJVT0PGu8JyvDATN4sUsBbvb5BfQOpWQ5OB5o2lm2qJD1ii6CnwxwkM1M14sjPjy1meAINu6UB744jvYeXhpS4g/muHJuzI9OFtzuk4yKwg514QmJHeW7RRH86l4PBwdKSZCCviTGzeaBwwgnCc1Bh+Hcc273CuKI2ZF3VASeCHuaDZWRqFc8jmBuIPUb8moK/S08m4cdrjbeazI3cDvm5uas3QzPH7YWrEbcOrnnhjpCvEBgDhqfqslLRm7v5/kbmtoX3LGYwxEOgz+wZ7N69ToKM+Tes50SPKOTUHlurqlqDT/g7uWBUiboj4Nn9jVHLGoOj7IMsmcNKVW8bLAGpH5MtLzRqGX1mdQXBNM3eAn/jk/+maad/lWH2exVikoFPlMvKu9j1uuBNa20WqR50bVLLf1siiQj6W/dH7xLujbh2oBy+izmMNmtWAPhMBgVeYK1hmFRPVaveXHLSccTSxHI7bd4aVzWyUScptCnFwsEomZz2Av1XTwJmx2gAOAowCWNe45v8HAVYiJNuRxRkHnebLaeKIRCms3RGGhtl5rSAPctHuizRfuiZXt7e80BPWzEkmHLGvxmeeEHc5gGuJm82ZdDCEhTFOWE3FiiYc+ea9fppCh6Guqv6YfcDxkxJ+IgoG651nwAo+E3oAEOh/oQ3ufrKwylkTAKYJOVexgPEwFpQBNIGDW9WPxr94nvAIqNIhkklIbvuO+8vT6dXiWmv/d+Nz3VD7t/xjb/lvvs/wJAW1d4Ug0EqQAAAABJRU5ErkJggg==",ZA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABLCAMAAAAGeyqiAAABfVBMVEVsdXmTnqHBycy+w8W4wcObpKfP1tfR19jb3+HO1NXZ3t+KlZjK0dPS09SyuLqUmpzAycvx8vKepKbN0dLU2NrAxMWhqazw8fGmq63d4eLR1dfEysy5vL7c4OHa3N3Gycrh4uO8wsTc4eLL0NGut7rd3+G9w8XV2drb3d6tsbPo6uq2v8LS1NXLzc5sd3u5wMK9xMV2gYXZ29zk5ueosbR8h4txe3/q6+y4v8G4wMFqdHi4v8Hw8PHl5ua5v8GEjZG4v8G4v8FncXW4v8G4v8G4v8G4v8G4v8G4v8G4v8G6uru4v8G4v8EAAAAiHx/09PQuKyv39/dIRkbS1trKy8yLjY9WVFWrrq9gX2A8OTqHhobi4+TM09dsamuVlJTX2t35+frFxsicnJ5TUVGjo6PBzNO/vcB3d3hsbnC/y9F8fX65xczG0Navu8GMmZ80MjM6T1bm5+i8x86bpqyytLVfO1BTZm29ydAsQ0vrHVgfHR2CLk/oQnK6WHrKf5qaU0zFAAAATnRSTlPb2rB6xNrO2sG/qdq09uPgyf7l55Tj2+rjmm3a6oT16fDc197a/WV74ufp2ezw2k9Z2u3j2dra9zNG2i359EDbOR3aEygQIhcNCf4FAQAUgw6gAAAL5UlEQVR4XpWYB1ciyRbH7Z1pUVG0RDCg0EiUIIg4DUM34ophHLeqAzlHY5i8+/Jnf7eqcd3jwznPPzOtp2b8eW/dUNV34ref6vz8/PkKfH6iiZ+xQB/Z82nho7Hyeh6gPn78AIIvDEBhTwuv5bEfPj0EHZ2OkAA7PTo8MRbOX8UDHNBODvKg44OTIzCKwk4OjtnCIRDPX8n7cHSQT2XT6WwulT8Ao8CyY7aQzqWOTyjwFTxw9vQgnwtMbW7OBmLpXCZ/fJzP5NLxjV9Mptl4Ln9yCmF5De/DST67sWkymZL820A8ls5m07H4UpjjvF7vpD93fPiCgRMv4A6Pc36KM7k5Ljm9tOb3ry0tcBxn94KmY6mDFwycGBsM8DaVnjFRbdpB7s2pKVPYztvt3nDY6w1vZPMnHwzgz3lGmjFv17xhoAWDbovFYvOAbBaL1+twuMPe5ELM8Bj0Mo+xGI16G5vleKDt7gZdVmtEEIRExOqy2UweAPL8UixzcETTkDJf4I1Yp6eQGanYmpeze3Z3Q6GQ7CzXaqVarTwnJ4LBoMnj5rkFfzZzfAKZbeT6OB6jQc5C0mZyMf80b/fadkPL8kDD1X6z1uxXsdbyybtBkzvJ8avxdCp/TBOTIs+f8wzc6SEUQCqXTcf9U2He6/aEpJZSbXX1xt1w2NC7PU2piaGgzWLnTat+SKIUJOYJ83sM78MR+EnTbG1pZjIcDrs9iblStdceXj9qqH/XtK5gtVkcps3NmQ1/nOY6VAsAn/Fojpzkc/GN2bdhN6SYVfBYE12l2aC0P5gYsl1TyoLVExJMoHD47S+BdIqF+rl9LIU3wmZQ1GuTiBgJdZWe/kj7Ch+GbPTwQNgNqZ2Ex7q4bzZzC2spCLUBfOKxFF5zJDmzWXTyBKkJwadclnv3lDWSQbzrKd3lXQkRqwUtwm9PTkNyj+EdHedWvcmkPUrWnYRIiTkNU1VrtxTFHuUbrYo/9auavBxSUWcRSfN8MhkOQPU949Fo5LPTyaTXgtQVlaBET1EqxUGx+Qlr97e3t1/h7xXGitYsVTGuyCGRIFcCRbzepHc1dzyGd5hPU14EqbaOHOnhZrft8/najRus3TJVsFJs6O22flbBmhCJwBYjKWnwjsbyZiCwAuq4rEIbF3Vf/Quo3i7iS4or4mq3XYe1el0v4r4suiICUu3A23jOAzEe7J9bREQgX0olndIYUL/8RD3+pJy1638u4UFBlWVEgOcOgL9j4pHPBrj1hIxUUsK47KOsdh8rN2dd/HB7+w039WK/UjaAXQXjC9JBZFHkw/HcwTjecTaQFKNRRAjGuM
2501FMKWKsdft6FVMNIB5nWtnYhAp8ryKk8urKwos8v424okiVKxgb7tYYqGBkThewVVxhBrYvcSmaAN4iib4dx4PyyGf9EeRzEVdCunyyD3Sh9YvFK3zGsI88bTkk2mTfFhGm4yweBnDiqXozsTcCEldWhI7Qe9w/BVOPaYDLuHVDeT0jIFopFESSZT2KUNKfzbMKZjwDx6o3PiMgYpEJskZxxXC40Ow3C5e4B/HVKoU+xpfMPN8Zbu0GBUK2nAi5A7GnCmY8wB0dpGIBUwQhFUo3GCrh4ig56u2ywirkAQ/ahS8GTi8pzt2gR0JIQrJ90p/OHLATfsSjuEw6sBlyqYgQwC1HFXyjt331uk9vKcq3W6qSMoAcB7UbFXwT2g1uegiCqnMmp8DjUROcMDYPcGubHhGyDwmR5d3l5S7E8mYwGBQ1qDKAMSCulBu63i1+wv8oLANQtiGEtjor3il/jvUYg2ccj5NutyjZVORSZeBJlU+fMJVSYdYx3cBSFZaVqiZRXieRIFDHFrt3Kj66MkxQ82Dz4gvmvX0BRRPrInNYGijd8kOx+A227kn3xUqlVLm5/65cATBIVJtogRox75ln6RYynpF6s4Azz0GvchFiC+7KZ0pNv4ZOejtGf1wPu5qmC0GZiHYBqfv7e3scawqGfR9OMvHkDvDWEXKKyGlNyAPca1xT3lfGZH9of769p084mdpN5UyIqGpURfV9MwAXjCScYNuXWjNT3ryEVFW1CvJAKTeG7OR4uHr4dn//dXh/f//wcPX71e2IN9TpOSLRlrBlBt6ON/0XXmbNbjbzdnldRURMqFfKRWNo8K4f/gb6/BkeoN+/gq71uyGocQGbqBIkR2xJOHYcj7zfaHjTk3Z70t5JRAkR5Bvlgv2E7oOz6Lr8++fPP378+OcP7fPDNTuU2r2uDsC7C2XQIZIVCQ6PwzSTPT76cH7O9g+OooAbrmWIROVOpGzgGoVy45odlN/+/XfQv/5zC/Fh3upK5TsQ4aQjxCUhq8Ph2YynHuPLekF6KWyHWCGXLFdbgLtrXOLCkHpMCcOLiy6LjnFkDssY97/rdz5coD3L5vBMrrFDk/FG1bsatlsIItYL3BjetYsKrtGQDBtAZJ9HGgvGZbWmaLVKVZQIEt2eyTdG+jHe6Hobg9uxEyH1DOvtXrV6pTSGoLoOjEckxbXbLBjKRX1QuWoDDq04NgPpUYcxeKzicvElfl9EhGhQVC1UqtGY6LU7GuYhRUHEwbrGJY39Xa2kqrKqEkiXvSQ0LKPaGA8EVzUo4fgsNw88dHZG0AUzr6G12O3qC3006vQ5bOEWxKKL21ICcOqWmV8dFe8TD4CsAdqciyIhsthRwTyKw2WwatguAxUsg6sbJeFme9iullXobuq6RX4L7c94H3niGUnoD6viulOVZbWAwTyfpmCKuOs17ygVG1tQbWmVht6vdWyquJUgrgUwz9i85/cXv0NG6pwtIqutvj7Um1pN09nm94EOPHxB0/jyql6C8F50bBEbFKhl+uXz0rGCQBGB1PqNdlOr3zSp15eYYc/wlUaDO1AQGpRqhNhkgkiEn46nXuAFwvw68Aghg+r3ilYgpRpwCriFKaeM69Ui5eNCR52TIBYIkQRnN42zj/m7muTtFokS0U316ouEFAiH3r/SMfW3p5ELRYcFrdWRrASB1Chv5x1rwBt7v1oCHj/vklRCJEguVaLh/a7UEf06rJUIqjQbdANVwaoios7N7wPPG3jpvjZl5837K3OLi1FBCEpqpw1+QiAlSRtQ3hWSdFyg4I7Vmkhsza9H9/fMfPKl+192ltuBtgreyglrUFAha9pgnk8W6T42+jVRkq76OvAkm9vlFFWojb2ddzzljY3HzN72u529RZXtoNghBJfBPFmQa5UG8FrC8rKs9HxaS6KNFJHoDuC2zRsQ37H3+w1uG4CcC2JnhLnSLCq+RCRRrkJFKGeRUGi5q1SVOmHRiJop7p03nhlzv2eH8DS3s22GV1JbQhQ7HdlZKFULaqfT+YK7kM4XHRWJ8tzFnNSBLr8+z/Hczrs9HsJxOIYHFZzJbizAS6/HIyWsi4sr604wlBBVEtXKZeM7lmAHCLSV6PrW4lbUGbEn4e36F9pJwd1nPKOr0pFDYGl1aldFBEQfUNHrTki8QaXiW4/QtdE/ieHp1Y1ALJvKG63vOY8CT44z8HoZi/uXwDIqItm2ZJV05AGu6qq0bhNVY51svvHH2DDFGJ6Mff8djWyolW9sEZ+KZJfdRWhV2SKCk4Bkt1WW1C9zlrd+sCzzOOw5H8MzJlZspAQbGVvifjVzsEMIVLe7bTZbhJEhWu757eSbWI6OeU5PGe38pfkBQ4Lf0KwXzDxvT66ICKnzbErCCfCt1eEBonk1lgM/n4ZlT7xxMzp2H9zwcgDkzVHnyjs7lXlvzrkYdlCZ2AXSYAHtZd6IyQ7QSTsA+Z3t9++3k16Pw8tvv594l2S41dHxyFg/5z0ldyDMgSbev9+zTy+9CaxOcju/vqfZ7th86vD/H8+4Ac94OW7/1z1+dg3mBHR8tcDtvHcDzhgPvW4edggez4STXPgXyNlcKgOJmY5tLCQdHsDBMOfja3gMCMOOtdWAP00r4AREx3+xtY2NeC5jVMRreMzCfCaVSmXYPJKNJx8XTijuNTwQTW3IbLBsNEA1FugK4AH3+vkuACD/jQJ4mm6xLAbc63gAZISnAmBEY+X182emEeivprB6+Jn+C1Y/R5SSudwZAAAAAElFTkSuQmCC",KA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABLCAMAAAAGeyqiAAABelBMVEWUjo7Yuq3Yv7a8ubny7erhxrnl1M3j0czp1s3dwLHt4NrjzcPj393PppX28vGtpqXEvL3x6eb17enLr6fi0s64k4jMsanx6OTMsanr4N3v5ODy5+HY0NHjyb2zi3/o08nNs6uuhXjgxLbj1M/YxL7l19Lv5uPl2NPaxsDi0s3VvrjQyMnky77bu6zl19OuhHfv4drr2dHYxL7Su7TWs6Ldv7DYxL7w492tg3bmzsPZt6fr2M/mz8StgnXp1MrJnIiug3fu3tatg3atgnazjICsgXSvhnqsgHOrf3KuhHgAAAAiHx8tKShwbW6bl5dSR0JKPDhWUVJJRkZlXFk9Ojo6MjDWr5zRqpeBbmbKnYi0rq/Mn4pjTknPpI/Do5KOa2CNeHCfemzd1damiHqJh4d2X1avlIjImYSjoaHEk37o4OG6l4l9enqYgne7jXmGgIFrZ2jl3N65nI3FlYCrkILHl4LatqPJm4ZiQUHmF1O5XW8gHR3bfIe5L1V5LAnuAAAAS3RSTlP+upT99t60osvavsb42fn9/pbxQ5RYcvJUbqvt/tpM3GNE2j10SoJUgTAT/t7aYTvc3RsM2t4n6DPh2uTbK+LaJOcdFwgRBQsBAgDQceUwAAAK1ElEQVR4Xs3Y51vbytIAcIIxIFoMjruFjXDDRbbAQTYSDgolyVm590LvLf2UW97//Z1ZyezJ41zy4X654zw5RJznx8xKmh127Lefxfv3v72nf5nxgQZ8gRc/4GX8H34WP/FMgcXBhwMa8AX+MXGM5zymMcWIvb0NGnvDC/hd0/yVZ2oGA9IeYvH4OkR8Y+MdvXBAYSY+41GOWnvvjNjfj69vbq5BbK7H4/v75mVkDxjIvFEOMAph7O7urm+urYbDkWh4FcT13V28TNknccRjHCYHGkAQbyF2UIt6Jjk+IkZB3NmBi/hNIFFE8Oce41ADaWdn2x4N20FbnBYEgfd6xKhHFMPbO4ia4gFLcMRjHGDb27mcPWoXI5GIl+MhrMK0NyK67W53LrcNJoqjIPVYeshhbtu5dHplOeQOhmKYnIphhRRjoaA7tLySTgMJ4r5R8s+9ITfUHCGnM/bKqyaT+QJGPmlNzrwCMeZYBjJHQTPB5zzg3OMQU5OTkzOZTKGgKBqGAmRemoGrU/ht599B5o2mB9nF5t+8mee2ApmMJmuya85is1ksEy5ZURQpo3Ip/PbsShrAX3pvd3Lp5Rfz88BZQfNNWIoNQvQyIaRW8rsgy4yaEubnt7jgSm7bTJAVPMbuxrDa9Iojlc1y1qRSkJcsNb1+ftRqt1utrydlUvT7QAxwPMelxpfTuZEEx0bTW3GMZ3k1IEkFba6ud9qH3W73T/h0u+2jul5a0gp5KSAFhFnHcpom+B89I73l2AzPqZmCIicag9YhYMMA8UovzgGYkVRVGoeKMUGzYOaxct9uR0MxJy8EJOT0Tgu1azNQ7LcrtTlNk+C28FOhkGjf2TUKZh4rF9KLuN3OKU5Czq8/tqn2+zCuaYqV4oRMwVln0O7ZNhMc9fbewbMiup2xmUASuLkaaRK9cvkRoG/4AfD08rJ82YE1lLHgwKtQ0JPb2d1nBYNnlourt75p94ixqYA1r8gvG6RRL1aBPP5mxnGTGKFbfLKSFPiZ8ZDHvgaNds8smHlQ7QZ0unAk5lWtyYJ2Q6q9hN/vT5Sa5Pj29ht8BkQv9hKJRK+okxufkrcK3PSrSHR1E8CDUW8jDpy4OMMnAwXNRj4lzr7c3X35cmZr6Oe3EJek8dJ/9gWu+G0N8lIrJJM8r854KEhXkHmMU4VkXtF81WoCNAwA9QFwH3W9Bz/BvNRsuORCQOUFwUvBjVFvHTivIECxSrFGemeInX2uVm/8n/SPt7fH5MHf+1Q6o6D/gpCGXECPm8aSoeIfvb345qpnNrvFWdVCj5Cakd5nQj5ZbnqkUqk0iQ3+1asZYEInxAceL6S2UpHw2lOCY6zcMJ/NbqU4a0EDz0+9Kt7MWoJgNG0EdFIyvBrkJ6nIbWW3IqMeljtreHnN1mAegAlSGQyaDQtlPxkF1+ouuCMCRz0PFLw34kUXt9ATkopcbxr1llCoviTHeHsTTfRsRn7NCxmeGI56s6LhITiGnJlfBNcXvII2RkrGvfykk2qijvfjnIyh/plyZyX6wKCXSnFew/vw5H1AbzPsmeZVeIsCBSVBGranh+Ml+Qu820ojYRuz0WtniVqDlmtEJArrh02GeXtwP1ZFL/UkSfM9kJrNfHhf6vrpLcS5Xk/AFcwuUSclWcHnjwdu+skDED3aqnbBW1RpfpImLxWJ/oAv18s6vMC3NE71Rom+gjc1ot/5NMn0JtHbN5vW2FOr2rRHYtOGl5GX5v6lEyMqkJ0JNkmzWqzidvJ5wgcJggfgoujZhKbFPKMzb0fF2Awn8Cr1For108vBYHB8imtnxsfjchNicF5vJJZkmqDAqbGgPTrs0uiZnXkt6g5Nwd0SsFu5Evpl+/r3b99MiZEfP97+3m119JsljbaY1Cx44tthlx576vTRNHRmPsVht3Ld0N6MnRlN/Nx+g4Z6fQ1t9Rqb9Ln+MAH7iJVLzcSC7vDOcFsao+Via04HHc7JQEowucMueten5/f9Lo3+/f1p54R2ffhH/2ulOoePjBqIBUM59PaYhxtbzh10TktJFbgL/eth39iJ7gcVWMVOB9byr0rlsgtcv9/tQ7QHjYSsqBL/KuQ2tznqYbnUWwnFBFUKKK6i/rUP0T2EFfyzf/zXU5x2r8Hrto7aCLbqjTkNtqXJEO7D5r4+9p55jslUMlOQewZ32G73seLu1fH//QPjn/ddY487PCk/thAsX8jQZCRjX3/y2Fwwy/MZZU5/RK510oQ7AiCk2P83RB+SAw5Xr1UmTRTPoUtLEhej3v6I58xyqiTfNFuwOOdN0qGjQZ8qdBcect1+S682miff61Uf5MdNsbnjB298PpvMaxflVvuqrNeA7UIqh0ABhh86IsAAAmtx0li4qUIX12A2SgkrIx6uX/rFm/lsQbOQcoU83DVo1e3vWDOQEHSO6f5hLF3zZmLC5SsoSR5mwWCOrR+b08B7kw0UfJaLkn8Bqkau8h1qhiyRarW7dNwo4909qU74oGNJggBeCJ8X5n0wx9JlSDCpaorsW1qA9JAjRtFHqLbOD3HtTgje/69kAjtWIMW9mXfCoLo79H6YS2HwS2Zw/+1hen9USKWNz2HnHNV7/Qif5HtyoV8dtogF01M57oXjb3Mq8zDBlWXnLB3VfMXLw367XqvXDyHNI70Dav87KRtL17shnXPiV/K8xAtTjqc5mvUD6FeQIE6645OqlC/I1Q5yd9UT+mKRTh/isaE/An9YLy4kquQB0gsEZmMhOvXuMo8lSGdT51TGmtTql+26nlgg38G50uv0FnSqPb1N3YUll0uDZiVBbwmxaof9j4G5dCgYmlKt+YROqncLZwScVuWiZHjFhXodwCPi92Grep3yxoIOMUdvhuGx/W0I4jw5/dqqTPiXXEsW0oJ09Dsb/rddvoAfcEUXEG4tcAJ0FnsUszO5ofc3UHS7Q96UtaBomuzrVdr45GKe6JUWFi7KbYQxvdQWdmZPdMix/des2ADDnshiEnYlFLFOXC26ji3dsrR0p1+hR0eNLW/EI27/yKH3Y4ab9mgEZkoA84pFb0F6Lt9E7RE8YvH5lkrNNtRLRw3Y2OybyO0ZHPMYCH0f92Ge51XYl+bI15MGDPMufByPyJwsyxPF5qDhykN63LQnvGa8F4w
2501Dj4H0LsdhMPIEeF7Yep3ULogOPV3RbmAhvxMXLIHmKj3481YreIsiDKYmhxrzGIhTOSQ4wwswagGYwF+G8gok2n+s+QoFCXAlCfcWyoX01uPAseSYx2p+F8dJi9/KAmjNQySt1ryvOPij/KAl84EArOvr1zClcbN0zGXciGeCOJhHI5HFxUUvxEwGQsNfbnS/jF97MRYXIxGsFjl2BMM8BtJRi56RREVPJBaLvZrGEV2bs8wp+SQ/CVdCEVE0TmPiBvf8+dABgHCGs7a6uioGg0GnczJllaRCHsazwLgzGHR7wqura6Ctb2xQ7vnzq9+wZBDX4ZQpJ9rhVCIGU81riOwLZywUcrvDm2DB2dNw5HvWM7vDBpB4CiOKomPZ4YRJPZsadzjgWCMchu4U398AjXLPekxk5zq59MoKNO4XweWV4SEJfSVYraPeKMjEbRDT6eAynOFQjb2vqD3vjR6M7YKIJFjboBnJHYxwz3rs9WNnYxCmBhx76H7lMZCliOQuO6NjyT3jPbeKQLIzRJbcM96zIFaNMXIi+Uvvv4//fe//ASkgCMIxpTw8AAAAAElFTkSuQmCC",JA="/assets/winner-modal-logo-1-d9CHeLhp.png",XA="/assets/winner-modal-logo-2-FWQywkaQ.png",eE="/assets/winner-modal-logo-3-CBa1gxZJ.png",tE="/assets/winner-modal-logo-n-BmxgZ5z9.png",nE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAaGVYSWZNTQAqAAAACAAEAQYAAwAAAAEAAgAAARIAAwAAAAEAAQAAASgAAwAAAAEAAgAAh2kABAAAAAEAAAA+AAAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAAAUoAMABAAAAAEAAAAUAAAAADAidcYAAALiaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjE8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MjA8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjIwPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cn1ssygAAAK/SURBVDgRVZTLrtswDEQl+ZH7/x9YoIsuim4LJLZePYd2glsBgWOKHs4MKeV6/Jy1prRveyrLmnIpqbeaGkH/bxuxnNLsPZ3Hk/ctZfIIpDlnqvVMJe9pezySiXn033M2NsdIrrIsATR4F8S1LIWNEjm9tSu2XsVBpRCg7K87pPywUFUg/8tM8LJuaSEuiy4wz0zOApBL4CBBTNZjptQ637V7Q3mCugYAkYwEYwIGwA0qG4tHjO8ttH99paF8GQxZ8bT6SjVXP480SRbwA3qeN/sVGy5FYYEm9xagqIUu1YZMZQDoh4FMia0YLoBquh1kaYfFVVZfr8tj4hS/fAmmggLy3SsL0b4LgGLmvZtVeBc4vMc/Ni8P3VDWB5QNE7XAWH09JUUXYUpMpk35FHfpnxZ1OlOqXtlVAAX+T/4ds/MyHTIgR5kW0j/99/0NWsqkW7cvJq83aL8ZWOghAzttcZ56F/7RjJgSbQLUvDzqr9krDAkYjOr3SChHiZm5nnjU6aTM9N3ZRQ5ze3tMLBMrdtUEGcRQ88H3psSsDRtFY1Z9BoSjOfjRK2KX/GCKBWW2EQBKc33Gh3cLvb3SZ9lriSuKK5Ucj5x5xor+mRxDzYbr7d87WSZeGLIqnOt1vy4MLRj8VKmnNpSzfHUrbgo2PkMNfcre8pGVkNo9UZ1Ow2pDUfbbM7xUoaDcWJeEkAqIsj4xJMWg32faYnodsdsSFbXj8BGzm2f/g8+MBAcbQlRBDvedNihn0N11vZi6b158zG2USw6Z9ajcOPvV5YnkjC9WV07jg2FXSbYp6IEVx21yeRbGpTj8NsXryyOMfw9un4nH9Zny6++PuWsygHEmHWioRJOcNVY7seKW7dM8x8n/Fs1b5mbq3N6MzRgnc/XEdDqInQsY/m/txYd4U65j+X1ObYAFY1QADpWwXwD4B5dpUR/6QSelAAAAAElFTkSuQmCC",rE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAaGVYSWZNTQAqAAAACAAEAQYAAwAAAAEAAgAAARIAAwAAAAEAAQAAASgAAwAAAAEAAgAAh2kABAAAAAEAAAA+AAAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAAAUoAMABAAAAAEAAAAUAAAAADAidcYAAALiaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjE8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MjA8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjIwPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cn1ssygAAAJMSURBVDgRTdTJjiIxEARQY4pm38T/f1hfRpo5jDQHhNh3mHopZQtLpsrpyMjIsIvO96/f73aUTqdTut1uGQwG5evrq1yv13I8HiM2nU4LzOVyKff7Pd7her3eD04+XNNvk4fDYQBPp1N5v16lzSidUsp4NCrP57NczucoYq3QuV0f9vsyHo+L/KYV8ng8Ird+Vm6apqzX61CiujXVqiM2rUctsX25r1ZArTWm/brZbAKY8pfLZRCqaIibwJQh6Pf70RXC2+0WMcURNwi0YXO1WoV0KiTzUrK1kf5J5iFyuTqAMxvyDQo+VXkXowAhEgQKI4nkNpZtwxNQHQRSFXe7XVQDmkwmQYIwSeEQ2deBFh1oWgJXAbwALRaLcjgc4l0bgJTZo1bMOtWKGdbIratKhmQtUUEp5QhSAf/cQ+SwbBAjxoh2HQp2niCTjASpQt7zSmSbkuUgkINQPsvkVT8W5CJRlQKXlkqEqcqXEJe/VSmuoGnfoZhVxWwBqZnA+Xwe7SeGGj5n4YynXfY7f/7+ewsYeVXSS0/k+/Yzo2g2m/0oyavjUA3rUEiRNg1J6UuaLeYAsi24PABYJGkJYZXBNpDaAOarioZ/HHeSp65UFo0DaIs5edOIQvlZZSUFtOHEt9ttgKhVLD1NK2Dl6zIxVeCT1EZemVRFPS8lilGtA4SUesLIrX6yTe3kKQOZVFEngXIYJIrmaevGntYrYH
2501pgA4kiiBHlFWIJAk8d8ZWncNTCyq8SktQmBUh9flpDwrNMTK/FXHQ+I3PCiP8DIXxViuhvYHMAAAAASUVORK5CYII=",iE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAaGVYSWZNTQAqAAAACAAEAQYAAwAAAAEAAgAAARIAAwAAAAEAAQAAASgAAwAAAAEAAgAAh2kABAAAAAEAAAA+AAAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAAAUoAMABAAAAAEAAAAUAAAAADAidcYAAALiaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjE8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MjA8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjIwPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cn1ssygAAAIrSURBVDgRXdTdjuIwDAXgNFD+NFre/+32Yi72bpFmGGihdPKZMaomUmhybB8fOyHd//e/8+PxKKvVqqzX69J1Xbnf7zFLG33fhw12u93CDuNrf7lcyvF4jDX/ylBrLdM0xbROYgGGJJnQd57nIEC83+/L6XQKLBKV8mgEtYwjBUMLf6rdbJ5qx3GM4O12G2pTPdLNZhPJd7tdix+LSqsfCgTITtXv0qgUoArqKRHDDzHMfBFy5AA0snxrmESwJMjyh2GIXmsTtfBQKLtpUIokDwGWh0ABklRKXbYgSdu3hmyEFNgj9EUASwI4DAkyye2v1+tLUKWAXARLVYJNZJLlIVBrTal1tgNpCJIBWfYgSxAENw3EMEmQWCNhzwMVWzlmSQwcZDIFUWFm+ciT9Hw+25bD4VBcHQdb+37bgqd244cGrMrb25+Wcd+yP3vKaVlalg9DRIzy+amy+/j3PpPKkFeHSuoEZy8pyQNiR8g/W5SE0SDGPAB9UZ6/FEwABVm+/mX5iPksiauAdA7JP1mpW6qgzoAlKR9DHFyVcSicZQUySuAV8bU32Zf9S/ViX+U2xdUGmKQclwqsnaAvn6UqJVMFNwiK5wsJBVm+PeNvDE41v6xoSUpcECqJgZPJIBhGkYOCUQrPg4KFqh+l8OoNnKZbc/ZadOXr67OV4F75p3gsNFupTv/eCGu7Ae7uEBifjIVV2SnMPnjOYfaZXX+y/LyvrpXy+bFRbn4Dtmw40UOEiz8AAAAASUVORK5CYII=",aE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAaGVYSWZNTQAqAAAACAAEAQYAAwAAAAEAAgAAARIAAwAAAAEAAQAAASgAAwAAAAEAAgAAh2kABAAAAAEAAAA+AAAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAAAUoAMABAAAAAEAAAAUAAAAADAidcYAAALiaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjE8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MjA8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjIwPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cn1ssygAAAHpSURBVDgRXdTZasMwEAVQWXHiJC/5/x/sQ6FQQyF73B6ZW9QOGNuju2nkZPj8eFu2223ZbDZFPZ/Pcr/fS6217Ha71rvdbmVZltbTV4/Ho7xer8bD9zxNU6mECCCpcRxLABECVMwI4zAjToi49+v1WioBC4CEAXpRYMUEjijMMAwNl8TEVLUATATYQi/KSA8mY2EcIzzX+XxeTS0QBQ5BL1vLtjJXZHgYxsr74XAo8zyXMU7Esi09AklFXAIkPQIZj2fr+qoa5uVyadvVIAxk+zGTysE4JMLKO2xwGVOb4fF4bOQIJJl3F4PMSpqkg0uy9CplbkgRMDcCKgk8RxQHNnOWNNwRIfNydynOjAIk0ifSN4LehFblYoZSIcSNcJLmpIlEmFDC6DkL3PZLkQhYI7+ApDUKvQjkO03azLQzX+fFzZUDAMh2GRJkqJI02yX655eCrJLKuwT9QSFFIFvFSY+gfjvlNCXQNFMC+ZCBpVIwjCIKJ8A0bX8CXcuIrDQtGrB7BJD3+/3v6TM3U7uBgbUbfdx6Op3a12/BRTizQsqpMpXKlTknqV6Eh6/5fQFGVBH0npTckfP/2CeCWU2W9t227xBBJUGSZgySeibk/v/w9MIdgQzdnZAFleH3ohGUtE+/frvrLr8BnpYh8Lt4ykQAAAAASUVORK5CYII=";function o7(e){const t={};e.forEach(n=>{const i=n.player_username;t[i]?(t[i].games.push(n),t[i].total_points+=n.points):t[i]={username:i,games:[n],total_points:n.points}});for(let n in t)t[n].games.sort((i,o)=>i.pk-o.pk);return Object.values(t).sort((n,i)=>i.total_points-n.total_points)}function oE(e,t){for(let n=0;n<e.length;n++)if(e[n].username===t)return{rank:n+1,points:e[n].total_points};return null}const sE=e=>e>0&&e<4?["1st","2nd","3rd"][e-1]:`${e}th`,lE={0:YA,1:ZA,2:KA},uE={0:JA,1:XA,2:eE,99:tE},$8={0:nE,1:rE,2:iE,99:aE};var cE=Object.defineProperty,dE=(e,t,n)=>t in e?cE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oh=(e,t,n)=>(dE(e,typeof t!="symbol"?t+"":t,n),n);let fE=class{constructor(){oh(this,"current",this.detect()),oh(this,"handoffState","pending"),oh(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>
2501"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},oa=new fE,da=(e,t)=>{oa.isServer?z.useEffect(e,t):z.useLayoutEffect(e,t)};function ja(e){let t=z.useRef(e);return da(()=>{t.current=e},[e]),t}function Ef(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Fu(){let e=[],t=[],n={enqueue(i){t.push(i)},addEventListener(i,o,s,l){return i.addEventListener(o,s,l),n.add(()=>i.removeEventListener(o,s,l))},requestAnimationFrame(...i){let o=requestAnimationFrame(...i);return n.add(()=>cancelAnimationFrame(o))},nextFrame(...i){return n.requestAnimationFrame(()=>n.requestAnimationFrame(...i))},setTimeout(...i){let o=setTimeout(...i);return n.add(()=>clearTimeout(o))},microTask(...i){let o={current:!0};return Ef(()=>{o.current&&i[0]()}),n.add(()=>{o.current=!1})},add(i){return e.push(i),()=>{let o=e.indexOf(i);if(o>=0){let[s]=e.splice(o,1);s()}}},dispose(){for(let i of e.splice(0))i()},async workQueue(){for(let i of t.splice(0))await i()},style(i,o,s){let l=i.style.getPropertyValue(o);return Object.assign(i.style,{[o]:s}),this.add(()=>{Object.assign(i.style,{[o]:l})})}};return n}function rm(){let[e]=z.useState(Fu);return z.useEffect(()=>()=>e.dispose(),[e]),e}let jr=function(e){let t=ja(e);return x.useCallback((...n)=>t.current(...n),[t])};function ml(){let[e,t]=z.useState(oa.isHandoffComplete);return e&&oa.isHandoffComplete===!1&&t(!1),z.useEffect(()=>{e!==!0&&t(!0)},[e]),z.useEffect(()=>oa.handoff(),[]),e}var Q8;let gl=(Q8=x.useId)!=null?Q8:function(){let e=ml(),[t,n]=x.useState(e?()=>oa.nextId():null);return da(()=>{t===null&&n(oa.nextId())},[t]),t!=null?""+t:void 0};function Gr(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Gr),i}function im(e){return oa.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let t0=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Ko=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Ko||{}),s7=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(s7||{}),pE=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(pE||{});function hE(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(t0)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var l7=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(l7||{});function mE(e,t=0){var n;return e===((n=im(e))==null?void 0:n.body)?!1:Gr(t,{0(){return e.matches(t0)},1(){let i=e;for(;i!==null;){if(i.matches(t0))return!0;i=i.parentElement}return!1}})}function os(e){e?.focus({preventScroll:!0})}let gE=["textarea","input"].join(",");function vE(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,gE))!=null?n:!1}function yE(e,t=n=>n){return e.slice().sort((n,i)=>{let o=t(n),s=t(i);if(o===null||s===null)return 0;let l=o.compareDocumentPosition(s);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function bd(e,t,{sorted:n=!0,relativeTo:i=null,skipElements:o=[]}={}){let s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?n?yE(e):e:hE(e);o.length>0&&l.length>1&&(l=l.filter(m=>!o.includes(m))),i=i??s.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(i))-1;if(t&4)return Math.max(0,l.indexOf(i))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=t&32?{preventScroll:!0}:{},h=0,g=l.length,w;do{if(h>=g||h+g<=0)return 0;let m=d+h;if(t&16)m=(m+g)%g;else{if(m<0)return 3;if(m>=g)return 1}
2501w=l[m],w?.focus(f),h+=c}while(w!==s.activeElement);return t&6&&vE(w)&&w.select(),w.hasAttribute("tabindex")||w.setAttribute("tabindex","0"),2}function sh(e,t,n){let i=ja(t);z.useEffect(()=>{function o(s){i.current(s)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function wE(e,t,n=!0){let i=z.useRef(!1);z.useEffect(()=>{requestAnimationFrame(()=>{i.current=n})},[n]);function o(l,c){if(!i.current||l.defaultPrevented)return;let d=(function h(g){return typeof g=="function"?h(g()):Array.isArray(g)||g instanceof Set?g:[g]})(e),f=c(l);if(f!==null&&f.getRootNode().contains(f)){for(let h of d){if(h===null)continue;let g=h instanceof HTMLElement?h:h.current;if(g!=null&&g.contains(f)||l.composed&&l.composedPath().includes(g))return}return!mE(f,l7.Loose)&&f.tabIndex!==-1&&l.preventDefault(),t(l,f)}}let s=z.useRef(null);sh("mousedown",l=>{var c,d;i.current&&(s.current=((d=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:d[0])||l.target)},!0),sh("click",l=>{!s.current||(o(l,()=>s.current),s.current=null)},!0),sh("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}let u7=Symbol();function bE(e,t=!0){return Object.assign(e,{[u7]:t})}function Qi(...e){let t=z.useRef(e);z.useEffect(()=>{t.current=e},[e]);let n=jr(i=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(i):o.current=i)});return e.every(i=>i==null||i?.[u7])?void 0:n}function c7(...e){return e.filter(Boolean).join(" ")}var Jd=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Jd||{}),Ia=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ia||{});function Oi({ourProps:e,theirProps:t,slot:n,defaultTag:i,features:o,visible:s=!0,name:l}){let c=d7(t,e);if(s)return Xc(c,n,i,l);let d=o??0;if(d&2){let{static:f=!1,...h}=c;if(f)return Xc(h,n,i,l)}if(d&1){let{unmount:f=!0,...h}=c;return Gr(f?0:1,{0(){return null},1(){return Xc({...h,hidden:!0,style:{display:"none"}},n,i,l)}})}return Xc(c,n,i,l)}function Xc(e,t={},n,i){var o;let{as:s=n,children:l,refName:c="ref",...d}=lh(e,["unmount","static"]),f=e.ref!==void 0?{[c]:e.ref}:{},h=typeof l=="function"?l(t):l;d.className&&typeof d.className=="function"&&(d.className=d.className(t));let g={};if(t){let w=!1,m=[];for(let[b,_]of Object.entries(t))typeof _=="boolean"&&(w=!0),_===!0&&m.push(b);w&&(g["data-headlessui-state"]=m.join(" "))}if(s===z.Fragment&&Object.keys(Y8(d)).length>0){if(!z.isValidElement(h)||Array.isArray(h)&&h.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(d).map(b=>` - ${b}`).join(` 2502`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(` 2503`)].join(` 2504`));let w=c7((o=h.props)==null?void 0:o.className,d.className),m=w?{className:w}:{};return z.cloneElement(h,Object.assign({},d7(h.props,Y8(lh(d,["ref"]))),g,f,_E(h.ref,f.ref),m))}return z.createElement(s,Object.assign({},lh(d,["ref"]),s!==z.Fragment&&f,s!==z.Fragment&&g),h)}function _E(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function d7(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let o in i)o.startsWith("on")&&typeof i[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(i[o])):t[o]=i[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(i=>[i,void 0])));for(let i in n)Object.assign(t,{[i](o,...s){let l=n[i];for(let c of l){if((o instanceof Event||o?.nativeEvent instanceof Event)&&o.defaultPrevented)return;c(o,...s)}}});return t}function bi(e){var t;return Object.assign(z.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Y8(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function lh(e,t=[]){let n=Object.assign({},e);for(let i of t)i in n&&delete n[i];return n}function CE(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let i=t?.getAttribute("disabled")==="";return i&&xE(n)?!1:i}function xE(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let SE="div";var Xd=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Xd||{});let n0=bi(function(e,t){let{features:n=1,...i}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Oi({ourProps:o,theirProps:i,slot:{},defaultTag:SE,name:"Hidden"})}),am=z.createContext(null);am.displayName="OpenClosedContext";var mi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(mi||{});function om(){return z.useContext(am)}function AE({value:e,children:t}){return x.createElement(am.Provider,{value:e},t)}var f7=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(f7||{});function p7(e,t){let n=z.useRef([]),i=jr(e);z.useEffect(()=>{let o=[...n.current];for(let[s,l]of t.entries())if(n.current[s]!==l){let c=i(t,o);return n.current=t,c}},[i,...t])}function EE(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function kE(e,t,n){let i=ja(t);z.useEffect(()=>{function o(s){i.current(s)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}var $l=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))($l||{});function TE(){let e=z.useRef(0);return kE("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function kf(){let e=z.useRef(!1);return da(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Tf(...e){return z.useMemo(()=>im(...e),[...e])}function sm(e,t,n,i){let o=ja(n);z.useEffect(()=>{e=e??window;
2504function s(l){o.current(l)}return e.addEventListener(t,s,i),()=>e.removeEventListener(t,s,i)},[e,t,i])}let PE="div";var h7=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(h7||{});let Wl=Object.assign(bi(function(e,t){let n=z.useRef(null),i=Qi(n,t),{initialFocus:o,containers:s,features:l=30,...c}=e;ml()||(l=1);let d=Tf(n);LE({ownerDocument:d},!!(l&16));let f=ME({ownerDocument:d,container:n,initialFocus:o},!!(l&2));IE({ownerDocument:d,container:n,containers:s,previousActiveElement:f},!!(l&8));let h=TE(),g=jr(_=>{let C=n.current;C&&(R=>R())(()=>{Gr(h.current,{[$l.Forwards]:()=>{bd(C,Ko.First,{skipElements:[_.relatedTarget]})},[$l.Backwards]:()=>{bd(C,Ko.Last,{skipElements:[_.relatedTarget]})}})})}),w=rm(),m=z.useRef(!1),b={ref:i,onKeyDown(_){_.key=="Tab"&&(m.current=!0,w.requestAnimationFrame(()=>{m.current=!1}))},onBlur(_){let C=new Set(s?.current);C.add(n);let R=_.relatedTarget;R instanceof HTMLElement&&R.dataset.headlessuiFocusGuard!=="true"&&(m7(C,R)||(m.current?bd(n.current,Gr(h.current,{[$l.Forwards]:()=>Ko.Next,[$l.Backwards]:()=>Ko.Previous})|Ko.WrapAround,{relativeTo:_.target}):_.target instanceof HTMLElement&&os(_.target)))}};return x.createElement(x.Fragment,null,!!(l&4)&&x.createElement(n0,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:Xd.Focusable}),Oi({ourProps:b,theirProps:c,defaultTag:PE,name:"FocusTrap"}),!!(l&4)&&x.createElement(n0,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:Xd.Focusable}))}),{features:h7});function LE({ownerDocument:e},t){let n=z.useRef(null);sm(e?.defaultView,"focusout",o=>{!t||n.current||(n.current=o.target)},!0),p7(()=>{t||(e?.activeElement===e?.body&&os(n.current),n.current=null)},[t]);let i=z.useRef(!1);z.useEffect(()=>(i.current=!1,()=>{i.current=!0,Ef(()=>{!i.current||(os(n.current),n.current=null)})}),[])}function ME({ownerDocument:e,container:t,initialFocus:n},i){let o=z.useRef(null),s=kf();return p7(()=>{if(!i)return;let l=t.current;!l||Ef(()=>{if(!s.current)return;let c=e?.activeElement;if(n!=null&&n.current){if(n?.current===c){o.current=c;return}}else if(l.contains(c)){o.current=c;return}n!=null&&n.current?os(n.current):bd(l,Ko.First)===s7.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e?.activeElement})},[i]),o}function IE({ownerDocument:e,container:t,containers:n,previousActiveElement:i},o){let s=kf();sm(e?.defaultView,"focus",l=>{if(!o||!s.current)return;let c=new Set(n?.current);c.add(t);let d=i.current;if(!d)return;let f=l.target;f&&f instanceof HTMLElement?m7(c,f)?(i.current=f,os(f)):(l.preventDefault(),l.stopPropagation(),os(d)):os(i.current)},!0)}function m7(e,t){var n;for(let i of e)if((n=i.current)!=null&&n.contains(t))return!0;return!1}let Ns=new Set,ao=new Map;function Z8(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function K8(e){let t=ao.get(e);!t||(t["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}function RE(e,t=!0){da(()=>{if(!t||!e.current)return;let n=e.current,i=im(n);if(i){Ns.add(n);for(let o of ao.keys())o.contains(n)&&(K8(o),ao.delete(o));return i.querySelectorAll("body > *").forEach(o=>{if(o instanceof HTMLElement){for(let s of Ns)if(o.contains(s))return;Ns.size===1&&(ao.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),Z8(o))}}),()=>{if(Ns.delete(n),Ns.size>0)i.querySelectorAll("body > *").forEach(o=>{if(o instanceof HTMLElement&&!ao.has(o)){for(let s of Ns)if(o.contains(s))return;ao.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),Z8(o)}});else for(let o of ao.keys())K8(o),ao.delete(o)}}},[t])}let g7=z.createContext(!1);function jE(){return z.useContext(g7)}function r0(e){return x.createElement(g7.Provider,{value:e.force},e.children)}function OE(e){let t=jE(),n=z.useContext(v7),i=Tf(e),[o,s]=z.useState(()=>{if(!t&&n!==null||oa.isServer)return null;let l=i?.getElementById("headlessui-portal-root");if(l)return l;if(i===null)return null;
2504let c=i.createElement("div");return c.setAttribute("id","headlessui-portal-root"),i.body.appendChild(c)});return z.useEffect(()=>{o!==null&&(i!=null&&i.body.contains(o)||i==null||i.body.appendChild(o))},[o,i]),z.useEffect(()=>{t||n!==null&&s(n.current)},[n,s,t]),o}let NE=z.Fragment,FE=bi(function(e,t){let n=e,i=z.useRef(null),o=Qi(bE(h=>{i.current=h}),t),s=Tf(i),l=OE(i),[c]=z.useState(()=>{var h;return oa.isServer?null:(h=s?.createElement("div"))!=null?h:null}),d=ml(),f=z.useRef(!1);return da(()=>{if(f.current=!1,!(!l||!c))return l.contains(c)||(c.setAttribute("data-headlessui-portal",""),l.appendChild(c)),()=>{f.current=!0,Ef(()=>{var h;!f.current||!l||!c||(c instanceof Node&&l.contains(c)&&l.removeChild(c),l.childNodes.length<=0&&((h=l.parentElement)==null||h.removeChild(l)))})}},[l,c]),d?!l||!c?null:s0.createPortal(Oi({ourProps:{ref:o},theirProps:n,defaultTag:NE,name:"Portal"}),c):null}),DE=z.Fragment,v7=z.createContext(null),HE=bi(function(e,t){let{target:n,...i}=e,o={ref:Qi(t)};return x.createElement(v7.Provider,{value:n},Oi({ourProps:o,theirProps:i,defaultTag:DE,name:"Popover.Group"}))}),i0=Object.assign(FE,{Group:HE}),y7=z.createContext(null);function w7(){let e=z.useContext(y7);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,w7),t}return e}function BE(){let[e,t]=z.useState([]);return[e.length>0?e.join(" "):void 0,z.useMemo(()=>function(n){let i=jr(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),o=z.useMemo(()=>({register:i,slot:n.slot,name:n.name,props:n.props}),[i,n.slot,n.name,n.props]);return x.createElement(y7.Provider,{value:o},n.children)},[t])]}let GE="p",UE=bi(function(e,t){let n=gl(),{id:i=`headlessui-description-${n}`,...o}=e,s=w7(),l=Qi(t);da(()=>s.register(i),[i,s.register]);let c={ref:l,...s.props,id:i};return Oi({ourProps:c,theirProps:o,slot:s.slot||{},defaultTag:GE,name:s.name||"Description"})}),lm=z.createContext(()=>{});lm.displayName="StackContext";var a0=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(a0||{});function zE(){return z.useContext(lm)}function VE({children:e,onUpdate:t,type:n,element:i,enabled:o}){let s=zE(),l=jr((...c)=>{t?.(...c),s(...c)});return da(()=>{let c=o===void 0||o===!0;return c&&l(0,n,i),()=>{c&&l(1,n,i)}},[l,n,i,o]),x.createElement(lm.Provider,{value:l},e)}function WE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const qE=typeof Object.is=="function"?Object.is:WE,{useState:$E,useEffect:QE,useLayoutEffect:YE,useDebugValue:ZE}=xd;function KE(e,t,n){const i=t(),[{inst:o},s]=$E({inst:{value:i,getSnapshot:t}});return YE(()=>{o.value=i,o.getSnapshot=t,uh(o)&&s({inst:o})},[e,i,t]),QE(()=>(uh(o)&&s({inst:o}),e(()=>{uh(o)&&s({inst:o})})),[e]),ZE(i),i}function uh(e){const t=e.getSnapshot,n=e.value;try{const i=t();return!qE(n,i)}catch{return!0}}function JE(e,t,n){return t()}const XE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ek=!XE,tk=ek?JE:KE,nk="useSyncExternalStore"in xd?(e=>e.useSyncExternalStore)(xd):tk;function rk(e){return nk(e.subscribe,e.getSnapshot,e.getSnapshot)}function ik(e,t){let n=e(),i=new Set;return{getSnapshot(){return n},subscribe(o){return i.add(o),()=>i.delete(o)},dispatch(o,...s){let l=t[o].call(n,...s);l&&(n=l,i.forEach(c=>c()))}}}function ak(){let e;return{before({doc:t}){var n;let i=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-i.clientWidth},after({doc:t,d:n}){let i=t.documentElement,o=i.clientWidth-i.offsetWidth,s=e-o;n.style(i,"paddingRight",`${s}px`)}}}function ok(){if(!EE())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:i}){function o(l){return i.containers.flatMap(c=>c()).some(c=>c.contains(l))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let s=null;n.addEventListener(t,"click",l=>{if(l.target instanceof HTMLElement)try{let c=l.target.closest("a");if(!c)return;let{hash:d}=new URL(c.href),f=t.querySelector(d);f&&!o(f)&&(s=f)}catch{}},!0),n.addEventListener(t,"touchmove",l=>{l.target instanceof HTMLElement&&!o(l.target)&&l.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})}}}function sk(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function lk(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Xo=ik(()=>new Map,{PUSH(e,t){var n;let i=(n=this.get(e))!=null?n:{doc:e,count:0,d:Fu(),meta:new Set};return i.count++,i.meta.add(t),this.set(e,i),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let i={doc:e,d:t,meta:lk(n)},o=[ok(),ak(),sk()];o.forEach(({before:s})=>s?.(i)),o.forEach(({after:s})=>s?.(i))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Xo.subscribe(()=>{let e=Xo.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let i=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!i||!o&&i)&&Xo.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Xo.dispatch("TEARDOWN",n)}});function uk(e,t,n){let i=rk(Xo),o=e?i.get(e):void 0,s=o?o.count>0:!1;return da(()=>
2504{if(!(!e||!t))return Xo.dispatch("PUSH",e,n),()=>Xo.dispatch("POP",e,n)},[t,e]),s}var ck=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ck||{}),dk=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(dk||{});let fk={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ef=z.createContext(null);ef.displayName="DialogContext";function Du(e){let t=z.useContext(ef);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Du),n}return t}function pk(e,t,n=()=>[document.body]){uk(e,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function hk(e,t){return Gr(t.type,fk,e,t)}let mk="div",gk=Jd.RenderStrategy|Jd.Static,vk=bi(function(e,t){let n=gl(),{id:i=`headlessui-dialog-${n}`,open:o,onClose:s,initialFocus:l,__demoMode:c=!1,...d}=e,[f,h]=z.useState(0),g=om();o===void 0&&g!==null&&(o=(g&mi.Open)===mi.Open);let w=z.useRef(new Set),m=z.useRef(null),b=Qi(m,t),_=z.useRef(null),C=Tf(m),R=e.hasOwnProperty("open")||g!==null,I=e.hasOwnProperty("onClose");if(!R&&!I)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!R)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!I)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof s!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let k=o?0:1,[A,L]=z.useReducer(hk,{titleId:null,descriptionId:null,panelRef:z.createRef()}),j=jr(()=>s(!1)),D=jr(Ce=>L({type:0,id:Ce})),V=ml()?c?!1:k===0:!1,q=f>1,$=z.useContext(ef)!==null,W=q?"parent":"leaf",ae=g!==null?(g&mi.Closing)===mi.Closing:!1;RE(m,!q||ae?!1:V);let ce=jr(()=>{var Ce,ke;return[...Array.from((Ce=C?.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))!=null?Ce:[]).filter(be=>!(be===document.body||be===document.head||!(be instanceof HTMLElement)||be.contains(_.current)||A.panelRef.current&&be.contains(A.panelRef.current))),(ke=A.panelRef.current)!=null?ke:m.current]});wE(()=>ce(),j,!(!V||q));let me=!(q||k!==0);sm(C?.defaultView,"keydown",Ce=>{!me||Ce.defaultPrevented||Ce.key===f7.Escape&&(Ce.preventDefault(),Ce.stopPropagation(),j())}),pk(C,!(ae||k!==0||$),ce),z.useEffect(()=>{if(k!==0||!m.current)return;let Ce=new IntersectionObserver(ke=>{for(let be of ke)be.boundingClientRect.x===0&&be.boundingClientRect.y===0&&be.boundingClientRect.width===0&&be.boundingClientRect.height===0&&j()});return Ce.observe(m.current),()=>Ce.disconnect()},[k,m,j]);let[X,re]=BE(),H=z.useMemo(()=>[{dialogState:k,close:j,setTitleId:D},A],[k,A,j,D]),K=z.useMemo(()=>({open:k===0}),[k]),he={ref:b,id:i,role:"dialog","aria-modal":k===0?!0:void 0,"aria-labelledby":A.titleId,"aria-describedby":X};return x.createElement(VE,{type:"Dialog",enabled:k===0,element:m,onUpdate:jr((Ce,ke,be)=>{ke==="Dialog"&&Gr(Ce,{[a0.Add](){w.current.add(be),h(Re=>Re+1)},[a0.Remove](){w.current.add(be),h(Re=>Re-1)}})})},x.createElement(r0,{force:!0},x.createElement(i0,null,x.createElement(ef.Provider,{value:H},x.createElement(i0.Group,{target:m},x.createElement(r0,{force:!1},x.createElement(re,{slot:K,name:"Dialog.Description"},x.createElement(Wl,{initialFocus:l,containers:w,features:V?Gr(W,{parent:Wl.features.RestoreFocus,leaf:Wl.features.All&~Wl.features.FocusLock}):Wl.features.None},Oi({ourProps:he,theirProps:d,slot:K,defaultTag:mk,features:gk,visible:k===0,name:"Dialog"})))))))),x.createElement(n0,{features:Xd.Hidden,ref:_}))}),yk="div",wk=bi(function(e,t){let n=gl(),{id:i=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:s,close:l}]=Du("Dialog.Overlay"),c=Qi(t),d=jr(h=>{if(h.target===h.currentTarget){if(CE(h.currentTarget))return h.preventDefault();h.preventDefault(),h.stopPropagation(),l()}}),f=z.useMemo(()=>({open:s===0}),[s]);return Oi({ourProps:{ref:c,id:i,"aria-hidden":!0,onClick:d},theirProps:o,slot:f,defaultTag:yk,name:"Dialog.Overlay"})}),bk="div",_k=bi(function(e,t){let n=gl(),{id:i=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:s},l]=Du("Dialog.Backdrop"),c=Qi(t);z.useEffect(()=>{if(l.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[l.panelRef]);let d=z.useMemo(()=>({open:s===0}),[s]);return x.createElement(r0,{force:!0},x.createElement(i0,null,Oi({ourProps:{ref:c,id:i,"aria-hidden":!0},theirProps:o,slot:d,defaultTag:bk,name:"Dialog.Backdrop"})))}),Ck="div",xk=bi(function(e,t){let n=gl(),{id:i=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:s},l]=Du("Dialog.Panel"),c=Qi(t,l.panelRef),d=z.useMemo(()=>({open:s===0}),[s]),f=jr(h=>{h.stopPropagation()});return Oi({ourProps:{ref:c,id:i,onClick:f}
2504,theirProps:o,slot:d,defaultTag:Ck,name:"Dialog.Panel"})}),Sk="h2",Ak=bi(function(e,t){let n=gl(),{id:i=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:s,setTitleId:l}]=Du("Dialog.Title"),c=Qi(t);z.useEffect(()=>(l(i),()=>l(null)),[i,l]);let d=z.useMemo(()=>({open:s===0}),[s]);return Oi({ourProps:{ref:c,id:i},theirProps:o,slot:d,defaultTag:Sk,name:"Dialog.Title"})}),J8=Object.assign(vk,{Backdrop:_k,Panel:xk,Overlay:wk,Title:Ak,Description:UE});function Ek(e=0){let[t,n]=z.useState(e),i=z.useCallback(c=>n(d=>d|c),[t]),o=z.useCallback(c=>!!(t&c),[t]),s=z.useCallback(c=>n(d=>d&~c),[n]),l=z.useCallback(c=>n(d=>d^c),[n]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:l}}function kk(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ch(e,...t){e&&t.length>0&&e.classList.add(...t)}function dh(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Tk(e,t){let n=Fu();if(!e)return n.dispose;let{transitionDuration:i,transitionDelay:o}=getComputedStyle(e),[s,l]=[i,o].map(c=>{let[d=0]=c.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,h)=>h-f);return d});if(s+l!==0){let c=n.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(t(),c())})}else t();return n.add(()=>t()),n.dispose}function Pk(e,t,n,i){let o=n?"enter":"leave",s=Fu(),l=i!==void 0?kk(i):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Gr(o,{enter:()=>t.enter,leave:()=>t.leave}),d=Gr(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),f=Gr(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return dh(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ch(e,...c,...f),s.nextFrame(()=>{dh(e,...f),ch(e,...d),Tk(e,()=>(dh(e,...c),ch(e,...t.entered),l()))}),s.dispose}function Lk({container:e,direction:t,classes:n,onStart:i,onStop:o}){let s=kf(),l=rm(),c=ja(t);da(()=>{let d=Fu();l.add(d.dispose);let f=e.current;if(f&&c.current!=="idle"&&s.current)return d.dispose(),i.current(c.current),d.add(Pk(f,n.current,c.current==="enter",()=>{d.dispose(),o.current(c.current)})),d.dispose},[t])}function $o(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Pf=z.createContext(null);Pf.displayName="TransitionContext";var Mk=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Mk||{});function Ik(){let e=z.useContext(Pf);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Rk(){let e=z.useContext(Lf);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Lf=z.createContext(null);Lf.displayName="NestingContext";function Mf(e){return"children"in e?Mf(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function b7(e,t){let n=ja(e),i=z.useRef([]),o=kf(),s=rm(),l=jr((m,b=Ia.Hidden)=>{let _=i.current.findIndex(({el:C})=>C===m);_!==-1&&(Gr(b,{[Ia.Unmount](){i.current.splice(_,1)},[Ia.Hidden](){i.current[_].state="hidden"}}),s.microTask(()=>{var C;!Mf(i)&&o.current&&((C=n.current)==null||C.call(n))}))}),c=jr(m=>{let b=i.current.find(({el:_})=>_===m);return b?b.state!=="visible"&&(b.state="visible"):i.current.push({el:m,state:"visible"}),()=>l(m,Ia.Unmount)}),d=z.useRef([]),f=z.useRef(Promise.resolve()),h=z.useRef({enter:[],leave:[],idle:[]}),g=jr((m,b,_)=>{d.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([C])=>C!==m)),t?.chains.current[b].push([m,new Promise(C=>{d.current.push(C)})]),t?.chains.current[b].push([m,new Promise(C=>{Promise.all(h.current[b].map(([R,I])=>I)).then(()=>C())})]),b==="enter"?f.current=f.current.then(()=>t?.wait.current).then(()=>_(b)):_(b)}),w=jr((m,b,_)=>{Promise.all(h.current[b].splice(0).map(([C,R])=>R)).then(()=>{var C;(C=d.current.shift())==null||C()}).then(()=>_(b))});return z.useMemo(()=>({children:i,register:c,unregister:l,onStart:g,onStop:w,wait:f,chains:h}),[c,l,i,g,w,h,f])}function jk(){}let Ok=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function X8(e){var t;let n={};for(let i of Ok)n[i]=(t=e[i])!=null?t:jk;return n}function Nk(e){let t=z.useRef(X8(e));return z.useEffect(()=>{t.current=X8(e)},[e]),t}let Fk="div",_7=Jd.RenderStrategy,C7=bi(function(e,t){let{beforeEnter:n,after
2504Enter:i,beforeLeave:o,afterLeave:s,enter:l,enterFrom:c,enterTo:d,entered:f,leave:h,leaveFrom:g,leaveTo:w,...m}=e,b=z.useRef(null),_=Qi(b,t),C=m.unmount?Ia.Unmount:Ia.Hidden,{show:R,appear:I,initial:k}=Ik(),[A,L]=z.useState(R?"visible":"hidden"),j=Rk(),{register:D,unregister:V}=j,q=z.useRef(null);z.useEffect(()=>D(b),[D,b]),z.useEffect(()=>{if(C===Ia.Hidden&&b.current){if(R&&A!=="visible"){L("visible");return}return Gr(A,{hidden:()=>V(b),visible:()=>D(b)})}},[A,b,D,V,R,C]);let $=ja({enter:$o(l),enterFrom:$o(c),enterTo:$o(d),entered:$o(f),leave:$o(h),leaveFrom:$o(g),leaveTo:$o(w)}),W=Nk({beforeEnter:n,afterEnter:i,beforeLeave:o,afterLeave:s}),ae=ml();z.useEffect(()=>{if(ae&&A==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,A,ae]);let te=k&&!I,ce=!ae||te||q.current===R?"idle":R?"enter":"leave",pe=Ek(0),me=jr(K=>Gr(K,{enter:()=>{pe.addFlag(mi.Opening),W.current.beforeEnter()},leave:()=>{pe.addFlag(mi.Closing),W.current.beforeLeave()},idle:()=>{}})),ne=jr(K=>Gr(K,{enter:()=>{pe.removeFlag(mi.Opening),W.current.afterEnter()},leave:()=>{pe.removeFlag(mi.Closing),W.current.afterLeave()},idle:()=>{}})),X=b7(()=>{L("hidden"),V(b)},j);Lk({container:b,classes:$,direction:ce,onStart:ja(K=>{X.onStart(b,K,me)}),onStop:ja(K=>{X.onStop(b,K,ne),K==="leave"&&!Mf(X)&&(L("hidden"),V(b))})}),z.useEffect(()=>{!te||(C===Ia.Hidden?q.current=null:q.current=R)},[R,te,A]);let re=m,H={ref:_};return I&&R&&oa.isServer&&(re={...re,className:c7(m.className,...$.current.enter,...$.current.enterFrom)}),x.createElement(Lf.Provider,{value:X},x.createElement(AE,{value:Gr(A,{visible:mi.Open,hidden:mi.Closed})|pe.flags},Oi({ourProps:H,theirProps:re,defaultTag:Fk,features:_7,visible:A==="visible",name:"Transition.Child"})))}),o0=bi(function(e,t){let{show:n,appear:i=!1,unmount:o,...s}=e,l=z.useRef(null),c=Qi(l,t);ml();let d=om();if(n===void 0&&d!==null&&(n=(d&mi.Open)===mi.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,h]=z.useState(n?"visible":"hidden"),g=b7(()=>{h("hidden")}),[w,m]=z.useState(!0),b=z.useRef([n]);da(()=>{w!==!1&&b.current[b.current.length-1]!==n&&(b.current.push(n),m(!1))},[b,n]);let _=z.useMemo(()=>({show:n,appear:i,initial:w}),[n,i,w]);z.useEffect(()=>{if(n)h("visible");else if(!Mf(g))h("hidden");else{let R=l.current;if(!R)return;let I=R.getBoundingClientRect();I.x===0&&I.y===0&&I.width===0&&I.height===0&&h("hidden")}},[n,g]);let C={unmount:o};return x.createElement(Lf.Provider,{value:g},x.createElement(Pf.Provider,{value:_},Oi({ourProps:{...C,as:z.Fragment,children:x.createElement(C7,{ref:c,...C,...s})},theirProps:{},defaultTag:z.Fragment,features:_7,visible:f==="visible",name:"Transition"})))}),Dk=bi(function(e,t){let n=z.useContext(Pf)!==null,i=om()!==null;return x.createElement(x.Fragment,null,!n&&i?x.createElement(o0,{ref:t,...e}):x.createElement(C7,{ref:t,...e}))}),_d=Object.assign(o0,{Child:Dk,Root:o0});const x7=({size:e=12,color:t="text-gray-200 fill-blue-400"})=>{const n=`w-${e} h-${e}`;return T.jsxs("svg",{className:`animate-spin ${n} ${t} mr-2`,fill:"none",viewBox:"0 0 100 101",xmlns:"http://www.w3.org/2000/svg",children:[T.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),T.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})};function If(e){const t=Kt(Tu),n=z.useRef(null),i=t.isOpen&&t.type===e.type;return i?T.jsx(_d.Root,{show:i,as:z.Fragment,children:T.jsxs(J8,{as:"div",className:"fixed inset-0 z-50 overflow-y-auto",initialFocus:n,onClose:e.setOpen,children:[T.jsx(_d.Child,{as:z.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:T.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),T.jsx("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:T.jsx("div",{className:"flex justify-center min-h-screen items-center",children:T.jsx(_d.Child,{as:z.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:T.jsx(J8.Panel,{className:"relative transform overflow-hidden rounded-lg text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg",children:T.jsxs("div",{className:"px-4 pt-4 pb-4 sm:p-4 sm:pb-4 bg-repeat bg-brown-300",children:[e.loading&&T.jsx("div",{className:"flex items-center justify-center",children:T.jsx("div",{className:" w-64 h-64 flex items-center justify-center",children:T.jsx(x7,{})})}),!e.loading&&e.children]})})})})})]})}):null}const um=e=>{const t=e.clicks.flatMap((o,s)=>{const c=decodeURIComponent(o.article.link).replace(/_/g," ");return e.clicks.length-1===s?[c]:[c,"â"]}),[n,i]=z.useState([]);return z.useEffect(()=>{const o=e.animate?250:0,s=l=>{l<t.length&&(i(c=>[...c,l]),setTimeout(()=>s(l+1),o))};i([]),s(0)},[e.clicks,e.animate]),T.jsx("div",{className:"overflow-x-auto",children:t.map((o,s)=>T.jsx(_d,{show:n.includes(s),as:"span",enter:`transition-opacity duration-[${e.animate?"500":"0"}ms]`,enterFrom:"opacity-0",enterTo:"opacity-100",children:T.jsx("span",{className:`${s===0?"":"px-1"} ${e.shouldWrap?"":"whitespace-nowrap"}`,children:o})},s))})},tf=e=>{const t=Kt(ji),n=e.username.replace("_"+t,"");return T.jsx(T.Fragment,{children:n})},Hk=()=>{const e=Ri(),t=ca(),n=Kt(ji),i=Kt(Tu),o=Kt(ul),s=Kt(ku),l=i.type===kr.RoundWins,{data:c,error:d,isLoading:f,isFetching:h}=a7(l?{longCode:n,page:1,active:!0}:su.skipToken),g=i.data;if(!g)return null;const w=o?.member_name,m=g.username===w,b=c?.results.flatMap(V=>V.games.filter(q=>q.won)),_=b?.filter(V=>V.player_username===g.username),C=o7(b??[]),R=oE(C,g.username);R?.rank&&R.rank>0&&R.rank<4&&$8[R.rank-1];const I=R?.rank?sE(R.rank):null,k=R?.rank?uE[R.rank-1]:null,A=R?.rank?$8[R.rank-1]:null,L=()=>{const V=s?.challenge.start_article.link;V?t(`/play/${encodeURIComponent(V)}`,{replace:!0}):t("/play",{replace:!0}),e(ss())},j=m?T.jsxs(T.Fragment,{children:["You are currently ",I&&T.jsx("span",{children:I})," place!"]}):T.jsxs(T.Fragment,{children:[T.jsx(tf,{username:g.username})," is ",I&&T.jsx("span",{children:I})," place!"]}),D=m?"Find Another Path!":"Keep Playing";return T.jsx(If,{type:kr.RoundWins,title:j,setOpen:L,positiveButtonText:m?"Find Another Path!":"Keep Playing",positiveActionCallback:L,loading:f,children:T.jsxs("div",{className:"flex flex-wrap sm:flex-nowrap gap-1 bg-repeat rounded",style:{backgroundImage:`url(${A})`},children:[T.jsxs("div",{className:"w-full sm:w-1/2 flex flex-col mt-6 items-center",children:[k&&T.jsx("img",{src:k,alt:"Winner Modal Logo",className:"w-4/5 mx-auto"}),T.jsx("div",{className:"text-2xl text-center mt-2",children:j}),R?.points&&T.jsxs("span",{className:"text-xl font-bold",children:["(",R.points," pts)"]}),T.jsx(ia,{onClick:L,buttonText:D,additionalClasses:"my-4",buttonTextAdditionalClasses:"text-3xl"})]}),T.jsxs("div",{className:"w-full sm:w-1/2 p-4 sm:p-0",children:[T.jsxs("div",{className:"text-2xl py-4",children:["Your winning path",_&&_.length===1?"":"s",":"]}),T.jsx("div",{id:"clicks",className:"max-h-[300px] overflow-auto",children:_&&_.map((V,q)=>T.jsx("div",{className:"break-all",children:T.jsxs("div",{className:"my-4",children:[T.jsx(um,{clicks:V.clicks,animate:q===0},q),T.jsxs("span",{className:"text-xs",children:["(",V.points," pts)"]})]})},q))})]})]})})},Bk=vo.injectEndpoints({endpoints:e=>({getGames:e.query({query:({longCode:t,page:n,won:i})=>`group/${t}/games/?page=${n}
2504&won=${i}`})})}),{useGetGamesQuery:Gk}=Bk;function S7(e){const t=new Date(e),n=Math.floor((new Date().getTime()-t.getTime())/1e3),i=[{seconds:31536e3,text:"year"},{seconds:2592e3,text:"month"},{seconds:86400,text:"day"},{seconds:3600,text:"hour"},{seconds:60,text:"min"},{seconds:1,text:"sec"}];for(const o of i){const s=Math.floor(n/o.seconds);if(s>=1)return`${s} ${o.text}${s>1?"s":""} ago`}return"just now"}const Uk=()=>{const e=Ri(),t=Kt(Tu),n=Kt(ji),[i,o]=z.useState(1),[s,l]=z.useState([]),c=t.type===kr.AllMyWins,{data:d,error:f,isLoading:h,isFetching:g}=Gk(c?{longCode:n,page:i,won:!0}:su.skipToken);return z.useEffect(()=>{d&&d.results&&l(w=>[...w,...d.results])},[d]),T.jsx(If,{type:kr.AllMyWins,setOpen:()=>{e(ss())},title:"All My Wins",positiveButtonText:"Close",children:T.jsxs("div",{className:"bg-white ",children:[T.jsxs("div",{className:"flex justify-between items-center p-4 border-b bg-white",children:[T.jsx("h2",{className:"text-3xl font-bold",children:"Your Game Wins!"}),T.jsx("button",{className:"font-extralight text-xl mb-2",onClick:()=>e(ss()),children:"x"})]}),T.jsxs("div",{className:"p-4 bg-white",children:[s&&s.map((w,m)=>T.jsxs("div",{className:"mb-6",children:[T.jsx("div",{children:T.jsx(um,{clicks:w.clicks,animate:!1,shouldWrap:!0},m)}),T.jsxs("div",{className:"flex flex-row font-extralight text-sm",children:["(",T.jsxs("span",{className:"",children:[w.points,T.jsx("span",{className:"text-xs",children:"pts"})]}),T.jsx("span",{className:"ml-1",children:"·"}),T.jsxs("span",{className:"mx-1",children:[w.clicks.length,T.jsx("span",{className:"text-xs",children:"clicks"})]}),T.jsx("span",{className:"mr-1",children:"·"}),T.jsxs("span",{className:"",children:[w.total_time,T.jsx("span",{className:"text-xs",children:"secs"})]}),T.jsx("span",{className:"mx-2",children:"|"}),T.jsx("span",{className:"",children:S7(w.created)}),")"]})]},m)),T.jsx("div",{className:"flex justify-center",children:s&&s.length>0?T.jsx(ia,{onClick:()=>o(i+1),buttonText:"Load More Wins!",additionalClasses:"my-4",buttonTextAdditionalClasses:"text-xl"}):T.jsx("div",{className:"my-8",children:"No wins yet, go play some games!"})})]})]})})},zk="/assets/ios-app-qr-code-B7EvppQg.png",Vk=()=>{const e=Ri(),t=()=>{e(ss())},n="Scan for The Wiki Game iOS app!";return T.jsx(If,{type:kr.GetApp,title:n,setOpen:t,positiveButtonText:"positiveButtonText",positiveActionCallback:t,loading:!1,children:T.jsxs("div",{className:"",children:[T.jsxs("div",{className:"flex justify-between items-center p-4 border-b bg-white",children:[T.jsx("h2",{className:"text-2xl font-bold",children:n}),T.jsx("button",{className:"font-extralight text-xl mb-0 sm:mb-2",onClick:()=>e(ss()),children:"x"})]}),T.jsx("div",{className:"p-4 bg-white",children:T.jsx("img",{className:"w-full",src:zk,alt:"iOS App QR Code"})})]})})},Wk=()=>{const e=fs(),t=Kt(Tu);if(!(t.type===kr.ErrorMessage))return null;const i=t.data;return i?T.jsx(If,{type:kr.ErrorMessage,title:"Error",positiveButtonText:"Close",setOpen:()=>{e(ss())},children:T.jsx(T4,{error:i.error,extraStyles:"h-[50vh]"})}):null},qk=()=>T.jsxs("div",{className:"heygg-body font-noto-sans",children:[T.jsx(A4,{}),T.jsx(Hk,{}),T.jsx(Uk,{}),T.jsx(Vk,{}),T.jsx(Wk,{})]}),A7=e=>T.jsx("header",{className:"sticky top-0 z-10 bg-white",children:T.jsx("div",{className:"flex items-center justify-between h-16 -mb-px",children:e.children})}),$k=vo.injectEndpoints({endpoints:e=>({playerLogin:e.mutation({query:({name:t,code:n,heygg_anonymous_id:i,heygg_jwt:o})=>({url:"/auth/login/",method:"POST",body:{name:t,code:n,heygg_anonymous_id:i,heygg_jwt:o}})}),groupChange:e.mutation({query:({join_group_type:t})=>({url:"/auth/change/",method:"POST",body:{join_group_type:t}})})})}),{usePlayerLoginMutation:E7,useGroupChangeMutation:k7}=$k,Qk=()=>{const e=fs(),t=n=>{n.preventDefault(),e(tC({})),BA()};return T.jsx("div",{onClick:t,children:"Logout"})},Yk=(e,t,n,i)=>{z.useEffect(()=>{const o=s=>{const l=s.target;!e.current||!t.current||!n||e.current.contains(l)||t.current.contains(l)||i(!1)};return document.addEventListener("click",o),()=>document.removeEventListener("click",o)},[e,t,n,i]),z.useEffect(()=>{const o=s=>{!n||s.key!=="Escape"||i(!1)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[n,i])};var nf=(e=>(e.Public="public",e.Private="private",e))(nf||{});const T7=()=>{const e=Ri(),t=ca(),n=z.useRef(null),i=z.useRef(null),[o,s]=z.useState(!1),[l]=k7(),c=Kt(rC),d=Kt(ul),f=Kt(ff),h=d?.is_guest??!0,g=d?.is_admin??!1,w=!h&&!g,m=g?nf.Public:nf.Private,b=m.charAt(0).toUpperCase()+m.slice(1);Yk(n,i,o,s);const _=async()=>{const R=await l({join_group_type:m}).unwrap();e(Eu(R)),t("/play",{replace:!0}),window.location.reload()},C=()=>{s(!1),e(La({type:kr.AllMyWins,data:{username:c}}))};return T.jsxs("div",{className:"relative inline-flex px-2",children:[T.jsx("button",{ref:i,className:"inline-flex justify-center items-center group px-3 py-2 rounded-lg border border-gray-200 border-b-gray-200 border-b-3","aria-haspopup":"true",onClick:()=>s(!o),"aria-expanded":o,children:T.jsxs("div",{className:"flex items-center truncate",children:[T.jsx("span",{className:"truncate ml-2 text-sm font-medium group-hover:text-slate-800",children:c}),T.jsx("svg",{className:"w-3 h-3 shrink-0 ml-1 fill-current text-black",viewBox:"0 0 12 12",children:T.jsx("path",{d:"M5.9 11.4L.5 6l1.4-1.4 4 4 4-4L11.3 6z"})})]})}),T.jsx("div",{ref:n,className:`${o?"block":"hidden"} origin-top-right z-10 absolute top-full right-2 w-40 bg-white rounded-lg border border-gray-200 border-b-gray-200 border-b-3 mt-1`,onFocus:()=>s(!0),onBlur:()=>s(!1),children:T.jsxs("div",{children:[location.pathname!=="/admin"&&g&&T.jsxs("div",{className:"py-2 px-3 border-b",children:[T.jsxs("div",{className:"flex items-center py-1",children:[T.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{children:[T.jsx("path",{d:"M6.93564 12.0775L3 13.0009L3.92335 9.06569L10.6298 2.35674C10.7428 2.24364 10.877 2.15393 11.0248 2.09272C11.1725 2.0315 11.3308 2 11.4907 2C11.6506 2 11.809 2.0315 11.9567 2.09272C12.1044 2.15393 12.2386 2.24364 12.3517 2.35674L13.6433 3.64778C13.7
2504564 3.76083 13.8461 3.89506 13.9073 4.04279C13.9685 4.19052 14 4.34886 14 4.50878C14 4.66869 13.9685 4.82703 13.9073 4.97476C13.8461 5.1225 13.7564 5.25672 13.6433 5.36977L6.93564 12.0775Z",stroke:"#a3a3a3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),T.jsx("path",{d:"M12 7L9 4",stroke:"#a3a3a3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),T.jsx("span",{className:"ml-2 text-xs uppercase text-gray-500",children:"Edit Challenges"})]}),T.jsx(k4,{className:"text-sm text-black hover:text-blue-300",to:"/admin",children:"Group Admin"})]}),(g||f&&!h)&&T.jsxs("div",{className:"border-b py-2 px-3",children:[T.jsxs("div",{className:"flex items-center py-1",children:[T.jsxs("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"none",children:[T.jsx("path",{d:"M6.45455 8.5V12.4058H2",stroke:"#a3a3a3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),T.jsx("path",{d:"M4.77661 3C4.01571 3.52492 3.40834 4.16257 2.99294 4.87261C2.57753 5.58265 2.36312 6.34962 2.36328 7.125C2.40828 8.12811 2.80077 9.10515 3.50214 9.95995C4.20351 10.8147 5.18958 11.5178 6.36328 12",stroke:"#a3a3a3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),T.jsx("path",{d:"M9.36328 6.5V3H13.8178",stroke:"#a3a3a3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),T.jsx("path",{d:"M10.9499 12C11.7109 11.4751 12.3183 10.8374 12.7337 10.1274C13.1491 9.41737 13.3635 8.65039 13.3633 7.875C13.3182 6.87191 12.9256 5.89491 12.2242 5.04013C11.5229 4.18535 10.5369 3.48225 9.36328 3",stroke:"#a3a3a3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),T.jsx("span",{className:"ml-2 text-xs uppercase text-gray-500",children:"Switch Groups"})]}),T.jsxs("div",{onClick:_,className:"text-sm text-black hover:text-blue-500 cursor-pointer",children:["Join ",b," Group"]})]}),(g||w)&&T.jsx("div",{className:"text-sm text-black hover:text-blue-500 flex items-center pt-3 pb-1 px-3 cursor-pointer",children:T.jsx("div",{onClick:()=>C(),className:"flex items-center",children:"Game Wins"})}),T.jsx("div",{className:"text-sm text-black hover:text-blue-500 flex items-center py-1 px-3 cursor-pointer",children:T.jsx(Qk,{})})]})})]})},P7="/assets/wendell-Djf05EX4.png",cm=()=>{const e=Ri(),t=ca(),n=()=>{e(hf(!1)),t("/play/")};return T.jsxs("div",{className:"flex items-center font-noto-serif font-bold cursor-pointer ml-1",onClick:()=>n(),children:[T.jsx("img",{className:"h-11 block",src:P7,alt:"Wendell"}),T.jsxs("div",{className:"flex flex-col",children:[T.jsx("span",{className:"my-1 text-xxs",children:"The"}),T.jsx("span",{className:"-mt-2.5 text-md",children:"Wiki"}),T.jsx("span",{className:"-mt-2.5 text-md",children:"Game"})]})]})},Zk=()=>T.jsxs(A7,{children:[T.jsx(cm,{}),T.jsx("div",{className:"flex items-center ml-auto",children:T.jsx(T7,{})})]}),Kk=vo.injectEndpoints({endpoints:e=>({getGroupSettings:e.query({query:t=>`group/${t}/`}),updateGroupSettings:e.mutation({query:({longCode:t,roundMaxTime:n,preRoundWaitTime:i,autoStartNewRound:o})=>({url:`group/${t}/admin/`,method:"PUT",body:{round_max_time:n,pre_round_wait_time:i,autoStartNewRound:o}})}),refreshGroupShortCode:e.mutation({query:t=>({url:`group/${t}/admin/`,method:"PUT",body:{refreshGroupCode:!0}})})})}),{useGetGroupSettingsQuery:dm,useUpdateGroupSettingsMutation:Jk,useRefreshGroupShortCodeMutation:Xk}=Kk,L7=()=>{const e=Kt(ji),{data:t}=dm(e),[n,{isLoading:i}]=Jk(),[o,{isLoading:s}]=Xk(),[l,c]=z.useState(""),[d,f]=z.useState(""),[h,g]=z.useState(""),[w,m]=z.useState(!1),[b,_]=z.useState(null);z.useEffect(()=>{t&&(c(t.short_code.toString()),f(t.round_max_time.toString()),g(t.pre_round_wait_time.toString()),m(t.auto_start_new_round))},[t]);const C=async I=>{if(I.preventDefault(),_(null),!d){_("Round Max Time is required");return}const k=parseInt(d);if(isNaN(k)||k<=0){_("Round Max Time must be a positive number");return}if(!h){_("Pre Round Wait Time is required");return}const A=parseInt(h);if(isNaN(A)||A<=0){_("Pre Round Wait Time must be a positive number");return}try{await n({longCode:e,roundMaxTime:k,preRoundWaitTime:A,autoStartNewRound:w}).unwrap()}catch{_("Failed to update settings, please try again!")}},R=async()=>{try{const I=await o(e).unwrap();c(I?.short_code.toString())}catch{}};return T.jsx("div",{className:"",children:T.jsxs("form",{onSubmit:C,children:[T.jsxs("div",{className:"mb-6",children:[T.jsxs("div",{className:"inline-flex",children:[T.jsx("span",{className:"text-sm font-bold py-2",children:"Invite code: "}),T.jsx("input",{className:"text-blue-500 font-bold w-16 ml-2 py-2 leading-tight focus:outline-none focus:shadow-outline",type:"text",id:"shortCode",name:"shortCode",value:l,readOnly:!0}),T.jsx("button",{className:"bg-gray-50 border border-gray-300 text-black text-xs mt-1 px-1 h-6 rounded",type:"button",title:"Refresh Code",onClick:R,disabled:s,children:s?"Refreshing...":"Refresh"})]}),T.jsxs("div",{className:"mt-2",children:[T.jsx("div",{className:"text-sm font-bold",children:"Share URL:"}),T.jsx("input",{className:"text-blue-500 font-bold w-80",type:"text",id:"shortCode",name:"shortCode",value:`${window.location.origin}/?code=${l}`,readOnly:!0})]})]}),T.jsxs("div",{className:"mb-6",children:[T.jsx("label",{className:"text-gray-700 text-sm mb-2 mr-2",htmlFor:"roundMaxTime",children:"Round max time (seconds):"}),T.jsx("input",{className:"bg-white appearance-none border border-gray-500 rounded-lg w-16 text-center py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",type:"text",id:"roun
2504dMaxTime",name:"roundMaxTime",value:d,placeholder:"",onChange:I=>f(I.target.value),autoComplete:"off"}),b&&T.jsx("p",{className:"text-red-500 text-xs",children:b})]}),T.jsxs("div",{className:"mb-6",children:[T.jsx("label",{className:"text-gray-700 text-sm mb-2 mr-2",htmlFor:"preRoundWaitTime",children:"Pre-round wait time (seconds):"}),T.jsx("input",{className:"bg-white appearance-none border border-gray-500 rounded-lg w-14 text-center py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",type:"text",id:"preRoundWaitTime",name:"preRoundWaitTime",value:h,placeholder:"Enter Pre Round Wait Time",onChange:I=>g(I.target.value),autoComplete:"off"}),b&&T.jsx("p",{className:"text-red-500 text-xs",children:b})]}),T.jsxs("div",{className:"mb-8",children:[T.jsx("label",{className:"block text-gray-700 text-sm mb-2",htmlFor:"autoStartNewRound"}),T.jsx("input",{className:"mr-2 leading-tight",type:"checkbox",id:"autoStartNewRound",name:"autoStartNewRound",checked:w,onChange:I=>m(I.target.checked)}),T.jsx("span",{className:"text-gray-700 text-sm",children:"Auto-start new rounds"})]}),T.jsx(ia,{buttonText:i?"Saving...":"Save Settings",type:"submit",buttonTextAdditionalClasses:"text-xl",disabled:i,showLoading:i})]})})};var Ql={exports:{}},eT=Ql.exports,e4;function tT(){return e4||(e4=1,(function(e,t){(function(n,i){i(t,e)})(eT,function(n,i){var o={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function l(f){try{delete window[f]}catch{window[f]=void 0}}function c(f){var h=document.getElementById(f);h&&document.getElementsByTagName("head")[0].removeChild(h)}function d(f){var h=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],g=f,w=h.timeout||o.timeout,m=h.jsonpCallback||o.jsonpCallback,b=void 0;return new Promise(function(_,C){var R=h.jsonpCallbackFunction||s(),I=m+"_"+R;window[R]=function(A){_({ok:!0,json:function(){return Promise.resolve(A)}}),b&&clearTimeout(b),c(I),l(R)},g+=g.indexOf("?")===-1?"?":"&";var k=document.createElement("script");k.setAttribute("src",""+g+m+"="+R),h.charset&&k.setAttribute("charset",h.charset),h.nonce&&k.setAttribute("nonce",h.nonce),h.referrerPolicy&&k.setAttribute("referrerPolicy",h.referrerPolicy),h.crossorigin&&k.setAttribute("crossorigin","true"),k.id=I,document.getElementsByTagName("head")[0].appendChild(k),b=setTimeout(function(){C(new Error("JSONP request to "+f+" timed out")),l(R),c(I),window[R]=function(){l(R)}},w),k.onerror=function(){C(new Error("JSONP request to "+f+" failed")),l(R),c(I),b&&clearTimeout(b)}})}i.exports=d})})(Ql,Ql.exports)),Ql.exports}var nT=tT();const rT=f4(nT),iT=vo.injectEndpoints({endpoints:e=>({getPublicGroupChallenge:e.query({query:t=>`group/public/${t}/`}),getAll:e.query({query:({longCode:t})=>`group/${t}/challenges/`}),createNewChallenge:e.mutation({query:({longCode:t,startTitle:n,goalTitle:i,startImageUrl:o,goalImageUrl:s})=>({url:`group/${t}/challenges/`,method:"POST",body:{start_title:n,goal_title:i,start_image_url:o,goal_image_url:s}})}),deleteChallenge:e.mutation({query:({longCode:t,challengePk:n})=>({url:`group/${t}/challenges/${n}/`,method:"DELETE"})})})}),{useGetPublicGroupChallengeQuery:CP,useGetAllQuery:aT,useCreateNewChallengeMutation:oT,useDeleteChallengeMutation:sT}=iT,t4="/assets/article-query-result-no-image-BpsY3gQ6.png",M7=e=>{const t=Kt(ji),[n,i]=z.useState(""),[o,s]=z.useState(""),[l,c]=z.useState(null),[d,f]=z.useState(null),[h,g]=z.useState({}),[w,m]=z.useState({}),[b,{isLoading:_}]=oT(),C=async(A,L)=>{const j=`https://en.wikipedia.org/w/api.php?action=query&format=json&generator=prefixsearch&prop=pageprops%7Cpageimages%7Cpageterms&redirects=&ppprop=displaytitle&piprop=thumbnail&pithumbsize=200&pilimit=10&wbptterms=description&gpssearch=${encodeURIComponent(A)}&gpsnamespace=0&gpslimit=6`;try{const V=await(await rT(j)).json();L(V.query.pages)}catch{}};z.useEffect(()=>{n.length>0&&!l?C(n,g):g({})},[n,l]),z.useEffect(()=>{o.length>0&&!d?C(o,m):m({})},[o,d]);const R=async()=>{l&&d&&(await b({longCode:t,startTitle:l.title,goalTitle:d.title,startImageUrl:l.thumbnail?.source||"",goalImageUrl:d.thumbnail?.source||""}),localStorage.setItem("hasCreatedChallenge","true"),i(""),s(""),c(null),f(null),g({}),m({}),e.onChallengeCreated())},I=A=>{i(A),l&&c(null)},k=A=>{s(A),d&&f(null)};return T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"text-2xl md:text-3xl py-4",children:"New Private Challenge"}),T.jsxs("div",{className:"flex flex-col xl:flex-row",children:[T.jsxs("div",{className:"mb-4",children:[T.jsx("label",{className:"text-sm font-bold",children:"Start Page"}),T.jsx("input",{type:"text",className:"p-2 w-full border border-gray-500 rounded-lg flex-grow mr-2",placeholder:"Search pages",value:n,onChange:A=>I(A.target.value)}),!l&&h&&Object.keys(h).map(A=>{const L=h[A];return T.jsxs("button",{className:"flex w-full text-left border my-3 p-2 space-x-2 hover:bg-blue-500",onClick:()=>{i(L.title),c(L),g({})},children:[T.jsx("img",{src:L.thumbnail?.source||t4,alt:L.title,className:"w-16 h-16"}),T.jsxs("div",{children:[T.jsx("div",{className:"text-2xl",children:L.title}),T.jsx("div",{className:"text-sm",children:L.terms?.description?.[0]})]})]},L.pageid)})]}),T.jsxs("div",{className:"xl:ml-4",children:[T.jsx("label",{className:"text-sm font-bold",children:"End Page"}),T.jsx("input",{type:"text",className:"p-2 w-full border border-gray-500 rounded-lg flex-grow mr-2",placeholder:"Search pages",value:o,onChange:A=>k(A.target.value)}),!d&&w&&Object.keys(w).map(A=>{const L=w[A];return T.jsxs("button",{className:"flex w-full text-left border my-3 p-2 space-x-2 hover:bg-blue-500",onClick:()=>{s(L.title),f(L),m({})},children:[T.jsx("img",{src:L.thumbnail?.source||t4,alt:L.title,className:"w-16 h-16"}),T.jsxs("div",{children:[T.jsx("div",{className:"text-2xl",children:L.title}),T.jsx("div",{className:"text-sm",children:L.terms?.description?.[0]})]})]},L.pageid)})]}),T.jsx("div",{className:"xl:ml-4 mt-5",children:T.jsx(ia,{buttonText:_?"Creating Challenge...":"Create New Challenge",onClick:()=>R(),type:"submit",buttonTextAdditionalClasses:"text-xl whitespace-nowrap",disabled:!l||!d||_,showLoading:_})})]})]})};function I7(e){const{challenge:t}=e,n=t?t.start_article.link.replace(/_/g," "):"...",i=t?t.goal_article.link.replace(/_/g," "):"...";return T.jsxs("div",{children:[T.jsx("span",{className:"font-noto-serif",children:n}),T.jsx("span",{className:"mx-3",children:"â"}),T.jsx("span",{className:"font-noto-serif",children:i})]})}const lT=e=>{fs(),ca();const t=Kt(ji),{data:n,error:i,isLoading:o,refetch:s}=aT({longCode:t}),[l]=$A(),[c,{isLoading:d}]=sT();z.useEffect(()=>{s()},[e.createChallengesCount]);const f=async g=>{await l({longCode:t,challengePk:g}),document.location.href="/play"},h=async g=>{window.confirm("Are you sure you want to delete this challenge?")&&(await c({longCode:t,challengePk:g}),s())};return o?T.jsx("div",{className:"m-6",children:"Loading..."}):n&&n.challenges.length===0?null:T.jsxs("div",{className:"mt-10",children:[T.jsx("div",{className:"text-3xl pb-4",children:"Existing Challenges"}),n&&n.challenges.map(g=>T.jsxs("div",{className:"flex flex-col items-stretch justify-between sm:items-center sm:flex-row space-y-4 sm:sp
2504ace-y-0 space-x-0 sm:space-x-4 ml-0 py-2 hover:bg-gray-50",children:[T.jsx("div",{className:"mt-4 sm:mt-0",children:T.jsx(I7,{challenge:g})}),T.jsxs("div",{className:"flex flex-row ml-auto",children:[T.jsx("button",{className:"underline",onClick:()=>f(g.pk),children:"Start Round"}),T.jsx("button",{className:"underline hover:text-red-500 ml-4",onClick:()=>h(g.pk),disabled:d,children:"Delete"})]})]},g.pk))]})},uT=()=>{const[e,t]=z.useState(0),n=()=>{t(i=>i+1)};return T.jsxs(T.Fragment,{children:[T.jsx(M7,{onChallengeCreated:n}),T.jsx(lT,{createChallengesCount:e})]})},cT=()=>T.jsxs(T.Fragment,{children:[T.jsx(Zk,{}),T.jsx("div",{className:"bg-brown-300 pb-40",children:T.jsxs("div",{className:"max-w-4xl mx-auto relative top-0 p-4 lg:p-6",children:[T.jsx("div",{className:"my-3",children:T.jsx(k4,{to:"/play",className:"uppercase text-sm py-2",children:"â Back to game"})}),T.jsx("div",{className:"uppercase text-lg py-2",children:"Group Admin Settings"}),T.jsxs("div",{className:"bg-white border-gray-800 border border-b-6 rounded-2xl p-6",children:[T.jsx("div",{className:"",children:T.jsx(uT,{})}),T.jsx("div",{className:"text-3xl pb-4 mt-10",children:"Group Settings"}),T.jsx("div",{className:"pb-10",children:T.jsx(L7,{})})]})]})})]}),dT=()=>{const e=Kt(S5),t=ko();return e?T.jsx(A4,{}):T.jsx(S4,{to:"/",state:{from:t},replace:!0})};var fT={};function pT(e,t,n){for(var i,o=0,s=t.length;o<s;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function hT(e){var t,n,i,o;e===void 0&&(e="auth/callback");var s=((n=(t=window.HeyGoodGame)===null||t===void 0?void 0:t.config)===null||n===void 0?void 0:n.isNativeApp)||!1,l=(o=(i=window.HeyGoodGame)===null||i===void 0?void 0:i.config)===null||o===void 0?void 0:o.nativeAppScheme;if(s&&l){var c=l.endsWith("://")?l:"".concat(l,"://"),d=e.startsWith("/")?e.slice(1):e;return"".concat(c).concat(d)}return window.location.href}z.createContext(null);z.createContext(null);z.createContext(null);var fh;typeof window<"u"&&window.HEYGG_GAME_VERSION||typeof process<"u"&&(!((fh=fT)===null||fh===void 0)&&fh.HEYGG_GAME_VERSION);z.createContext(null);z.createContext(null);function mT(){return window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone===!0}function R7(e,t){var n=mT();if(console.log("[heygg] navigateCrossGame called",{targetUrl:e,surface:t,isPWA:n,displayMode:window.matchMedia("(display-mode: standalone)").matches}),!n)return!1;var i=new URL(e,window.location.origin);if(i.origin===window.location.origin)return!1;var o=localStorage.getItem("heygg_jwt");o&&i.searchParams.set("token",o),typeof window.gtag=="function"&&window.gtag("event","cross_game_navigation",{source_game:window.location.hostname,target_game:i.hostname,surface:t,platform:/iPhone|iPad/.test(navigator.userAgent)?"ios":"android_or_other"});var s=i.toString();if(/Android/i.test(navigator.userAgent)){var l="intent://".concat(i.host).concat(i.pathname).concat(i.search).concat(i.hash,"#Intent;scheme=").concat(i.protocol.replace(":",""),";action=android.intent.action.VIEW;end");console.log("[heygg] Android intent navigation",l),window.location.href=l}else window.open(s,"_blank")||(window.location.href=s);return!0}var gT=[{href:"https://www.hey.gg/podcast",text:"Podcast"},{href:"https://www.youtube.com/@heygoodgames",text:"YouTube"},{href:"https://www.hey.gg/newsletter",text:"Newsletter"}],vT=function(e){var t=e.customResourceLinks,n=e.showBlogLink,i=n!==void 0&&n,o=e.showFeedbackLink,s=o!==void 0&&o,l=e.navLinks,c=e.socialLinks,d=new Date().getFullYear(),f=pT([],gT).map((function(g){var w=t?.find((function(m){return m.text===g.text}));return w||g})).concat(i?[{href:"/blog",text:"Blog"}]:[]).concat([{href:"https://store.hey.gg/",text:"Merch"}]).concat(s?[{href:"/feedback",text:"Feedback"}]:[]).concat({href:"https://www.hey.gg/privacy",text:"Privacy Policy"}),h=c&&Object.values(c).some(Boolean);return x.createElement("div",{className:"footer"},x.createElement("div",{className:"container"},x.createElement("div",{className:"aboutus"},x.createElement("div",{className:"section"},x.createElement("h2",null,"About Us"),x.createElement("p",null,"We're ",x.createElement("a",{href:"https://www.hey.gg"},"Hey, Good Game"),", a tiny game studio that builds and buys games, for good. We believe brainy games can impact your life in a positive and healthy way, and we're dedicated to creating a premium game experience across platforms."),x.createElement("p",null,"Learn more ",x.createElement("a",{href:"https://www.hey.gg/about"},"about us"),", and please reach out if you have a game to sell. We have a streamlined process that treats game caretakers fairly.")),x.createElement("p",{className:"copyright"},"© 2022-",d," Hey Good Game, Inc.")),x.createElement("div",{className:"games"},x.createElement("h2",null,"Hey, Good Games"),x.createElement("ul",{onClick:function(g){var w=g.target.closest("a");if(w){var m=w.getAttribute("href");m&&R7(m,"footer")&&g.preventDefault()}}},x.createElement("li",{className:"crosswordle"},x.createElement("a",{href:"https://crosswordle.com"},"Crosswordle")),x.createElement("li",{className:"sumplete"},x.createElement("a",{href:"https://sumplete.com"},"Sumplete")),x.createElement("li",{className:"squeezy"}
2504,x.createElement("a",{href:"https://imsqueezy.com"},"Squeezy")),x.createElement("li",{className:"pairdown"},x.createElement("a",{href:"https://pairdown.com"},"Pair Down")),x.createElement("li",{className:"queens"},x.createElement("a",{href:"https://queensultimate.com"},"Queens Ultimate")),x.createElement("li",{className:"minisudoku"},x.createElement("a",{href:"https://minisudoku.com"},"Mini Sudoku")),x.createElement("li",{className:"mathler"},x.createElement("a",{href:"https://www.mathler.com"},"Mathler")),x.createElement("li",{className:"kakuroconquest"},x.createElement("a",{href:"https://www.kakuroconquest.com"},"Kakuro Conquest")),x.createElement("li",{className:"hitoriconquest"},x.createElement("a",{href:"https://hitoriconquest.com"},"Hitori Conquest")),x.createElement("li",{className:"sudokuconquest"},x.createElement("a",{href:"https://www.sudokuconquest.com"},"Sudoku Conquest")),x.createElement("li",{className:"wordga"},x.createElement("a",{href:"https://wordga.com"},"WordGa")),x.createElement("li",{className:"sumslide"},x.createElement("a",{href:"https://sumslide.com"},"SumSlide")))),x.createElement("div",{className:"resources"},l&&l.links.length>0&&x.createElement("div",{className:"nav-links-section"},l.title&&x.createElement("h2",null,l.title),x.createElement("ul",null,l.links.map((function(g,w){return x.createElement("li",{key:"".concat(g.href,"-").concat(w)},x.createElement("a",{href:g.href},g.text))})))),h&&x.createElement("div",{className:"social-links-section"},x.createElement("h2",null,"Follow Us On"),x.createElement("ul",null,c.bluesky&&x.createElement("li",{key:"bluesky"},x.createElement("a",{href:c.bluesky,target:"_blank",rel:"noopener noreferrer"},"Bluesky")),c.instagram&&x.createElement("li",{key:"instagram"},x.createElement("a",{href:c.instagram,target:"_blank",rel:"noopener noreferrer"},"Instagram")),c.threads&&x.createElement("li",{key:"threads"},x.createElement("a",{href:c.threads,target:"_blank",rel:"noopener noreferrer"},"Threads")),c.twitter&&x.createElement("li",{key:"twitter"},x.createElement("a",{href:c.twitter,target:"_blank",rel:"noopener noreferrer"},"X / Twitter")))),x.createElement("h2",null,"Resources"),x.createElement("ul",null,f.map((function(g,w){return x.createElement("li",{key:"".concat(g.href,"-").concat(w)},x.createElement("a",{href:g.href},g.text))}))))))};function yT(){for(var e=[],t=new Date,n=0;n<7;n++){var i=new Date;i.setDate(t.getDate()-n),e.unshift(i.toLocaleDateString("en-CA"))}return e}var wT=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_crosswordle)"},x.createElement("g",{clipPath:"url(#clip0_crosswordle)"},x.createElement("rect",{width:"24",height:"24",fill:"white"}),x.createElement("rect",{x:"12",width:"12",height:"12",fill:"#E3DCDA"}),x.createElement("rect",{y:"12",width:"12",height:"12",fill:"#91D67D"}),x.createElement("rect",{x:"12",y:"12",width:"12",height:"12",fill:"#ECDD53"}),x.createElement("rect",{x:"1.76514",y:"1.76562",width:"6.70832",height:"6.70832",fill:"#91D67D"}),x.createElement("rect",{width:"12",height:"12",fill:"white"}),x.createElement("path",{d:"M12 0L12 24",stroke:"#150C09"}),x.createElement("path",{d:"M0 12L24 12",stroke:"#150C09"}),x.createElement("path",{d:"M4.125 9.75V3.93182H6.63636C7.06818 3.93182 7.44602 4.01705 7.76989 4.1875C8.09375 4.35795 8.34564 4.59754 8.52557 4.90625C8.70549 5.21496 8.79545 5.57576 8.79545 5.98864C8.79545 6.4053 8.70265 6.7661 8.51705 7.07102C8.33333 7.37595 8.07481 7.6108 7.74148 7.77557C7.41004 7.94034 7.02273 8.02273 6.57955 8.02273H5.07955V6.79545H6.26136C6.44697 6.79545 6.60511 6.76326 6.7358 6.69886C6.86837 6.63258 6.9697 6.53883 7.03977 6.41761C7.11174 6.2964 7.14773 6.15341 7.14773 5.98864C7.14773 5.82197 7.11174 5.67992 7.03977 5.5625C6.9697 5.44318 6.86837 5.35227 6.7358 5.28977C6.60511 5.22538 6.44697 5.19318 6.26136 5.19318H5.70455V9.75H4.125Z",fill:"#150C09"}),x.createElement("path",{d:"M16.3278 9.75H14.6232L16.5437 3.93182H18.7028L20.6232 9.75H18.9187L17.646 5.53409H17.6005L16.3278 9.75ZM16.0096 7.45455H19.2141V8.63636H16.0096V7.45455Z",fill:"#150C09"}
2504),x.createElement("path",{d:"M4.46484 21V15.1818H6.04439V19.7273H8.39666V21H4.46484Z",fill:"#150C09"}),x.createElement("path",{d:"M14.7028 14.4318H16.4641L17.6005 16.7955H17.646L18.7823 14.4318H20.5437L18.4073 18.4205V20.25H16.8391V18.4205L14.7028 14.4318Z",fill:"#150C09"})),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_crosswordle",x:"0",y:"0",width:"25.5",height:"25.5",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"1.5",dy:"1.5"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_crosswordle"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_crosswordle",result:"shape"})),x.createElement("clipPath",{id:"clip0_crosswordle"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},bT=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_sumplete)"},x.createElement("g",{clipPath:"url(#clip0_sumplete)"},x.createElement("rect",{width:"24",height:"24",fill:"white"}),x.createElement("path",{d:"M12 0L12 24",stroke:"#150C09"}),x.createElement("circle",{cx:"6.5",cy:"6.5",r:"4.5",fill:"#91D67D"}),x.createElement("path",{d:"M0 12L24 12",stroke:"#150C09"}),x.createElement("path",{d:"M7.7152 3.18182V9H6.13565V4.63636H6.10156L4.82884 5.39773V4.05682L6.26065 3.18182H7.7152Z",fill:"#150C09"}),x.createElement("path",{d:"M15.8004 9V7.86364L17.9709 6.06818C18.1148 5.94886 18.2379 5.83712 18.3402 5.73295C18.4444 5.62689 18.5239 5.51799 18.5788 5.40625C18.6357 5.29451 18.6641 5.17045 18.6641 5.03409C18.6641 4.88447 18.6319 4.75663 18.5675 4.65057C18.505 4.54451 18.4179 4.46307 18.3061 4.40625C18.1944 4.34754 18.0656 4.31818 17.9197 4.31818C17.7739 4.31818 17.6451 4.34754 17.5334 4.40625C17.4235 4.46496 17.3383 4.55114 17.2777 4.66477C17.2171 4.77841 17.1868 4.91667 17.1868 5.07955H15.6868C15.6868 4.67045 15.7786 4.31818 15.9624 4.02273C16.1461 3.72727 16.4055 3.5 16.74
250408 3.34091C17.076 3.18182 17.469 3.10227 17.9197 3.10227C18.3857 3.10227 18.7891 3.17708 19.13 3.3267C19.4728 3.47443 19.737 3.68277 19.9226 3.9517C20.1101 4.22064 20.2038 4.53598 20.2038 4.89773C20.2038 5.12121 20.1574 5.34375 20.0646 5.56534C19.9718 5.78504 19.8052 6.02841 19.5646 6.29545C19.3241 6.5625 18.9822 6.88068 18.5391 7.25L17.9936 7.70455V7.73864H20.2663V9H15.8004Z",fill:"#150C09"}),x.createElement("path",{d:"M6.45987 21.0795C6.00154 21.0795 5.59434 21.0009 5.23828 20.8438C4.88411 20.6847 4.60571 20.4659 4.40305 20.1875C4.2004 19.9091 4.09813 19.589 4.09624 19.2273H5.68714C5.68904 19.339 5.72313 19.4394 5.78942 19.5284C5.8576 19.6155 5.9504 19.6837 6.06783 19.733C6.18525 19.7822 6.31972 19.8068 6.47124 19.8068C6.61707 19.8068 6.74586 19.7812 6.8576 19.7301C6.96934 19.6771 7.05646 19.6042 7.11896 19.5114C7.18146 19.4186 7.21177 19.3125 7.20987 19.1932C7.21177 19.0758 7.17578 18.9716 7.10192 18.8807C7.02995 18.7898 6.92862 18.7187 6.79794 18.6676C6.66726 18.6165 6.51669 18.5909 6.34624 18.5909H5.75533V17.5H6.34624C6.50343 17.5 6.64169 17.4744 6.76101 17.4233C6.88222 17.3722 6.97597 17.3011 7.04226 17.2102C7.11044 17.1193 7.14358 17.0152 7.14169 16.8977C7.14358 16.7841 7.11612 16.6837 7.0593 16.5966C7.00249 16.5095 6.92294 16.4413 6.82067 16.392C6.72029 16.3428 6.60381 16.3182 6.47124 16.3182C6.3273 16.3182 6.19851 16.3437 6.08487 16.3949C5.97313 16.446 5.88506 16.517 5.82067 16.608C5.75627 16.6989 5.72313 16.803 5.72124 16.9205H4.20987C4.21177 16.5644 4.3093 16.25 4.50249 15.9773C4.69756 15.7045 4.96461 15.4905 5.30362 15.3352C5.64264 15.1799 6.03184 15.1023 6.47124 15.1023C6.90116 15.1023 7.28089 15.1752 7.61044 15.321C7.94188 15.4669 8.2004 15.6676 8.38601 15.9233C8.57351 16.1771 8.66631 16.4678 8.66442 16.7955C8.66821 17.1212 8.55646 17.3883 8.32919 17.5966C8.10381 17.8049 7.81783 17.928 7.47124 17.9659V18.0114C7.94093 18.0625 8.29415 18.2064 8.5309 18.4432C8.76764 18.678 8.88411 18.9735 8.88033 19.3295C8.88222 19.6705 8.77995 19.9725 8.57351 20.2358C8.36896 20.4991 8.08393 20.7055 7.71839 20.8551C7.35476 21.0047 6.93525 21.0795 6.45987 21.0795Z",fill:"#150C09"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2414 17.8304L13.0562 21.0657L14.5819 22.5678L17.7438 19.3563L20.9056 22.5678L22.4314 21.0657L19.2461 17.8304L22.431 14.5954L20.9053 13.0933L17.7438 16.3044L14.5823 13.0933L13.0565 14.5954L16.2414 17.8304Z",fill:"#FF6741"}),x.createElement("path",{d:"M15.521 20.0909V18.8636L17.8619 15.1818H18.9755V16.8182H18.3391L17.0778 18.8182V18.8636H20.5323V20.0909H15.521ZM18.3505 21V19.7159L18.3846 19.1818V15.1818H19.8619V21H18.3505Z",fill:"#150C09"})),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_sumplete",x:"0",y:"0",width:"25.5",height:"25.5",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"1.5",dy:"1.5"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_sumplete"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_sumplete",result:"shape"})),x.createElement("clipPath",{id:"clip0_sumplete"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},_T=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_squeezy)"},x.createElement("g",{clipPath:"url(#clip0_squeezy)"},x.createElement("path",{d:"M24 0L-1.90735e-06 -1.04907e-06L-2.95642e-06 24L24 24L24 0Z",fill:"#B2D565"}),x.createElement("g",{clipPath:"url(#clip1_squeezy)"},x.createElement("path",{d:"M1.79961 19.3602C1.79961 19.9788 4.66499 20.644 8.19961 20.644C11.7342 20.644 14.5996 19.9788 14.5996 19.3602C14.5996 18.7417 11.7342 18.2402 8.19961 18.2402C4.66499 18.2402 1.79961 18.7417 1.79961 19.3602Z",fill:"#150C09"}
2504),x.createElement("mask",{id:"path-5-inside-1_squeezy",fill:"white"},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3973 19.8028C17.9709 18.5279 20.3684 15.5603 20.7242 12.4235C20.9357 11.4484 21.1792 10.8184 21.3621 10.3453C21.603 9.72178 21.7387 9.37086 21.557 8.86168C21.3881 8.38827 21.0807 8.22171 20.5673 7.94357C20.1113 7.69648 19.4927 7.36133 18.6643 6.64478C16.4037 4.43946 12.6678 3.65831 9.0927 4.93373C5.56907 6.1908 3.18892 9.09354 2.78198 12.1815C2.59503 13.3396 2.31623 14.0243 2.11271 14.524C1.89196 15.0661 1.75977 15.3907 1.9294 15.8662C2.11186 16.3776 2.43939 16.5646 3.02136 16.8969C3.47501 17.1559 4.08325 17.5032 4.89788 18.1612C7.16528 20.3134 10.8601 21.0647 14.3973 19.8028Z"})),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3973 19.8028C17.9709 18.5279 20.3684 15.5603 20.7242 12.4235C20.9357 11.4484 21.1792 10.8184 21.3621 10.3453C21.603 9.72178 21.7387 9.37086 21.557 8.86168C21.3881 8.38827 21.0807 8.22171 20.5673 7.94357C20.1113 7.69648 19.4927 7.36133 18.6643 6.64478C16.4037 4.43946 12.6678 3.65831 9.0927 4.93373C5.56907 6.1908 3.18892 9.09354 2.78198 12.1815C2.59503 13.3396 2.31623 14.0243 2.11271 14.524C1.89196 15.0661 1.75977 15.3907 1.9294 15.8662C2.11186 16.3776 2.43939 16.5646 3.02136 16.8969C3.47501 17.1559 4.08325 17.5032 4.89788 18.1612C7.16528 20.3134 10.8601 21.0647 14.3973 19.8028Z",fill:"#F0CD29"}),x.createElement("path",{d:"M20.7242 12.4235L19.7469 12.2115L19.7362 12.2608L19.7305 12.3108L20.7242 12.4235ZM21.3621 10.3453L22.2948 10.7058L22.2948 10.7058L21.3621 10.3453ZM20.5673 7.94357L21.0437 7.06433L21.0437 7.06433L20.5673 7.94357ZM18.6643 6.64478L17.966 7.36059L17.9875 7.3815L18.0101 7.40109L18.6643 6.64478ZM2.78198 12.1815L3.7692 12.3409L3.77151 12.3266L3.77341 12.3122L2.78198 12.1815ZM2.11271 14.524L1.18656 14.1469L1.18656 14.1469L2.11271 14.524ZM3.02136 16.8969L2.52552 17.7653L2.52552 17.7653L3.02136 16.8969ZM4.89788 18.1612L5.58631 17.4359L5.55733 17.4084L5.52624 17.3833L4.89788 18.1612ZM19.7305 12.3108C19.4229 15.0227 17.3209 17.6981 14.0613 18.8609L14.7333 20.7446C18.6209 19.3577 21.3138 16.098 21.7178 12.5362L19.7305 12.3108ZM20.4293 9.98482C20.2408 10.4726 19.9751 11.1598 19.7469 12.2115L21.7014 12.6356C21.8964 11.737 22.1177 11.1642 22.2948 10.7058L20.4293 9.98482ZM20.6151 9.19769C20.6459 9.2839 20.645 9.32171 20.6339 9.38328C20.6131 9.49866 20.5608 9.64462 20.4293 9.98482L22.2948 10.7058C22.5191 10.1255 22.8221 9.43184 22.4989 8.52566L20.6151 9.19769ZM20.091 8.82281C20.2242 8.89498 20.3193 8.94673 20.4007 8.99552C20.4796 9.04282 20.5234 9.07444 20.5498 9.09652C20.5729 9.11577 20.5806 9.12612 20.5842 9.13119C20.5879 9.13659 20.5996 9.1542 20.6151 9.19769L22.4989 8.52566C22.1851 7.64612 21.5216 7.32327 21.0437 7.06433L20.091 8.82281ZM18.0101 7.40109C18.9193 8.18753 19.6114 8.563 20.091 8.82281L21.0437 7.06433C20.6111 6.82996 20.0661 6.53512 19.3186 5.88847L18.0101 7.40109ZM9.42872 5.87559C12.6896 4.71224 16.0117 5.45408 17.966 7.36059L19.3626 5.92897C16.7957 3.42483 12.6459 2.60439 8.75669 3.99187L9.42872 5.87559ZM3.77341 12.3122C4.12565 9.63926 6.21549 7.02192 9.42872 5.87559L8.75669 3.99187C4.92265 5.35969 2.25219 8.54783 1.79055 12.0509L3.77341 12.3122ZM1.79476 12.0222C1.62545 13.071 1.37882 13.6748 1.18656 14.1469L3.03886 14.9012C3.25365 14.3738 3.56461 13.6083 3.7692 12.3409L1.79476 12.0222ZM1.18656 14.1469C0.980685 14.6524 0.67358 15.3221 0.987547 16.2022L2.87126 15.5302C2.85544 15.4858 2.85314 15.4639 2.85258 15.4566C2.85206 15.4496 2.85154 15.436 2.85722 15.406C2.86371 15.3718 2.87765 15.3191 2.90873 15.2322C2.94079 15.1425 2.98158 15.0418 3.03886 14.9012L1.18656 14.1469ZM0.987547 16.2022C1.31108 17.1091 1.9831 17.4556 2.52552 17.7653L3.51721 16.0285C3.19983 15.8473 3.06638 15.7667 2.97667 15.6897C2.92829 15.6482 2.9027 15.6183 2.87126 15.5302L0.987547 16.2022ZM2.52552 17.7653C2.96427 18.0158 3.51762 18.3318 4.26952 18.9392L5.52624 17.3833C4.64888 16.6746 3.98574 16.296 3.51721 16.0285L2.52552 17.7653ZM14.0613 18.8609C10.8355 20.0118 7.54829 19.2982 5.58631 17.4359L4.20945 18.8865C6.78227 21.3286 10.8847 22.1177 14.7333 20.7446L14.0613 18.8609Z",fill:"black",mask:"url(#path-5-inside-1_squeez
2504y)"}),x.createElement("ellipse",{cx:"5.61284",cy:"5.54832",rx:"5.61284",ry:"5.54832",transform:"matrix(-0.941858 -0.336012 -0.336012 0.941858 20.9668 8.06836)",fill:"#FFDE43"}),x.createElement("circle",{cx:"2",cy:"2",r:"2",transform:"matrix(-1 0 0 1 19 7.99951)",fill:"white"}),x.createElement("circle",{cx:"2",cy:"2",r:"2",transform:"matrix(-1 0 0 1 11 7.99951)",fill:"white"}),x.createElement("circle",{cx:"1",cy:"1",r:"1",transform:"matrix(-1 0 0 1 10 8.99951)",fill:"black"}),x.createElement("circle",{cx:"0.5",cy:"0.5",r:"0.5",transform:"matrix(-1 0 0 1 10 8.99951)",fill:"white"}),x.createElement("circle",{cx:"1",cy:"1",r:"1",transform:"matrix(-1 0 0 1 18 8.99951)",fill:"black"}),x.createElement("path",{d:"M15 10.9995C15 10.9995 14.4706 11.9995 13.5 11.9995C12.5294 11.9995 12 10.9995 12 10.9995",stroke:"black",strokeLinecap:"round"}),x.createElement("circle",{cx:"0.5",cy:"0.5",r:"0.5",transform:"matrix(-1 0 0 1 18 8.99951)",fill:"white"}))),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black",shapeRendering:"crispEdges"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_squeezy",x:"0",y:"0",width:"26",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"2",dy:"2"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_squeezy"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_squeezy",result:"shape"})),x.createElement("clipPath",{id:"clip0_squeezy"},x.createElement("rect",{width:"24",height:"24",fill:"white"})),x.createElement("clipPath",{id:"clip1_squeezy"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},CT=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_pairdown)"},x.createElement("g",{clipPath:"url(#clip0_pairdown)"},x.createElement("path",{d:"M24 0L-1.90735e-06 -1.04907e-06L-2.95642e-06 24L24 24L24 0Z",fill:"#A7DCF4"}),x.createElement("ellipse",{cx:"6.08509",cy:"1.069",rx:"6.08509",ry:"1.069",transform:"matrix(-1 8.64297e-08 8.64297e-08 1 20.0642 18.353)",fill:"#150C09"}),x.createElement("circle",{cx:"11.3212",cy:"12.4061",r:"7.54932",transform:"rotate(14.8278 11.3212 12.4061)",fill:"#F29760",stroke:"black"}),x.createElement("ellipse",{cx:"5.20848",cy:"5.28552",rx:"5.20848",ry:"5.28552",transform:"matrix(-0.66457 -0.747226 -0.747226 0.66457 17.9783 11.2778)",fill:"#FFAC7A"}),x.createElement("path",{d:"M11.2222 10.5537C11.2222 10.5537 11.1007 11.0748 10.5993 11.2553C10.0978 11.4357 9.6722 11.1114 9.6722 11.1114",stroke:"black",strokeWidth:"0.657847",strokeLinecap:"round"}),x.createElement("circle",{cx:"1.46322",cy:"1.46322",r:"1.46322",transform:"matrix(-0.940947 0.338553 0.338553 0.940947 9.33203 7.40479)",fill:"white"}),x.createElement("circle",{cx:"0.975481",cy:"0.975481",r:"0.975481",transform:"matrix(-0.940947 0.338553 0.338553 0.940947 9.03809 8.02832)",fill:"black"}),x.createElement("circle",{cx:"0.487805",cy:"0.487805",r:"0.487805",transform:"matrix(-0.940947 0.338553 0.338553 0.940947 9.03809 8.02832)",fill:"white"}),x.createElement("circle",{cx:"1.46322",cy:"1.46322",r:"1.46322",transform:"matrix(-0.940947 0.338553 0.338553 0.940947 11.8127 6.51172)",fill:"white"}),x.createElement("circle",{cx:"0.975481",cy:"0.975481",r:"0.975481",transform:"matrix(-0.940947 0.338553 0.338553 0.940947 11.519 7.13623)",fill:"black"}),x.createElement("circle",{cx:"0.487805",cy:"0.487805",r:"0.487805",transform:"matrix(-0.940947 0.338553 0.338553 0.940947 11.519 7.13623)",fill:"white"})),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_pairdown",x:"0",y:"0",width:"26",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"}
2504,x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"2",dy:"2"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_pairdown"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_pairdown",result:"shape"})),x.createElement("clipPath",{id:"clip0_pairdown"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},xT=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{filter:"url(#filter0_d_15729_12203)"},x.createElement("g",{clipPath:"url(#clip0_15729_12203)"},x.createElement("rect",{width:"24",height:"24",fill:"#CFA3FF"}),x.createElement("path",{d:"M20.4806 18.9005L18.9219 7.47033C18.9219 7.47033 18.0524 9.96129 15.6748 9.96129C13.2971 9.96129 12.4276 4.35303 12.4276 4.35303C12.4276 4.35303 11.5686 9.96129 9.18036 9.96129C6.79214 9.96129 5.93317 7.47033 5.93317 7.47033L4.37451 18.9005H20.4806Z",fill:"#F9DB5D"}),x.createElement("path",{d:"M5.01611 16.8382C11.1792 15.8301 14.1347 15.7614 20.3665 16.8382",stroke:"#EEC000",strokeWidth:"1.46631"}),x.createElement("path",{d:"M20.4808 18.9005L18.9222 7.47033C18.9222 7.47033 18.0526 10.1904 15.675 10.1904C13.2973 10.1904 12.4278 4.35303 12.4278 4.35303C12.4278 4.35303 11.5688 10.1904 9.18061 10.1904C6.79239 10.1904 5.93341 7.47033 5.93341 7.47033L4.37476 18.9005",stroke:"black",strokeWidth:"0.733153"}),x.createElement("path",{d:"M20.4806 18.9005L18.9219 7.47033C18.9219 7.47033 18.0524 10.1904 15.6748 10.1904C13.2971 10.1904 12.4276 4.35303 12.4276 4.35303C12.4276 4.35303 11.5686 10.1904 9.18036 10.1904C6.79214 10.1904 5.93317 7.47033 5.93317 7.47033L4.37451 18.9005",stroke:"black",strokeWidth:"0.733153"}),x.createElement("path",{opacity:"0.6",d:"M20.0687 18.5795L18.7939 8.59033L15.4636 10.4461L14.2951 9.66715L8.10913 18.5795H20.0687Z",fill:"#FFF4C5"}),x.createElement("path",{d:"M4.42041 18.2587C10.5835 17.2506 13.6536 17.0444 19.8854 18.1212L18.6711 9.09424",stroke:"white",strokeOpacity:"0.74",strokeWidth:"1.46631"}),x.createElement("path",{d:"M20.4806 18.9005L18.9219 7.47033C18.9219 7.47033 18.0524 10.1904 15.6748 10.1904C13.2971 10.1904 12.4276 4.35303 12.4276 4.35303C12.4276 4.35303 11.5686 10.1904 9.18036 10.1904C6.79214 10.1904 5.93317 7.47033 5.93317 7.47033L4.37451 18.9005",stroke:"black",strokeWidth:"0.824797"}),x.createElement("circle",{cx:"5.80379",cy:"7.51424",r:"1.58174",fill:"#F9DB5D",stroke:"black",strokeWidth:"0.733153"}),x.createElement("path",{d:"M6.76071 6.50657C6.41861 5.96058 5.22447 6.135 4.87947 6.29679C6.17301 6.25304 6.58392 8.45232 6.58392 8.45232C6.85348 8.17782 7.33607 7.42483 6.76071 6.50657Z",fill:"white"}),x.createElement("circle",{cx:"5.80379",cy:"7.51424",r:"1.58174",stroke:"black",strokeWidth:"0.733153"}),x.createElement("circle",{cx:"18.8531",cy:"7.37703",r:"1.58174",fill:"#F9DB5D",stroke:"black",strokeWidth:"0.733153"}),x.createElement("circle",{cx:"12.4173",cy:"4.94832",r:"1.58174",fill:"#F9DB5D",stroke:"black",strokeWidth:"0.733153"}),x.createElement("path",{d:"M13.7064 4.23121C13.4713 3.63131 12.2655 3.58157 11.8965 3.67668C13.1758 3.87323 13.1723 6.11056 13.1723 6.11056C13.4881 5.89074 14.1018 5.24013 13.7064 4.23121Z",fill:"white"}),x.createElement("circle",{cx:"12.4173",cy:"4.94832",r:"1.58174",stroke:"black",strokeWidth:"0.733153"}),x.createElement("path",{d:"M19.9946 6.72297C19.8082 6.1062 18.6102 5.96023 18.2348 6.02554C19.4943 6.32373 19.312 8.55362 19.312 8.55362C19.6443 8.35974 20.308 7.76028 19.9946 6.72297Z",fill:"white"}),x.createElement("path",{d:"M11.0188 12.6174L12.3945 10.4233L13.8139 12.6174L12.3945 14.3869L11.0188 12.6174Z",fill:"white",stroke:"black",strokeWidth:"0.458221"}),x.createElement("circle",{cx:"18.8531",cy:"7.37703",r:"1.58174",stroke:"black",strokeWidth:"0.733153"}),x.createElement("ellipse",{cx:"12.4393",cy:"18.9",rx:"8.43126",ry:"1.09973",fill:"black"}),x.createElement("circle",{cx:"8.75069",cy:"12.8288",r:"0.756064",fill:"white",stroke:"black",strokeWidth:"0.458221"}),x.createElement("circle",{cx:"15.8989",cy:"12.8288",r:"0.756064",fill:"white",stroke:"black",strokeWidth:"0.458221"})),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black",shapeRendering:"crispEdges"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_15729_12203",x:"0",y:"0",width:"26",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"}
2504,x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"2",dy:"2"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_15729_12203"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_15729_12203",result:"shape"})),x.createElement("clipPath",{id:"clip0_15729_12203"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},ST=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_mathler)"},x.createElement("g",{clipPath:"url(#clip0_mathler)"},x.createElement("rect",{width:"24",height:"24",fill:"white"}),x.createElement("path",{d:"M23 12H12V1H23V12Z",fill:"#FFED48"}),x.createElement("path",{d:"M12 23H1V12H12V23Z",fill:"#91D67D"}),x.createElement("path",{d:"M12 0L12 24",stroke:"#150C09"}),x.createElement("path",{d:"M0 12L24 12",stroke:"#150C09"}),x.createElement("path",{d:"M4.02095 8.09091V6.86364L6.36186 3.18182H7.4755V4.81818H6.83913L5.57777 6.81818V6.86364H9.03232V8.09091H4.02095ZM6.8505 9V7.71591L6.88459 7.18182V3.18182H8.36186V9H6.8505Z",fill:"#150C09"}),x.createElement("path",{d:"M17.3629 8.73864V4.53409H18.6357V8.73864H17.3629ZM15.897 7.27273V6H20.1016V7.27273H15.897Z",fill:"#150C09"}),x.createElement("path",{d:"M7.86293 18.0909V19.2727H5.13565V18.0909H7.86293Z",fill:"#150C09"}),x.createElement("path",{d:"M15.8004 21V19.8636L17.9709 18.0682C18.1148 17.9489 18.2379 17.8371 18.3402 17.733C18.4444 17.6269 18.5239 17.518 18.5788 17.4062C18.6357 17.2945 18.6641 17.1705 18.6641 17.0341C18.6641 16.8845 18.6319 16.7566 18.5675 16.6506C18.505 16.5445 18.4179 16.4631 18.3061 16.4062C18.1944 16.3475 18.0656 16.3182 17.9197 16.3182C17.7739 16.3182 17.6451 16.3475 17.5334 16.4062C17.4235 16.465 17.3383 16.5511 17.2777 16.6648C17.2171 16.7784 17.1868 16.9167 17.1868 17.0795H15.6868C15.6868 16.6705 15.7786 16.3182 15.9624 16.0227C16.1461 15.7273 16.4055 15.5 16.7408 15.3409C17.076 15.1818 17.469 15.1023 17.9197 15.1023C18.3857 15.1023 18.7891 15.1771 19.13 15.3267C19.4728 15.4744 19.737 15.6828 19.9226 15.9517C20.1101 16.2206 20.2038 16.536 20.2038 16.8977C20.2038 17.1212 20.1574 17.3437 20.0646 17.5653C19.9718 17.785 19.8052 18.0284 19.5646 18.2955C19.3241 18.5625 18.9822 18.8807 18.5391 19.25L17.9936 19.7045V19.7386H20.2663V21H15.8004Z",fill:"#150C09"})),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_mathler",x:"0",y:"0",width:"26",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"2",dy:"2"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_mathler"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_mathler",result:"shape"})),x.createElement("clipPath",{id:"clip0_mathler"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},AT=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_11981_5161)"},x.createElement("g",{clipPath:"url(#clip0_11981_5161)"},x.createElement("rect",{width:"24",height:"24",fill:"white"}),x.createElement("rect",{x:"12",y:"12",width:"11",height:"11",fill:"#E3DCDA"}),x.createElement("rect",{x:"1",y:"1",width:"11",height:"11",fill:"#E3DCDA"}),x.createElement("path",{d:"M12 0V24",stroke:"black",strokeWidth:"0.923077"}),x.createElement("path",{d:"M0 12H24",stroke:"black",strokeWidth:"0.923077"}),x.createElement("path",{d:"M9.72456 2.53091V6H8.78276V3.39818H8.76243L8.00357 3.85214V3.05263L8.85729 2.53091H9.72456Z",fill:"black"}),x.createElement("path",{d:"M13.6885 22V21.3224L14.9826 20.2519C15.0685 20.1808 15.1419 20.1141 15.2028 20.052C15.265 19.9888 15.3124 19.9239 15.3451 19.8572C15.379 19.7906 15.3959 19.7166 15.3959 19.6353C15.3959 19.5461 15.3767 19.4699 15.3384 19.4067C15.3011 19.3434 15.2491 19.2949 15.1825 19.261C15.1159 19.226 15.0391 19.2085 14.9521 19.2085C14.8652 19.2085 14.7884 19.226 14.7218 19.261C14.6563 19.296 14.6055 19.3474 14.5693 19.4151C14.5332 19.4829 14.5151 19.5653 14.5151 19.6624H13.6207C13.6207 19.4185 13.6755 19.2085 13.7851 19.0323C13.8946 18.8561 14.0493 18.7206 14.2492 18.6258C14.4491 18.5309 14.6834 18.4835 14.9521 18.4835C15.2299 18.4835 15.4705 18.5281 15.6737 18.6173C15.8781 18.7054 16.0357 18.8296 16.1463 18.99C16.2581 19.1503 16.314 19.3383 16.314 19.554C16.314 19.6873 16.2864 19.82 16.231 19.9521C16.1757 20.0831 16.0763 20.2282 15.9329 20.3874C15.7895 20.5466 15.5857 20.7364 15.3214 20.9566L14.9962 21.2276V21.2479H16.3513V22H13.6885Z",fill:"black"}),x.createElement("path",{d:"M1 1L24 24",stroke:"#150C09",strokeWidth:"0.923077"})),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black",shapeRendering:"crispEdges"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_11981_5161",x:"0",y:"0",width:"26",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"}
2504,x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"2",dy:"2"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_11981_5161"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_11981_5161",result:"shape"})),x.createElement("clipPath",{id:"clip0_11981_5161"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},ET=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_11981_5483)"},x.createElement("g",{clipPath:"url(#clip0_11981_5483)"},x.createElement("rect",{width:"24",height:"24",fill:"white"}),x.createElement("rect",{x:"12",y:"12",width:"11",height:"11",fill:"#150C09"}),x.createElement("rect",{x:"1",y:"1",width:"11",height:"11",fill:"#150C09"}),x.createElement("path",{d:"M12 0V24",stroke:"black",strokeWidth:"0.923077"}),x.createElement("path",{d:"M0 12H24",stroke:"black",strokeWidth:"0.923077"}),x.createElement("path",{d:"M7.7152 3.18182V9H6.13565V4.63636H6.10156L4.82884 5.39773V4.05682L6.26065 3.18182H7.7152Z",fill:"white"}),x.createElement("path",{d:"M18.7152 3.18182V9H17.1357V4.63636H17.1016L15.8288 5.39773V4.05682L17.2607 3.18182H18.7152Z",fill:"#150C09"}),x.createElement("path",{d:"M7.7152 15.1818V21H6.13565V16.6364H6.10156L4.82884 17.3977V16.0568L6.26065 15.1818H7.7152Z",fill:"#150C09"}),x.createElement("path",{d:"M15.8004 21V19.8636L17.9709 18.0682C18.1148 17.9489 18.2379 17.8371 18.3402 17.733C18.4444 17.6269 18.5239 17.518 18.5788 17.4062C18.6357 17.2945 18.6641 17.1705 18.6641 17.0341C18.6641 16.8845 18.6319 16.7566 18.5675 16.6506C18.505 16.5445 18.4179 16.4631 18.3061 16.4062C18.1944 16.3475 18.0656 16.3182 17.9197 16.3182C17.7739 16.3182 17.6451 16.3475 17.5334 16.4062C17.4235 16.465 17.3383 16.5511 17.2777 16.6648C17.2171 16.7784 17.1868 16.9167 17.1868 17.0795H15.6868C15.6868 16.6705 15.7786 16.3182 15.9624 16.0227C16.1461 15.7273 16.4055 15.5 16.7408 15.3409C17.076 15.1818 17.469 15.1023 17.9197 15.1023C18.3857 15.1023 18.7891 15.1771 19.13 15.3267C19.4728 15.4744 19.737 15.6828 19.9226 15.9517C20.1101 16.2206 20.2038 16.536 20.2038 16.8977C20.2038 17.1212 20.1574 17.3437 20.0646 17.5653C19.9718 17.785 19.8052 18.0284 19.5646 18.2955C19.3241 18.5625 18.9822 18.8807 18.5391 19.25L17.9936 19.7045V19.7386H20.2663V21H15.8004Z",fill:"white"})),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black",shapeRendering:"crispEdges"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_11981_5483",x:"0",y:"0",width:"26",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"2",dy:"2"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_11981_5483"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_11981_5483",result:"shape"})),x.createElement("clipPath",{id:"clip0_11981_5483"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},kT=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_sudoku)"},x.createElement("g",{clipPath:"url(#clip0_sudoku)"},x.createElement("rect",{width:"24",height:"24",fill:"white"}),x.createElement("rect",{x:"12",y:"12",width:"11",height:"11",fill:"#E3DCDA"}),x.createElement("rect",{width:"12",height:"12",fill:"#E3DCDA"}),x.createElement("path",{d:"M12 0L12 24",stroke:"#A99F9C"}),x.createElement("path",{d:"M0 12L24 12",stroke:"#A99F9C"}),x.createElement("path",{d:"M7.302 2.76623V9H5.60963V4.32468H5.5731L4.20947 5.14042V3.70373L5.74356 2.76623H7.302Z",fill:"#150C09"}),x.createElement("path",{d:"M15.6433 9V7.78247L17.9688 5.85877C18.123 5.73093 18.2549 5.6112 18.3645 5.49959C18.4761 5.38596 18.5613 5.26928 18.6202 5.14955C18.6811 5.02983 18.7115 4.89692 18.7115 4.75081C18.7115 4.5905 18.677 4.45353 18.608 4.33989C18.541 4.22626 18.4477 4.139 18.328 4.07813C18.2082 4.01522 18.0703 3.98377 17.914 3.98377C17.7578 3.98377 17.6198 4.01522 17.5001 4.07813C17.3824 4.14103 17.291 4.23336 17.2261 4.35511C17.1612 4.47687 17.1287 4.625 17.1287 4.79951H15.5216C15.5216 4.3612 15.62 3.98377 15.8168 3.66721C16.0136 3.35065 16.2916 3.10714 16.6508 2.93669C17.01 2.76623 17.4311 2.68101 17.914 2.68101C18.4132 2.68101 18.8454 2.76116 19.2107 2.92147C19.578 3.07975 19.861 3.30296 20.0599 3.59111C20.2608 3.87926 20.3613 4.21713 20.3613 4.60471C20.3613 4.84416 20.3115 5.08259 20.2121 5.32001C20.1127 5.5554 19.9341 5.81615 19.6764 6.10227C19.4187 6.38839 19.0524 6.7293 18.5776 7.125L17.9932 7.61201V7.64854H20.4282V9H15.6433Z",fill:"#150C09"}),x.createElement("path",{d:"M5.95701 21.0852C5.46593 21.0852 5.02965 21.001 4.64816 20.8326C4.26869 20.6621 3.9704 20.4278 3.75327 20.1295C3.53615 19.8312 3.42657 19.4882 3.42454 19.1006H5.12908C5.13111 19.2204 5.16764 19.3279 5.23866 19.4233C5.31171 19.5166 5.41115 19.5897 5.53696 19.6425C5.66277 19.6952 5.80684 19.7216 5.96918
250419.7216C6.12543 19.7216 6.26342 19.6942 6.38314 19.6394C6.50287 19.5826 6.59621 19.5045 6.66317 19.405C6.73014 19.3056 6.76261 19.192 6.76058 19.0641C6.76261 18.9383 6.72405 18.8267 6.64491 18.7293C6.5678 18.6319 6.45924 18.5558 6.31922 18.501C6.17921 18.4462 6.01788 18.4188 5.83525 18.4188H5.20214V17.25H5.83525C6.00368 17.25 6.15181 17.2226 6.27965 17.1678C6.40952 17.113 6.50997 17.0369 6.58099 16.9395C6.65404 16.8421 6.68955 16.7305 6.68753 16.6047C6.68955 16.483 6.66013 16.3754 6.59925 16.2821C6.53838 16.1887 6.45315 16.1157 6.34357 16.0629C6.23602 16.0101 6.11123 15.9838 5.96918 15.9838C5.81496 15.9838 5.67697 16.0112 5.55522 16.0659C5.4355 16.1207 5.34114 16.1968 5.27214 16.2942C5.20315 16.3916 5.16764 16.5032 5.16561 16.6291H3.54629C3.54832 16.2476 3.65283 15.9107 3.85981 15.6185C4.06882 15.3263 4.35494 15.097 4.71817 14.9306C5.0814 14.7642 5.4984 14.681 5.96918 14.681C6.42981 14.681 6.83667 14.7591 7.18976 14.9154C7.54487 15.0716 7.82186 15.2867 8.02072 15.5607C8.22162 15.8326 8.32105 16.1441 8.31902 16.4951C8.32308 16.8442 8.20335 17.1303 7.95985 17.3535C7.71837 17.5767 7.41196 17.7086 7.04061 17.7492V17.7979C7.54386 17.8527 7.92231 18.0069 8.17596 18.2606C8.42961 18.5122 8.55441 18.8287 8.55035 19.2102C8.55238 19.5755 8.4428 19.8991 8.22162 20.1812C8.00246 20.4633 7.69706 20.6845 7.30542 20.8448C6.91581 21.0051 6.46634 21.0852 5.95701 21.0852Z",fill:"#150C09"}),x.createElement("path",{d:"M15.3439 20.026V18.711L17.852 14.7662H19.0452V16.5195H18.3634L17.0119 18.6623V18.711H20.7132V20.026H15.3439ZM18.3755 21V19.6242L18.4121 19.0519V14.7662H19.9949V21H18.3755Z",fill:"#150C09"})),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black",shapeRendering:"crispEdges"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_sudoku",x:"0",y:"0",width:"26",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"2",dy:"2"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_sudoku"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_sudoku",result:"shape"})),x.createElement("clipPath",{id:"clip0_sudoku"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},TT=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_4950_446)"},x.createElement("g",{clipPath:"url(#clip0_4950_446)"},x.createElement("rect",{width:"24",height:"24",fill:"white"}),x.createElement("rect",{x:"12",width:"12",height:"12",fill:"#E3DCDA"}),x.createElement("rect",{y:"12",width:"12",height:"12",fill:"#91D67D"}),x.createElement("rect",{x:"12",y:"12",width:"12",height:"12",fill:"#ECDD53"}),x.createElement("rect",{x:"1.76514",y:"1.76562",width:"6.70832",height:"6.70832",fill:"#91D67D"}),x.createElement("rect",{width:"12",height:"12",fill:"white"}),x.createElement("path",{d:"M12 0L12 24",stroke:"#150C09"}),x.createElement("path",{d:"M0 12L24 12",stroke:"#150C09"}),x.createElement("path",{d:"M4.125 9.75V3.93182H6.63636C7.06818 3.93182 7.44602 4.01705 7.76989 4.1875C8.09375 4.35795 8.34564 4.59754 8.52557 4.90625C8.70549 5.21496 8.79545 5.57576 8.79545 5.98864C8.79545 6.4053 8.70265 6.7661 8.51705 7.07102C8.33333 7.37595 8.07481 7.6108 7.74148 7.77557C7.41004 7.94034 7.02273 8.02273 6.57955 8.02273H5.07955V6.79545H6.26136C6.44697 6.79545 6.60511 6.76326 6.7358 6.69886C6.86837 6.63258 6.9697 6.53883 7.03977 6.41761C7.11174 6.2964 7.14773 6.15341 7.14773 5.98864C7.14773 5.82197 7.11174 5.67992 7.03977 5.5625C6.9697 5.44318 6.86837 5.35227 6.7358 5.28977C6.60511 5.22538 6.44697 5.19318 6.26136 5.19318H5.70455V9.75H4.125Z",fill:"#150C09"}),x.createElement("path",{d:"M16.3278 9.75H14.6232L16.5437 3.93182H18.7028L20.6232 9.75H18.9187L17.646 5.53409H17.6005L16.3278 9.75ZM16.0096 7.45455H19.2141V8.63636H16.0096V7.45455Z",fill:"#150C09"}
2504),x.createElement("path",{d:"M4.46484 21V15.1818H6.04439V19.7273H8.39666V21H4.46484Z",fill:"#150C09"}),x.createElement("path",{d:"M14.7028 14.4318H16.4641L17.6005 16.7955H17.646L18.7823 14.4318H20.5437L18.4073 18.4205V20.25H16.8391V18.4205L14.7028 14.4318Z",fill:"#150C09"}),x.createElement("g",{filter:"url(#filter1_d_4950_446)"},x.createElement("g",{clipPath:"url(#clip1_4950_446)"},x.createElement("path",{d:"M0 0H24V24H0V0Z",fill:"#6BCB77"}),x.createElement("g",{filter:"url(#filter2_f_4950_446)"},x.createElement("circle",{cx:"1.47687",cy:"1.84638",r:"14.7692",fill:"#A9FFB5",fillOpacity:"0.7"})),x.createElement("rect",{x:"1",y:"1",width:"11",height:"7",fill:"white"}),x.createElement("rect",{x:"12",y:"9",width:"11",height:"7",fill:"white"}),x.createElement("rect",{x:"1",y:"16",width:"11",height:"7",fill:"white"}),x.createElement("path",{d:"M16.8546 6V5.43182L17.9398 4.53409C18.0118 4.47443 18.0734 4.41856 18.1245 4.36648C18.1766 4.31345 18.2164 4.259 18.2438 4.20312C18.2722 4.14725 18.2864 4.08523 18.2864 4.01705C18.2864 3.94223 18.2703 3.87831 18.2381 3.82528C18.2069 3.77225 18.1633 3.73153 18.1075 3.70312C18.0516 3.67377 17.9872 3.65909 17.9143 3.65909C17.8414 3.65909 17.777 3.67377 17.7211 3.70312C17.6662 3.73248 17.6236 3.77557 17.5932 3.83239C17.5629 3.8892 17.5478 3.95833 17.5478 4.03977H16.7978C16.7978 3.83523 16.8437 3.65909 16.9356 3.51136C17.0274 3.36364 17.1572 3.25 17.3248 3.17045C17.4924 3.09091 17.6889 3.05114 17.9143 3.05114C18.1472 3.05114 18.3489 3.08854 18.5194 3.16335C18.6908 3.23722 18.8229 3.34138 18.9157 3.47585C19.0094 3.61032 19.0563 3.76799 19.0563 3.94886C19.0563 4.06061 19.0331 4.17187 18.9867 4.28267C18.9403 4.39252 18.857 4.5142 18.7367 4.64773C18.6165 4.78125 18.4455 4.94034 18.2239 5.125L17.9512 5.35227V5.36932H19.0876V6H16.8546Z",fill:"#158D24"}),x.createElement("path",{d:"M6.562 3.09091V6H5.77223V3.81818H5.75518L5.11882 4.19886V3.52841L5.83473 3.09091H6.562Z",fill:"#150C09"}),x.createElement("path",{d:"M16.6921 13.5455V12.9318L17.8625 11.0909H18.4193V11.9091H18.1012L17.4705 12.9091V12.9318H19.1978V13.5455H16.6921ZM18.1068 14V13.358L18.1239 13.0909V11.0909H18.8625V14H18.1068Z",fill:"#150C09"}),x.createElement("path",{d:"M5.91154 14.0398C5.68237 14.0398 5.47877 14.0005 5.30074 13.9219C5.12366 13.8423 4.98445 13.733 4.88313 13.5938C4.7818 13.4545 4.73066 13.2945 4.72972 13.1136H5.52517C5.52612 13.1695 5.54316 13.2197 5.57631 13.2642C5.6104 13.3078 5.6568 13.3419 5.71551 13.3665C5.77423 13.3911 5.84146 13.4034 5.91722 13.4034C5.99013 13.4034 6.05453 13.3906 6.1104 13.3651C6.16627 13.3385 6.20983 13.3021 6.24108 13.2557C6.27233 13.2093 6.28748 13.1562 6.28654 13.0966C6.28748 13.0379 6.26949 12.9858 6.23256 12.9403C6.19657 12.8949 6.14591 12.8594 6.08057 12.8338C6.01523 12.8082 5.93995 12.7955 5.85472 12.7955H5.55926V12.25H5.85472C5.93332 12.25 6.00245 12.2372 6.0621 12.2116C6.12271 12.1861 6.16959 12.1506 6.20273 12.1051C6.23682 12.0597 6.25339 12.0076 6.25245 11.9489C6.25339 11.892 6.23966 11.8419 6.21125 11.7983C6.18284 11.7547 6.14307 11.7206 6.09193 11.696C6.04174 11.6714 5.98351 11.6591 5.91722 11.6591C5.84525 11.6591 5.78085 11.6719 5.72404 11.6974C5.66816 11.723 5.62413 11.7585 5.59193 11.804C5.55974 11.8494 5.54316 11.9015 5.54222 11.9602H4.78654C4.78748 11.7822 4.83625 11.625 4.93284 11.4886C5.03038 11.3523 5.1639 11.2453 5.33341 11.1676C5.50292 11.09 5.69752 11.0511 5.91722 11.0511C6.13218 11.0511 6.32205 11.0876 6.48682 11.1605C6.65254 11.2334
25046.7818 11.3338 6.8746 11.4616C6.96835 11.5885 7.01476 11.7339 7.01381 11.8977C7.0157 12.0606 6.95983 12.1941 6.84619 12.2983C6.73351 12.4025 6.59051 12.464 6.41722 12.483V12.5057C6.65207 12.5312 6.82868 12.6032 6.94705 12.7216C7.06542 12.839 7.12366 12.9867 7.12176 13.1648C7.12271 13.3352 7.07157 13.4863 6.96835 13.6179C6.86608 13.7495 6.72356 13.8527 6.5408 13.9276C6.35898 14.0024 6.14923 14.0398 5.91154 14.0398Z",fill:"#158D24"}),x.createElement("path",{d:"M17.9716 21.5207C17.802 21.5207 17.6411 21.4942 17.4886 21.4412C17.3371 21.3872 17.2026 21.3025 17.0852 21.1869C16.9678 21.0714 16.8754 20.9208 16.8082 20.7352C16.7419 20.5496 16.7092 20.3247 16.7102 20.0605C16.7111 19.8247 16.7414 19.6126 16.8011 19.4241C16.8617 19.2357 16.9474 19.0752 17.0582 18.9426C17.1699 18.81 17.3035 18.7087 17.4588 18.6386C17.6141 18.5676 17.7869 18.5321 17.9772 18.5321C18.1912 18.5321 18.3797 18.5733 18.5426 18.6557C18.7055 18.7381 18.8352 18.8484 18.9318 18.9866C19.0293 19.1239 19.0861 19.2755 19.1022 19.4412H18.3238C18.3058 19.3588 18.2642 19.2987 18.1988 19.2608C18.1344 19.222 18.0606 19.2025 17.9772 19.2025C17.8115 19.2025 17.6898 19.2745 17.6122 19.4185C17.5355 19.5624 17.4962 19.7518 17.4943 19.9866H17.5113C17.5483 19.8976 17.6041 19.8214 17.6789 19.7579C17.7537 19.6945 17.8409 19.6457 17.9403 19.6116C18.0397 19.5775 18.1448 19.5605 18.2556 19.5605C18.4318 19.5605 18.5857 19.6003 18.7173 19.6798C18.8499 19.7594 18.9531 19.8683 19.0269 20.0065C19.1008 20.1448 19.1373 20.3029 19.1363 20.481C19.1373 20.6893 19.088 20.8716 18.9886 21.0278C18.8901 21.1841 18.7533 21.3053 18.5781 21.3915C18.4029 21.4776 18.2007 21.5207 17.9716 21.5207ZM17.9659 20.9241C18.0445 20.9241 18.1141 20.9061 18.1747 20.8702C18.2362 20.8342 18.2841 20.7849 18.3181 20.7224C18.3532 20.6599 18.3702 20.5889 18.3693 20.5094C18.3702 20.4289 18.3532 20.3579 18.3181 20.2963C18.2841 20.2338 18.2362 20.1846 18.1747 20.1486C18.1141 20.1126 18.0445 20.0946 17.9659 20.0946C17.9081 20.0946 17.8546 20.105 17.8054 20.1258C17.7571 20.1457 17.7149 20.1746 17.6789 20.2125C17.643 20.2494 17.6145 20.2935 17.5937 20.3446C17.5738 20.3948 17.5634 20.4497 17.5625 20.5094C17.5634 20.5889 17.5814 20.6599 17.6164 20.7224C17.6515 20.7849 17.6993 20.8342 17.7599 20.8702C17.8205 20.9061 17.8892 20.9241 17.9659 20.9241Z",fill:"#158D24"}),x.createElement("path",{d:"M5.97155 21.5207C5.80204 21.5207 5.64106 21.4942 5.4886 21.4412C5.33708 21.3872 5.20261 21.3025 5.08519 21.1869C4.96776 21.0714 4.87543 20.9208 4.8082 20.7352C4.74191 20.5496 4.70924 20.3247 4.71019 20.0605C4.71113 19.8247 4.74144 19.6126 4.8011 19.4241C4.8617 19.2357 4.9474 19.0752 5.0582 18.9426C5.16994 18.81 5.30346 18.7087 5.45877 18.6386C5.61407 18.5676 5.78689 18.5321 5.97723 18.5321C6.19125 18.5321 6.37969 18.5733 6.54257 18.6557C6.70545 18.7381 6.83519 18.8484 6.93178 18.9866C7.02932 19.1239 7.08613 19.2755 7.10223 19.4412H6.32382C6.30583 19.3588 6.26416 19.2987 6.19882 19.2608C6.13443 19.222 6.06057 19.2025 5.97723 19.2025C5.81151 19.2025 5.68983 19.2745 5.61218 19.4185C5.53547 19.5624 5.49617 19.7518 5.49428 19.9866H5.51132C5.54825 19.8976 5.60413 19.8214 5.67894 19.7579C5.75375 19.6945 5.84087 19.6457 5.9403 19.6116C6.03973 19.5775 6.14485 19.5605 6.25564 19.5605C6.43178 19.5605 6.58566 19.6003 6.71729 19.6798C6.84986 19.7594 6.95308 19.8683 7.02695 20.0065C7.10081 20.1448 7.13727 20.3029 7.13632 20.481C7.13727 20.6893 7.08803 20.8716 6.9886 21.0278C6.89011 21.1841 6.75327 21.3053 6.57808 21.3915C6.40289 21.4776 6.20072 21.5207 5.97155 21.5207ZM5.96587 20.9241C6.04447 20.9241 6.11407 20.9061 6.17468 20.8702C6.23623 20.8342 6.28405 20.7849 6.31814 20.7224C6.35318 20.6599 6.37022 20.5889 6.36928 20.5094C6.37022 20.4289 6.35318 20.3579 6.31814 20.2963C6.28405 20.2338 6.23623 20.1846 6.17468 20.1486C6.11407 20.1126 6.04447 20.0946 5.96587 20.0946C5.9081 20.0946 5.8546 20.105 5.80536 20.1258C5.75706 20.1457 5.71492 20.1746 5.67894 20.2125C5.64295 20.2494 5.61454 20.2935 5.59371 20.3446C5.57382 20.3948 5.56341 20.4497 5.56246 20.5094C5.56341 20.5889 5.5814 20.6599 5.61644 20.7224C5.65147 20.7849 5.6993 20.8342 5.7599 20.8702C5.82051 20.9061 5.88916 20.9241 5.96587 20.9241Z",fill:"#150C09"}),x.createElement("path",{d:"M0 8.4917L24 8.4917",stroke:"black",strokeWidth:"0.923077"}),x.createElement("path",{d:"M0 16.1914L24 16.1914",stroke:"black",strokeWidth:"0.923077"}),x.createElement("path",{d:"M12 0V24",stroke:"#150C09",strokeWidth:"0.923077"})),x.createElement("path",{d:"M23.5 0.5V23.5H0.5V0.5H23.5Z",stroke:"black"}))),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_4950_446",x:"0",y:"0",width:"25.5",height:"25.5",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"}
2504,x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"1.5",dy:"1.5"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4950_446"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4950_446",result:"shape"})),x.createElement("filter",{id:"filter1_d_4950_446",x:"0",y:"0",width:"25.8462",height:"25.8462",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"1.84615",dy:"1.84615"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.447059 0 0 0 0 0.309804 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4950_446"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4950_446",result:"shape"})),x.createElement("filter",{id:"filter2_f_4950_446",x:"-26.5847",y:"-26.2152",width:"56.1231",height:"56.1232",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),x.createElement("feGaussianBlur",{stdDeviation:"6.64615",result:"effect1_foregroundBlur_4950_446"})),x.createElement("clipPath",{id:"clip0_4950_446"},x.createElement("rect",{width:"24",height:"24",fill:"white"})),x.createElement("clipPath",{id:"clip1_4950_446"},x.createElement("path",{d:"M0 0H24V24H0V0Z",fill:"white"}))))},PT=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_15768_12904)"},x.createElement("g",{clipPath:"url(#clip0_15768_12904)"},x.createElement("rect",{width:"24",height:"24",fill:"#7FC8EA"}),x.createElement("path",{d:"M25 1H1V25H25V1Z",fill:"#7FC8EA"}),x.createElement("rect",{x:"3",y:"2.5459",width:"8.29114",height:"8.29114",rx:"1.57926",fill:"#09171E"}),x.createElement("path",{d:"M7.98518 4.52595V8.5459H6.89383V5.53094H6.87028L5.99091 6.05699V5.13051L6.9802 4.52595H7.98518Z",fill:"white"}),x.createElement("path",{d:"M17 3.73047L17 8.12542",stroke:"white",strokeWidth:"1.46498",strokeLinecap:"round"}),x.createElement("path",{d:"M14.0383 5.37793L14.0383 8.12477",stroke:"white",strokeWidth:"1.46498",strokeLinecap:"round"}),x.createElement("path",{d:"M20.0383 5.37793L20.0383 8.12477",stroke:"white",strokeWidth:"1.46498",strokeLinecap:"round"}),x.createElement("rect",{x:"12.9829",y:"10",width:"8.09863",height:"8.09863",rx:"1.5426",fill:"white"}),x.createElement("path",{d:"M17.0051 16.0537C16.6958 16.0537 16.421 16.0006 16.1807 15.8945C15.9417 15.7872 15.7538 15.6395 15.617 15.4517C15.4803 15.2638 15.4112 15.0477 15.41 14.8036H16.4836C16.4849 14.879 16.5079 14.9468 16.5527 15.0068C16.5987 15.0656 16.6613 15.1117 16.7406 15.1449C16.8198 15.1781 16.9106 15.1947 17.0128 15.1947C17.1112 15.1947 17.1982 15.1775 17.2736 15.143C17.349 15.1072 17.4078 15.058 17.45 14.9953C17.4921 14.9327 17.5126 14.8611 17.5113 14.7806C17.5126 14.7014 17.4883 14.6311 17.4385 14.5697C17.3899 14.5083 17.3215 14.4604 17.2333 14.4259C17.1451 14.3914 17.0435 14.3741 16.9285 14.3741H16.5297V13.6379H16.9285C17.0345 13.6379 17.1279 13.6206 17.2084 13.5861C17.2902 13.5516 17.3535 13.5037 17.3982 13.4423C17.4442 13.381 17.4666 13.3107 17.4653 13.2314C17.4666 13.1547 17.448 13.087 17.4097 13.0282C17.3713 12.9694 17.3177 12.9234 17.2486 12.8902C17.1809 12.8569 17.1023 12.8403 17.0128 12.8403C16.9157 12.8403 16.8288 12.85
250476 16.7521 12.8921C16.6766 12.9266 16.6172 12.9745 16.5738 13.0359C16.5303 13.0972 16.5079 13.1675 16.5066 13.2468H15.4867C15.4879 13.0065 15.5538 12.7943 15.6841 12.6102C15.8158 12.4262 15.996 12.2817 16.2248 12.1769C16.4536 12.0721 16.7163 12.0197 17.0128 12.0197C17.303 12.0197 17.5592 12.0689 17.7816 12.1673C18.0053 12.2658 18.1798 12.4012 18.3051 12.5738C18.4316 12.7451 18.4942 12.9413 18.493 13.1624C18.4955 13.3823 18.4201 13.5625 18.2667 13.7031C18.1146 13.8437 17.9216 13.9268 17.6877 13.9523V13.983C18.0047 14.0175 18.2431 14.1147 18.4028 14.2744C18.5626 14.4329 18.6412 14.6323 18.6387 14.8726C18.64 15.1027 18.5709 15.3066 18.4316 15.4842C18.2936 15.6619 18.1012 15.8012 17.8545 15.9022C17.6091 16.0032 17.326 16.0537 17.0051 16.0537Z",fill:"#09171E"}),x.createElement("rect",{x:"3",y:"13",width:"8.29114",height:"8.29114",rx:"1.57926",fill:"#09171E"}),x.createElement("path",{d:"M5.62582 19V18.2149L7.12545 16.9743C7.2249 16.8919 7.30996 16.8147 7.38062 16.7427C7.45259 16.6694 7.50755 16.5942 7.5455 16.517C7.58476 16.4398 7.60439 16.3541 7.60439 16.2598C7.60439 16.1565 7.58214 16.0681 7.53765 15.9949C7.49447 15.9216 7.43427 15.8653 7.35707 15.826C7.27986 15.7855 7.19088 15.7652 7.09012 15.7652C6.98936 15.7652 6.90037 15.7855 6.82317 15.826C6.74727 15.8666 6.68839 15.9262 6.64651 16.0047C6.60464 16.0832 6.5837 16.1787 6.5837 16.2912H5.54731C5.54731 16.0086 5.61077 15.7652 5.7377 15.5611C5.86464 15.3569 6.04391 15.1999 6.27553 15.09C6.50715 14.9801 6.77868 14.9251 7.09012 14.9251C7.41203 14.9251 7.69075 14.9768 7.9263 15.0802C8.16315 15.1822 8.3457 15.3262 8.47394 15.512C8.60349 15.6978 8.66826 15.9157 8.66826 16.1656C8.66826 16.32 8.6362 16.4738 8.57208 16.6269C8.50796 16.7787 8.39281 16.9468 8.22662 17.1314C8.06043 17.3159 7.82423 17.5357 7.51802 17.7909L7.14115 18.1049V18.1285H8.71144V19H5.62582Z",fill:"white"})),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black",shapeRendering:"crispEdges"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_15768_12904",x:"0",y:"0",width:"26",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"2",dy:"2"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_15768_12904"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_15768_12904",result:"shape"})),x.createElement("clipPath",{id:"clip0_15768_12904"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},LT=function(){return x.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2 -rotate-[8deg]"},x.createElement("g",{filter:"url(#filter0_d_11954_5185)"},x.createElement("g",{clipPath:"url(#clip0_11954_5185)"},x.createElement("rect",{width:"24",height:"24",fill:"white"}),x.createElement("rect",{width:"15",height:"6",transform:"translate(9)",fill:"#4F4644"}),x.createElement("rect",{width:"18",height:"8",transform:"translate(0 8)",fill:"#150C09"}),x.createElement("path",{d:"M2.43478 13.5L1.8045 10.3708H2.59457L2.93634 12.3415L3.95278 10.3708H4.53868L4.89377 12.3593L5.88801 10.3708H6.71803L5.0935 13.5H4.44103L4.06819 11.6225L3.08726 13.5H2.43478ZM8.11785 13.5488C7.81899 13.5488 7.55859 13.4941 7.33666 13.3846C7.11473 13.2722 6.94162 13.1124 6.81734 12.9052C6.69602 12.6951 6.63536 12.4421 6.63536 12.1462C6.63536 11.7852 6.70638 11.4686 6.84841 11.1964C6.99045 10.9212 7.18871 10.7066 7.44319 10.5528C7.70062 10.3989 7.99801 10.322 8.33534 10.322C8.63421 10.322 8.89461 10.3782 9.11654 10.4906C9.33847 10.6001 9.51009 10.7599 9.63141 10.97C9.75569 11.1771 9.81783 11.4272 9.81783 11.7201C9.81783 12.0841 9.74682 12.4037 9.60478 12.6789C9.46275 12.9511 9.26449 13.1641 9.01001 13.318C8.75553 13.4719 8.45814 13.5488 8.11785 13.5488ZM8.12673 12.8653C8.30427 12.8653 8.45519 12.8179 8.57947 12.7232C8.70671 12.6286 8.80435 12.4969 8.87241 12.3282C8.94047 12.1566 8.9745 11.9598 8.9745 11.7379C8.9745 11.4893 8.91532 11.3059 8.79696 11.1875C8.68155 11.0662 8.52324 11.0055 8.32203 11.0055C8.14744 11.0055 7.99653 11.0529 7.86929 11.1475C7.74501 11.2422 7.64884 11.3754 7.58078 11.547C7.51568 11.7157 7.48313 11.911 7.48313 12.1329C7.48313 12.3815 7.54083 12.5664 7.65624 12.6877C7.77164 12.8061 7.92847 12.8653 8.12673 12.8653ZM10.0515 13.5L10.5486 10.3708H11.8935C12.2515 10.3708 12.5253 10.4507 12.7146 10.6105C12.907 10.7673 13.0032 10.9848 13.0032 11.2629C13.0032 11.5589 12.9247 11.7911 12.7679 11.9598C12.614 12.1255 12.4113 12.235 12.1598 12.2883C12.2456 12.3208 12.3181 12.3741 12.3773 12.4481C12.4365 12.5191 12.4868 12.6064 12.5282 12.7099L12.83 13.5H11.9956L11.6405 12.559C11.6109 12.4762 11.571 12.4185 11.5207 12.3859C11.4733 12.3504 11.4067 12.3326 11.3209 12.3326H11.0546L10.8682 13.5H10.0515ZM11.1434 11.7556H11.7337C12.0622 11.7556 12.2264 11.6166 12.2264 11.3384C12.2264 11.223 12.1879 11.1372 12.111 11.081C12.037 11.0247 11.9187 10.9966 11.7559 10.9966H11.2632L11.1434 11.7556ZM13.1854 13.5L13.6825 10.3708H14.7921C15.3189 10.3708 15.7243 10.4921 16.0083 10.7348C16.2954 10.9774 16.4389 11.3133 16.4389 11.7423C16.4418 12.0767 16.3738 12.377 16.2347 12.6434C16.0956 12.9097 15.89 13.1198 15.6177 13.2736C15.3485 13.4245 15.017 13.5 14.6235 13.5H13.1854ZM14.1042 12.8386H14.6324C14.949 12.8386 15.1872 12.741 15.347 12.5457C15.5097 12.3504 15.5911 12.087 15.5911 11.7556C15.5911 11.5219 15.5245 11.3428 15.3914 11.2186C15.2582 11.0943 15.0585 11.0321 14.7921 11.0321H14.3927L14.1042 12.8386Z",fill:"white"}),x.createElement("rect",{width:"4",height:"8",transform:"translate(20 8)",fill:"#4F4644"}),x.createElement("rect",{width:"10",height:"6",transform:"translate(14 18)",fill:"#4F4644"}),x.createElement("rect",{width:"12",height:"6",transform:"translate(0 18)",fill:"#4F4644"}),x.createElement("rect",{width:"7",height:"6",fill:"#4F4644"})),x.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",stroke:"black",shapeRendering:"crispEdges"})),x.createElement("defs",null,x.createElement("filter",{id:"filter0_d_11954_5185",x:"0",y:"0",width:"26",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"}
2504,x.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),x.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),x.createElement("feOffset",{dx:"2",dy:"2"}),x.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),x.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),x.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_11954_5185"}),x.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_11954_5185",result:"shape"})),x.createElement("clipPath",{id:"clip0_11954_5185"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},n4=function(){return x.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{clipPath:"url(#clip0_12887_4394)"},x.createElement("path",{d:"M2 12H6V23H2V12Z",fill:"#FCFAFA"}),x.createElement("path",{d:"M8 1H17V5H13V23H8V1Z",fill:"var(--heygg-primary-color)"}),x.createElement("path",{d:"M15 7H22V23H15V7Z",fill:"white"})),x.createElement("defs",null,x.createElement("clipPath",{id:"clip0_12887_4394"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},MT=function(){return x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},x.createElement("path",{d:"M10.5 16L8 3.5L21 1L18 7L24.5 12.5L10.5 16Z",fill:"var(--heygg-primary-color)"}),x.createElement("path",{d:"M3.75641 2.92717C2.81554 3.33142 5.33432 15.1641 6.99979 22.5005C7.109 22.9832 7.70639 22.951 8.57899 22.3191C9.45158 21.6871 5.82939 2.68905 5.60237 2.55271C5.37535 2.41636 4.93249 2.42186 3.75641 2.92717Z",fill:"white"}))},IT=function(){return x.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},x.createElement("g",{clipPath:"url(#clip0)"},x.createElement("g",{clipPath:"url(#clip1)"},x.createElement("path",{d:"M8.67774 19.8113C11.7962 22.4443 20.4021 20.0616 21.5 14.5C22.7831 8 19.0727 3.00007 12.7337 3C6.67434 2.99993 4.91493 7.78867 4 10.3323",stroke:"var(--heygg-primary-color)",strokeWidth:"3"}),x.createElement("path",{d:"M3.81942 15.8509L0 7.83984L10.063 10.2321L3.81942 15.8509Z",fill:"var(--heygg-primary-color)"}))),x.createElement("defs",null,x.createElement("clipPath",{id:"clip0"},x.createElement("rect",{width:"24",height:"24",fill:"white"})),x.createElement("clipPath",{id:"clip1"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},r4=function(){return x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},x.createElement("g",{clipPath:"url(#clip0_12887_4417)"},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4333 3.55049L5.89718 1.61806L5.40157 6.52364L0.684585 7.95905L3.45817 12.0355L0.767417 16.1671L5.51241 17.507L6.10691 22.4016L10.6031 20.378L14.2047 23.7454L16.3482 19.3051L21.2716 19.5696L20.0596 14.7903L24.0011 11.8282L20.0006 8.9462L21.116 4.14347L16.1989 4.50724L13.9662 0.111174L10.4333 3.55049ZM14.2815 7.90682L7.95918 9.66946L9.72182 15.9918L16.0442 14.2292L14.2815 7.90682Z",fill:"var(--heygg-primary-color)"})),x.createElement("defs",null,x.createElement("clipPath",{id:"clip0_12887_4417"},x.createElement("rect",{width:"24",height:"24",fill:"white"}))))},RT=function(){return x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},x.createElement("path",{d:"M14.7937 2.18484C13.3883 1.97663 7.49391 1.90289 4.93474 2.18483C3.63351 3.16079 5.29973 7.79533 5.75513 8.12065C6.21054 8.44597 10.0934 7.80486 10.1905 7.80486C10.2875 7.80486 12.8362 10.1726 13.3567 10.1076C13.8772 10.0425 13.1271 7.9657 13.062 7.64038C12.9969 7.31506 14.7339 7.60014 15.1243 7.47001C15.5147 7.33988 15.7833 2.33144 14.7937 2.18484Z",fill:"var(--heygg-primary-color)"}),x.createElement("path",{d:"M8.5 17.4999C3.22956 17.0784 1.5269 22.4099 1 23H14C13.8243 21.4826 12.7164 17.8371 8.5 17.4999Z",fill:"var(--heygg-primary-color)"}),x.createElement("path",{d:"M13 18.4999C13.7693 17.6281 15.2753 16 17 16C20.5 16 21.609 21.8459 21.7261 23.419",stroke:"var(--heygg-primary-color)",strokeWidth:"2"}),x.createElement("path",{d:"M9.55062 16.5963C6.55917 17.2932 3.87765 12.1442 7.03125 10.7C10.9732 8.89465 12.5421 15.8994 9.55062 16.5963Z",fill:"var(--heygg-primary-color)"}),x.createElement("path",{d:"M16.9547 13.99C19.5475 14.6874 21.7211 10.0816 18.9693 8.70361C15.5296 6.98107 14.362 13.2926 16.9547 13.99Z",fill:"var(--heygg-primary-color)"}))},jT=function(){return x.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"var(--heygg-primary-color)"}),x.createElement("path",{d:"M8 8.37679C8.00011 7.76792 8.19517 7.1704 8.56453 6.64746C8.93389 6.12452 9.46382 5.69561 10.0982 5.40613C10.7327 5.11665 11.448 4.97736 12.1685 5.003C12.8889 5.02864 13.5878 5.21826 14.1911 5.55179C14.7945 5.88532 15.2798 6.35036 15.5957 6.89769C15.9116 7.44502 16.0464 8.05428 15.9859 8.661C15.9253 9.26772 15.6716 9.84933 15.2516 10.3443C14.8316 10.8392 14.2609 11.2291 13.6 11.4727C13.1245 11.6479 12.7198 11.9365 12.4356 12.303C12.1514 12.6695 12 13.0981 12 13.5362V14",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("circle",{cx:"12",cy:"18",r:"1",fill:"black"}))},OT=function(){return x.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{id:"Icons Navigation"},x.createElement("path",{id:"Vector 108",d:"M6 12H18M18 12L12.1463 6M18 12L12.1463 18",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))},NT=function(){return x.createElement("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{id:"Icons Navigation"},x.createElement("path",{id:"Vector 108",d:"M6 12.5H18M18 12.5L12.1463 6.5M18 12.5L12.1463 18.5",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))},FT=function(){return x.createElement("svg",{width:"40",height:"43",viewBox:"0 0 40 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{clipPath:"url(#clip0_13712_468)"},x.createElement("path",{d:"M10 21.9082H14V32.9082H10V21.9082Z",fill:"#FCFAFA"}),x.createElement("path",{d:"M16 10.9082H25V14.9082H21V32.9082H16V10.9082Z",fill:"var(--heygg-primary-color)"}),x.createElement("path",{d:"M23 16.9082H30V32.9082H23V16.9082Z",fill:"white"})),x.createElement("defs",null,x.createElement("clipPath",{id:"clip0_13712_468"},x.createElement("rect",{width:"24",height:"24",fill:"white",transform:"translate(8 9.9082)"}))))},DT=function(){return x.createElement("svg",{width:"40",height:"43",viewBox:"0 0 40 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("path",{d:"M20 33.9082C26.6274 33.9082 32 28.5356 32 21.9082C32 15.2808 26.6274 9.9082 20 9.9082C13.3726 9.9082 8 15.2808 8 21.9082C8 28.5356 13.3726 33.9082 20 33.9082Z",fill:"var(--heygg-primary-color)"}),x.createElement("path",{d:"M16 18.285C16.0001 17.6761 16.1952 17.0786 16.5645 16.5557C16.9339 16.0327 17.4638 15.6038 18.0982 15.3143C18.7327 15.0248 19.448 14.8856 20.1685 14.9112C2
25040.8889 14.9368 21.5878 15.1265 22.1911 15.46C22.7945 15.7935 23.2798 16.2586 23.5957 16.8059C23.9116 17.3532 24.0464 17.9625 23.9859 18.5692C23.9253 19.1759 23.6716 19.7575 23.2516 20.2525C22.8316 20.7474 22.2609 21.1373 21.6 21.3809C21.1245 21.5561 20.7198 21.8447 20.4356 22.2112C20.1514 22.5777 20 23.0063 20 23.4444V23.9082",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("circle",{cx:"20",cy:"27.9082",r:"1",fill:"black"}))};function i4(e){var t=e.onClick,n=e.className,i=n===void 0?"":n;return x.createElement("button",{className:"menu-item ".concat(i),onClick:t,type:"button"},x.createElement(IT,null),x.createElement("span",null,"Game Archive"))}z.forwardRef((function(e,t){var n=e.user,i=e.logo,o=e.burger,s=e.open,l=e.gameIcon,c=e.gameTitle,d=e.logs,f=e.streaks,h=e.setOpen,g=e.settingCallback,w=e.statsCallback,m=e.faqCallback,b=e.leaderboardCallback,_=e.gameArchiveCallback,C=e.gameCommunityCallback,R=e.accountSettingCallback,I=e.accountStatsCallback,k=e.apiBaseUrl,A=e.hideStreakDisplay;return x.createElement("div",{className:"appShell",ref:t},x.createElement("header",{className:"header"},x.createElement("div",{className:"left"},x.createElement("div",{className:"burger",onClick:function(){return h((function(L){return!L}))},id:"canvas",style:{width:"42px",height:"42px"}},o),x.createElement("a",{href:"/",className:"logo"},i)),x.createElement("div",{className:"right"},n?x.createElement(GT,{user:n,gameTitle:c,logs:d,lastStreak:f?.current_win_streak,accountStatsCallback:I,faqCallback:m,hideStreakDisplay:A}):x.createElement("ul",{className:"navbar"},n?x.createElement(x.Fragment,null):x.createElement(HT,{apiBaseUrl:k})))),x.createElement("div",{className:"sidebar ".concat(s?"sidebar-active":""),id:"sidebar"},n?x.createElement(x.Fragment,null,x.createElement("div",{className:"sidebar-header"},x.createElement("h2",{className:"greeting"},"Hey ",x.createElement("span",{id:"name"},n?n.name:"you"),"!"),x.createElement("p",{className:"streak"},"You have a"," ",x.createElement("span",{id:"current-play-streak"},f?.current_win_streak)," ","day streak!")),x.createElement("nav",{className:"sidebar-menu"},x.createElement("h3",null,"YOUR ACCOUNT"),I&&x.createElement("button",{className:"menu-item",onClick:function(){return I()}},x.createElement(n4,null),"Stats"),b&&x.createElement("button",{className:"menu-item",onClick:function(){return b()}},x.createElement(MT,null),"Leaderboard"),_&&x.createElement(i4,{onClick:_}),R&&x.createElement("button",{className:"menu-item",onClick:function(){return R()}},x.createElement(r4,null),"Settings"),C&&x.createElement("button",{className:"menu-item",onClick:function(){return C()}},x.createElement(RT,null),"Game Community"))):x.createElement(x.Fragment,null,x.createElement(BT,{gameIcon:l,gameTitle:c,apiBaseUrl:k}),x.createElement("nav",{className:"sidebar-menu mobile-only"},_&&x.createElement(i4,{onClick:_}),x.createElement("button",{className:"menu-item",onClick:function(){h(!1),w&&w()}},x.createElement(n4,null),"Stats"),x.createElement("button",{className:"menu-item",onClick:function(){h(!1),g&&g()}},x.createElement(r4,null),"Settings"),x.createElement("button",{className:"menu-item",onClick:function(){h(!1),m&&m()}},x.createElement(jT,null),"How to Play"))),x.createElement("h3",null,"OTHER GOOD GAMES"),x.createElement("nav",{className:"sidebar-games",onClick:function(L){var j=L.target.closest("a");if(j){var D=j.getAttribute("href");D&&R7(D,"sidebar")&&L.preventDefault()}}},x.createElement("a",{href:"https://crosswordle.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"},x.createElement(wT,null),"Crosswordle"),x.createElement("a",{href:"https://sumplete.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"},x.createElement(bT,null),"Sumplete"),x.createElement("a",{href:"https://imsqueezy.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"}
2504,x.createElement(_T,null),"Squeezy"),x.createElement("a",{href:"https://pairdown.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"},x.createElement(CT,null),"Pair Down"),x.createElement("a",{href:"https://queensultimate.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"},x.createElement(xT,null),"Queens Ultimate"),x.createElement("a",{href:"https://minisudoku.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"},x.createElement(TT,null),"Mini Sudoku"),x.createElement("a",{href:"https://mathler.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"},x.createElement(ST,null),"Mathler"),x.createElement("a",{href:"https://www.kakuroconquest.com",target:"_blank",rel:"noopener noreferrer"},x.createElement(AT,null),"Kakuro Conquest"),x.createElement("a",{href:"https://hitoriconquest.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"},x.createElement(ET,null),"Hitori Conquest"),x.createElement("a",{href:"https://sudokuconquest.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"},x.createElement(kT,null),"Sudoku Conquest"),x.createElement("a",{href:"https://www.wordga.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"},x.createElement(LT,null),"Wordga"),x.createElement("a",{href:"https://sumslide.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center mb-4 ml-2 text-gray-0 hover:text-hey-brand-green text-[15px] font-semibold leading-normal"},x.createElement(PT,null),"SumSlide"))))}));var HT=function(e){var t=e.apiBaseUrl,n=t===void 0?"https://play.hey.gg":t;console.log("Rendering AuthLinks");var i=hT();console.log("redirect_uri",i);var o=localStorage.getItem("heygg_anonymous_id");return console.log("anonymous",o),x.createElement(x.Fragment,null,x.createElement("li",{id:"log-in"},x.createElement("a",{className:"log-in-link",href:"".concat(n,"/login?redirect_uri=").concat(encodeURIComponent(i)).concat(o?"&anonymous_id="+encodeURIComponent(o):"")},"Log In")),x.createElement("li",{id:"sign-up",className:"sign-up"},x.createElement("a",{className:"sign-up-link",href:"".concat(n,"/register?redirect_uri=").concat(encodeURIComponent(i)).concat(o?"&anonymous_id="+encodeURIComponent(o):"")},"Sign Up",x.createElement(OT,null))))},BT=function(e){var t=e.gameIcon,n=e.gameTitle,i=e.apiBaseUrl,o=i===void 0?"https://play.hey.gg":i,s=window.location.href,l=localStorage.getItem("heygg_anonymous_id");return x.createElement("div",{className:"account-message"},x.createElement("div",null,t),x.createElement("h4",null,"NEW! ",n.toUpperCase()," ACCOUNTS"),x.createElement("p",null,"Save your game stats, view leaderboards, early game updates, see your streaks, and join our community."),x.createElement("a",{href:"".concat(o,"/register?redirect_uri=").concat(encodeURIComponent(s)).concat(l?"&anonymous_id="+encodeURIComponent(l):""),id:"free-account-link"},"Get Your Free Account",x.createElement(NT,null)))},GT=function(e){var t=e.user,n=e.gameTitle,i=e.logs,o=e.lastStreak,s=e.accountStatsCallback,l=e.faqCallback,c=e.hideStreakDisplay,d=z.useRef(null),f=z.useState(!1),h=f[0],g=f[1];return z.useEffect((function(){function w(m){d.current&&!d.current.contains(m.target)&&g(!1)}return document.addEventListener("mousedown",w),function(){return document.removeEventListener("mousedown",w)}}),[g]),x.createElement("ul",{className:"navbar",ref:d},x.createElement("div",{className:"user-profile-dropdown",onClick:function(){g(!h)}},!c&&x.createElement("p",null,o===null?"":o?"ð¥ ".concat(o):"𥶠0")," ",x.createElement("p",null," @",t.username)),x.createElement("div",{className:"dropdown-content ".concat(h?"o
2504pen":"")},!c&&x.createElement(x.Fragment,null,x.createElement("p",null,"PAST 7 DAYS"),x.createElement("div",{className:"days"},yT().map((function(w,m){return x.createElement("div",{key:m,className:"day ".concat(i.includes(w)?m===6?"streakCurrentDay":"streak":"")},w.split("-")[2])})))),x.createElement("a",{onClick:s},x.createElement(FT,null),x.createElement("span",null,n," Stats")),x.createElement("a",{onClick:l},x.createElement(DT,null),x.createElement("span",null,"How to Play"))))},a4=["This ad = more free puzzles. Math checks out.","Brought to you by: this ad, basically.","Hey, good ad. (It pays for the good games.)","While you wait, an ad is doing the heavy lifting so our games stay free.","Think of this ad as the missing piece. It keeps everything together.","Our puzzles are free. This ad is how we keep it that way. We cool?","A small ad for you, a giant leap for indie game devs.","Loading an ad so we can keep the lights on â and by lights, we mean servers.","Free games don't pay for themselves. This ad does.","You solve our puzzles. This ad solves our rent.","Thanks for letting this ad hang out. It's the reason our games are free.","This little ad helps us build the puzzles you love â we appreciate you!","Every ad seen is another day of free puzzles â seriously, thank you!"];x.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},x.createElement("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})),x.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor"},x.createElement("path",{d:"M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.59 12c.025 3.086.718 5.496 2.057 7.164 1.432 1.784 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.96-.065-1.17.408-2.264 1.332-3.084.9-.798 2.164-1.272 3.665-1.376 1.074-.074 2.088-.006 3.022.176-.109-.906-.455-1.6-1.03-2.065-.657-.531-1.6-.806-2.802-.82l-.025.001c-1.37.017-2.467.424-3.267 1.213l-1.4-1.46c1.134-1.12 2.642-1.71 4.487-1.754h.046c1.66.02 3.005.483 3.993 1.38.937.847 1.49 2.04 1.648 3.546.59.142 1.134.338 1.625.587 1.14.577 2.026 1.434 2.57 2.48.826 1.588.904 4.2-1.07 6.14-1.786 1.756-4.004 2.512-7.085 2.536zM13.4 13.171c-1.383.093-2.665.71-2.622 1.468.022.393.333.792.856 1.13.596.386 1.373.574 2.19.535 1.074-.058 1.9-.44 2.456-1.133.347-.432.607-.997.774-1.683-.577-.132-1.193-.218-1.84-.258-.598-.04-1.21-.064-1.814-.06z"})),x.createElement("svg",{width:"20",height:"20",viewBox:"0 0 568 501",fill:"currentColor"},x.createElement("path",{d:"M123.121 33.664C188.241 82.553 258.281 181.68 284 234.873c25.719-53.192 95.759-152.32 160.879-201.21C491.866-1.611 568-28.906 568 57.947c0 17.346-9.945 145.713-15.778 166.555-20.275 72.453-94.155 90.933-159.875 79.748C507.222 323.8 536.444 388.56 473.333 453.32c-119.86 122.992-172.272-30.859-185.702-70.281-2.462-7.227-3.614-10.608-3.631-7.733-.017-2.875-1.169.506-3.631 7.733-13.43 39.422-65.842 193.273-185.702 70.281-63.111-64.76-33.89-129.52 80.986-149.071-65.72 11.185-139.6-7.295-159.875-79.748C10.045 203.66.1 75.293.1 57.947.1-28.906 76.234-1.611 123.121 33.664z"})),x.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},x.createElement("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"})),x.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"
2504currentColor"},x.createElement("path",{d:"M20.317 4.37a19.791 19.791 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.736 19.736 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 00.031.057 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.107 13.107 0 01-1.872-.892.077.077 0 01-.008-.128 10.2 10.2 0 00.372-.292.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.01c.12.098.246.198.373.292a.077.077 0 01-.006.127 12.299 12.299 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.839 19.839 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"}));z.memo((function(e){var t=e.adSlot,n=z.useState((function(){return a4[Math.floor(Math.random()*a4.length)].replace(new RegExp("(?<=[.!?]) ","g"),` 2505`)}))[0];return x.createElement("div",{className:"gcm-ad-slot"},x.createElement("div",{id:t.containerId||"modal_W_D_1","data-size":"".concat(t.width||300,"x").concat(t.height||250),"data-placeholder":n,style:{width:t.width||300,height:t.height||250}}))}),(function(e,t){return e.adSlot.containerId===t.adSlot.containerId&&e.adSlot.width===t.adSlot.width&&e.adSlot.height===t.adSlot.height}));const UT="/assets/header-bg-with-dragons-DE6TKTQD.png",j7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAABCCAMAAAA8CkXxAAAC91BMVEUCKwkBLAsFAgQWExMVFhcYFRgCIgcIDh4BJgkBHQYAIQgDCwsBEgcAJQkBIgcBHAcDFgcCEwYBJwgABAECCAgACQMAAAEBDAQDBwUCEQUBDAUAAAACAgMAAQEAAAAAAAAAAQAAAAAAAAAAAAAAIAABIwsCNw6S8IlLtzQCLwYHRgQ5txkdnQARDhAIAwkTmwARlAAKNhAlogACNwgAFwABGw0BKwwBLgsBKgn///9v2V4VPhoxsAoroAU+tyJBbkGGgXplYmIvpQyH6nhJgkPA/LlCNz83xwb//uMBAAb/lQAZTiNhxlMOiQD29vIAJAcmTysu4AAiYxozXjVn1lQZFxsbDBpGxyQZjABHsjENWAJQvjo8siE1thEiqQEQABJBrSlEtyvg4ssjmwAzpBU5qRzu7c9Vt0N91HALJQ0AKQT29tQvqQg7qSIWLhMkwgAblQD8+tv9/fWC3nQ2rxbx8ucaoQAvsgKF13oqqQB33WQAJABMzi9g0kuP14YBPw54c2kmqwB73mtQsT5ZxkX9igAADgAbYAl75IMAJgYqsAAbTRXn69UkISPm6tJXilOXkYV10mas+qA3MDLOzMmloJANaQBQSUju79+w8KYjew0AIwFqz1gOewAhOB5JxjlEmFtEojEzcyrIw7EwHDCY6Y7jfwHk4cKubQN/t36a3JJHRUVVflKi3pwdASBllWq3sZptyGbIwqYuKCzX19kABg4cfAD19exUzzwxvwAu2AD/owC357LCXwBrsWIxhUxUrHBWORnCvKBbQVJz7WmoWAA4QwgcOQ+UzY0pzQDb1rY+xRO3tLRbo1M3iCReVVRBk0p6wHOR34cQPwtm6U4ikABAvilZ1UEtkRIGECbBb16f95wWaz7R/8iom3VJ6SEfIBJT5DQ6+wBF3laq36VrTF5nPAAAURXKTkooeDvAdApHKxOB7Gzq7NmC0I1YVFA8jDW67LVyYwRsNwBrYQtQTwilAAB9XwdU6XdSXXNlX1VkBwJdOTNtQtzCAAAAI3RSTlP28eS+m97X8dS7sDOo38ifepLqSFVdKXIXgmcNIDwCBwMBAN4dW/EAAAq0SURBVHhenZZjdCzZGob7zMw5cxAa3Z3urmrbim3btm3bdo5t27Y1tj3X+nG/qiRrknsmZ625z4+sdKWfeve7a9feISD/C42CIEQzK/1VMzV0On2mxmiNAZkKV2nIK4D8CiRDIwmTLlfZ+AQG+khq5HSOnhURoVBeI1MN1uqbk6lECyvlX3bsyA7ZfeuLc+fOfbF/98EQpTxb1xRBKNbLyuue7tr19xsrbt68scP77HUftw/dfj0H/Orm5nZrIL+ds5aEUKjLyRZP2856e+/a0barrc37qw/cvphjPzDltn+fnK4yBnu5zlZ/9fZuu9529jwke9+4NLVnP8YenP1utzbIZVZgLyOTb7R5e5//81dfXb9+/vwnm4br92Bq/Ry3pqZC2jHb+vdlw11nva/fvLjp0sVvQ0I2VVbWP9mzf099JQ7oU24O7TIY+e/Lpn/adYNxaWpqePh9FotVkgn2kyeVlZmZQ0OZLizW9uEP99VwSK92Jq0jWZDIuorjYUcFgr6QgSGX5qHMzJLKyhJM1V7T3nd1CAnZty8ra5WVgc7bKy0Wyeu+v/xumEAYftR9Yu/ExEgCKnDQXpvVasHTzs4+e+a6wQtNCA9PCO8LFwjCLn932WSRbHL57HdefY6HjtzZCdy54rgN7Wt9VofT+ixmA5rwcPDQkSNHrhwac5w43na2z2yRTHr3ux0jx4pz0nv7gfQiz51OXmG1n57C+JQdjk5sLfIsyknPwfAc/P77t5d0XhkmGNXsTO7v7e3vnSwrKysudvTa8GktTh/aWKw5WVY2id85OV3zT6834fWZl2lUxFLgrilK7sXdk8UaoPih14OPQf14C/qzBr8ANnbznZp7ApAptDnZmkI0Fzpp+vuxW0+eBPPYqEYzmrDhY4xPwns18/aPkNyb7DnaZ2i2jjovI0Tzt4ROxf0YP5ZBrhM6cs9fc1W4mR1V+wB10hz72ekeXPaHaAgoGu178y1z2oJMWekumJiEZJAh+BiK7h1x1Dii2zDQexoButfdEbIhGpO3hh3d+xayICNrhEL35HRMnvTHZSF6VDOGYngJRzUoGoa6/yYfgiVhspBMo5Is3zi6NWchWfMQJCfNoFfH8xPPe4T3NCPYZ1zGO48JdMwQ6sKjgl/MhYOeyZhcpgEajzr5ax4KT38W9Fku6qg51oeOwHV/fLqTixqFpgiVtiAj1iTjNybSsXH3wrjnSD6Qf7ug4HaBwB20UQ1wEp+W9J3uQjK4v8lEsqHAsQgWCUTP2RA8HVRQUBDUIRybe1InseD+5KJBgQ5piUwjm6wMGyxKT4bWk2Un/TXFjcL827c9PE5D9IGtmmJ//7JJaJycXHSlT2BFpC5enlQLsn5YeOOdnJz09BxYx1t/FoZ3B92FFXY3KD7hwJinZ9GP/UBOzqGjgiwyzXqRDNEW+pKwhJHGsStHjhwa/Fe4MKw
2505pKOJlXWjdKbAFCVfH7uxMT0+/c6jxQIJkFdGatliGCTeWSW4meCWEb9t2IEEYHlwAbqhWqw095XGmoEOYsO3ql19edT8g7OGq9OHbS2QajajbNZ0W3HMzP/9mx3RT0JmIU6Ha6upqbWitx+2ggsgOLofDedrxvFymhH1sqQyfzQNsXr58Wcs7fftM0BkP3G1ubq7W1tXe9fA4cwaeG+DxAM3Wt4B3arEM9zLkoPerfVsj7nrcjYioxdw5ObTu5alTtXdPn+7u7q6wnx2Q16w2m9+/CfMHI3Utp31fpW9rzIsXEXWh0La5ZI5mnOq6iIrupu6K2FbW7iy5zAShUnAZd4l62e0Hh4cyYuzjXsSEuri4PHmy/TdYrGu+MRXx8U1NuaVRLvWB7TIDfDsg4C5Jt0Z+4f3DGTFJvDj71vu/HO7sZL0/D6vz8KVHPo82dsfHl5eX86Wp2u0OcOwRwSZgrtkKetZjlm8Gm51UyuO9eBzICf724qNHm4CL337g87UK3esLoy4XiURiMd/Od/ggFIdDkwBztU4lz693yWBHRSWVlibZN238yaGGy23AYTKZDTWKg51x8WBL/cTlYrHYrnV4d9bMCguEAGNmyjfUl7Qk5uWlxaVGsXkV8Ru3H/SRfQ00NEiYnIDA3Z28+AqQbd/hRItFokK7jO238mv0aAQqbTV9w5PqqMRUu6rc6C2t9jzb7nj7zp82Bf77bzj/2dSpLe22te1uii+t24Kqo9eL+M4tMOkcUwJixcmqrE5MTJXyT2Qdv9AaW2rb3d3UtLHzp4/e++abb977qP7aRl5cHM+2Kl6aG1MdgioY3PXluWzWPvoaAtGIPvBDYlqu9MRTBer6QyIud1fk2r74/B8Yn7+IBdfe3raqvFya5ltiI1dhuvTZ/RldgnG2zWG2c1MkV6GgSzJb80pzYfilvDjbCriHLUZFhS3vhX2pVCTiS/OqL8g5K1QMBrfDhrmWYNXlU2cbGc1QqGTtAy55ztIU6Tubk+zteZhcUQE/Mdk+1jYFZirFLsrFQb7adDVTGSAjrCOQZZLgaLWCuXoN3eaJb6q0sHzcJgPkuIqqqoo4HnRtqqqyLS2NeweqpqQ4tw7ZZJtamxrqWJohBJpOQxeDqbI0020fYCXaFYrXo4F1ULxKypfmxibF5krLoSw0iclvH+dLU9KqXeWrKAiALRKipd4aSzJiUGOzxzc1Rbxe4fWo1bmqii/2i7TD5MJxPyhblVb3C6rgFkrtWi8oOeT5U5KC4O8XSSU/yEpMEa1nKCQXYqRSvljMja5Ki0pyLgyIFolhSYOkVnAimxKHAmvM52XYREBHDLIh2I7v18WY8cmM5YO7/jgmR6VGMhR+okK+XVRmoLxBERDJa3ag6yPWi/ew1fIBVhrfj8NoaHcoSeUX+om5x8er8tgtqSc4x7lYNFZWz0hJn/7Blb52IRnHrEv9eFYqljFUuvKBZmd+pHhcoYiuymtpSTuhVinGRWKpc939gFVkIxUjuEdmuEQmd9lkRohkCqapXteFWWlhpJ8MFoI0L6Ml7wSDqWT4ifnO7MM22WSLNcwZmRGJtkTmSDKcZYoGc1K25HFrSqQoWtHA4KZAcuI0Q3cFgwuvUmJzCN0QoZgYwhOmLpaJRsynEmWDJWIK88VOKfRTK1cpZM9BTgpW65gyFePldnnNA3K9uX/ZKdaLTwzEWMVRrbBCEEt6SGbicxGXYWTC4GAyOzhgLaKn5Ijt8mYvqLtI0BZjsQzbibk57KiIId2hObVwPYNpbqFUT8eC3BOgj5CZiuimNN/HNtnG4CyVcRugUpG1dNdqOz4EW1gYMaaTWlpaerosYVNnqiNzYyoD6VZLkxdDQ9bQXetSINgKoegFBLNBtumCNhYqiE4sCaGbv1aecY2BxrowMfoBwTEtGZslahOoY8lkRNpnvjbZGtGhb6nFg+H7XT3sDEwmw7FIJChlEYcl0Pk1soHKJpWrNCLSqIiJWrI5I+MXVYAZfgQz1T0+MvgDsnxnkkqmYjaYQBZipg54wI56oDSywE9CU6Y6W2WMUJeVwTFRwc6ArSAaVY8RbJ+3RbmaQsMfBNnSkIxQlk/GH7gpdIRgKlSQpPKCGTrQBhotLK1lZbCpWL71fAVGh51EZQ7y7wLyskB0g4rDVMGK/OOyNZWmz2TKTKHAH5dBopkYGEPP/0PGpxjfHpfjvzPXxmUTEmaIAAAAAElFTkSuQmCC",O7="/assets/groups-B_ArshjC.png";function zT(){const e=["Aardvark","Aardwolf","Albacore","Alpaca","Anaconda","Anchovy","Anemone","Ant","Anteater","Antelope","Armadillo","Baboon","Badger","Barnacle","Barracuda","Bass","Bat","Bee","Beetle","Bird","Bison","Bluebird","Bluefish","Boa","Buffalo","Butterfly","Buzzard","Camel","Cardinal","Carp","Cat","Caterpillar","Centipede","Chameleon","Cheetah","Chicken","Chimpanzee","Chinchilla","Chipmunk","Chuckwalla","Cicada","Clam","Cobra","Cockatoo","Cod","Cougar","Cow","Coyote","Crab","Crane","Cricket","Crocodile","Crow","Cuttlefish","Deer","Dingo","Dinosaur","Dog","Dolphin","Dove","Duck","Eagle","Eel","Elephant","Elk","Emu","Falcon","Ferret","Finch","Fish","Flounder","Fox","Frog","Gazelle","Gecko","Giraffe","Goat","Goose","Gorilla","Grasshopper","Groundhog","Grouper","Grouse","Grunion","Halibut","Hamster","Hawk","Hedgehog","Herring","Hippopotamus","Horse","Hyena","Iguana","Impala","Jackal","Jaguar","Jellyfish","Kangaroo","Kestrel","Koala","Ladybug","Leopard","Lion","Lionfish","Lizard","Llama","Lobster","Macaw","Manatee","Mandrill","Marlin","Meerkat","Monkey","Monkfish","Mouse","Mule","Mussel","Narwhal","Nautilus","Needlefish","Newt","Nudibranch","Octopus","Orangutan","Ostrich","Otter","Owl","Oyster","Penguin","Pheasant","Pig","Pigeon","Porpoise","Possum","Python","Rabbit","Raccoon","Rattlesnake","Raven","Ray","Rhinoceros","Salmon","Seahorse","Seal","Shark","Sheep","Shrimp","Silkworm","Smelt","Snake","Squid","Squirrel","Starfish","Starling","Stickleback","Stonefish","Sturgeon","Swordfish","Tarantula","Tiger","Toad","Tortoise","Toucan","Tuna","Turkey","Turtle","Viper","Vulture","Wahoo","Walrus","Warbler","Wasp","Weasel","Whale","Wolf","Wombat","Woodchuck","Woodpecker","Wrasse","Wren","Yak","Zebra"],t=["Black","Navy","Blue","Green","Teal","Lime","Aqua","Cyan","Indigo","Maroon","Purple","Olive","Gray","Ivory","White","Sienna","Brown","Silver","Tan","Crimson","Plum","Lavender","Violet","Azure","Beige","Red","Fuchsia","Magenta","Coral","Orange","Pink","Gold","Yellow"],n=t[Math.floor(Math.random()*t.length)],i=e[Math.floor(Math.random()*e.length)],o=Math.floor(Math.random()*99);return`${n}${i}${o}`}const VT=()=>{const[e,t]=z.useState(""),[n,i]=z.useState(""),[o,s]=z.useState(null),[l,c]=z.useState(null),[d,f]=z.useState(null),[h]=hw(),g=ca(),w=fs(),[m,{isLoading:b}]=E7();z.useEffect(()=>{const C=h.get("code");C&&i(C)}
2505,[h]);const _=async C=>{C.preventDefault(),f(null);let R=!0;if(e?s(null):(s("Name is required"),R=!1),n?c(null):(c("Code is required"),R=!1),!!R)try{const I=await m({name:e,code:n}).unwrap();w(Eu(I)),t(""),i(""),g("/play")}catch{f("Login failed, please try again!")}};return T.jsx("div",{className:"",children:T.jsxs("form",{onSubmit:_,children:[T.jsx("h3",{className:"text-xl mb-4 mt-0",children:"Invited? Join a group"}),T.jsxs("div",{className:"mb-4",children:[T.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"name",children:"Name"}),T.jsx("input",{className:`bg-white shadow appearance-none border border-gray-500 rounded-lg w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline 2506 ${o?"border-red-500":""}`,type:"text",id:"name",name:"name",value:e,placeholder:"Pick a name",onChange:C=>t(C.target.value),autoComplete:"off"}),o&&T.jsx("p",{className:"text-red-500 text-xs",children:o})]}),T.jsxs("div",{className:"mb-4",children:[T.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",htmlFor:"code",children:"Code"}),T.jsx("input",{className:`bg-white shadow appearance-none border border-gray-500 rounded-lg w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline 2507 ${l?"border-red-500":""}`,type:"text",id:"code",name:"code",value:n,placeholder:"Enter group code",onChange:C=>i(C.target.value),autoComplete:"off",required:!0}),l&&T.jsx("p",{className:"text-red-500 text-xs",children:l})]}),T.jsx("div",{className:"flex justify-end",children:T.jsx(ia,{buttonText:"Join Group",type:"submit",buttonTextAdditionalClasses:"text-md"})}),d&&T.jsx("p",{className:"text-red-500 text-xs",children:d})]})})},Cd=e=>{const[n,i]=z.useState(e.initialCount);z.useEffect(()=>{const l=setTimeout(()=>{n<e.maxCount?i(n+1):i(e.initialCount)},300);return()=>clearTimeout(l)},[n]);const s=e.maxCount*8;return T.jsx("span",{className:"inline-block",style:{width:`${s}px`},children:".".repeat(n)})},o4=e=>{const[t,n]=z.useState(!1);z.useEffect(()=>{n(!1)},[e.article]);let i=e.article?e.article.link.replace(/_/g," "):"";return T.jsxs("div",{className:"flex sm:flex-col items-start sm:items-center space-x-4 sm:space-x-0 sm:space-y-4",children:[e.article?t||!e.article.main_image_source?T.jsx("div",{className:"w-24 h-24 md:h-32 md:w-32 rounded-full object-cover border border-gray-200 drop-shadow-lg flex items-center justify-center bg-gray-100",children:T.jsx("span",{className:`text-6xl ${e.errorTextSize?`text-${e.errorTextSize}`:""}`,children:e.article.link[0].toUpperCase()})}):T.jsx("img",{src:e.article.main_image_source,className:"w-24 h-24 md:h-32 md:w-32 rounded-full object-cover border border-gray-200 drop-shadow-lg bg-gray-100",alt:`${e.isStart?"Start":"Goal"} Article`,onError:()=>n(!0)}):T.jsx("span",{className:"w-24 h-24 md:h-32 md:w-32 rounded-full object-cover bg-gray-200 animate-pulse"}),T.jsxs("div",{className:"flex flex-col items-start sm:items-center",children:[T.jsx("span",{className:"uppercase font-thin text-lg md:hidden",children:e.isStart?"Start":"Goal"}),T.jsx("span",{className:`text-${e.textSize} lg:text-${e.textSizeLg} text-left sm:text-center font-bold font-noto-serif`,children:e.article?i:T.jsx(Cd,{maxCount:8,initialCount:1})})]})]})},WT=()=>T.jsx("div",{className:"bg-slate-500 p-2 rounded-lg",children:T.jsx("svg",{className:"h-6 w-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})}),N7=e=>T.jsx("div",{className:"m-8",children:T.jsxs("div",{className:"flex md:flex-row flex-col space-y-12 md:space-y-0 md:space-x-4",children:[T.jsx("div",{className:"flex-1",children:T.jsx(o4,{article:e.startArticle,isStart:!0,textSize:"2xl",textSizeLg:"3xl",errorTextSize:"5xl"})}),T.jsx("div",{className:"hidden md:!flex md:justify-center md:items-center",children:T.jsx(WT,{})}),T.jsx("div",{className:"flex-1",children:T.jsx(o4,{article:e.goalArticle,isStart:!1,textSize:"2xl",textSizeLg:"3xl",errorTextSize:"5xl"})})]})}),qT="/assets/ios-app-icon-C5fPQNjz.png",F7=()=>{const e=Ri(),t=()=>{const n=navigator.userAgent;n.match(/iPhone/i)||n.match(/iPad/i)?window.location.href=Ys.IOS_APP_URL:e(La({type:kr.GetApp,data:{}}))};return T.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center",children:[T.jsxs("div",{className:"w-full sm:w-4/5 md:w-3/5 lg:w-2/5 flex items-center",children:[T.jsx("img",{className:"w-20",src:`${qT}`}),T.jsxs("div",{className:"mx-4",children:[T.jsx("p",{className:"text-xl font-bold",children:"Get The Wiki Game App!"}),T.jsx("p",{className:"font-thin",children:"Play on your phone featuring 5 game modes with 200 unique levels. Now includes minimal path unlocking!"})]})]}),T.jsxs("button",{onClick:t,className:"mt-8 sm:mt-0 flex justify-center w-44 bg-white py-1 px-4 roun
2507ded-lg text-black border-solid border-2 border-b-6 border-r-6 border-black",children:[T.jsx("div",{className:"text-4xl font-bold",children:""}),T.jsxs("div",{className:"ml-2",children:[T.jsx("div",{className:"text-xs -mb-1",children:"Download on the"}),T.jsx("div",{className:"text-xl font-bold",children:"App Store"})]})]})]})},$T=3e3,QT=()=>{const e=Ri(),t=Kt(S5),n=Kt(nC),{data:i,error:o,isLoading:s,isFetching:l,refetch:c}=qA(null),[d,{isLoading:f}]=E7(),[h,g]=z.useState("10px 0px"),w={backgroundPosition:h,backgroundImage:`url(${UT})`};z.useEffect(()=>{const b=setInterval(()=>{c()},$T);return()=>clearInterval(b)},[c]),z.useEffect(()=>{const b=()=>{const _=window.innerWidth,C=[600,640,700,768,1024,1280],R=[40,30,20,10,-2,-10],k=C.reduce((A,L,j)=>_<L?R[j]:A,-10);g(`$0px ${k}px`)};return b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[]);const m=async()=>{try{const b=n?{code:Ys.PUBLIC_GROUP_SHORT_CODE,heygg_anonymous_id:n}:{code:Ys.PUBLIC_GROUP_SHORT_CODE,name:zT()},_=await d(b).unwrap();e(Eu(_)),i&&(e(hf(!0)),e(A5(i)))}catch(b){console.error("Landing - handlePublicGroupGuestLogin - error:",b)}};return t?T.jsx(S4,{to:"/play",replace:!0,state:{from:"/"}}):T.jsxs("div",{className:"flex flex-col min-h-screen bg-brown-300",children:[T.jsx("div",{className:"flex flex-col flex-grow w-screen lg:max-w-screen-xl lg:mx-auto",children:T.jsxs("main",{className:"bg-contain bg-no-repeat",style:w,children:[T.jsx("div",{className:"flex flex-col",children:T.jsxs("div",{className:"flex flex-row justify-end text-xs sm:text-sm md:text-md",children:[T.jsx(ia,{onClick:Xh,buttonText:"Log In",isDark:!1,additionalClasses:"mt-4 mr-4 px-2 py-0"}),T.jsx(ia,{onClick:e0,buttonText:"Sign Up",additionalClasses:"mt-4 mr-4 px-2 py-0"})]})}),T.jsx("div",{className:"flex flex-col justify-center items-center",children:T.jsx("div",{className:"flex place-content-center relative -left-2 md:-left-1 lg:-left-2 xl:-left-3",children:T.jsxs("h1",{className:"relative flex items-center border-0 font-noto-serif md:mt-4",children:[T.jsx("span",{className:"lg:mb-10 lg:ml-2 lg:text-xl xl:mb-14 xl:ml-4 xl:text-2xl",children:"The"}),T.jsx("span",{className:"text-[7vw] lg:text-7xl xl:text-8xl",children:"Wiki"}),T.jsx("img",{className:"w-14 sm:w-16 md:w-20 lg:w-27 xl:w-30",src:`${P7}`,alt:"Wendell logo"}),T.jsx("span",{className:"text-[7vw] lg:text-7xl xl:text-8xl",children:"Game"})]})})}),T.jsx("div",{className:"flex flex-col justify-center items-center mt-8",children:T.jsx("div",{className:"text-lg uppercase",children:"Find the fastest route between pages"})}),T.jsxs("div",{className:"flex flex-wrap",children:[T.jsxs("div",{id:"left",className:"w-full md:w-3/5 m-4 border-gray-800 border border-b-6 rounded-2xl bg-gradient-to-b from-white to-brown-50",children:[T.jsx("div",{className:"flex justify-center mt-2 p-4 lg:p-6",children:T.jsxs("div",{className:"text-xl font-bold uppercase",children:[T.jsx("img",{className:"inline w-8 sm:w-10 mr-2",src:`${j7}`,alt:"Wendy"}),"Play Current Round"]})}),T.jsx(N7,{startArticle:i?.challenge?.start_article,goalArticle:i?.challenge?.goal_article}),T.jsx("div",{className:"flex flex-col justify-center items-center my-12",children:T.jsx("div",{className:"flex flex-row",children:T.jsx(ia,{onClick:m,disabled:s,showLoading:s,buttonText:s?"Loading...":"Play Now",additionalClasses:"mt-4 w-72",buttonTextAdditionalClasses:"text-3xl"})})})]}),T.jsxs("div",{id:"right",className:"w-full md:flex-1 min-w-0 m-4 px-8 py-4 bg-brown-300 border-gray-800 border border-b-6 rounded-2xl",children:[T.jsxs("div",{className:"flex justify-center mt-2 mb-4",children:[T.jsx("img",{className:"h-10 inline-block mr-2",src:`${O7}`,alt:"Wiki Game Groups"}),T.jsx("div",{className:"text-xl font-bold uppercase",children:"Wiki Game Groups"})]}),T.jsx(VT,{})]})]})]})}),T.jsx("footer",{className:"w-full bg-white p-6 mt-6",children:T.jsx(F7,{})}),T.jsx(vT,{})]})},YT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAAAAACoBHk5AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAHdElNRQfnBBoXARwZwkhaAAADl3pUWHRSYXcgcHJvZmlsZSB0eX
2507BlIGdpZjp4bXAgZGF0YXhtcAAASImVVUty5TYM3PMUPgKJD0HObfidyiJVWWSR40+DerblZyeeSCVK4gdoNhpg+PnH/vHPn3+9zPZ3wzu84EqRLPC2YjGnzLlnNaGYKWu2XPPiSbR2730Tob9m8R41VpkcZVoUxtySq5RgzbBQ2ZoslYw3DDJjERFvXhR5WOFmJWMhHsmJov/lkZexj7j5ACySt6Pgdg1gip7pB8e7EfR1XyJvKyhqkamRgCzkbaeLlRZHmkATOTO8ohX0JRb0VLSVBnoJfwkzN1pCG9locgr4aIydoY2+/OkmXtgaAUPmpiQi+Wlj19gMRLmY4IZBbGbbuWj5c9Da8V39Pv4dBaGdlwm82RCY4GxYwZZg38cf9D4wAACChBBQroelCnYwA/8YBb8EZ2D0ILoovUfBqXVaP2I9rtZ7cPDN+JrYRckp2KHtEL2/NikTqvnWbPho924WBufN+GWaTdQFm59Nh+8g3027pA1cYc52c2DPGSLM13DZd5ovz25fnFyFEfG4qTvYeXwSY0Ry7DOHc3FBHmUqH0lCSTJP5iGkr5NOpr2y1cRH2KOdHbtKlStqFw5sqJ60BB5XLtIOb3EPFeopktCbRDECWeIr4Q14GGH0chBXtfj1vrmHZ98Em3ruObrL882x3B2HN8/59zzfHbt4X12Hh2892s3wjR98e9TiLdgtf8nMO77wL8zwJ3zfoAtPfv8XL29uUWLCf/Hy2S89aibt57QOH/P6edpVgd56byX3qqKvpdhi+FD2sZ2rwBtdFTumvffac4/dd9t1l22QuW7ZjMxNO6691pprhNVXW3WVZSsvXeKgVlpx7rnmnGP22WadZRpyWE8hSDOOPdaYY4w+2qijDAsjDx0ygHykEfvuq88+cAS1Xnvp1nPXLp079dRj22212UbrrbXaSsOh07RJ49CopRbrrqvOOmqvrdZaKqpn1SpeX2uqseyyyiyj9NJKLaWAqoIjpHChkkq0HWzZtGEd51sFaWbZSyckQYYS4gE4ha5nl2TBwXlEC14J7EbdunTq0B60adWikI6qItJKmjTKloWMG9IF2S4F9SuLiksGpUSiB4InD+44fSoXxpGdkd+uZLpOK1o0cX51alSpIHyZoIFTr1Bi0k4rzTRSTy3VVJKlnBTC45AopRQj4hgRjAg+IyiJ2BUqF1yjWGE4/AJFlfi34I92DgAAABxJREFUCNcFwQEBADAMw6Dcv9tOAIcGGWKEear7aPcVrJCOLHIAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjMtMDQtMjZUMjI6NTQ6NDIrMDA6MDCxel1+AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIzLTA0LTI2VDIyOjU0OjQyKzAwOjAwwCflwgAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyMy0wNC0yNlQyMzowMToyOCswMDowML/FLFcAAAAASUVORK5CYII=",D7=e=>{const t=Kt(ku),n=Kt(pf),i=t?.challenge?.goal_article?.link?.replace(/_/g," ")||"...",o=e.layout==="inline"?"flex items-center bg-white shadow rounded p-1":"flex flex-col items-center bg-white shadow rounded m-1 p-2",s=e.layout==="inline"?"text-md font-bold font-noto-serif mx-2":"text-2xl text-center font-bold font-noto-serif",l=e.layout==="inline"?"font-noto-sans text-md":"font-noto-sans px-1",c={backgroundImage:`url(${YT})`};return T.jsxs("div",{className:o,style:c,children:[T.jsx("div",{className:s,children:i}),T.jsx("div",{className:l,children:T.jsxs("span",{className:n<=10?"text-red-500":"",children:["(",n,T.jsx("span",{className:"text-sm",children:"s"}),")"]})})]})},H7=()=>{const[e,t]=z.useState({width:void 0,height:void 0});return z.useEffect(()=>{const n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),e},ZT=()=>{const e=Kt(E5),t=H7(),n=t.width!==void 0&&t.width<768;return T.jsxs(A7,{children:[T.jsx("div",{className:`${e?"md:hidden":""}`,children:T.jsx(cm,{})}),e&&n&&T.jsx("div",{className:"flex justify-center w-full absolute top-[50px]",children:T.jsx(D7,{layout:"inline"})}),T.jsx("div",{className:"flex items-center ml-auto",children:T.jsx(T7,{})})]})},KT={name:"day",displayName:"Day Leaders"},JT={name:"week",displayName:"Week Leaders"},XT={name:"all",displayName:"All-time Leaders"},s4=[KT,JT,XT],eP=vo.injectEndpoints({endpoints:e=>({getLeaderboard:e.query({query:({longCode:t,when:n})=>`group/${t}/leaderboard/?when=${n}`})})}),{useGetLeaderboardQuery:tP}=eP,nP=()=>{const e=Ri(),t=Kt(ji);Kt(ku);const n=Kt(A0),i=Kt(ul),o=Kt(ff),[s]=k7(),l=["Round Results",...s4.map($=>$.displayName)],[c,d]=z.useState(1),[f,h]=z.useState(1),g=s4[c-1],w=c>0?{longCode:t,when:g.name}:null,{data:m,isFetching:b,refetch:_}=tP(w??su.skipToken),C=c===0?{longCode:t,page:f,active:!1}:null,{data:R,isFetching:I,refetch:k}=a7(C??su.skipToken),A=R?.results.flatMap($=>$.games.filter(W=>W.won)),L=o7(A??[]),j=i?.is_guest??!0,D=z.useRef(n);z.useEffect(()=>{c===0?k():c>0&&_()},[c]),z.useEffect(()=>{D.current===!0&&n===!1&&(c===0?k():c>0&&_()),D.current=n},[n,c]);const V=$=>{$&&f>1?h(f-1):$||h(f+1)},q=async()=>{const $=await s({join_group_type:nf.Private}).unwrap();e(Eu($)),window.location.reload()};return T.jsxs("div",{className:"border-gray-800 border border-b-6 rounded-2xl bg-gradient-to-b from-white to-brown-50 md:max-h-[calc(100vh-20rem)] md:flex md:flex-col",children:[T.jsx("div",{className:"flex justify-center p-4 lg:p-6 rounded-t-2xl bg-brown-300 flex-shrink-0",children:T.jsx("div",{className:"text-left text-xl lg:text-2xl",children:T.jsxs("div",{className:"font-noto-sans uppercase font-bold py-2",children:[T.jsx("img",{className:"inline w-16 mr-2",src:`${O7}`,alt:"Groups logo"}),"Wiki Game Leaderboards"]})})}),T.jsx("div",{className:"flex bg-brown-300 flex-shrink-0",children:l.map(($,W)=>T.jsx("button",{onClick:()=>d(W),className:`flex-grow rounded-t-md text-center p-1 lg:p-2 2508 font-noto-sans text-xs lg:text-sm uppercase 2509 ${c===W?W===0?"bg-white":"bg-gray-50":""} ${W===l.length-1?"":"mr-1"}`,children:$},W))}),T.jsxs("div",{className:"md:overflow-y-auto md:flex-1 pb-3 rounded-b-2xl",children:[c===0&&T.jsxs("div",{className:"flex flex-col",children:[j&&T.jsxs("div",{className:"text-center p-2 m-4 mb-0 rounded-lg bg-yellow-400",children:["Your wins are not saved!",T.jsxs("div",{className:"mt-1",children:[T.jsx("span",{className:"cursor-pointer underline ml-2 pr-1",onClick:Xh,children:"Login"}),"or",T.jsx("span",{className:"cursor-pointer underline pl-1",onClick:e0,children:"Create an Account"})]})]}),I&&T.jsx("p",{className:"text-center py-4 mt-12",children:"Loading Round Results..."}),!I&&R&&R.results.length>0&&T.jsxs("div",{className:"flex flex-col justify-center items-center text-center mt-8 font-bold text-lg xl:text-2xl",children:[T.jsx(I7,{challenge:R.results[0].challenge}),T.jsx("div",{className:"text-sm font-extralight uppercase cursor-default",title:R.results[0].start_time,children:S7(R.results[0].start_time)})]}),T.jsxs("div",{className:"flex flex-row justify-center items-center mt-2 mb-4",children:[T.jsx("button",{className:"bg-gray-50 border border-gray-300 text-black text-sm px-1 mr-2 rounded font-bold",onClick:()=>V(!1),title:"Previous Result",children:"â"}),T.jsx("button",{className:"bg-gray-50 border border-gray-300 text-black text-sm px-1 rounded font-bold",onClick:()=>V(!0),disabled:f<=1,title:"Next Result",children:"â"})]}),!I&&A&&A.length===0&&T.jsx("p",{className:"text-center mt-8 mb-12",children:"No wins this round!"}),!I&&L&&L.map(($,W)=>T.jsxs("div",{className:"flex flex-col bg-gradient-to-b from-white to-gray-50 shadow-sm rounded p-4 m-2",children:[T.jsxs("div",{className:"flex flex-row items-center text-lg",children:[W<3&&T.jsx("img",{className:"w-14 h-14 mr-2",src:lE[W],alt:`Winner ${W}`}),T.jsxs("span",{className:"font-extralight",children:["#",W+1,"."]}),T.jsx("span",{className:"font-bold mx-2",children:T.jsx(tf,{username:$.username})}),T.jsxs("span",{className:"font-extralight",children:["(",$.total_points,T.jsx("span",{className:"text-xs",children:"pts"}),")"]})]}),$.games.map((ae,te)=>T.jsxs("div",{className:"my-4",children:[T.jsxs("div",{className:"font-extralight text-sm uppercase",children:["Win #",te+1]}),T.jsx("div",{className:"",children:T.jsx(um,{clicks:ae.clicks,animate:!1,shouldWrap:!0},te)}),T.jsxs("div",{className:"flex flex-row font-extralight text-sm",children:["(",T.jsxs("span",{className:"",children:[ae.points,T.jsx("span",{className:"text-xs",children:"pts"})]}),T.jsx("span",{className:"ml-1",children:"·"}),T.jsxs("span",{className:"mx-1",children:[ae.clicks.length,T.jsx("span",{className:"text-xs",children:"clicks"})]}),T.jsx("span",{className:"mr-1",children:"·"}),T.jsxs("span",{className:"",children:[ae.total_time,T.jsx("span",{className:"text-xs",children:"secs"})]}),")"]})]},te))]},W))]}),(c===1||c===2||c===3&&!o)&&T.jsxs("div",{className:"flex flex-col",children:[b&&T.jsx("p",{className:"text-center py-4 mt-12",children:"Loading Leaderboard..."}),!b&&m&&m.leaderboard.length===0&&T.jsx("p",{className:"text-center mt-8 mb-12",children:"No leaders yet!"}),!b&&m&&m.leaderboard.map(($,W)=>{const ae=W===m.leaderboard.length-1;return T.jsxs("div",{className:`flex flex-row p-3 border-gray-300 2510 ${W%2===0?"bg-gray-50":"bg-gray-100"} 2511 ${ae?"rounded-b-2xl":""}`,children:[T.jsxs("span",{className:"font-extralight",children:["#",W+1,"."]}),T.jsx("span",{className:"font-bold mx-2",children:T.jsx(tf,{username:$[0]})}),T.jsxs("span",{className:"font-extralight",children:["(",$[1],T.jsx("span",{className:"text-xs",children:"pts"}),")"]})]},W)})]}),c===3&&T.jsx(T.Fragment,{children:o&&j?T.jsxs("div",{className:"text-center p-2 m-4 rounded-lg bg-yellow-400",children:[T.jsx("div",{children:"All-time leaderboard for private groups only."}),T.jsxs("div",{className:"mt-1",children:[T.jsx("span",{className:"cursor-pointer underline pr-1",onClick:Xh,children:"Login to your Account"}),"or",T.jsx("span",{className:"cursor-pointer underline pl-1",onClick:e0,children:"Create an Account"})]})]}):!j&&o&&T.jsxs("div",{className:"text-center p-2 m-4 rounded-lg bg-yellow-400",children:[T.jsx("div",{children:"Switch to your private group for all-time leaderboard!"}),T.jsx("div",{className:"mt-1",children:T.jsx("span",{className:"cursor-pointer underline pr-1",onClick:q,children:"Join Private Group"})})]})})]})]})},l4=()=>{const e=()=>{window.location.reload()};return T.jsx("div",{onClick:e,className:"h-6 w-6 bg-gray-50 border border-gray-300 p-1 rounded-md cursor-pointer",title:"Refresh",children:T.jsx("svg",{viewBox:"0 0 65 65",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{children:[T.jsx("path",{d:"m32.5 4.999c-5.405 0-10.444 1.577-14.699 4.282l-5.75-5.75v16.11h16.11l-6.395-6.395c3.18-1.787 6.834-2.82 10.734-2.82 12.171 0 22.073 9.902 22.073 22.074 0 2.899-0.577 5.664-1.599 8.202l4.738 2.762c1.47-3.363 2.288-7.068 2.288-10.964 0-15.164-12.337-27.501-27.5-27.501z"}),T.jsx("path",{d:"m43.227 51.746c-3.179 1.786-6.826 2.827-10.726 2.827-12.171 0-22.073-9.902-22.073-22.073 0-2.739 0.524-5.35 1.439-7.771l-4.731-2.851c-1.375 3.271-2.136 6.858-2.136 10.622 0 15.164 12.336 27.5 27.5 27.5 5.406 0 10.434-1.584 14.691-4.289l5.758 5.759v-16.112h-16.111l6.389 6.388z"})]})})})},rP=()=>{const e=Kt(ji),t=Kt(ku),{data:n}=dm(e),i=Kt(pf),o=Kt(A0);if(n&&!n.auto_start_new_round&&!o)return T.jsx(T.Fragment,{});if(!o||!t)return T.jsxs("div",{className:"flex flex-row",children:[T.jsx(l4,{}),T.jsxs("span",{className:"ml-2",children:["Creating New Round",T.jsx(Cd,{maxCount:3,initialCount:0})]})]});if(i<=t.max_time&&i>0)return T.jsxs("span",{children:[T.jsx("span",{className:"mr-1",children:"Round ends in"}),T.jsxs("span",{className:i<=10?"text-red-500":"",children:[i," seconds"]})]});const s=i-t.max_time;return s>0?T.jsxs("span",{children:["New Round in",T.jsxs("span",{className:"text-yellow-500 ml-1",children:[s,T.jsx("span",{className:"text-sm",children:"s"}),T.jsx(Cd,{maxCount:3,initialCount:0})]})]}):T.jsxs("div",{className:"flex flex-row",children:[T.jsx(l4,{}),T.jsxs("span",{className:"ml-2",children:["Creating New Round",T.jsx(Cd,{maxCount:3,initialCount:0})]})]})},iP=()=>{const e=fs(),t=Kt(ji),{data:n}=i7(t),{data:i}=dm(t),o=Kt(pf);let s="Loading...",l="",c=!0;n&&o<=n.max_time&&o>0&&(s="Play Now",c=!1),n&&o-n.max_time>0&&(s="Get Ready...",c=!0),i&&!i.auto_start_new_round&&o<=0&&(s="Round over",l="(admin will start new round)",c=!0);const d=()=>{e(hf(!0))};return T.jsxs("div",{className:"flex flex-wrap md:flex-nowrap p-8 md:pr-12 gap-8",children:[T.jsxs("div",{className:"w-full md:w-1/2 border-gray-800 border border-b-6 rounded-2xl bg-gradient-to-b from-white to-brown-50 flex-shrink-0",children:[T.jsx("div",{className:"flex justify-center p-4 lg:p-6",children:T.jsx("div",{className:"text-left text-xl lg:text-2xl",children:T.jsxs("div",{className:"font-noto-sans uppercase font-bold py-2",children:[T.jsx("img",{className:"inline w-8 mr-2",src:`${j7}`,alt:"Wendy"}),"Play Current Round"]})})}),T.jsx(N7,{startArticle:n?.challenge?.start_article,goalArticle:n?.challenge?.goal_article}),T.jsxs("div",{className:"flex flex-col justify-center items-center my-12",children:[T.jsx("div",{className:"flex flex-row",children:T.jsx(ia,{buttonText:s,subText:l,disabled:c,additionalClasses:c?"opacity-70 cursor-not-allowed mt-4 w-64":"mt-4 w-64",showLoading:c,buttonTextAdditionalClasses:"text-2xl",onClick:d})}),T.jsx("div",{className:"flex flex-row mt-2",children:T.jsx(rP,{})})]})]}),T.jsx("div",{className:"w-full md:w-1/2 flex-shrink-0",children:T.jsx(nP,{})})]})},aP=e=>{const t=Ri(),n=z.useRef(null),i=l=>{try{const c=l.target;if(c.tagName==="A"){l.preventDefault();const d=c.href;if(!d)return;const h=new URL(d).pathname.replace("/wiki/",""),g=decodeURIComponent(h);if(g.includes("File:")||g.includes("Special:"))return;e.handleLinkClick(g)}}catch(c){const d=`${c.message} 2512 (Failed to handle link click) 2513 clicked title: '${l.target.title}' 2514 clicked tagName: '${l.target.tagName}' 2515 current link: '${decodeURIComponent(e.gameClickResp.current_link)}'`;t(La({type:kr.ErrorMessage,data:{error:{message:d}}}))}},o=l=>{const c=l.createElement("h1"),d=decodeURIComponent(e.gameClickResp.current_link);c.textContent=d.replace(/_/g," "),c.style.fontFamily="serif",c.style.fontWeight="semibold",l.body.insertBefore(c,l.body.firstChild)},s=l=>{l.body.style.fontFamily="sans-serif",l.body.style.lineHeight="1.5em",e.isMobile&&(l.body.style.paddingBottom="260px"),["mw-ref","box-Short_description","box-Multiple_issues","new","ext-phonos","external","noprint","reference","mw-editsection","metadata","noprint","metadata","
2515sistersitebox","mediaContainer","portal","coordinates","pcs-edit-section-link-container","pcs-ref-back-link"].forEach(h=>{const g=l.getElementsByClassName(h);for(const w of g)w.style.display="none"}),["Sources","References","Further_reading","Notes","Notes_and_references","External_links","Footnotes","Bibliography","Secondary_references","Selected_bibliography","Works_cited","Citations","Sources_and_further_reading","Additional_resources","Literature","Publication_infomation"].forEach(h=>{const g=l.getElementById(h);if(g){let b=g.closest("section");b&&(b.style.display="none")}const w=l.getElementsByTagName("img");for(const b of w){const _=b.closest("a");_&&(_.href="javascript:void(0)",_.style.pointerEvents="none")}["mw-file-description","extiw"].forEach(b=>{const _=l.getElementsByClassName(b);for(const C of _)C.style.pointerEvents="none",C.style.textDecoration="none",C.style.color="black"})});const f=l.createElement("div");f.innerHTML=` 2516 <div style="font-size: 16px; border-top: 1px solid #AAA; margin: 30px 0px 60px 0px; padding: 30px 0px;"> 2517 Text is available under the 2518 <a style="color: #002bb8 !important;" onclick="window.open('https://creativecommons.org/licenses/by-sa/4.0/deed.en'); return false;"> 2519 Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. 2520 </div> 2521 `,l.body.appendChild(f)};return z.useEffect(()=>{if(t(Th(!0)),!e.gameClickResp.content){const f=`Content is missing for: '${decodeURIComponent(e.gameClickResp.current_link)}'`;t(La({type:kr.ErrorMessage,data:{error:{message:f}}}))}const l=n.current;if(!l){t(La({type:kr.ErrorMessage,data:{error:{message:"Wiki content iframe is missing"}}}));return}const c=l.contentDocument||l.contentWindow?.document;if(!c){t(La({type:kr.ErrorMessage,data:{error:{message:"Wiki content iframeDoc is missing"}}}));return}const d=()=>{if(!c){t(La({type:kr.ErrorMessage,data:{error:{message:"Wiki content iframeDoc is missing in onIframeLoad"}}}));return}e.isMobile||o(c),s(c),c.scrollingElement?.scrollTo(0,0),t(Th(!1))};return l.addEventListener("load",d),c.open(),c.write(e.gameClickResp.content),c.close(),c.addEventListener("click",i),()=>{c&&(c.removeEventListener("click",i),l.removeEventListener("load",d))}},[e.gameClickResp.content]),T.jsx("div",{className:"w-full h-screen pl-2 border-t border-gray-200",children:T.jsx("iframe",{ref:n,className:"w-full h-screen"})})},oP=e=>{const[t,n]=z.useState(e.isActive);if(z.useEffect(()=>{e.isActive?n(!0):setTimeout(()=>n(!1),300)},[e.isActive]),!t)return null;const i=`absolute inset-0 bg-white bg-opacity-95 flex items-center justify-center 2522 transition-opacity duration-300 ease-out ${e.extraStyles}`;return T.jsx("div",{className:i,children:T.jsx(x7,{})})},sP=()=>{const e=Ri(),t=ca(),n=G9(),i=H7(),o=Kt(ku),s=Kt(ul),l=Kt(ff),c=Kt(ji),d=Kt(uC),[f,{isLoading:h}]=QA(),[g,w]=z.useState([]),[m,b]=z.useState(void 0),_=i.width!==void 0&&i.width<768;z.useEffect(()=>{if(!o||!o.challenge)return;const I=o?.challenge.start_article.link;t(`/play/${encodeURIComponent(I)}`,{replace:!0})},[o]),z.useEffect(()=>{if(!o||!o.challenge)return;e(Th(!0));const I=n.link?decodeURIComponent(n.link):void 0;if(g.length===0){const k=o?.challenge.start_article.link;if(I&&I!==k){t(`/play/${encodeURIComponent(k)}`,{replace:!0});return}}I&&(w(k=>[...k,I]),R(I))},[o,n.link]);const C=I=>{t(`/play/${encodeURIComponent(I)}`)},R=async I=>{try{const k=encodeURIComponent(I),A=await f({longCode:c,link:k,roundPk:o.pk,mobile:_.toString()}).unwrap();if(b(A),e(oC(A.round_stats)),A.won){const L=s.member_name,j=s.is_guest,D=!j&&!s.is_admin&&!l,V=j||D?`${L}_${c}`:L;e(La({type:kr.RoundWins,data:{username:V}}))}}catch(k){k?.status===404?t("/play/",{replace:!0}):e(La({type:kr.ErrorMessage,data:{error:{message:k?.data?.message||`An unknown game click error for round #${o.pk}`}}}))}};return T.jsxs(T.Fragment,{children:[T.jsx(oP,{isActive:d,extraStyles:"mt-16"}),m&&T.jsx(aP,{gameClickResp:m,handleLinkClick:C,isMobile:_})]})},ed=e=>{const t=e.stats?.clicks??0,n=e.stats?.points??"-",i=e.stats?.wins??0;return T.jsxs("div",{className:`py-2 px-2 border-t border-r border-gray-200 ${e.extraStyles}`,children:[T.jsxs("div",{className:"flex",children:[T.jsx("div",{className:"font-bold",children:T.jsx(tf,{username:e.username})}),t>0&&T.jsxs("span",{className:"pl-1 cursor-help",title:"Current game click count",children:["(",t,")"]})]}),i>0&&T.jsxs("div",{className:"flex",children:[T.jsxs("span",{children:[n,T.jsx("span",{className:"text-xs",children:"pts"})]}),T.jsx("span",{className:"mx-1",children:"·"}),T.jsxs("span",{className:"",children:[i,T.jsx("span",{className:"text-xs",children:i>1?" wins":" win"})]})]})]})},lP=()=>{const e=Kt(lC),t=Kt(ji),n=Kt(ul),i=Kt(ff),o={me:{},winners:{},loggedIn:{},anonymous:{}},[s,l]=z.useState(o),c=n?.member_name??"",d=n?.is_guest??!0,f=n?.is_admin??!1,h=!d&&!f&&!i;z.useEffect(()=>{if(e&&c){const k=g(e,c);l(k)}},[e,c]);const g=(k,A)=>{const L={...k},j=d||h?`${A}_${t}`:A,D={[A]:L[j]};delete L[j];let V={},q={},$={};for(const[W,ae]of Object.entries(L))W.includes(t)?ae.points>0?$[W]=ae:q[W]=ae:ae.points>0?$[W]=ae:V[W]=ae;return{me:D,winners:$,loggedIn:V,anonymous:q}},{me:w,winners:m,loggedIn:b,anonymous:_}=s,C=Object.entries(m).map(([k,A])=>({username:k,...A}));let R=-1;w[c]?.points>
25220&&C.push({username:c,...w[c]}),C.sort((k,A)=>A.points-k.points),R=C.findIndex(k=>k.username===c);const I=(k,A)=>k===0?"bg-amber-400":k===1?"bg-slate-400":k===2?"bg-yellow-900":A>0?"bg-stone-400":"bg-white";return T.jsxs("div",{className:"sidebar mx-1",children:[T.jsx("div",{children:T.jsx(ed,{username:c,stats:w[c],extraStyles:`${R>=0?I(R,w[c].wins):"bg-white"}`})},c),C.map(({username:k,clicks:A,points:L,wins:j},D)=>k===c?null:T.jsx("div",{children:T.jsx(ed,{username:k,stats:{clicks:A,points:L,wins:j},extraStyles:I(D,j)})},k)),Object.entries(b).filter(([k,A])=>k!==c).map(([k,A])=>T.jsx(ed,{username:k,stats:A,extraStyles:"bg-white"},k)),Object.entries(_).map(([k,A])=>T.jsx(ed,{username:k,stats:A,extraStyles:"bg-white"},k))]})};function ol({slotId:e,width:t,height:n,isPlaceholder:i=!1,label:o}){const s=o||`Ad Placeholder ${t}x${n}`;return i?T.jsx("div",{className:"bg-gray-100 border border-gray-300 flex items-center justify-center text-gray-500 text-sm overflow-hidden",style:{width:`${t}px`,height:`${n}px`,maxWidth:`${t}px`,maxHeight:`${n}px`},children:s}):T.jsx("div",{id:e,className:"overflow-hidden bg-gray-50",style:{width:`${t}px`,height:`${n}px`,maxWidth:`${t}px`,maxHeight:`${n}px`}})}function fm({children:e,enabled:t}){const o=new URLSearchParams(window.location.search).get("a")==="0";return(t!==void 0?t:!o)?T.jsx(T.Fragment,{children:e}):null}const uP=()=>T.jsx(fm,{children:T.jsxs("div",{className:"flex flex-col gap-1 overflow-hidden",children:[T.jsx(ol,{slotId:"thewikigame_D_1",width:300,height:250}),T.jsx(ol,{slotId:"thewikigame_D_2",width:300,height:50})]})}),cP=e=>{const t=z.useRef(null),n=z.useRef(null);return T.jsxs(T.Fragment,{children:[T.jsx("div",{className:`fixed inset-0 bg-slate-900 bg-opacity-30 z-40 md:hidden md:z-auto transition-opacity duration-200 ${e.sidebarOpen?"opacity-100":"opacity-0 pointer-events-none"}`,"aria-hidden":"true"}),T.jsxs("div",{id:"sidebar",ref:n,className:`flex flex-col absolute z-40 left-0 top-0 2523 md:static md:left-auto md:top-auto md:translate-x-0 h-screen overflow-y-scroll md:overflow-y-auto no-scrollbar w-[300px] md:sidebar-expanded:!w-[300px] 2524 2xl:!w-[300px] shrink-0 bg-gray-100 transition-all duration-200 ease-in-out 2525 ${e.sidebarOpen?"translate-x-0":"-translate-x-[300px]"}`,children:[T.jsx("div",{className:"h-16 pt-2 bg-white",children:T.jsx(cm,{})}),T.jsx("div",{className:"flex justify-between pr-3 sm:px-2",children:T.jsxs("button",{ref:t,className:"md:hidden text-slate-500 hover:text-slate-400",onClick:()=>e.setSidebarOpen(!e.sidebarOpen),"aria-controls":"sidebar","aria-expanded":e.sidebarOpen,children:[T.jsx("span",{className:"",children:"Close sidebar"}),T.jsx("svg",{className:"w-6 h-6 fill-current",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("path",{d:"M10.7 18.7l1.4-1.4L7.8 13H20v-2H7.8l4.3-4.3-1.4-1.4L4 12z"})})]})}),T.jsx(D7,{layout:"block"}),T.jsxs("div",{className:"flex flex-col flex-grow overflow-hidden",children:[T.jsx("div",{className:"flex-none",children:T.jsx(uP,{})}),T.jsx("div",{className:"flex-1 overflow-y-auto no-scrollbar",children:T.jsx(lP,{})})]})]})]})},dP="_adSmall_1rdn8_1",fP="_adLarge_1rdn8_5",u4={adSmall:dP,adLarge:fP},pP=()=>T.jsx(fm,{children:T.jsxs("div",{className:"fixed bottom-0 left-0 right-0 flex justify-center overflow-hidden z-50",children:[T.jsx("div",{className:u4.adSmall,children:T.jsx(ol,{slotId:"thewikigame_M_1",width:320,height:50})}),T.jsx("div",{className:u4.adLarge,children:T.jsx(ol,{slotId:"thewikigame_M_2",width:300,height:250})})]})}),hP=()=>T.jsx(fm,{children:T.jsxs("div",{className:"fixed bottom-0 left-0 right-0 flex justify-center z-50",children:[T.jsx("div",{className:"max-md:hidden",children:T.jsx(ol,{slotId:"thewikigame_D_3",width:728,height:90})}),T.jsx("div",{className:"md:hidden",children:T.jsx(ol,{slotId:"thewikigame_M_4",width:320,height:50})})]})}),mP=()=>T.jsxs("div",{className:"flex flex-col md:flex-row flex-grow w-screen lg:max-w-screen-xl lg:mx-auto",children:[T.jsxs("div",{className:"w-full md:w-5/12 mr-2 p-10",children:[T.jsx("div",{className:"uppercase",children:"Private Groups"}),T.jsxs("div",{className:"text-4xl lg:text-5xl py-4",children:[T.jsx("div",{className:"whitespace-nowrap",children:"Welcome to your"}),T.jsx("div",{className:"whitespace-nowrap",children:"Wiki Game Group!"})]}),T.jsxs("div",{className:"text-lg",children:["Create your first challenge, and invite others to your private group! (Use the ",T.
2525jsx("span",{className:"italic",children:"Group Admin"})," link from the user menu dropdown to make more changes later)"]})]}),T.jsx("div",{className:"w-full md:pt-10 md:w-8/12",children:T.jsxs("div",{className:"bg-white p-10 mx-8 rounded-xl border border-black border-b-4",children:[T.jsx("div",{className:"mb-10",children:T.jsx(M7,{onChallengeCreated:function(){document.location.reload()}})}),T.jsx(L7,{})]})})]}),c4=500,gP=5,d4=()=>{const e=ca(),t=fs(),n=ko(),[i,o]=z.useState(!1),[s,l]=z.useState(!1),[c,d]=z.useState(c4),[f,h]=z.useState(0),g=Kt(E5),w=Kt(ji),{data:m,error:b,isLoading:_,isFetching:C,refetch:R}=i7(w),I=Kt(ul),k=z.useRef({}),A=Kt(A0),L=Kt(pf),j=Kt(Tu),D=n.state?.from==="/";I?.is_guest;const V=I?.is_admin??!1;return z.useEffect(()=>{t(D2())},[]),z.useEffect(()=>{g||e("/play/",{replace:!0})},[g,e]),z.useEffect(()=>{g&&D||L===0&&(t(sC()),t(hf(!1)),j.type===kr.RoundWins&&t(ss()))},[L,g,D,j,t]),z.useEffect(()=>{s&&V&&localStorage.getItem("hasCreatedChallenge")&&e("/admin",{replace:!0})},[s,V,e]),z.useEffect(()=>{if(b?.status===404){l(!0);return}else l(!1);if(C)return;const q=m?.pk===k.current.pk;let $;if(!q)m?.challenge&&(k.current=m,t(A5(m)),t(D2()),A||t(kh()),h(0),d(c4));else if(!A)return $=setTimeout(()=>{f<=gP&&(R(),h(f+1),d(c*2))},c),()=>{clearInterval($)}},[A,C,s,m,b,f,c,k,R,l,h,d,t]),z.useEffect(()=>{if(m&&m.challenge===null){const q=setTimeout(()=>{R()},1e3);return()=>clearTimeout(q)}},[m,R]),z.useEffect(()=>{let q;return A?q=setInterval(()=>{t(kh())},1e3):q&&clearInterval(q),()=>{q&&clearInterval(q)}},[A,t]),T.jsxs("div",{className:`flex h-screen overflow-hidden ${g?"bg-white":"bg-brown-300"}`,children:[g&&T.jsx(cP,{sidebarOpen:i,setSidebarOpen:o}),T.jsxs("div",{className:`flex flex-col flex-1 ${g?"":"overflow-y-auto"}`,children:[T.jsx(ZT,{}),T.jsx("main",{className:`flex flex-col flex-1 ${g?"overflow-hidden":""}`,children:T.jsx("div",{className:"w-full max-w-9xl mx-auto flex-1",children:T.jsxs("div",{className:"flex flex-col flex-1",children:[T.jsx("div",{className:"flex-1",children:s&&V?T.jsx(mP,{}):g?T.jsx(sP,{}):T.jsx(iP,{})}),!g&&T.jsx("div",{className:"flex justify-center w-full py-8",children:T.jsx("a",{href:"mailto:[email protected]",className:"text-black hover:text-gray-800 underline",children:"Have feedback?"})})]})})}),g&&T.jsx("div",{className:"md:hidden",children:T.jsx(pP,{})}),!g&&T.jsx("footer",{className:"w-full bg-white p-6 mt-6 pb-[270px] md:pb-[110px]",children:T.jsx(F7,{})})]}),!g&&T.jsx(hP,{})]})};function vP(){return T.jsx(E4,{children:T.jsxs(Ta,{path:"/",element:T.jsx(qk,{}),children:[T.jsx(Ta,{index:!0,element:T.jsx(QT,{})}),T.jsxs(Ta,{element:T.jsx(dT,{}),children:[T.jsxs(Ta,{path:"play",children:[T.jsx(Ta,{index:!0,element:T.jsx(d4,{})}),T.jsx(Ta,{path:":link",element:T.jsx(d4,{})})]}),T.jsx(Ta,{path:"admin",element:T.jsx(cT,{})})]})]})})}const yP=document.getElementById("root"),wP=l9.createRoot(yP);wP.render(T.jsx(x.StrictMode,{children:T.jsx(Bw,{store:k5,children:T.jsx(VA,{children:T.jsx(cw,{children:T.jsx(gw,{FallbackComponent:ww,children:T.jsx(E4,{children:T.jsx(Ta,{path:"/*",element:T.jsx(vP,{})})})})})})})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.