PageSourceSearch

https://web.chutcha.net/_next/static/chunks/7223-5d59cb25ead5a5db.js

js chutcha.net collected 2026-10-01 23:44:34 UTC 143,535 bytes, 4 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="83ff8c34-18bf-4af1-996e-ccfbcacc5f0b",t._sentryDebugIdIdentifier="sentry-dbid-83ff8c34-18bf-4af1-996e-ccfbcacc5f0b")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7223],{54367:function(){},8704:function(t,e,n){"use strict";let r,i,o,a,s;n.d(e,{R:function(){return iS}});var c,u,l,f,d,h,p,v,y,g,m,b,S,w,x,E,O,k,_=n(67294);n(42473);var T="undefined"!=typeof window&&window.document&&window.document.createElement?_.useLayoutEffect:_.useEffect;"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();var P=n(73935),R=function(t){var e,n=t.children,r=t.type,i=void 0===r?"reach-portal":r,o=(0,_.useRef)(null),a=(0,_.useRef)(null),s=(e=(0,_.useState)(Object.create(null))[1],(0,_.useCallback)(function(){e(Object.create(null))},[]));return T(function(){if(o.current){var t=o.current.ownerDocument;return a.current=null==t?void 0:t.createElement(i),t.body.appendChild(a.current),s(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}},[i,s]),a.current?(0,P.createPortal)(n,a.current):(0,_.createElement)("span",{ref:o})},C=function(){return(C=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function N(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function j(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function D(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var I={},L="xstate.guard";(c=b||(b={})).Start="xstate.start",c.Stop="xstate.stop",c.Raise="xstate.raise",c.Send="xstate.send",c.Cancel="xstate.cancel",c.NullEvent="",c.Assign="xstate.assign",c.After="xstate.after",c.DoneState="done.state",c.DoneInvoke="done.invoke",c.Log="xstate.log",c.Init="xstate.init",c.Invoke="xstate.invoke",c.ErrorExecution="error.execution",c.ErrorCommunication="error.communication",c.ErrorPlatform="error.platform",c.ErrorCustom="xstate.error",c.Update="xstate.update",c.Pure="xstate.pure",c.Choose="xstate.choose",(u=S||(S={})).Parent="#_parent",u.Internal="#_internal";var M=b.Start,V=b.Stop,z=b.Raise,F=b.Send,B=b.Cancel,H=b.NullEvent,G=b.Assign;b.After,b.DoneState;var q=b.Log,Z=b.Init,K=b.Invoke;b.ErrorExecution;var $=b.ErrorPlatform,U=b.ErrorCustom,W=b.Update,X=b.Choose,J=b.Pure;function Q(t,e,n){void 0===n&&(n=".");var r=te(t,n),i=te(e,n);return tv(i)?!!tv(r)&&i===r:tv(r)?r in i:Object.keys(r).every(function(t){return t in i&&Q(r[t],i[t])})}function Y(t){try{return tv(t)||"number"==typeof t?"".concat(t):t.type}catch(t){throw Error("Events must be strings or objects with a string event.type property.")}}function tt(t,e){try{if(th(t))return t;return t.toString().split(e)}catch(e){throw Error("'".concat(t,"' is not a valid state path."))}}function te(t,e){return"object"==typeof t&&"value"in t&&"context"in t&&"event"in t&&"_event"in t?t.value:th(t)?tn(t):"string"!=typeof t?t:tn(tt(t,e))}function tn(t){if(1===t.length)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function tr(t,e){for(var n={},r=Object.keys(t),i=0;i<r.length;i++){var o=r[i];n[o]=e(t[o],o,t,i)}return n}function ti(t,e,n){var r,i,o={};try{for(var a=j(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];n(u)&&(o[c]=e(u,c,t))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var to=function(t){return function(e){var n,r,i=e;try{for(var o=j(t),a=o.next();!a.done;a=o.next())i=i[a.value]}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function ta(t){return t?tv(t)?[[t]]:ts(Object.keys(t).map(function(e){var n=t[e];return"string"==typeof n||n&&Object.keys(n).length?ta(t[e]).map(function(t){return[e].concat(t)}):[[e]]})):[[]]}function ts(t){var e;return(e=[]).concat.apply(e,D([],A(t),!1))}function tc(t){return void 0===t?[]:th(t)?t:[t]}function tu(t,e,n){if(tp(t))return t(e,n.data);var r,i,o={};try{for(var a=j(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];tp(u)?o[c]=u(e,n.data):o[c]=u}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function tl(t){return!!(t instanceof Promise||null!==t&&(tp(t)||"object"==typeof t)&&tp(t.then))}function tf(t,e,n,r){return t?n.reduce(function(t,n){var i,o,a=n.assignment,s={state:r,action:n,_event:e},c={};if(tp(a))c=a(t,e.data,s);else try{for(var u=j(Object.keys(a)),l=u.next();!l.done;l=u.next()){var f=l.value,d=a[f];c[f]=tp(d)?d(t,e.data,s):d}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return Object.assign({},t,c)},t):t}var td=function(){};function th(t){return Array.isArray(t)}function tp(t){return"function"==typeof t}function tv(t){return"string"==typeof t}function ty(t,e){return t?tv(t)?{type:L,name:t,predicate:e?e[t]:void 0}:tp(t)?{type:L,name:t.name,predicate:t}:t:void 0}var tg="function"==typeof Symbol&&Symbol.observable||"@@observable";function tm(t){return!!t&&"__xstatenode"in t}function tb(t,e){return tv(t)||"number"==typeof t?C({type:t},e):t}function tS(t,e){if(!tv(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=tb(t);return C({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function tw(t,e){return(th(e)?e:[e]).map(function(e){return void 0===e||"string"==typeof e||tm(e)?{target:e,event:t}:C(C({},e),{event:t})})}function tx(t,e,n,r,i){var o=t.options.guards,a={state:i,cond:e,_event:r};
1if(e.type===L)return((null==o?void 0:o[e.name])||e.predicate)(n,r.data,a);var s=null==o?void 0:o[e.type];if(!s)throw Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return s(n,r.data,a)}function tE(t){return"string"==typeof t?{type:t}:t}function tO(t,e,n){var r=function(){},i="object"==typeof t,o=i?t:null;return{next:((i?t.next:t)||r).bind(o),error:((i?t.error:e)||r).bind(o),complete:((i?t.complete:n)||r).bind(o)}}function tk(t,e){return"".concat(t,":invocation[").concat(e,"]")}function t_(t){return(t.type===z||t.type===F&&t.to===S.Internal)&&"number"!=typeof t.delay}(w={})[tg]=function(){return this},w[Symbol.observable]=function(){return this};var tT=function(t){return"atomic"===t.type||"final"===t.type};function tP(t){return Object.keys(t.states).map(function(e){return t.states[e]})}function tR(t){return tP(t).filter(function(t){return"history"!==t.type})}function tC(t,e){var n,r,i,o,a,s,c,u,l=tN(new Set(t)),f=new Set(e);try{for(var d=j(f),h=d.next();!h.done;h=d.next())for(var p=h.value,v=p.parent;v&&!f.has(v);)f.add(v),v=v.parent}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}var y=tN(f);try{for(var g=j(f),m=g.next();!m.done;m=g.next()){var p=m.value;if("compound"!==p.type||y.get(p)&&y.get(p).length){if("parallel"===p.type)try{for(var b=(a=void 0,j(tR(p))),S=b.next();!S.done;S=b.next()){var w=S.value;f.has(w)||(f.add(w),l.get(w)?l.get(w).forEach(function(t){return f.add(t)}):w.initialStateNodes.forEach(function(t){return f.add(t)}))}}catch(t){a={error:t}}finally{try{S&&!S.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else l.get(p)?l.get(p).forEach(function(t){return f.add(t)}):p.initialStateNodes.forEach(function(t){return f.add(t)})}}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var x=j(f),E=x.next();!E.done;E=x.next())for(var p=E.value,v=p.parent;v&&!f.has(v);)f.add(v),v=v.parent}catch(t){c={error:t}}finally{try{E&&!E.done&&(u=x.return)&&u.call(x)}finally{if(c)throw c.error}}return f}function tN(t){var e,n,r=new Map;try{for(var i=j(t),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function tj(t,e){return Array.isArray(t)?t.some(function(t){return t===e}):t instanceof Set&&t.has(e)}function tA(t,e){return"compound"===e.type?tR(e).some(function(e){return"final"===e.type&&tj(t,e)}):"parallel"===e.type&&tR(e).every(function(e){return tA(t,e)})}function tD(t){return new Set(ts(t.map(function(t){return t.tags})))}var tI=tS({type:Z});function tL(t,e){return e&&e[t]||void 0}function tM(t,e){var n;if(tv(t)||"number"==typeof t){var r=tL(t,e);n=tp(r)?{type:t,exec:r}:r||{type:t,exec:void 0}}else if(tp(t))n={type:t.name||t.toString(),exec:t};else{var r=tL(t.type,e);if(tp(r))n=C(C({},t),{exec:r});else if(r){var i=r.type||t.type;n=C(C(C({},r),t),{type:i})}else n=t}return n}var tV=function(t,e){return t?(th(t)?t:[t]).map(function(t){return tM(t,e)}):[]};function tz(t){var e=tM(t);return C(C({id:tv(t)?t:e.id},e),{type:e.type})}function tF(t,e){var n="".concat(b.DoneState,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}function tB(t,e){var n="".concat(b.DoneInvoke,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}function tH(t,e){var n="".concat(b.ErrorPlatform,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}var tG=function(t){var e,n,r=[];try{for(var i=j(t),o=i.next();!o.done;o=i.next())for(var a=o.value,s=0;s<a.actions.length;){if(a.actions[s].type===G){r.push(a.actions[s]),a.actions.splice(s,1);continue}s++}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r};function tq(t,e,n,r,i,o,a){void 0===a&&(a=!1);var s=a?[]:tG(i),c=s.length?tf(n,r,s,e):n,u=a?[n]:void 0,l=[];return[ts(i.map(function(i){var s,f,d=[];try{for(var h=j(i.actions),p=h.next();!p.done;p=h.next()){var v=p.value,y=function(i,s){var f;switch(s.type){case z:var d=function(t,e,n,r){var i,o={_event:n}
1,a=tS(tp(t.event)?t.event(e,n.data,o):t.event);if(tv(t.delay)){var s=r&&r[t.delay];i=tp(s)?s(e,n.data,o):s}else i=tp(t.delay)?t.delay(e,n.data,o):t.delay;return C(C({},t),{type:z,_event:a,delay:i})}(s,c,r,t.options.delays);return o&&"number"==typeof d.delay&&o(d,c,r),d;case F:var h=function(t,e,n,r){var i,o={_event:n},a=tS(tp(t.event)?t.event(e,n.data,o):t.event);if(tv(t.delay)){var s=r&&r[t.delay];i=tp(s)?s(e,n.data,o):s}else i=tp(t.delay)?t.delay(e,n.data,o):t.delay;var c=tp(t.to)?t.to(e,n.data,o):t.to;return C(C({},t),{to:c,_event:a,event:a.data,delay:i})}(s,c,r,t.options.delays);return o&&h.to!==S.Internal&&("entry"===i?l.push(h):o(h,c,r)),h;case q:var p,v=(p=c,C(C({},s),{value:tv(s.expr)?s.expr:s.expr(p,r.data,{_event:r})}));return null==o||o(v,c,r),v;case X:var y=null===(f=s.conds.find(function(n){var i=ty(n.cond,t.options.guards);return!i||tx(t,i,c,r,o?void 0:e)}))||void 0===f?void 0:f.actions;if(!y)return[];var g=A(tq(t,e,c,r,[{type:i,actions:tV(tc(y),t.options.actions)}],o,a),2),m=g[0];return c=g[1],null==u||u.push(c),m;case J:var y=s.get(c,r.data);if(!y)return[];var w=A(tq(t,e,c,r,[{type:i,actions:tV(tc(y),t.options.actions)}],o,a),2),x=w[0];return c=w[1],null==u||u.push(c),x;case V:var E,O,v=(E=c,O=tp(s.activity)?s.activity(E,r.data):s.activity,{type:b.Stop,activity:"string"==typeof O?{id:O}:O});return null==o||o(v,n,r),v;case G:c=tf(c,r,[s],o?void 0:e),null==u||u.push(c);break;default:var k=tM(s,t.options.actions),_=k.exec;if(o)o(k,c,r);else if(_&&u){var T=u.length-1;k=C(C({},k),{exec:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];_.apply(void 0,D([u[T]],A(e),!1))}})}return k}}(i.type,v);y&&(d=d.concat(y))}}catch(t){s={error:t}}finally{try{p&&!p.done&&(f=h.return)&&f.call(h)}finally{if(s)throw s.error}}return l.forEach(function(t){o(t,c,r)}),l.length=0,d})),c]}var tZ=function(){function t(t){var e,n,r=this;this.actions=[],this.activities=I,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||I,this.meta=(void 0===(e=t.configuration)&&(e=[]),e.reduce(function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t},{})),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=null!==(n=Array.isArray(t.tags)?new Set(t.tags):t.tags)&&void 0!==n?n:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return D([],A(new Set(ts(D([],A(r.configuration.map(function(t){return t.ownEvents})),!1)))),!1)}})}return t.from=function(e,n){return e instanceof t?e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e:new t({value:e,context:n,_event:tI,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){return e instanceof t?e.actions.length?new t({value:e.value,context:n,_event:tI,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}}):e:t.from(e,n)},t.prototype.toStrings=function(t,e){var n=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),tv(t))return[t];var r=Object.keys(t);return r.concat.apply(r,D([],A(r.map(function(r){return n.toStrings(t[r],e).map(function(t){return r+e+t})})),!1))},t.prototype.toJSON=function(){this.configuration,this.transitions;var t=this.tags;this.machine;var e=N(this,["configuration","transitions","tags","machine"]);return C(C({},e),{tags:Array.from(t)})},t.prototype.matches=function(t){return Q(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){td(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var e,n=null===(e=this.machine)||void 0===e?void 0:e.getTransitionData(this,t);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some(function(t){return void 0!==t.target||t.actions.length})},t}(),tK=_.useLayoutEffect,t$={deferEvents:!1},tU=function(){function t(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=C(C({},t$),t)}return t.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},t.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(0!==this.queue.length)throw Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},t.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(t){throw this.clear(),t}finally{this.processingEvent=!1}},t}(),tW=[],tX=function(t,e){tW.push(t);var n=e(t);return tW.pop(),n};function tJ(t){var e;return(e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}})[tg]=function(){return this},e}function tQ(t,e,n){var r=tJ(e);if(r.deferred=!0,tm(t)){var i=r.state=tX(void 0,function(){return(n?t.withContext(n):t).initialState});r.getSnapshot=function(){return i}}return r}var tY=new Map,t0=0,t1={bookId:function(){return"x:".concat(t0++)},register:function(t,e){return tY.set(t,e),t},get:function(t){return tY.get(t)},free:function(t){tY.delete(t)}};function t2(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0}var t5={sync:!1,autoForward:!1};(l=x||(x={}))[l.NotStarted=0]="NotStarted",l[l.Running=1]="Running",l[l.Stopped=2]="Stopped";var t3=function(){function t(e,n){void 0===n&&(n=t.defaultOptions);var r=this;this.machine=e,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=x.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(t,e){if(th(t))return r.batch(t),r.state;var n=tS(tb(t,e));if(r.status===x.Stopped)return r.state;if(r.status!==x.Running&&!r.options.deferEvents)throw Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule(function(){r.forward(n);var t=r._nextState(n);r.update(t,n)}),r._state},this.sendTo=function(t,e,n){var i=r.parent&&(e===S.Parent||r.parent.id===e),o=i?r.parent:tv(e)?e===S.Internal?r:r.children.get(e)||t1.get(e):e&&"function"==typeof e.send?e:void 0;if(!o){if(!i)throw Error("Unable to send event to child '".concat(e,"' from service '").concat(r.id,"'."));return}if("machine"in o){if(r.status!==x.Stopped||r.parent!==o||r.state.done){var a=C(C({},t),{name:t.name===U?"".concat(tH(r.id)):t.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([o,a]):o.send(a)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([o,t.data]):o.send(t.data)},this._exec=function(t,e,n,i){void 0===i&&(i=r.machine.options.actions);var o=t.exec||tL(t.type,i),a=tp(o)?o:o?o.exec:t.exec;if(a)try{return a(e,n.data,r.machine.config.predictableActionArguments?{action:t,_event:n}:{action:t,state:r.state,_event:n})}catch(t){throw r.parent&&r.parent.send({type:"xstate.error",data:t}),t}switch(t.type){case z:r.defer(t);break;case F:if("number"==typeof t.delay){r.defer(t);return}t.to?r.sendTo(t._event,t.to,n===tI):r.send(t._event);break;case B:r.cancel(t.sendId);break;case M:if(r.status!==x.Running)return;var s=t.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[s.id||s.type])break;
1if(s.type===b.Invoke){var c=tE(s.src),u=r.machine.options.services?r.machine.options.services[c.type]:void 0,l=s.id,f=s.data,d="autoForward"in s?s.autoForward:!!s.forward;if(!u)return;var h=f?tu(f,e,n):void 0;if("string"==typeof u)return;var p=tp(u)?u(e,n.data,{data:h,src:c,meta:s.meta}):u;if(!p)return;var v=void 0;tm(p)&&(p=h?p.withContext(h):p,v={autoForward:d}),r.spawn(p,l,v)}else r.spawnActivity(s);break;case V:r.stopChild(t.activity.id);break;case q:var y=t.label,g=t.value;y?r.logger(y,g):r.logger(g)}};var i=C(C({},t.defaultOptions),n),o=i.clock,a=i.logger,s=i.parent,c=i.id,u=void 0!==c?c:e.id;this.id=u,this.logger=a,this.clock=o,this.parent=s,this.options=i,this.scheduler=new tU({deferEvents:this.options.deferEvents}),this.sessionId=t1.bookId()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:tX(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(t,e){var n,r;try{for(var i=j(t.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,t,e)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.update=function(t,e){var n,r,i,o,a,s,c,u,l=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||e===tI)&&this.options.execute)this.execute(this.state);else for(var f=void 0;f=this._outgoingQueue.shift();)f[0].send(f[1]);if(this.children.forEach(function(t){l.state.children[t.id]=t}),this.devTools&&this.devTools.send(e.data,t),t.event)try{for(var d=j(this.eventListeners),h=d.next();!h.done;h=d.next()){var p=h.value;p(t.event)}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}try{for(var v=j(this.listeners),y=v.next();!y.done;y=v.next()){var p=y.value;p(t,t.event)}}catch(t){i={error:t}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var g=j(this.contextListeners),m=g.next();!m.done;m=g.next())(0,m.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(t){a={error:t}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(this.state.done){var b=t.configuration.find(function(t){return"final"===t.type&&t.parent===l.machine}),S=b&&b.doneData?tu(b.doneData,t.context,e):void 0;this._doneEvent=tB(this.id,S);try{for(var w=j(this.doneListeners),x=w.next();!x.done;x=w.next()){var p=x.value;p(this._doneEvent)}}catch(t){c={error:t}}finally{try{x&&!x.done&&(u=w.return)&&u.call(w)}finally{if(c)throw c.error}}this._stop(),this._stopChildren(),t1.free(this.sessionId)}},t.prototype.onTransition=function(t){return this.listeners.add(t),this.status===x.Running&&t(this.state,this.state.event),this},t.prototype.subscribe=function(t,e,n){var r=this,i=tO(t,e,n);this.listeners.add(i.next),this.status!==x.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===x.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},t.prototype.onEvent=function(t){return this.eventListeners.add(t),this},t.prototype.onSend=function(t){return this.sendListeners.add(t),this},t.prototype.onChange=function(t){return this.contextListeners.add(t),this},t.prototype.onStop=function(t){return this.stopListeners.add(t),this},t.prototype.onDone=function(t){return this.status===x.Stopped&&this._doneEvent?t(this._doneEvent):this.doneListeners.add(t),this},t.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},t.prototype.start=function(t){var e=this;if(this.status===x.Running)return this;this.machine._init(),t1.register(this.sessionId,this),this.initialized=!0,this.status=x.Running;var n=void 0===t?this.initialState:tX(this,function(){return"object"==typeof t&&null!==t&&"value"in t&&"_event"in t?e.machine.resolveState(t):e.machine.resolveState(tZ.from(t,e.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){e.update(n,tI)}),this}
1,t.prototype._stopChildren=function(){this.children.forEach(function(t){tp(t.stop)&&t.stop()}),this.children.clear()},t.prototype._stop=function(){var t,e,n,r,i,o,a,s,c,u;try{for(var l=j(this.listeners),f=l.next();!f.done;f=l.next()){var d=f.value;this.listeners.delete(d)}}catch(e){t={error:e}}finally{try{f&&!f.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}try{for(var h=j(this.stopListeners),p=h.next();!p.done;p=h.next()){var d=p.value;d(),this.stopListeners.delete(d)}}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var v=j(this.contextListeners),y=v.next();!y.done;y=v.next()){var d=y.value;this.contextListeners.delete(d)}}catch(t){i={error:t}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var g=j(this.doneListeners),m=g.next();!m.done;m=g.next()){var d=m.value;this.doneListeners.delete(d)}}catch(t){a={error:t}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=x.Stopped,this._initialState=void 0;try{for(var b=j(Object.keys(this.delayedEventsMap)),S=b.next();!S.done;S=b.next()){var w=S.value;this.clock.clearTimeout(this.delayedEventsMap[w])}}catch(t){c={error:t}}finally{try{S&&!S.done&&(u=b.return)&&u.call(b)}finally{if(c)throw c.error}}this.scheduler.clear(),this.scheduler=new tU({deferEvents:this.options.deferEvents})},t.prototype.stop=function(){var t=this,e=this.scheduler;return this._stop(),e.schedule(function(){if(null===(e=t._state)||void 0===e||!e.done){var e,n=tS({type:"xstate.stop"}),r=tX(t,function(){var e=ts(D([],A(t.state.configuration),!1).sort(function(t,e){return e.order-t.order}).map(function(e){return tV(e.onExit,t.machine.options.actions)})),r=A(tq(t.machine,t.state,t.state.context,n,[{type:"exit",actions:e}],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),i=r[0],o=r[1],a=new tZ({value:t.state.value,context:o,_event:n,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:i.filter(function(t){return!t_(t)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return a.changed=!0,a});t.update(r,n),t._stopChildren(),t1.free(t.sessionId)}}),this},t.prototype.batch=function(t){var e=this;if(this.status===x.NotStarted&&this.options.deferEvents);else if(this.status!==x.Running)throw Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(t.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var r,i,o=e.state,a=!1,s=[];try{for(var c=j(t),u=c.next();!u.done;u=c.next()){var l=u.value;!function(t){var r=tS(t);e.forward(r),o=tX(e,function(){return e.machine.transition(o,r,void 0,n||void 0)}),s.push.apply(s,D([],A(e.machine.config.predictableActionArguments?o.actions:o.actions.map(function(t){var e,n;return e=o,n=t.exec,C(C({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})})),!1)),a=a||!!o.changed}(l)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}o.changed=a,o.actions=s,e.update(o,tS(t[t.length-1]))})}},t.prototype.sender=function(t){return this.send.bind(this,t)},t.prototype._nextState=function(t,e){var n=this;void 0===e&&(e=!!this.machine.config.predictableActionArguments&&this._exec);var r=tS(t);if(0===r.name.indexOf($)&&!this.state.nextEvents.some(function(t){return 0===t.indexOf($)}))throw r.data.data;return tX(this,function(){return n.machine.transition(n.state,r,void 0,e||void 0)})},t.prototype.nextState=function(t){return this._nextState(t,!1)},t.prototype.forward=function(t){var e,n;try{for(var r=j(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.defer=function(t){var e=this,n=this.clock.setTimeout(function(){"to"in t&&t.to?e.sendTo(t._event,t.to,!0):e.send(t._event)},t.delay);t.id&&(this.delayedEventsMap[t.id]=n)},t.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},t.prototype.exec=function(t,e,n){void 0===n&&(n=this.machine.options.actions),this._exec(t,e.context,e._event,n)},t.prototype.removeChild=function(t){var e;this.children.delete(t),this.forwardTo.delete(t),null===(e=this.state)||void 0===e||delete e.children[t]},t.prototype.stopChild=function(t){var e=this.children.get(t);e&&(this.removeChild(t),tp(e.stop)&&e.stop())},t.prototype.spawn=function(t,e,n){if(this.status!==x.Running)return tQ(t,e);
1if(tl(t))return this.spawnPromise(Promise.resolve(t),e);if(tp(t))return this.spawnCallback(t,e);if(function(t){try{return"function"==typeof t.send}catch(t){return!1}}(t)&&"id"in t)return this.spawnActor(t,e);if(function(t){try{return"subscribe"in t&&tp(t.subscribe)}catch(t){return!1}}(t))return this.spawnObservable(t,e);if(tm(t))return this.spawnMachine(t,C(C({},n),{id:e}));if(null!==t&&"object"==typeof t&&"transition"in t&&"function"==typeof t.transition)return this.spawnBehavior(t,e);throw Error('Unable to spawn entity "'.concat(e,'" of type "').concat(typeof t,'".'))},t.prototype.spawnMachine=function(e,n){var r=this;void 0===n&&(n={});var i=new t(e,C(C({},this.options),{parent:this,id:n.id||e.id})),o=C(C({},t5),n);return o.sync&&i.onTransition(function(t){r.send(W,{state:t,id:i.id})}),this.children.set(i.id,i),o.autoForward&&this.forwardTo.add(i.id),i.onDone(function(t){r.removeChild(i.id),r.send(tS(t,{origin:i.id}))}).start(),i},t.prototype.spawnBehavior=function(t,e){var n,r,i,o,a,s,c,u,l,f,d=(n={id:e,parent:this},r=t.initialState,i=new Set,o=[],a=!1,s=function(){if(!a){for(a=!0;o.length>0;){var e=o.shift();r=t.transition(r,e,f),i.forEach(function(t){return t.next(r)})}a=!1}},c={id:n.id,send:function(t){o.push(t),s()},getSnapshot:function(){return r},subscribe:function(t,e,n){var o=tO(t,e,n);return i.add(o),o.next(r),{unsubscribe:function(){i.delete(o)}}}},l=C(((u={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[tg]=function(){return this},u),c),f={parent:n.parent,self:l,id:n.id||"anonymous",observers:i},r=t.start?t.start(f):r,l);return this.children.set(e,d),d},t.prototype.spawnPromise=function(t,e){var n,r,i=this,o=!1;t.then(function(t){o||(r=t,i.removeChild(e),i.send(tS(tB(e,t),{origin:e})))},function(t){if(!o){i.removeChild(e);var n=tH(e,t);try{i.send(tS(n,{origin:e}))}catch(t){i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}});var a=((n={id:e,send:function(){},subscribe:function(e,n,r){var i=tO(e,n,r),o=!1;return t.then(function(t){!o&&(i.next(t),o||i.complete())},function(t){o||i.error(t)}),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:e}},getSnapshot:function(){return r}})[tg]=function(){return this},n);return this.children.set(e,a),a},t.prototype.spawnCallback=function(t,e){var n,r,i,o=this,a=!1,s=new Set,c=new Set;try{i=t(function(t){r=t,c.forEach(function(e){return e(t)}),a||o.send(tS(t,{origin:e}))},function(t){s.add(t)})}catch(t){this.send(tH(e,t))}if(tl(i))return this.spawnPromise(i,e);var u=((n={id:e,send:function(t){return s.forEach(function(e){return e(t)})},subscribe:function(t){var e=tO(t);return c.add(e.next),{unsubscribe:function(){c.delete(e.next)}}},stop:function(){a=!0,tp(i)&&i()},toJSON:function(){return{id:e}},getSnapshot:function(){return r}})[tg]=function(){return this},n);return this.children.set(e,u),u},t.prototype.spawnObservable=function(t,e){var n,r,i=this,o=t.subscribe(function(t){r=t,i.send(tS(t,{origin:e}))},function(t){i.removeChild(e),i.send(tS(tH(e,t),{origin:e}))},function(){i.removeChild(e),i.send(tS(tB(e),{origin:e}))}),a=((n={id:e,send:function(){},subscribe:function(e,n,r){return t.subscribe(e,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:e}}})[tg]=function(){return this},n);return this.children.set(e,a),a},t.prototype.spawnActor=function(t,e){return this.children.set(e,t),t},t.prototype.spawnActivity=function(t){var e=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(e){var n=e(this.state.context,t);this.spawnEffect(t.id,n)}},t.prototype.spawnEffect=function(t,e){var n;this.children.set(t,((n={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:e||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}})[tg]=function(){return this},n))},t.prototype.attachDev=function(){var t=t2();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var e="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(C(C({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:C({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}!function(t){if(t2()){var e=function(){var t=t2();if(t&&"__xstate__"in t)return t.__xstate__}();e&&e.register(t)}}(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[tg]=function(){return this},t.prototype.getSnapshot=function(){return this.status===x.NotStarted?this.initialState:this._state},t.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,e){return setTimeout(t,e)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},t.interpret=t4,t}();function t4(t,e){return new t3(t,e)}function t9(t){var e=_.useRef();return e.current||(e.current={v:t()}),e.current.v}(f=E||(E={}))[f.Effect=1]="Effect",f[f.LayoutEffect=2]="LayoutEffect";var t7=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},t8=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},t6=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},et=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function ee(t,e){(0,t.exec)(e.context,e._event.data,{action:t,state:e,_event:e._event})()}var en=function(){return(en=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},er=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},ei=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}
1,eo=n(87462),ea=n(63366);let es={arr:Array.isArray,obj:t=>"[object Object]"===Object.prototype.toString.call(t),fun:t=>"function"==typeof t,str:t=>"string"==typeof t,num:t=>"number"==typeof t,und:t=>void 0===t,nul:t=>null===t,set:t=>t instanceof Set,map:t=>t instanceof Map,equ(t,e){let n;if(typeof t!=typeof e)return!1;if(es.str(t)||es.num(t))return t===e;if(es.obj(t)&&es.obj(e)&&Object.keys(t).length+Object.keys(e).length===0)return!0;for(n in t)if(!(n in e))return!1;for(n in e)if(t[n]!==e[n])return!1;return!es.und(n)||t===e}};function ec(t,e){return es.und(t)||es.nul(t)?e:t}function eu(t){return es.und(t)?[]:es.arr(t)?t:[t]}function el(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return es.fun(t)?t(...n):t}function ef(t){let e=(t.to,t.from,t.config,t.onStart,t.onRest,t.onFrame,t.children,t.reset,t.reverse,t.force,t.immediate,t.delay,t.attach,t.destroyed,t.interpolateTo,t.ref,t.lazy,(0,ea.Z)(t,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"]));if(es.und(e))return(0,eo.Z)({to:e},t);let n=Object.keys(t).reduce((n,r)=>es.und(e[r])?(0,eo.Z)({},n,{[r]:t[r]}):n,{});return(0,eo.Z)({to:e},n)}class ed{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(t){0===this.children.length&&this.attach(),this.children.push(t)}removeChild(t){let e=this.children.indexOf(t);this.children.splice(e,1),0===this.children.length&&this.detach()}}class eh extends ed{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach(t=>t instanceof ed&&t.addChild(this)),this.detach=()=>this.payload.forEach(t=>t instanceof ed&&t.removeChild(this))}}class ep extends ed{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach(t=>t instanceof ed&&t.addChild(this)),this.detach=()=>Object.values(this.payload).forEach(t=>t instanceof ed&&t.removeChild(this))}getValue(t){void 0===t&&(t=!1);let e={};for(let n in this.payload){let r=this.payload[n];(!t||r instanceof ed)&&(e[n]=r instanceof ed?r[t?"getAnimatedValue":"getValue"]():r)}return e}getAnimatedValue(){return this.getValue(!0)}}let ev=t=>"undefined"!=typeof window?window.requestAnimationFrame(t):-1,ey=()=>Date.now(),eg=t=>t.current;class em extends ep{constructor(t,e){super(),this.update=void 0,this.payload=t.style?(0,eo.Z)({},t,{style:a(t.style)}):t,this.update=e,this.attach()}}let eb=t=>es.fun(t)&&!(t.prototype instanceof _.Component),eS=!1,ew=new Set,ex=()=>{if(!eS)return!1;let t=ey();for(let e of ew){let n=!1;for(let r=0;r<e.configs.length;r++){let i,o,a=e.configs[r];for(let e=0;e<a.animatedValues.length;e++){let r=a.animatedValues[e];if(r.done)continue;let s=a.fromValues[e],c=a.toValues[e],u=r.lastPosition,l=c instanceof ed,f=Array.isArray(a.initialVelocity)?a.initialVelocity[e]:a.initialVelocity;if(l&&(c=c.getValue()),a.immediate||"string"==typeof s||"string"==typeof c){r.setValue(c),r.done=!0;continue}if(void 0!==a.duration)u=s+a.easing((t-r.startTime)/a.duration)*(c-s),i=t>=r.startTime+a.duration;else if(a.decay)u=s+f/(1-.998)*(1-Math.exp(-(1-.998)*(t-r.startTime))),(i=.1>Math.abs(r.lastPosition-u))&&(c=u);else{o=void 0!==r.lastTime?r.lastTime:t,f=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,t>o+64&&(o=t);let e=Math.floor(t-o);for(let t=0;t<e;++t){let t=(-a.tension*(u-c)+-a.friction*f)/a.mass;f+=1*t/1e3,u+=1*f/1e3}let n=!!a.clamp&&0!==a.tension&&(s<c?u>c:u<c),l=Math.abs(f)<=a.precision,d=0===a.tension||Math.abs(c-u)<=a.precision;i=n||l&&d,r.lastVelocity=f,r.lastTime=t}l&&!a.toValues[e].done&&(i=!1),i?(r.value!==c&&(u=c),r.done=!0):n=!0,r.setValue(u),r.lastPosition=u}e.props.onFrame&&(e.values[a.name]=a.interpolation.getValue())}e.props.onFrame&&e.props.onFrame(e.values),n||(ew.delete(e),e.stop(!0))}return ew.size?s?s():ev(ex):eS=!1,eS},eE=t=>{ew.has(t)||ew.add(t),eS||(eS=!0,s?ev(s):ev(ex))},eO=t=>{ew.has(t)&&ew.delete(t)};function ek(t,e,n){if("function"==typeof t)return t;if(Array.isArray(t))return ek({range:t,output:e,extrapolate:n});if(o&&"string"==typeof t.output[0])return o(t);let r=t.output,i=t.range||[0,1],a=t.extrapolateLeft||t.extrapolate||"extend",s=t.extrapolateRight||t.extrapolate||"extend",c=t.easing||(t=>t);return e=>{let n=function(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}(e,i);return function(t,e,n,r,i,o,a,s,c){let u=c?c(t):t;if(u<e){if("identity"===a)return u;"clamp"===a&&(u=e)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:e===n?t<=e?r:i:(e===-1/0?u=-u:n===1/0?u-=e:u=(u-e)/(n-e),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}
1(e,i[n],i[n+1],r[n],r[n+1],c,a,s,t.map)}}class e_ extends eh{constructor(t,e,n,r){super(),this.calc=void 0,this.payload=t instanceof eh&&!(t instanceof e_)?t.getPayload():Array.isArray(t)?t:[t],this.calc=ek(e,n,r)}getValue(){return this.calc(...this.payload.map(t=>t.getValue()))}updateConfig(t,e,n){this.calc=ek(t,e,n)}interpolate(t,e,n){return new e_(this,t,e,n)}}let eT=(t,e,n)=>t&&new e_(t,e,n);class eP extends ed{constructor(t){var e;super(),e=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(t,n){void 0===n&&(n=!0),e.value=t,n&&e.flush()},this.value=t,this.startPosition=t,this.lastPosition=t}flush(){0===this.animatedStyles.size&&function t(e,n){"update"in e?n.add(e):e.getChildren().forEach(e=>t(e,n))}(this,this.animatedStyles),this.animatedStyles.forEach(t=>t.update())}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(t,e,n){return new e_(this,t,e,n)}}class eR extends eh{constructor(t){super(),this.payload=t.map(t=>new eP(t))}setValue(t,e){void 0===e&&(e=!0),Array.isArray(t)?t.length===this.payload.length&&t.forEach((t,n)=>this.payload[n].setValue(t,e)):this.payload.forEach(n=>n.setValue(t,e))}getValue(){return this.payload.map(t=>t.getValue())}interpolate(t,e){return new e_(this,t,e)}}let eC=0;class eN{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=eC++}update(t){if(!t)return this;let e=ef(t),n=e.delay,r=void 0===n?0:n,i=e.to,o=(0,ea.Z)(e,["delay","to"]);if(es.arr(i)||es.fun(i))this.queue.push((0,eo.Z)({},o,{delay:r,to:i}));else if(i){let t={};Object.entries(i).forEach(e=>{let n=e[0],i=e[1],a=(0,eo.Z)({to:{[n]:i},delay:el(r,n)},o),s=t[a.delay]&&t[a.delay].to;t[a.delay]=(0,eo.Z)({},t[a.delay],a,{to:(0,eo.Z)({},s,a.to)})}),this.queue=Object.values(t)}return this.queue=this.queue.sort((t,e)=>t.delay-e.delay),this.diff(o),this}start(t){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(t=>{let e=t.from,n=void 0===e?{}:e,r=t.to,i=void 0===r?{}:r;es.obj(n)&&(this.merged=(0,eo.Z)({},n,this.merged)),es.obj(i)&&(this.merged=(0,eo.Z)({},this.merged,i))});let e=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach((r,i)=>{let o=r.delay,a=(0,ea.Z)(r,["delay"]),s=r=>{i===n.length-1&&e===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),t&&t()},c=es.arr(a.to)||es.fun(a.to);o?setTimeout(()=>{e===this.guid&&(c?this.runAsync(a,s):this.diff(a).start(s))},o):c?this.runAsync(a,s):this.diff(a).start(s)})}else es.fun(t)&&this.listeners.push(t),this.props.onStart&&this.props.onStart(),eE(this);return this}stop(t){return this.listeners.forEach(e=>e(t)),this.listeners=[],this}pause(t){return this.stop(!0),t&&eO(this),this}runAsync(t,e){var n=this;t.delay;let r=(0,ea.Z)(t,["delay"]),i=this.local,o=Promise.resolve(void 0);if(es.arr(r.to))for(let t=0;t<r.to.length;t++){let e=t,n=(0,eo.Z)({},r,ef(r.to[e]));es.arr(n.config)&&(n.config=n.config[e]),o=o.then(()=>{if(i===this.guid)return new Promise(t=>this.diff(n).start(t))})}else if(es.fun(r.to)){let t,e=0;o=o.then(()=>r.to(n=>{let o=(0,eo.Z)({},r,ef(n));if(es.arr(o.config)&&(o.config=o.config[e]),e++,i===this.guid)return t=new Promise(t=>this.diff(o).start(t))},function(t){return void 0===t&&(t=!0),n.stop(t)}).then(()=>t))}o.then(e)}diff(t){this.props=(0,eo.Z)({},this.props,t);let e=this.props,n=e.from,r=void 0===n?{}:n,a=e.to,s=void 0===a?{}:a,c=e.config,u=void 0===c?{}:c,l=e.reverse,f=e.attach,d=e.reset,h=e.immediate;if(l){var p=[s,r];r=p[0],s=p[1]}this.merged=(0,eo.Z)({},r,this.merged,s),this.hasChanged=!1;let v=f&&f(this);if(this.animations=Object.entries(this.merged).reduce((t,e)=>{let n=e[0],a=e[1],s=t[n]||{},c=es.num(a),l=es.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!i[a],f=es.arr(a),p=!c&&!f&&!l,y=es.und(r[n])?a:r[n],g=c||f?a:l?a:1,m=el(u,n);v&&(g=v.animations[n].parent);let b=s.parent,S=s.interpolation,w=eu(v?g.getPayload():g),x,E=a;p&&(E=o({range:[0,1],output:[a,a]})(1));let O=S&&S.getValue(),k=!es.und(b)&&s.animatedValues.some(t=>!t.done),_=!es.equ(E,O),T=!es.equ(E,s.previous),P=!es.equ(m,s.config);if(d||T&&_||P){if(c||l)b=S=s.parent||new eP(y);else if(f)b=S=s.parent||new eR(y);else if(p){let t=s.interpolation&&s.interpolation.calc(s.parent.value);t=void 0===t||d?y:t,s.parent?(b=s.parent).setValue(0,!1):b=new eP(0);let e={output:[t,a]};s.interpolation?(S=s.interpolation,s.interpolation.updateConfig(e)):S=b.interpolate(e)}return w=eu(v?g.getPayload():g),x=eu(b.getPayload()),d&&!p&&b.setValue(y,!1),this.hasChanged=!0,x.forEach(t=>{t.startPosition=t.value,t.lastPosition=t.value,t.lastVelocity=k?t.lastVelocity:void 0,t.lastTime=k?t.lastTime:void 0,t.startTime=ey(),t.done=!1,t.animatedStyles.clear()}),el(h,n)&&b.setValue(p?g:a,!1),(0,eo.Z)({},t,{[n]:(0,eo.Z)({},s,{name:n,parent:b,interpolation:S,animatedValues:x,toValues:w,previous:E,config:m,fromValues:eu(b.getValue()),immediate:el(h,n),initialVelocity:ec(m.velocity,0),clamp:ec(m.clamp,!1),precision:ec(m.precision,.01),tension:ec(m.tension,170),friction:ec(m.friction,26),mass:ec(m.mass,1),duration:m.duration,easing:ec(m.easing,t=>t),decay:m.decay})})}return _?t:(p&&(b.setValue(1,!1),S.updateConfig({output:[E,E]})),b.done=!0,this.hasChanged=!0,(0,eo.Z)({},t,{[n]:(0,eo.Z)({},t[n],{previous:E})}))},this.animations),this.hasChanged)for(let t in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[t]=this.animations[t].interpolation,this.values[t]=this.animations[t].interpolation.getValue();return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}let ej=(t,e)=>{let n=(0,_.useRef)(!1),r=(0,_.useRef)(),i=es.fun(e),o=(0,_.useMemo)(()=>{let n;return r.current&&(r.current.map(t=>t.destroy()),r.current=void 0),[Array(t).fill().map((t,r)=>{let o=new eN,a=i?el(e,r,o):e[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o}),n]},[t]),a=o[0],s=o[1];r.current=a,(0,_.useImperativeHandle)(s,()=>({start:()=>Promise.all(r.current.map(t=>new Promise(e=>t.start(e)))),stop:t=>
1r.current.forEach(e=>e.stop(t)),get controllers(){return r.current}}));let c=(0,_.useMemo)(()=>t=>r.current.map((e,n)=>{e.update(i?el(t,n,e):t[n]),s||e.start()}),[t]);(0,_.useEffect)(()=>{n.current?i||c(e):s||r.current.forEach(t=>t.start())}),(0,_.useEffect)(()=>(n.current=!0,()=>r.current.forEach(t=>t.destroy())),[]);let u=r.current.map(t=>t.getValues());return i?[u,c,t=>r.current.forEach(e=>e.pause(t))]:u},eA=t=>{let e=es.fun(t),n=ej(1,e?t:[t]),r=n[0],i=n[1],o=n[2];return e?[r[0],i,o]:r};class eD extends ep{constructor(t){void 0===t&&(t={}),super(),!t.transform||t.transform instanceof ed||(t=r.transform(t)),this.payload=t}}let eI={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},eL="[-+]?\\d*\\.?\\d+",eM=eL+"%";function eV(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let ez=RegExp("rgb"+eV(eL,eL,eL)),eF=RegExp("rgba"+eV(eL,eL,eL,eL)),eB=RegExp("hsl"+eV(eL,eM,eM)),eH=RegExp("hsla"+eV(eL,eM,eM,eL)),eG=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eq=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eZ=/^#([0-9a-fA-F]{6})$/,eK=/^#([0-9a-fA-F]{8})$/;function e$(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function eU(t,e,n){let r=n<.5?n*(1+e):n+e-n*e,i=2*n-r;return Math.round(255*e$(i,r,t+1/3))<<24|Math.round(255*e$(i,r,t))<<16|Math.round(255*e$(i,r,t-1/3))<<8}function eW(t){let e=parseInt(t,10);return e<0?0:e>255?255:e}function eX(t){return(parseFloat(t)%360+360)%360/360}function eJ(t){let e=parseFloat(t);return e<0?0:e>1?255:Math.round(255*e)}function eQ(t){let e=parseFloat(t);return e<0?0:e>100?1:e/100}function eY(t){let e;let n="number"==typeof t?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=eZ.exec(t))?parseInt(e[1]+"ff",16)>>>0:eI.hasOwnProperty(t)?eI[t]:(e=ez.exec(t))?(eW(e[1])<<24|eW(e[2])<<16|eW(e[3])<<8|255)>>>0:(e=eF.exec(t))?(eW(e[1])<<24|eW(e[2])<<16|eW(e[3])<<8|eJ(e[4]))>>>0:(e=eG.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=eK.exec(t))?parseInt(e[1],16)>>>0:(e=eq.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=eB.exec(t))?(255|eU(eX(e[1]),eQ(e[2]),eQ(e[3])))>>>0:(e=eH.exec(t))?(eU(eX(e[1]),eQ(e[2]),eQ(e[3]))|eJ(e[4]))>>>0:null;if(null===n)return t;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}let e0=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,e1=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,e2=RegExp(`(${Object.keys(eI).join("|")})`,"g"),e5={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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},e3=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),e4=["Webkit","Ms","Moz","O"];e5=Object.keys(e5).reduce((t,e)=>(e4.forEach(n=>t[e3(n,e)]=t[e]),t),e5);let e9={};a=t=>new eD(t),o=t=>{let e=t.output.map(t=>t.replace(e1,eY)).map(t=>t.replace(e2,eY)),n=e[0].match(e0).map(()=>[]);e.forEach(t=>
1{t.match(e0).forEach((t,e)=>n[e].push(+t))});let r=e[0].match(e0).map((e,r)=>ek((0,eo.Z)({},t,{output:n[r]})));return t=>{let n=0;return e[0].replace(e0,()=>r[n++](t)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(t,e,n,r,i)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`)}},i=eI,r={fn:(t,e)=>{if(!t.nodeType||void 0===t.setAttribute)return!1;{let a=e.style,s=e.children,c=e.scrollTop,u=e.scrollLeft,l=(0,ea.Z)(e,["style","children","scrollTop","scrollLeft"]),f="filter"===t.nodeName||t.parentNode&&"filter"===t.parentNode.nodeName;for(let e in void 0!==c&&(t.scrollTop=c),void 0!==u&&(t.scrollLeft=u),void 0!==s&&(t.textContent=s),a)if(a.hasOwnProperty(e)){var n,r,i=0===e.indexOf("--"),o=(n=e,null==(r=a[e])||"boolean"==typeof r||""===r?"":i||"number"!=typeof r||0===r||e5.hasOwnProperty(n)&&e5[n]?(""+r).trim():r+"px");"float"===e&&(e="cssFloat"),i?t.style.setProperty(e,o):t.style[e]=o}for(let e in l){let n=f?e:e9[e]||(e9[e]=e.replace(/([A-Z])/g,t=>"-"+t.toLowerCase()));void 0!==t.getAttribute(n)&&t.setAttribute(n,l[e])}return}},transform:t=>t};let e7=(d=t=>(0,_.forwardRef)((e,n)=>{let i=function(){let t=(0,_.useState)(!1)[1];return(0,_.useCallback)(()=>t(t=>!t),[])}(),o=(0,_.useRef)(!0),a=(0,_.useRef)(null),s=(0,_.useRef)(null),c=(0,_.useCallback)(t=>{let e=a.current;a.current=new em(t,()=>{let t=!1;s.current&&(t=r.fn(s.current,a.current.getAnimatedValue())),s.current&&!1!==t||i()}),e&&e.detach()},[]);(0,_.useEffect)(()=>()=>{o.current=!1,a.current&&a.current.detach()},[]),(0,_.useImperativeHandle)(n,()=>eg(s,o,i)),c(e);let u=a.current.getValue(),l=(u.scrollTop,u.scrollLeft,(0,ea.Z)(u,["scrollTop","scrollLeft"])),f=eb(t)?void 0:t=>s.current=(n&&(es.fun(n)?n(t):es.obj(n)&&(n.current=t)),t);return _.createElement(t,(0,eo.Z)({},l,{ref:f}))}),void 0===(h=!1)&&(h=!0),t=>(es.arr(t)?t:Object.keys(t)).reduce((t,e)=>{let n=h?e[0].toLowerCase()+e.substring(1):e;return t[n]=d(n),t},d))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function e8(t,e){return t.map(function(t,n){return t+e[n]})}function e6(t,e){return t.map(function(t,n){return t-e[n]})}function nt(t){return Math.hypot.apply(Math,t)}function ne(t){return Math.sign?Math.sign(t):Number(t>0)-Number(t<0)||+t}function nn(t,e,n){return 0===e||Math.abs(e)===1/0?Math.pow(t,5*n):t*e*n/(e+n*t)}function nr(t,e,n,r){return(void 0===r&&(r=.15),0===r)?Math.max(e,Math.min(t,n)):t<e?-nn(e-t,n-e,r)+e:t>n?+nn(t-n,n-e,r)+n:t}function ni(){return(ni=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function no(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function na(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ns(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function nc(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ns(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ns(t,void 0)}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}function nu(){}function nl(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?nu:1===e.length?e[0]:function(){for(var t,n,r=nc(e);!(n=r()).done;)t=n.value.apply(this,arguments)||t;return t}}
1function nf(t,e){if(void 0===t){if(void 0===e)throw Error("Must define fallback value if undefined is expected");t=e}return Array.isArray(t)?t:[t,t]}function nd(t){if("function"!=typeof t)return t;for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.apply(void 0,n)}function nh(t,e){void 0===t&&(t={});for(var n={},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],a=o[0],s=o[1];switch(typeof s){case"function":n[a]=s.call(n,t[a],a,t);break;case"object":n[a]=nh(t[a],s);break;case"boolean":s&&(n[a]=t[a])}}return n}var np=ni({},{threshold:function(t){return void 0===t&&(t=0),nf(t)},rubberband:function(t){switch(void 0===t&&(t=0),t){case!0:return nf(.15);case!1:return nf(0);default:return nf(t)}},enabled:function(t){return void 0===t&&(t=!0),t},triggerAllEvents:function(t){return void 0===t&&(t=!1),t},initial:function(t){return(void 0===t&&(t=0),"function"==typeof t)?t:nf(t)}},{axis:!0,lockDirection:function(t){return void 0===t&&(t=!1),t},bounds:function(t){if(void 0===t&&(t={}),"function"==typeof t)return function(e){return np.bounds(t(e))};var e=t,n=e.left,r=e.right,i=e.top,o=e.bottom;return[[void 0===n?-1/0:n,void 0===r?1/0:r],[void 0===i?-1/0:i,void 0===o?1/0:o]]}}),nv="undefined"!=typeof window&&window.document&&window.document.createElement,ny={enabled:function(t){return void 0===t&&(t=!0),t},domTarget:!0,window:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return void 0===t&&(t=nv?window:void 0),t}),eventOptions:function(t){var e=void 0===t?{}:t,n=e.passive,r=e.capture;return{passive:void 0===n||n,capture:void 0!==r&&r}}},ng=ni({},np,{threshold:function(t,e,n){var r=n.filterTaps,i=void 0!==r&&r,o=n.lockDirection,a=n.axis,s=nf(t,i?3:void 0!==o&&o?1:(void 0===a?void 0:a)?1:0);return this.filterTaps=i||s[0]+s[1]>0,s},swipeVelocity:function(t){return void 0===t&&(t=.5),nf(t)},swipeDistance:function(t){return void 0===t&&(t=60),nf(t)},delay:function(t){switch(void 0===t&&(t=0),t){case!0:return 180;case!1:return 0;default:return t}}});function nm(t){var e,n=t.domTarget,r=t.eventOptions,i=t.window,o=t.enabled,a=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}(t,["domTarget","eventOptions","window","enabled"]),s=nh({domTarget:n,eventOptions:r,window:i,enabled:o},ny);return s.drag=(void 0===(e=a)&&(e={}),nh(e,ng)),s}function nb(t){return ni({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:nu,canceled:!1,memo:void 0,args:void 0},t)}function nS(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:nb({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:nb({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:nb({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:nb({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:nb({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var nw=new Map,nx=function(){function t(t,e){var n=this;void 0===e&&(e=[]),this.controller=t,this.args=e,this.debounced=!0,this.setTimeout=function(t,e){var r;void 0===e&&(e=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[t,e].concat(o))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(t){if(void 0===t&&(t=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!t&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var e=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!e,n.state.last=e&&!r,n.controller.state.shared[n.ingKey]=r}var i=ni({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),o=n.handler(i);return n.state.memo=void 0!==o?o:n.state.memo,n.state._active||n.clean(),i}}var e=t.prototype;return e.updateSharedState=function(t){Object.assign(this.controller.state.shared,t)},e.updateGestureState=function(t){Object.assign(this.state,t)},e.checkIntentionality=function(t,e){return{_intentional:t,_blocked:!1}},e.getMovement=function(t){var e,n,r,i,o=this.config,a=o.initial,s=o.bounds,c=o.rubberband,u=o.threshold,l=this.state,f=l._bounds,d=l._initial,h=l._active,p=l._intentional,v=l.lastOffset,y=l.movement,g=this.getInternalMovement(t,this.state),m=!1===p[0]?nE(g[0],u[0]):p[0],b=!1===p[1]?nE(g[1],u[1]):p[1],S=this.checkIntentionality([m,b],g);if(S._blocked)return ni({},S,{_movement:g,delta:[0,0]});var w=S._intentional;!1!==w[0]&&!1===p[0]&&(n=nd(a,this.state),e=nd(s,this.state),d[0]=n[0],f[0]=e[0]),!1!==w[1]&&!1===p[1]&&(n=null!=(r=n)?r:nd(a,this.state),e=null!=(i=e)?i:nd(s,this.state),d[1]=n[1],f[1]=e[1]);var x=[!1!==w[0]?g[0]-w[0]:d[0],!1!==w[1]?g[1]-w[1]:d[1]],E=e8(x,v),O=h?c:[0,0];return x=nO(f,e8(x,d),O),ni({},S,{intentional:!1!==w[0]||!1!==w[1],_initial:d,_movement:g,movement:x,values:t,offset:nO(f,E,O),delta:e6(x,y)})},e.clean=function(){this.clearTimeout()},function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
1(t.prototype,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),t}();function nE(t,e){return Math.abs(t)>=e&&ne(t)*e}function nO(t,e,n){var r=e[0],i=e[1],o=n[0],a=n[1],s=t[0],c=s[0],u=s[1],l=t[1],f=l[0],d=l[1];return[nr(r,c,u,o),nr(i,f,d,a)]}function nk(t,e,n){var r=t.state,i=t.args,o=e.timeStamp,a=e.type,s=r.values,c=n?0:o-r.startTime;return{_lastEventType:a,event:e,timeStamp:o,elapsedTime:c,args:i,previous:s}}var n_=function(t){var e=this;this.classes=t,this.bind=function(){for(var t={},n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o,a=nc(e.classes);!(o=a()).done;)new o.value(e,r).addBindings(t);for(var s=0,c=Object.entries(e.nativeRefs);s<c.length;s++){var u=c[s];nR(t,u[0],function(t,e){return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.call.apply(t,[this,ni({},e,{event:n})].concat(i))}}(u[1],ni({},e.state.shared,{args:r})))}return e.config.domTarget?function(t,e){var n=t.config,r=t.domListeners,i=nP(n);if(!i)throw Error("domTarget must be defined");var o=n.eventOptions;nN(i,nT(r),o);for(var a=0,s=Object.entries(e);a<s.length;a++){var c=s[a],u=c[0],l=c[1],f=u.slice(2).toLowerCase();r.push([f,nl.apply(void 0,l)])}nC(i,r,o)}(e,t):function(t,e){for(var n=t.config,r={},i=n.eventOptions.capture?"Capture":"",o=0,a=Object.entries(e);o<a.length;o++){var s=a[o],c=s[0],u=s[1],l=Array.isArray(u)?u:[u];r[c+i]=nl.apply(void 0,l)}return r}(e,t)},this.effect=function(){return e.config.domTarget&&e.bind(),e.clean},this.clean=function(){var t=nP(e.config),n=e.config.eventOptions;t&&nN(t,nT(e.domListeners),n),Object.values(e.timeouts).forEach(clearTimeout),function(t){var e=t.config,n=e.window,r=e.eventOptions,i=t.windowListeners;if(n){for(var o in i)nN(n,i[o],r);t.windowListeners={}}}(e)},this.state=nS(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function nT(t){return void 0===t&&(t=[]),t.splice(0,t.length)}function nP(t){var e=t.domTarget;return e&&"current"in e?e.current:e}function nR(t,e,n){t[e]||(t[e]=[]),t[e].push(n)}function nC(t,e,n){void 0===e&&(e=[]),void 0===n&&(n={});for(var r,i=nc(e);!(r=i()).done;){var o=r.value,a=o[0],s=o[1];t.addEventListener(a,s,n)}}function nN(t,e,n){void 0===e&&(e=[]),void 0===n&&(n={});for(var r,i=nc(e);!(r=i()).done;){var o=r.value,a=o[0],s=o[1];t.removeEventListener(a,s,n)}}function nj(){}function nA(t){if("touches"in t){var e=t.targetTouches,n=t.changedTouches;return e.length>0?e:n}return null}function nD(t){var e="buttons"in t?t.buttons:0,n=nA(t),r=n&&n.length||0;return{touches:r,down:r>0||e>0,buttons:e,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey}}function nI(t){var e=nA(t),n=e?e[0]:t;return[n.clientX,n.clientY]}var nL=function(t){function e(){var e;return e=t.apply(this,arguments)||this,e.ingKey="dragging",e.stateKey="drag",e.onDragStart=function(t){if(e.enabled&&!e.state._active){var n,r,i,o,a;n=e.controller,r=e.stateKey,i=[["pointermove",e.onDragChange],["pointerup",e.onDragEnd],["pointercancel",e.onDragEnd]],o=n.config,a=n.windowListeners,void 0===i&&(i=[]),o.window&&(nN(o.window,a[r],o.eventOptions),nC(o.window,a[r]=i,o.eventOptions)),e.updateGestureState({_pointerId:t.pointerId}),e.config.delay>0?(e.state._delayedEvent=!0,"persist"in t&&"function"==typeof t.persist&&t.persist(),e.setTimeout(e.startDrag.bind(na(e)),e.config.delay,t)):e.startDrag(t)}},e.onDragChange=function(t){if(!e.state.canceled&&t.pointerId===e.state._pointerId){if(!e.state._active){e.state._delayedEvent&&(e.clearTimeout(),e.startDrag(t));return}var n=nD(t);if(!n.down){e.onDragEnd(t);return}e.updateSharedState(n);var r=nI(t),i=e.getKinematics(r,t),o=nk(na(e),t),a=e.state._isTap,s=nt(i._movement);a&&s>=3&&(a=!1),e.updateGestureState(ni({},o,i,{_isTap:a})),e.fireGestureHandler()}},e.onDragEnd=function(t){if(t.pointerId===e.state._pointerId){e.state._active=!1,e.updateSharedState({down:!1,buttons:0,touches:0});var n=e.state._isTap,r=e.state.velocities,i=r[0],o=r[1],a=e.state.movement,s=a[0],c=a[1],u=e.state._intentional,l=u[0],f=u[1],d=e.config.swipeVelocity,h=d[0],p=d[1],v=e.config.swipeDistance,y=v[0],g=v[1],m=ni({},nk(na(e),t),e.getMovement(e.state.values)),b=[0,0];m.elapsedTime<220&&(!1!==l&&Math.abs(i)>h&&Math.abs(s)>y&&(b[0]=ne(i)),!1!==f&&Math.abs(o)>p&&Math.abs(c)>g&&(b[1]=ne(o))),e.updateGestureState(ni({},m,{tap:n,swipe:b})),e.fireGestureHandler(!0===n)}},e.clean=function(){var n,r,i,o;
1t.prototype.clean.call(na(e)),e.state._delayedEvent=!1,n=e.controller,r=e.stateKey,i=n.config,o=n.windowListeners,i.window&&(nN(i.window,o[r],i.eventOptions),delete o[r])},e.onCancel=function(){e.state.canceled||(e.updateGestureState({canceled:!0}),e.state._active=!1,e.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame(function(){return e.fireGestureHandler()}))},e.onClick=function(t){e.state._isTap||t.stopPropagation()},e}no(e,t);var n=e.prototype;return n.startDrag=function(t){var e,n,r=nI(t);this.updateSharedState(nD(t)),this.updateGestureState(ni({},(e=this.state.offset,n=t.timeStamp,ni({},nS()[this.stateKey],{_active:!0,values:r,initial:r,offset:e,lastOffset:e,startTime:n})),nk(this,t,!0),{_pointerId:t.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(r)),this.fireGestureHandler()},n.addBindings=function(t){nR(t,"onPointerDown",this.onDragStart),this.config.filterTaps&&nR(t,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},e}(function(t){function e(){return t.apply(this,arguments)||this}no(e,t);var n=e.prototype;return n.getInternalMovement=function(t,e){return e6(t,e.initial)},n.checkIntentionality=function(t,e){if(!1===t[0]&&!1===t[1])return{_intentional:t,axis:this.state.axis};var n=e.map(Math.abs),r=n[0],i=n[1],o=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?o?this.config.axis&&o!==this.config.axis?{_intentional:t,_blocked:!0,axis:o}:(t["x"===o?1:0]=!1,{_intentional:t,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}:{_intentional:t,_blocked:!1,axis:o}},n.getKinematics=function(t,e){var n=this.getMovement(t);if(!n._blocked){var r,i,o,a,s,c,u,l=e.timeStamp-this.state.timeStamp;Object.assign(n,(r=n.movement,a=0===(o=nt(i=n.delta))?0:1/o,s=0===l?0:1/l,c=i.map(function(t){return s*t}),u=i.map(function(t){return a*t}),{velocities:c,velocity:s*o,distance:nt(r),direction:u}))}return n},n.mapStateValues=function(t){return{xy:t.values,vxvy:t.velocities}},e}(nx)),nM=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],nV=nM.join(","),nz="undefined"==typeof Element,nF=nz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,nB=!nz&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},nH=function(t,e,n){var r=Array.prototype.slice.apply(t.querySelectorAll(nV));return e&&nF.call(t,nV)&&r.unshift(t),r=r.filter(n)},nG=function t(e,n,r){for(var i=[],o=Array.from(e);o.length;){var a=o.shift();if("SLOT"===a.tagName){var s=a.assignedElements(),c=t(s.length?s:a.children,!0,r);r.flatten?i.push.apply(i,c):i.push({scope:a,candidates:c})}else{nF.call(a,nV)&&r.filter(a)&&(n||!e.includes(a))&&i.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),l=!r.shadowRootFilter||r.shadowRootFilter(a);if(u&&l){var f=t(!0===u?a.children:u.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scope:a,candidates:f})}else o.unshift.apply(o,a.children)}}return i},nq=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},nZ=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},nK=function(t){return"INPUT"===t.tagName},n$=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]},nU=function(t){if(!t.name)return!0;var e,n=t.form||nB(t),r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var i=n$(e,t.form);return!i||i===t},nW=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height;return 0===n&&0===r},nX=function(t,e){var n=e.displayCheck,r=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var i=nF.call(t,"details>summary:first-of-type")?t.parentElement:t;
1if(nF.call(i,"details:not([open]) *"))return!0;var o=nB(t).host,a=(null==o?void 0:o.ownerDocument.contains(o))||t.ownerDocument.contains(t);if(n&&"full"!==n){if("non-zero-area"===n)return nW(t)}else{if("function"==typeof r){for(var s=t;t;){var c=t.parentElement,u=nB(t);if(c&&!c.shadowRoot&&!0===r(c))return nW(t);t=t.assignedSlot?t.assignedSlot:c||u===t.ownerDocument?c:u.host}t=s}if(a)return!t.getClientRects().length}return!1},nJ=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if("LEGEND"===r.tagName)return!!nF.call(e,"fieldset[disabled] *")||!r.contains(t)}return!0}e=e.parentElement}return!1},nQ=function(t,e){return!(e.disabled||nK(e)&&"hidden"===e.type||nX(e,t)||"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(t){return"SUMMARY"===t.tagName})||nJ(e))},nY=function(t,e){var n;return!(nK(n=e)&&"radio"===n.type&&!nU(n)||0>nq(e))&&!!nQ(t,e)},n0=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!isNaN(e)||e>=0},n1=function t(e){var n=[],r=[];return e.forEach(function(e,i){var o=!!e.scope,a=o?e.scope:e,s=nq(a,o),c=o?t(e.candidates):a;0===s?o?n.push.apply(n,c):n.push(a):r.push({documentOrder:i,tabIndex:s,item:e,isScope:o,content:c})}),r.sort(nZ).reduce(function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t},[]).concat(n)},n2=function(t,e){if(e=e||{},!t)throw Error("No node provided");return!1!==nF.call(t,nV)&&nY(e,t)},n5=nM.concat("iframe").join(","),n3=function(t,e){if(e=e||{},!t)throw Error("No node provided");return!1!==nF.call(t,n5)&&nQ(e,t)};/*!
2* focus-trap 6.9.4
3* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
4*/function n4(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function n9(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?n4(Object(n),!0).forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):n4(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var n7=(p=[],{activateTrap:function(t){if(p.length>0){var e=p[p.length-1];e!==t&&e.pause()}var n=p.indexOf(t);-1===n||p.splice(n,1),p.push(t)},deactivateTrap:function(t){var e=p.indexOf(t);-1!==e&&p.splice(e,1),p.length>0&&p[p.length-1].unpause()}}),n8=function(t){return setTimeout(t,0)},n6=function(t,e){var n=-1;return t.every(function(t,r){return!e(t)||(n=r,!1)}),n},rt=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"function"==typeof t?t.apply(void 0,n):t},re=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target},rn=function(t,e){var n,r=(null==e?void 0:e.document)||document,i=n9({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},e),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(t,e,n){return t&&void 0!==t[e]?t[e]:i[n||e]},s=function(t){return o.containerGroups.findIndex(function(e){var n=e.container,r=e.tabbableNodes;return n.contains(t)||r.find(function(e){return e===t})})},c=function(t){var e=i[t];if("function"==typeof e){for(var n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];e=e.apply(void 0,o)}if(!0===e&&(e=void 0),!e){if(void 0===e||!1===e)return e;throw Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var s=e;if("string"==typeof e&&!(s=r.querySelector(e)))throw Error("`".concat(t,"` as selector refers to no known node"));return s},u=function(){var t=c("initialFocus");if(!1===t)return!1;if(void 0===t){if(s(r.activeElement)>=0)t=r.activeElement;else{var e=o.tabbableGroups[0];t=e&&e.firstTabbableNode||c("fallbackFocus")}}if(!t)throw Error("Your focus-trap needs to have at least one focusable element");return t},l=function(){if(o.containerGroups=o.containers.map(function(t){var e,n,r,o,a=(e=t,n1((n=(n=i.tabbableOptions)||{}).getShadowRoot?nG([e],n.includeContainer,{filter:nY.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:n0}):nH(e,n.includeContainer,nY.bind(null,n)))),s=(r=t,(o=(o=i.tabbableOptions)||{}).getShadowRoot?nG([r],o.includeContainer,{filter:nQ.bind(null,o),flatten:!0,getShadowRoot:o.getShadowRoot}):nH(r,o.includeContainer,nQ.bind(null,o)));return{container:t,tabbableNodes:a,focusableNodes:s,firstTabbableNode:a.length>0?a[0]:null,lastTabbableNode:a.length>0?a[a.length-1]:null,nextTabbableNode:function(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=s.findIndex(function(e){return e===t});return n<0?void 0:e?s.slice(n+1).find(function(t){return n2(t,i.tabbableOptions)}):s.slice(0,n).reverse().find(function(t){return n2(t,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(t){return t.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},f=function t(e){if(!1!==e&&e!==r.activeElement){if(!e||!e.focus){t(u());return}
4e.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},d=function(t){var e=c("setReturnFocus",t);return e||!1!==e&&t},h=function(t){var e=re(t);if(!(s(e)>=0)){if(rt(i.clickOutsideDeactivates,t)){n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!n3(e,i.tabbableOptions)});return}rt(i.allowOutsideClick,t)||t.preventDefault()}},p=function(t){var e=re(t),n=s(e)>=0;n||e instanceof Document?n&&(o.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),f(o.mostRecentlyFocusedNode||u()))},v=function(t){var e=re(t);l();var n=null;if(o.tabbableGroups.length>0){var r=s(e),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=t.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var u=n6(o.tabbableGroups,function(t){return e===t.firstTabbableNode});if(u<0&&(a.container===e||n3(e,i.tabbableOptions)&&!n2(e,i.tabbableOptions)&&!a.nextTabbableNode(e,!1))&&(u=r),u>=0){var d=0===u?o.tabbableGroups.length-1:u-1;n=o.tabbableGroups[d].lastTabbableNode}}else{var h=n6(o.tabbableGroups,function(t){return e===t.lastTabbableNode});if(h<0&&(a.container===e||n3(e,i.tabbableOptions)&&!n2(e,i.tabbableOptions)&&!a.nextTabbableNode(e))&&(h=r),h>=0){var p=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[p].firstTabbableNode}}}else n=c("fallbackFocus");n&&(t.preventDefault(),f(n))},y=function(t){if(("Escape"===t.key||"Esc"===t.key||27===t.keyCode)&&!1!==rt(i.escapeDeactivates,t)){t.preventDefault(),n.deactivate();return}if("Tab"===t.key||9===t.keyCode){v(t);return}},g=function(t){s(re(t))>=0||rt(i.clickOutsideDeactivates,t)||rt(i.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},m=function(){if(o.active)return n7.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?n8(function(){f(u())}):f(u()),r.addEventListener("focusin",p,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",g,{capture:!0,passive:!1}),r.addEventListener("keydown",y,{capture:!0,passive:!1}),n},b=function(){if(o.active)return r.removeEventListener("focusin",p,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",g,!0),r.removeEventListener("keydown",y,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(t){if(o.active)return this;var e=a(t,"onActivate"),n=a(t,"onPostActivate"),i=a(t,"checkCanFocusTrap");i||l(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,e&&e();var s=function(){i&&l(),m(),n&&n()};return i?i(o.containers.concat()).then(s,s):s(),this},deactivate:function(t){if(!o.active)return this;var e=n9({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},t);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,b(),o.active=!1,o.paused=!1,n7.deactivateTrap(n);var r=a(e,"onDeactivate"),s=a(e,"onPostDeactivate"),c=a(e,"checkCanReturnFocus"),u=a(e,"returnFocus","returnFocusOnDeactivate");r&&r();var l=function(){n8(function(){u&&f(d(o.nodeFocusedBeforeActivation)),s&&s()})};return u&&c?c(d(o.nodeFocusedBeforeActivation)).then(l,l):l(),this},pause:function(){return o.paused||!o.active||(o.paused=!0,b()),this},unpause:function(){return o.paused&&o.active&&(o.paused=!1,l(),m()),this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return o.containers=e.map(function(t){return"string"==typeof t?r.querySelector(t):t}),o.active&&l(),this}}).updateContainerElements(t),n},rr=!1;if("undefined"!=typeof window){var ri={get passive(){rr=!0;return}};window.addEventListener("testPassive",null,ri),window.removeEventListener("testPassive",null,ri)}var ro="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),ra=[],rs=!1,rc=-1,ru=void 0,rl=void 0,rf=function(t){return ra.some(function(e){return!!(e.options.allowTouchMove&&e.options.allowTouchMove(t))})},rd=function(t){var e=t||window.event;return!!rf(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)},rh=function(t){if(void 0===rl){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(rl=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}
4void 0===ru&&(ru=document.body.style.overflow,document.body.style.overflow="hidden")},rp=function(){void 0!==rl&&(document.body.style.paddingRight=rl,rl=void 0),void 0!==ru&&(document.body.style.overflow=ru,ru=void 0)},rv=function(t,e){var n=t.targetTouches[0].clientY-rc;return!rf(t.target)&&(e&&0===e.scrollTop&&n>0?rd(t):e&&e.scrollHeight-e.scrollTop<=e.clientHeight&&n<0?rd(t):(t.stopPropagation(),!0))},ry=function(t,e){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}!ra.some(function(e){return e.targetElement===t})&&(ra=[].concat(function(t){if(!Array.isArray(t))return Array.from(t);for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}(ra),[{targetElement:t,options:e||{}}]),ro?(t.ontouchstart=function(t){1===t.targetTouches.length&&(rc=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&rv(e,t)},rs||(document.addEventListener("touchmove",rd,rr?{passive:!1}:void 0),rs=!0)):rh(e))},rg=function(t){if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}ra=ra.filter(function(e){return e.targetElement!==t}),ro?(t.ontouchstart=null,t.ontouchmove=null,rs&&0===ra.length&&(document.removeEventListener("touchmove",rd,rr?{passive:!1}:void 0),rs=!1)):ra.length||rp()},rm=[],rb="ResizeObserver loop completed with undelivered notifications.",rS=function(){var t;"function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:rb}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=rb),window.dispatchEvent(t)};(v=O||(O={})).BORDER_BOX="border-box",v.CONTENT_BOX="content-box",v.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var rw=function(t){return Object.freeze(t)},rx=function(t,e){this.inlineSize=t,this.blockSize=e,rw(this)},rE=function(){function t(t,e,n,r){return this.x=t,this.y=e,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,rw(this)}return t.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),rO=function(t){return t instanceof SVGElement&&"getBBox"in t},rk=function(t){if(rO(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t.offsetWidth,o=t.offsetHeight;return!(i||o||t.getClientRects().length)},r_=function(t){if(t instanceof Element)return!0;var e,n=null===(e=null==t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},rT=function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},rP="undefined"!=typeof window?window:{},rR=new WeakMap,rC=/auto|scroll/,rN=/^tb|vertical/,rj=/msie|trident/i.test(rP.navigator&&rP.navigator.userAgent),rA=function(t){return parseFloat(t||"0")},rD=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new rx((n?e:t)||0,(n?t:e)||0)},rI=rw({devicePixelContentBoxSize:rD(),borderBoxSize:rD(),contentBoxSize:rD(),contentRect:new rE(0,0,0,0)}),rL=function(t,e){if(void 0===e&&(e=!1),rR.has(t)&&!e)return rR.get(t);if(rk(t))return rR.set(t,rI),rI;var n=getComputedStyle(t),r=rO(t)&&t.ownerSVGElement&&t.getBBox(),i=!rj&&"border-box"===n.boxSizing,o=rN.test(n.writingMode||""),a=!r&&rC.test(n.overflowY||""),s=!r&&rC.test(n.overflowX||""),c=r?0:rA(n.paddingTop),u=r?0:rA(n.paddingRight),l=r?0:rA(n.paddingBottom),f=r?0:rA(n.paddingLeft),d=r?0:rA(n.borderTopWidth),h=r?0:rA(n.borderRightWidth),p=r?0:rA(n.borderBottomWidth),v=r?0:rA(n.borderLeftWidth),y=f+u,g=c+l,m=v+h,b=d+p,S=s?t.offsetHeight-b-t.clientHeight:0,w=a?t.offsetWidth-m-t.clientWidth:0,x=r?r.width:rA(n.width)-(i?y+m:0)-w,E=r?r.height:rA(n.height)-(i?g+b:0)-S,O=x+y+w+m,k=E+g+S+b,_=rw({devicePixelContentBoxSize:rD(Math.round(x*devicePixelRatio),Math.round(E*devicePixelRatio),o),borderBoxSize:rD(O,k,o),contentBoxSize:rD(x,E,o),contentRect:new rE(f,c,x,E)});return rR.set(t,_),_}
4,rM=function(t,e,n){var r=rL(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case O.DEVICE_PIXEL_CONTENT_BOX:return a;case O.BORDER_BOX:return i;default:return o}},rV=function(t){var e=rL(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=rw([e.borderBoxSize]),this.contentBoxSize=rw([e.contentBoxSize]),this.devicePixelContentBoxSize=rw([e.devicePixelContentBoxSize])},rz=function(t){if(rk(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},rF=function(){var t=1/0,e=[];rm.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(e){var n=new rV(e.target),i=rz(e.target);r.push(n),e.lastReportedSize=rM(e.target,e.observedBox),i<t&&(t=i)}),e.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<e.length;n++)(0,e[n])();return t},rB=function(t){rm.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(n){n.isActive()&&(rz(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))})})},rH=function(){var t=0;for(rB(0);rm.some(function(t){return t.activeTargets.length>0});)rB(t=rF());return rm.some(function(t){return t.skippedTargets.length>0})&&rS(),t>0},rG=[],rq=function(t){if(!k){var e=0,n=document.createTextNode("");new MutationObserver(function(){return rG.splice(0).forEach(function(t){return t()})}).observe(n,{characterData:!0}),k=function(){n.textContent="".concat(e?e--:e++)}}rG.push(t),k()},rZ=function(t){rq(function(){requestAnimationFrame(t)})},rK=0,r$={attributes:!0,characterData:!0,childList:!0,subtree:!0},rU=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],rW=function(t){return void 0===t&&(t=0),Date.now()+t},rX=!1,rJ=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!rX){rX=!0;var n=rW(t);rZ(function(){var r=!1;try{r=rH()}finally{if(rX=!1,t=n-rW(),!rK)return;r?e.run(1e3):t>0?e.run(t):e.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,r$)};document.body?e():rP.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),rU.forEach(function(e){return rP.addEventListener(e,t.listener,!0)}))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),rU.forEach(function(e){return rP.removeEventListener(e,t.listener,!0)}),this.stopped=!0)},t}()),rQ=function(t){!rK&&t>0&&rJ.start(),(rK+=t)||rJ.stop()},rY=function(){function t(t,e){this.target=t,this.observedBox=e||O.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=rM(this.target,this.observedBox,!0);return rO(t=this.target)||rT(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),r0=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},r1=new WeakMap,r2=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return -1},r5=function(){function t(){}return t.connect=function(t,e){var n=new r0(t,e);r1.set(t,n)},t.observe=function(t,e,n){var r=r1.get(t),i=0===r.observationTargets.length;0>r2(r.observationTargets,e)&&(i&&rm.push(r),r.observationTargets.push(new rY(e,n&&n.box)),rQ(1),rJ.schedule())},t.unobserve=function(t,e){var n=r1.get(t),r=r2(n.observationTargets,e),i=1===n.observationTargets.length;r>=0&&(i&&rm.splice(rm.indexOf(n),1),n.observationTargets.splice(r,1),rQ(-1))},t.disconnect=function(t){var e=this,n=r1.get(t);
4n.observationTargets.slice().forEach(function(n){return e.unobserve(t,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},t}(),r3=function(){function t(t){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");r5.connect(this,t)}return t.prototype.observe=function(t,e){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!r_(t))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");r5.observe(this,t,e)},t.prototype.unobserve=function(t){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!r_(t))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");r5.unobserve(this,t)},t.prototype.disconnect=function(){r5.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();function r4(t){return C(C({type:K},t),{toJSON:function(){t.onDone,t.onError;var e=N(t,["onDone","onError"]);return C(C({},e),{type:K,src:function(t){if("string"==typeof t){var e={type:t};return e.toString=function(){return t},e}return t}(t.src)})}})}var r9={},r7=function(t){return"#"===t[0]},r8=function(){function t(e,n,r,i){void 0===r&&(r="context"in e?e.context:void 0);var o,a=this;this.config=e,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==i?void 0:i.parent,this.key=this.config.key||(null==i?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||D([this.machine.key],A(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?tr(this.config.states,function(e,n){var r,i=new t(e,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,C(((r={})[i.id]=i,r),i.idMap)),i}):r9;var s=0;(function t(e){var n,r;e.order=s++;try{for(var i=j(tP(e)),o=i.next();!o.done;o=i.next()){var a=o.value;t(a)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}})(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(t){return""===t.event}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=tc(this.config.entry||this.config.onEntry).map(function(t){return tM(t)}),this.onExit=tc(this.config.exit||this.config.onExit).map(function(t){return tM(t)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=tc(this.config.invoke).map(function(t,e){if(tm(t)){var n,r,i=tk(a.id,e);return a.machine.options.services=C(((n={})[i]=t,n),a.machine.options.services),r4({src:i,id:i})}if(tv(t.src)){var i=t.id||tk(a.id,e);return r4(C(C({},t),{id:i,src:t.src}))}if(tm(t.src)||tp(t.src)){var i=t.id||tk(a.id,e);return a.machine.options.services=C(((r={})[i]=t.src,r),a.machine.options.services),r4(C(C({id:i},t),{src:i}))}var o=t.src;return r4(C(C({id:tk(a.id,e)},t),{src:o}))}),this.activities=tc(this.config.activities).concat(this.invoke).map(function(t){return tz(t)}),this.transition=this.transition.bind(this),this.tags=tc(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||(function t(e){var n=[e];return tT(e)?n:n.concat(ts(tR(e).map(t)))}
vendor: 6,148 bytes, line 4
4)(this).forEach(function(t){return t.on})},t.prototype.withConfig=function(e,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,s=r.services,c=r.delays;return new t(this.config,{actions:C(C({},i),e.actions),activities:C(C({},o),e.activities),guards:C(C({},a),e.guards),services:C(C({},s),e.services),delays:C(C({},c),e.delays)},null!=n?n:this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return tp(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:tr(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t},{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=""===t,n=this.transitions.filter(function(n){var r=n.eventType===t;return e?r:r||"*"===n.eventType});return this.__cache.candidates[t]=n,n},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var n=function(e,n){var r,i,o,a=(r=tp(e)?"".concat(t.id,":delay[").concat(n,"]"):e,i=t.id,"".concat(b.After,"(").concat(r,")").concat(i?"#".concat(i):""));return t.onEntry.push({to:(o={delay:e}).to,type:F,event:tp(a)?a:tb(a),delay:o?o.delay:void 0,id:o&&void 0!==o.id?o.id:tp(a)?a.name:Y(a)}),t.onExit.push({type:B,sendId:a}),a};return(th(e)?e.map(function(t,e){var r=n(t.delay,e);return C(C({},t),{event:r})}):ts(Object.keys(e).map(function(t,r){var i=e[t],o=tv(i)?{target:i}:i,a=isNaN(+t)?t:+t,s=n(a,r);return tc(o).map(function(t){return C(C({},t),{event:s,delay:a})})}))).map(function(e){var n=e.delay;return C(C({},t.formatTransition(e)),{delay:n})})},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var r=t instanceof tZ?t.value:te(t,this.delimiter);if(tv(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((e={})[r]=i,e)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,D([],A(ts(o.map(function(t){return n.getStateNode(t).getStateNodes(r[t])}))),!1)),a},t.prototype.handles=function(t){var e=Y(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=t instanceof tZ?t:tZ.create(t),n=Array.from(tC([],this.getStateNodes(e.value)));return new tZ(C(C({},e),{value:this.resolve(e.value),configuration:n,done:tA(n,this),tags:tD(n),machine:this.machine}))},t.prototype.transitionLeafNode=function(t,e,n){var r=this.getStateNode(t).next(e,n);return r&&r.transitions.length?r:this.next(e,n)},t.prototype.transitionCompoundNode=function(t,e,n){var r=Object.keys(t),i=this.getStateNode(r[0])._transition(t[r[0]],e,n);return i&&i.transitions.length?i:this.next(e,n)},t.prototype.transitionParallelNode=function(t,e,n){var r,i,o={};try{for(var a=j(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];if(u){var l=this.getStateNode(c)._transition(u,e,n);l&&(o[c]=l)}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var f=Object.keys(o).map(function(t){return o[t]}),d=ts(f.map(function(t){return t.transitions}));if(!f.some(function(t){return t.transitions.length>0}))return this.next(e,n);var h=ts(Object.keys(o).map(function(t){return o[t].configuration}));return{transitions:d,exitSet:ts(f.map(function(t){return t.exitSet})),configuration:h,source:e,actions:ts(Object.keys(o).map(function(t){return o[t].actions}))}},t.prototype._transition=function(t,e,n){return tv(t)?this.transitionLeafNode(t,e,n):1===Object.keys(t).length?this.transitionCompoundNode(t,e,n):this.transitionParallelNode(t,e,n)},t.prototype.getTransitionData=function(t,e){return this._transition(t.value,t,tS(e))},t.prototype.next=function(t,e){var n,r,i,o=this,a=e.name,s=[],c=[];try{for(var u=j(this.getCandidates(a)),l=u.next();!l.done;l=u.next()){var f=l.value,d=f.cond,h=f.in,p=t.context,v=!h||(tv(h)&&r7(h)?t.matches(te(this.getStateNodeById(h).path,this.delimiter)):Q(te(h,this.delimiter),to(this.path.slice(0,-2))(t.value))),y=!1;try{y=!d||tx(this.machine,d,p,e,t)}catch(t){throw Error("Unable to evaluate guard '".concat(d.name||d.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(t.message))}if(y&&v){void 0!==f.target&&(c=f.target),s.push.apply(s,D([],A(f.actions),!1)),i=f;break}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(i){if(!c.length)return{transitions:[i],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var g=ts(c.map(function(e){return o.getRelativeStateNodes(e,t.historyValue)})),m=!!i.internal;return{transitions:[i],exitSet:m?[]:ts(c.map(function(t){return o.getPotentiallyReenteringNodes(t)})),configuration:g,source:t,actions:s}}},t.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order)return[this];for(var e=[],n=this;n&&n!==t;)e.push(n),n=n.parent;return n!==t?[]:(e.push(t),e)},t.prototype.getActions=function(t,e,n,r,i,o,a){var s,c,u,l,f=this,d=o?tC([],this.get
4StateNodes(o.value)):[],h=new Set;try{for(var p=j(Array.from(t).sort(function(t,e){return t.order-e.order})),v=p.next();!v.done;v=p.next()){var y=v.value;(!tj(d,y)||tj(n.exitSet,y)||y.parent&&h.has(y.parent))&&h.add(y)}}catch(t){s={error:t}}finally{try{v&&!v.done&&(c=p.return)&&c.call(p)}finally{if(s)throw s.error}}try{for(var g=j(d),m=g.next();!m.done;m=g.next()){var y=m.value;(!tj(t,y)||tj(n.exitSet,y.parent))&&n.exitSet.push(y)}}catch(t){u={error:t}}finally{try{m&&!m.done&&(l=g.return)&&l.call(g)}finally{if(u)throw u.error}}n.exitSet.sort(function(t,e){return e.order-t.order});var S=Array.from(h).sort(function(t,e){return t.order-e.order}),w=new Set(n.exitSet),x=ts(S.map(function(t){var e=[];if("final"!==t.type)return e;var o=t.parent;if(!o.parent)return e;e.push(tF(t.id,t.doneData),tF(o.id,t.doneData?tu(t.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&tR(a).every(function(t){return tA(n.configuration,t)})&&e.push(tF(a.id)),e})),E=S.map(function(t){var e=t.onEntry,n=t.activities.map(function(t){var e;return e=tz(t),{type:b.Start,activity:e,exec:void 0}});return{type:"entry",actions:tV(a?D(D([],A(e),!1),A(n),!1):D(D([],A(n),!1),A(e),!1),f.machine.options.actions)}}).concat({type:"state_done",actions:x.map(function(t){var e;return{type:z,event:"function"==typeof t?t:tb(t),delay:void 0,id:null==e?void 0:e.id}})}),O=Array.from(w).map(function(t){return{type:"exit",actions:tV(D(D([],A(t.onExit),!1),A(t.activities.map(function(t){var e;return e=tp(t)?t:tz(t),{type:b.Stop,activity:e,exec:void 0}})),!1),f.machine.options.actions)}}).concat({type:"transition",actions:tV(n.actions,this.machine.options.actions)}).concat(E);if(e){var k=tV(ts(D([],A(t),!1).sort(function(t,e){return e.order-t.order}).map(function(t){return t.onExit})),this.machine.options.actions).filter(function(t){return!t_(t)});return O.concat({type:"stop",actions:k})}return O},t.prototype.transition=function(t,e,n,r){void 0===t&&(t=this.initialState);var i,o,a=tS(e);if(t instanceof tZ)o=void 0===n?t:this.resolveState(tZ.from(t,n));else{var s=tv(t)?this.resolve(tn(this.getResolvedPath(t))):this.resolve(t),c=null!=n?n:this.machine.context;o=this.resolveState(tZ.from(s,c))}if(this.strict&&!this.events.includes(a.name)&&(i=a.name,!/^(done|error)\./.test(i)))throw Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var u=this._transition(o.value,o,a)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},l=tC([],this.getStateNodes(o.value)),f=u.configuration.length?tC(l,u.configuration):l;return u.configuration=D([],A(f),!1),this.resolveTransition(u,o,o.context,r,a)},t.prototype.resolveRaisedTransition=function(t,e,n,r){var i,o=t.actions;return(t=this.transition(t,e,void 0,r))._event=n,t.event=n.data,(i=t.actions).unshift.apply(i,D([],A(o),!1)),t},t.prototype.resolveTransition=function(t,e,n,r,i){var o,a,s,c,u,l,f=this;void 0===i&&(i=tI);var d=t.configuration,h=!e||t.transitions.length>0,p=h?t.configuration:e?e.configuration:[],v=tA(p,this),y=h?(a=tC([o=this.machine],d),function t(e,n){var r=n.get(e);if(!r)return{};if("compound"===e.type){var i=r[0];if(!i)return{};if(tT(i))return i.key}var o={};return r.forEach(function(e){o[e.key]=t(e,n)}),o}(o,tN(a))):void 0,g=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,m=this.getActions(new Set(p),v,t,n,i,e,r),b=e?C({},e.activities):{};try{for(var S=j(m),w=S.next();!w.done;w=S.next()){var x=w.value;try{for(var E=(u=void 0,j(x.actions)),O=E.next();!O.done;O=E.next()){var k=O.value;k.type===M?b[k.activity.id||k.activity.type]=k:k.type===V&&(b[k.activity.id||k.activity.type]=!1)}}catch(t){u={error:t}}finally{try{O&&!O.done&&(l=E.return)&&l.call(E)}finally{if(u)throw u.error}}}}catch(t){s={error:t}}finally{try{w&&!w.done&&(c=S.return)&&c.call(S)}finally{if(s)throw s.error}}var _=A(tq(this,e,n,i,m,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),T=_[0],P=_[1],R=A(function(t,e){var n,r,i=A([[],[]],2),o=i[0],a=i[1];try{for(var s=j(t),c=s.next();!c.done;c=s.next()){var u=c.value;e(u)?o.push(u):a.push(u)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[o,a]}(T,t_),2),N=R[0],D=R[1],I=T.filter(function(t){var e;return t.type===M&&(null===(e=t.activity)||void 0===e?void 0:e.type)===K}
4).reduce(function(t,e){var n,r,o,a,s,c,u,l;return t[e.activity.id]=(n=e.activity,r=f.machine,o=i,s=tE(n.src),c=null===(a=null==r?void 0:r.options.services)||void 0===a?void 0:a[s.type],u=n.data?tu(n.data,P,o):void 0,(l=c?tQ(c,n.id,u):tJ(n.id)).meta=n,l),t},e?C({},e.children):{}),L=new tZ({value:y||e.value,context:P,_event:i,_sessionid:e?e._sessionid:null,historyValue:y?g?{current:y,states:function t(e,n){return tr(e.states,function(e,r){if(e){var i=(tv(n)?void 0:n[r])||(e?e.current:void 0);if(i)return{current:i,states:t(e,i)}}})}(g,y)}:void 0:e?e.historyValue:void 0,history:!y||t.source?e:void 0,actions:y?D:[],activities:y?b:e?e.activities:{},events:[],configuration:p,transitions:t.transitions,children:I,done:v,tags:tD(p),machine:this}),z=n!==P;L.changed=i.name===W||z;var F=L.history;F&&delete F.history;var B=!v&&(this._transient||d.some(function(t){return t._transient}));if(!h&&(!B||""===i.name))return L;var G=L;if(!v)for(B&&(G=this.resolveRaisedTransition(G,{type:H},i,r));N.length;){var q=N.shift();G=this.resolveRaisedTransition(G,q._event,i,r)}var Z=G.changed||(F?!!G.actions.length||z||typeof F.value!=typeof G.value||!function t(e,n){if(e===n)return!0;if(void 0===e||void 0===n)return!1;if(tv(e)||tv(n))return e===n;var r=Object.keys(e),i=Object.keys(n);return r.length===i.length&&r.every(function(r){return t(e[r],n[r])})}(G.value,F.value):void 0);return G.changed=Z,G.history=F,G},t.prototype.getStateNode=function(t){if(r7(t))return this.machine.getStateNodeById(t);if(!this.states)throw Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var e=this.states[t];if(!e)throw Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return e},t.prototype.getStateNodeById=function(t){var e=r7(t)?t.slice(1):t;if(e===this.id)return this;var n=this.machine.idMap[e];if(!n)throw Error("Child state node '#".concat(e,"' does not exist on machine '").concat(this.id,"'"));return n},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&r7(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var e=tt(t,this.delimiter).slice(),n=this;e.length;){var r=e.shift();if(!r.length)break;n=n.getStateNode(r)}return n},t.prototype.resolve=function(t){var e,n=this;if(!t)return this.initialStateValue||r9;switch(this.type){case"parallel":return tr(this.initialStateValue,function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):r9});case"compound":if(tv(t)){var r=this.getStateNode(t);if("parallel"===r.type||"compound"===r.type)return(e={})[t]=r.initialStateValue,e;return t}if(!Object.keys(t).length)return this.initialStateValue||{};return tr(t,function(t,e){return t?n.getStateNode(e).resolve(t):r9});default:return t||r9}},t.prototype.getResolvedPath=function(t){if(r7(t)){var e=this.machine.idMap[t.slice(1)];if(!e)throw Error("Unable to find state node '".concat(t,"'"));return e.path}return tt(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=ti(this.states,function(t){return t.initialStateValue||r9},function(t){return"history"!==t.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));e=tT(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}else e={};return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){this._init();var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=e?e:this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=tv(e.target)&&r7(e.target)?tn(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t}
4,enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,n){return void 0===n&&(n=!0),n?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return tT(this)?[this]:"compound"!==this.type||this.initial?ts(ta(this.initialStateValue).map(function(e){return t.getFromRelativePath(e)})):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=A(t),n=e[0],r=e.slice(1);if(!this.states)throw Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},t.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:ti(this.states,function(e,n){if(!t)return e.historyValue();var r=tv(t)?void 0:t[n];return e.historyValue(r||e.initialStateValue)},function(t){return!t.history})}},t.prototype.resolveHistory=function(t){var e,n=this;if("history"!==this.type)return[this];var r=this.parent;if(!t){var i=this.target;return i?ts(ta(i).map(function(t){return r.getFromRelativePath(t)})):r.initialStateNodes}var o=(e=r.path,function(t){var n,r,i=t;try{for(var o=j(e),a=o.next();!a.done;a=o.next()){var s=a.value;i=i.states[s]}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i})(t).current;return tv(o)?[r.getStateNode(o)]:ts(ta(o).map(function(t){return"deep"===n.history?r.getFromRelativePath(t):[r.states[t[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,e=ts(Object.keys(this.states).map(function(e){return t.states[e].stateIds}));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){if(this.__cache.events)return this.__cache.events;var t,e,n,r,i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=j(Object.keys(i)),s=a.next();!s.done;s=a.next()){var c=i[s.value];if(c.states)try{for(var u=(n=void 0,j(c.events)),l=u.next();!l.done;l=u.next()){var f=l.value;o.add("".concat(f))}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){return Array.from(new Set(this.transitions.filter(function(t){return!(!t.target&&!t.actions.length&&t.internal)}).map(function(t){return t.eventType})))},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map(function(t){if(!tv(t))return t;var n=t[0]===e.delimiter;if(n&&!e.parent)return e.getStateNodeByPath(t.slice(1));var r=n?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(r);try{return e.parent.getStateNodeByPath(r)}catch(t){throw Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(t.message))}})},t.prototype.formatTransition=function(t){var e=this,n=function(t){if(void 0!==t&&""!==t)return tc(t)}(t.target),r="internal"in t?t.internal:!n||n.some(function(t){return tv(t)&&t[0]===e.delimiter}),i=this.machine.options.guards,o=this.resolveTarget(n),a=C(C({},t),{actions:tV(tc(t.actions)),cond:ty(t.cond,i),target:o,source:this,internal:r,eventType:t.event,toJSON:function(){return C(C({},a),{target:a.target?a.target.map(function(t){return"#".concat(t.id)}):void 0,source:"#".concat(e.id)})}});return a},t.prototype.formatTransitions=function(){var t,e,n,r=this;if(this.config.on){if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=i["*"],a=N(i,["*"]);n=ts(Object.keys(a).map(function(t){return tw(t,a[t])}).concat(tw("*",void 0===o?[]:o)))}}else n=[];var s=this.config.always?tw("",this.config.always):[],c=this.config.onDone?tw(String(tF(this.id)),this.config.onDone):[],u=ts(this.invoke.map(function(t){var e=[];return t.onDone&&e.push.apply(e,D([],A(tw(String(tB(t.id)),t.onDone)),!1)),t.onError&&e.push.apply(e,D([],A(tw(String(tH(t.id)),t.onError)),!1)),e})),l=this.after,f=ts(D(D(D(D([],A(c),!1),A(u),!1),A(n),!1),A(s),!1).map(function(t){return tc(t).map(function(t){return r.formatTransition(t)})}));try{for(var d=j(l),h=d.next();!h.done;h=d.next()){var p=h.value;f.push(p)}}catch(e){t={error:e}}finally{try{h&&!h.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}return f},t}();function r6(){return(r6=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function it(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}var ie="undefined"!=typeof window?_.useLayoutEffect:_.useEffect;function ir(t,e,n){return e=(e=+e)==e?e:0,n=(n=+n)==n?n:0,(t=+t)==t&&(t=(t=t<=n?t:n)>=e?t:e),t}function ii(t){var e=Math.round(t);if(Number.isNaN(t))throw TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return e}var io={box:"border-box"};function ia(t,e){var n=e.label,r=e.enabled,i=e.resizeSourceRef,o=(0,_.useState)(0),a=o[0],s=o[1];(0,_.useDebugValue)(n+": "+a);var c=(0,_.useCallback)(function(t){s(t[0].borderBoxSize[0].blockSize),i.current="element"},[i]);return ie(function(){if(t.current&&r){var e=new r3(c);return e.observe(t.current,io),function(){e.disconnect()}}},[t,c,r]),r?a:0}function is(t){return void 0===t&&(t=1e3),new Promise(function(e){return setTimeout(e,t)})}var ic={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},iu={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},il=(y={id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:r6({},ic,iu)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:r6({},ic,iu)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:r6({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"}
4,entry:[{type:G,assignment:{y:function(t,e){return e.payload.y},velocity:function(t,e){return e.payload.velocity},snapSource:function(t,e){var n=e.payload.source;return void 0===n?"custom":n}}}]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},g={actions:{onOpenCancel:function(t,e){},onSnapCancel:function(t,e){},onResizeCancel:function(t,e){},onCloseCancel:function(t,e){},onOpenEnd:function(t,e){},onSnapEnd:function(t,e){},onRezizeEnd:function(t,e){}},services:{onSnapStart:function(){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},onOpenStart:function(){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},onCloseStart:function(){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},onResizeStart:function(){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},onSnapEnd:function(){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},onOpenEnd:function(){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},onCloseEnd:function(){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},onResizeEnd:function(){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},renderVisuallyHidden:function(t,e){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},activate:function(t,e){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},deactivate:function(t,e){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},openSmoothly:function(t,e){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},openImmediately:function(t,e){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},snapSmoothly:function(t,e){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},resizeSmoothly:function(t,e){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}},closeSmoothly:function(t,e){try{return Promise.resolve(is()).then(function(){})}catch(t){return Promise.reject(t)}}},guards:{initiallyClosed:function(t){return"CLOSED"===t.initialState},initiallyOpen:function(t){return"OPEN"===t.initialState}}},void 0===m&&(m=y.context),new r8(y,g,m)),id=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],ih=["velocity"],ip=["onRest","config"],iv=_.forwardRef(function(t,e){var n,r,i,o,a,s,c,u,l,f,d,h,p,v,y,g,m,b,S,w,x,O,k,T,P,R=t.children,C=t.sibling,N=t.className,j=t.footer,A=t.header,D=t.open,I=t.initialState,L=t.lastSnapRef,M=t.initialFocusRef,V=t.onDismiss,z=t.maxHeight,F=t.defaultSnap,B=void 0===F?ig:F,H=t.snapPoints,G=t.blocking,q=void 0===G||G,Z=t.scrollLocking,K=t.style,$=t.onSpringStart,U=t.onSpringCancel,W=t.onSpringEnd,X=t.reserveScrollBarGap,J=void 0===X?q:X,Q=t.expandOnContentDrag,Y=void 0!==Q&&Q,tt=it(t,id),te=(tu=(tc=(0,_.useState)(!1))[0],tl=tc[1],td=(tf=(0,_.useState)({}))[0],th=tf[1],tp=(0,_.useCallback)(function(t){return th(function(e){var n;return r6({},e,((n={})[t]=!1,n))}),function(){th(function(e){var n;return r6({},e,((n={})[t]=!0,n))})}},[]),(0,_.useEffect)(function(){var t=Object.values(td);0!==t.length&&t.every(Boolean)&&tl(!0)},[td]),{ready:tu,registerReady:tp}),tn=te.ready,tr=te.registerReady,ti=(0,_.useRef)(!1),to=(0,_.useRef)($),ta=(0,_.useRef)(U),ts=(0,_.useRef)(W);(0,_.useEffect)(function(){to.current=$,ta.current=U,ts.current=W},[U,$,W]);var tc,tu,tl,tf,td,th,tp,tv,ty,tg,tm,tb,tS,tw,tx,tE,tO,tk,t_,tT,tP,tR,tC,tN,tj,tA,tD,tI,tL,tM,tV,tz,tF,tB,tH,tG,tq,t$,tU,tW,tX,tJ,tQ,tY,t0,t1,t2,t5,t3,eo,ea,es,ec,eu,el,ef,ed,eh,ep,ev=eA(function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}}),ey=ev[0],eg=ev[1],em=(0,_.useRef)(null),eb=(0,_.useRef)(null),eS=(0,_.useRef)(null),ew=(0,_.useRef)(null),ex=(0,_.useRef)(null),eE=(0,_.useRef)(null),eO=(0,_.useRef)(0),ek=(0,_.useRef)(),e_=(0,_.useRef)(!1),eP=(eh=(0,_.useMemo)(function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null},[]),ep=(0,_.useRef)(null==eh?void 0:eh.matches),(0,_.useDebugValue)(ep.current?"reduce":"no-preference"),(0,_.useEffect)(function(){var t=function(t){ep.current=t.matches};return null==eh||eh.addListener(t),function(){return null==eh?void 0:eh.removeListener(t)}}
4,[eh]),ep),eR=(ty=(tv={targetRef:eb,enabled:tn&&(void 0===Z||Z),reserveScrollBarGap:J}).targetRef,tg=tv.enabled,tm=tv.reserveScrollBarGap,tb=(0,_.useRef)({activate:function(){throw TypeError("Tried to activate scroll lock too early")},deactivate:function(){}}),(0,_.useDebugValue)(tg?"Enabled":"Disabled"),(0,_.useEffect)(function(){if(!tg)return tb.current.deactivate(),void(tb.current={activate:function(){},deactivate:function(){}});var t=ty.current,e=!1;tb.current={activate:function(){e||(e=!0,ry(t,{allowTouchMove:function(t){return t.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:tm}))},deactivate:function(){e&&(e=!1,rg(t))}}},[tg,ty,tm]),tb),eC=(tw=(tS={targetRef:em,enabled:tn&&q}).targetRef,tx=tS.enabled,tE=(0,_.useRef)({activate:function(){throw TypeError("Tried to activate aria hider too early")},deactivate:function(){}}),(0,_.useDebugValue)(tx?"Enabled":"Disabled"),(0,_.useEffect)(function(){if(!tx)return tE.current.deactivate(),void(tE.current={activate:function(){},deactivate:function(){}});var t=tw.current,e=!1,n=[],r=[];tE.current={activate:function(){if(!e){e=!0;var i=t.parentNode;document.querySelectorAll("body > *").forEach(function(t){if(t!==i){var e=t.getAttribute("aria-hidden");null!==e&&"false"!==e||(n.push(e),r.push(t),t.setAttribute("aria-hidden","true"))}})}},deactivate:function(){e&&(e=!1,r.forEach(function(t,e){var r=n[e];null===r?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",r)}),n=[],r=[])}}},[tw,tx]),tE),eN=(tk=(tO={targetRef:em,fallbackRef:eE,initialFocusRef:M||void 0,enabled:tn&&q&&!1!==M}).targetRef,t_=tO.fallbackRef,tT=tO.initialFocusRef,tP=tO.enabled,tR=(0,_.useRef)({activate:function(){throw TypeError("Tried to activate focus trap too early")},deactivate:function(){}}),(0,_.useDebugValue)(tP?"Enabled":"Disabled"),(0,_.useEffect)(function(){if(!tP)return tR.current.deactivate(),void(tR.current={activate:function(){},deactivate:function(){}});var t=t_.current,e=rn(tk.current,{onActivate:void 0,initialFocus:tT?function(){return(null==tT?void 0:tT.current)||t}:void 0,fallbackFocus:t,escapeDeactivates:!1,clickOutsideDeactivates:!1}),n=!1;tR.current={activate:function(){try{return n?Promise.resolve():(n=!0,Promise.resolve(e.activate()).then(function(){return Promise.resolve(new Promise(function(t){return setTimeout(function(){return t(void 0)},0)})).then(function(){})}))}catch(t){return Promise.reject(t)}},deactivate:function(){n&&(n=!1,e.deactivate())}}},[tP,t_,tT,tk]),tR),ej=(t0=(tC={contentRef:eS,controlledMaxHeight:z,footerEnabled:!!j,footerRef:ex,getSnapPoints:void 0===H?im:H,headerEnabled:!1!==A,headerRef:ew,heightRef:eO,lastSnapRef:L,ready:tn,registerReady:tr,resizeSourceRef:ek}).getSnapPoints,t1=tC.heightRef,t2=tC.lastSnapRef,t5=tC.ready,eo=(tV=(tN={contentRef:tC.contentRef,controlledMaxHeight:tC.controlledMaxHeight,footerEnabled:tC.footerEnabled,footerRef:tC.footerRef,headerEnabled:tC.headerEnabled,headerRef:tC.headerRef,registerReady:tC.registerReady,resizeSourceRef:tC.resizeSourceRef}).contentRef,tz=tN.controlledMaxHeight,tF=tN.footerEnabled,tB=tN.footerRef,tH=tN.headerEnabled,tG=tN.headerRef,tq=tN.registerReady,t$=tN.resizeSourceRef,tU=(0,_.useMemo)(function(){return tq("contentHeight")},[tq]),tj=(0,_.useMemo)(function(){return tq("maxHeight")},[tq]),tD=(tA=(0,_.useState)(function(){return ii(tz)||"undefined"!=typeof window?window.innerHeight:0}))[0],tI=tA[1],tL=tD>0,tM=(0,_.useRef)(0),(0,_.useDebugValue)(tz?"controlled":"auto"),(0,_.useEffect)(function(){tL&&tj()},[tL,tj]),ie(function(){if(tz)return tI(ii(tz)),void(t$.current="maxheightprop");var t=function(){tM.current||(tM.current=requestAnimationFrame(function(){tI(window.innerHeight),t$.current="window",tM.current=0}))};return window.addEventListener("resize",t),tI(window.innerHeight),t$.current="window",tj(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(tM.current)}},[tz,tj,t$]),tW=ia(tG,{label:"headerHeight",enabled:tH,resizeSourceRef:t$}),tX=ia(tV,{label:"contentHeight",enabled:!0,resizeSourceRef:t$}),tQ=Math.min(tD-tW-(tJ=ia(tB,{label:"footerHeight",enabled:tF,resizeSourceRef:t$})),tX)+tW+tJ,(0,_.useDebugValue)("minHeight: "+tQ),tY=tX>0,(0,_.useEffect)(function(){tY&&tU()},[tY,tU]),t3={maxHeight:tD,minHeight:tQ,headerHeight:tW,footerHeight:tJ}).maxHeight,ea=t3.minHeight,es=t3.headerHeight,ec=t3.footerHeight,el=(eu=function(t,e){var n=Array.from([].concat(t).map(ii).reduce(function(t,n){return t.add(ir(n,0,e)),t},new Set)),r=Math.min.apply(Math,n);if(Number.isNaN(r))throw TypeError("minSnap is NaN");var i=Math.max.apply(Math,n);if(Number.isNaN(i))throw TypeError("maxSnap is NaN");return{snapPoints:n,minSnap:r,maxSnap:i}}
4(t5?t0({height:t1.current,footerHeight:ec,headerHeight:es,minHeight:ea,maxHeight:eo}):[0],eo)).snapPoints,ef=eu.minSnap,ed=eu.maxSnap,(0,_.useDebugValue)("minSnap: "+ef+", maxSnap:"+ed),{minSnap:ef,maxSnap:ed,findSnap:function(t){var e=ii("function"==typeof t?t({footerHeight:ec,headerHeight:es,height:t1.current,minHeight:ea,maxHeight:eo,snapPoints:el,lastSnap:t2.current}):t);return el.reduce(function(t,n){return Math.abs(n-e)<Math.abs(t-e)?n:t},ef)},maxHeight:eo}),eD=ej.minSnap,eI=ej.maxSnap,eL=ej.maxHeight,eM=ej.findSnap,eV=(0,_.useRef)(eL),ez=(0,_.useRef)(eD),eF=(0,_.useRef)(eI),eB=(0,_.useRef)(eM),eH=(0,_.useRef)(0);ie(function(){eV.current=eL,eF.current=eI,ez.current=eD,eB.current=eM,eH.current=eM(B)},[eM,B,eL,eI,eD]);var eG=(0,_.useCallback)(function(t){var e=t.onRest,n=t.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=it(n,ih),a=it(t,ip);return new Promise(function(t){return eg(r6({},a,{config:r6({velocity:i},o,{mass:1,tension:170,friction:Math.max(26,26+(26-26*i))}),onRest:function(){var n=[].slice.call(arguments);t.apply(void 0,n),null==e||e.apply(void 0,n)}}))})},[eg]),eq=(n={devTools:!1,actions:{onOpenCancel:(0,_.useCallback)(function(){return null==ta.current?void 0:ta.current({type:"OPEN"})},[]),onSnapCancel:(0,_.useCallback)(function(t){return null==ta.current?void 0:ta.current({type:"SNAP",source:t.snapSource})},[]),onCloseCancel:(0,_.useCallback)(function(){return null==ta.current?void 0:ta.current({type:"CLOSE"})},[]),onResizeCancel:(0,_.useCallback)(function(){return null==ta.current?void 0:ta.current({type:"RESIZE",source:ek.current})},[]),onOpenEnd:(0,_.useCallback)(function(){return null==ts.current?void 0:ts.current({type:"OPEN"})},[]),onSnapEnd:(0,_.useCallback)(function(t,e){return null==ts.current?void 0:ts.current({type:"SNAP",source:t.snapSource})},[]),onResizeEnd:(0,_.useCallback)(function(){return null==ts.current?void 0:ts.current({type:"RESIZE",source:ek.current})},[])},context:{initialState:I},services:{onSnapStart:(0,_.useCallback)(function(t,e){try{return Promise.resolve(null==to.current?void 0:to.current({type:"SNAP",source:e.payload.source||"custom"}))}catch(t){return Promise.reject(t)}},[]),onOpenStart:(0,_.useCallback)(function(){try{return Promise.resolve(null==to.current?void 0:to.current({type:"OPEN"}))}catch(t){return Promise.reject(t)}},[]),onCloseStart:(0,_.useCallback)(function(){try{return Promise.resolve(null==to.current?void 0:to.current({type:"CLOSE"}))}catch(t){return Promise.reject(t)}},[]),onResizeStart:(0,_.useCallback)(function(){try{return Promise.resolve(null==to.current?void 0:to.current({type:"RESIZE",source:ek.current}))}catch(t){return Promise.reject(t)}},[]),onSnapEnd:(0,_.useCallback)(function(t,e){try{return Promise.resolve(null==ts.current?void 0:ts.current({type:"SNAP",source:t.snapSource}))}catch(t){return Promise.reject(t)}},[]),onOpenEnd:(0,_.useCallback)(function(){try{return Promise.resolve(null==ts.current?void 0:ts.current({type:"OPEN"}))}catch(t){return Promise.reject(t)}},[]),onCloseEnd:(0,_.useCallback)(function(){try{return Promise.resolve(null==ts.current?void 0:ts.current({type:"CLOSE"}))}catch(t){return Promise.reject(t)}},[]),onResizeEnd:(0,_.useCallback)(function(){try{return Promise.resolve(null==ts.current?void 0:ts.current({type:"RESIZE",source:ek.current}))}catch(t){return Promise.reject(t)}},[]),renderVisuallyHidden:(0,_.useCallback)(function(t,e){try{return Promise.resolve(eG({y:eH.current,ready:0,maxHeight:eV.current,maxSnap:eF.current,minSnap:eH.current,immediate:!0})).then(function(){})}catch(t){return Promise.reject(t)}},[eG]),activate:(0,_.useCallback)(function(t,e){try{return ti.current=!0,Promise.resolve(Promise.all([eR.current.activate(),eN.current.activate(),eC.current.activate()])).then(function(){})}catch(t){return Promise.reject(t)}},[eC,eN,eR]),deactivate:(0,_.useCallback)(function(){try{return eR.current.deactivate(),eN.current.deactivate(),eC.current.deactivate(),ti.current=!1,Promise.resolve()}catch(t){return Promise.reject(t)}},[eC,eN,eR]),openImmediately:(0,_.useCallback)(function(){try{return eO.current=eH.current,Promise.resolve(eG({y:eH.current,ready:1,maxHeight:eV.current,maxSnap:eF.current,minSnap:eH.current,immediate:!0})).then(function(){})}catch(t){return Promise.reject(t)}},[eG]),openSmoothly:(0,_.useCallback)(function(){try{return Promise.resolve(eG({y:0,ready:1,maxHeight:eV.current,maxSnap:eF.current,minSnap:eH.current,immediate:!0})).then(function(){return eO.current=eH.current,Promise.resolve(eG({y:eH.current,ready:1,maxHeight:eV.current,maxSnap:eF.current,minSnap:eH.current,immediate:eP.current})).then(function(){})})}catch(t){return Promise.reject(t)}},[eG,eP]),snapSmoothly:(0,_.useCallback)(function(t,e){try{var n=eB.current(t.y
4);return eO.current=n,L.current=n,Promise.resolve(eG({y:n,ready:1,maxHeight:eV.current,maxSnap:eF.current,minSnap:ez.current,immediate:eP.current,config:{velocity:t.velocity}})).then(function(){})}catch(t){return Promise.reject(t)}},[eG,L,eP]),resizeSmoothly:(0,_.useCallback)(function(){try{var t=eB.current(eO.current);return eO.current=t,L.current=t,Promise.resolve(eG({y:t,ready:1,maxHeight:eV.current,maxSnap:eF.current,minSnap:ez.current,immediate:"element"!==ek.current||eP.current})).then(function(){})}catch(t){return Promise.reject(t)}},[eG,L,eP]),closeSmoothly:(0,_.useCallback)(function(t,e){try{return eG({minSnap:eO.current,immediate:!0}),eO.current=0,Promise.resolve(eG({y:0,maxHeight:eV.current,maxSnap:eF.current,immediate:eP.current})).then(function(){return Promise.resolve(eG({ready:0,immediate:!0})).then(function(){})})}catch(t){return Promise.reject(t)}},[eG,eP])}},r=(0,_.useCallback)(function(t){var e=void 0===t.changed&&Object.keys(t.children).length;(t.changed||e)&&b(t)},[]),void 0===(i=n)&&(i={}),o=t9(function(){return"function"==typeof il?il():il}),a=i.context,s=i.guards,c=i.actions,u=i.activities,l=i.services,f=i.delays,d=i.state,h=er(i,["context","guards","actions","activities","services","delays","state"]),p=t9(function(){return t4(o.withConfig({context:a,guards:s,actions:c,activities:u,services:l,delays:f},function(){return en(en({},o.context),a)}),en({deferEvents:!0},h))}),tK(function(){var t;return r&&(t=p.subscribe(function(t,e,n){if("object"==typeof t)return t;var r=function(){};return{next:t,error:r,complete:r}}(r))),function(){null==t||t.unsubscribe()}},[r]),tK(function(){return p.start(d?tZ.create(d):void 0),function(){p.stop()}},[]),tK(function(){Object.assign(p.machine.options.actions,c),Object.assign(p.machine.options.guards,s),Object.assign(p.machine.options.activities,u),Object.assign(p.machine.options.services,l),Object.assign(p.machine.options.delays,f)},[c,s,u,l,f]),v=(0,_.useRef)([]),y=(0,_.useRef)([]),tK(function(){var t=p.subscribe(function(t){var e,n;if(t.actions.length){var r=t6(function(t,e){var n,r,i=t7([[],[]],2),o=i[0],a=i[1];try{for(var s=t8(t),c=s.next();!c.done;c=s.next()){var u=c.value;e(u)?o.push(u):a.push(u)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[o,a]}(t.actions.filter(function(t){return"function"==typeof t.exec&&"__effect"in t.exec}),function(t){return t.exec.__effect===E.Effect}),2),i=r[0],o=r[1];(e=v.current).push.apply(e,et([],t6(i.map(function(e){return[e,t]})),!1)),(n=y.current).push.apply(n,et([],t6(o.map(function(e){return[e,t]})),!1))}});return function(){t.unsubscribe()}},[]),tK(function(){for(;y.current.length;){var t=t6(y.current.shift(),2);ee(t[0],t[1])}}),(0,_.useEffect)(function(){for(;v.current.length;){var t=t6(v.current.shift(),2);ee(t[0],t[1])}}),m=(g=ei((0,_.useState)(function(){var t=p.machine.initialState;return n.state?tZ.create(n.state):t}),2))[0],b=g[1],[m,p.send,p]),eZ=eq[0],eK=eq[1];(0,_.useEffect)(function(){tn&&eK(D?"OPEN":"CLOSE")},[D,eK,tn]),ie(function(){(eL||eI||eD)&&eK("RESIZE")},[eL,eI,eD,eK]),(0,_.useEffect)(function(){return function(){eR.current.deactivate(),eN.current.deactivate(),eC.current.deactivate()}},[eC,eN,eR]),(0,_.useImperativeHandle)(e,function(){return{snapTo:function(t,e){var n=void 0===e?{}:e,r=n.velocity,i=n.source;eK("SNAP",{payload:{y:eB.current(t),velocity:void 0===r?1:r,source:void 0===i?"custom":i}})},get height(){return eO.current}}},[eK]),(0,_.useEffect)(function(){var t=eb.current,e=function(t){e_.current&&t.preventDefault()},n=function(e){t.scrollTop<0&&(requestAnimationFrame(function(){t.style.overflow="hidden",t.scrollTop=0,t.style.removeProperty("overflow")}),e.preventDefault())};return Y&&(t.addEventListener("scroll",e),t.addEventListener("touchmove",e),t.addEventListener("touchstart",n)),function(){t.removeEventListener("scroll",e),t.removeEventListener("touchmove",e),t.removeEventListener("touchstart",n)}},[Y,eb]);var e$=function(t,e){void 0===e&&(e={}),nw.set("drag",nL);var n,r,i,o,a,s,c,u,l,f=(0,_.useRef)();return f.current||(f.current=(o=[],a=!1,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return a&&r===this&&function(t,e){try{return function t(e,n){if(e===n)return!0;
4if(e&&n&&"object"==typeof e&&"object"==typeof n){var r,i,o,a;if(e.constructor!==n.constructor)return!1;if(Array.isArray(e)){if((r=e.length)!==n.length)return!1;for(i=r;0!=i--;)if(!t(e[i],n[i]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(a=e.entries();!(i=a.next()).done;)if(!n.has(i.value[0]))return!1;for(a=e.entries();!(i=a.next()).done;)if(!t(i.value[1],n.get(i.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(a=e.entries();!(i=a.next()).done;)if(!n.has(i.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(i=r;0!=i--;)if(("_owner"!==o[i]||!e.$$typeof)&&!t(e[o[i]],n[o[i]]))return!1;return!0}return e!=e&&n!=n}(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}(e,o)||(i=nm.apply(this,e),a=!0,r=this,o=e),i})),s={drag:t},c=f.current(e),void 0===u&&(u={}),n=new Set,s.drag&&n.add(nw.get("drag")),s.wheel&&n.add(nw.get("wheel")),s.scroll&&n.add(nw.get("scroll")),s.move&&n.add(nw.get("move")),s.pinch&&n.add(nw.get("pinch")),s.hover&&n.add(nw.get("hover")),((l=_.useMemo(function(){return new n_(n)},[])).config=c,l.handlers=s,l.nativeRefs=u,_.useEffect(l.effect,[]),l.config.domTarget)?nj:l.bind}(function(t){var e=t.args,n=(e=void 0===e?[]:e)[0],r=(n=void 0===n?{}:n).closeOnTap,i=n.isContentDragging,o=t.cancel,a=t.direction[1],s=t.down,c=t.first,u=t.last,l=t.memo,f=void 0===l?ey.y.getValue():l,d=t.tap,h=t.velocity,p=-1*t.movement[1];if(!ti.current)return o(),f;if(V&&void 0!==r&&r&&d)return o(),setTimeout(function(){return V()},0),f;if(d)return f;var v=f+p,y=p*h,g=Math.max(ez.current,Math.min(eF.current,v+2*y));if(!s&&V&&a>0&&v+y<ez.current/2)return o(),V(),f;var m=s?V||ez.current!==eF.current?nr(v,V?0:ez.current,eF.current,.55):v<ez.current?nr(v,ez.current,2*eF.current,.55):nr(v,ez.current/2,eF.current,.55):g;return Y&&void 0!==i&&i?(m>=eF.current&&(m=eF.current),f===eF.current&&eb.current.scrollTop>0&&(m=eF.current),e_.current=m<eF.current):e_.current=!1,c&&eK("DRAG"),u?eK("SNAP",{payload:{y:m,velocity:h>.05?h:1,source:"dragging"}}):eg({y:m,ready:1,maxHeight:eV.current,maxSnap:eF.current,minSnap:ez.current,immediate:!0,config:{velocity:h}}),f},{filterTaps:!0});if(Number.isNaN(eF.current))throw TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ez.current))throw TypeError("minSnapRef is NaN!!");var eU=(w=eT([ey.y,ey.maxHeight],function(t,e){return Math.round(ir(e-t,0,16))+"px"}),x=eT([ey.y,ey.minSnap,ey.maxSnap],function(t,e,n){return ir(t,e,n)+"px"}),O=eT([ey.y,ey.minSnap,ey.maxSnap],function(t,e,n){return t<e?e-t+"px":t>n?n-t+"px":"0px"}),k=eT([ey.y,ey.maxSnap],function(t,e){return t>=e?Math.ceil(t-e):0}),T=eT([ey.y,ey.minSnap],function(t,e){if(!e)return 0;var n=Math.max(e/2-45,0);return ir((t-n)*(1/(Math.min(e/2+45,e)-n)+0),0,1)}),P=eT([ey.y,ey.minSnap],function(t,e){return e?ir(t/e,0,1):0}),(S={})["--rsbs-content-opacity"]=T,S["--rsbs-backdrop-opacity"]=P,S["--rsbs-antigap-scale-y"]=k,S["--rsbs-overlay-translate-y"]=O,S["--rsbs-overlay-rounded"]=w,S["--rsbs-overlay-h"]=x,S);return _.createElement(e7.div,r6({},tt,{"data-rsbs-root":!0,"data-rsbs-state":iy.find(eZ.matches),"data-rsbs-is-blocking":q,"data-rsbs-is-dismissable":!!V,"data-rsbs-has-header":!!A,"data-rsbs-has-footer":!!j,className:N,ref:em,style:r6({},eU,K,{opacity:ey.ready})}),C,q&&_.createElement("div",r6({key:"backdrop","data-rsbs-backdrop":!0},e$({closeOnTap:!0}))),_.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:eE,onKeyDown:function(t){"Escape"===t.key&&(t.stopPropagation(),V&&V())}},!1!==A&&_.createElement("div",r6({key:"header","data-rsbs-header":!0,ref:ew},e$()),A),_.createElement("div",r6({key:"scroll","data-rsbs-scroll":!0,ref:eb},Y?e$({isContentDragging:!0}):{}),_.createElement("div",{"data-rsbs-content":!0,ref:eS},R)),j&&_.createElement("div",r6({key:"footer",ref:ex,"data-rsbs-footer":!0},e$()),j)))}),iy=["closed","opening","open","closing","dragging","snapping","resizing"];function ig(t){var e=t.lastSnap;return null!=e?e:Math.min.apply(Math,t.snapPoints)}function im(t){return t.minHeight}var ib=["onSpringStart","onSpringEnd","skipInitialTransition"],iS=(0,_.forwardRef)(function(t,e){var n=t.onSpringStart,r=t.onSpringEnd,i=t.skipInitialTransition,o=it(t,ib),a=(0,_.useState)(!1),s=a[0],c=a[1],u=(0,_.useRef)(),l=(0,_.useRef)(null),f=(0,_.useRef)(i&&o.open?"OPEN":"CLOSED");ie(function(){if(o.open)return cancelAnimationFrame(u.current),c(!0),function(){f.current="CLOSED"}},[o.open]);var d=(0,_.useCallback)(function(t){return Promise.resolve(null==n?void 0:n(t)).then(function(){"OPEN"===t.type&&cancelAnimationFrame(u.current)})},[n]),h=(0,_.useCallback)(function(t){return Promise.resolve(null==r?void 0:r(t)).then(function(){"CLOSE"===t.type&&(u.current=requestAnimationFrame(function(){return c(!1)}))})},[r]);return s?_.createElement(R,{"data-rsbs-portal":!0},_.createElement(iv,r6({},o,{lastSnapRef:l,ref:e,initialState:f.current,onSpringStart:d,onSpringEnd:h}))):null})},87462:function(t,e,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}n.d(e,{Z:function(){return r}})},63366:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}n.d(e,{Z:function(){return r}})}}]);

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.