/*! For license information please see 208.02861c0b1ed02ab62f67.js.LICENSE.txt */ (self.webpackChunktotem=self.webpackChunktotem||[]).push([[208],{8810:(e,n,t)=>{"use strict";t.r(n),t.d(n,{AnimatedSprite:()=>dn,AppConsumer:()=>Be,AppContext:()=>He,AppProvider:()=>Qe,BitmapText:()=>an,Container:()=>on,Graphics:()=>un,NineSlicePlane:()=>sn,ParticleContainer:()=>cn,PixiComponent:()=>ae,PixiFiber:()=>Ne,SimpleMesh:()=>hn,SimpleRope:()=>gn,Sprite:()=>fn,Stage:()=>Ke,TYPES:()=>te,Text:()=>pn,TilingSprite:()=>mn,applyDefaultProps:()=>Q,createRoot:()=>je,eventHandlers:()=>R,render:()=>Le,unmountComponentAtNode:()=>Me,useApp:()=>Je,useTick:()=>Ze,withFilters:()=>ln,withPixiApp:()=>We});var r=t(6951),l=t(8820),a=t(8363),i=t(5884),o=t(3879),u=t(5638),s=t(3210),c=t(2274),f=t(8656),d=t(4014),p=t(33),m=t(7361),h=t(8416),g=t.n(h),v=t(8440),y=t(4116),b=t(5439),S=t.n(b);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function w(e){var n=function(e,n){if("object"!==x(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===x(n)?n:String(n)}function k(e,n,t){return(n=w(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t2?t-2:0),l=2;l0&&r.length<3,"The property `%s` is a `PIXI.Point` or `PIXI.ObservablePoint` and must be set to a comma-separated string of either 1 or 2 coordinates, a 1 or 2 element array containing coordinates, or a PIXI Point/ObservablePoint. If only one coordinate is given then X and Y will be set to the provided value. Received: `%s` of type `%s`.",n,JSON.stringify(t),x(t)),e[n].set(r.shift(),r.shift())}else e[n]=t}var j,L=function(e){var n,t=e;if(!Array.isArray(t)){if(n=e,"[object Object]"!==Object.prototype.toString.call(n))throw new Error("collection needs to be an Array or Object");t=Object.keys(e)}var r={};return t.forEach((function(e){r[e]=!0})),function(e){return void 0!==r[e]}},M=function(e){return function(){return!e.apply(void 0,arguments)}},D="children",U=(k(j={},D,!0),k(j,"parent",!0),k(j,"worldAlpha",!0),k(j,"worldTransform",!0),k(j,"worldVisible",!0),j),F={alpha:1,buttonMode:!1,cacheAsBitmap:!1,cursor:null,filterArea:null,filters:null,hitArea:null,interactive:!1,mask:null,pivot:0,position:0,renderable:!0,rotation:0,scale:1,skew:0,transform:null,visible:!0,x:0,y:0},A=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=function(e){return requestAnimationFrame((function(){var n,t;null==e||null===(n=e.__reactpixi)||void 0===n||null===(t=n.root)||void 0===t||t.emit("__REACT_PIXI_REQUEST_RENDER__")}))},a=function(n,r){if(t.hasOwnProperty(n))return C(r.typeofs.some((function(e){return x(t[n])===e}))||r.instanceofs.some((function(e){return t[n]instanceof e})),"".concat(e," ").concat(n," prop is invalid")),t[n]};if(t.texture)return C(t.texture instanceof r.xE,"".concat(e," texture needs to be typeof `Texture`")),t.texture;var i=a("image",{typeofs:["string"],instanceofs:[HTMLImageElement]})||a("video",{typeofs:["string"],instanceofs:[HTMLVideoElement]})||a("source",{typeofs:["string","number"],instanceofs:[HTMLImageElement,HTMLVideoElement,HTMLCanvasElement,r.xE]});C(!!i,"".concat(e," could not get texture from props"));var o=r.xE.from(i);return o.__reactpixi={root:n},o.once("update",l),o.once("loaded",l),o.valid&&l(o),o},H=M(L([].concat(E(Object.keys(U)),E(R))));function Q(e,n,t){var r=!1;if(C(l.s$.prototype.isPrototypeOf(e),"instance needs to be typeof `DisplayObject`, got `%s`",x(e)),!t.ignoreEvents)for(var a="function"==typeof e.removeListener,i="function"==typeof e.on,o=0;o=0||(l[t]=e[t]);return l}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}var W=["draw","geometry"],$=["image","texture"];function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function X(e){for(var n=1;n");var o=Q(n,t,i);return(l||a)&&(a!==t.texture&&(o=!0),n.texture=A("SimpleRope",e,r)),o},l},AnimatedSprite:function(e,n){var t=n.textures,l=n.images,a=n.isPlaying,i=void 0===a||a,o=n.initialFrame,u=function(e){return e.map((function(e){return C(e instanceof r.xE||(null==e?void 0:e.texture),"AnimationSprite texture needs to be an array of `PIXI.Texture` or `{ texture: PIXI.Texture, time:\n number }`"),e}))},s=l?f.K.fromImages(l):new f.K(u(t));return s[i?"gotoAndPlay":"gotoAndStop"](o||0),s.applyProps=function(e,n,t){var r=t.textures,l=t.isPlaying,a=t.initialFrame,i=Q(e,n,B(t,G));if(r&&n.textures!==r&&(e.textures=u(r),i=!0),l!==n.isPlaying||a!==n.initialFrame){var o="number"==typeof a?a:s.currentFrame||0;s[l?"gotoAndPlay":"gotoAndStop"](o),i=!0}return i},s}});function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ne(e){for(var n=1;n>>1,a=e[r];if(!(0>>1;rl(u,t))sl(c,u)?(e[r]=c,e[s]=t,r=s):(e[r]=u,e[o]=t,r=o);else{if(!(sl(c,t)))break e;e[r]=c,e[s]=t,r=s}}}return n}function l(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var u=[],s=[],c=1,f=null,d=3,p=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var l=t(s);null!==l;){if(null===l.callback)r(s);else{if(!(l.startTime<=e))break;r(s),l.sortIndex=l.expirationTime,n(u,l)}l=t(s)}}function S(e){if(h=!1,b(e),!m)if(null!==t(u))m=!0,R(x);else{var n=t(s);null!==n&&O(S,n.startTime-e)}}function x(n,l){m=!1,h&&(h=!1,v(E),E=-1),p=!0;var a=d;try{for(b(l),f=t(u);null!==f&&(!(f.expirationTime>l)||n&&!z());){var i=f.callback;if("function"==typeof i){f.callback=null,d=f.priorityLevel;var o=i(f.expirationTime<=l);l=e.unstable_now(),"function"==typeof o?f.callback=o:f===t(u)&&r(u),b(l)}else r(u);f=t(u)}if(null!==f)var c=!0;else{var g=t(s);null!==g&&O(S,g.startTime-l),c=!1}return c}finally{f=null,d=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,P=null,E=-1,C=5,_=-1;function z(){return!(e.unstable_now()-_e||125i?(r.sortIndex=a,n(s,r),null===t(u)&&r===t(s)&&(h?(v(E),E=-1):h=!0,O(S,a-i))):(r.sortIndex=o,n(u,r),m||p||(m=!0,R(x))),r},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(e){var n=d;return function(){var t=d;d=n;try{return e.apply(this,arguments)}finally{d=t}}}}(pe)),pe)),fe}({get exports(){return ce},set exports(e){ce=e}}).exports=(se||(se=1,ue=function(e){var n={},t=g(),r=me(),l=Object.assign;function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t--o||l[i]!==a[o]){var u="\n"+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}}while(1<=i&&0<=o);break}}}finally{rn=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?tn(e):""}var an=Object.prototype.hasOwnProperty,on=[],un=-1;function sn(e){return{current:e}}function cn(e){0>un||(e.current=on[un],on[un]=null,un--)}function fn(e,n){un++,on[un]=e.current,e.current=n}var dn={},pn=sn(dn),mn=sn(!1),hn=dn;function gn(e,n){var t=e.type.contextTypes;if(!t)return dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function vn(e){return null!=e.childContextTypes}function yn(){cn(mn),cn(pn)}function bn(e,n,t){if(pn.current!==dn)throw Error(a(168));fn(pn,n),fn(mn,t)}function Sn(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var i in r=r.getChildContext())if(!(i in n))throw Error(a(108,P(e)||"Unknown",i));return l({},t,r)}function xn(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dn,hn=pn.current,fn(pn,e),fn(mn,mn.current),!0}function wn(e,n,t){var r=e.stateNode;if(!r)throw Error(a(169));t?(e=Sn(e,n,hn),r.__reactInternalMemoizedMergedChildContext=e,cn(mn),cn(pn),fn(pn,e)):cn(mn),fn(mn,t)}var kn=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Pn(e)/En|0)|0},Pn=Math.log,En=Math.LN2,Cn=64,_n=4194304;function zn(e){switch(e&-e){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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Nn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&t;if(0!==i){var o=i&~l;0!==o?r=zn(o):0!=(a&=i)&&(r=zn(a))}else 0!=(i=t&~l)?r=zn(i):0!==a&&(r=zn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function jn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-kn(n)]=t}function Ln(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-kn(t),l=1<>=i,l-=i,ut=1<<32-kn(n)+l|t<d?(p=f,f=null):p=f.sibling;var m=g(l,f,o[d],u);if(null===m){null===f&&(f=p);break}e&&f&&null===m.alternate&&n(l,f),a=i(m,a,d),null===c?s=m:c.sibling=m,c=m,f=p}if(d===o.length)return t(l,f),gt&&ct(l,d),s;if(null===f){for(;dp?(m=d,d=null):m=d.sibling;var b=g(l,d,y.value,s);if(null===b){null===d&&(d=m);break}e&&d&&null===b.alternate&&n(l,d),o=i(b,o,p),null===f?c=b:f.sibling=b,f=b,d=m}if(y.done)return t(l,d),gt&&ct(l,p),c;if(null===d){for(;!y.done;p++,y=u.next())null!==(y=h(l,y.value,s))&&(o=i(y,o,p),null===f?c=y:f.sibling=y,f=y);return gt&&ct(l,p),c}for(d=r(l,d);!y.done;p++,y=u.next())null!==(y=v(d,l,p,y.value,s))&&(e&&null!==y.alternate&&d.delete(null===y.key?p:y.key),o=i(y,o,p),null===f?c=y:f.sibling=y,f=y);return e&&d.forEach((function(e){return n(l,e)})),gt&&ct(l,p),c}return function e(r,a,i,f){if("object"==typeof i&&null!==i&&i.type===s&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case o:e:{for(var d=i.key,p=a;null!==p;){if(p.key===d){if((d=i.type)===s){if(7===p.tag){t(r,p.sibling),(a=l(p,i.props.children)).return=r,r=a;break e}}else if(p.elementType===d||"object"==typeof d&&null!==d&&d.$$typeof===b&&cr(d)===p.type){t(r,p.sibling),(a=l(p,i.props)).ref=ur(r,p,i),a.return=r,r=a;break e}t(r,p);break}n(r,p),p=p.sibling}i.type===s?((a=fo(i.props.children,r.mode,f,i.key)).return=r,r=a):((f=co(i.type,i.key,i.props,null,r.mode,f)).ref=ur(r,a,i),f.return=r,r=f)}return c(r);case u:e:{for(p=i.key;null!==a;){if(a.key===p){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){t(r,a.sibling),(a=l(a,i.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=ho(i,r.mode,f)).return=r,r=a}return c(r);case b:return e(r,a,(p=i._init)(i._payload),f)}if(R(i))return y(r,a,i,f);if(w(i))return S(r,a,i,f);sr(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,i)).return=r,r=a):(t(r,a),(a=mo(i,r.mode,f)).return=r,r=a),c(r)):t(r,a)}}var dr=fr(!0),pr=fr(!1),mr={},hr=sn(mr),gr=sn(mr),vr=sn(mr);function yr(e){if(e===mr)throw Error(a(174));return e}function br(e,n){fn(vr,n),fn(gr,e),fn(hr,mr),e=j(n),cn(hr),fn(hr,e)}function Sr(){cn(hr),cn(gr),cn(vr)}function xr(e){var n=yr(vr.current),t=yr(hr.current);t!==(n=L(t,e.type,n))&&(fn(gr,e),fn(hr,n))}function wr(e){gr.current===e&&(cn(hr),cn(gr))}var kr=sn(0);function Pr(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||De(t)||Ue(t)))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Er=[];function Cr(){for(var e=0;et?t:4,e(!0);var r=zr.transition;zr.transition={};try{e(!1),n()}finally{Mn=t,zr.transition=r}}function hl(){return Qr().memoizedState}function gl(e,n,t){var r=Ri(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},yl(e)?bl(n,t):null!==(t=Wt(e,n,t,r))&&(Oi(t,e,r,Ti()),Sl(t,n,r))}function vl(e,n,t){var r=Ri(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(yl(e))bl(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,o=a(i,t);if(l.hasEagerState=!0,l.eagerState=o,Gn(o,i)){var u=n.interleaved;return null===u?(l.next=l,Bt(n)):(l.next=u.next,u.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=Wt(e,n,l,r))&&(Oi(t,e,r,l=Ti()),Sl(t,n,r))}}function yl(e){var n=e.alternate;return e===Ir||null!==n&&n===Ir}function bl(e,n){jr=Or=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Sl(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,Ln(e,t)}}var xl={readContext:Ht,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},wl={readContext:Ht,useCallback:function(e,n){return Hr().memoizedState=[e,void 0===n?null:n],e},useContext:Ht,useEffect:ll,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,tl(4194308,4,ul.bind(null,n,e),t)},useLayoutEffect:function(e,n){return tl(4194308,4,e,n)},useInsertionEffect:function(e,n){return tl(4,2,e,n)},useMemo:function(e,n){var t=Hr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Hr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=gl.bind(null,Ir,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Hr().memoizedState=e},useState:Zr,useDebugValue:cl,useDeferredValue:function(e){return Hr().memoizedState=e},useTransition:function(){var e=Zr(!1),n=e[0];return e=ml.bind(null,e[1]),Hr().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=Ir,l=Hr();if(gt){if(void 0===t)throw Error(a(407));t=t()}else{if(t=n(),null===li)throw Error(a(349));0!=(30&Nr)||qr(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,ll(Yr.bind(null,r,i,e),[e]),r.flags|=2048,el(9,Gr.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=Hr(),n=li.identifierPrefix;if(gt){var t=st;n=":"+n+"R"+(t=(ut&~(1<<32-kn(ut)-1)).toString(32)+t),0<(t=Lr++)&&(n+="H"+t.toString(32)),n+=":"}else n=":"+n+"r"+(t=Mr++).toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},kl={readContext:Ht,useCallback:fl,useContext:Ht,useEffect:al,useImperativeHandle:sl,useInsertionEffect:il,useLayoutEffect:ol,useMemo:dl,useReducer:Wr,useRef:nl,useState:function(){return Wr(Br)},useDebugValue:cl,useDeferredValue:function(e){return pl(Qr(),Tr.memoizedState,e)},useTransition:function(){return[Wr(Br)[0],Qr().memoizedState]},useMutableSource:Vr,useSyncExternalStore:Xr,useId:hl,unstable_isNewReconciler:!1},Pl={readContext:Ht,useCallback:fl,useContext:Ht,useEffect:al,useImperativeHandle:sl,useInsertionEffect:il,useLayoutEffect:ol,useMemo:dl,useReducer:$r,useRef:nl,useState:function(){return $r(Br)},useDebugValue:cl,useDeferredValue:function(e){var n=Qr();return null===Tr?n.memoizedState=e:pl(n,Tr.memoizedState,e)},useTransition:function(){return[$r(Br)[0],Qr().memoizedState]},useMutableSource:Vr,useSyncExternalStore:Xr,useId:hl,unstable_isNewReconciler:!1};function El(e,n){try{var t="",r=n;do{t+=It(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l,digest:null}}function Cl(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}function _l(e,n){try{console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}var zl="function"==typeof WeakMap?WeakMap:Map;function Nl(e,n,t){(t=Gt(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){xi||(xi=!0,wi=r),_l(0,n)},t}function Il(e,n,t){(t=Gt(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){_l(0,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){_l(0,n),"function"!=typeof r&&(null===ki?ki=new Set([this]):ki.add(this));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})}),t}function Tl(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new zl;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=no.bind(null,e,n,t),n.then(e,e))}function Rl(e){do{var n;if((n=13===e.tag)&&(n=null===(n=e.memoizedState)||null!==n.dehydrated),n)return e;e=e.return}while(null!==e);return null}function Ol(e,n,t,r,l){return 0==(1&e.mode)?(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=Gt(-1,1)).tag=2,Yt(t,n,1))),t.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var jl=i.ReactCurrentOwner,Ll=!1;function Ml(e,n,t,r){n.child=null===e?pr(n,null,t,r):dr(n,e.child,t,r)}function Dl(e,n,t,r,l){t=t.render;var a=n.ref;return At(n,l),r=Fr(e,n,t,r,a,l),t=Ar(),null===e||Ll?(gt&&t&&dt(n),n.flags|=1,Ml(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ia(e,n,l))}function Ul(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||uo(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=co(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Fl(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Nt)(i,r)&&e.ref===n.ref)return ia(e,n,l)}return n.flags|=1,(e=so(a,r)).ref=n.ref,e.return=n,n.child=e}function Fl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Nt(a,r)&&e.ref===n.ref){if(Ll=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,ia(e,n,l);0!=(131072&e.flags)&&(Ll=!0)}}return Ql(e,n,t,r,l)}function Al(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},fn(ui,oi),oi|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,fn(ui,oi),oi|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,fn(ui,oi),oi|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,fn(ui,oi),oi|=r;return Ml(e,n,l,t),n.child}function Hl(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function Ql(e,n,t,r,l){var a=vn(t)?hn:pn.current;return a=gn(n,a),At(n,l),t=Fr(e,n,t,r,a,l),r=Ar(),null===e||Ll?(gt&&r&&dt(n),n.flags|=1,Ml(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ia(e,n,l))}function Bl(e,n,t,r,l){if(vn(t)){var a=!0;xn(n)}else a=!1;if(At(n,l),null===n.stateNode)aa(e,n),ar(n,t,r),or(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,o=n.memoizedProps;i.props=o;var u=i.context,s=t.contextType;s="object"==typeof s&&null!==s?Ht(s):gn(n,s=vn(t)?hn:pn.current);var c=t.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==r||u!==s)&&ir(n,i,r,s),Vt=!1;var d=n.memoizedState;i.state=d,Zt(n,r,i,l),u=n.memoizedState,o!==r||d!==u||mn.current||Vt?("function"==typeof c&&(tr(n,t,c,r),u=n.memoizedState),(o=Vt||lr(n,t,o,r,d,u,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4194308)):("function"==typeof i.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=u),i.props=r,i.state=u,i.context=s,r=o):("function"==typeof i.componentDidMount&&(n.flags|=4194308),r=!1)}else{i=n.stateNode,qt(e,n),o=n.memoizedProps,s=n.type===n.elementType?o:Tt(n.type,o),i.props=s,f=n.pendingProps,d=i.context,u="object"==typeof(u=t.contextType)&&null!==u?Ht(u):gn(n,u=vn(t)?hn:pn.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==f||d!==u)&&ir(n,i,r,u),Vt=!1,d=n.memoizedState,i.state=d,Zt(n,r,i,l);var m=n.memoizedState;o!==f||d!==m||mn.current||Vt?("function"==typeof p&&(tr(n,t,p,r),m=n.memoizedState),(s=Vt||lr(n,t,s,r,d,m,u)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),i.props=r,i.state=m,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return Wl(e,n,t,r,a,l)}function Wl(e,n,t,r,l,a){Hl(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&wn(n,t,!1),ia(e,n,a);r=n.stateNode,jl.current=n;var o=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=dr(n,e.child,null,a),n.child=dr(n,null,o,a)):Ml(e,n,o,a),n.memoizedState=r.state,l&&wn(n,t,!0),n.child}function $l(e){var n=e.stateNode;n.pendingContext?bn(0,n.pendingContext,n.pendingContext!==n.context):n.context&&bn(0,n.context,!1),br(e,n.containerInfo)}function Vl(e,n,t,r,l){return Ct(),_t(l),n.flags|=256,Ml(e,n,t,r),n.child}var Xl,ql,Gl,Yl,Kl={dehydrated:null,treeContext:null,retryLane:0};function Jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zl(e,n,t){var r,l=n.pendingProps,i=kr.current,o=!1,u=0!=(128&n.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(o=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),fn(kr,1&i),null===e)return wt(n),null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&n.mode)?n.lanes=1:Ue(e)?n.lanes=8:n.lanes=1073741824,null):(u=l.children,e=l.fallback,o?(l=n.mode,o=n.child,u={mode:"hidden",children:u},0==(1&l)&&null!==o?(o.childLanes=0,o.pendingProps=u):o=po(u,l,0,null),e=fo(e,l,t,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=Jl(t),n.memoizedState=Kl,e):ea(n,u));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,n,t,r,l,i,o){if(t)return 256&n.flags?(n.flags&=-257,na(e,n,o,r=Cl(Error(a(422))))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(i=r.fallback,l=n.mode,r=po({mode:"visible",children:r.children},l,0,null),(i=fo(i,l,o,null)).flags|=2,r.return=n,i.return=n,r.sibling=i,n.child=r,0!=(1&n.mode)&&dr(n,e.child,null,o),n.child.memoizedState=Jl(o),n.memoizedState=Kl,i);if(0==(1&n.mode))return na(e,n,o,null);if(Ue(l))return r=Fe(l).digest,na(e,n,o,r=Cl(i=Error(a(419)),r,void 0));if(t=0!=(o&e.childLanes),Ll||t){if(null!==(r=li)){switch(o&-o){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=0!=(l&(r.suspendedLanes|o))?0:l)&&l!==i.retryLane&&(i.retryLane=l,$t(e,l),Oi(r,e,l,-1))}return $i(),na(e,n,o,r=Cl(Error(a(421))))}return De(l)?(n.flags|=128,n.child=e.child,n=ro.bind(null,e),Ae(l,n),null):(e=i.treeContext,Y&&(ht=We(l),mt=n,gt=!0,yt=null,vt=!1,null!==e&&(at[it++]=ut,at[it++]=st,at[it++]=ot,ut=e.id,st=e.overflow,ot=n)),(n=ea(n,r.children)).flags|=4096,n)}(e,n,u,l,r,i,t);if(o){o=l.fallback,u=n.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:l.children};return 0==(1&u)&&n.child!==i?((l=n.child).childLanes=0,l.pendingProps=s,n.deletions=null):(l=so(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?o=so(r,o):(o=fo(o,u,t,null)).flags|=2,o.return=n,l.return=n,l.sibling=o,n.child=l,l=o,o=n.child,u=null===(u=e.child.memoizedState)?Jl(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},o.memoizedState=u,o.childLanes=e.childLanes&~t,n.memoizedState=Kl,l}return e=(o=e.child).sibling,l=so(o,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function ea(e,n){return(n=po({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function na(e,n,t,r){return null!==r&&_t(r),dr(n,e.child,null,t),(e=ea(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function ta(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Ft(e.return,n,t)}function ra(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function la(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Ml(e,n,r.children,t),0!=(2&(r=kr.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ta(e,t,n);else if(19===e.tag)ta(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fn(kr,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===Pr(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),ra(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Pr(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}ra(n,!0,t,null,a);break;case"together":ra(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function aa(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ia(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),fi|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error(a(153));if(null!==n.child){for(t=so(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=so(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function oa(e){e.flags|=4}function ua(e,n){if(null!==e&&e.child===n.child)return!0;if(0!=(16&n.flags))return!1;for(e=n.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}if(q)Xl=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)F(e,t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},ql=function(){},Gl=function(e,n,t,r,l){if((e=e.memoizedProps)!==r){var a=n.stateNode,i=yr(hr.current);t=H(a,t,e,r,l,i),(n.updateQueue=t)&&oa(n)}},Yl=function(e,n,t,r){t!==r&&oa(n)};else if(G){Xl=function(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=Re(a,l.type,l.memoizedProps,l)),F(e,a)}else if(6===l.tag)a=l.stateNode,t&&r&&(a=Oe(a,l.memoizedProps,l)),F(e,a);else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),Xl(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}};var sa=function(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=Re(a,l.type,l.memoizedProps,l)),Ne(e,a)}else if(6===l.tag)a=l.stateNode,t&&r&&(a=Oe(a,l.memoizedProps,l)),Ne(e,a);else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),sa(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}};ql=function(e,n){var t=n.stateNode;if(!ua(e,n)){e=t.containerInfo;var r=ze(e);sa(r,n,!1,!1),t.pendingChildren=r,oa(n),Ie(e,r)}},Gl=function(e,n,t,r,l){var a=e.stateNode,i=e.memoizedProps;if((e=ua(e,n))&&i===r)n.stateNode=a;else{var o=n.stateNode,u=yr(hr.current),s=null;i!==r&&(s=H(o,t,i,r,l,u)),e&&null===s?n.stateNode=a:(a=_e(a,s,t,i,r,n,e,o),A(a,t,r,l,u)&&oa(n),n.stateNode=a,e?oa(n):Xl(a,n,!1,!1))}},Yl=function(e,n,t,r){t!==r?(e=yr(vr.current),t=yr(hr.current),n.stateNode=B(r,e,t,n),oa(n)):n.stateNode=e.stateNode}}else ql=function(){},Gl=function(){},Yl=function(){};function ca(e,n){if(!gt)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fa(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function da(e,n,t){var r=n.pendingProps;switch(pt(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fa(n),null;case 1:case 17:return vn(n.type)&&yn(),fa(n),null;case 3:return t=n.stateNode,Sr(),cn(mn),cn(pn),Cr(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||(Pt(n)?oa(n):null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==yt&&(Di(yt),yt=null))),ql(e,n),fa(n),null;case 5:wr(n),t=yr(vr.current);var l=n.type;if(null!==e&&null!=n.stateNode)Gl(e,n,l,r,t),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(null===n.stateNode)throw Error(a(166));return fa(n),null}if(e=yr(hr.current),Pt(n)){if(!Y)throw Error(a(175));e=$e(n.stateNode,n.type,n.memoizedProps,t,e,n,!vt),n.updateQueue=e,null!==e&&oa(n)}else{var i=U(l,r,t,e,n);Xl(i,n,!1,!1),n.stateNode=i,A(i,l,r,t,e)&&oa(n)}null!==n.ref&&(n.flags|=512,n.flags|=2097152)}return fa(n),null;case 6:if(e&&null!=n.stateNode)Yl(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error(a(166));if(e=yr(vr.current),t=yr(hr.current),Pt(n)){if(!Y)throw Error(a(176));if(e=n.stateNode,t=n.memoizedProps,(r=Ve(e,t,n,!vt))&&null!==(l=mt))switch(l.tag){case 3:en(l.stateNode.containerInfo,e,t,0!=(1&l.mode));break;case 5:nn(l.type,l.memoizedProps,l.stateNode,e,t,0!=(1&l.mode))}r&&oa(n)}else n.stateNode=B(r,e,t,n)}return fa(n),null;case 13:if(cn(kr),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(gt&&null!==ht&&0!=(1&n.mode)&&0==(128&n.flags))Et(),Ct(),n.flags|=98560,l=!1;else if(l=Pt(n),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(a(318));if(!Y)throw Error(a(344));if(!(l=null!==(l=n.memoizedState)?l.dehydrated:null))throw Error(a(317));Xe(l,n)}else Ct(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;fa(n),l=!1}else null!==yt&&(Di(yt),yt=null),l=!0;if(!l)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,n):((t=null!==r)!=(null!==e&&null!==e.memoizedState)&&t&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&kr.current)?0===si&&(si=3):$i())),null!==n.updateQueue&&(n.flags|=4),fa(n),null);case 4:return Sr(),ql(e,n),null===e&&J(n.stateNode.containerInfo),fa(n),null;case 10:return Ut(n.type._context),fa(n),null;case 19:if(cn(kr),null===(l=n.memoizedState))return fa(n),null;if(r=0!=(128&n.flags),null===(i=l.rendering))if(r)ca(l,!1);else{if(0!==si||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(i=Pr(e))){for(n.flags|=128,ca(l,!1),null!==(e=i.updateQueue)&&(n.updateQueue=e,n.flags|=4),n.subtreeFlags=0,e=t,t=n.child;null!==t;)l=e,(r=t).flags&=14680066,null===(i=r.alternate)?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=i.childLanes,r.lanes=i.lanes,r.child=i.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=i.memoizedProps,r.memoizedState=i.memoizedState,r.updateQueue=i.updateQueue,r.type=i.type,l=i.dependencies,r.dependencies=null===l?null:{lanes:l.lanes,firstContext:l.firstContext}),t=t.sibling;return fn(kr,1&kr.current|2),n.child}e=e.sibling}null!==l.tail&&Qn()>vi&&(n.flags|=128,r=!0,ca(l,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=Pr(i))){if(n.flags|=128,r=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),ca(l,!0),null===l.tail&&"hidden"===l.tailMode&&!i.alternate&&!gt)return fa(n),null}else 2*Qn()-l.renderingStartTime>vi&&1073741824!==t&&(n.flags|=128,r=!0,ca(l,!1),n.lanes=4194304);l.isBackwards?(i.sibling=n.child,n.child=i):(null!==(e=l.last)?e.sibling=i:n.child=i,l.last=i)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Qn(),n.sibling=null,e=kr.current,fn(kr,r?1&e|2:1&e),n):(fa(n),null);case 22:case 23:return Hi(),t=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==t&&(n.flags|=8192),t&&0!=(1&n.mode)?0!=(1073741824&oi)&&(fa(n),q&&6&n.subtreeFlags&&(n.flags|=8192)):fa(n),null;case 24:case 25:return null}throw Error(a(156,n.tag))}function pa(e,n){switch(pt(n),n.tag){case 1:return vn(n.type)&&yn(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Sr(),cn(mn),cn(pn),Cr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return wr(n),null;case 13:if(cn(kr),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(a(340));Ct()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return cn(kr),null;case 4:return Sr(),null;case 10:return Ut(n.type._context),null;case 22:case 23:return Hi(),null;default:return null}}var ma=!1,ha=!1,ga="function"==typeof WeakSet?WeakSet:Set,va=null;function ya(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){eo(e,n,t)}else t.current=null}function ba(e,n,t){try{t()}catch(t){eo(e,n,t)}}var Sa=!1;function xa(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&ba(n,t,a)}l=l.next}while(l!==r)}}function wa(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function ka(e){var n=e.ref;if(null!==n){var t=e.stateNode;e=5===e.tag?O(t):t,"function"==typeof n?n(e):n.current=e}}function Pa(e){var n=e.alternate;null!==n&&(e.alternate=null,Pa(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(n=e.stateNode)&&ee(n),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ea(e){return 5===e.tag||3===e.tag||4===e.tag}function Ca(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ea(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function _a(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?ye(t,e,n):de(t,e);else if(4!==r&&null!==(e=e.child))for(_a(e,n,t),e=e.sibling;null!==e;)_a(e,n,t),e=e.sibling}function za(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?ve(t,e,n):fe(t,e);else if(4!==r&&null!==(e=e.child))for(za(e,n,t),e=e.sibling;null!==e;)za(e,n,t),e=e.sibling}var Na=null,Ia=!1;function Ta(e,n,t){for(t=t.child;null!==t;)Ra(e,n,t),t=t.sibling}function Ra(e,n,t){if(qn&&"function"==typeof qn.onCommitFiberUnmount)try{qn.onCommitFiberUnmount(Xn,t)}catch(e){}switch(t.tag){case 5:ha||ya(t,n);case 6:if(q){var r=Na,l=Ia;Na=null,Ta(e,n,t),Ia=l,null!==(Na=r)&&(Ia?Se(Na,t.stateNode):be(Na,t.stateNode))}else Ta(e,n,t);break;case 18:q&&null!==Na&&(Ia?Je(Na,t.stateNode):Ke(Na,t.stateNode));break;case 4:q?(r=Na,l=Ia,Na=t.stateNode.containerInfo,Ia=!0,Ta(e,n,t),Na=r,Ia=l):(G&&(r=t.stateNode.containerInfo,l=ze(r),Te(r,l)),Ta(e,n,t));break;case 0:case 11:case 14:case 15:if(!ha&&null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&ba(t,n,i),l=l.next}while(l!==r)}Ta(e,n,t);break;case 1:if(!ha&&(ya(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){eo(t,n,e)}Ta(e,n,t);break;case 21:Ta(e,n,t);break;case 22:1&t.mode?(ha=(r=ha)||null!==t.memoizedState,Ta(e,n,t),ha=r):Ta(e,n,t);break;default:Ta(e,n,t)}}function Oa(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new ga),n.forEach((function(n){var r=lo.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function ja(e,n){var t=n.deletions;if(null!==t)for(var r=0;r";case Ba:return":has("+(Ya(e)||"")+")";case Wa:return'[role="'+e.value+'"]';case Va:return'"'+e.value+'"';case $a:return'[data-testname="'+e.value+'"]';default:throw Error(a(365))}}function Ka(e,n){var t=[];e=[e,0];for(var r=0;rl&&(l=o),r&=~i}if(r=l,10<(r=(120>(r=Qn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Za(r/1960))-r)){e.timeoutHandle=W(Ki.bind(null,e,hi,yi),r);break}Ki(e,hi,yi);break;default:throw Error(a(329))}}}return ji(e,Qn()),e.callbackNode===t?Li.bind(null,e):null}function Mi(e,n){var t=mi;return e.current.memoizedState.isDehydrated&&(Qi(e,n).flags|=256),2!==(e=Vi(e,n))&&(n=hi,hi=t,null!==n&&Di(n)),e}function Di(e){null===hi?hi=e:hi.push.apply(hi,e)}function Ui(e,n){for(n&=~pi,n&=~di,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0e?16:e,null===Ei)var r=!1;else{if(e=Ei,Ei=null,Ci=0,0!=(6&ri))throw Error(a(331));var l=ri;for(ri|=4,va=e.current;null!==va;){var i=va,o=i.child;if(0!=(16&va.flags)){var u=i.deletions;if(null!==u){for(var s=0;sQn()-gi?Qi(e,0):pi|=t),ji(e,n)}function to(e,n){0===n&&(0==(1&e.mode)?n=1:(n=_n,0==(130023424&(_n<<=1))&&(_n=4194304)));var t=Ti();null!==(e=$t(e,n))&&(jn(e,n,t),ji(e,t))}function ro(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),to(e,t)}function lo(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(n),to(e,t)}function ao(e,n){return Un(e,n)}function io(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oo(e,n,t,r){return new io(e,n,t,r)}function uo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function so(e,n){var t=e.alternate;return null===t?((t=oo(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function co(e,n,t,r,l,i){var o=2;if(r=e,"function"==typeof e)uo(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case s:return fo(t.children,l,i,n);case c:o=8,l|=8;break;case f:return(e=oo(12,t,n,2|l)).elementType=f,e.lanes=i,e;case h:return(e=oo(13,t,n,l)).elementType=h,e.lanes=i,e;case v:return(e=oo(19,t,n,l)).elementType=v,e.lanes=i,e;case S:return po(t,l,i,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case d:o=10;break e;case p:o=9;break e;case m:o=11;break e;case y:o=14;break e;case b:o=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(n=oo(o,t,n,l)).elementType=e,n.type=r,n.lanes=i,n}function fo(e,n,t,r){return(e=oo(7,e,r,n)).lanes=t,e}function po(e,n,t,r){return(e=oo(22,e,r,n)).elementType=S,e.lanes=t,e.stateNode={isHidden:!1},e}function mo(e,n,t){return(e=oo(6,e,null,n)).lanes=t,e}function ho(e,n,t){return(n=oo(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function go(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=V,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=On(0),this.expirationTimes=On(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=On(0),this.identifierPrefix=r,this.onRecoverableError=l,Y&&(this.mutableSourceEagerHydrationData=null)}function vo(e,n,t,r,l,a,i,o,u){return e=new go(e,n,t,o,u),1===n?(n=1,!0===a&&(n|=8)):n=0,a=oo(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xt(a),e}function yo(e){if(!e)return dn;e:{if(E(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(vn(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(null!==n);throw Error(a(171))}if(1===e.tag){var t=e.type;if(vn(t))return Sn(e,t,n)}return n}function bo(e){var n=e._reactInternals;if(void 0===n){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=z(n))?null:e.stateNode}function So(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t=c&&i>=d&&l<=f&&o<=p){e.splice(n,1);break}if(!(r!==c||t.width!==s.width||po)){d>i&&(s.height+=d-i,s.y=i),pl)){c>r&&(s.width+=c-r,s.x=r),ft&&(t=o)),o ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},n.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?O(e.child.stateNode):e.child.stateNode:null},n.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:i.ReactCurrentDispatcher,findHostInstanceByFiber:wo,findFiberByHostInstance:e.findFiberByHostInstance||ko,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled||!n.supportsFiber)e=!0;else{try{Xn=n.inject(e),qn=n}catch(e){}e=!!n.checkDCE}}return e},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(e,n,t,r){if(!re)throw Error(a(363));e=Ja(e,n);var l=ce(e,t,r).disconnect;return{disconnect:function(){l()}}},n.registerMutableSourceForHydration=function(e,n){var t=n._getVersion;t=t(n._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[n,t]:e.mutableSourceEagerHydrationData.push(n,t)},n.runWithPriority=function(e,n){var t=Mn;try{return Mn=e,n()}finally{Mn=t}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(e,n,t,r){var l=n.current,a=Ti(),i=Ri(l);return t=yo(t),null===n.context?n.context=t:n.pendingContext=t,(n=Gt(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),null!==(e=Yt(l,n,i))&&(Oi(e,l,i,a),Kt(e,l,i)),i},n}),ue);var he,ge=(he=ce)&&he.__esModule&&Object.prototype.hasOwnProperty.call(he,"default")?he.default:he,ve={name:"root",private:!0,workspaces:["packages/*"],scripts:{build:"nx run-many --target=build --all --parallel","build:force":"nx run-many --target=build --all --parallel --skip-nx-cache","build:docs":"nx run @pixi/react-docs:deploy",clean:"rimraf packages/*/dist packages/*/build",lint:"eslint .",prepare:"husky install",prerelease:"./scripts/checkReleaseBranch.mjs && npm run lint && npm run test:force && npm run build:force",release:"lerna publish --no-private",test:"nx run-many --target=test --all --parallel","test:force":"nx run-many --target=test --all --parallel --skip-nx-cache","test:ci":"nx run-many --target=test:ci --all --parallel","test:ci:force":"nx run-many --target=test:ci --all --parallel --skip-nx-cache","test:types":"nx run-many --target=test:types --all --parallel","test:types:force":"nx run-many --target=test:types --all --parallel --skip-nx-cache"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,js,mjs}":["eslint --cache --fix"]},resolutions:{"get-pkg-repo":"4.1.1","hosted-git-info":"^2.1.4"},dependencies:{"@babel/runtime":"^7.14.8","@pixi/app":"^7.1.1","@pixi/constants":"^7.1.1","@pixi/core":"^7.1.1","@pixi/display":"^7.1.1","@pixi/extensions":"^7.1.1","@pixi/graphics":"^7.1.1","@pixi/math":"^7.1.1","@pixi/mesh":"^7.1.1","@pixi/mesh-extras":"^7.1.1","@pixi/particle-container":"^7.1.1","@pixi/sprite":"^7.1.1","@pixi/sprite-animated":"^7.1.1","@pixi/sprite-tiling":"^7.1.1","@pixi/text":"^7.1.1","@pixi/text-bitmap":"^7.1.1","@pixi/ticker":"^7.1.1","@react-spring/animated":"^9.6.1","@react-spring/types":"^9.6.1",react:"^18.0.0","react-dom":"^18.0.0","react-reconciler":"0.29.0","react-spring":"^9.6.1"},devDependencies:{"@babel/cli":"^7.20.7","@babel/core":"^7.20.7","@babel/eslint-parser":"^7.19.1","@babel/plugin-transform-runtime":"^7.19.6","@babel/preset-env":"^7.20.2","@babel/preset-react":"^7.18.6","@nrwl/nx-cloud":"latest","@pixi/eslint-config":"^4.0.1","@rollup/plugin-alias":"^4.0.2","@rollup/plugin-babel":"^6.0.3","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-replace":"^5.0.2","@rollup/plugin-terser":"^0.2.1","@rollup/plugin-typescript":"^10.0.1","@types/jest":"^29.2.4","@types/react":"17.0.15","@types/react-dom":"17.0.9","@types/react-reconciler":"0.28.2","babel-jest":"^29.3.1","babel-plugin-module-resolver":"4.1.0","cross-env":"^7.0.3",eslint:"^8.29.0","eslint-plugin-react":"^7.31.11",husky:"^8.0.2",jest:"^29.3.1","jest-environment-jsdom":"^29.3.1","jest-extended":"^3.2.0","jest-watch-typeahead":"^2.2.1",lerna:"^6.0.3","lint-staged":"^13.1.0",nx:"15.3.0",rimraf:"^3.0.2",rollup:"^3.7.0","rollup-plugin-filesize":"^9.1.2","rollup-plugin-visualizer":"^5.9.0","ts-jest":"^29.0.3","ts-node":"^10.9.1",typescript:"^4.9.4"}},ye={},be={get exports(){return ye},set exports(e){ye=e}};(function(){var e,n,t,r,l,a;"undefined"!=typeof performance&&null!==performance&&performance.now?be.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(be.exports=function(){return(e()-l)/1e6},n=process.hrtime,r=(e=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*process.uptime(),l=r-a):Date.now?(be.exports=function(){return Date.now()-t},t=Date.now()):(be.exports=function(){return(new Date).getTime()-t},t=(new Date).getTime())}).call(_);var Se,xe={},we={};({get exports(){return xe},set exports(e){xe=e}}).exports=(Se||(Se=1,we.ConcurrentRoot=1,we.ContinuousEventPriority=4,we.DefaultEventPriority=16,we.DiscreteEventPriority=1,we.IdleEventPriority=536870912,we.LegacyRoot=0),we);var ke={};function Pe(e,n){e.addChild&&(e.addChild(n),"function"==typeof n.didMount&&n.didMount(n,e))}function Ee(e,n){var t,r,l;null===(t=e.willUnmount)||void 0===t||t.call(e,e,n),!1!==(null===(r=e.config)||void 0===r?void 0:r.destroyChildren)&&null!==(l=e.children)&&void 0!==l&&l.length&&E(e.children).forEach((function(n){Ee(n,e)}))}function Ce(e,n){var t;Ee(n,e),e.removeChild(n);var r=null!==(t=n.config)&&void 0!==t?t:{},l=r.destroy,a=void 0===l||l,i=r.destroyChildren,o=void 0===i||i,u=r.destroyTexture,s=void 0!==u&&u,c=r.destroyBaseTexture,f=void 0!==c&&c;a&&n.destroy({children:o,texture:s,baseTexture:f})}function _e(e,n,t){C(n!==t,"pixi-react: PixiFiber cannot insert node before itself"),-1!==e.children.indexOf(n)&&e.removeChild(n);var r=e.getChildIndex(t);e.addChildAt(n,r)}var ze=null,Ne=ge({getRootHostContext:function(){return ke},getChildHostContext:function(e){return e},getChildHostContextForEventComponent:function(e){return e},getPublicInstance:function(e){return e},getCurrentEventPriority:function(){return function(){var e,n;if("undefined"==typeof window)return xe.DefaultEventPriority;switch(null===(e=window)||void 0===e||null===(n=e.event)||void 0===n?void 0:n.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return xe.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return xe.ContinuousEventPriority;default:return xe.DefaultEventPriority}}()},prepareForCommit:function(){return null},resetAfterCommit:function(){},createInstance:function(e){var n,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=re[e];if("function"==typeof a&&(n=a(l,r)),!n){var i=le[e];i&&((n=i.create(r,{root:l})).didMount=i.didMount?i.didMount.bind(n):void 0,n.willUnmount=i.willUnmount?i.willUnmount.bind(n):void 0,n.applyProps=i.applyProps?i.applyProps.bind(n):void 0,n.config=i.config)}return n&&(n.__reactpixi={root:l},("function"==typeof(null===(t=n)||void 0===t?void 0:t.applyProps)?n.applyProps:Q)(n,{},r)),n},hideInstance:function(e){e.visible=!1},unhideInstance:function(e,n){var t=null==n||!n.hasOwnProperty("visible")||n.visible;e.visible=t},finalizeInitialChildren:function(e,n,t){return!1},prepareUpdate:function(e,n,t,r,l,a){return ze=function(e,n,t,r){var l=null;for(var a in t)!r.hasOwnProperty(a)&&t.hasOwnProperty(a)&&null!==t[a]&&(a===D||(l||(l=[]),l.push(a,null)));for(var i in r){var o=r[i],u=null!==t?t[i]:void 0;!r.hasOwnProperty(i)||o===u||null===o&&null===u||i===D||(l||(l=[]),l.push(i,o))}return l}(0,0,t,r)},shouldSetTextContent:function(e,n){return!1},shouldDeprioritizeSubtree:function(e,n){var t=void 0===n.alpha||n.alpha>0,r=void 0===n.renderable||!0===n.renderable,l=void 0===n.visible||!0===n.visible;return!(t&&r&&l)},createTextInstance:function(e,n,t){C(!1,'pixi-react: Error trying to add text node "'.concat(e,'"'),"PixiFiber does not support text nodes as children of a Pixi component. To pass a string value to your component, use a property other than children. If you wish to display some text, you can use <Text text={string} /> instead.")},unhideTextInstance:function(e,n){},mountEventComponent:function(){},updateEventComponent:function(){},handleEventTarget:function(){},scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,warnsIfNotActing:!1,now:ye,isPrimaryRenderer:!1,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,supportsMicrotasks:!0,scheduleMicrotask:queueMicrotask,appendInitialChild:function(){for(var e,n,t=arguments.length,r=new Array(t),l=0;l Element`"))}})},Ge={width:800,height:600,onMount:Xe,onUnmount:Xe,raf:!0,renderOnComponentChange:!0},Ye=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Fe(e,n)}(l,g().Component);var n,t,r=function(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=Ae(e);if(n){var l=Ae(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return function(e,n){if(n&&("object"===x(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return Ue(e)}(this,t)}}(l);function l(){var e;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l);for(var n=arguments.length,t=new Array(n),a=0;a1&&void 0!==arguments[1])||arguments[1],t=Je();C("function"==typeof e,"`useTick` needs a callback function."),C(t instanceof v.M,"No Context found with `%s`. Make sure to wrap component with `%s`","PIXI.Application","AppProvider");var r=(0,h.useRef)(null);(0,h.useEffect)((function(){r.current=e}),[e]),(0,h.useEffect)((function(){if(n){var e=function(e){return r.current.apply(t.ticker,[e,t.ticker])};return t.ticker.add(e),function(){t.ticker&&t.ticker.remove(e)}}}),[n])}function en(e,n,t){return en=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,n,t){var r=[null];r.push.apply(r,n);var l=new(Function.bind.apply(e,r));return t&&Fe(l,t.prototype),l},en.apply(null,arguments)}var nn=["children","apply"];function tn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function rn(e){for(var n=1;n{e.exports=t(8810)}}]);