var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Nx(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var mw={exports:{}},Nu={},gw={exports:{}},re={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var qs=Symbol.for("react.element"),jx=Symbol.for("react.portal"),Ux=Symbol.for("react.fragment"),zx=Symbol.for("react.strict_mode"),Vx=Symbol.for("react.profiler"),Hx=Symbol.for("react.provider"),$x=Symbol.for("react.context"),Gx=Symbol.for("react.forward_ref"),Wx=Symbol.for("react.suspense"),qx=Symbol.for("react.memo"),Xx=Symbol.for("react.lazy"),$m=Symbol.iterator;function Yx(t){return t===null||typeof t!="object"?null:(t=$m&&t[$m]||t["@@iterator"],typeof t=="function"?t:null)}var yw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_w=Object.assign,ww={};function eo(t,e,n){this.props=t,this.context=e,this.refs=ww,this.updater=n||yw}eo.prototype.isReactComponent={};eo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};eo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function kw(){}kw.prototype=eo.prototype;function Nv(t,e,n){this.props=t,this.context=e,this.refs=ww,this.updater=n||yw}var jv=Nv.prototype=new kw;jv.constructor=Nv;_w(jv,eo.prototype);jv.isPureReactComponent=!0;var Gm=Array.isArray,bw=Object.prototype.hasOwnProperty,Uv={current:null},xw={key:!0,ref:!0,__self:!0,__source:!0};function Sw(t,e,n){var i,r={},a=null,o=null;if(e!=null)for(i in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(a=""+e.key),e)bw.call(e,i)&&!xw.hasOwnProperty(i)&&(r[i]=e[i]);var s=arguments.length-2;if(s===1)r.children=n;else if(1>>1,V=O[L];if(0>>1;Lr(oe,P))Jr(de,oe)?(O[L]=de,O[J]=P,L=J):(O[L]=oe,O[Y]=P,L=Y);else if(Jr(de,P))O[L]=de,O[J]=P,L=J;else break e}}return N}function r(O,N){var P=O.sortIndex-N.sortIndex;return P!==0?P:O.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var f=[],l=[],c=1,u=null,d=3,h=!1,p=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(O){for(var N=n(l);N!==null;){if(N.callback===null)i(l);else if(N.startTime<=O)i(l),N.sortIndex=N.expirationTime,e(f,N);else break;N=n(l)}}function w(O){if(m=!1,_(O),!p)if(n(f)!==null)p=!0,B(k);else{var N=n(l);N!==null&&U(w,N.startTime-O)}}function k(O,N){p=!1,m&&(m=!1,g(S),S=-1),h=!0;var P=d;try{for(_(N),u=n(f);u!==null&&(!(u.expirationTime>N)||O&&!A());){var L=u.callback;if(typeof L=="function"){u.callback=null,d=u.priorityLevel;var V=L(u.expirationTime<=N);N=t.unstable_now(),typeof V=="function"?u.callback=V:u===n(f)&&i(f),_(N)}else i(f);u=n(f)}if(u!==null)var Z=!0;else{var Y=n(l);Y!==null&&U(w,Y.startTime-N),Z=!1}return Z}finally{u=null,d=P,h=!1}}var b=!1,x=null,S=-1,T=5,E=-1;function A(){return!(t.unstable_now()-EO||125L?(O.sortIndex=P,e(l,O),n(f)===null&&O===n(l)&&(m?(g(S),S=-1):m=!0,U(w,P-L))):(O.sortIndex=V,e(f,O),p||h||(p=!0,B(k))),O},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(O){var N=d;return function(){var P=d;d=N;try{return O.apply(this,arguments)}finally{d=P}}}})(Pw);Aw.exports=Pw;var o9=Aw.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var s9=C,Ut=o9;function F(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bh=Object.prototype.hasOwnProperty,f9=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qm={},Xm={};function l9(t){return bh.call(Xm,t)?!0:bh.call(qm,t)?!1:f9.test(t)?Xm[t]=!0:(qm[t]=!0,!1)}function u9(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function d9(t,e,n,i){if(e===null||typeof e>"u"||u9(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function xt(t,e,n,i,r,a,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var ft={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ft[t]=new xt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ft[e]=new xt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ft[t]=new xt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ft[t]=new xt(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ft[t]=new xt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ft[t]=new xt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ft[t]=new xt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ft[t]=new xt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ft[t]=new xt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Vv=/[\-:]([a-z])/g;function Hv(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Vv,Hv);ft[e]=new xt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Vv,Hv);ft[e]=new xt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Vv,Hv);ft[e]=new xt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ft[t]=new xt(t,1,!1,t.toLowerCase(),null,!1,!1)});ft.xlinkHref=new xt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ft[t]=new xt(t,1,!1,t.toLowerCase(),null,!0,!0)});function $v(t,e,n,i){var r=ft.hasOwnProperty(e)?ft[e]:null;(r!==null?r.type!==0:i||!(2s||r[o]!==a[s]){var f=` `+r[o].replace(" at new "," at ");return t.displayName&&f.includes("")&&(f=f.replace("",t.displayName)),f}while(1<=o&&0<=s);break}}}finally{Cd=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Eo(t):""}function c9(t){switch(t.tag){case 5:return Eo(t.type);case 16:return Eo("Lazy");case 13:return Eo("Suspense");case 19:return Eo("SuspenseList");case 0:case 2:case 15:return t=Ad(t.type,!1),t;case 11:return t=Ad(t.type.render,!1),t;case 1:return t=Ad(t.type,!0),t;default:return""}}function Eh(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ia:return"Fragment";case na:return"Portal";case xh:return"Profiler";case Gv:return"StrictMode";case Sh:return"Suspense";case Th:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ow:return(t.displayName||"Context")+".Consumer";case Rw:return(t._context.displayName||"Context")+".Provider";case Wv:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case qv:return e=t.displayName||null,e!==null?e:Eh(t.type)||"Memo";case li:e=t._payload,t=t._init;try{return Eh(t(e))}catch{}}return null}function h9(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Eh(e);case 8:return e===Gv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ri(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Iw(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function p9(t){var e=Iw(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,a.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function cf(t){t._valueTracker||(t._valueTracker=p9(t))}function Bw(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Iw(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Bl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ch(t,e){var n=e.checked;return Ie({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Km(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=Ri(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Dw(t,e){e=e.checked,e!=null&&$v(t,"checked",e,!1)}function Ah(t,e){Dw(t,e);var n=Ri(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ph(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ph(t,e.type,Ri(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Zm(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ph(t,e,n){(e!=="number"||Bl(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Co=Array.isArray;function Ta(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=hf.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ss(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Bo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},v9=["Webkit","ms","Moz","O"];Object.keys(Bo).forEach(function(t){v9.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Bo[e]=Bo[t]})});function Uw(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Bo.hasOwnProperty(t)&&Bo[t]?(""+e).trim():e+"px"}function zw(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=Uw(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var m9=Ie({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oh(t,e){if(e){if(m9[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(F(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(F(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(F(61))}if(e.style!=null&&typeof e.style!="object")throw Error(F(62))}}function Fh(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ih=null;function Xv(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Bh=null,Ea=null,Ca=null;function e0(t){if(t=Ks(t)){if(typeof Bh!="function")throw Error(F(280));var e=t.stateNode;e&&(e=Hu(e),Bh(t.stateNode,t.type,e))}}function Vw(t){Ea?Ca?Ca.push(t):Ca=[t]:Ea=t}function Hw(){if(Ea){var t=Ea,e=Ca;if(Ca=Ea=null,e0(t),e)for(t=0;t>>=0,t===0?32:31-(C9(t)/A9|0)|0}var pf=64,vf=4194304;function Ao(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function jl(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,a=t.pingedLanes,o=n&268435455;if(o!==0){var s=o&~r;s!==0?i=Ao(s):(a&=o,a!==0&&(i=Ao(a)))}else o=n&~r,o!==0?i=Ao(o):a!==0&&(i=Ao(a));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,a=e&-e,r>=a||r===16&&(a&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function Xs(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-un(e),t[e]=n}function O9(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=Lo),l0=" ",u0=!1;function lk(t,e){switch(t){case"keyup":return o5.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uk(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ra=!1;function f5(t,e){switch(t){case"compositionend":return uk(e);case"keypress":return e.which!==32?null:(u0=!0,l0);case"textInput":return t=e.data,t===l0&&u0?null:t;default:return null}}function l5(t,e){if(ra)return t==="compositionend"||!n1&&lk(t,e)?(t=sk(),cl=Jv=mi=null,ra=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=p0(n)}}function pk(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?pk(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function vk(){for(var t=window,e=Bl();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Bl(t.document)}return e}function i1(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function y5(t){var e=vk(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&pk(n.ownerDocument.documentElement,n)){if(i!==null&&i1(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,a=Math.min(i.start,r);i=i.end===void 0?a:Math.min(i.end,r),!t.extend&&a>i&&(r=i,i=a,a=r),r=v0(n,a);var o=v0(n,i);r&&o&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),a>i?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,aa=null,zh=null,jo=null,Vh=!1;function m0(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vh||aa==null||aa!==Bl(i)||(i=aa,"selectionStart"in i&&i1(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),jo&&hs(jo,i)||(jo=i,i=Vl(zh,"onSelect"),0fa||(t.current=Xh[fa],Xh[fa]=null,fa--)}function ye(t,e){fa++,Xh[fa]=t.current,t.current=e}var Oi={},yt=zi(Oi),Ct=zi(!1),Cr=Oi;function La(t,e){var n=t.type.contextTypes;if(!n)return Oi;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},a;for(a in n)r[a]=e[a];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function At(t){return t=t.childContextTypes,t!=null}function $l(){be(Ct),be(yt)}function x0(t,e,n){if(yt.current!==Oi)throw Error(F(168));ye(yt,e),ye(Ct,n)}function Sk(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(F(108,h9(t)||"Unknown",r));return Ie({},n,i)}function Gl(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Oi,Cr=yt.current,ye(yt,t),ye(Ct,Ct.current),!0}function S0(t,e,n){var i=t.stateNode;if(!i)throw Error(F(169));n?(t=Sk(t,e,Cr),i.__reactInternalMemoizedMergedChildContext=t,be(Ct),be(yt),ye(yt,t)):be(Ct),ye(Ct,n)}var Nn=null,$u=!1,Vd=!1;function Tk(t){Nn===null?Nn=[t]:Nn.push(t)}function M5(t){$u=!0,Tk(t)}function Vi(){if(!Vd&&Nn!==null){Vd=!0;var t=0,e=me;try{var n=Nn;for(me=1;t>=o,r-=o,Hn=1<<32-un(e)+r|n<S?(T=x,x=null):T=x.sibling;var E=d(g,x,_[S],w);if(E===null){x===null&&(x=T);break}t&&x&&E.alternate===null&&e(g,x),y=a(E,y,S),b===null?k=E:b.sibling=E,b=E,x=T}if(S===_.length)return n(g,x),Ee&&nr(g,S),k;if(x===null){for(;S<_.length;S++)x=u(g,_[S],w),x!==null&&(y=a(x,y,S),b===null?k=x:b.sibling=x,b=x);return Ee&&nr(g,S),k}for(x=i(g,x);S<_.length;S++)T=h(x,g,S,_[S],w),T!==null&&(t&&T.alternate!==null&&x.delete(T.key===null?S:T.key),y=a(T,y,S),b===null?k=T:b.sibling=T,b=T);return t&&x.forEach(function(A){return e(g,A)}),Ee&&nr(g,S),k}function m(g,y,_,w){var k=fo(_);if(typeof k!="function")throw Error(F(150));if(_=k.call(_),_==null)throw Error(F(151));for(var b=k=null,x=y,S=y=0,T=null,E=_.next();x!==null&&!E.done;S++,E=_.next()){x.index>S?(T=x,x=null):T=x.sibling;var A=d(g,x,E.value,w);if(A===null){x===null&&(x=T);break}t&&x&&A.alternate===null&&e(g,x),y=a(A,y,S),b===null?k=A:b.sibling=A,b=A,x=T}if(E.done)return n(g,x),Ee&&nr(g,S),k;if(x===null){for(;!E.done;S++,E=_.next())E=u(g,E.value,w),E!==null&&(y=a(E,y,S),b===null?k=E:b.sibling=E,b=E);return Ee&&nr(g,S),k}for(x=i(g,x);!E.done;S++,E=_.next())E=h(x,g,S,E.value,w),E!==null&&(t&&E.alternate!==null&&x.delete(E.key===null?S:E.key),y=a(E,y,S),b===null?k=E:b.sibling=E,b=E);return t&&x.forEach(function(I){return e(g,I)}),Ee&&nr(g,S),k}function v(g,y,_,w){if(typeof _=="object"&&_!==null&&_.type===ia&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case df:e:{for(var k=_.key,b=y;b!==null;){if(b.key===k){if(k=_.type,k===ia){if(b.tag===7){n(g,b.sibling),y=r(b,_.props.children),y.return=g,g=y;break e}}else if(b.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===li&&C0(k)===b.type){n(g,b.sibling),y=r(b,_.props),y.ref=po(g,b,_),y.return=g,g=y;break e}n(g,b);break}else e(g,b);b=b.sibling}_.type===ia?(y=wr(_.props.children,g.mode,w,_.key),y.return=g,g=y):(w=wl(_.type,_.key,_.props,null,g.mode,w),w.ref=po(g,y,_),w.return=g,g=w)}return o(g);case na:e:{for(b=_.key;y!==null;){if(y.key===b)if(y.tag===4&&y.stateNode.containerInfo===_.containerInfo&&y.stateNode.implementation===_.implementation){n(g,y.sibling),y=r(y,_.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else e(g,y);y=y.sibling}y=Kd(_,g.mode,w),y.return=g,g=y}return o(g);case li:return b=_._init,v(g,y,b(_._payload),w)}if(Co(_))return p(g,y,_,w);if(fo(_))return m(g,y,_,w);bf(g,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,y!==null&&y.tag===6?(n(g,y.sibling),y=r(y,_),y.return=g,g=y):(n(g,y),y=Yd(_,g.mode,w),y.return=g,g=y),o(g)):n(g,y)}return v}var ja=Pk(!0),Mk=Pk(!1),Xl=zi(null),Yl=null,da=null,s1=null;function f1(){s1=da=Yl=null}function l1(t){var e=Xl.current;be(Xl),t._currentValue=e}function Zh(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Pa(t,e){Yl=t,s1=da=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Et=!0),t.firstContext=null)}function Jt(t){var e=t._currentValue;if(s1!==t)if(t={context:t,memoizedValue:e,next:null},da===null){if(Yl===null)throw Error(F(308));da=t,Yl.dependencies={lanes:0,firstContext:t}}else da=da.next=t;return e}var pr=null;function u1(t){pr===null?pr=[t]:pr.push(t)}function Rk(t,e,n,i){var r=e.interleaved;return r===null?(n.next=n,u1(e)):(n.next=r.next,r.next=n),e.interleaved=n,Jn(t,i)}function Jn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var ui=!1;function d1(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ok(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Wn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Ei(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,ue&2){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,Jn(t,n)}return r=i.interleaved,r===null?(e.next=e,u1(i)):(e.next=r.next,r.next=e),i.interleaved=e,Jn(t,n)}function pl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Kv(t,n)}}function A0(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?r=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?r=a=e:a=a.next=e}else r=a=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Kl(t,e,n,i){var r=t.updateQueue;ui=!1;var a=r.firstBaseUpdate,o=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.shared.pending=null;var f=s,l=f.next;f.next=null,o===null?a=l:o.next=l,o=f;var c=t.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=f))}if(a!==null){var u=r.baseState;o=0,c=l=f=null,s=a;do{var d=s.lane,h=s.eventTime;if((i&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=t,m=s;switch(d=e,h=n,m.tag){case 1:if(p=m.payload,typeof p=="function"){u=p.call(h,u,d);break e}u=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,d=typeof p=="function"?p.call(h,u,d):p,d==null)break e;u=Ie({},u,d);break e;case 2:ui=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,d=r.effects,d===null?r.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=h,f=u):c=c.next=h,o|=d;if(s=s.next,s===null){if(s=r.shared.pending,s===null)break;d=s,s=d.next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}while(!0);if(c===null&&(f=u),r.baseState=f,r.firstBaseUpdate=l,r.lastBaseUpdate=c,e=r.shared.interleaved,e!==null){r=e;do o|=r.lane,r=r.next;while(r!==e)}else a===null&&(r.shared.lanes=0);Mr|=o,t.lanes=o,t.memoizedState=u}}function P0(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var i=$d.transition;$d.transition={};try{t(!1),e()}finally{me=n,$d.transition=i}}function Yk(){return en().memoizedState}function I5(t,e,n){var i=Ai(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Kk(t))Zk(e,n);else if(n=Rk(t,e,n,i),n!==null){var r=kt();dn(n,t,i,r),Qk(n,e,i)}}function B5(t,e,n){var i=Ai(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Kk(t))Zk(e,r);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var o=e.lastRenderedState,s=a(o,n);if(r.hasEagerState=!0,r.eagerState=s,hn(s,o)){var f=e.interleaved;f===null?(r.next=r,u1(e)):(r.next=f.next,f.next=r),e.interleaved=r;return}}catch{}finally{}n=Rk(t,e,r,i),n!==null&&(r=kt(),dn(n,t,i,r),Qk(n,e,i))}}function Kk(t){var e=t.alternate;return t===Oe||e!==null&&e===Oe}function Zk(t,e){Uo=Ql=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Qk(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Kv(t,n)}}var Jl={readContext:Jt,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},D5={readContext:Jt,useCallback:function(t,e){return yn().memoizedState=[t,e===void 0?null:e],t},useContext:Jt,useEffect:R0,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,ml(4194308,4,$k.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ml(4194308,4,t,e)},useInsertionEffect:function(t,e){return ml(4,2,t,e)},useMemo:function(t,e){var n=yn();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=yn();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=I5.bind(null,Oe,t),[i.memoizedState,t]},useRef:function(t){var e=yn();return t={current:t},e.memoizedState=t},useState:M0,useDebugValue:_1,useDeferredValue:function(t){return yn().memoizedState=t},useTransition:function(){var t=M0(!1),e=t[0];return t=F5.bind(null,t[1]),yn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=Oe,r=yn();if(Ee){if(n===void 0)throw Error(F(407));n=n()}else{if(n=e(),et===null)throw Error(F(349));Pr&30||Dk(i,e,n)}r.memoizedState=n;var a={value:n,getSnapshot:e};return r.queue=a,R0(Nk.bind(null,i,a,t),[t]),i.flags|=2048,ks(9,Lk.bind(null,i,a,n,e),void 0,null),n},useId:function(){var t=yn(),e=et.identifierPrefix;if(Ee){var n=$n,i=Hn;n=(i&~(1<<32-un(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=_s++,0<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=o.createElement(n,{is:i.is}):(t=o.createElement(n),n==="select"&&(o=t,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):t=o.createElementNS(t,n),t[kn]=e,t[ms]=i,fb(t,e,!1,!1),e.stateNode=t;e:{switch(o=Fh(n,i),n){case"dialog":we("cancel",t),we("close",t),r=i;break;case"iframe":case"object":case"embed":we("load",t),r=i;break;case"video":case"audio":for(r=0;rVa&&(e.flags|=128,i=!0,vo(a,!1),e.lanes=4194304)}else{if(!i)if(t=Zl(o),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),vo(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ee)return dt(e),null}else 2*Ve()-a.renderingStartTime>Va&&n!==1073741824&&(e.flags|=128,i=!0,vo(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(n=a.last,n!==null?n.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Ve(),e.sibling=null,n=Pe.current,ye(Pe,i?n&1|2:n&1),e):(dt(e),null);case 22:case 23:return T1(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?It&1073741824&&(dt(e),e.subtreeFlags&6&&(e.flags|=8192)):dt(e),null;case 24:return null;case 25:return null}throw Error(F(156,e.tag))}function $5(t,e){switch(a1(e),e.tag){case 1:return At(e.type)&&$l(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ua(),be(Ct),be(yt),p1(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return h1(e),null;case 13:if(be(Pe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(F(340));Na()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return be(Pe),null;case 4:return Ua(),null;case 10:return l1(e.type._context),null;case 22:case 23:return T1(),null;case 24:return null;default:return null}}var Sf=!1,mt=!1,G5=typeof WeakSet=="function"?WeakSet:Set,z=null;function ca(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){je(t,e,i)}else n.current=null}function op(t,e,n){try{n()}catch(i){je(t,e,i)}}var V0=!1;function W5(t,e){if(Hh=Ul,t=vk(),i1(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,f=-1,l=0,c=0,u=t,d=null;t:for(;;){for(var h;u!==n||r!==0&&u.nodeType!==3||(s=o+r),u!==a||i!==0&&u.nodeType!==3||(f=o+i),u.nodeType===3&&(o+=u.nodeValue.length),(h=u.firstChild)!==null;)d=u,u=h;for(;;){if(u===t)break t;if(d===n&&++l===r&&(s=o),d===a&&++c===i&&(f=o),(h=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=h}n=s===-1||f===-1?null:{start:s,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for($h={focusedElem:t,selectionRange:n},Ul=!1,z=e;z!==null;)if(e=z,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,z=t;else for(;z!==null;){e=z;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,v=p.memoizedState,g=e.stateNode,y=g.getSnapshotBeforeUpdate(e.elementType===e.type?m:sn(e.type,m),v);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(w){je(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,z=t;break}z=e.return}return p=V0,V0=!1,p}function zo(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&t)===t){var a=r.destroy;r.destroy=void 0,a!==void 0&&op(e,n,a)}r=r.next}while(r!==i)}}function qu(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function sp(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function db(t){var e=t.alternate;e!==null&&(t.alternate=null,db(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[kn],delete e[ms],delete e[qh],delete e[A5],delete e[P5])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function cb(t){return t.tag===5||t.tag===3||t.tag===4}function H0(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||cb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function fp(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Hl));else if(i!==4&&(t=t.child,t!==null))for(fp(t,e,n),t=t.sibling;t!==null;)fp(t,e,n),t=t.sibling}function lp(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(lp(t,e,n),t=t.sibling;t!==null;)lp(t,e,n),t=t.sibling}var it=null,fn=!1;function oi(t,e,n){for(n=n.child;n!==null;)hb(t,e,n),n=n.sibling}function hb(t,e,n){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(ju,n)}catch{}switch(n.tag){case 5:mt||ca(n,e);case 6:var i=it,r=fn;it=null,oi(t,e,n),it=i,fn=r,it!==null&&(fn?(t=it,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):it.removeChild(n.stateNode));break;case 18:it!==null&&(fn?(t=it,n=n.stateNode,t.nodeType===8?zd(t.parentNode,n):t.nodeType===1&&zd(t,n),ds(t)):zd(it,n.stateNode));break;case 4:i=it,r=fn,it=n.stateNode.containerInfo,fn=!0,oi(t,e,n),it=i,fn=r;break;case 0:case 11:case 14:case 15:if(!mt&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var a=r,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&op(n,e,o),r=r.next}while(r!==i)}oi(t,e,n);break;case 1:if(!mt&&(ca(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(s){je(n,e,s)}oi(t,e,n);break;case 21:oi(t,e,n);break;case 22:n.mode&1?(mt=(i=mt)||n.memoizedState!==null,oi(t,e,n),mt=i):oi(t,e,n);break;default:oi(t,e,n)}}function $0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new G5),e.forEach(function(i){var r=tS.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function an(t,e){var n=e.deletions;if(n!==null)for(var i=0;ir&&(r=o),i&=~a}if(i=r,i=Ve()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*X5(i/1960))-i,10t?16:t,gi===null)var i=!1;else{if(t=gi,gi=null,nu=0,ue&6)throw Error(F(331));var r=ue;for(ue|=4,z=t.current;z!==null;){var a=z,o=a.child;if(z.flags&16){var s=a.deletions;if(s!==null){for(var f=0;fVe()-x1?_r(t,0):b1|=n),Pt(t,e)}function kb(t,e){e===0&&(t.mode&1?(e=vf,vf<<=1,!(vf&130023424)&&(vf=4194304)):e=1);var n=kt();t=Jn(t,e),t!==null&&(Xs(t,e,n),Pt(t,n))}function eS(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),kb(t,n)}function tS(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(F(314))}i!==null&&i.delete(e),kb(t,n)}var bb;bb=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ct.current)Et=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Et=!1,V5(t,e,n);Et=!!(t.flags&131072)}else Et=!1,Ee&&e.flags&1048576&&Ek(e,ql,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;gl(t,e),t=e.pendingProps;var r=La(e,yt.current);Pa(e,n),r=m1(null,e,i,t,r,n);var a=g1();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,At(i)?(a=!0,Gl(e)):a=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,d1(e),r.updater=Wu,e.stateNode=r,r._reactInternals=e,Jh(e,i,t,n),e=np(null,e,i,!0,a,n)):(e.tag=0,Ee&&a&&r1(e),wt(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(gl(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=iS(i),t=sn(i,t),r){case 0:e=tp(null,e,i,t,n);break e;case 1:e=j0(null,e,i,t,n);break e;case 11:e=L0(null,e,i,t,n);break e;case 14:e=N0(null,e,i,sn(i.type,t),n);break e}throw Error(F(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:sn(i,r),tp(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:sn(i,r),j0(t,e,i,r,n);case 3:e:{if(ab(e),t===null)throw Error(F(387));i=e.pendingProps,a=e.memoizedState,r=a.element,Ok(t,e),Kl(e,i,null,n);var o=e.memoizedState;if(i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){r=za(Error(F(423)),e),e=U0(t,e,i,n,r);break e}else if(i!==r){r=za(Error(F(424)),e),e=U0(t,e,i,n,r);break e}else for(Dt=Ti(e.stateNode.containerInfo.firstChild),Nt=e,Ee=!0,ln=null,n=Mk(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Na(),i===r){e=ei(t,e,n);break e}wt(t,e,i,n)}e=e.child}return e;case 5:return Fk(e),t===null&&Kh(e),i=e.type,r=e.pendingProps,a=t!==null?t.memoizedProps:null,o=r.children,Gh(i,r)?o=null:a!==null&&Gh(i,a)&&(e.flags|=32),rb(t,e),wt(t,e,o,n),e.child;case 6:return t===null&&Kh(e),null;case 13:return ob(t,e,n);case 4:return c1(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=ja(e,null,i,n):wt(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:sn(i,r),L0(t,e,i,r,n);case 7:return wt(t,e,e.pendingProps,n),e.child;case 8:return wt(t,e,e.pendingProps.children,n),e.child;case 12:return wt(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,a=e.memoizedProps,o=r.value,ye(Xl,i._currentValue),i._currentValue=o,a!==null)if(hn(a.value,o)){if(a.children===r.children&&!Ct.current){e=ei(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var f=s.firstContext;f!==null;){if(f.context===i){if(a.tag===1){f=Wn(-1,n&-n),f.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?f.next=f:(f.next=c.next,c.next=f),l.pending=f}}a.lanes|=n,f=a.alternate,f!==null&&(f.lanes|=n),Zh(a.return,n,e),s.lanes|=n;break}f=f.next}}else if(a.tag===10)o=a.type===e.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(F(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Zh(o,n,e),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}wt(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,Pa(e,n),r=Jt(r),i=i(r),e.flags|=1,wt(t,e,i,n),e.child;case 14:return i=e.type,r=sn(i,e.pendingProps),r=sn(i.type,r),N0(t,e,i,r,n);case 15:return nb(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:sn(i,r),gl(t,e),e.tag=1,At(i)?(t=!0,Gl(e)):t=!1,Pa(e,n),Jk(e,i,r),Jh(e,i,r,n),np(null,e,i,!0,t,n);case 19:return sb(t,e,n);case 22:return ib(t,e,n)}throw Error(F(156,e.tag))};function xb(t,e){return Kw(t,e)}function nS(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zt(t,e,n,i){return new nS(t,e,n,i)}function C1(t){return t=t.prototype,!(!t||!t.isReactComponent)}function iS(t){if(typeof t=="function")return C1(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Wv)return 11;if(t===qv)return 14}return 2}function Pi(t,e){var n=t.alternate;return n===null?(n=Zt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function wl(t,e,n,i,r,a){var o=2;if(i=t,typeof t=="function")C1(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case ia:return wr(n.children,r,a,e);case Gv:o=8,r|=8;break;case xh:return t=Zt(12,n,e,r|2),t.elementType=xh,t.lanes=a,t;case Sh:return t=Zt(13,n,e,r),t.elementType=Sh,t.lanes=a,t;case Th:return t=Zt(19,n,e,r),t.elementType=Th,t.lanes=a,t;case Fw:return Yu(n,r,a,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Rw:o=10;break e;case Ow:o=9;break e;case Wv:o=11;break e;case qv:o=14;break e;case li:o=16,i=null;break e}throw Error(F(130,t==null?t:typeof t,""))}return e=Zt(o,n,e,r),e.elementType=t,e.type=i,e.lanes=a,e}function wr(t,e,n,i){return t=Zt(7,t,i,e),t.lanes=n,t}function Yu(t,e,n,i){return t=Zt(22,t,i,e),t.elementType=Fw,t.lanes=n,t.stateNode={isHidden:!1},t}function Yd(t,e,n){return t=Zt(6,t,null,e),t.lanes=n,t}function Kd(t,e,n){return e=Zt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function rS(t,e,n,i,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Md(0),this.expirationTimes=Md(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Md(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function A1(t,e,n,i,r,a,o,s,f){return t=new rS(t,e,n,s,f),e===1?(e=1,a===!0&&(e|=8)):e=0,a=Zt(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},d1(a),t}function aS(t,e,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cb)}catch(t){console.error(t)}}Cb(),Cw.exports=Ht;var O1=Cw.exports;const pa=pn(O1);var uS,Q0=O1;uS=Q0.createRoot,Q0.hydrateRoot;/*! * @pixi/constants - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/constants is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */var ti;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(ti||(ti={}));var xs;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(xs||(xs={}));var au;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(au||(au={}));var X;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(X||(X={}));var Gn;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Gn||(Gn={}));var j;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(j||(j={}));var kr;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(kr||(kr={}));var le;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(le||(le={}));var ou;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(ou||(ou={}));var bn;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(bn||(bn={}));var qn;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(qn||(qn={}));var Fi;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Fi||(Fi={}));var Ii;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Ii||(Ii={}));var di;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(di||(di={}));var su;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(su||(su={}));var Lt;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Lt||(Lt={}));var $e;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE",t[t.COLOR=4]="COLOR"})($e||($e={}));var J0;(function(t){t[t.RED=1]="RED",t[t.GREEN=2]="GREEN",t[t.BLUE=4]="BLUE",t[t.ALPHA=8]="ALPHA"})(J0||(J0={}));var Te;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(Te||(Te={}));var Tn;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Tn||(Tn={}));/*! * @pixi/settings - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/settings is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */var dS={createCanvas:function(t,e){var n=document.createElement("canvas");return n.width=t,n.height=e,n},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var t;return(t=document.baseURI)!==null&&t!==void 0?t:window.location.href},fetch:function(t,e){return fetch(t,e)}},Zd=/iPhone/i,eg=/iPod/i,tg=/iPad/i,ng=/\biOS-universal(?:.+)Mac\b/i,Qd=/\bAndroid(?:.+)Mobile\b/i,ig=/Android/i,qr=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Cf=/Silk/i,On=/Windows Phone/i,rg=/\bWindows(?:.+)ARM\b/i,ag=/BlackBerry/i,og=/BB10/i,sg=/Opera Mini/i,fg=/\b(CriOS|Chrome)(?:.+)Mobile/i,lg=/Mobile(?:.+)Firefox\b/i,ug=function(t){return typeof t<"u"&&t.platform==="MacIntel"&&typeof t.maxTouchPoints=="number"&&t.maxTouchPoints>1&&typeof MSStream>"u"};function cS(t){return function(e){return e.test(t)}}function hS(t){var e={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var n=e.userAgent,i=n.split("[FBAN");typeof i[1]<"u"&&(n=i[0]),i=n.split("Twitter"),typeof i[1]<"u"&&(n=i[0]);var r=cS(n),a={apple:{phone:r(Zd)&&!r(On),ipod:r(eg),tablet:!r(Zd)&&(r(tg)||ug(e))&&!r(On),universal:r(ng),device:(r(Zd)||r(eg)||r(tg)||r(ng)||ug(e))&&!r(On)},amazon:{phone:r(qr),tablet:!r(qr)&&r(Cf),device:r(qr)||r(Cf)},android:{phone:!r(On)&&r(qr)||!r(On)&&r(Qd),tablet:!r(On)&&!r(qr)&&!r(Qd)&&(r(Cf)||r(ig)),device:!r(On)&&(r(qr)||r(Cf)||r(Qd)||r(ig))||r(/\bokhttp\b/i)},windows:{phone:r(On),tablet:r(rg),device:r(On)||r(rg)},other:{blackberry:r(ag),blackberry10:r(og),opera:r(sg),firefox:r(lg),chrome:r(fg),device:r(ag)||r(og)||r(sg)||r(lg)||r(fg)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}var mr=hS(globalThis.navigator);function pS(){return!mr.apple.device}function vS(t){var e=!0;if(mr.tablet||mr.phone){if(mr.apple.device){var n=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(n){var i=parseInt(n[1],10);i<11&&(e=!1)}}if(mr.android.device){var n=navigator.userAgent.match(/Android\s([0-9.]*)/);if(n){var i=parseInt(n[1],10);i<7&&(e=!1)}}}return e?t:4}var H={ADAPTER:dS,MIPMAP_TEXTURES:Fi.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Te.NONE,SPRITE_MAX_TEXTURES:vS(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,width:800,height:600,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,antialias:!1,preserveDrawingBuffer:!1},GC_MODE:su.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:qn.CLAMP,SCALE_MODE:bn.LINEAR,PRECISION_VERTEX:Lt.HIGH,PRECISION_FRAGMENT:mr.apple.device?Lt.HIGH:Lt.MEDIUM,CAN_UPLOAD_SAME_BUFFER:pS(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},Ab={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function r(f,l,c){this.fn=f,this.context=l,this.once=c||!1}function a(f,l,c,u,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new r(c,u||f,d),p=n?n+l:l;return f._events[p]?f._events[p].fn?f._events[p]=[f._events[p],h]:f._events[p].push(h):(f._events[p]=h,f._eventsCount++),f}function o(f,l){--f._eventsCount===0?f._events=new i:delete f._events[l]}function s(){this._events=new i,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,u;if(this._eventsCount===0)return l;for(u in c=this._events)e.call(c,u)&&l.push(n?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=n?n+l:l,u=this._events[c];if(!u)return[];if(u.fn)return[u.fn];for(var d=0,h=u.length,p=new Array(h);d80*n){s=l=t[0],f=c=t[1];for(var p=n;pl&&(l=u),d>c&&(c=d);h=Math.max(l-s,c-f),h=h!==0?32767/h:0}return Ss(a,o,n,s,f,h,0),o}function Pb(t,e,n,i,r){var a,o;if(r===mp(t,e,n,i)>0)for(a=e;a=e;a-=i)o=dg(a,t[a],t[a+1],o);return o&&nd(o,o.next)&&(Es(o),o=o.next),o}function Or(t,e){if(!t)return t;e||(e=t);var n=t,i;do if(i=!1,!n.steiner&&(nd(n,n.next)||Me(n.prev,n,n.next)===0)){if(Es(n),n=e=n.prev,n===n.next)break;i=!0}else n=n.next;while(i||n!==e);return e}function Ss(t,e,n,i,r,a,o){if(t){!o&&a&&ES(t,i,r,a);for(var s=t,f,l;t.prev!==t.next;){if(f=t.prev,l=t.next,a?yS(t,i,r,a):gS(t)){e.push(f.i/n|0),e.push(t.i/n|0),e.push(l.i/n|0),Es(t),t=l.next,s=l.next;continue}if(t=l,t===s){o?o===1?(t=_S(Or(t),e,n),Ss(t,e,n,i,r,a,2)):o===2&&wS(t,e,n,i,r,a):Ss(Or(t),e,n,i,r,a,1);break}}}}function gS(t){var e=t.prev,n=t,i=t.next;if(Me(e,n,i)>=0)return!1;for(var r=e.x,a=n.x,o=i.x,s=e.y,f=n.y,l=i.y,c=ra?r>o?r:o:a>o?a:o,h=s>f?s>l?s:l:f>l?f:l,p=i.next;p!==e;){if(p.x>=c&&p.x<=d&&p.y>=u&&p.y<=h&&va(r,s,a,f,o,l,p.x,p.y)&&Me(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function yS(t,e,n,i){var r=t.prev,a=t,o=t.next;if(Me(r,a,o)>=0)return!1;for(var s=r.x,f=a.x,l=o.x,c=r.y,u=a.y,d=o.y,h=sf?s>l?s:l:f>l?f:l,v=c>u?c>d?c:d:u>d?u:d,g=pp(h,p,e,n,i),y=pp(m,v,e,n,i),_=t.prevZ,w=t.nextZ;_&&_.z>=g&&w&&w.z<=y;){if(_.x>=h&&_.x<=m&&_.y>=p&&_.y<=v&&_!==r&&_!==o&&va(s,c,f,u,l,d,_.x,_.y)&&Me(_.prev,_,_.next)>=0||(_=_.prevZ,w.x>=h&&w.x<=m&&w.y>=p&&w.y<=v&&w!==r&&w!==o&&va(s,c,f,u,l,d,w.x,w.y)&&Me(w.prev,w,w.next)>=0))return!1;w=w.nextZ}for(;_&&_.z>=g;){if(_.x>=h&&_.x<=m&&_.y>=p&&_.y<=v&&_!==r&&_!==o&&va(s,c,f,u,l,d,_.x,_.y)&&Me(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;w&&w.z<=y;){if(w.x>=h&&w.x<=m&&w.y>=p&&w.y<=v&&w!==r&&w!==o&&va(s,c,f,u,l,d,w.x,w.y)&&Me(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function _S(t,e,n){var i=t;do{var r=i.prev,a=i.next.next;!nd(r,a)&&Mb(r,i,i.next,a)&&Ts(r,a)&&Ts(a,r)&&(e.push(r.i/n|0),e.push(i.i/n|0),e.push(a.i/n|0),Es(i),Es(i.next),i=t=a),i=i.next}while(i!==t);return Or(i)}function wS(t,e,n,i,r,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&PS(o,s)){var f=Rb(o,s);o=Or(o,o.next),f=Or(f,f.next),Ss(o,e,n,i,r,a,0),Ss(f,e,n,i,r,a,0);return}s=s.next}o=o.next}while(o!==t)}function kS(t,e,n,i){var r=[],a,o,s,f,l;for(a=0,o=e.length;a=n.next.y&&n.next.y!==n.y){var s=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>a&&(a=s,o=n.x=n.x&&n.x>=l&&i!==n.x&&va(ro.x||n.x===o.x&&TS(o,n)))&&(o=n,u=d)),n=n.next;while(n!==f);return o}function TS(t,e){return Me(t.prev,t,e.prev)<0&&Me(e.next,t,t.next)<0}function ES(t,e,n,i){var r=t;do r.z===0&&(r.z=pp(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,CS(r)}function CS(t){var e,n,i,r,a,o,s,f,l=1;do{for(n=t,t=null,a=null,o=0;n;){for(o++,i=n,s=0,e=0;e0||f>0&&i;)s!==0&&(f===0||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,f--),a?a.nextZ=r:t=r,r.prevZ=a,a=r;n=i}a.nextZ=null,l*=2}while(o>1);return t}function pp(t,e,n,i,r){return t=(t-n)*r|0,e=(e-i)*r|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function AS(t){var e=t,n=t;do(e.x=(t-o)*(a-s)&&(t-o)*(i-s)>=(n-o)*(e-s)&&(n-o)*(a-s)>=(r-o)*(i-s)}function PS(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!MS(t,e)&&(Ts(t,e)&&Ts(e,t)&&RS(t,e)&&(Me(t.prev,t,e.prev)||Me(t,e.prev,e))||nd(t,e)&&Me(t.prev,t,t.next)>0&&Me(e.prev,e,e.next)>0)}function Me(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function nd(t,e){return t.x===e.x&&t.y===e.y}function Mb(t,e,n,i){var r=Pf(Me(t,e,n)),a=Pf(Me(t,e,i)),o=Pf(Me(n,i,t)),s=Pf(Me(n,i,e));return!!(r!==a&&o!==s||r===0&&Af(t,n,e)||a===0&&Af(t,i,e)||o===0&&Af(n,t,i)||s===0&&Af(n,e,i))}function Af(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function Pf(t){return t>0?1:t<0?-1:0}function MS(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Mb(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function Ts(t,e){return Me(t.prev,t,t.next)<0?Me(t,e,t.next)>=0&&Me(t,t.prev,e)>=0:Me(t,e,t.prev)<0||Me(t,t.next,e)<0}function RS(t,e){var n=t,i=!1,r=(t.x+e.x)/2,a=(t.y+e.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&r<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next;while(n!==t);return i}function Rb(t,e){var n=new vp(t.i,t.x,t.y),i=new vp(e.i,e.x,e.y),r=t.next,a=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,a.next=i,i.prev=a,i}function dg(t,e,n,i){var r=new vp(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function Es(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function vp(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}td.deviation=function(t,e,n,i){var r=e&&e.length,a=r?e[0]*n:t.length,o=Math.abs(mp(t,0,a,n));if(r)for(var s=0,f=e.length;s0&&(i+=t[r-1].length,n.holes.push(i))}return n};var OS=F1.exports;const Ob=pn(OS);var fu={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */fu.exports;(function(t,e){(function(n){var i=e&&!e.nodeType&&e,r=t&&!t.nodeType&&t,a=typeof vt=="object"&&vt;(a.global===a||a.window===a||a.self===a)&&(n=a);var o,s=2147483647,f=36,l=1,c=26,u=38,d=700,h=72,p=128,m="-",v=/^xn--/,g=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=f-l,k=Math.floor,b=String.fromCharCode,x;function S(P){throw new RangeError(_[P])}function T(P,L){for(var V=P.length,Z=[];V--;)Z[V]=L(P[V]);return Z}function E(P,L){var V=P.split("@"),Z="";V.length>1&&(Z=V[0]+"@",P=V[1]),P=P.replace(y,".");var Y=P.split("."),oe=T(Y,L).join(".");return Z+oe}function A(P){for(var L=[],V=0,Z=P.length,Y,oe;V=55296&&Y<=56319&&V65535&&(L-=65536,V+=b(L>>>10&1023|55296),L=56320|L&1023),V+=b(L),V}).join("")}function D(P){return P-48<10?P-22:P-65<26?P-65:P-97<26?P-97:f}function $(P,L){return P+22+75*(P<26)-((L!=0)<<5)}function R(P,L,V){var Z=0;for(P=V?k(P/d):P>>1,P+=k(P/L);P>w*c>>1;Z+=f)P=k(P/w);return k(Z+(w+1)*P/(P+u))}function B(P){var L=[],V=P.length,Z,Y=0,oe=p,J=h,de,he,Be,De,ce,ae,pe,nt,Q;for(de=P.lastIndexOf(m),de<0&&(de=0),he=0;he=128&&S("not-basic"),L.push(P.charCodeAt(he));for(Be=de>0?de+1:0;Be=V&&S("invalid-input"),pe=D(P.charCodeAt(Be++)),(pe>=f||pe>k((s-Y)/ce))&&S("overflow"),Y+=pe*ce,nt=ae<=J?l:ae>=J+c?c:ae-J,!(pek(s/Q)&&S("overflow"),ce*=Q;Z=L.length+1,J=R(Y-De,Z,De==0),k(Y/Z)>s-oe&&S("overflow"),oe+=k(Y/Z),Y%=Z,L.splice(Y++,0,oe)}return I(L)}function U(P){var L,V,Z,Y,oe,J,de,he,Be,De,ce,ae=[],pe,nt,Q,se;for(P=A(P),pe=P.length,L=p,V=0,oe=h,J=0;J=L&&cek((s-V)/nt)&&S("overflow"),V+=(de-L)*nt,L=de,J=0;Js&&S("overflow"),ce==L){for(he=V,Be=f;De=Be<=oe?l:Be>=oe+c?c:Be-oe,!(he-1e3&&t<1e3||Fb.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var i=t<0?-gg(-t):gg(t);if(i!==t){var r=String(i),a=D1.call(e,r.length+1);return yi.call(r,n,"$&_")+"."+yi.call(yi.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return yi.call(e,n,"$&_")}var _p=DS,wg=_p.custom,kg=Lb(wg)?wg:null,Bb={__proto__:null,double:'"',single:"'"},WS={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},id=function t(e,n,i,r){var a=n||{};if(Ln(a,"quoteStyle")&&!Ln(Bb,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ln(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Ln(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ln(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ln(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return jb(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return s?_g(e,f):f}if(typeof e=="bigint"){var l=String(e)+"n";return s?_g(e,l):l}var c=typeof a.depth>"u"?5:a.depth;if(typeof i>"u"&&(i=0),i>=c&&c>0&&typeof e=="object")return wp(e)?"[Array]":"[Object]";var u=u8(a,i);if(typeof r>"u")r=[];else if(Nb(r,e)>=0)return"[Circular]";function d(D,$,R){if($&&(r=GS.call(r),r.push($)),R){var B={depth:a.depth};return Ln(a,"quoteStyle")&&(B.quoteStyle=a.quoteStyle),t(D,B,i+1,r)}return t(D,a,i+1,r)}if(typeof e=="function"&&!bg(e)){var h=t8(e),p=Mf(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(p.length>0?" { "+wn.call(p,", ")+" }":"")}if(Lb(e)){var m=Ha?yi.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):yp.call(e);return typeof e=="object"&&!Ha?go(m):m}if(s8(e)){for(var v="<"+vg.call(String(e.nodeName)),g=e.attributes||[],y=0;y",v}if(wp(e)){if(e.length===0)return"[]";var _=Mf(e,d);return u&&!l8(_)?"["+kp(_,u)+"]":"[ "+wn.call(_,", ")+" ]"}if(YS(e)){var w=Mf(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Ib.call(e,"cause")?"{ ["+String(e)+"] "+wn.call(mg.call("[cause]: "+d(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+wn.call(w,", ")+" }"}if(typeof e=="object"&&o){if(kg&&typeof e[kg]=="function"&&_p)return _p(e,{depth:c-i});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(n8(e)){var k=[];return cg&&cg.call(e,function(D,$){k.push(d($,e,!0)+" => "+d(D,e))}),xg("Map",lu.call(e),k,u)}if(a8(e)){var b=[];return hg&&hg.call(e,function(D){b.push(d(D,e))}),xg("Set",uu.call(e),b,u)}if(i8(e))return nc("WeakMap");if(o8(e))return nc("WeakSet");if(r8(e))return nc("WeakRef");if(ZS(e))return go(d(Number(e)));if(JS(e))return go(d(gp.call(e)));if(QS(e))return go(US.call(e));if(KS(e))return go(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof vt<"u"&&e===vt)return"{ [object globalThis] }";if(!XS(e)&&!bg(e)){var x=Mf(e,d),S=yg?yg(e)===Object.prototype:e instanceof Object||e.constructor===Object,T=e instanceof Object?"":"null prototype",E=!S&&Wo&&Object(e)===e&&Wo in e?D1.call(Hi(e),8,-1):T?"Object":"",A=S||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",I=A+(E||T?"["+wn.call(mg.call([],E||[],T||[]),": ")+"] ":"");return x.length===0?I+"{}":u?I+"{"+kp(x,u)+"}":I+"{ "+wn.call(x,", ")+" }"}return String(e)};function Db(t,e,n){var i=n.quoteStyle||e,r=Bb[i];return r+t+r}function qS(t){return yi.call(String(t),/"/g,""")}function zr(t){return!Wo||!(typeof t=="object"&&(Wo in t||typeof t[Wo]<"u"))}function wp(t){return Hi(t)==="[object Array]"&&zr(t)}function XS(t){return Hi(t)==="[object Date]"&&zr(t)}function bg(t){return Hi(t)==="[object RegExp]"&&zr(t)}function YS(t){return Hi(t)==="[object Error]"&&zr(t)}function KS(t){return Hi(t)==="[object String]"&&zr(t)}function ZS(t){return Hi(t)==="[object Number]"&&zr(t)}function QS(t){return Hi(t)==="[object Boolean]"&&zr(t)}function Lb(t){if(Ha)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!yp)return!1;try{return yp.call(t),!0}catch{}return!1}function JS(t){if(!t||typeof t!="object"||!gp)return!1;try{return gp.call(t),!0}catch{}return!1}var e8=Object.prototype.hasOwnProperty||function(t){return t in this};function Ln(t,e){return e8.call(t,e)}function Hi(t){return zS.call(t)}function t8(t){if(t.name)return t.name;var e=HS.call(VS.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Nb(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return jb(D1.call(t,0,e.maxStringLength),e)+i}var r=WS[e.quoteStyle||"single"];r.lastIndex=0;var a=yi.call(yi.call(t,r,"\\$1"),/[\x00-\x1f]/g,f8);return Db(a,"single",e)}function f8(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+$S.call(e.toString(16))}function go(t){return"Object("+t+")"}function nc(t){return t+" { ? }"}function xg(t,e,n,i){var r=i?kp(n,i):wn.call(n,", ");return t+" ("+e+") {"+r+"}"}function l8(t){for(var e=0;e=0)return!1;return!0}function u8(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=wn.call(Array(t.indent+1)," ");else return null;return{base:n,prev:wn.call(Array(e+1),n)}}function kp(t,e){if(t.length===0)return"";var n=` `+e.prev+e.base;return n+wn.call(t,","+n)+` `+e.prev}function Mf(t,e){var n=wp(t),i=[];if(n){i.length=t.length;for(var r=0;r"u"||!Ze?ne:Ze(Uint8Array),br={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":Xr&&Ze?Ze([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":ta,"%AsyncGenerator%":ta,"%AsyncGeneratorFunction%":ta,"%AsyncIteratorPrototype%":ta,"%Atomics%":typeof Atomics>"u"?ne:Atomics,"%BigInt%":typeof BigInt>"u"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":aT,"%eval%":eval,"%EvalError%":oT,"%Float16Array%":typeof Float16Array>"u"?ne:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ne:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ne:FinalizationRegistry,"%Function%":Wb,"%GeneratorFunction%":ta,"%Int8Array%":typeof Int8Array>"u"?ne:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ne:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Xr&&Ze?Ze(Ze([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map>"u"?ne:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Xr||!Ze?ne:Ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":rT,"%Object.getOwnPropertyDescriptor%":Cs,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ne:Promise,"%Proxy%":typeof Proxy>"u"?ne:Proxy,"%RangeError%":sT,"%ReferenceError%":fT,"%Reflect%":typeof Reflect>"u"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ne:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Xr||!Ze?ne:Ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Xr&&Ze?Ze(""[Symbol.iterator]()):ne,"%Symbol%":Xr?Symbol:ne,"%SyntaxError%":$a,"%ThrowTypeError%":yT,"%TypedArray%":kT,"%TypeError%":Ra,"%Uint8Array%":typeof Uint8Array>"u"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ne:Uint32Array,"%URIError%":lT,"%WeakMap%":typeof WeakMap>"u"?ne:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ne:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ne:WeakSet,"%Function.prototype.call%":Qs,"%Function.prototype.apply%":qb,"%Object.defineProperty%":gT,"%Object.getPrototypeOf%":_T,"%Math.abs%":uT,"%Math.floor%":dT,"%Math.max%":cT,"%Math.min%":hT,"%Math.pow%":pT,"%Math.round%":vT,"%Math.sign%":mT,"%Reflect.getPrototypeOf%":wT};if(Ze)try{null.error}catch(t){var bT=Ze(Ze(t));br["%Error.prototype%"]=bT}var xT=function t(e){var n;if(e==="%AsyncFunction%")n=dc("async function () {}");else if(e==="%GeneratorFunction%")n=dc("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=dc("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&Ze&&(n=Ze(r.prototype))}return br[e]=n,n},Fg={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Js=ad,du=iT(),ST=Js.call(Qs,Array.prototype.concat),TT=Js.call(qb,Array.prototype.splice),Ig=Js.call(Qs,String.prototype.replace),cu=Js.call(Qs,String.prototype.slice),ET=Js.call(Qs,RegExp.prototype.exec),CT=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,AT=/\\(\\)?/g,PT=function(e){var n=cu(e,0,1),i=cu(e,-1);if(n==="%"&&i!=="%")throw new $a("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&n!=="%")throw new $a("invalid intrinsic syntax, expected opening `%`");var r=[];return Ig(e,CT,function(a,o,s,f){r[r.length]=s?Ig(f,AT,"$1"):o||a}),r},MT=function(e,n){var i=e,r;if(du(Fg,i)&&(r=Fg[i],i="%"+r[0]+"%"),du(br,i)){var a=br[i];if(a===ta&&(a=xT(i)),typeof a>"u"&&!n)throw new Ra("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:a}}throw new $a("intrinsic "+e+" does not exist!")},N1=function(e,n){if(typeof e!="string"||e.length===0)throw new Ra("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ra('"allowMissing" argument must be a boolean');if(ET(/^%?[^%]*%?$/,e)===null)throw new $a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=PT(e),r=i.length>0?i[0]:"",a=MT("%"+r+"%",n),o=a.name,s=a.value,f=!1,l=a.alias;l&&(r=l[0],TT(i,ST([0,1],l)));for(var c=1,u=!0;c=i.length){var m=Cs(s,d);u=!!m,u&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[d]}else u=du(s,d),s=s[d];u&&!f&&(br[o]=s)}}return s},Xb=N1,Yb=Gb,RT=Yb([Xb("%String.prototype.indexOf%")]),Kb=function(e,n){var i=Xb(e,!!n);return typeof i=="function"&&RT(e,".prototype.")>-1?Yb([i]):i},OT=N1,ef=Kb,FT=id,IT=io,Bg=OT("%Map%",!0),BT=ef("Map.prototype.get",!0),DT=ef("Map.prototype.set",!0),LT=ef("Map.prototype.has",!0),NT=ef("Map.prototype.delete",!0),jT=ef("Map.prototype.size",!0),Zb=!!Bg&&function(){var e,n={assert:function(i){if(!n.has(i))throw new IT("Side channel does not contain "+FT(i))},delete:function(i){if(e){var r=NT(e,i);return jT(e)===0&&(e=void 0),r}return!1},get:function(i){if(e)return BT(e,i)},has:function(i){return e?LT(e,i):!1},set:function(i,r){e||(e=new Bg),DT(e,i,r)}};return n},UT=N1,od=Kb,zT=id,Rf=Zb,VT=io,Yr=UT("%WeakMap%",!0),HT=od("WeakMap.prototype.get",!0),$T=od("WeakMap.prototype.set",!0),GT=od("WeakMap.prototype.has",!0),WT=od("WeakMap.prototype.delete",!0),qT=Yr?function(){var e,n,i={assert:function(r){if(!i.has(r))throw new VT("Side channel does not contain "+zT(r))},delete:function(r){if(Yr&&r&&(typeof r=="object"||typeof r=="function")){if(e)return WT(e,r)}else if(Rf&&n)return n.delete(r);return!1},get:function(r){return Yr&&r&&(typeof r=="object"||typeof r=="function")&&e?HT(e,r):n&&n.get(r)},has:function(r){return Yr&&r&&(typeof r=="object"||typeof r=="function")&&e?GT(e,r):!!n&&n.has(r)},set:function(r,a){Yr&&r&&(typeof r=="object"||typeof r=="function")?(e||(e=new Yr),$T(e,r,a)):Rf&&(n||(n=Rf()),n.set(r,a))}};return i}:Rf,XT=io,YT=id,KT=g8,ZT=Zb,QT=qT,JT=QT||ZT||KT,eE=function(){var e,n={assert:function(i){if(!n.has(i))throw new XT("Side channel does not contain "+YT(i))},delete:function(i){return!!e&&e.delete(i)},get:function(i){return e&&e.get(i)},has:function(i){return!!e&&e.has(i)},set:function(i,r){e||(e=JT()),e.set(i,r)}};return n},tE=String.prototype.replace,nE=/%20/g,hc={RFC1738:"RFC1738",RFC3986:"RFC3986"},j1={default:hc.RFC3986,formatters:{RFC1738:function(t){return tE.call(t,nE,"+")},RFC3986:function(t){return String(t)}},RFC1738:hc.RFC1738,RFC3986:hc.RFC3986},iE=j1,pc=Object.prototype.hasOwnProperty,dr=Array.isArray,mn=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),rE=function(e){for(;e.length>1;){var n=e.pop(),i=n.obj[n.prop];if(dr(i)){for(var r=[],a=0;a=vc?o.slice(f,f+vc):o,c=[],u=0;u=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===iE.RFC1738&&(d===40||d===41)){c[c.length]=l.charAt(u);continue}if(d<128){c[c.length]=mn[d];continue}if(d<2048){c[c.length]=mn[192|d>>6]+mn[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=mn[224|d>>12]+mn[128|d>>6&63]+mn[128|d&63];continue}u+=1,d=65536+((d&1023)<<10|l.charCodeAt(u)&1023),c[c.length]=mn[240|d>>18]+mn[128|d>>12&63]+mn[128|d>>6&63]+mn[128|d&63]}s+=c.join("")}return s},lE=function(e){for(var n=[{obj:{o:e},prop:"o"}],i=[],r=0;r"u"&&(k=0)}if(typeof c=="function"?_=c(n,_):_ instanceof Date?_=h(_):i==="comma"&&_n(_)&&(_=xl.maybeMap(_,function(P){return P instanceof Date?h(P):P})),_===null){if(o)return l&&!v?l(n,Xe.encoder,g,"key",p):n;_=""}if(gE(_)||xl.isBuffer(_)){if(l){var S=v?n:l(n,Xe.encoder,g,"key",p);return[m(S)+"="+m(l(_,Xe.encoder,g,"value",p))]}return[m(n)+"="+m(String(_))]}var T=[];if(typeof _>"u")return T;var E;if(i==="comma"&&_n(_))v&&l&&(_=xl.maybeMap(_,l)),E=[{value:_.length>0?_.join(",")||null:void 0}];else if(_n(c))E=c;else{var A=Object.keys(_);E=u?A.sort(u):A}var I=f?String(n).replace(/\./g,"%2E"):String(n),D=r&&_n(_)&&_.length===1?I+"[]":I;if(a&&_n(_)&&_.length===0)return D+"[]";for(var $=0;$"u"?e.encodeDotInKeys===!0?!0:Xe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Xe.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Xe.allowEmptyArrays,arrayFormat:o,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Xe.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?Xe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Xe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Xe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Xe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Xe.encodeValuesOnly,filter:a,format:i,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Xe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Xe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Xe.strictNullHandling}},wE=function(t,e){var n=t,i=_E(e),r,a;typeof i.filter=="function"?(a=i.filter,n=a("",n)):_n(i.filter)&&(a=i.filter,r=a);var o=[];if(typeof n!="object"||n===null)return"";var s=t3[i.arrayFormat],f=s==="comma"&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var l=e3(),c=0;c0?p+h:""},Fr=Jb,bp=Object.prototype.hasOwnProperty,Lg=Array.isArray,Le={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Fr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},kE=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},i3=function(t,e,n){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&n>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},bE="utf8=%26%2310003%3B",xE="utf8=%E2%9C%93",SE=function(e,n){var i={__proto__:null},r=n.ignoreQueryPrefix?e.replace(/^\?/,""):e;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=n.parameterLimit===1/0?void 0:n.parameterLimit,o=r.split(n.delimiter,n.throwOnLimitExceeded?a+1:a);if(n.throwOnLimitExceeded&&o.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var s=-1,f,l=n.charset;if(n.charsetSentinel)for(f=0;f-1&&(p=Lg(p)?[p]:p);var m=bp.call(i,h);m&&n.duplicates==="combine"?i[h]=Fr.combine(i[h],p):(!m||n.duplicates==="last")&&(i[h]=p)}return i},TE=function(t,e,n,i){var r=0;if(t.length>0&&t[t.length-1]==="[]"){var a=t.slice(0,-1).join("");r=Array.isArray(e)&&e[a]?e[a].length:0}for(var o=i?e:i3(e,n,r),s=t.length-1;s>=0;--s){var f,l=t[s];if(l==="[]"&&n.parseArrays)f=n.allowEmptyArrays&&(o===""||n.strictNullHandling&&o===null)?[]:Fr.combine([],o);else{f=n.plainObjects?{__proto__:null}:{};var c=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);!n.parseArrays&&u===""?f={0:o}:!isNaN(d)&&l!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(f=[],f[d]=o):u!=="__proto__"&&(f[u]=o)}o=f}return o},EE=function(e,n,i,r){if(e){var a=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,f=i.depth>0&&o.exec(a),l=f?a.slice(0,f.index):a,c=[];if(l){if(!i.plainObjects&&bp.call(Object.prototype,l)&&!i.allowPrototypes)return;c.push(l)}for(var u=0;i.depth>0&&(f=s.exec(a))!==null&&u"u"?Le.charset:e.charset,i=typeof e.duplicates>"u"?Le.duplicates:e.duplicates;if(i!=="combine"&&i!=="first"&&i!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var r=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Le.allowDots:!!e.allowDots;return{allowDots:r,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Le.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Le.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Le.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Le.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Le.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Le.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Le.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Le.decoder,delimiter:typeof e.delimiter=="string"||Fr.isRegExp(e.delimiter)?e.delimiter:Le.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Le.depth,duplicates:i,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Le.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Le.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Le.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Le.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Le.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},AE=function(t,e){var n=CE(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?{__proto__:null}:{};for(var i=typeof t=="string"?SE(t,n):t,r=n.plainObjects?{__proto__:null}:{},a=Object.keys(i),o=0;o",'"',"`"," ","\r",` `," "],NE=["{","}","|","\\","^","`"].concat(LE),xp=["'"].concat(NE),Ng=["%","/","?",";","#"].concat(xp),jg=["/","?","#"],jE=255,Ug=/^[+a-z0-9A-Z_-]{0,63}$/,UE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zE={javascript:!0,"javascript:":!0},Sp={javascript:!0,"javascript:":!0},Oa={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Tp=OE;function sd(t,e,n){if(t&&typeof t=="object"&&t instanceof cn)return t;var i=new cn;return i.parse(t,e,n),i}cn.prototype.parse=function(t,e,n){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),r=i!==-1&&i127?k+="x":k+=w[b];if(!k.match(Ug)){var S=y.slice(0,h),T=y.slice(h+1),E=w.match(UE);E&&(S.push(E[1]),T.unshift(E[2])),T.length&&(s="/"+T.join(".")+s),this.hostname=S.join(".");break}}}this.hostname.length>jE?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=FE.toASCII(this.hostname));var A=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+A,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!zE[c])for(var h=0,_=xp.length;h<_;h++){var D=xp[h];if(s.indexOf(D)!==-1){var $=encodeURIComponent(D);$===D&&($=escape(D)),s=s.split(D).join($)}}var R=s.indexOf("#");R!==-1&&(this.hash=s.substr(R),s=s.slice(0,R));var B=s.indexOf("?");if(B!==-1?(this.search=s.substr(B),this.query=s.substr(B+1),e&&(this.query=Tp.parse(this.query)),s=s.slice(0,B)):e&&(this.search="",this.query={}),s&&(this.pathname=s),Oa[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var A=this.pathname||"",U=this.search||"";this.path=A+U}return this.href=this.format(),this};function VE(t){return typeof t=="string"&&(t=sd(t)),t instanceof cn?t.format():cn.prototype.format.call(t)}cn.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",i=this.hash||"",r=!1,a="";this.host?r=t+this.host:this.hostname&&(r=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(a=Tp.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var o=this.search||a&&"?"+a||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||Oa[e])&&r!==!1?(r="//"+(r||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):r||(r=""),i&&i.charAt(0)!=="#"&&(i="#"+i),o&&o.charAt(0)!=="?"&&(o="?"+o),n=n.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),o=o.replace("#","%23"),e+r+n+o+i};function HE(t,e){return sd(t,!1,!0).resolve(e)}cn.prototype.resolve=function(t){return this.resolveObject(sd(t,!1,!0)).format()};cn.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new cn;e.parse(t,!1,!0),t=e}for(var n=new cn,i=Object.keys(this),r=0;r0?n.host.split("@"):!1;k&&(n.auth=k.shift(),n.hostname=k.shift(),n.host=n.hostname)}return n.search=t.search,n.query=t.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!y.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var b=y.slice(-1)[0],x=(n.host||t.host||y.length>1)&&(b==="."||b==="..")||b==="",S=0,T=y.length;T>=0;T--)b=y[T],b==="."?y.splice(T,1):b===".."?(y.splice(T,1),S++):S&&(y.splice(T,1),S--);if(!v&&!g)for(;S--;S)y.unshift("..");v&&y[0]!==""&&(!y[0]||y[0].charAt(0)!=="/")&&y.unshift(""),x&&y.join("/").substr(-1)!=="/"&&y.push("");var E=y[0]===""||y[0]&&y[0].charAt(0)==="/";if(w){n.hostname=E?"":y.length?y.shift():"",n.host=n.hostname;var k=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;k&&(n.auth=k.shift(),n.hostname=k.shift(),n.host=n.hostname)}return v=v||n.host&&y.length,v&&!E&&y.unshift(""),y.length>0?n.pathname=y.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n};cn.prototype.parseHost=function(){var t=this.host,e=BE.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var $E=sd,GE=HE,WE=VE;/*! * @pixi/utils - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/utils is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */var Mo={parse:$E,format:WE,resolve:GE};H.RETINA_PREFIX=/@([0-9\.]+)x/;H.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var zg=!1,Vg="6.5.10";function qE(t){var e;if(!zg){if(H.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var n=[` %c %c %c PixiJS `+Vg+" - ✰ "+t+` ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ `,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(e=globalThis.console).log.apply(e,n)}else globalThis.console&&globalThis.console.log("PixiJS "+Vg+" - "+t+" - http://www.pixijs.com/");zg=!0}}var gc;function XE(){return typeof gc>"u"&&(gc=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:H.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!H.ADAPTER.getWebGLRenderingContext())return!1;var n=H.ADAPTER.createCanvas(),i=n.getContext("webgl",e)||n.getContext("experimental-webgl",e),r=!!(i&&i.getContextAttributes().stencil);if(i){var a=i.getExtension("WEBGL_lose_context");a&&a.loseContext()}return i=null,r}catch{return!1}}()),gc}var YE="#f0f8ff",KE="#faebd7",ZE="#00ffff",QE="#7fffd4",JE="#f0ffff",eC="#f5f5dc",tC="#ffe4c4",nC="#000000",iC="#ffebcd",rC="#0000ff",aC="#8a2be2",oC="#a52a2a",sC="#deb887",fC="#5f9ea0",lC="#7fff00",uC="#d2691e",dC="#ff7f50",cC="#6495ed",hC="#fff8dc",pC="#dc143c",vC="#00ffff",mC="#00008b",gC="#008b8b",yC="#b8860b",_C="#a9a9a9",wC="#006400",kC="#a9a9a9",bC="#bdb76b",xC="#8b008b",SC="#556b2f",TC="#ff8c00",EC="#9932cc",CC="#8b0000",AC="#e9967a",PC="#8fbc8f",MC="#483d8b",RC="#2f4f4f",OC="#2f4f4f",FC="#00ced1",IC="#9400d3",BC="#ff1493",DC="#00bfff",LC="#696969",NC="#696969",jC="#1e90ff",UC="#b22222",zC="#fffaf0",VC="#228b22",HC="#ff00ff",$C="#dcdcdc",GC="#f8f8ff",WC="#daa520",qC="#ffd700",XC="#808080",YC="#008000",KC="#adff2f",ZC="#808080",QC="#f0fff0",JC="#ff69b4",e7="#cd5c5c",t7="#4b0082",n7="#fffff0",i7="#f0e68c",r7="#fff0f5",a7="#e6e6fa",o7="#7cfc00",s7="#fffacd",f7="#add8e6",l7="#f08080",u7="#e0ffff",d7="#fafad2",c7="#d3d3d3",h7="#90ee90",p7="#d3d3d3",v7="#ffb6c1",m7="#ffa07a",g7="#20b2aa",y7="#87cefa",_7="#778899",w7="#778899",k7="#b0c4de",b7="#ffffe0",x7="#00ff00",S7="#32cd32",T7="#faf0e6",E7="#ff00ff",C7="#800000",A7="#66cdaa",P7="#0000cd",M7="#ba55d3",R7="#9370db",O7="#3cb371",F7="#7b68ee",I7="#00fa9a",B7="#48d1cc",D7="#c71585",L7="#191970",N7="#f5fffa",j7="#ffe4e1",U7="#ffe4b5",z7="#ffdead",V7="#000080",H7="#fdf5e6",$7="#808000",G7="#6b8e23",W7="#ffa500",q7="#ff4500",X7="#da70d6",Y7="#eee8aa",K7="#98fb98",Z7="#afeeee",Q7="#db7093",J7="#ffefd5",eA="#ffdab9",tA="#cd853f",nA="#ffc0cb",iA="#dda0dd",rA="#b0e0e6",aA="#800080",oA="#663399",sA="#ff0000",fA="#bc8f8f",lA="#4169e1",uA="#8b4513",dA="#fa8072",cA="#f4a460",hA="#2e8b57",pA="#fff5ee",vA="#a0522d",mA="#c0c0c0",gA="#87ceeb",yA="#6a5acd",_A="#708090",wA="#708090",kA="#fffafa",bA="#00ff7f",xA="#4682b4",SA="#d2b48c",TA="#008080",EA="#d8bfd8",CA="#ff6347",AA="#40e0d0",PA="#ee82ee",MA="#f5deb3",RA="#ffffff",OA="#f5f5f5",FA="#ffff00",IA="#9acd32",BA={aliceblue:YE,antiquewhite:KE,aqua:ZE,aquamarine:QE,azure:JE,beige:eC,bisque:tC,black:nC,blanchedalmond:iC,blue:rC,blueviolet:aC,brown:oC,burlywood:sC,cadetblue:fC,chartreuse:lC,chocolate:uC,coral:dC,cornflowerblue:cC,cornsilk:hC,crimson:pC,cyan:vC,darkblue:mC,darkcyan:gC,darkgoldenrod:yC,darkgray:_C,darkgreen:wC,darkgrey:kC,darkkhaki:bC,darkmagenta:xC,darkolivegreen:SC,darkorange:TC,darkorchid:EC,darkred:CC,darksalmon:AC,darkseagreen:PC,darkslateblue:MC,darkslategray:RC,darkslategrey:OC,darkturquoise:FC,darkviolet:IC,deeppink:BC,deepskyblue:DC,dimgray:LC,dimgrey:NC,dodgerblue:jC,firebrick:UC,floralwhite:zC,forestgreen:VC,fuchsia:HC,gainsboro:$C,ghostwhite:GC,goldenrod:WC,gold:qC,gray:XC,green:YC,greenyellow:KC,grey:ZC,honeydew:QC,hotpink:JC,indianred:e7,indigo:t7,ivory:n7,khaki:i7,lavenderblush:r7,lavender:a7,lawngreen:o7,lemonchiffon:s7,lightblue:f7,lightcoral:l7,lightcyan:u7,lightgoldenrodyellow:d7,lightgray:c7,lightgreen:h7,lightgrey:p7,lightpink:v7,lightsalmon:m7,lightseagreen:g7,lightskyblue:y7,lightslategray:_7,lightslategrey:w7,lightsteelblue:k7,lightyellow:b7,lime:x7,limegreen:S7,linen:T7,magenta:E7,maroon:C7,mediumaquamarine:A7,mediumblue:P7,mediumorchid:M7,mediumpurple:R7,mediumseagreen:O7,mediumslateblue:F7,mediumspringgreen:I7,mediumturquoise:B7,mediumvioletred:D7,midnightblue:L7,mintcream:N7,mistyrose:j7,moccasin:U7,navajowhite:z7,navy:V7,oldlace:H7,olive:$7,olivedrab:G7,orange:W7,orangered:q7,orchid:X7,palegoldenrod:Y7,palegreen:K7,paleturquoise:Z7,palevioletred:Q7,papayawhip:J7,peachpuff:eA,peru:tA,pink:nA,plum:iA,powderblue:rA,purple:aA,rebeccapurple:oA,red:sA,rosybrown:fA,royalblue:lA,saddlebrown:uA,salmon:dA,sandybrown:cA,seagreen:hA,seashell:pA,sienna:vA,silver:mA,skyblue:gA,slateblue:yA,slategray:_A,slategrey:wA,snow:kA,springgreen:bA,steelblue:xA,tan:SA,teal:TA,thistle:EA,tomato:CA,turquoise:AA,violet:PA,wheat:MA,white:RA,whitesmoke:OA,yellow:FA,yellowgreen:IA};function hu(t,e){return e===void 0&&(e=[]),e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(t&255)/255,e}function r3(t){var e=t.toString(16);return e="000000".substring(0,6-e.length)+e,"#"+e}function DA(t){return typeof t=="string"&&(t=BA[t.toLowerCase()]||t,t[0]==="#"&&(t=t.slice(1))),parseInt(t,16)}function LA(){for(var t=[],e=[],n=0;n<32;n++)t[n]=n,e[n]=n;t[X.NORMAL_NPM]=X.NORMAL,t[X.ADD_NPM]=X.ADD,t[X.SCREEN_NPM]=X.SCREEN,e[X.NORMAL]=X.NORMAL_NPM,e[X.ADD]=X.ADD_NPM,e[X.SCREEN]=X.SCREEN_NPM;var i=[];return i.push(e),i.push(t),i}var a3=LA();function NA(t,e){return a3[e?1:0][t]}function o3(t,e){if(e===1)return(e*255<<24)+t;if(e===0)return 0;var n=t>>16&255,i=t>>8&255,r=t&255;return n=n*e+.5|0,i=i*e+.5|0,r=r*e+.5|0,(e*255<<24)+(n<<16)+(i<<8)+r}function jA(t,e,n,i){return n=n||new Float32Array(4),n[0]=(t>>16&255)/255,n[1]=(t>>8&255)/255,n[2]=(t&255)/255,(i||i===void 0)&&(n[0]*=e,n[1]*=e,n[2]*=e),n[3]=e,n}function s3(t){if(t.BYTES_PER_ELEMENT===4)return t instanceof Float32Array?"Float32Array":t instanceof Uint32Array?"Uint32Array":"Int32Array";if(t.BYTES_PER_ELEMENT===2){if(t instanceof Uint16Array)return"Uint16Array"}else if(t.BYTES_PER_ELEMENT===1&&t instanceof Uint8Array)return"Uint8Array";return null}function pu(t){return t+=t===0?1:0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t+1}function Hg(t){return!(t&t-1)&&!!t}function $g(t){var e=(t>65535?1:0)<<4;t>>>=e;var n=(t>255?1:0)<<3;return t>>>=n,e|=n,n=(t>15?1:0)<<2,t>>>=n,e|=n,n=(t>3?1:0)<<1,t>>>=n,e|=n,e|t>>1}function Sl(t,e,n){var i=t.length,r;if(!(e>=i||n===0)){n=e+n>i?i-e:n;var a=i-n;for(r=e;r"u"?console.warn("PixiJS Deprecation Warning: ",e+` Deprecated since v`+t):(i=i.split(` `).splice(n).join(` `),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e+` Deprecated since v`+t),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",e+` Deprecated since v`+t),console.warn(i))),Gg[e]=!0}}var Wg={},Bn=Object.create(null),Yi=Object.create(null),qg=function(){function t(e,n,i){this.canvas=H.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=i||H.RESOLUTION,this.resize(e,n)}return t.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},t.prototype.resize=function(e,n){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(n*this.resolution)},t.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(t.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),t}();function zA(t){var e=t.width,n=t.height,i=t.getContext("2d",{willReadFrequently:!0}),r=i.getImageData(0,0,e,n),a=r.data,o=a.length,s={top:null,left:null,right:null,bottom:null},f=null,l,c,u;for(l=0;l8)throw new Error("max arguments reached");var l=this,c=l.name,u=l.items;this._aliasCount++;for(var d=0,h=u.length;d0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this},t.prototype.remove=function(e){var n=this.items.indexOf(e);return n!==-1&&(this.ensureNonAliasedItems(),this.items.splice(n,1)),this},t.prototype.contains=function(e){return this.items.indexOf(e)!==-1},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(ot.prototype,{dispatch:{value:ot.prototype.emit},run:{value:ot.prototype.emit}});/*! * @pixi/ticker - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/ticker is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */H.TARGET_FPMS=.06;var As;(function(t){t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY"})(As||(As={}));var yc=function(){function t(e,n,i,r){n===void 0&&(n=null),i===void 0&&(i=0),r===void 0&&(r=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=e,this.context=n,this.priority=i,this.once=r}return t.prototype.match=function(e,n){return n===void 0&&(n=null),this.fn===e&&this.context===n},t.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n},t.prototype.connect=function(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this},t.prototype.destroy=function(e){e===void 0&&(e=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var n=this.next;return this.next=e?null:n,this.previous=null,n},t}(),ci=function(){function t(){var e=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new yc(null,null,1/0),this.deltaMS=1/H.TARGET_FPMS,this.elapsedMS=1/H.TARGET_FPMS,this._tick=function(n){e._requestId=null,e.started&&(e.update(n),e.started&&e._requestId===null&&e._head.next&&(e._requestId=requestAnimationFrame(e._tick)))}}return t.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(e,n,i){return i===void 0&&(i=As.NORMAL),this._addListener(new yc(e,n,i))},t.prototype.addOnce=function(e,n,i){return i===void 0&&(i=As.NORMAL),this._addListener(new yc(e,n,i,!0))},t.prototype._addListener=function(e){var n=this._head.next,i=this._head;if(!n)e.connect(i);else{for(;n;){if(e.priority>n.priority){e.connect(i);break}i=n,n=n.next}e.previous||e.connect(i)}return this._startIfPossible(),this},t.prototype.remove=function(e,n){for(var i=this._head.next;i;)i.match(e,n)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;for(var e=0,n=this._head;n=n.next;)e++;return e},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(e){e===void 0&&(e=performance.now());var n;if(e>this.lastTime){if(n=this.elapsedMS=e-this.lastTime,n>this._maxElapsedMS&&(n=this._maxElapsedMS),n*=this.speed,this._minElapsedMS){var i=e-this._lastFrame|0;if(i=this.x&&e=this.y&&ne.right?e.right:this.right;if(r<=i)return!1;var a=this.ye.bottom?e.bottom:this.bottom;return o>a}var s=this.left,f=this.right,l=this.top,c=this.bottom;if(f<=s||c<=l)return!1;var u=Ff[0].set(e.left,e.top),d=Ff[1].set(e.left,e.bottom),h=Ff[2].set(e.right,e.top),p=Ff[3].set(e.right,e.bottom);if(h.x<=u.x||d.y<=u.y)return!1;var m=Math.sign(n.a*n.d-n.b*n.c);if(m===0||(n.apply(u,u),n.apply(d,d),n.apply(h,h),n.apply(p,p),Math.max(u.x,d.x,h.x,p.x)<=s||Math.min(u.x,d.x,h.x,p.x)>=f||Math.max(u.y,d.y,h.y,p.y)<=l||Math.min(u.y,d.y,h.y,p.y)>=c))return!1;var v=m*(d.y-u.y),g=m*(u.x-d.x),y=v*s+g*l,_=v*f+g*l,w=v*s+g*c,k=v*f+g*c;if(Math.max(y,_,w,k)<=v*u.x+g*u.y||Math.min(y,_,w,k)>=v*p.x+g*p.y)return!1;var b=m*(u.y-h.y),x=m*(h.x-u.x),S=b*s+x*l,T=b*f+x*l,E=b*s+x*c,A=b*f+x*c;return!(Math.max(S,T,E,A)<=b*u.x+x*u.y||Math.min(S,T,E,A)>=b*p.x+x*p.y)},t.prototype.pad=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=e),this.x-=e,this.y-=n,this.width+=e*2,this.height+=n*2,this},t.prototype.fit=function(e){var n=Math.max(this.x,e.x),i=Math.min(this.x+this.width,e.x+e.width),r=Math.max(this.y,e.y),a=Math.min(this.y+this.height,e.y+e.height);return this.x=n,this.width=Math.max(i-n,0),this.y=r,this.height=Math.max(a-r,0),this},t.prototype.ceil=function(e,n){e===void 0&&(e=1),n===void 0&&(n=.001);var i=Math.ceil((this.x+this.width-n)*e)/e,r=Math.ceil((this.y+this.height-n)*e)/e;return this.x=Math.floor((this.x+n)*e)/e,this.y=Math.floor((this.y+n)*e)/e,this.width=i-this.x,this.height=r-this.y,this},t.prototype.enlarge=function(e){var n=Math.min(this.x,e.x),i=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),a=Math.max(this.y+this.height,e.y+e.height);return this.x=n,this.width=i-n,this.y=r,this.height=a-r,this},t.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),GA=function(){function t(e,n,i){e===void 0&&(e=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=e,this.y=n,this.radius=i,this.type=Je.CIRC}return t.prototype.clone=function(){return new t(this.x,this.y,this.radius)},t.prototype.contains=function(e,n){if(this.radius<=0)return!1;var i=this.radius*this.radius,r=this.x-e,a=this.y-n;return r*=r,a*=a,r+a<=i},t.prototype.getBounds=function(){return new te(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)},t.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},t}(),WA=function(){function t(e,n,i,r){e===void 0&&(e=0),n===void 0&&(n=0),i===void 0&&(i=0),r===void 0&&(r=0),this.x=e,this.y=n,this.width=i,this.height=r,this.type=Je.ELIP}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.contains=function(e,n){if(this.width<=0||this.height<=0)return!1;var i=(e-this.x)/this.width,r=(n-this.y)/this.height;return i*=i,r*=r,i+r<=1},t.prototype.getBounds=function(){return new te(this.x-this.width,this.y-this.height,this.width,this.height)},t.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),Tl=function(){function t(){for(var e=arguments,n=[],i=0;in!=c>n&&e<(l-s)*((n-f)/(c-f))+s;u&&(i=!i)}return i},t.prototype.toString=function(){return"[@pixi/math:Polygon"+("closeStroke="+this.closeStroke)+("points="+this.points.reduce(function(e,n){return e+", "+n},"")+"]")},t}(),qA=function(){function t(e,n,i,r,a){e===void 0&&(e=0),n===void 0&&(n=0),i===void 0&&(i=0),r===void 0&&(r=0),a===void 0&&(a=20),this.x=e,this.y=n,this.width=i,this.height=r,this.radius=a,this.type=Je.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(e,n){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&n>=this.y&&n<=this.y+this.height){var i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(n>=this.y+i&&n<=this.y+this.height-i||e>=this.x+i&&e<=this.x+this.width-i)return!0;var r=e-(this.x+i),a=n-(this.y+i),o=i*i;if(r*r+a*a<=o||(r=e-(this.x+this.width-i),r*r+a*a<=o)||(a=n-(this.y+this.height-i),r*r+a*a<=o)||(r=e-(this.x+i),r*r+a*a<=o))return!0}return!1},t.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+("width="+this.width+" height="+this.height+" radius="+this.radius+"]")},t}(),ga=function(){function t(e,n,i,r){i===void 0&&(i=0),r===void 0&&(r=0),this._x=i,this._y=r,this.cb=e,this.scope=n}return t.prototype.clone=function(e,n){return e===void 0&&(e=this.cb),n===void 0&&(n=this.scope),new t(e,n,this._x,this._y)},t.prototype.set=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=e),(this._x!==e||this._y!==n)&&(this._x=e,this._y=n,this.cb.call(this.scope)),this},t.prototype.copyFrom=function(e){return(this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this.cb.call(this.scope)),this},t.prototype.copyTo=function(e){return e.set(this._x,this._y),e},t.prototype.equals=function(e){return e.x===this._x&&e.y===this._y},t.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),t}(),_t=function(){function t(e,n,i,r,a,o){e===void 0&&(e=1),n===void 0&&(n=0),i===void 0&&(i=0),r===void 0&&(r=1),a===void 0&&(a=0),o===void 0&&(o=0),this.array=null,this.a=e,this.b=n,this.c=i,this.d=r,this.tx=a,this.ty=o}return t.prototype.fromArray=function(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]},t.prototype.set=function(e,n,i,r,a,o){return this.a=e,this.b=n,this.c=i,this.d=r,this.tx=a,this.ty=o,this},t.prototype.toArray=function(e,n){this.array||(this.array=new Float32Array(9));var i=n||this.array;return e?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i},t.prototype.apply=function(e,n){n=n||new ge;var i=e.x,r=e.y;return n.x=this.a*i+this.c*r+this.tx,n.y=this.b*i+this.d*r+this.ty,n},t.prototype.applyInverse=function(e,n){n=n||new ge;var i=1/(this.a*this.d+this.c*-this.b),r=e.x,a=e.y;return n.x=this.d*i*r+-this.c*i*a+(this.ty*this.c-this.tx*this.d)*i,n.y=this.a*i*a+-this.b*i*r+(-this.ty*this.a+this.tx*this.b)*i,n},t.prototype.translate=function(e,n){return this.tx+=e,this.ty+=n,this},t.prototype.scale=function(e,n){return this.a*=e,this.d*=n,this.c*=e,this.b*=n,this.tx*=e,this.ty*=n,this},t.prototype.rotate=function(e){var n=Math.cos(e),i=Math.sin(e),r=this.a,a=this.c,o=this.tx;return this.a=r*n-this.b*i,this.b=r*i+this.b*n,this.c=a*n-this.d*i,this.d=a*i+this.d*n,this.tx=o*n-this.ty*i,this.ty=o*i+this.ty*n,this},t.prototype.append=function(e){var n=this.a,i=this.b,r=this.c,a=this.d;return this.a=e.a*n+e.b*r,this.b=e.a*i+e.b*a,this.c=e.c*n+e.d*r,this.d=e.c*i+e.d*a,this.tx=e.tx*n+e.ty*r+this.tx,this.ty=e.tx*i+e.ty*a+this.ty,this},t.prototype.setTransform=function(e,n,i,r,a,o,s,f,l){return this.a=Math.cos(s+l)*a,this.b=Math.sin(s+l)*a,this.c=-Math.sin(s-f)*o,this.d=Math.cos(s-f)*o,this.tx=e-(i*this.a+r*this.c),this.ty=n-(i*this.b+r*this.d),this},t.prototype.prepend=function(e){var n=this.tx;if(e.a!==1||e.b!==0||e.c!==0||e.d!==1){var i=this.a,r=this.c;this.a=i*e.a+this.b*e.c,this.b=i*e.b+this.b*e.d,this.c=r*e.a+this.d*e.c,this.d=r*e.b+this.d*e.d}return this.tx=n*e.a+this.ty*e.c+e.tx,this.ty=n*e.b+this.ty*e.d+e.ty,this},t.prototype.decompose=function(e){var n=this.a,i=this.b,r=this.c,a=this.d,o=e.pivot,s=-Math.atan2(-r,a),f=Math.atan2(i,n),l=Math.abs(s+f);return l<1e-5||Math.abs(Ps-l)<1e-5?(e.rotation=f,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=s,e.skew.y=f),e.scale.x=Math.sqrt(n*n+i*i),e.scale.y=Math.sqrt(r*r+a*a),e.position.x=this.tx+(o.x*n+o.y*r),e.position.y=this.ty+(o.x*i+o.y*a),e},t.prototype.invert=function(){var e=this.a,n=this.b,i=this.c,r=this.d,a=this.tx,o=e*r-n*i;return this.a=r/o,this.b=-n/o,this.c=-i/o,this.d=e/o,this.tx=(i*this.ty-r*a)/o,this.ty=-(e*this.ty-n*a)/o,this},t.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},t.prototype.clone=function(){var e=new t;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},t.prototype.copyTo=function(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},t.prototype.copyFrom=function(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this},t.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(t,"IDENTITY",{get:function(){return new t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"TEMP_MATRIX",{get:function(){return new t},enumerable:!1,configurable:!0}),t}(),rr=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],ar=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],or=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],sr=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],Cp=[],f3=[],If=Math.sign;function XA(){for(var t=0;t<16;t++){var e=[];Cp.push(e);for(var n=0;n<16;n++)for(var i=If(rr[t]*rr[n]+or[t]*ar[n]),r=If(ar[t]*rr[n]+sr[t]*ar[n]),a=If(rr[t]*or[n]+or[t]*sr[n]),o=If(ar[t]*or[n]+sr[t]*sr[n]),s=0;s<16;s++)if(rr[s]===i&&ar[s]===r&&or[s]===a&&sr[s]===o){e.push(s);break}}for(var t=0;t<16;t++){var f=new _t;f.set(rr[t],ar[t],or[t],sr[t],0,0),f3.push(f)}}XA();var Ae={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(t){return rr[t]},uY:function(t){return ar[t]},vX:function(t){return or[t]},vY:function(t){return sr[t]},inv:function(t){return t&8?t&15:-t&7},add:function(t,e){return Cp[t][e]},sub:function(t,e){return Cp[t][Ae.inv(e)]},rotate180:function(t){return t^4},isVertical:function(t){return(t&3)===2},byDirection:function(t,e){return Math.abs(t)*2<=Math.abs(e)?e>=0?Ae.S:Ae.N:Math.abs(e)*2<=Math.abs(t)?t>0?Ae.E:Ae.W:e>0?t>0?Ae.SE:Ae.SW:t>0?Ae.NE:Ae.NW},matrixAppendRotationInv:function(t,e,n,i){n===void 0&&(n=0),i===void 0&&(i=0);var r=f3[Ae.inv(e)];r.tx=n,r.ty=i,t.append(r)}},l3=function(){function t(){this.worldTransform=new _t,this.localTransform=new _t,this.position=new ga(this.onChange,this,0,0),this.scale=new ga(this.onChange,this,1,1),this.pivot=new ga(this.onChange,this,0,0),this.skew=new ga(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return t.prototype.onChange=function(){this._localID++},t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},t.prototype.toString=function(){return"[@pixi/math:Transform "+("position=("+this.position.x+", "+this.position.y+") ")+("rotation="+this.rotation+" ")+("scale=("+this.scale.x+", "+this.scale.y+") ")+("skew=("+this.skew.x+", "+this.skew.y+") ")+"]"},t.prototype.updateLocalTransform=function(){var e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(e){var n=this.localTransform;if(this._localID!==this._currentLocalID&&(n.a=this._cx*this.scale.x,n.b=this._sx*this.scale.x,n.c=this._cy*this.scale.y,n.d=this._sy*this.scale.y,n.tx=this.position.x-(this.pivot.x*n.a+this.pivot.y*n.c),n.ty=this.position.y-(this.pivot.x*n.b+this.pivot.y*n.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){var i=e.worldTransform,r=this.worldTransform;r.a=n.a*i.a+n.b*i.c,r.b=n.a*i.b+n.b*i.d,r.c=n.c*i.a+n.d*i.c,r.d=n.c*i.b+n.d*i.d,r.tx=n.tx*i.a+n.ty*i.c+i.tx,r.ty=n.tx*i.b+n.ty*i.d+i.ty,this._parentID=e._worldID,this._worldID++}},t.prototype.setFromMatrix=function(e){e.decompose(this),this._localID++},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())},enumerable:!1,configurable:!0}),t.IDENTITY=new t,t}();/*! * @pixi/core - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/core is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */H.PREFER_ENV=mr.any?ti.WEBGL:ti.WEBGL2;H.STRICT_TEXTURE_CACHE=!1;var Ap=[];function u3(t,e){if(!t)return null;var n="";if(typeof t=="string"){var i=/\.(\w{3,4})(?:$|\?|#)/i.exec(t);i&&(n=i[1].toLowerCase())}for(var r=Ap.length-1;r>=0;--r){var a=Ap[r];if(a.test&&a.test(t,n))return new a(t,e)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Pp=function(t,e){return Pp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},Pp(t,e)};function _e(t,e){Pp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Mp=function(){return Mp=Object.assign||function(e){for(var n=arguments,i,r=1,a=arguments.length;r0&&c>0,r.textureCacheIds=[],r.destroyed=!1,r.resource=null,r._batchEnabled=0,r._batchLocation=0,r.parentTextureArray=null,r.setResource(n),r}return Object.defineProperty(e.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mipmap",{get:function(){return this._mipmap},set:function(n){this._mipmap!==n&&(this._mipmap=n,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(n){this._scaleMode!==n&&(this._scaleMode=n,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(n){this._wrapMode!==n&&(this._wrapMode=n,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),e.prototype.setStyle=function(n,i){var r;return n!==void 0&&n!==this.scaleMode&&(this.scaleMode=n,r=!0),i!==void 0&&i!==this.mipmap&&(this.mipmap=i,r=!0),r&&this.dirtyStyleId++,this},e.prototype.setSize=function(n,i,r){return r=r||this.resolution,this.setRealSize(n*r,i*r,r)},e.prototype.setRealSize=function(n,i,r){return this.resolution=r||this.resolution,this.width=Math.round(n)/this.resolution,this.height=Math.round(i)/this.resolution,this._refreshPOT(),this.update(),this},e.prototype._refreshPOT=function(){this.isPowerOfTwo=Hg(this.realWidth)&&Hg(this.realHeight)},e.prototype.setResolution=function(n){var i=this.resolution;return i===n?this:(this.resolution=n,this.valid&&(this.width=Math.round(this.width*i)/n,this.height=Math.round(this.height*i)/n,this.emit("update",this)),this._refreshPOT(),this)},e.prototype.setResource=function(n){if(this.resource===n)return this;if(this.resource)throw new Error("Resource can be set only once");return n.bind(this),this.resource=n,this},e.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},e.prototype.onError=function(n){this.emit("error",this,n)},e.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Yi[this.cacheId],delete Bn[this.cacheId],this.cacheId=null),this.dispose(),e.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},e.prototype.dispose=function(){this.emit("dispose",this)},e.prototype.castToBaseTexture=function(){return this},e.from=function(n,i,r){r===void 0&&(r=H.STRICT_TEXTURE_CACHE);var a=typeof n=="string",o=null;if(a)o=n;else{if(!n._pixiId){var s=i&&i.pixiIdPrefix||"pixiid";n._pixiId=s+"_"+Ir()}o=n._pixiId}var f=Yi[o];if(a&&r&&!f)throw new Error('The cacheId "'+o+'" does not exist in BaseTextureCache.');return f||(f=new e(n,i),f.cacheId=o,e.addToCache(f,o)),f},e.fromBuffer=function(n,i,r,a){n=n||new Float32Array(i*r*4);var o=new U1(n,{width:i,height:r}),s=n instanceof Float32Array?le.FLOAT:le.UNSIGNED_BYTE;return new e(o,Object.assign({},KA,a||{width:i,height:r,type:s}))},e.addToCache=function(n,i){i&&(n.textureCacheIds.indexOf(i)===-1&&n.textureCacheIds.push(i),Yi[i]&&console.warn("BaseTexture added to the cache with an id ["+i+"] that already had an entry"),Yi[i]=n)},e.removeFromCache=function(n){if(typeof n=="string"){var i=Yi[n];if(i){var r=i.textureCacheIds.indexOf(n);return r>-1&&i.textureCacheIds.splice(r,1),delete Yi[n],i}}else if(n&&n.textureCacheIds){for(var a=0;a0)if(n.resource)this.addResourceAt(n.resource,i);else throw new Error("CubeResource does not support copying of renderTexture.");else n.target=kr.TEXTURE_CUBE_MAP_POSITIVE_X+i,n.parentTextureArray=this.baseTexture,this.items[i]=n;return n.valid&&!this.valid&&this.resize(n.realWidth,n.realHeight),this.items[i]=n,this},e.prototype.upload=function(n,i,r){for(var a=this.itemDirtyIds,o=0;o)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,e}(Bi),tP=function(t){_e(e,t);function e(n,i){var r=this;if(i=i||{},!(n instanceof HTMLVideoElement)){var a=document.createElement("video");a.setAttribute("preload","auto"),a.setAttribute("webkit-playsinline",""),a.setAttribute("playsinline",""),typeof n=="string"&&(n=[n]);var o=n[0].src||n[0];Bi.crossOrigin(a,o,i.crossorigin);for(var s=0;s2},e.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(ci.shared.add(this.update,this),this._isConnectedToTicker=!0)},e.prototype._onPlayStop=function(){this._isConnectedToTicker&&(ci.shared.remove(this.update,this),this._isConnectedToTicker=!1)},e.prototype._onCanPlay=function(){var n=this.source;n.removeEventListener("canplay",this._onCanPlay),n.removeEventListener("canplaythrough",this._onCanPlay);var i=this.valid;this.resize(n.videoWidth,n.videoHeight),!i&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&n.play()},e.prototype.dispose=function(){this._isConnectedToTicker&&(ci.shared.remove(this.update,this),this._isConnectedToTicker=!1);var n=this.source;n&&(n.removeEventListener("error",this._onError,!0),n.pause(),n.src="",n.load()),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(n){n!==this._autoUpdate&&(this._autoUpdate=n,!this._autoUpdate&&this._isConnectedToTicker?(ci.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(ci.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(n){n!==this._updateFPS&&(this._updateFPS=n)},enumerable:!1,configurable:!0}),e.test=function(n,i){return globalThis.HTMLVideoElement&&n instanceof HTMLVideoElement||e.TYPES.indexOf(i)>-1},e.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],e.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},e}(Bi),nP=function(t){_e(e,t);function e(n){return t.call(this,n)||this}return e.test=function(n){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&n instanceof ImageBitmap},e}(Bi);Ap.push(c3,nP,QA,tP,eP,U1,JA,ZA);var iP=function(t){_e(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.upload=function(n,i,r){var a=n.gl;a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===Ii.UNPACK);var o=i.realWidth,s=i.realHeight;return r.width===o&&r.height===s?a.texSubImage2D(i.target,0,0,0,o,s,i.format,r.type,this.data):(r.width=o,r.height=s,a.texImage2D(i.target,0,r.internalFormat,o,s,0,i.format,r.type,this.data)),!0},e}(U1),Rp=function(){function t(e,n){this.width=Math.round(e||100),this.height=Math.round(n||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new ot("disposeFramebuffer"),this.multisample=Te.NONE}return Object.defineProperty(t.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),t.prototype.addColorTexture=function(e,n){return e===void 0&&(e=0),this.colorTextures[e]=n||new ke(null,{scaleMode:bn.NEAREST,resolution:1,mipmap:Fi.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.addDepthTexture=function(e){return this.depthTexture=e||new ke(new iP(null,{width:this.width,height:this.height}),{scaleMode:bn.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Fi.OFF,format:j.DEPTH_COMPONENT,type:le.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.resize=function(e,n){if(e=Math.round(e),n=Math.round(n),!(e===this.width&&n===this.height)){this.width=e,this.height=n,this.dirtyId++,this.dirtySize++;for(var i=0;i-1&&i.textureCacheIds.splice(r,1),delete Bn[n],i}}else if(n&&n.textureCacheIds){for(var a=0;athis.baseTexture.width,f=r+o>this.baseTexture.height;if(s||f){var l=s&&f?"and":"or",c="X: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.width,u="Y: "+r+" + "+o+" = "+(r+o)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+l+" "+u))}this.valid=a&&o&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=n),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this._rotate},set:function(n){this._rotate=n,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),e.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(e,"EMPTY",{get:function(){return e._EMPTY||(e._EMPTY=new e(new ke),Bf(e._EMPTY),Bf(e._EMPTY.baseTexture)),e._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(e,"WHITE",{get:function(){if(!e._WHITE){var n=H.ADAPTER.createCanvas(16,16),i=n.getContext("2d");n.width=16,n.height=16,i.fillStyle="white",i.fillRect(0,0,16,16),e._WHITE=new e(ke.from(n)),Bf(e._WHITE),Bf(e._WHITE.baseTexture)}return e._WHITE},enumerable:!1,configurable:!0}),e}(ed),Br=function(t){_e(e,t);function e(n,i){var r=t.call(this,n,i)||this;return r.valid=!0,r.filterFrame=null,r.filterPoolKey=null,r.updateUvs(),r}return Object.defineProperty(e.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(n){this.framebuffer.multisample=n},enumerable:!1,configurable:!0}),e.prototype.resize=function(n,i,r){r===void 0&&(r=!0);var a=this.baseTexture.resolution,o=Math.round(n*a)/a,s=Math.round(i*a)/a;this.valid=o>0&&s>0,this._frame.width=this.orig.width=o,this._frame.height=this.orig.height=s,r&&this.baseTexture.resize(o,s),this.updateUvs()},e.prototype.setResolution=function(n){var i=this.baseTexture;i.resolution!==n&&(i.setResolution(n),this.resize(i.width,i.height,!1))},e.create=function(n){for(var i=arguments,r=[],a=1;a>>0,r>1&&(a+=r*4294967296)):a=r>1?-r:-1,this.texturePool[a]||(this.texturePool[a]=[]);var o=this.texturePool[a].pop();return o||(o=this.createTexture(e,n,r)),o.filterPoolKey=a,o.setResolution(i),o},t.prototype.getFilterTexture=function(e,n,i){var r=this.getOptimalTexture(e.width,e.height,n||e.resolution,i||Te.NONE);return r.filterFrame=e.filterFrame,r},t.prototype.returnTexture=function(e){var n=e.filterPoolKey;e.filterFrame=null,this.texturePool[n].push(e)},t.prototype.returnFilterTexture=function(e){this.returnTexture(e)},t.prototype.clear=function(e){if(e=e!==!1,e)for(var n in this.texturePool){var i=this.texturePool[n];if(i)for(var r=0;r0&&e.height>0;for(var n in this.texturePool)if(Number(n)<0){var i=this.texturePool[n];if(i)for(var r=0;r1){for(var c=0;c1&&(u=this.getOptimalFilterTexture(c.width,c.height,n.resolution),u.filterFrame=c.filterFrame),i[d].apply(this,c,u,di.CLEAR,n);var h=c;c=u,u=h}i[d].apply(this,c,l.renderTexture,di.BLEND,n),d>1&&n.multisample>1&&this.returnFilterTexture(n.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(u)}n.clear(),this.statePool.push(n)},t.prototype.bindAndClear=function(e,n){n===void 0&&(n=di.CLEAR);var i=this.renderer,r=i.renderTexture,a=i.state;if(e===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,e&&e.filterFrame){var o=this.tempRect;o.x=0,o.y=0,o.width=e.filterFrame.width,o.height=e.filterFrame.height,r.bind(e,e.filterFrame,o)}else e!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(e):this.renderer.renderTexture.bind(e,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=a.stateId&1||this.forceClear;(n===di.CLEAR||n===di.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},t.prototype.applyFilter=function(e,n,i,r){var a=this.renderer;a.state.set(e.state),this.bindAndClear(i,r),e.uniforms.uSampler=n,e.uniforms.filterGlobals=this.globalUniforms,a.shader.bind(e),e.legacy=!!e.program.attributeData.aTextureCoord,e.legacy?(this.quadUv.map(n._frame,n.filterFrame),a.geometry.bind(this.quadUv),a.geometry.draw(Gn.TRIANGLES)):(a.geometry.bind(this.quad),a.geometry.draw(Gn.TRIANGLE_STRIP))},t.prototype.calculateSpriteMatrix=function(e,n){var i=this.activeState,r=i.sourceFrame,a=i.destinationFrame,o=n._texture.orig,s=e.set(a.width,0,0,a.height,r.x,r.y),f=n.worldTransform.copyTo(_t.TEMP_MATRIX);return f.invert(),s.prepend(f),s.scale(1/o.width,1/o.height),s.translate(n.anchor.x,n.anchor.y),s},t.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},t.prototype.getOptimalFilterTexture=function(e,n,i,r){return i===void 0&&(i=1),r===void 0&&(r=Te.NONE),this.texturePool.getOptimalTexture(e,n,i,r)},t.prototype.getFilterTexture=function(e,n,i){if(typeof e=="number"){var r=e;e=n,n=r}e=e||this.activeState.renderTexture;var a=this.texturePool.getOptimalTexture(e.width,e.height,n||e.resolution,i||Te.NONE);return a.filterFrame=e.filterFrame,a},t.prototype.returnFilterTexture=function(e){this.texturePool.returnTexture(e)},t.prototype.emptyPool=function(){this.texturePool.clear(!0)},t.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},t.prototype.transformAABB=function(e,n){var i=Df[0],r=Df[1],a=Df[2],o=Df[3];i.set(n.left,n.top),r.set(n.left,n.bottom),a.set(n.right,n.top),o.set(n.right,n.bottom),e.apply(i,i),e.apply(r,r),e.apply(a,a),e.apply(o,o);var s=Math.min(i.x,r.x,a.x,o.x),f=Math.min(i.y,r.y,a.y,o.y),l=Math.max(i.x,r.x,a.x,o.x),c=Math.max(i.y,r.y,a.y,o.y);n.x=s,n.y=f,n.width=l-s,n.height=c-f},t.prototype.roundFrame=function(e,n,i,r,a){if(!(e.width<=0||e.height<=0||i.width<=0||i.height<=0)){if(a){var o=a.a,s=a.b,f=a.c,l=a.d;if((Math.abs(s)>1e-4||Math.abs(f)>1e-4)&&(Math.abs(o)>1e-4||Math.abs(l)>1e-4))return}a=a?_c.copyFrom(a):_c.identity(),a.translate(-i.x,-i.y).scale(r.width/i.width,r.height/i.height).translate(r.x,r.y),this.transformAABB(a,e),e.ceil(n),this.transformAABB(a.invert(),e)}},t}(),V1=function(){function t(e){this.renderer=e}return t.prototype.flush=function(){},t.prototype.destroy=function(){this.renderer=null},t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.render=function(e){},t}(),pP=function(){function t(e){this.renderer=e,this.emptyRenderer=new V1(e),this.currentRenderer=this.emptyRenderer}return t.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.copyBoundTextures=function(e,n){for(var i=this.renderer.texture.boundTextures,r=n-1;r>=0;--r)e[r]=i[r]||null,e[r]&&(e[r]._batchLocation=r)},t.prototype.boundArray=function(e,n,i,r){for(var a=e.elements,o=e.ids,s=e.count,f=0,l=0;l=0&&u=ti.WEBGL2&&(i=e.getContext("webgl2",n)),i)this.webGLVersion=2;else if(this.webGLVersion=1,i=e.getContext("webgl",n)||e.getContext("experimental-webgl",n),!i)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},t.prototype.getExtensions=function(){var e=this.gl,n={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,n,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,n,{colorBufferFloat:e.getExtension("EXT_color_buffer_float")})},t.prototype.handleContextLost=function(e){var n=this;e.preventDefault(),setTimeout(function(){n.gl.isContextLost()&&n.extensions.loseContext&&n.extensions.loseContext.restoreContext()},0)},t.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},t.prototype.destroy=function(){var e=this.renderer.view;this.renderer=null,e.removeEventListener("webglcontextlost",this.handleContextLost),e.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},t.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},t.prototype.validateContext=function(e){var n=e.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext;i&&(this.webGLVersion=2),n&&!n.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var r=i||!!e.getExtension("OES_element_index_uint");this.supports.uint32Indices=r,r||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},t}(),mP=function(){function t(e){this.framebuffer=e,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=Te.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return t}(),gP=new te,yP=function(){function t(e){this.renderer=e,this.managedFramebuffers=[],this.unknownFramebuffer=new Rp(10,10),this.msaaSamples=null}return t.prototype.contextChange=function(){this.disposeAll(!0);var e=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new te,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var n=this.renderer.context.extensions.drawBuffers,i=this.renderer.context.extensions.depthTexture;H.PREFER_ENV===ti.WEBGL_LEGACY&&(n=null,i=null),n?e.drawBuffers=function(r){return n.drawBuffersWEBGL(r)}:(this.hasMRT=!1,e.drawBuffers=function(){}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=e.getInternalformatParameter(e.RENDERBUFFER,e.RGBA8,e.SAMPLES)},t.prototype.bind=function(e,n,i){i===void 0&&(i=0);var r=this.gl;if(e){var a=e.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(e);this.current!==e&&(this.current=e,r.bindFramebuffer(r.FRAMEBUFFER,a.framebuffer)),a.mipLevel!==i&&(e.dirtyId++,e.dirtyFormat++,a.mipLevel=i),a.dirtyId!==e.dirtyId&&(a.dirtyId=e.dirtyId,a.dirtyFormat!==e.dirtyFormat?(a.dirtyFormat=e.dirtyFormat,a.dirtySize=e.dirtySize,this.updateFramebuffer(e,i)):a.dirtySize!==e.dirtySize&&(a.dirtySize=e.dirtySize,this.resizeFramebuffer(e)));for(var o=0;o>i,l=n.height>>i,c=f/n.width;this.setViewport(n.x*c,n.y*c,f,l)}else{var f=e.width>>i,l=e.height>>i;this.setViewport(0,0,f,l)}}else this.current&&(this.current=null,r.bindFramebuffer(r.FRAMEBUFFER,null)),n?this.setViewport(n.x,n.y,n.width,n.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},t.prototype.setViewport=function(e,n,i,r){var a=this.viewport;e=Math.round(e),n=Math.round(n),i=Math.round(i),r=Math.round(r),(a.width!==i||a.height!==r||a.x!==e||a.y!==n)&&(a.x=e,a.y=n,a.width=i,a.height=r,this.gl.viewport(e,n,i,r))},Object.defineProperty(t.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),t.prototype.clear=function(e,n,i,r,a){a===void 0&&(a=au.COLOR|au.DEPTH);var o=this.gl;o.clearColor(e,n,i,r),o.clear(a)},t.prototype.initFramebuffer=function(e){var n=this.gl,i=new mP(n.createFramebuffer());return i.multisample=this.detectSamples(e.multisample),e.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(e),e.disposeRunner.add(this),i},t.prototype.resizeFramebuffer=function(e){var n=this.gl,i=e.glFramebuffers[this.CONTEXT_UID];i.msaaBuffer&&(n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.RGBA8,e.width,e.height)),i.stencil&&(n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.DEPTH24_STENCIL8,e.width,e.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,e.width,e.height));var r=e.colorTextures,a=r.length;n.drawBuffers||(a=Math.min(a,1));for(var o=0;o1&&this.canMultisampleFramebuffer(e)?(r.msaaBuffer=r.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,r.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,r.multisample,i.RGBA8,e.width,e.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,r.msaaBuffer)):r.msaaBuffer&&(i.deleteRenderbuffer(r.msaaBuffer),r.msaaBuffer=null,r.blitFramebuffer&&(r.blitFramebuffer.dispose(),r.blitFramebuffer=null));for(var s=[],f=0;f1&&i.drawBuffers(s),e.depthTexture){var u=this.writeDepthTexture;if(u){var d=e.depthTexture;this.renderer.texture.bind(d,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,d._glTextures[this.CONTEXT_UID].texture,n)}}(e.stencil||e.depth)&&!(e.depthTexture&&this.writeDepthTexture)?(r.stencil=r.stencil||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,r.stencil),r.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,r.multisample,i.DEPTH24_STENCIL8,e.width,e.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,e.width,e.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,r.stencil)):r.stencil&&(i.deleteRenderbuffer(r.stencil),r.stencil=null)},t.prototype.canMultisampleFramebuffer=function(e){return this.renderer.context.webGLVersion!==1&&e.colorTextures.length<=1&&!e.depthTexture},t.prototype.detectSamples=function(e){var n=this.msaaSamples,i=Te.NONE;if(e<=1||n===null)return i;for(var r=0;r=0&&this.managedFramebuffers.splice(a,1),e.disposeRunner.remove(this),n||(r.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&r.deleteRenderbuffer(i.msaaBuffer),i.stencil&&r.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&i.blitFramebuffer.dispose()}},t.prototype.disposeAll=function(e){var n=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i=ti.WEBGL2&&(e=t.getContext("webgl2",{})),e||(e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),yo=e}return yo}var Lf;function xP(){if(!Lf){Lf=Lt.MEDIUM;var t=bP();if(t&&t.getShaderPrecisionFormat){var e=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);Lf=e.precision?Lt.HIGH:Lt.MEDIUM}}return Lf}function ty(t,e,n){if(t.substring(0,9)!=="precision"){var i=e;return e===Lt.HIGH&&n!==Lt.HIGH&&(i=Lt.MEDIUM),"precision "+i+` float; `+t}else if(n!==Lt.HIGH&&t.substring(0,15)==="precision highp")return t.replace("precision highp","precision mediump");return t}var SP={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function y3(t){return SP[t]}var Nf=null,ny={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function _3(t,e){if(!Nf){var n=Object.keys(ny);Nf={};for(var i=0;i0&&(e+=` else `),n"u"?.5:n,this.isSimple=!1}return Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture=e,this._textureID=-1},enumerable:!1,configurable:!0}),t.prototype.multiplyUvs=function(e,n){n===void 0&&(n=e);for(var i=this.mapCoord,r=0;r0?this.maskStack[this.maskStack.length-1]._colorMask:15;i!==n&&this.renderer.gl.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)},t.prototype.destroy=function(){this.renderer=null},t}(),k3=function(){function t(e){this.renderer=e,this.maskStack=[],this.glConst=0}return t.prototype.getStackLength=function(){return this.maskStack.length},t.prototype.setMaskStack=function(e){var n=this.renderer.gl,i=this.getStackLength();this.maskStack=e;var r=this.getStackLength();r!==i&&(r===0?n.disable(this.glConst):(n.enable(this.glConst),this._useCurrent()))},t.prototype._useCurrent=function(){},t.prototype.destroy=function(){this.renderer=null,this.maskStack=null},t}(),ry=new _t,ay=[],zP=function(t){_e(e,t);function e(n){var i=t.call(this,n)||this;return i.glConst=H.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,i}return e.prototype.getStackLength=function(){var n=this.maskStack[this.maskStack.length-1];return n?n._scissorCounter:0},e.prototype.calcScissorRect=function(n){var i;if(!n._scissorRectLocal){var r=n._scissorRect,a=n.maskObject,o=this.renderer,s=o.renderTexture,f=a.getBounds(!0,(i=ay.pop())!==null&&i!==void 0?i:new te);this.roundFrameToPixels(f,s.current?s.current.resolution:o.resolution,s.sourceFrame,s.destinationFrame,o.projection.transform),r&&f.fit(r),n._scissorRectLocal=f}},e.isMatrixRotated=function(n){if(!n)return!1;var i=n.a,r=n.b,a=n.c,o=n.d;return(Math.abs(r)>1e-4||Math.abs(a)>1e-4)&&(Math.abs(i)>1e-4||Math.abs(o)>1e-4)},e.prototype.testScissor=function(n){var i=n.maskObject;if(!i.isFastRect||!i.isFastRect()||e.isMatrixRotated(i.worldTransform)||e.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(n);var r=n._scissorRectLocal;return r.width>0&&r.height>0},e.prototype.roundFrameToPixels=function(n,i,r,a,o){e.isMatrixRotated(o)||(o=o?ry.copyFrom(o):ry.identity(),o.translate(-r.x,-r.y).scale(a.width/r.width,a.height/r.height).translate(a.x,a.y),this.renderer.filter.transformAABB(o,n),n.fit(a),n.x=Math.round(n.x*i),n.y=Math.round(n.y*i),n.width=Math.round(n.width*i),n.height=Math.round(n.height*i))},e.prototype.push=function(n){n._scissorRectLocal||this.calcScissorRect(n);var i=this.renderer.gl;n._scissorRect||i.enable(i.SCISSOR_TEST),n._scissorCounter++,n._scissorRect=n._scissorRectLocal,this._useCurrent()},e.prototype.pop=function(n){var i=this.renderer.gl;n&&ay.push(n._scissorRectLocal),this.getStackLength()>0?this._useCurrent():i.disable(i.SCISSOR_TEST)},e.prototype._useCurrent=function(){var n=this.maskStack[this.maskStack.length-1]._scissorRect,i;this.renderer.renderTexture.current?i=n.y:i=this.renderer.height-n.height-n.y,this.renderer.gl.scissor(n.x,i,n.width,n.height)},e}(k3),VP=function(t){_e(e,t);function e(n){var i=t.call(this,n)||this;return i.glConst=H.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,i}return e.prototype.getStackLength=function(){var n=this.maskStack[this.maskStack.length-1];return n?n._stencilCounter:0},e.prototype.push=function(n){var i=n.maskObject,r=this.renderer.gl,a=n._stencilCounter;a===0&&(this.renderer.framebuffer.forceStencil(),r.clearStencil(0),r.clear(r.STENCIL_BUFFER_BIT),r.enable(r.STENCIL_TEST)),n._stencilCounter++;var o=n._colorMask;o!==0&&(n._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilFunc(r.EQUAL,a,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),i.renderable=!0,i.render(this.renderer),this.renderer.batch.flush(),i.renderable=!1,o!==0&&(n._colorMask=o,r.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()},e.prototype.pop=function(n){var i=this.renderer.gl;if(this.getStackLength()===0)i.disable(i.STENCIL_TEST);else{var r=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,a=r?r._colorMask:15;a!==0&&(r._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilOp(i.KEEP,i.KEEP,i.DECR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,a!==0&&(r._colorMask=a,i.colorMask((a&1)!==0,(a&2)!==0,(a&4)!==0,(a&8)!==0)),this._useCurrent()}},e.prototype._useCurrent=function(){var n=this.renderer.gl;n.stencilFunc(n.EQUAL,this.getStackLength(),4294967295),n.stencilOp(n.KEEP,n.KEEP,n.KEEP)},e}(k3),HP=function(){function t(e){this.renderer=e,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new _t,this.transform=null}return t.prototype.update=function(e,n,i,r){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=n||this.sourceFrame||e,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,r),this.transform&&this.projectionMatrix.append(this.transform);var a=this.renderer;a.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,a.globalUniforms.update(),a.shader.shader&&a.shader.syncUniformGroup(a.shader.shader.uniforms.globals)},t.prototype.calculateProjection=function(e,n,i,r){var a=this.projectionMatrix,o=r?-1:1;a.identity(),a.a=1/n.width*2,a.d=o*(1/n.height*2),a.tx=-1-n.x*a.a,a.ty=-o-n.y*a.d},t.prototype.setTransform=function(e){},t.prototype.destroy=function(){this.renderer=null},t}(),Ki=new te,wo=new te,$P=function(){function t(e){this.renderer=e,this.clearColor=e._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new te,this.destinationFrame=new te,this.viewportFrame=new te}return t.prototype.bind=function(e,n,i){e===void 0&&(e=null);var r=this.renderer;this.current=e;var a,o,s;e?(a=e.baseTexture,s=a.resolution,n||(Ki.width=e.frame.width,Ki.height=e.frame.height,n=Ki),i||(wo.x=e.frame.x,wo.y=e.frame.y,wo.width=n.width,wo.height=n.height,i=wo),o=a.framebuffer):(s=r.resolution,n||(Ki.width=r.screen.width,Ki.height=r.screen.height,n=Ki),i||(i=Ki,i.width=n.width,i.height=n.height));var f=this.viewportFrame;f.x=i.x*s,f.y=i.y*s,f.width=i.width*s,f.height=i.height*s,e||(f.y=r.view.height-(f.y+f.height)),f.ceil(),this.renderer.framebuffer.bind(o,f),this.renderer.projection.update(i,n,s,!o),e?this.renderer.mask.setMaskStack(a.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(n),this.destinationFrame.copyFrom(i)},t.prototype.clear=function(e,n){this.current?e=e||this.current.baseTexture.clearColor:e=e||this.clearColor;var i=this.destinationFrame,r=this.current?this.current.baseTexture:this.renderer.screen,a=i.width!==r.width||i.height!==r.height;if(a){var o=this.viewportFrame,s=o.x,f=o.y,l=o.width,c=o.height;s=Math.round(s),f=Math.round(f),l=Math.round(l),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,f,l,c)}this.renderer.framebuffer.clear(e[0],e[1],e[2],e[3],n),a&&this.renderer.scissor.pop()},t.prototype.resize=function(){this.bind(null)},t.prototype.reset=function(){this.bind(null)},t.prototype.destroy=function(){this.renderer=null},t}();function GP(t,e,n,i,r){n.buffer.update(r)}var WP={float:` data[offset] = v; `,vec2:` data[offset] = v[0]; data[offset+1] = v[1]; `,vec3:` data[offset] = v[0]; data[offset+1] = v[1]; data[offset+2] = v[2]; `,vec4:` data[offset] = v[0]; data[offset+1] = v[1]; data[offset+2] = v[2]; data[offset+3] = v[3]; `,mat2:` data[offset] = v[0]; data[offset+1] = v[1]; data[offset+4] = v[2]; data[offset+5] = v[3]; `,mat3:` data[offset] = v[0]; data[offset+1] = v[1]; data[offset+2] = v[2]; data[offset + 4] = v[3]; data[offset + 5] = v[4]; data[offset + 6] = v[5]; data[offset + 8] = v[6]; data[offset + 9] = v[7]; data[offset + 10] = v[8]; `,mat4:` for(var i = 0; i < 16; i++) { data[offset + i] = v[i]; } `},b3={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function qP(t){for(var e=t.map(function(f){return{data:f,offset:0,dataLen:0,dirty:0}}),n=0,i=0,r=0,a=0;a1&&(n=Math.max(n,16)*o.data.size),o.dataLen=n,i%n!==0&&i<16){var s=i%n%16;i+=s,r+=s}i+n>16?(r=Math.ceil(r/16)*16,o.offset=r,r+=n,i=n):(o.offset=r,i+=n,r+=n)}return r=Math.ceil(r/16)*16,{uboElements:e,size:r}}function XP(t,e){var n=[];for(var i in t)e[i]&&n.push(e[i]);return n.sort(function(r,a){return r.index-a.index}),n}function YP(t,e){if(!t.autoManage)return{size:0,syncFunc:GP};for(var n=XP(t.uniforms,e),i=qP(n),r=i.uboElements,a=i.size,o=[` var v = null; var v2 = null; var cv = null; var t = 0; var gl = renderer.gl var index = 0; var data = buffer.data; `],s=0;s1){var p=y3(f.data.type),m=Math.max(b3[f.data.type]/16,1),v=p/m,g=(4-v%4)%4;o.push(` cv = ud.`+c+`.value; v = uv.`+c+`; offset = `+f.offset/4+`; t = 0; for(var i=0; i < `+f.data.size*m+`; i++) { for(var j = 0; j < `+v+`; j++) { data[offset++] = v[t++]; } offset += `+g+`; } `)}else{var y=WP[f.data.type];o.push(` cv = ud.`+c+`.value; v = uv.`+c+`; offset = `+f.offset/4+`; `+y+`; `)}}return o.push(` renderer.buffer.update(buffer); `),{size:a,syncFunc:new Function("ud","uv","renderer","syncData","buffer",o.join(` `))}}var KP=function(){function t(e,n){this.program=e,this.uniformData=n,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return t.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},t}();function ZP(t,e){for(var n={},i=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),r=0;ru?1:-1});for(var o=0;o>1,i++;this.stateId=e.data}for(var i=0;ithis.checkCountMax&&(this.checkCount=0,this.run())))},t.prototype.run=function(){for(var e=this.renderer.texture,n=e.managedTextures,i=!1,r=0;rthis.maxIdle&&(e.destroyTexture(a,!0),n[r]=null,i=!0)}if(i){for(var o=0,r=0;r=0;r--)this.unload(e.children[r])},t.prototype.destroy=function(){this.renderer=null},t}();function dM(t){var e,n,i,r,a,o,s,f,l,c,u,d,h,p,m,v,g,y,_,w,k,b,x;return"WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext?x=(e={},e[le.UNSIGNED_BYTE]=(n={},n[j.RGBA]=t.RGBA8,n[j.RGB]=t.RGB8,n[j.RG]=t.RG8,n[j.RED]=t.R8,n[j.RGBA_INTEGER]=t.RGBA8UI,n[j.RGB_INTEGER]=t.RGB8UI,n[j.RG_INTEGER]=t.RG8UI,n[j.RED_INTEGER]=t.R8UI,n[j.ALPHA]=t.ALPHA,n[j.LUMINANCE]=t.LUMINANCE,n[j.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,n),e[le.BYTE]=(i={},i[j.RGBA]=t.RGBA8_SNORM,i[j.RGB]=t.RGB8_SNORM,i[j.RG]=t.RG8_SNORM,i[j.RED]=t.R8_SNORM,i[j.RGBA_INTEGER]=t.RGBA8I,i[j.RGB_INTEGER]=t.RGB8I,i[j.RG_INTEGER]=t.RG8I,i[j.RED_INTEGER]=t.R8I,i),e[le.UNSIGNED_SHORT]=(r={},r[j.RGBA_INTEGER]=t.RGBA16UI,r[j.RGB_INTEGER]=t.RGB16UI,r[j.RG_INTEGER]=t.RG16UI,r[j.RED_INTEGER]=t.R16UI,r[j.DEPTH_COMPONENT]=t.DEPTH_COMPONENT16,r),e[le.SHORT]=(a={},a[j.RGBA_INTEGER]=t.RGBA16I,a[j.RGB_INTEGER]=t.RGB16I,a[j.RG_INTEGER]=t.RG16I,a[j.RED_INTEGER]=t.R16I,a),e[le.UNSIGNED_INT]=(o={},o[j.RGBA_INTEGER]=t.RGBA32UI,o[j.RGB_INTEGER]=t.RGB32UI,o[j.RG_INTEGER]=t.RG32UI,o[j.RED_INTEGER]=t.R32UI,o[j.DEPTH_COMPONENT]=t.DEPTH_COMPONENT24,o),e[le.INT]=(s={},s[j.RGBA_INTEGER]=t.RGBA32I,s[j.RGB_INTEGER]=t.RGB32I,s[j.RG_INTEGER]=t.RG32I,s[j.RED_INTEGER]=t.R32I,s),e[le.FLOAT]=(f={},f[j.RGBA]=t.RGBA32F,f[j.RGB]=t.RGB32F,f[j.RG]=t.RG32F,f[j.RED]=t.R32F,f[j.DEPTH_COMPONENT]=t.DEPTH_COMPONENT32F,f),e[le.HALF_FLOAT]=(l={},l[j.RGBA]=t.RGBA16F,l[j.RGB]=t.RGB16F,l[j.RG]=t.RG16F,l[j.RED]=t.R16F,l),e[le.UNSIGNED_SHORT_5_6_5]=(c={},c[j.RGB]=t.RGB565,c),e[le.UNSIGNED_SHORT_4_4_4_4]=(u={},u[j.RGBA]=t.RGBA4,u),e[le.UNSIGNED_SHORT_5_5_5_1]=(d={},d[j.RGBA]=t.RGB5_A1,d),e[le.UNSIGNED_INT_2_10_10_10_REV]=(h={},h[j.RGBA]=t.RGB10_A2,h[j.RGBA_INTEGER]=t.RGB10_A2UI,h),e[le.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[j.RGB]=t.R11F_G11F_B10F,p),e[le.UNSIGNED_INT_5_9_9_9_REV]=(m={},m[j.RGB]=t.RGB9_E5,m),e[le.UNSIGNED_INT_24_8]=(v={},v[j.DEPTH_STENCIL]=t.DEPTH24_STENCIL8,v),e[le.FLOAT_32_UNSIGNED_INT_24_8_REV]=(g={},g[j.DEPTH_STENCIL]=t.DEPTH32F_STENCIL8,g),e):x=(y={},y[le.UNSIGNED_BYTE]=(_={},_[j.RGBA]=t.RGBA,_[j.RGB]=t.RGB,_[j.ALPHA]=t.ALPHA,_[j.LUMINANCE]=t.LUMINANCE,_[j.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,_),y[le.UNSIGNED_SHORT_5_6_5]=(w={},w[j.RGB]=t.RGB,w),y[le.UNSIGNED_SHORT_4_4_4_4]=(k={},k[j.RGBA]=t.RGBA,k),y[le.UNSIGNED_SHORT_5_5_5_1]=(b={},b[j.RGBA]=t.RGBA,b),y),x}var Ac=function(){function t(e){this.texture=e,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=le.UNSIGNED_BYTE,this.internalFormat=j.RGBA,this.samplerType=0}return t}(),cM=function(){function t(e){this.renderer=e,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new ke,this.hasIntegerTextures=!1}return t.prototype.contextChange=function(){var e=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=dM(e);var n=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=n;for(var i=0;i=0;--o){var s=i[o];if(s){var f=s._glTextures[a];f.samplerType!==ou.FLOAT&&this.renderer.texture.unbind(s)}}},t.prototype.initTexture=function(e){var n=new Ac(this.gl.createTexture());return n.dirtyId=-1,e._glTextures[this.CONTEXT_UID]=n,this.managedTextures.push(e),e.on("dispose",this.destroyTexture,this),n},t.prototype.initTextureType=function(e,n){var i,r;n.internalFormat=(r=(i=this.internalFormats[e.type])===null||i===void 0?void 0:i[e.format])!==null&&r!==void 0?r:e.format,this.webGLVersion===2&&e.type===le.HALF_FLOAT?n.type=this.gl.HALF_FLOAT:n.type=e.type},t.prototype.updateTexture=function(e){var n=e._glTextures[this.CONTEXT_UID];if(n){var i=this.renderer;if(this.initTextureType(e,n),e.resource&&e.resource.upload(i,e,n))n.samplerType!==ou.FLOAT&&(this.hasIntegerTextures=!0);else{var r=e.realWidth,a=e.realHeight,o=i.gl;(n.width!==r||n.height!==a||n.dirtyId<0)&&(n.width=r,n.height=a,o.texImage2D(e.target,0,n.internalFormat,r,a,0,e.format,n.type,null))}e.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(e),n.dirtyId=e.dirtyId}},t.prototype.destroyTexture=function(e,n){var i=this.gl;if(e=e.castToBaseTexture(),e._glTextures[this.CONTEXT_UID]&&(this.unbind(e),i.deleteTexture(e._glTextures[this.CONTEXT_UID].texture),e.off("dispose",this.destroyTexture,this),delete e._glTextures[this.CONTEXT_UID],!n)){var r=this.managedTextures.indexOf(e);r!==-1&&Sl(this.managedTextures,r,1)}},t.prototype.updateTextureStyle=function(e){var n=e._glTextures[this.CONTEXT_UID];n&&((e.mipmap===Fi.POW2||this.webGLVersion!==2)&&!e.isPowerOfTwo?n.mipmap=!1:n.mipmap=e.mipmap>=1,this.webGLVersion!==2&&!e.isPowerOfTwo?n.wrapMode=qn.CLAMP:n.wrapMode=e.wrapMode,e.resource&&e.resource.style(this.renderer,e,n)||this.setStyle(e,n),n.dirtyStyleId=e.dirtyStyleId)},t.prototype.setStyle=function(e,n){var i=this.gl;if(n.mipmap&&e.mipmap!==Fi.ON_MANUAL&&i.generateMipmap(e.target),i.texParameteri(e.target,i.TEXTURE_WRAP_S,n.wrapMode),i.texParameteri(e.target,i.TEXTURE_WRAP_T,n.wrapMode),n.mipmap){i.texParameteri(e.target,i.TEXTURE_MIN_FILTER,e.scaleMode===bn.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);var r=this.renderer.context.extensions.anisotropicFiltering;if(r&&e.anisotropicLevel>0&&e.scaleMode===bn.LINEAR){var a=Math.min(e.anisotropicLevel,i.getParameter(r.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(e.target,r.TEXTURE_MAX_ANISOTROPY_EXT,a)}}else i.texParameteri(e.target,i.TEXTURE_MIN_FILTER,e.scaleMode===bn.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(e.target,i.TEXTURE_MAG_FILTER,e.scaleMode===bn.LINEAR?i.LINEAR:i.NEAREST)},t.prototype.destroy=function(){this.renderer=null},t}(),Pc=new _t,hM=function(t){_e(e,t);function e(n,i){n===void 0&&(n=xs.UNKNOWN);var r=t.call(this)||this;return i=Object.assign({},H.RENDER_OPTIONS,i),r.options=i,r.type=n,r.screen=new te(0,0,i.width,i.height),r.view=i.view||H.ADAPTER.createCanvas(),r.resolution=i.resolution||H.RESOLUTION,r.useContextAlpha=i.useContextAlpha,r.autoDensity=!!i.autoDensity,r.preserveDrawingBuffer=i.preserveDrawingBuffer,r.clearBeforeRender=i.clearBeforeRender,r._backgroundColor=0,r._backgroundColorRgba=[0,0,0,1],r._backgroundColorString="#000000",r.backgroundColor=i.backgroundColor||r._backgroundColor,r.backgroundAlpha=i.backgroundAlpha,i.transparent!==void 0&&(En("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),r.useContextAlpha=i.transparent,r.backgroundAlpha=i.transparent?0:1),r._lastObjectRendered=null,r.plugins={},r}return e.prototype.initPlugins=function(n){for(var i in n)this.plugins[i]=new n[i](this)},Object.defineProperty(e.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),e.prototype.resize=function(n,i){this.view.width=Math.round(n*this.resolution),this.view.height=Math.round(i*this.resolution);var r=this.view.width/this.resolution,a=this.view.height/this.resolution;this.screen.width=r,this.screen.height=a,this.autoDensity&&(this.view.style.width=r+"px",this.view.style.height=a+"px"),this.emit("resize",r,a)},e.prototype.generateTexture=function(n,i,r,a){i===void 0&&(i={}),typeof i=="number"&&(En("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),i={scaleMode:i,resolution:r,region:a});var o=i.region,s=YA(i,["region"]);a=o||n.getLocalBounds(null,!0),a.width===0&&(a.width=1),a.height===0&&(a.height=1);var f=Br.create(Mp({width:a.width,height:a.height},s));return Pc.tx=-a.x,Pc.ty=-a.y,this.render(n,{renderTexture:f,clear:!1,transform:Pc,skipUpdateTransform:!!n.parent}),f},e.prototype.destroy=function(n){for(var i in this.plugins)this.plugins[i].destroy(),this.plugins[i]=null;n&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var r=this;r.plugins=null,r.type=xs.UNKNOWN,r.view=null,r.screen=null,r._tempDisplayObjectParent=null,r.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(n){this._backgroundColor=n,this._backgroundColorString=r3(n),hu(n,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(n){this._backgroundColorRgba[3]=n},enumerable:!1,configurable:!0}),e}(ed),pM=function(){function t(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return t}(),vM=function(){function t(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}return t.prototype.destroy=function(){this.renderer=null},t.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},t.prototype.bind=function(e){var n=this,i=n.gl,r=n.CONTEXT_UID,a=e._glBuffers[r]||this.createGLBuffer(e);i.bindBuffer(e.type,a.buffer)},t.prototype.bindBufferBase=function(e,n){var i=this,r=i.gl,a=i.CONTEXT_UID;if(this.boundBufferBases[n]!==e){var o=e._glBuffers[a]||this.createGLBuffer(e);this.boundBufferBases[n]=e,r.bindBufferBase(r.UNIFORM_BUFFER,n,o.buffer)}},t.prototype.bindBufferRange=function(e,n,i){var r=this,a=r.gl,o=r.CONTEXT_UID;i=i||0;var s=e._glBuffers[o]||this.createGLBuffer(e);a.bindBufferRange(a.UNIFORM_BUFFER,n||0,s.buffer,i*256,256)},t.prototype.update=function(e){var n=this,i=n.gl,r=n.CONTEXT_UID,a=e._glBuffers[r];if(e._updateID!==a.updateID)if(a.updateID=e._updateID,i.bindBuffer(e.type,a.buffer),a.byteLength>=e.data.byteLength)i.bufferSubData(e.type,0,e.data);else{var o=e.static?i.STATIC_DRAW:i.DYNAMIC_DRAW;a.byteLength=e.data.byteLength,i.bufferData(e.type,e.data,o)}},t.prototype.dispose=function(e,n){if(this.managedBuffers[e.id]){delete this.managedBuffers[e.id];var i=e._glBuffers[this.CONTEXT_UID],r=this.gl;e.disposeRunner.remove(this),i&&(n||r.deleteBuffer(i.buffer),delete e._glBuffers[this.CONTEXT_UID])}},t.prototype.disposeAll=function(e){for(var n=Object.keys(this.managedBuffers),i=0;i=Te.HIGH?this.multisample=Te.HIGH:i>=Te.MEDIUM?this.multisample=Te.MEDIUM:i>=Te.LOW?this.multisample=Te.LOW:this.multisample=Te.NONE},e.prototype.addSystem=function(n,i){var r=new n(this);if(this[i])throw new Error('Whoops! The name "'+i+'" is already in use');this[i]=r;for(var a in this.runners)this.runners[a].add(r);return this},e.prototype.render=function(n,i){var r,a,o,s;if(i&&(i instanceof Br?(En("6.0.0","Renderer#render arguments changed, use options instead."),r=i,a=arguments[2],o=arguments[3],s=arguments[4]):(r=i.renderTexture,a=i.clear,o=i.transform,s=i.skipUpdateTransform)),this.renderingToScreen=!r,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=o,!this.context.isLost){if(r||(this._lastObjectRendered=n),!s){var f=n.enableTempParent();n.updateTransform(),n.disableTempParent(f)}this.renderTexture.bind(r),this.batch.currentRenderer.start(),(a!==void 0?a:this.clearBeforeRender)&&this.renderTexture.clear(),n.render(this),this.batch.currentRenderer.flush(),r&&r.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},e.prototype.generateTexture=function(n,i,r,a){i===void 0&&(i={});var o=t.prototype.generateTexture.call(this,n,i,r,a);return this.framebuffer.blit(),o},e.prototype.resize=function(n,i){t.prototype.resize.call(this,n,i),this.runners.resize.emit(this.screen.height,this.screen.width)},e.prototype.reset=function(){return this.runners.reset.emit(),this},e.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},e.prototype.destroy=function(n){this.runners.destroy.emit();for(var i in this.runners)this.runners[i].destroy();t.prototype.destroy.call(this,n),this.gl=null},Object.defineProperty(e.prototype,"extract",{get:function(){return En("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),e.registerPlugin=function(n,i){En("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),$i.add({name:n,type:tt.RendererPlugin,ref:i})},e.__plugins={},e}(hM);$i.handleByMap(tt.RendererPlugin,x3.__plugins);function mM(t){return x3.create(t)}var gM=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; varying vec2 vTextureCoord; void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; }`,yM=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; varying vec2 vTextureCoord; uniform vec4 inputSize; uniform vec4 outputFrame; vec4 filterVertexPosition( void ) { vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy; return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); } vec2 filterTextureCoord( void ) { return aVertexPosition * (outputFrame.zw * inputSize.zw); } void main(void) { gl_Position = filterVertexPosition(); vTextureCoord = filterTextureCoord(); } `,_M=gM,wM=yM,Op=function(){function t(){this.texArray=null,this.blend=0,this.type=Gn.TRIANGLES,this.start=0,this.size=0,this.data=null}return t}(),Fp=function(){function t(){this.elements=[],this.ids=[],this.count=0}return t.prototype.clear=function(){for(var e=0;ethis.size&&this.flush(),this._vertexCount+=n.vertexData.length/2,this._indexCount+=n.indices.length,this._bufferedTextures[this._bufferSize]=n._texture.baseTexture,this._bufferedElements[this._bufferSize++]=n)},e.prototype.buildTexturesAndDrawCalls=function(){var n=this,i=n._bufferedTextures,r=n.MAX_TEXTURES,a=e._textureArrayPool,o=this.renderer.batch,s=this._tempBoundTextures,f=this.renderer.textureGC.count,l=++ke._globalBatch,c=0,u=a[0],d=0;o.copyBoundTextures(s,r);for(var h=0;h=r&&(o.boundArray(u,s,l,r),this.buildDrawCalls(u,d,h),d=h,u=a[++c],++l),p._batchEnabled=l,p.touched=f,u.elements[u.count++]=p)}u.count>0&&(o.boundArray(u,s,l,r),this.buildDrawCalls(u,d,this._bufferSize),++c,++l);for(var h=0;h0&&(n+=` else `),i"u"&&(Mc=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),Mc&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},t.prototype._hasFlag=function(e){return(this._flags&e)!==0},t.prototype._setFlag=function(e,n){this._flags=n?this._flags|e:this._flags&~e},t.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},t.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(t.STATUS_FLAGS.COMPLETE,!0),this._setFlag(t.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},t.prototype._loadElement=function(e){this.metadata.loadElement?this.data=this.metadata.loadElement:e==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(e),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},t.prototype._loadSourceElement=function(e){if(this.metadata.loadElement?this.data=this.metadata.loadElement:e==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(e),this.data===null){this.abort("Unsupported element: "+e);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var n=this.metadata.mimeType,i=0;i"u"?ly:e.status;(e.responseType===""||e.responseType==="text"||typeof e.responseType>"u")&&(n=e.responseText),i===EM&&(n.length>0||e.responseType===t.XHR_RESPONSE_TYPE.BUFFER)?i=ly:i===AM&&(i=CM);var r=i/100|0;if(r===PM)if(this.xhrType===t.XHR_RESPONSE_TYPE.TEXT)this.data=n,this.type=t.TYPE.TEXT;else if(this.xhrType===t.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(n),this.type=t.TYPE.JSON}catch(s){this.abort("Error trying to parse loaded json: "+s);return}else if(this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var a=new DOMParser;this.data=a.parseFromString(n,"text/xml")}else{var o=document.createElement("div");o.innerHTML=n,this.data=o}this.type=t.TYPE.XML}catch(s){this.abort("Error trying to parse loaded xml: "+s);return}else this.data=e.response||n;else{this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL);return}this.complete()},t.prototype._determineCrossOrigin=function(e,n){if(e.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";n=n||globalThis.location,Vf||(Vf=document.createElement("a")),Vf.href=e;var i=T3(Vf.href,{strictMode:!0}),r=!i.port&&n.port===""||i.port===n.port,a=i.protocol?i.protocol+":":"";return i.host!==n.hostname||!r||a!==n.protocol?"anonymous":""},t.prototype._determineXhrType=function(){return t._xhrTypeMap[this.extension]||t.XHR_RESPONSE_TYPE.TEXT},t.prototype._determineLoadType=function(){return t._loadTypeMap[this.extension]||t.LOAD_TYPE.XHR},t.prototype._getExtension=function(e){e===void 0&&(e=this.url);var n="";if(this.isDataUrl){var i=e.indexOf("/");n=e.substring(i+1,e.indexOf(";",i))}else{var r=e.indexOf("?"),a=e.indexOf("#"),o=Math.min(r>-1?r:e.length,a>-1?a:e.length);e=e.substring(0,o),n=e.substring(e.lastIndexOf(".")+1)}return n.toLowerCase()},t.prototype._getMimeFromXhrType=function(e){switch(e){case t.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case t.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case t.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case t.XHR_RESPONSE_TYPE.JSON:return"application/json";case t.XHR_RESPONSE_TYPE.DEFAULT:case t.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},t}();(function(t){(function(e){e[e.NONE=0]="NONE",e[e.DATA_URL=1]="DATA_URL",e[e.COMPLETE=2]="COMPLETE",e[e.LOADING=4]="LOADING"})(t.STATUS_FLAGS||(t.STATUS_FLAGS={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.JSON=1]="JSON",e[e.XML=2]="XML",e[e.IMAGE=3]="IMAGE",e[e.AUDIO=4]="AUDIO",e[e.VIDEO=5]="VIDEO",e[e.TEXT=6]="TEXT"}(t.TYPE||(t.TYPE={})),function(e){e[e.XHR=1]="XHR",e[e.IMAGE=2]="IMAGE",e[e.AUDIO=3]="AUDIO",e[e.VIDEO=4]="VIDEO"}(t.LOAD_TYPE||(t.LOAD_TYPE={})),function(e){e.DEFAULT="text",e.BUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.TEXT="text"}(t.XHR_RESPONSE_TYPE||(t.XHR_RESPONSE_TYPE={})),t._loadTypeMap={gif:t.LOAD_TYPE.IMAGE,png:t.LOAD_TYPE.IMAGE,bmp:t.LOAD_TYPE.IMAGE,jpg:t.LOAD_TYPE.IMAGE,jpeg:t.LOAD_TYPE.IMAGE,tif:t.LOAD_TYPE.IMAGE,tiff:t.LOAD_TYPE.IMAGE,webp:t.LOAD_TYPE.IMAGE,tga:t.LOAD_TYPE.IMAGE,avif:t.LOAD_TYPE.IMAGE,svg:t.LOAD_TYPE.IMAGE,"svg+xml":t.LOAD_TYPE.IMAGE,mp3:t.LOAD_TYPE.AUDIO,ogg:t.LOAD_TYPE.AUDIO,wav:t.LOAD_TYPE.AUDIO,mp4:t.LOAD_TYPE.VIDEO,webm:t.LOAD_TYPE.VIDEO},t._xhrTypeMap={xhtml:t.XHR_RESPONSE_TYPE.DOCUMENT,html:t.XHR_RESPONSE_TYPE.DOCUMENT,htm:t.XHR_RESPONSE_TYPE.DOCUMENT,xml:t.XHR_RESPONSE_TYPE.DOCUMENT,tmx:t.XHR_RESPONSE_TYPE.DOCUMENT,svg:t.XHR_RESPONSE_TYPE.DOCUMENT,tsx:t.XHR_RESPONSE_TYPE.DOCUMENT,gif:t.XHR_RESPONSE_TYPE.BLOB,png:t.XHR_RESPONSE_TYPE.BLOB,bmp:t.XHR_RESPONSE_TYPE.BLOB,jpg:t.XHR_RESPONSE_TYPE.BLOB,jpeg:t.XHR_RESPONSE_TYPE.BLOB,tif:t.XHR_RESPONSE_TYPE.BLOB,tiff:t.XHR_RESPONSE_TYPE.BLOB,webp:t.XHR_RESPONSE_TYPE.BLOB,tga:t.XHR_RESPONSE_TYPE.BLOB,avif:t.XHR_RESPONSE_TYPE.BLOB,json:t.XHR_RESPONSE_TYPE.JSON,text:t.XHR_RESPONSE_TYPE.TEXT,txt:t.XHR_RESPONSE_TYPE.TEXT,ttf:t.XHR_RESPONSE_TYPE.BUFFER,otf:t.XHR_RESPONSE_TYPE.BUFFER},t.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(Tt||(Tt={}));function Zi(){}function MM(t){return function(){for(var n=arguments,i=[],r=0;r>2,r[1]=(i[0]&3)<<4|i[1]>>4,r[2]=(i[1]&15)<<2|i[2]>>6,r[3]=i[2]&63;var o=n-(t.length-1);switch(o){case 2:r[3]=64,r[2]=64;break;case 1:r[3]=64;break}for(var a=0;a=0;)t[e]=0}const jM=3,UM=258,E3=29,zM=256,VM=zM+1+E3,C3=30,HM=512,$M=new Array((VM+2)*2);ro($M);const GM=new Array(C3*2);ro(GM);const WM=new Array(HM);ro(WM);const qM=new Array(UM-jM+1);ro(qM);const XM=new Array(E3);ro(XM);const YM=new Array(C3);ro(YM);const KM=(t,e,n,i)=>{let r=t&65535|0,a=t>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do r=r+e[i++]|0,a=a+r|0;while(--o);r%=65521,a%=65521}return r|a<<16|0};var Ip=KM;const ZM=()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;e[n]=t}return e},QM=new Uint32Array(ZM()),JM=(t,e,n,i)=>{const r=QM,a=i+n;t^=-1;for(let o=i;o>>8^r[(t^e[o])&255];return t^-1};var gn=JM,Bp={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},A3={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const eR=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var tR=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const i in n)eR(n,i)&&(t[i]=n[i])}}return t},nR=t=>{let e=0;for(let i=0,r=t.length;i=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Rs[254]=Rs[254]=1;var iR=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,n,i,r,a,o=t.length,s=0;for(r=0;r>>6,e[a++]=128|n&63):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|n&63):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|n&63);return e};const rR=(t,e)=>{if(e<65534&&t.subarray&&M3)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let i=0;i{const n=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let i,r;const a=new Array(n*2);for(r=0,i=0;i4){a[r++]=65533,i+=s-1;continue}for(o&=s===2?31:s===3?15:7;s>1&&i1){a[r++]=65533;continue}o<65536?a[r++]=o:(o-=65536,a[r++]=55296|o>>10&1023,a[r++]=56320|o&1023)}return rR(a,r)},oR=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let n=e-1;for(;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?e:n+Rs[t[n]]>e?n:e},Dp={string2buf:iR,buf2string:aR,utf8border:oR};function sR(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var fR=sR;const Hf=16209,lR=16191;var uR=function(e,n){let i,r,a,o,s,f,l,c,u,d,h,p,m,v,g,y,_,w,k,b,x,S,T,E;const A=e.state;i=e.next_in,T=e.input,r=i+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(n-e.avail_out),s=a+(e.avail_out-257),f=A.dmax,l=A.wsize,c=A.whave,u=A.wnext,d=A.window,h=A.hold,p=A.bits,m=A.lencode,v=A.distcode,g=(1<>>24,h>>>=w,p-=w,w=_>>>16&255,w===0)E[a++]=_&65535;else if(w&16){k=_&65535,w&=15,w&&(p>>=w,p-=w),p<15&&(h+=T[i++]<>>24,h>>>=w,p-=w,w=_>>>16&255,w&16){if(b=_&65535,w&=15,pf){e.msg="invalid distance too far back",A.mode=Hf;break e}if(h>>>=w,p-=w,w=a-o,b>w){if(w=b-w,w>c&&A.sane){e.msg="invalid distance too far back",A.mode=Hf;break e}if(x=0,S=d,u===0){if(x+=l-w,w2;)E[a++]=S[x++],E[a++]=S[x++],E[a++]=S[x++],k-=3;k&&(E[a++]=S[x++],k>1&&(E[a++]=S[x++]))}else{x=a-b;do E[a++]=E[x++],E[a++]=E[x++],E[a++]=E[x++],k-=3;while(k>2);k&&(E[a++]=E[x++],k>1&&(E[a++]=E[x++]))}}else if(w&64){e.msg="invalid distance code",A.mode=Hf;break e}else{_=v[(_&65535)+(h&(1<>3,i-=k,p-=k<<3,h&=(1<{const f=s.bits;let l=0,c=0,u=0,d=0,h=0,p=0,m=0,v=0,g=0,y=0,_,w,k,b,x,S=null,T;const E=new Uint16Array(Kr+1),A=new Uint16Array(Kr+1);let I=null,D,$,R;for(l=0;l<=Kr;l++)E[l]=0;for(c=0;c=1&&E[d]===0;d--);if(h>d&&(h=d),d===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(u=1;u0&&(t===py||d!==1))return-1;for(A[1]=0,l=1;lcy||t===vy&&g>hy)return 1;for(;;){D=l-m,o[c]+1=T?($=I[o[c]-T],R=S[o[c]-T]):($=96,R=0),_=1<>m)+w]=D<<24|$<<16|R|0;while(w!==0);for(_=1<>=1;if(_!==0?(y&=_-1,y+=_):y=0,c++,--E[l]===0){if(l===d)break;l=e[n+o[c]]}if(l>h&&(y&b)!==k){for(m===0&&(m=h),x+=u,p=l-m,v=1<cy||t===vy&&g>hy)return 1;k=y&b,r[k]=h<<24|p<<16|x-a|0}}return y!==0&&(r[x+y]=l-m<<24|64<<16|0),s.bits=h,0};var Yo=vR;const mR=0,R3=1,O3=2,{Z_FINISH:my,Z_BLOCK:gR,Z_TREES:$f,Z_OK:Dr,Z_STREAM_END:yR,Z_NEED_DICT:_R,Z_STREAM_ERROR:tn,Z_DATA_ERROR:F3,Z_MEM_ERROR:I3,Z_BUF_ERROR:wR,Z_DEFLATED:gy}=A3,fd=16180,yy=16181,_y=16182,wy=16183,ky=16184,by=16185,xy=16186,Sy=16187,Ty=16188,Ey=16189,mu=16190,Fn=16191,Bc=16192,Cy=16193,Dc=16194,Ay=16195,Py=16196,My=16197,Ry=16198,Gf=16199,Wf=16200,Oy=16201,Fy=16202,Iy=16203,By=16204,Dy=16205,Lc=16206,Ly=16207,Ny=16208,Se=16209,B3=16210,D3=16211,kR=852,bR=592,xR=15,SR=xR,jy=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function TR(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Vr=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.modeD3?1:0},L3=t=>{if(Vr(t))return tn;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=fd,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(kR),e.distcode=e.distdyn=new Int32Array(bR),e.sane=1,e.back=-1,Dr},N3=t=>{if(Vr(t))return tn;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,L3(t)},j3=(t,e)=>{let n;if(Vr(t))return tn;const i=t.state;return e<0?(n=0,e=-e):(n=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?tn:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,N3(t))},U3=(t,e)=>{if(!t)return tn;const n=new TR;t.state=n,n.strm=t,n.window=null,n.mode=fd;const i=j3(t,e);return i!==Dr&&(t.state=null),i},ER=t=>U3(t,SR);let Uy=!0,Nc,jc;const CR=t=>{if(Uy){Nc=new Int32Array(512),jc=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Yo(R3,t.lens,0,288,Nc,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Yo(O3,t.lens,0,32,jc,0,t.work,{bits:5}),Uy=!1}t.lencode=Nc,t.lenbits=9,t.distcode=jc,t.distbits=5},z3=(t,e,n,i)=>{let r;const a=t.state;return a.window===null&&(a.wsize=1<=a.wsize?(a.window.set(e.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(e.subarray(n-i,n-i+r),a.wnext),i-=r,i?(a.window.set(e.subarray(n-i,n),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave{let n,i,r,a,o,s,f,l,c,u,d,h,p,m,v=0,g,y,_,w,k,b,x,S;const T=new Uint8Array(4);let E,A;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Vr(t)||!t.output||!t.input&&t.avail_in!==0)return tn;n=t.state,n.mode===Fn&&(n.mode=Bc),o=t.next_out,r=t.output,f=t.avail_out,a=t.next_in,i=t.input,s=t.avail_in,l=n.hold,c=n.bits,u=s,d=f,S=Dr;e:for(;;)switch(n.mode){case fd:if(n.wrap===0){n.mode=Bc;break}for(;c<16;){if(s===0)break e;s--,l+=i[a++]<>>8&255,n.check=gn(n.check,T,2,0),l=0,c=0,n.mode=yy;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){t.msg="incorrect header check",n.mode=Se;break}if((l&15)!==gy){t.msg="unknown compression method",n.mode=Se;break}if(l>>>=4,c-=4,x=(l&15)+8,n.wbits===0&&(n.wbits=x),x>15||x>n.wbits){t.msg="invalid window size",n.mode=Se;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=gn(n.check,T,2,0)),l=0,c=0,n.mode=_y;case _y:for(;c<32;){if(s===0)break e;s--,l+=i[a++]<>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=gn(n.check,T,4,0)),l=0,c=0,n.mode=wy;case wy:for(;c<16;){if(s===0)break e;s--,l+=i[a++]<>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=gn(n.check,T,2,0)),l=0,c=0,n.mode=ky;case ky:if(n.flags&1024){for(;c<16;){if(s===0)break e;s--,l+=i[a++]<>>8&255,n.check=gn(n.check,T,2,0)),l=0,c=0}else n.head&&(n.head.extra=null);n.mode=by;case by:if(n.flags&1024&&(h=n.length,h>s&&(h=s),h&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(a,a+h),x)),n.flags&512&&n.wrap&4&&(n.check=gn(n.check,i,h,a)),s-=h,a+=h,n.length-=h),n.length))break e;n.length=0,n.mode=xy;case xy:if(n.flags&2048){if(s===0)break e;h=0;do x=i[a+h++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x));while(x&&h>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=Fn;break;case Ey:for(;c<32;){if(s===0)break e;s--,l+=i[a++]<>>=c&7,c-=c&7,n.mode=Lc;break}for(;c<3;){if(s===0)break e;s--,l+=i[a++]<>>=1,c-=1,l&3){case 0:n.mode=Cy;break;case 1:if(CR(n),n.mode=Gf,e===$f){l>>>=2,c-=2;break e}break;case 2:n.mode=Py;break;case 3:t.msg="invalid block type",n.mode=Se}l>>>=2,c-=2;break;case Cy:for(l>>>=c&7,c-=c&7;c<32;){if(s===0)break e;s--,l+=i[a++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=Se;break}if(n.length=l&65535,l=0,c=0,n.mode=Dc,e===$f)break e;case Dc:n.mode=Ay;case Ay:if(h=n.length,h){if(h>s&&(h=s),h>f&&(h=f),h===0)break e;r.set(i.subarray(a,a+h),o),s-=h,a+=h,f-=h,o+=h,n.length-=h;break}n.mode=Fn;break;case Py:for(;c<14;){if(s===0)break e;s--,l+=i[a++]<>>=5,c-=5,n.ndist=(l&31)+1,l>>>=5,c-=5,n.ncode=(l&15)+4,l>>>=4,c-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Se;break}n.have=0,n.mode=My;case My:for(;n.have>>=3,c-=3}for(;n.have<19;)n.lens[I[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},S=Yo(mR,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,S){t.msg="invalid code lengths set",n.mode=Se;break}n.have=0,n.mode=Ry;case Ry:for(;n.have>>24,y=v>>>16&255,_=v&65535,!(g<=c);){if(s===0)break e;s--,l+=i[a++]<>>=g,c-=g,n.lens[n.have++]=_;else{if(_===16){for(A=g+2;c>>=g,c-=g,n.have===0){t.msg="invalid bit length repeat",n.mode=Se;break}x=n.lens[n.have-1],h=3+(l&3),l>>>=2,c-=2}else if(_===17){for(A=g+3;c>>=g,c-=g,x=0,h=3+(l&7),l>>>=3,c-=3}else{for(A=g+7;c>>=g,c-=g,x=0,h=11+(l&127),l>>>=7,c-=7}if(n.have+h>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Se;break}for(;h--;)n.lens[n.have++]=x}}if(n.mode===Se)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=Se;break}if(n.lenbits=9,E={bits:n.lenbits},S=Yo(R3,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,S){t.msg="invalid literal/lengths set",n.mode=Se;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},S=Yo(O3,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,S){t.msg="invalid distances set",n.mode=Se;break}if(n.mode=Gf,e===$f)break e;case Gf:n.mode=Wf;case Wf:if(s>=6&&f>=258){t.next_out=o,t.avail_out=f,t.next_in=a,t.avail_in=s,n.hold=l,n.bits=c,uR(t,d),o=t.next_out,r=t.output,f=t.avail_out,a=t.next_in,i=t.input,s=t.avail_in,l=n.hold,c=n.bits,n.mode===Fn&&(n.back=-1);break}for(n.back=0;v=n.lencode[l&(1<>>24,y=v>>>16&255,_=v&65535,!(g<=c);){if(s===0)break e;s--,l+=i[a++]<>w)],g=v>>>24,y=v>>>16&255,_=v&65535,!(w+g<=c);){if(s===0)break e;s--,l+=i[a++]<>>=w,c-=w,n.back+=w}if(l>>>=g,c-=g,n.back+=g,n.length=_,y===0){n.mode=Dy;break}if(y&32){n.back=-1,n.mode=Fn;break}if(y&64){t.msg="invalid literal/length code",n.mode=Se;break}n.extra=y&15,n.mode=Oy;case Oy:if(n.extra){for(A=n.extra;c>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Fy;case Fy:for(;v=n.distcode[l&(1<>>24,y=v>>>16&255,_=v&65535,!(g<=c);){if(s===0)break e;s--,l+=i[a++]<>w)],g=v>>>24,y=v>>>16&255,_=v&65535,!(w+g<=c);){if(s===0)break e;s--,l+=i[a++]<>>=w,c-=w,n.back+=w}if(l>>>=g,c-=g,n.back+=g,y&64){t.msg="invalid distance code",n.mode=Se;break}n.offset=_,n.extra=y&15,n.mode=Iy;case Iy:if(n.extra){for(A=n.extra;c>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Se;break}n.mode=By;case By:if(f===0)break e;if(h=d-f,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Se;break}h>n.wnext?(h-=n.wnext,p=n.wsize-h):p=n.wnext-h,h>n.length&&(h=n.length),m=n.window}else m=r,p=o-n.offset,h=n.length;h>f&&(h=f),f-=h,n.length-=h;do r[o++]=m[p++];while(--h);n.length===0&&(n.mode=Wf);break;case Dy:if(f===0)break e;r[o++]=n.length,f--,n.mode=Wf;break;case Lc:if(n.wrap){for(;c<32;){if(s===0)break e;s--,l|=i[a++]<{if(Vr(t))return tn;let e=t.state;return e.window&&(e.window=null),t.state=null,Dr},MR=(t,e)=>{if(Vr(t))return tn;const n=t.state;return n.wrap&2?(n.head=e,e.done=!1,Dr):tn},RR=(t,e)=>{const n=e.length;let i,r,a;return Vr(t)||(i=t.state,i.wrap!==0&&i.mode!==mu)?tn:i.mode===mu&&(r=1,r=Ip(r,e,n,0),r!==i.check)?F3:(a=z3(t,e,n,n),a?(i.mode=B3,I3):(i.havedict=1,Dr))};var OR=N3,FR=j3,IR=L3,BR=ER,DR=U3,LR=AR,NR=PR,jR=MR,UR=RR,zR="pako inflate (from Nodeca project)",jn={inflateReset:OR,inflateReset2:FR,inflateResetKeep:IR,inflateInit:BR,inflateInit2:DR,inflate:LR,inflateEnd:NR,inflateGetHeader:jR,inflateSetDictionary:UR,inflateInfo:zR};function VR(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var HR=VR;const V3=Object.prototype.toString,{Z_NO_FLUSH:$R,Z_FINISH:GR,Z_OK:Os,Z_STREAM_END:Uc,Z_NEED_DICT:zc,Z_STREAM_ERROR:WR,Z_DATA_ERROR:zy,Z_MEM_ERROR:qR}=A3;function ld(t){this.options=P3.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new fR,this.strm.avail_out=0;let n=jn.inflateInit2(this.strm,e.windowBits);if(n!==Os)throw new Error(Bp[n]);if(this.header=new HR,jn.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Dp.string2buf(e.dictionary):V3.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=jn.inflateSetDictionary(this.strm,e.dictionary),n!==Os)))throw new Error(Bp[n])}ld.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(e===~~e?o=e:o=e===!0?GR:$R,V3.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),a=jn.inflate(n,o),a===zc&&r&&(a=jn.inflateSetDictionary(n,r),a===Os?a=jn.inflate(n,o):a===zy&&(a=zc));n.avail_in>0&&a===Uc&&n.state.wrap>0&&t[n.next_in]!==0;)jn.inflateReset(n),a=jn.inflate(n,o);switch(a){case WR:case zy:case zc:case qR:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===Uc))if(this.options.to==="string"){let f=Dp.utf8border(n.output,n.next_out),l=n.next_out-f,c=Dp.buf2string(n.output,f);n.next_out=l,n.avail_out=i-l,l&&n.output.set(n.output.subarray(f,f+l),0),this.onData(c)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===Os&&s===0)){if(a===Uc)return a=jn.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};ld.prototype.onData=function(t){this.chunks.push(t)};ld.prototype.onEnd=function(t){t===Os&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=P3.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function XR(t,e){const n=new ld(e);if(n.push(t),n.err)throw n.msg||Bp[n.err];return n.result}var YR=XR,KR={inflate:YR};const{inflate:ZR}=KR;var CV=ZR;/*! * @pixi/display - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/display is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */H.SORTABLE_CHILDREN=!1;var gu=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?te.EMPTY:(e=e||new te(0,0,1,1),e.x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},t.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},t.prototype.addPointMatrix=function(e,n){var i=e.a,r=e.b,a=e.c,o=e.d,s=e.tx,f=e.ty,l=i*n.x+a*n.y+s,c=r*n.x+o*n.y+f;this.minX=Math.min(this.minX,l),this.maxX=Math.max(this.maxX,l),this.minY=Math.min(this.minY,c),this.maxY=Math.max(this.maxY,c)},t.prototype.addQuad=function(e){var n=this.minX,i=this.minY,r=this.maxX,a=this.maxY,o=e[0],s=e[1];n=or?o:r,a=s>a?s:a,o=e[2],s=e[3],n=or?o:r,a=s>a?s:a,o=e[4],s=e[5],n=or?o:r,a=s>a?s:a,o=e[6],s=e[7],n=or?o:r,a=s>a?s:a,this.minX=n,this.minY=i,this.maxX=r,this.maxY=a},t.prototype.addFrame=function(e,n,i,r,a){this.addFrameMatrix(e.worldTransform,n,i,r,a)},t.prototype.addFrameMatrix=function(e,n,i,r,a){var o=e.a,s=e.b,f=e.c,l=e.d,c=e.tx,u=e.ty,d=this.minX,h=this.minY,p=this.maxX,m=this.maxY,v=o*n+f*i+c,g=s*n+l*i+u;d=vp?v:p,m=g>m?g:m,v=o*r+f*i+c,g=s*r+l*i+u,d=vp?v:p,m=g>m?g:m,v=o*n+f*a+c,g=s*n+l*a+u,d=vp?v:p,m=g>m?g:m,v=o*r+f*a+c,g=s*r+l*a+u,d=vp?v:p,m=g>m?g:m,this.minX=d,this.minY=h,this.maxX=p,this.maxY=m},t.prototype.addVertexData=function(e,n,i){for(var r=this.minX,a=this.minY,o=this.maxX,s=this.maxY,f=n;fo?l:o,s=c>s?c:s}this.minX=r,this.minY=a,this.maxX=o,this.maxY=s},t.prototype.addVertices=function(e,n,i,r){this.addVerticesMatrix(e.worldTransform,n,i,r)},t.prototype.addVerticesMatrix=function(e,n,i,r,a,o){a===void 0&&(a=0),o===void 0&&(o=a);for(var s=e.a,f=e.b,l=e.c,c=e.d,u=e.tx,d=e.ty,h=this.minX,p=this.minY,m=this.maxX,v=this.maxY,g=i;gr?e.maxX:r,this.maxY=e.maxY>a?e.maxY:a},t.prototype.addBoundsMask=function(e,n){var i=e.minX>n.minX?e.minX:n.minX,r=e.minY>n.minY?e.minY:n.minY,a=e.maxXl?a:l,this.maxY=o>c?o:c}},t.prototype.addBoundsMatrix=function(e,n){this.addFrameMatrix(n,e.minX,e.minY,e.maxX,e.maxY)},t.prototype.addBoundsArea=function(e,n){var i=e.minX>n.x?e.minX:n.x,r=e.minY>n.y?e.minY:n.y,a=e.maxXl?a:l,this.maxY=o>c?o:c}},t.prototype.pad=function(e,n){e===void 0&&(e=0),n===void 0&&(n=e),this.isEmpty()||(this.minX-=e,this.maxX+=e,this.minY-=n,this.maxY+=n)},t.prototype.addFramePad=function(e,n,i,r,a,o){e-=a,n-=o,i+=a,r+=o,this.minX=this.minXi?this.maxX:i,this.minY=this.minYr?this.maxY:r},t}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Lp=function(t,e){return Lp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},Lp(t,e)};function G1(t,e){Lp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var qe=function(t){G1(e,t);function e(){var n=t.call(this)||this;return n.tempDisplayObjectParent=null,n.transform=new l3,n.alpha=1,n.visible=!0,n.renderable=!0,n.cullable=!1,n.cullArea=null,n.parent=null,n.worldAlpha=1,n._lastSortedIndex=0,n._zIndex=0,n.filterArea=null,n.filters=null,n._enabledFilters=null,n._bounds=new gu,n._localBounds=null,n._boundsID=0,n._boundsRect=null,n._localBoundsRect=null,n._mask=null,n._maskRefCount=0,n._destroyed=!1,n.isSprite=!1,n.isMask=!1,n}return e.mixin=function(n){for(var i=Object.keys(n),r=0;r1)for(var a=0;athis.children.length)throw new Error(n+"addChildAt: The index "+i+" supplied is out of bounds "+this.children.length);return n.parent&&n.parent.removeChild(n),n.parent=this,this.sortDirty=!0,n.transform._parentID=-1,this.children.splice(i,0,n),this._boundsID++,this.onChildrenChange(i),n.emit("added",this),this.emit("childAdded",n,this,i),n},e.prototype.swapChildren=function(n,i){if(n!==i){var r=this.getChildIndex(n),a=this.getChildIndex(i);this.children[r]=i,this.children[a]=n,this.onChildrenChange(r=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var r=this.getChildIndex(n);Sl(this.children,r,1),this.children.splice(i,0,n),this.onChildrenChange(i)},e.prototype.getChildAt=function(n){if(n<0||n>=this.children.length)throw new Error("getChildAt: Index ("+n+") does not exist.");return this.children[n]},e.prototype.removeChild=function(){for(var n=arguments,i=[],r=0;r1)for(var a=0;a0&&o<=a){s=this.children.splice(r,o);for(var f=0;f1&&this.children.sort(JR),this.sortDirty=!1},e.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var n=0,i=this.children.length;n0&&i.height>0){var r,a;if(this.cullArea?(r=this.cullArea,a=this.worldTransform):this._render!==e.prototype._render&&(r=this.getBounds(!0)),r&&i.intersects(r,a))this._render(n);else if(this.cullArea)return;for(var o=0,s=this.children.length;o=a&&ko.x=o&&ko.y>16)+(n&65280)+((n&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(n){this._texture!==n&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=n||We.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,n&&(n.baseTexture.valid?this._onTextureUpdate():n.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),e}(Di);/*! * @pixi/filter-color-matrix - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/filter-color-matrix is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license *//*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Up=function(t,e){return Up=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},Up(t,e)};function oO(t,e){Up(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var sO=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform float m[20]; uniform float uAlpha; void main(void) { vec4 c = texture2D(uSampler, vTextureCoord); if (uAlpha == 0.0) { gl_FragColor = c; return; } // Un-premultiply alpha before applying the color matrix. See issue #3539. if (c.a > 0.0) { c.rgb /= c.a; } vec4 result; result.r = (m[0] * c.r); result.r += (m[1] * c.g); result.r += (m[2] * c.b); result.r += (m[3] * c.a); result.r += m[4]; result.g = (m[5] * c.r); result.g += (m[6] * c.g); result.g += (m[7] * c.b); result.g += (m[8] * c.a); result.g += m[9]; result.b = (m[10] * c.r); result.b += (m[11] * c.g); result.b += (m[12] * c.b); result.b += (m[13] * c.a); result.b += m[14]; result.a = (m[15] * c.r); result.a += (m[16] * c.g); result.a += (m[17] * c.b); result.a += (m[18] * c.a); result.a += m[19]; vec3 rgb = mix(c.rgb, result.rgb, uAlpha); // Premultiply alpha again. rgb *= result.a; gl_FragColor = vec4(rgb, result.a); } `,Vy=function(t){oO(e,t);function e(){var n=this,i={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return n=t.call(this,wM,sO,i)||this,n.alpha=1,n}return e.prototype._loadMatrix=function(n,i){i===void 0&&(i=!1);var r=n;i&&(this._multiply(r,this.uniforms.m,n),r=this._colorMatrix(r)),this.uniforms.m=r},e.prototype._multiply=function(n,i,r){return n[0]=i[0]*r[0]+i[1]*r[5]+i[2]*r[10]+i[3]*r[15],n[1]=i[0]*r[1]+i[1]*r[6]+i[2]*r[11]+i[3]*r[16],n[2]=i[0]*r[2]+i[1]*r[7]+i[2]*r[12]+i[3]*r[17],n[3]=i[0]*r[3]+i[1]*r[8]+i[2]*r[13]+i[3]*r[18],n[4]=i[0]*r[4]+i[1]*r[9]+i[2]*r[14]+i[3]*r[19]+i[4],n[5]=i[5]*r[0]+i[6]*r[5]+i[7]*r[10]+i[8]*r[15],n[6]=i[5]*r[1]+i[6]*r[6]+i[7]*r[11]+i[8]*r[16],n[7]=i[5]*r[2]+i[6]*r[7]+i[7]*r[12]+i[8]*r[17],n[8]=i[5]*r[3]+i[6]*r[8]+i[7]*r[13]+i[8]*r[18],n[9]=i[5]*r[4]+i[6]*r[9]+i[7]*r[14]+i[8]*r[19]+i[9],n[10]=i[10]*r[0]+i[11]*r[5]+i[12]*r[10]+i[13]*r[15],n[11]=i[10]*r[1]+i[11]*r[6]+i[12]*r[11]+i[13]*r[16],n[12]=i[10]*r[2]+i[11]*r[7]+i[12]*r[12]+i[13]*r[17],n[13]=i[10]*r[3]+i[11]*r[8]+i[12]*r[13]+i[13]*r[18],n[14]=i[10]*r[4]+i[11]*r[9]+i[12]*r[14]+i[13]*r[19]+i[14],n[15]=i[15]*r[0]+i[16]*r[5]+i[17]*r[10]+i[18]*r[15],n[16]=i[15]*r[1]+i[16]*r[6]+i[17]*r[11]+i[18]*r[16],n[17]=i[15]*r[2]+i[16]*r[7]+i[17]*r[12]+i[18]*r[17],n[18]=i[15]*r[3]+i[16]*r[8]+i[17]*r[13]+i[18]*r[18],n[19]=i[15]*r[4]+i[16]*r[9]+i[17]*r[14]+i[18]*r[19]+i[19],n},e.prototype._colorMatrix=function(n){var i=new Float32Array(n);return i[4]/=255,i[9]/=255,i[14]/=255,i[19]/=255,i},e.prototype.brightness=function(n,i){var r=[n,0,0,0,0,0,n,0,0,0,0,0,n,0,0,0,0,0,1,0];this._loadMatrix(r,i)},e.prototype.tint=function(n,i){var r=n>>16&255,a=n>>8&255,o=n&255,s=[r/255,0,0,0,0,0,a/255,0,0,0,0,0,o/255,0,0,0,0,0,1,0];this._loadMatrix(s,i)},e.prototype.greyscale=function(n,i){var r=[n,n,n,0,0,n,n,n,0,0,n,n,n,0,0,0,0,0,1,0];this._loadMatrix(r,i)},e.prototype.blackAndWhite=function(n){var i=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.hue=function(n,i){n=(n||0)/180*Math.PI;var r=Math.cos(n),a=Math.sin(n),o=Math.sqrt,s=1/3,f=o(s),l=r+(1-r)*s,c=s*(1-r)-f*a,u=s*(1-r)+f*a,d=s*(1-r)+f*a,h=r+s*(1-r),p=s*(1-r)-f*a,m=s*(1-r)-f*a,v=s*(1-r)+f*a,g=r+s*(1-r),y=[l,c,u,0,0,d,h,p,0,0,m,v,g,0,0,0,0,0,1,0];this._loadMatrix(y,i)},e.prototype.contrast=function(n,i){var r=(n||0)+1,a=-.5*(r-1),o=[r,0,0,0,a,0,r,0,0,a,0,0,r,0,a,0,0,0,1,0];this._loadMatrix(o,i)},e.prototype.saturate=function(n,i){n===void 0&&(n=0);var r=n*2/3+1,a=(r-1)*-.5,o=[r,a,a,0,0,a,r,a,0,0,a,a,r,0,0,0,0,0,1,0];this._loadMatrix(o,i)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(n){var i=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.sepia=function(n){var i=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.technicolor=function(n){var i=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.polaroid=function(n){var i=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.toBGR=function(n){var i=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.kodachrome=function(n){var i=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.browni=function(n){var i=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.vintage=function(n){var i=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.colorTone=function(n,i,r,a,o){n=n||.2,i=i||.15,r=r||16770432,a=a||3375104;var s=(r>>16&255)/255,f=(r>>8&255)/255,l=(r&255)/255,c=(a>>16&255)/255,u=(a>>8&255)/255,d=(a&255)/255,h=[.3,.59,.11,0,0,s,f,l,n,0,c,u,d,i,0,s-c,f-u,l-d,0,0];this._loadMatrix(h,o)},e.prototype.night=function(n,i){n=n||.1;var r=[n*-2,-n,0,0,0,-n,0,n,0,0,0,n,n*2,0,0,0,0,0,1,0];this._loadMatrix(r,i)},e.prototype.predator=function(n,i){var r=[11.224130630493164*n,-4.794486999511719*n,-2.8746118545532227*n,0*n,.40342438220977783*n,-3.6330697536468506*n,9.193157196044922*n,-2.951810836791992*n,0*n,-1.316135048866272*n,-3.2184197902679443*n,-4.2375030517578125*n,7.476448059082031*n,0*n,.8044459223747253*n,0,0,0,1,0];this._loadMatrix(r,i)},e.prototype.lsd=function(n){var i=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.reset=function(){var n=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(n,!1)},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(n){this.uniforms.m=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(n){this.uniforms.uAlpha=n},enumerable:!1,configurable:!0}),e}($1);Vy.prototype.grayscale=Vy.prototype.greyscale;/*! * @pixi/graphics - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/graphics is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */var zn;(function(t){t.MITER="miter",t.BEVEL="bevel",t.ROUND="round"})(zn||(zn={}));var _i;(function(t){t.BUTT="butt",t.ROUND="round",t.SQUARE="square"})(_i||(_i={}));var Fs={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){if(e===void 0&&(e=20),!this.adaptive||!t||isNaN(t))return e;var n=Math.ceil(t/this.maxLength);return nthis.maxSegments&&(n=this.maxSegments),n}},H3=function(){function t(){this.color=16777215,this.alpha=1,this.texture=We.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var e=new t;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=We.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var zp=function(t,e){return zp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},zp(t,e)};function W1(t,e){zp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Hy(t,e){var n,i;e===void 0&&(e=!1);var r=t.length;if(!(r<6)){for(var a=0,o=0,s=t[r-2],f=t[r-1];o0||e&&a<=0)for(var u=r/2,o=u+u%2;o=6){Hy(n,!1);for(var o=[],s=0;s=0&&s>=0&&r>=0&&a>=0)){e.length=0;return}var h=Math.ceil(2.3*Math.sqrt(o+s)),p=h*8+(r?4:0)+(a?4:0);if(e.length=p,p!==0){if(h===0){e.length=8,e[0]=e[6]=n+r,e[1]=e[3]=i+a,e[2]=e[4]=n-r,e[5]=e[7]=i-a;return}var m=0,v=h*4+(r?2:0)+2,g=v,y=p;{var _=r+o,w=a,k=n+_,b=n-_,x=i+w;if(e[m++]=k,e[m++]=x,e[--v]=x,e[--v]=b,a){var S=i-w;e[g++]=b,e[g++]=S,e[--y]=S,e[--y]=k}}for(var T=1;Tu&&(u+=Math.PI*2);var d=c,h=u-c,p=Math.abs(h),m=Math.sqrt(f*f+l*l),v=(15*p*Math.sqrt(m)/Math.PI>>0)+1,g=h/v;if(d+=g,s){o.push(t,e),o.push(n,i);for(var y=1,_=d;y=0&&(a.join===zn.ROUND?p+=Qi(k,b,k-T*R,b-E*R,k-A*R,b-I*R,d,!1)+4:p+=2,d.push(k-A*B,b-I*B),d.push(k+A*R,b+I*R));continue}var oe=(-T+_)*(-E+b)-(-T+k)*(-E+w),J=(-A+x)*(-I+b)-(-A+k)*(-I+S),de=(O*J-P*oe)/Z,he=(L*oe-N*J)/Z,Be=(de-k)*(de-k)+(he-b)*(he-b),De=k+(de-k)*R,ce=b+(he-b)*R,ae=k-(de-k)*B,pe=b-(he-b)*B,nt=Math.min(O*O+N*N,P*P+L*L),Q=Y?R:B,se=nt+Q*Q*g,fe=Be<=se;fe?a.join===zn.BEVEL||Be/g>y?(Y?(d.push(De,ce),d.push(k+T*B,b+E*B),d.push(De,ce),d.push(k+A*B,b+I*B)):(d.push(k-T*R,b-E*R),d.push(ae,pe),d.push(k-A*R,b-I*R),d.push(ae,pe)),p+=2):a.join===zn.ROUND?Y?(d.push(De,ce),d.push(k+T*B,b+E*B),p+=Qi(k,b,k+T*B,b+E*B,k+A*B,b+I*B,d,!0)+4,d.push(De,ce),d.push(k+A*B,b+I*B)):(d.push(k-T*R,b-E*R),d.push(ae,pe),p+=Qi(k,b,k-T*R,b-E*R,k-A*R,b-I*R,d,!1)+4,d.push(k-A*R,b-I*R),d.push(ae,pe)):(d.push(De,ce),d.push(ae,pe)):(d.push(k-T*R,b-E*R),d.push(k+T*B,b+E*B),a.join===zn.ROUND?Y?p+=Qi(k,b,k+T*B,b+E*B,k+A*B,b+I*B,d,!0)+2:p+=Qi(k,b,k-T*R,b-E*R,k-A*R,b-I*R,d,!1)+2:a.join===zn.MITER&&Be/g<=y&&(Y?(d.push(ae,pe),d.push(ae,pe)):(d.push(De,ce),d.push(De,ce)),p+=2),d.push(k-A*R,b-I*R),d.push(k+A*B,b+I*B),p+=2)}_=i[(h-2)*2],w=i[(h-2)*2+1],k=i[(h-1)*2],b=i[(h-1)*2+1],T=-(w-b),E=_-k,D=Math.sqrt(T*T+E*E),T/=D,E/=D,T*=v,E*=v,d.push(k-T*R,b-E*R),d.push(k+T*B,b+E*B),f||(a.cap===_i.ROUND?p+=Qi(k-T*(R-B)*.5,b-E*(R-B)*.5,k-T*R,b-E*R,k+T*B,b+E*B,d,!1)+2:a.cap===_i.SQUARE&&(p+=$y(k,b,T,E,R,B,!1,d)));for(var lt=e.indices,ee=Fs.epsilon*Fs.epsilon,U=m;Ud*l}},t.arc=function(e,n,i,r,a,o,s,f,l){for(var c=s-o,u=Fs._segmentsCount(Math.abs(c)*a,Math.ceil(Math.abs(c)/Ps)*40),d=c/(u*2),h=d*2,p=Math.cos(d),m=Math.sin(d),v=u-1,g=v%1/v,y=0;y<=v;++y){var _=y+g*y,w=d+o+h*_,k=Math.cos(w),b=-Math.sin(w);l.push((p*k+m*b)*a+i,(p*-b+m*k)*a+r)}},t}(),cO=function(){function t(){}return t.curveLength=function(e,n,i,r,a,o,s,f){for(var l=10,c=0,u=0,d=0,h=0,p=0,m=0,v=0,g=0,y=0,_=0,w=0,k=e,b=n,x=1;x<=l;++x)u=x/l,d=u*u,h=d*u,p=1-u,m=p*p,v=m*p,g=v*e+3*m*u*i+3*p*d*a+h*s,y=v*n+3*m*u*r+3*p*d*o+h*f,_=k-g,w=b-y,k=g,b=y,c+=Math.sqrt(_*_+w*w);return c},t.curveTo=function(e,n,i,r,a,o,s){var f=s[s.length-2],l=s[s.length-1];s.length-=2;var c=Fs._segmentsCount(t.curveLength(f,l,e,n,i,r,a,o)),u=0,d=0,h=0,p=0,m=0;s.push(f,l);for(var v=1,g=0;v<=c;++v)g=v/c,u=1-g,d=u*u,h=d*u,p=g*g,m=p*g,s.push(h*f+3*d*g*e+3*u*p*i+m*a,h*l+3*d*g*n+3*u*p*r+m*o)},t}(),hO=function(){function t(){}return t.curveLength=function(e,n,i,r,a,o){var s=e-2*i+a,f=n-2*r+o,l=2*i-2*e,c=2*r-2*n,u=4*(s*s+f*f),d=4*(s*l+f*c),h=l*l+c*c,p=2*Math.sqrt(u+d+h),m=Math.sqrt(u),v=2*u*m,g=2*Math.sqrt(h),y=d/m;return(v*p+m*d*(p-g)+(4*h*u-d*d)*Math.log((2*m+y+p)/(y+g)))/(4*v)},t.curveTo=function(e,n,i,r,a){for(var o=a[a.length-2],s=a[a.length-1],f=Fs._segmentsCount(t.curveLength(o,s,e,n,i,r)),l=0,c=0,u=1;u<=f;++u){var d=u/f;l=o+(e-o)*d,c=s+(n-s)*d,a.push(l+(e+(i-e)*d-l)*d,c+(n+(r-n)*d-c)*d)}},t}(),pO=function(){function t(){this.reset()}return t.prototype.begin=function(e,n,i){this.reset(),this.style=e,this.start=n,this.attribStart=i},t.prototype.end=function(e,n){this.attribSize=n-this.attribStart,this.size=e-this.start},t.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},t}(),Ji,Vc=(Ji={},Ji[Je.POLY]=$3,Ji[Je.CIRC]=yu,Ji[Je.ELIP]=yu,Ji[Je.RECT]=fO,Ji[Je.RREC]=lO,Ji),qy=[],Xf=[],Xy=function(){function t(e,n,i,r){n===void 0&&(n=null),i===void 0&&(i=null),r===void 0&&(r=null),this.points=[],this.holes=[],this.shape=e,this.lineStyle=i,this.fillStyle=n,this.matrix=r,this.type=e.type}return t.prototype.clone=function(){return new t(this.shape,this.fillStyle,this.lineStyle,this.matrix)},t.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},t}(),Qr=new ge,vO=function(t){W1(e,t);function e(){var n=t.call(this)||this;return n.closePointEps=1e-4,n.boundsPadding=0,n.uvsFloat32=null,n.indicesUint16=null,n.batchable=!1,n.points=[],n.colors=[],n.uvs=[],n.indices=[],n.textureIds=[],n.graphicsData=[],n.drawCalls=[],n.batchDirty=-1,n.batches=[],n.dirty=0,n.cacheDirty=-1,n.clearDirty=0,n.shapeIndex=0,n._bounds=new gu,n.boundsDirty=-1,n}return Object.defineProperty(e.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),e.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var n=0;n0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},e.prototype.drawShape=function(n,i,r,a){i===void 0&&(i=null),r===void 0&&(r=null),a===void 0&&(a=null);var o=new Xy(n,i,r,a);return this.graphicsData.push(o),this.dirty++,this},e.prototype.drawHole=function(n,i){if(i===void 0&&(i=null),!this.graphicsData.length)return null;var r=new Xy(n,null,null,i),a=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=a.lineStyle,a.holes.push(r),this.dirty++,this},e.prototype.destroy=function(){t.prototype.destroy.call(this);for(var n=0;n0&&(r=this.batches[this.batches.length-1],a=r.style);for(var o=this.shapeIndex;o65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&_===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=_?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},e.prototype._compareStyles=function(n,i){return!(!n||!i||n.texture.baseTexture!==i.texture.baseTexture||n.color+n.alpha!==i.color+i.alpha||!!n.native!=!!i.native)},e.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var n=0,i=this.graphicsData.length;n65535*2)return!1;for(var n=this.batches,i=0;i0&&(o=Xf.pop(),o||(o=new Op,o.texArray=new Fp),this.drawCalls.push(o)),o.start=d,o.size=0,o.texArray.count=0,o.type=u),v.touched=1,v._batchEnabled=n,v._batchLocation=s,v.wrapMode=qn.REPEAT,o.texArray.elements[o.texArray.count++]=v,s++)),o.size+=h.size,d+=h.size,l=v._batchLocation,this.addColors(r,m.color,m.alpha,h.attribSize,h.attribStart),this.addTextureIds(a,l,h.attribSize,h.attribStart)}ke._globalBatch=n,this.packAttributes()},e.prototype.packAttributes=function(){for(var n=this.points,i=this.uvs,r=this.colors,a=this.textureIds,o=new ArrayBuffer(n.length*3*4),s=new Float32Array(o),f=new Uint32Array(o),l=0,c=0;c>16)+(i&65280)+((i&255)<<16),f=o3(s,r);n.length=Math.max(n.length,o+a);for(var l=0;l0&&n.alpha>0;return i?(n.matrix&&(n.matrix=n.matrix.clone(),n.matrix.invert()),Object.assign(this._lineStyle,{visible:i},n)):this._lineStyle.reset(),this},e.prototype.startPoly=function(){if(this.currentPath){var n=this.currentPath.points,i=this.currentPath.points.length;i>2&&(this.drawShape(this.currentPath),this.currentPath=new Tl,this.currentPath.closeStroke=!1,this.currentPath.points.push(n[i-2],n[i-1]))}else this.currentPath=new Tl,this.currentPath.closeStroke=!1},e.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},e.prototype.moveTo=function(n,i){return this.startPoly(),this.currentPath.points[0]=n,this.currentPath.points[1]=i,this},e.prototype.lineTo=function(n,i){this.currentPath||this.moveTo(0,0);var r=this.currentPath.points,a=r[r.length-2],o=r[r.length-1];return(a!==n||o!==i)&&r.push(n,i),this},e.prototype._initCurve=function(n,i){n===void 0&&(n=0),i===void 0&&(i=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[n,i]):this.moveTo(n,i)},e.prototype.quadraticCurveTo=function(n,i,r,a){this._initCurve();var o=this.currentPath.points;return o.length===0&&this.moveTo(0,0),hO.curveTo(n,i,r,a,o),this},e.prototype.bezierCurveTo=function(n,i,r,a,o,s){return this._initCurve(),cO.curveTo(n,i,r,a,o,s,this.currentPath.points),this},e.prototype.arcTo=function(n,i,r,a,o){this._initCurve(n,i);var s=this.currentPath.points,f=Wy.curveTo(n,i,r,a,o,s);if(f){var l=f.cx,c=f.cy,u=f.radius,d=f.startAngle,h=f.endAngle,p=f.anticlockwise;this.arc(l,c,u,d,h,p)}return this},e.prototype.arc=function(n,i,r,a,o,s){if(s===void 0&&(s=!1),a===o)return this;!s&&o<=a?o+=Ps:s&&a<=o&&(a+=Ps);var f=o-a;if(f===0)return this;var l=n+Math.cos(a)*r,c=i+Math.sin(a)*r,u=this._geometry.closePointEps,d=this.currentPath?this.currentPath.points:null;if(d){var h=Math.abs(d[d.length-2]-l),p=Math.abs(d[d.length-1]-c);h0;return i?(n.matrix&&(n.matrix=n.matrix.clone(),n.matrix.invert()),Object.assign(this._fillStyle,{visible:i},n)):this._fillStyle.reset(),this},e.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},e.prototype.drawRect=function(n,i,r,a){return this.drawShape(new te(n,i,r,a))},e.prototype.drawRoundedRect=function(n,i,r,a,o){return this.drawShape(new qA(n,i,r,a,o))},e.prototype.drawCircle=function(n,i,r){return this.drawShape(new GA(n,i,r))},e.prototype.drawEllipse=function(n,i,r,a){return this.drawShape(new WA(n,i,r,a))},e.prototype.drawPolygon=function(){for(var n=arguments,i=[],r=0;r>16&255)/255*o,s.tint[1]=(a>>8&255)/255*o,s.tint[2]=(a&255)/255*o,s.tint[3]=o,n.shader.bind(i),n.geometry.bind(r,i),n.state.set(this.state);for(var l=0,c=f.length;l>16)+(l&65280)+((l&255)<<16)}}},e.prototype.calculateVertices=function(){var n=this.transform._worldID;if(this._transformID!==n){this._transformID=n;for(var i=this.transform.worldTransform,r=i.a,a=i.b,o=i.c,s=i.d,f=i.tx,l=i.ty,c=this._geometry.points,u=this.vertexData,d=0,h=0;h>>16)*u&65535)<<16)&4294967295)<<15|h>>>17))*d+(((h>>>16)*d&65535)<<16)&4294967295)<<13|l>>>19))+((5*(l>>>16)&65535)<<16)&4294967295))+((58964+(c>>>16)&65535)<<16);switch(h=0,s){case 3:h^=(255&a.charCodeAt(p+2))<<16;case 2:h^=(255&a.charCodeAt(p+1))<<8;case 1:l^=h=(65535&(h=(h=(65535&(h^=255&a.charCodeAt(p)))*u+(((h>>>16)*u&65535)<<16)&4294967295)<<15|h>>>17))*d+(((h>>>16)*d&65535)<<16)&4294967295}return l^=a.length,l=2246822507*(65535&(l^=l>>>16))+((2246822507*(l>>>16)&65535)<<16)&4294967295,l=3266489909*(65535&(l^=l>>>13))+((3266489909*(l>>>16)&65535)<<16)&4294967295,(l^=l>>>16)>>>0}},function(n,i,r){var a;(function(o,s){var f="function",l="undefined",c="object",u="string",d="model",h="name",p="type",m="vendor",v="version",g="architecture",y="console",_="mobile",w="tablet",k="smarttv",b="wearable",x="embedded",S="Amazon",T="Apple",E="ASUS",A="BlackBerry",I="Firefox",D="Google",$="Huawei",R="LG",B="Microsoft",U="Motorola",O="Opera",N="Samsung",P="Sony",L="Xiaomi",V="Zebra",Z="Facebook",Y=function(Q){var se={};for(var fe in Q)se[Q[fe].toUpperCase()]=Q[fe];return se},oe=function(Q,se){return typeof Q===u&&J(se).indexOf(J(Q))!==-1},J=function(Q){return Q.toLowerCase()},de=function(Q,se){if(typeof Q===u)return Q=Q.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof se===l?Q:Q.substring(0,255)},he=function(Q,se){for(var fe,lt,ee,K,Ot,He,Xi=0;Xi0?K.length==2?typeof K[1]==f?this[K[0]]=K[1].call(this,He):this[K[0]]=K[1]:K.length==3?typeof K[1]!==f||K[1].exec&&K[1].test?this[K[0]]=He?He.replace(K[1],K[2]):s:this[K[0]]=He?K[1].call(this,He,K[2]):s:K.length==4&&(this[K[0]]=He?K[3].call(this,He.replace(K[1],K[2])):s):this[K]=He||s;Xi+=2}},Be=function(Q,se){for(var fe in se)if(typeof se[fe]===c&&se[fe].length>0){for(var lt=0;lt255?de(ee,255):ee,this},this.setUA(fe),this};ae.VERSION="0.7.30",ae.BROWSER=Y([h,v,"major"]),ae.CPU=Y([g]),ae.DEVICE=Y([d,m,p,y,_,k,w,b,x]),ae.ENGINE=ae.OS=Y([h,v]),typeof i!==l?(typeof n!==l&&n.exports&&(i=n.exports=ae),i.UAParser=ae):r(5)?(a=(function(){return ae}).call(i,r,i,n))===s||(n.exports=a):typeof o!==l&&(o.UAParser=ae);var pe=typeof o!==l&&(o.jQuery||o.Zepto);if(pe&&!pe.ua){var nt=new ae;pe.ua=nt.getResult(),pe.ua.get=function(){return nt.getUA()},pe.ua.set=function(Q){nt.setUA(Q);var se=nt.getResult();for(var fe in se)pe.ua[fe]=se[fe]}}})(typeof window=="object"?window:this)},function(n,i){(function(r){n.exports=r}).call(this,{})},function(n,i){n.exports=function(){var r=["monospace","sans-serif","serif"],a=document.getElementsByTagName("body")[0],o=document.createElement("span");o.style.fontSize="72px",o.innerHTML="mmmmmmmmmmlli";var s={},f={};for(var l in r)o.style.fontFamily=r[l],a.appendChild(o),s[r[l]]=o.offsetWidth,f[r[l]]=o.offsetHeight,a.removeChild(o);this.detect=function(c){var u=!1;for(var d in r){o.style.fontFamily=c+","+r[d],a.appendChild(o);var h=o.offsetWidth!=s[r[d]]||o.offsetHeight!=f[r[d]];a.removeChild(o),u=u||h}return u}}}])})})(G3);var PV=G3.exports;/*! * @pixi/canvas-display - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/canvas-display is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */Di.prototype._renderCanvas=function(e){};Di.prototype.renderCanvas=function(e){if(!(!this.visible||this.worldAlpha<=0||!this.renderable)){this._mask&&e.maskManager.pushMask(this._mask),this._renderCanvas(e);for(var n=0,i=this.children.length;n=2?i.multisample:Te.NONE;if(o=this.renderer.generateTexture(e,{multisample:f}),f!==Te.NONE){var l=Br.create({width:o.width,height:o.height});i.framebuffer.bind(o.framebuffer),i.framebuffer.blit(l.framebuffer),i.framebuffer.bind(null),o.destroy(!0),o=l}s=!0}o?(r=o.baseTexture.resolution,n=n??o.frame,a=!1,i.renderTexture.bind(o)):(r=i.resolution,n||(n=yO,n.width=i.width,n.height=i.height),a=!0,i.renderTexture.bind(null));var c=Math.round(n.width*r),u=Math.round(n.height*r),d=new Uint8Array(_O*c*u),h=i.gl;return h.readPixels(Math.round(n.x*r),Math.round(n.y*r),c,u,h.RGBA,h.UNSIGNED_BYTE,d),s&&o.destroy(!0),{pixels:d,width:c,height:u,flipY:a}},t.prototype.destroy=function(){this.renderer=null},t.arrayPostDivide=function(e,n){for(var i=0;i=Math.PI*2?this.drawCircle(t,e,i).beginHole().drawCircle(t,e,n).endHole():(this.finishPoly(),this.arc(t,e,n,a,r,!0).arc(t,e,i,r,a,!1).finishPoly(),this)}function kO(t,e,n,i,r){if(r<=0)return this.drawRect(t,e,n,i);for(var a=Math.min(r,Math.min(n,i)/2),o=t+n,s=e+i,f=[t+a,e,o-a,e,o,e+a,o,s-a,o-a,s,t+a,s,t,s-a,t,e+a],l=f.length-1;l>=2;l-=2)f[l]===f[l-2]&&f[l-1]===f[l-3]&&f.splice(l-1,2);return this.drawPolygon(f)}function bO(t,e,n,i,r){if(r===0)return this.drawRect(t,e,n,i);var a=Math.min(n,i)/2,o=Math.min(a,Math.max(-a,r)),s=t+n,f=e+i,l=o<0?-o:0,c=Math.abs(o);return this.moveTo(t,e+c).arcTo(t+l,e+l,t+c,e,c).lineTo(s-c,e).arcTo(s-l,e+l,s,e+c,c).lineTo(s,f-c).arcTo(s-l,f-l,t+n-c,f,c).lineTo(t+c,f).arcTo(t+l,f-l,t,f-c,c).closePath()}function xO(t,e,n,i,r){r===void 0&&(r=0),i=Math.max(i|0,3);for(var a=-1*Math.PI/2+r,o=Math.PI*2/i,s=[],f=0;fthis.x&&e.y>this.y&&e.right=this.x&&e.y>=this.y&&e.right<=this.right&&e.bottom<=this.bottom};te.prototype.equals=function(e){return e===this?!0:e&&this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height};te.prototype.intersection=function(e,n){n||(n=new te);var i=this.xe.right?e.right:this.right;if(r<=i)return n.x=n.y=n.width=n.height=0,n;var a=this.ye.bottom?e.bottom:this.bottom;return o<=a?(n.x=n.y=n.width=n.height=0,n):(n.x=i,n.y=a,n.width=r-i,n.height=o-a,n)};te.prototype.union=function(e,n){n||(n=new te);var i=Math.min(this.x,e.x),r=Math.max(this.x+this.width,e.x+e.width),a=Math.min(this.y,e.y),o=Math.max(this.y+this.height,e.y+e.height);return n.x=i,n.y=a,n.width=r-i,n.height=o-a,n};/*! * @pixi/mixin-cache-as-bitmap - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/mixin-cache-as-bitmap is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */var q3=new _t;qe.prototype._cacheAsBitmap=!1;qe.prototype._cacheData=null;qe.prototype._cacheAsBitmapResolution=null;qe.prototype._cacheAsBitmapMultisample=Te.NONE;var AO=function(){function t(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return t}();Object.defineProperties(qe.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){if(this._cacheAsBitmap!==t){this._cacheAsBitmap=t;var e;t?(this._cacheData||(this._cacheData=new AO),e=this._cacheData,e.originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(e=this._cacheData,e.sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea)}}}});qe.prototype._renderCached=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(e),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(e))};qe.prototype._initCachedDisplayObject=function(e){var n;if(!(this._cacheData&&this._cacheData.sprite)){var i=this.alpha;this.alpha=1,e.batch.flush();var r=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var a=this.filters[0].padding;r.pad(a)}r.ceil(H.RESOLUTION);var o=e.renderTexture.current,s=e.renderTexture.sourceFrame.clone(),f=e.renderTexture.destinationFrame.clone(),l=e.projection.transform,c=Br.create({width:r.width,height:r.height,resolution:this.cacheAsBitmapResolution||e.resolution,multisample:(n=this.cacheAsBitmapMultisample)!==null&&n!==void 0?n:e.multisample}),u="cacheAsBitmap_"+Ir();this._cacheData.textureCacheId=u,ke.addToCache(c.baseTexture,u),We.addToCache(c,u);var d=this.transform.localTransform.copyTo(q3).invert().translate(-r.x,-r.y);this.render=this._cacheData.originalRender,e.render(this,{renderTexture:c,clear:!0,transform:d,skipUpdateTransform:!1}),e.framebuffer.blit(),e.projection.transform=l,e.renderTexture.bind(o,s,f),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var h=new ud(c);h.transform.worldTransform=this.transform.worldTransform,h.anchor.x=-(r.x/r.width),h.anchor.y=-(r.y/r.height),h.alpha=i,h._bounds=this._bounds,this._cacheData.sprite=h,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=h.containsPoint.bind(h)}};qe.prototype._renderCachedCanvas=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(e),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(e))};qe.prototype._initCachedDisplayObjectCanvas=function(e){if(!(this._cacheData&&this._cacheData.sprite)){var n=this.getLocalBounds(null,!0),i=this.alpha;this.alpha=1;var r=e.context,a=e._projTransform;n.ceil(H.RESOLUTION);var o=Br.create({width:n.width,height:n.height}),s="cacheAsBitmap_"+Ir();this._cacheData.textureCacheId=s,ke.addToCache(o.baseTexture,s),We.addToCache(o,s);var f=q3;this.transform.localTransform.copyTo(f),f.invert(),f.tx-=n.x,f.ty-=n.y,this.renderCanvas=this._cacheData.originalRenderCanvas,e.render(this,{renderTexture:o,clear:!0,transform:f,skipUpdateTransform:!1}),e.context=r,e._projTransform=a,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var l=new ud(o);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(n.x/n.width),l.anchor.y=-(n.y/n.height),l.alpha=i,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}};qe.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};qe.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};qe.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,ke.removeFromCache(this._cacheData.textureCacheId),We.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};qe.prototype._cacheAsBitmapDestroy=function(e){this.cacheAsBitmap=!1,this.destroy(e)};/*! * @pixi/mixin-get-child-by-name - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/mixin-get-child-by-name is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */qe.prototype.name=null;Di.prototype.getChildByName=function(e,n){for(var i=0,r=this.children.length;i"u"&&(typeof self<"u"?self.globalThis=self:typeof global<"u"&&(global.globalThis=global));globalThis.Promise||(globalThis.Promise=Fe);Object.assign||(Object.assign=zO);var VO=16;Date.now&&Date.prototype.getTime||(Date.now=function(){return new Date().getTime()});if(!(globalThis.performance&&globalThis.performance.now)){var HO=Date.now();globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-HO}}var $c=Date.now(),Ky=["ms","moz","webkit","o"];for(var Gc=0;Gc0?1:-1});Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array);globalThis.Float32Array||(globalThis.Float32Array=Array);globalThis.Uint32Array||(globalThis.Uint32Array=Array);globalThis.Uint16Array||(globalThis.Uint16Array=Array);globalThis.Uint8Array||(globalThis.Uint8Array=Array);globalThis.Int32Array||(globalThis.Int32Array=Array);/*! * @pixi/sprite-tiling - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/sprite-tiling is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license *//*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Wp=function(t,e){return Wp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},Wp(t,e)};function Q3(t,e){Wp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var bo=new ge,RV=function(t){Q3(e,t);function e(n,i,r){i===void 0&&(i=100),r===void 0&&(r=100);var a=t.call(this,n)||this;return a.tileTransform=new l3,a._width=i,a._height=r,a.uvMatrix=a.texture.uvMatrix||new w3(n),a.pluginName="tilingSprite",a.uvRespectAnchor=!1,a}return Object.defineProperty(e.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(n){this.uvMatrix.clampMargin=n,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(n){this.tileTransform.scale.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(n){this.tileTransform.position.copyFrom(n)},enumerable:!1,configurable:!0}),e.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},e.prototype._render=function(n){var i=this._texture;!i||!i.valid||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),n.batch.setObjectRenderer(n.plugins[this.pluginName]),n.plugins[this.pluginName].render(this))},e.prototype._calculateBounds=function(){var n=this._width*-this._anchor._x,i=this._height*-this._anchor._y,r=this._width*(1-this._anchor._x),a=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,n,i,r,a)},e.prototype.getLocalBounds=function(n){return this.children.length===0?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),n||(this._localBoundsRect||(this._localBoundsRect=new te),n=this._localBoundsRect),this._bounds.getRectangle(n)):t.prototype.getLocalBounds.call(this,n)},e.prototype.containsPoint=function(n){this.worldTransform.applyInverse(n,bo);var i=this._width,r=this._height,a=-i*this.anchor._x;if(bo.x>=a&&bo.x=o&&bo.y1?Ia.from(WO,qO,i):Ia.from(Zy,GO,i)},e.prototype.render=function(n){var i=this.renderer,r=this.quad,a=r.vertices;a[0]=a[6]=n._width*-n.anchor.x,a[1]=a[3]=n._height*-n.anchor.y,a[2]=a[4]=n._width*(1-n.anchor.x),a[5]=a[7]=n._height*(1-n.anchor.y);var o=n.uvRespectAnchor?n.anchor.x:0,s=n.uvRespectAnchor?n.anchor.y:0;a=r.uvs,a[0]=a[6]=-o,a[1]=a[3]=-s,a[2]=a[4]=1-o,a[5]=a[7]=1-s,r.invalidate();var f=n._texture,l=f.baseTexture,c=l.alphaMode>0,u=n.tileTransform.localTransform,d=n.uvMatrix,h=l.isPowerOfTwo&&f.frame.width===l.width&&f.frame.height===l.height;h&&(l._glTextures[i.CONTEXT_UID]?h=l.wrapMode!==qn.CLAMP:l.wrapMode===qn.CLAMP&&(l.wrapMode=qn.REPEAT));var p=h?this.simpleShader:this.shader,m=f.width,v=f.height,g=n._width,y=n._height;Yf.set(u.a*m/g,u.b*m/y,u.c*v/g,u.d*v/y,u.tx/g,u.ty/y),Yf.invert(),h?Yf.prepend(d.mapCoord):(p.uniforms.uMapCoord=d.mapCoord.toArray(!0),p.uniforms.uClampFrame=d.uClampFrame,p.uniforms.uClampOffset=d.uClampOffset),p.uniforms.uTransform=Yf.toArray(!0),p.uniforms.uColor=jA(n.tint,n.worldAlpha,p.uniforms.uColor,c),p.uniforms.translationMatrix=n.transform.worldTransform.toArray(!0),p.uniforms.uSampler=f,i.shader.bind(p),i.geometry.bind(r),this.state.blendMode=NA(n.blendMode,c),i.state.set(this.state),i.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},e.extension={name:"tilingSprite",type:tt.RendererPlugin},e}(V1),Sr={},J3={},Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.loop=Xn.conditional=Xn.parse=void 0;var XO=function t(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:i;if(Array.isArray(n))n.forEach(function(o){return t(e,o,i,r)});else if(typeof n=="function")n(e,i,r,t);else{var a=Object.keys(n)[0];Array.isArray(n[a])?(r[a]={},t(e,n[a],i,r[a])):r[a]=n[a](e,i,r,t)}return i};Xn.parse=XO;var YO=function(e,n){return function(i,r,a,o){n(i,r,a)&&o(i,e,r,a)}};Xn.conditional=YO;var KO=function(e,n){return function(i,r,a,o){for(var s=[],f=i.pos;n(i,r,a);){var l={};if(o(i,e,r,l),i.pos===f)break;f=i.pos,s.push(l)}return s}};Xn.loop=KO;var ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.readBits=ze.readArray=ze.readUnsigned=ze.readString=ze.peekBytes=ze.readBytes=ze.peekByte=ze.readByte=ze.buildStream=void 0;var ZO=function(e){return{data:e,pos:0}};ze.buildStream=ZO;var e4=function(){return function(e){return e.data[e.pos++]}};ze.readByte=e4;var QO=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(n){return n.data[n.pos+e]}};ze.peekByte=QO;var dd=function(e){return function(n){return n.data.subarray(n.pos,n.pos+=e)}};ze.readBytes=dd;var JO=function(e){return function(n){return n.data.subarray(n.pos,n.pos+e)}};ze.peekBytes=JO;var eF=function(e){return function(n){return Array.from(dd(e)(n)).map(function(i){return String.fromCharCode(i)}).join("")}};ze.readString=eF;var tF=function(e){return function(n){var i=dd(2)(n);return e?(i[1]<<8)+i[0]:(i[0]<<8)+i[1]}};ze.readUnsigned=tF;var nF=function(e,n){return function(i,r,a){for(var o=typeof n=="function"?n(i,r,a):n,s=dd(e),f=new Array(o),l=0;l=m){var y=m-d.pos;p.push((0,n.readBytes)(y)(d)),v+=y;break}p.push((0,n.readBytes)(g)(d)),v+=g}for(var _=new Uint8Array(v),w=0,k=0;k>=c,b-=c,p>s||p==u)break;if(p==f){c=v+1,l=(1<f;)w[S++]=_[p],p=y[p];x=_[p]&255,w[S++]=x,s=0;i--){var r=n[i].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&_F.indexOf(r)<0&&(r='"'+r+'"'),n[i]=r}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+e+" "+n.join(",")},t}();function Jy(t){return typeof t=="number"?r3(t):(typeof t=="string"&&t.indexOf("0x")===0&&(t=t.replace("0x","#")),t)}function Xc(t){if(Array.isArray(t)){for(var e=0;ep)if(o!==""&&(s+=t.addLine(o),o="",a=0),t.canBreakWords(g,n.breakWords))for(var k=t.wordWrapSplit(g),b=0;bp&&(s+=t.addLine(o),h=!1,o="",a=0),o+=x,a+=A}else{o.length>0&&(s+=t.addLine(o),o="",a=0);var I=v===m.length-1;s+=t.addLine(g,!I),h=!1,o="",a=0}else w+a>p&&(h=!1,s+=t.addLine(o),o="",a=0),(o.length>0||!t.isBreakingSpace(g)||h)&&(o+=g,a+=w)}return s+=t.addLine(o,!1),s},t.addLine=function(e,n){return n===void 0&&(n=!0),e=t.trimRight(e),e=n?e+` `:e,e},t.getFromCache=function(e,n,i,r){var a=i[e];if(typeof a!="number"){var o=e.length*n;a=r.measureText(e).width+o,i[e]=a}return a},t.collapseSpaces=function(e){return e==="normal"||e==="pre-line"},t.collapseNewlines=function(e){return e==="normal"},t.trimRight=function(e){if(typeof e!="string")return"";for(var n=e.length-1;n>=0;n--){var i=e[n];if(!t.isBreakingSpace(i))break;e=e.slice(0,-1)}return e},t.isNewline=function(e){return typeof e!="string"?!1:t._newlines.indexOf(e.charCodeAt(0))>=0},t.isBreakingSpace=function(e,n){return typeof e!="string"?!1:t._breakingSpaces.indexOf(e.charCodeAt(0))>=0},t.tokenize=function(e){var n=[],i="";if(typeof e!="string")return n;for(var r=0;rs;--d){for(var m=0;m0&&v>g&&(y=(g+v)/2);var _=g+m,w=r.lineHeight*(p+1),k=_;p+1=0&&u<=1){if(d._volume=u,d._muted)return d;d.usingWebAudio&&d.masterGain.gain.setValueAtTime(u,n.ctx.currentTime);for(var h=0;h=0;d--)u._howls[d].unload();return u.usingWebAudio&&u.ctx&&typeof u.ctx.close<"u"&&(u.ctx.close(),u.ctx=null,c()),u},codecs:function(u){return(this||n)._codecs[u.replace(/^x-/,"")]},_setup:function(){var u=this||n;if(u.state=u.ctx&&u.ctx.state||"suspended",u._autoSuspend(),!u.usingWebAudio)if(typeof Audio<"u")try{var d=new Audio;typeof d.oncanplaythrough>"u"&&(u._canPlayEvent="canplay")}catch{u.noAudio=!0}else u.noAudio=!0;try{var d=new Audio;d.muted&&(u.noAudio=!0)}catch{}return u.noAudio||u._setupCodecs(),u},_setupCodecs:function(){var u=this||n,d=null;try{d=typeof Audio<"u"?new Audio:null}catch{return u}if(!d||typeof d.canPlayType!="function")return u;var h=d.canPlayType("audio/mpeg;").replace(/^no$/,""),p=u._navigator?u._navigator.userAgent:"",m=p.match(/OPR\/(\d+)/g),v=m&&parseInt(m[0].split("/")[1],10)<33,g=p.indexOf("Safari")!==-1&&p.indexOf("Chrome")===-1,y=p.match(/Version\/(.*?) /),_=g&&y&&parseInt(y[1],10)<15;return u._codecs={mp3:!!(!v&&(h||d.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!h,opus:!!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(d.canPlayType('audio/wav; codecs="1"')||d.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!d.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!d.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(d.canPlayType("audio/x-m4a;")||d.canPlayType("audio/m4a;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(d.canPlayType("audio/x-m4b;")||d.canPlayType("audio/m4b;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(d.canPlayType("audio/x-mp4;")||d.canPlayType("audio/mp4;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!_&&d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!_&&d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!d.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(d.canPlayType("audio/x-flac;")||d.canPlayType("audio/flac;")).replace(/^no$/,"")},u},_unlockAudio:function(){var u=this||n;if(!(u._audioUnlocked||!u.ctx)){u._audioUnlocked=!1,u.autoUnlock=!1,!u._mobileUnloaded&&u.ctx.sampleRate!==44100&&(u._mobileUnloaded=!0,u.unload()),u._scratchBuffer=u.ctx.createBuffer(1,1,22050);var d=function(h){for(;u._html5AudioPool.length"u"?_.noteOn(0):_.start(0),typeof u.ctx.resume=="function"&&u.ctx.resume(),_.onended=function(){_.disconnect(0),u._audioUnlocked=!0,document.removeEventListener("touchstart",d,!0),document.removeEventListener("touchend",d,!0),document.removeEventListener("click",d,!0),document.removeEventListener("keydown",d,!0);for(var w=0;w"u"||!n.usingWebAudio)){for(var d=0;d"u"||!n.usingWebAudio))return u.state==="running"&&u.ctx.state!=="interrupted"&&u._suspendTimer?(clearTimeout(u._suspendTimer),u._suspendTimer=null):u.state==="suspended"||u.state==="running"&&u.ctx.state==="interrupted"?(u.ctx.resume().then(function(){u.state="running";for(var d=0;d"u"&&(u="__default",!h._playLock)){for(var m=0,v=0;v0?g._seek:h._sprite[u][0]/1e3),w=Math.max(0,(h._sprite[u][0]+h._sprite[u][1])/1e3-_),k=w*1e3/Math.abs(g._rate),b=h._sprite[u][0]/1e3,x=(h._sprite[u][0]+h._sprite[u][1])/1e3;g._sprite=u,g._ended=!1;var S=function(){g._paused=!1,g._seek=_,g._start=b,g._stop=x,g._loop=!!(g._loop||h._sprite[u][2])};if(_>=x){h._ended(g);return}var T=g._node;if(h._webAudio){var E=function(){h._playLock=!1,S(),h._refreshBuffer(g);var $=g._muted||h._muted?0:g._volume;T.gain.setValueAtTime($,n.ctx.currentTime),g._playStart=n.ctx.currentTime,typeof T.bufferSource.start>"u"?g._loop?T.bufferSource.noteGrainOn(0,_,86400):T.bufferSource.noteGrainOn(0,_,w):g._loop?T.bufferSource.start(0,_,86400):T.bufferSource.start(0,_,w),k!==1/0&&(h._endTimers[g._id]=setTimeout(h._ended.bind(h,g),k)),d||setTimeout(function(){h._emit("play",g._id),h._loadQueue()},0)};n.state==="running"&&n.ctx.state!=="interrupted"?E():(h._playLock=!0,h.once("resume",E),h._clearTimer(g._id))}else{var A=function(){T.currentTime=_,T.muted=g._muted||h._muted||n._muted||T.muted,T.volume=g._volume*n.volume(),T.playbackRate=g._rate;try{var $=T.play();if($&&typeof Promise<"u"&&($ instanceof Promise||typeof $.then=="function")?(h._playLock=!0,S(),$.then(function(){h._playLock=!1,T._unlocked=!0,d?h._loadQueue():h._emit("play",g._id)}).catch(function(){h._playLock=!1,h._emit("playerror",g._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),g._ended=!0,g._paused=!0})):d||(h._playLock=!1,S(),h._emit("play",g._id)),T.playbackRate=g._rate,T.paused){h._emit("playerror",g._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}u!=="__default"||g._loop?h._endTimers[g._id]=setTimeout(h._ended.bind(h,g),k):(h._endTimers[g._id]=function(){h._ended(g),T.removeEventListener("ended",h._endTimers[g._id],!1)},T.addEventListener("ended",h._endTimers[g._id],!1))}catch(R){h._emit("playerror",g._id,R)}};T.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(T.src=h._src,T.load());var I=window&&window.ejecta||!T.readyState&&n._navigator.isCocoonJS;if(T.readyState>=3||I)A();else{h._playLock=!0,h._state="loading";var D=function(){h._state="loaded",A(),T.removeEventListener(n._canPlayEvent,D,!1)};T.addEventListener(n._canPlayEvent,D,!1),h._clearTimer(g._id)}}return g._id},pause:function(u){var d=this;if(d._state!=="loaded"||d._playLock)return d._queue.push({event:"pause",action:function(){d.pause(u)}}),d;for(var h=d._getSoundIds(u),p=0;p"u"?m._node.bufferSource.noteOff(0):m._node.bufferSource.stop(0),d._cleanBuffer(m._node)}else(!isNaN(m._node.duration)||m._node.duration===1/0)&&m._node.pause();arguments[1]||d._emit("pause",m?m._id:null)}return d},stop:function(u,d){var h=this;if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"stop",action:function(){h.stop(u)}}),h;for(var p=h._getSoundIds(u),m=0;m"u"?v._node.bufferSource.noteOff(0):v._node.bufferSource.stop(0),h._cleanBuffer(v._node)):(!isNaN(v._node.duration)||v._node.duration===1/0)&&(v._node.currentTime=v._start||0,v._node.pause(),v._node.duration===1/0&&h._clearSound(v._node))),d||h._emit("stop",v._id))}return h},mute:function(u,d){var h=this;if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"mute",action:function(){h.mute(u,d)}}),h;if(typeof d>"u")if(typeof u=="boolean")h._muted=u;else return h._muted;for(var p=h._getSoundIds(d),m=0;m"u"){var m=u._getSoundIds(),v=m.indexOf(d[0]);v>=0?p=parseInt(d[0],10):h=parseFloat(d[0])}else d.length>=2&&(h=parseFloat(d[0]),p=parseInt(d[1],10));var g;if(typeof h<"u"&&h>=0&&h<=1){if(u._state!=="loaded"||u._playLock)return u._queue.push({event:"volume",action:function(){u.volume.apply(u,d)}}),u;typeof p>"u"&&(u._volume=h),p=u._getSoundIds(p);for(var y=0;y"u")}}return m},_startFadeInterval:function(u,d,h,p,m,v){var g=this,y=d,_=h-d,w=Math.abs(_/.01),k=Math.max(4,w>0?p/w:p),b=Date.now();u._fadeTo=h,u._interval=setInterval(function(){var x=(Date.now()-b)/p;b=Date.now(),y+=_*x,y=Math.round(y*100)/100,_<0?y=Math.max(h,y):y=Math.min(h,y),g._webAudio?u._volume=y:g.volume(y,u._id,!0),v&&(g._volume=y),(hd&&y>=h)&&(clearInterval(u._interval),u._interval=null,u._fadeTo=null,g.volume(h,u._id),g._emit("fade",u._id))},k)},_stopFade:function(u){var d=this,h=d._soundById(u);return h&&h._interval&&(d._webAudio&&h._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(h._interval),h._interval=null,d.volume(h._fadeTo,u),h._fadeTo=null,d._emit("fade",u)),d},loop:function(){var u=this,d=arguments,h,p,m;if(d.length===0)return u._loop;if(d.length===1)if(typeof d[0]=="boolean")h=d[0],u._loop=h;else return m=u._soundById(parseInt(d[0],10)),m?m._loop:!1;else d.length===2&&(h=d[0],p=parseInt(d[1],10));for(var v=u._getSoundIds(p),g=0;g=0?p=parseInt(d[0],10):h=parseFloat(d[0])}else d.length===2&&(h=parseFloat(d[0]),p=parseInt(d[1],10));var g;if(typeof h=="number"){if(u._state!=="loaded"||u._playLock)return u._queue.push({event:"rate",action:function(){u.rate.apply(u,d)}}),u;typeof p>"u"&&(u._rate=h),p=u._getSoundIds(p);for(var y=0;y=0?p=parseInt(d[0],10):u._sounds.length&&(p=u._sounds[0]._id,h=parseFloat(d[0]))}else d.length===2&&(h=parseFloat(d[0]),p=parseInt(d[1],10));if(typeof p>"u")return 0;if(typeof h=="number"&&(u._state!=="loaded"||u._playLock))return u._queue.push({event:"seek",action:function(){u.seek.apply(u,d)}}),u;var g=u._soundById(p);if(g)if(typeof h=="number"&&h>=0){var y=u.playing(p);y&&u.pause(p,!0),g._seek=h,g._ended=!1,u._clearTimer(p),!u._webAudio&&g._node&&!isNaN(g._node.duration)&&(g._node.currentTime=h);var _=function(){y&&u.play(p,!0),u._emit("seek",p)};if(y&&!u._webAudio){var w=function(){u._playLock?setTimeout(w,0):_()};setTimeout(w,0)}else _()}else if(u._webAudio){var k=u.playing(p)?n.ctx.currentTime-g._playStart:0,b=g._rateSeek?g._rateSeek-g._seek:0;return g._seek+(b+k*Math.abs(g._rate))}else return g._node.currentTime;return u},playing:function(u){var d=this;if(typeof u=="number"){var h=d._soundById(u);return h?!h._paused:!1}for(var p=0;p=0&&n._howls.splice(p,1);var m=!0;for(h=0;h=0){m=!1;break}return a&&m&&delete a[u._src],n.noAudio=!1,u._state="unloaded",u._sounds=[],u=null,null},on:function(u,d,h,p){var m=this,v=m["_on"+u];return typeof d=="function"&&v.push(p?{id:h,fn:d,once:p}:{id:h,fn:d}),m},off:function(u,d,h){var p=this,m=p["_on"+u],v=0;if(typeof d=="number"&&(h=d,d=null),d||h)for(v=0;v=0;v--)(!m[v].id||m[v].id===d||u==="load")&&(setTimeout((function(g){g.call(this,d,h)}).bind(p,m[v].fn),0),m[v].once&&p.off(u,m[v].fn,m[v].id));return p._loadQueue(u),p},_loadQueue:function(u){var d=this;if(d._queue.length>0){var h=d._queue[0];h.event===u&&(d._queue.shift(),d._loadQueue()),u||h.action()}return d},_ended:function(u){var d=this,h=u._sprite;if(!d._webAudio&&u._node&&!u._node.paused&&!u._node.ended&&u._node.currentTime=0;p--){if(h<=d)return;u._sounds[p]._ended&&(u._webAudio&&u._sounds[p]._node&&u._sounds[p]._node.disconnect(0),u._sounds.splice(p,1),h--)}}},_getSoundIds:function(u){var d=this;if(typeof u>"u"){for(var h=[],p=0;p=0;if(!u.bufferSource)return d;if(n._scratchBuffer&&u.bufferSource&&(u.bufferSource.onended=null,u.bufferSource.disconnect(0),h))try{u.bufferSource.buffer=n._scratchBuffer}catch{}return u.bufferSource=null,d},_clearSound:function(u){var d=/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent);d||(u.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var r=function(u){this._parent=u,this.init()};r.prototype={init:function(){var u=this,d=u._parent;return u._muted=d._muted,u._loop=d._loop,u._volume=d._volume,u._rate=d._rate,u._seek=0,u._paused=!0,u._ended=!0,u._sprite="__default",u._id=++n._counter,d._sounds.push(u),u.create(),u},create:function(){var u=this,d=u._parent,h=n._muted||u._muted||u._parent._muted?0:u._volume;return d._webAudio?(u._node=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),u._node.gain.setValueAtTime(h,n.ctx.currentTime),u._node.paused=!0,u._node.connect(n.masterGain)):n.noAudio||(u._node=n._obtainHtml5Audio(),u._errorFn=u._errorListener.bind(u),u._node.addEventListener("error",u._errorFn,!1),u._loadFn=u._loadListener.bind(u),u._node.addEventListener(n._canPlayEvent,u._loadFn,!1),u._endFn=u._endListener.bind(u),u._node.addEventListener("ended",u._endFn,!1),u._node.src=d._src,u._node.preload=d._preload===!0?"auto":d._preload,u._node.volume=h*n.volume(),u._node.load()),u},reset:function(){var u=this,d=u._parent;return u._muted=d._muted,u._loop=d._loop,u._volume=d._volume,u._rate=d._rate,u._seek=0,u._rateSeek=0,u._paused=!0,u._ended=!0,u._sprite="__default",u._id=++n._counter,u},_errorListener:function(){var u=this;u._parent._emit("loaderror",u._id,u._node.error?u._node.error.code:0),u._node.removeEventListener("error",u._errorFn,!1)},_loadListener:function(){var u=this,d=u._parent;d._duration=Math.ceil(u._node.duration*10)/10,Object.keys(d._sprite).length===0&&(d._sprite={__default:[0,d._duration*1e3]}),d._state!=="loaded"&&(d._state="loaded",d._emit("load"),d._loadQueue()),u._node.removeEventListener(n._canPlayEvent,u._loadFn,!1)},_endListener:function(){var u=this,d=u._parent;d._duration===1/0&&(d._duration=Math.ceil(u._node.duration*10)/10,d._sprite.__default[1]===1/0&&(d._sprite.__default[1]=d._duration*1e3),d._ended(u)),u._node.removeEventListener("ended",u._endFn,!1)}};var a={},o=function(u){var d=u._src;if(a[d]){u._duration=a[d].duration,l(u);return}if(/^data:[^;]+;base64,/.test(d)){for(var h=atob(d.split(",")[1]),p=new Uint8Array(h.length),m=0;m0?(a[d._src]=m,l(d,m)):h()};typeof Promise<"u"&&n.ctx.decodeAudioData.length===1?n.ctx.decodeAudioData(u).then(p).catch(h):n.ctx.decodeAudioData(u,p,h)},l=function(u,d){d&&!u._duration&&(u._duration=d.duration),Object.keys(u._sprite).length===0&&(u._sprite={__default:[0,u._duration*1e3]}),u._state!=="loaded"&&(u._state="loaded",u._emit("load"),u._loadQueue())},c=function(){if(n.usingWebAudio){try{typeof AudioContext<"u"?n.ctx=new AudioContext:typeof webkitAudioContext<"u"?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch{n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var u=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),d=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),h=d?parseInt(d[1],10):null;if(u&&h&&h<9){var p=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!p&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};t.Howler=n,t.Howl=i,typeof vt<"u"?(vt.HowlerGlobal=e,vt.Howler=n,vt.Howl=i,vt.Sound=r):typeof window<"u"&&(window.HowlerGlobal=e,window.Howler=n,window.Howl=i,window.Sound=r)})();/*! * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported. * * howler.js v2.2.4 * howlerjs.com * * (c) 2013-2020, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(n){var i=this;if(!i.ctx||!i.ctx.listener)return i;for(var r=i._howls.length-1;r>=0;r--)i._howls[r].stereo(n);return i},HowlerGlobal.prototype.pos=function(n,i,r){var a=this;if(!a.ctx||!a.ctx.listener)return a;if(i=typeof i!="number"?a._pos[1]:i,r=typeof r!="number"?a._pos[2]:r,typeof n=="number")a._pos=[n,i,r],typeof a.ctx.listener.positionX<"u"?(a.ctx.listener.positionX.setTargetAtTime(a._pos[0],Howler.ctx.currentTime,.1),a.ctx.listener.positionY.setTargetAtTime(a._pos[1],Howler.ctx.currentTime,.1),a.ctx.listener.positionZ.setTargetAtTime(a._pos[2],Howler.ctx.currentTime,.1)):a.ctx.listener.setPosition(a._pos[0],a._pos[1],a._pos[2]);else return a._pos;return a},HowlerGlobal.prototype.orientation=function(n,i,r,a,o,s){var f=this;if(!f.ctx||!f.ctx.listener)return f;var l=f._orientation;if(i=typeof i!="number"?l[1]:i,r=typeof r!="number"?l[2]:r,a=typeof a!="number"?l[3]:a,o=typeof o!="number"?l[4]:o,s=typeof s!="number"?l[5]:s,typeof n=="number")f._orientation=[n,i,r,a,o,s],typeof f.ctx.listener.forwardX<"u"?(f.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),f.ctx.listener.forwardY.setTargetAtTime(i,Howler.ctx.currentTime,.1),f.ctx.listener.forwardZ.setTargetAtTime(r,Howler.ctx.currentTime,.1),f.ctx.listener.upX.setTargetAtTime(a,Howler.ctx.currentTime,.1),f.ctx.listener.upY.setTargetAtTime(o,Howler.ctx.currentTime,.1),f.ctx.listener.upZ.setTargetAtTime(s,Howler.ctx.currentTime,.1)):f.ctx.listener.setOrientation(n,i,r,a,o,s);else return l;return f},Howl.prototype.init=function(n){return function(i){var r=this;return r._orientation=i.orientation||[1,0,0],r._stereo=i.stereo||null,r._pos=i.pos||null,r._pannerAttr={coneInnerAngle:typeof i.coneInnerAngle<"u"?i.coneInnerAngle:360,coneOuterAngle:typeof i.coneOuterAngle<"u"?i.coneOuterAngle:360,coneOuterGain:typeof i.coneOuterGain<"u"?i.coneOuterGain:0,distanceModel:typeof i.distanceModel<"u"?i.distanceModel:"inverse",maxDistance:typeof i.maxDistance<"u"?i.maxDistance:1e4,panningModel:typeof i.panningModel<"u"?i.panningModel:"HRTF",refDistance:typeof i.refDistance<"u"?i.refDistance:1,rolloffFactor:typeof i.rolloffFactor<"u"?i.rolloffFactor:1},r._onstereo=i.onstereo?[{fn:i.onstereo}]:[],r._onpos=i.onpos?[{fn:i.onpos}]:[],r._onorientation=i.onorientation?[{fn:i.onorientation}]:[],n.call(this,i)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,i){var r=this;if(!r._webAudio)return r;if(r._state!=="loaded")return r._queue.push({event:"stereo",action:function(){r.stereo(n,i)}}),r;var a=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof i>"u")if(typeof n=="number")r._stereo=n,r._pos=[n,0,0];else return r._stereo;for(var o=r._getSoundIds(i),s=0;s"u")if(typeof n=="number")o._pos=[n,i,r];else return o._pos;for(var s=o._getSoundIds(a),f=0;f"u")if(typeof n=="number")o._orientation=[n,i,r];else return o._orientation;for(var s=o._getSoundIds(a),f=0;f"u"&&(r.pannerAttr||(r.pannerAttr={coneInnerAngle:r.coneInnerAngle,coneOuterAngle:r.coneOuterAngle,coneOuterGain:r.coneOuterGain,distanceModel:r.distanceModel,maxDistance:r.maxDistance,refDistance:r.refDistance,rolloffFactor:r.rolloffFactor,panningModel:r.panningModel}),n._pannerAttr={coneInnerAngle:typeof r.pannerAttr.coneInnerAngle<"u"?r.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof r.pannerAttr.coneOuterAngle<"u"?r.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof r.pannerAttr.coneOuterGain<"u"?r.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof r.pannerAttr.distanceModel<"u"?r.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof r.pannerAttr.maxDistance<"u"?r.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof r.pannerAttr.refDistance<"u"?r.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof r.pannerAttr.rolloffFactor<"u"?r.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof r.pannerAttr.panningModel<"u"?r.pannerAttr.panningModel:n._panningModel});else return o=n._soundById(parseInt(i[0],10)),o?o._pannerAttr:n._pannerAttr;else i.length===2&&(r=i[0],a=parseInt(i[1],10));for(var s=n._getSoundIds(a),f=0;ft,isStatic:!1,reducedMotion:"never"});class xF extends C.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function SF({children:t,isPresent:e}){const n=C.useId(),i=C.useRef(null),r=C.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=C.useContext(Y1);return C.useInsertionEffect(()=>{const{width:o,height:s,top:f,left:l}=r.current;if(e||!i.current||!o||!s)return;i.current.dataset.motionPopId=n;const c=document.createElement("style");return a&&(c.nonce=a),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; height: ${s}px !important; top: ${f}px !important; left: ${l}px !important; } `),()=>{document.head.removeChild(c)}},[e]),ve.jsx(xF,{isPresent:e,childRef:i,sizeRef:r,children:C.cloneElement(t,{ref:i})})}const TF=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:a,mode:o})=>{const s=X1(EF),f=C.useId(),l=C.useCallback(u=>{s.set(u,!0);for(const d of s.values())if(!d)return;i&&i()},[s,i]),c=C.useMemo(()=>({id:f,initial:e,isPresent:n,custom:r,onExitComplete:l,register:u=>(s.set(u,!1),()=>s.delete(u))}),a?[Math.random(),l]:[n,l]);return C.useMemo(()=>{s.forEach((u,d)=>s.set(d,!1))},[n]),C.useEffect(()=>{!n&&!s.size&&i&&i()},[n]),o==="popLayout"&&(t=ve.jsx(SF,{isPresent:n,children:t})),ve.jsx(pd.Provider,{value:c,children:t})};function EF(){return new Map}function n4(t=!0){const e=C.useContext(pd);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=e,a=C.useId();C.useEffect(()=>{t&&r(a)},[t]);const o=C.useCallback(()=>t&&i&&i(a),[a,i,t]);return!n&&i?[!1,o]:[!0]}const Zf=t=>t.key||"";function e_(t){const e=[];return C.Children.forEach(t,n=>{C.isValidElement(n)&&e.push(n)}),e}const K1=typeof window<"u",i4=K1?C.useLayoutEffect:C.useEffect,IV=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:a="sync",propagate:o=!1})=>{const[s,f]=n4(o),l=C.useMemo(()=>e_(t),[t]),c=o&&!s?[]:l.map(Zf),u=C.useRef(!0),d=C.useRef(l),h=X1(()=>new Map),[p,m]=C.useState(l),[v,g]=C.useState(l);i4(()=>{u.current=!1,d.current=l;for(let w=0;w{const k=Zf(w),b=o&&!s?!1:l===v||c.includes(k),x=()=>{if(h.has(k))h.set(k,!0);else return;let S=!0;h.forEach(T=>{T||(S=!1)}),S&&(_==null||_(),g(d.current),o&&(f==null||f()),i&&i())};return ve.jsx(TF,{isPresent:b,initial:!u.current||n?void 0:!1,custom:b?void 0:e,presenceAffectsLayout:r,mode:a,onExitComplete:b?void 0:x,children:w},k)})})},jt=t=>t;let r4=jt;function Z1(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ga=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Yn=t=>t*1e3,Kn=t=>t/1e3,CF={useManualTiming:!1};function AF(t){let e=new Set,n=new Set,i=!1,r=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function s(l){a.has(l)&&(f.schedule(l),t()),l(o)}const f={schedule:(l,c=!1,u=!1)=>{const h=u&&i?e:n;return c&&a.add(l),h.has(l)||h.add(l),l},cancel:l=>{n.delete(l),a.delete(l)},process:l=>{if(o=l,i){r=!0;return}i=!0,[e,n]=[n,e],e.forEach(s),e.clear(),i=!1,r&&(r=!1,f.process(l))}};return f}const Qf=["read","resolveKeyframes","update","preRender","render","postRender"],PF=40;function a4(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Qf.reduce((g,y)=>(g[y]=AF(a),g),{}),{read:s,resolveKeyframes:f,update:l,preRender:c,render:u,postRender:d}=o,h=()=>{const g=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(g-r.timestamp,PF),1),r.timestamp=g,r.isProcessing=!0,s.process(r),f.process(r),l.process(r),c.process(r),u.process(r),d.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(h))},p=()=>{n=!0,i=!0,r.isProcessing||t(h)};return{schedule:Qf.reduce((g,y)=>{const _=o[y];return g[y]=(w,k=!1,b=!1)=>(n||p(),_.schedule(w,k,b)),g},{}),cancel:g=>{for(let y=0;yt_[t].some(n=>!!e[n])};function MF(t){for(const e in t)Wa[e]={...Wa[e],...t[e]}}const RF=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function wu(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||RF.has(t)}let s4=t=>!wu(t);function OF(t){t&&(s4=e=>e.startsWith("on")?!wu(e):t(e))}try{OF(require("@emotion/is-prop-valid").default)}catch{}function FF(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(s4(r)||n===!0&&wu(r)||!e&&!wu(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}function IF(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,r)=>r==="create"?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}const vd=C.createContext({});function Bs(t){return typeof t=="string"||Array.isArray(t)}function md(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Q1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],J1=["initial",...Q1];function gd(t){return md(t.animate)||J1.some(e=>Bs(t[e]))}function f4(t){return!!(gd(t)||t.variants)}function BF(t,e){if(gd(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Bs(n)?n:void 0,animate:Bs(i)?i:void 0}}return t.inherit!==!1?e:{}}function DF(t){const{initial:e,animate:n}=BF(t,C.useContext(vd));return C.useMemo(()=>({initial:e,animate:n}),[n_(e),n_(n)])}function n_(t){return Array.isArray(t)?t.join(" "):t}const LF=Symbol.for("motionComponentSymbol");function ya(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function NF(t,e,n){return C.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):ya(n)&&(n.current=i))},[e])}const em=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),jF="framerAppearId",l4="data-"+em(jF),{schedule:tm}=a4(queueMicrotask,!1),u4=C.createContext({});function UF(t,e,n,i,r){var a,o;const{visualElement:s}=C.useContext(vd),f=C.useContext(o4),l=C.useContext(pd),c=C.useContext(Y1).reducedMotion,u=C.useRef(null);i=i||f.renderer,!u.current&&i&&(u.current=i(t,{visualState:e,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,h=C.useContext(u4);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&zF(u.current,n,r,h);const p=C.useRef(!1);C.useInsertionEffect(()=>{d&&p.current&&d.update(n,l)});const m=n[l4],v=C.useRef(!!m&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,m))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,m)));return i4(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),tm.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),C.useEffect(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,m)}),v.current=!1))}),d}function zF(t,e,n,i){const{layoutId:r,layout:a,drag:o,dragConstraints:s,layoutScroll:f,layoutRoot:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:d4(t.parent)),t.projection.setOptions({layoutId:r,layout:a,alwaysMeasureLayout:!!o||s&&ya(s),visualElement:t,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:l})}function d4(t){if(t)return t.options.allowProjection!==!1?t.projection:d4(t.parent)}function VF({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){var a,o;t&&MF(t);function s(l,c){let u;const d={...C.useContext(Y1),...l,layoutId:HF(l)},{isStatic:h}=d,p=DF(l),m=i(l,h);if(!h&&K1){$F();const v=GF(d);u=v.MeasureLayout,p.visualElement=UF(r,m,d,e,v.ProjectionNode)}return ve.jsxs(vd.Provider,{value:p,children:[u&&p.visualElement?ve.jsx(u,{visualElement:p.visualElement,...d}):null,n(r,l,NF(m,p.visualElement,c),m,h,p.visualElement)]})}s.displayName=`motion.${typeof r=="string"?r:`create(${(o=(a=r.displayName)!==null&&a!==void 0?a:r.name)!==null&&o!==void 0?o:""})`}`;const f=C.forwardRef(s);return f[LF]=r,f}function HF({layoutId:t}){const e=C.useContext(q1).id;return e&&t!==void 0?e+"-"+t:t}function $F(t,e){C.useContext(o4).strict}function GF(t){const{drag:e,layout:n}=Wa;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const WF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nm(t){return typeof t!="string"||t.includes("-")?!1:!!(WF.indexOf(t)>-1||/[A-Z]/u.test(t))}function i_(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function im(t,e,n,i){if(typeof e=="function"){const[r,a]=i_(i);e=e(n!==void 0?n:t.custom,r,a)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,a]=i_(i);e=e(n!==void 0?n:t.custom,r,a)}return e}const Xp=t=>Array.isArray(t),qF=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),XF=t=>Xp(t)?t[t.length-1]||0:t,gt=t=>!!(t&&t.getVelocity);function El(t){const e=gt(t)?t.get():t;return qF(e)?e.toValue():e}function YF({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,r,a){const o={latestValues:KF(i,r,a,t),renderState:e()};return n&&(o.onMount=s=>n({props:i,current:s,...o}),o.onUpdate=s=>n(s)),o}const c4=t=>(e,n)=>{const i=C.useContext(vd),r=C.useContext(pd),a=()=>YF(t,e,i,r);return n?a():X1(a)};function KF(t,e,n,i){const r={},a=i(t,{});for(const d in a)r[d]=El(a[d]);let{initial:o,animate:s}=t;const f=gd(t),l=f4(t);e&&l&&!f&&t.inherit!==!1&&(o===void 0&&(o=e.initial),s===void 0&&(s=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const u=c?s:o;if(u&&typeof u!="boolean"&&!md(u)){const d=Array.isArray(u)?u:[u];for(let h=0;he=>typeof e=="string"&&e.startsWith(t),p4=h4("--"),ZF=h4("var(--"),rm=t=>ZF(t)?QF.test(t.split("/*")[0].trim()):!1,QF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,v4=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ni=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},Ds={...oo,transform:t=>ni(0,1,t)},Jf={...oo,default:1},nf=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),fi=nf("deg"),Cn=nf("%"),W=nf("px"),JF=nf("vh"),eI=nf("vw"),r_={...Cn,parse:t=>Cn.parse(t)/100,transform:t=>Cn.transform(t*100)},tI={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,radius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,backgroundPositionX:W,backgroundPositionY:W},nI={rotate:fi,rotateX:fi,rotateY:fi,rotateZ:fi,scale:Jf,scaleX:Jf,scaleY:Jf,scaleZ:Jf,skew:fi,skewX:fi,skewY:fi,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:Ds,originX:r_,originY:r_,originZ:W},a_={...oo,transform:Math.round},am={...tI,...nI,zIndex:a_,size:W,fillOpacity:Ds,strokeOpacity:Ds,numOctaves:a_},iI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rI=ao.length;function aI(t,e,n){let i="",r=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}}),m4=()=>({...fm(),attrs:{}}),lm=t=>typeof t=="string"&&t.toLowerCase()==="svg";function g4(t,{style:e,vars:n},i,r){Object.assign(t.style,e,r&&r.getProjectionStyles(i));for(const a in n)t.style.setProperty(a,n[a])}const y4=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function _4(t,e,n,i){g4(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(y4.has(r)?r:em(r),e.attrs[r])}const ku={};function uI(t){Object.assign(ku,t)}function w4(t,{layout:e,layoutId:n}){return Hr.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ku[t]||t==="opacity")}function um(t,e,n){var i;const{style:r}=t,a={};for(const o in r)(gt(r[o])||e.style&>(e.style[o])||w4(o,t)||((i=n==null?void 0:n.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(a[o]=r[o]);return a}function k4(t,e,n){const i=um(t,e,n);for(const r in t)if(gt(t[r])||gt(e[r])){const a=ao.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[a]=t[r]}return i}function dI(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const s_=["x","y","width","height","cx","cy","r"],cI={useVisualState:c4({scrapeMotionValuesFromProps:k4,createRenderState:m4,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:r})=>{if(!n)return;let a=!!t.drag;if(!a){for(const s in r)if(Hr.has(s)){a=!0;break}}if(!a)return;let o=!e;if(e)for(let s=0;s{dI(n,i),xe.render(()=>{sm(i,r,lm(n.tagName),t.transformTemplate),_4(n,i)})})}})},hI={useVisualState:c4({scrapeMotionValuesFromProps:um,createRenderState:fm})};function b4(t,e,n){for(const i in e)!gt(e[i])&&!w4(i,n)&&(t[i]=e[i])}function pI({transformTemplate:t},e){return C.useMemo(()=>{const n=fm();return om(n,e,t),Object.assign({},n.vars,n.style)},[e])}function vI(t,e){const n=t.style||{},i={};return b4(i,n,t),Object.assign(i,pI(t,e)),i}function mI(t,e){const n={},i=vI(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function gI(t,e,n,i){const r=C.useMemo(()=>{const a=m4();return sm(a,e,lm(i),t.transformTemplate),{...a.attrs,style:{...a.style}}},[e]);if(t.style){const a={};b4(a,t.style,t),r.style={...a,...r.style}}return r}function yI(t=!1){return(n,i,r,{latestValues:a},o)=>{const f=(nm(n)?gI:mI)(i,a,o,n),l=FF(i,typeof n=="string",t),c=n!==C.Fragment?{...l,...f,ref:r}:{},{children:u}=i,d=C.useMemo(()=>gt(u)?u.get():u,[u]);return C.createElement(n,{...c,children:d})}}function _I(t,e){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...nm(i)?cI:hI,preloadedFeatures:t,useRender:yI(r),createVisualElement:e,Component:i};return VF(o)}}function x4(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;iwindow.ScrollTimeline!==void 0);class kI{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i{if(wI()&&r.attachTimeline)return r.attachTimeline(e);if(typeof n=="function")return n(r)});return()=>{i.forEach((r,a)=>{r&&r(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;nn[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class bI extends kI{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function dm(t,e){return t?t[e]||t.default||t:void 0}const Yp=2e4;function S4(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e=Yp?1/0:e}function cm(t){return typeof t=="function"}function f_(t,e){t.timeline=e,t.onfinish=null}const hm=t=>Array.isArray(t)&&typeof t[0]=="number",xI={linearEasing:void 0};function SI(t,e){const n=Z1(t);return()=>{var i;return(i=xI[e])!==null&&i!==void 0?i:n()}}const bu=SI(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),T4=(t,e,n=10)=>{let i="";const r=Math.max(Math.round(e/n),2);for(let a=0;a`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Kp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ro([0,.65,.55,1]),circOut:Ro([.55,0,1,.45]),backIn:Ro([.31,.01,.66,-.59]),backOut:Ro([.33,1.53,.69,.99])};function C4(t,e){if(t)return typeof t=="function"&&bu()?T4(t,e):hm(t)?Ro(t):Array.isArray(t)?t.map(n=>C4(n,e)||Kp.easeOut):Kp[t]}const on={x:!1,y:!1};function A4(){return on.x||on.y}function TI(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let r=document;const a=(i=void 0)!==null&&i!==void 0?i:r.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}function P4(t,e){const n=TI(t),i=new AbortController,r={passive:!0,...e,signal:i.signal};return[n,r,()=>i.abort()]}function l_(t){return e=>{e.pointerType==="touch"||A4()||t(e)}}function EI(t,e,n={}){const[i,r,a]=P4(t,n),o=l_(s=>{const{target:f}=s,l=e(s);if(typeof l!="function"||!f)return;const c=l_(u=>{l(u),f.removeEventListener("pointerleave",c)});f.addEventListener("pointerleave",c,r)});return i.forEach(s=>{s.addEventListener("pointerenter",o,r)}),a}const M4=(t,e)=>e?t===e?!0:M4(t,e.parentElement):!1,pm=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,CI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function AI(t){return CI.has(t.tagName)||t.tabIndex!==-1}const Oo=new WeakSet;function u_(t){return e=>{e.key==="Enter"&&t(e)}}function Zc(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const PI=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=u_(()=>{if(Oo.has(n))return;Zc(n,"down");const r=u_(()=>{Zc(n,"up")}),a=()=>Zc(n,"cancel");n.addEventListener("keyup",r,e),n.addEventListener("blur",a,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function d_(t){return pm(t)&&!A4()}function MI(t,e,n={}){const[i,r,a]=P4(t,n),o=s=>{const f=s.currentTarget;if(!d_(s)||Oo.has(f))return;Oo.add(f);const l=e(s),c=(h,p)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",d),!(!d_(h)||!Oo.has(f))&&(Oo.delete(f),typeof l=="function"&&l(h,{success:p}))},u=h=>{c(h,n.useGlobalTarget||M4(f,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",u,r),window.addEventListener("pointercancel",d,r)};return i.forEach(s=>{!AI(s)&&s.getAttribute("tabindex")===null&&(s.tabIndex=0),(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,r),s.addEventListener("focus",l=>PI(l,r),r)}),a}function RI(t){return t==="x"||t==="y"?on[t]?null:(on[t]=!0,()=>{on[t]=!1}):on.x||on.y?null:(on.x=on.y=!0,()=>{on.x=on.y=!1})}const R4=new Set(["width","height","top","left","right","bottom",...ao]);let Cl;function OI(){Cl=void 0}const An={now:()=>(Cl===void 0&&An.set(rt.isProcessing||CF.useManualTiming?rt.timestamp:performance.now()),Cl),set:t=>{Cl=t,queueMicrotask(OI)}};function vm(t,e){t.indexOf(e)===-1&&t.push(e)}function mm(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class gm{constructor(){this.subscriptions=[]}add(e){return vm(this.subscriptions,e),()=>mm(this.subscriptions,e)}notify(e,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,i);else for(let a=0;a!isNaN(parseFloat(t));class II{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const a=An.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=An.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=FI(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new gm);const i=this.events[e].add(n);return e==="change"?()=>{i(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=An.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>c_)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,c_);return O4(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ls(t,e){return new II(t,e)}function BI(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ls(n))}function DI(t,e){const n=yd(t,e);let{transitionEnd:i={},transition:r={},...a}=n||{};a={...a,...i};for(const o in a){const s=XF(a[o]);BI(t,o,s)}}function LI(t){return!!(gt(t)&&t.add)}function Zp(t,e){const n=t.getValue("willChange");if(LI(n))return n.add(e)}function F4(t){return t.props[l4]}const I4=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,NI=1e-7,jI=12;function UI(t,e,n,i,r){let a,o,s=0;do o=e+(n-e)/2,a=I4(o,i,r)-t,a>0?n=o:e=o;while(Math.abs(a)>NI&&++sUI(a,0,1,t,n);return a=>a===0||a===1?a:I4(r(a),e,i)}const B4=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,D4=t=>e=>1-t(1-e),L4=rf(.33,1.53,.69,.99),ym=D4(L4),N4=B4(ym),j4=t=>(t*=2)<1?.5*ym(t):.5*(2-Math.pow(2,-10*(t-1))),_m=t=>1-Math.sin(Math.acos(t)),U4=D4(_m),z4=B4(_m),V4=t=>/^0[^.\s]+$/u.test(t);function zI(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||V4(t):!0}const Ko=t=>Math.round(t*1e5)/1e5,wm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VI(t){return t==null}const HI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,km=(t,e)=>n=>!!(typeof n=="string"&&HI.test(n)&&n.startsWith(t)||e&&!VI(n)&&Object.prototype.hasOwnProperty.call(n,e)),H4=(t,e,n)=>i=>{if(typeof i!="string")return i;const[r,a,o,s]=i.match(wm);return{[t]:parseFloat(r),[e]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},$I=t=>ni(0,255,t),Qc={...oo,transform:t=>Math.round($I(t))},gr={test:km("rgb","red"),parse:H4("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Qc.transform(t)+", "+Qc.transform(e)+", "+Qc.transform(n)+", "+Ko(Ds.transform(i))+")"};function GI(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Qp={test:km("#"),parse:GI,transform:gr.transform},_a={test:km("hsl","hue"),parse:H4("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Cn.transform(Ko(e))+", "+Cn.transform(Ko(n))+", "+Ko(Ds.transform(i))+")"},pt={test:t=>gr.test(t)||Qp.test(t)||_a.test(t),parse:t=>gr.test(t)?gr.parse(t):_a.test(t)?_a.parse(t):Qp.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?gr.transform(t):_a.transform(t)},WI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qI(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(wm))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(WI))===null||n===void 0?void 0:n.length)||0)>0}const $4="number",G4="color",XI="var",YI="var(",h_="${}",KI=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ns(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let a=0;const s=e.replace(KI,f=>(pt.test(f)?(i.color.push(a),r.push(G4),n.push(pt.parse(f))):f.startsWith(YI)?(i.var.push(a),r.push(XI),n.push(f)):(i.number.push(a),r.push($4),n.push(parseFloat(f))),++a,h_)).split(h_);return{values:n,split:s,indexes:i,types:r}}function W4(t){return Ns(t).values}function q4(t){const{split:e,types:n}=Ns(t),i=e.length;return r=>{let a="";for(let o=0;otypeof t=="number"?0:t;function QI(t){const e=W4(t);return q4(t)(e.map(ZI))}const Ni={test:qI,parse:W4,createTransformer:q4,getAnimatableNone:QI},JI=new Set(["brightness","contrast","saturate","opacity"]);function eB(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(wm)||[];if(!i)return t;const r=n.replace(i,"");let a=JI.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const tB=/\b([a-z-]*)\(.*?\)/gu,Jp={...Ni,getAnimatableNone:t=>{const e=t.match(tB);return e?e.map(eB).join(" "):t}},nB={...am,color:pt,backgroundColor:pt,outlineColor:pt,fill:pt,stroke:pt,borderColor:pt,borderTopColor:pt,borderRightColor:pt,borderBottomColor:pt,borderLeftColor:pt,filter:Jp,WebkitFilter:Jp},bm=t=>nB[t];function X4(t,e){let n=bm(t);return n!==Jp&&(n=Ni),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const iB=new Set(["auto","none","0"]);function rB(t,e,n){let i=0,r;for(;it===oo||t===W,v_=(t,e)=>parseFloat(t.split(", ")[e]),m_=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return v_(r[1],e);{const a=i.match(/^matrix\((.+)\)$/u);return a?v_(a[1],t):0}},aB=new Set(["x","y","z"]),oB=ao.filter(t=>!aB.has(t));function sB(t){const e=[];return oB.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const qa={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:m_(4,13),y:m_(5,14)};qa.translateX=qa.x;qa.translateY=qa.y;const Tr=new Set;let ev=!1,tv=!1;function Y4(){if(tv){const t=Array.from(Tr).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const r=sB(i);r.length&&(n.set(i,r),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([a,o])=>{var s;(s=i.getValue(a))===null||s===void 0||s.set(o)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}tv=!1,ev=!1,Tr.forEach(t=>t.complete()),Tr.clear()}function K4(){Tr.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tv=!0)})}function fB(){K4(),Y4()}class xm{constructor(e,n,i,r,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=r,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Tr.add(this),ev||(ev=!0,xe.read(K4),xe.resolveKeyframes(Y4))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:r}=this;for(let a=0;a/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),lB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uB(t){const e=lB.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${n??i}`,r]}function Q4(t,e,n=1){const[i,r]=uB(t);if(!i)return;const a=window.getComputedStyle(e).getPropertyValue(i);if(a){const o=a.trim();return Z4(o)?parseFloat(o):o}return rm(r)?Q4(r,e,n+1):r}const J4=t=>e=>e.test(t),dB={test:t=>t==="auto",parse:t=>t},e6=[oo,W,Cn,fi,eI,JF,dB],g_=t=>e6.find(J4(t));class t6 extends xm{constructor(e,n,i,r,a){super(e,n,i,r,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f{n.getValue(f).set(l)}),this.resolveNoneKeyframes()}}const y_=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ni.test(t)||t==="0")&&!t.startsWith("url("));function cB(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nt!==null;function _d(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(pB),a=e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||i===void 0?r[a]:i}const vB=40;class n6{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=An.now(),this.options={autoplay:e,delay:n,type:i,repeat:r,repeatDelay:a,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>vB?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&fB(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=An.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:a,delay:o,onComplete:s,onUpdate:f,isGenerator:l}=this.options;if(!l&&!hB(e,i,r,a))if(o)this.options.duration=0;else{f&&f(_d(e,this.options,n)),s&&s(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Re=(t,e,n)=>t+(e-t)*n;function Jc(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function mB({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,a=0,o=0;if(!e)r=a=o=n;else{const s=n<.5?n*(1+e):n+e-n*e,f=2*n-s;r=Jc(f,s,t+1/3),a=Jc(f,s,t),o=Jc(f,s,t-1/3)}return{red:Math.round(r*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:i}}function xu(t,e){return n=>n>0?e:t}const eh=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},gB=[Qp,gr,_a],yB=t=>gB.find(e=>e.test(t));function __(t){const e=yB(t);if(!e)return!1;let n=e.parse(t);return e===_a&&(n=mB(n)),n}const w_=(t,e)=>{const n=__(t),i=__(e);if(!n||!i)return xu(t,e);const r={...n};return a=>(r.red=eh(n.red,i.red,a),r.green=eh(n.green,i.green,a),r.blue=eh(n.blue,i.blue,a),r.alpha=Re(n.alpha,i.alpha,a),gr.transform(r))},_B=(t,e)=>n=>e(t(n)),af=(...t)=>t.reduce(_B),nv=new Set(["none","hidden"]);function wB(t,e){return nv.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function kB(t,e){return n=>Re(t,e,n)}function Sm(t){return typeof t=="number"?kB:typeof t=="string"?rm(t)?xu:pt.test(t)?w_:SB:Array.isArray(t)?i6:typeof t=="object"?pt.test(t)?w_:bB:xu}function i6(t,e){const n=[...t],i=n.length,r=t.map((a,o)=>Sm(a)(a,e[o]));return a=>{for(let o=0;o{for(const a in i)n[a]=i[a](r);return n}}function xB(t,e){var n;const i=[],r={color:0,var:0,number:0};for(let a=0;a{const n=Ni.createTransformer(e),i=Ns(t),r=Ns(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?nv.has(t)&&!r.values.length||nv.has(e)&&!i.values.length?wB(t,e):af(i6(xB(i,r),r.values),n):xu(t,e)};function r6(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Re(t,e,n):Sm(t)(t,e)}const TB=5;function a6(t,e,n){const i=Math.max(e-TB,0);return O4(n-t(i),e-i)}const Ne={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},th=.001;function EB({duration:t=Ne.duration,bounce:e=Ne.bounce,velocity:n=Ne.velocity,mass:i=Ne.mass}){let r,a,o=1-e;o=ni(Ne.minDamping,Ne.maxDamping,o),t=ni(Ne.minDuration,Ne.maxDuration,Kn(t)),o<1?(r=l=>{const c=l*o,u=c*t,d=c-n,h=iv(l,o),p=Math.exp(-u);return th-d/h*p},a=l=>{const u=l*o*t,d=u*n+n,h=Math.pow(o,2)*Math.pow(l,2)*t,p=Math.exp(-u),m=iv(Math.pow(l,2),o);return(-r(l)+th>0?-1:1)*((d-h)*p)/m}):(r=l=>{const c=Math.exp(-l*t),u=(l-n)*t+1;return-th+c*u},a=l=>{const c=Math.exp(-l*t),u=(n-l)*(t*t);return c*u});const s=5/t,f=AB(r,a,s);if(t=Yn(t),isNaN(f))return{stiffness:Ne.stiffness,damping:Ne.damping,duration:t};{const l=Math.pow(f,2)*i;return{stiffness:l,damping:o*2*Math.sqrt(i*l),duration:t}}}const CB=12;function AB(t,e,n){let i=n;for(let r=1;rt[n]!==void 0)}function RB(t){let e={velocity:Ne.velocity,stiffness:Ne.stiffness,damping:Ne.damping,mass:Ne.mass,isResolvedFromDuration:!1,...t};if(!k_(t,MB)&&k_(t,PB))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,a=2*ni(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:Ne.mass,stiffness:r,damping:a}}else{const n=EB(t);e={...e,...n,mass:Ne.mass},e.isResolvedFromDuration=!0}return e}function o6(t=Ne.visualDuration,e=Ne.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:r}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:f,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:h}=RB({...n,velocity:-Kn(n.velocity||0)}),p=d||0,m=l/(2*Math.sqrt(f*c)),v=o-a,g=Kn(Math.sqrt(f/c)),y=Math.abs(v)<5;i||(i=y?Ne.restSpeed.granular:Ne.restSpeed.default),r||(r=y?Ne.restDelta.granular:Ne.restDelta.default);let _;if(m<1){const k=iv(g,m);_=b=>{const x=Math.exp(-m*g*b);return o-x*((p+m*g*v)/k*Math.sin(k*b)+v*Math.cos(k*b))}}else if(m===1)_=k=>o-Math.exp(-g*k)*(v+(p+g*v)*k);else{const k=g*Math.sqrt(m*m-1);_=b=>{const x=Math.exp(-m*g*b),S=Math.min(k*b,300);return o-x*((p+m*g*v)*Math.sinh(S)+k*v*Math.cosh(S))/k}}const w={calculatedDuration:h&&u||null,next:k=>{const b=_(k);if(h)s.done=k>=u;else{let x=0;m<1&&(x=k===0?Yn(p):a6(_,k,b));const S=Math.abs(x)<=i,T=Math.abs(o-b)<=r;s.done=S&&T}return s.value=s.done?o:b,s},toString:()=>{const k=Math.min(S4(w),Yp),b=T4(x=>w.next(k*x).value,k,30);return k+"ms "+b}};return w}function b_({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:f,restDelta:l=.5,restSpeed:c}){const u=t[0],d={done:!1,value:u},h=S=>s!==void 0&&Sf,p=S=>s===void 0?f:f===void 0||Math.abs(s-S)-m*Math.exp(-S/i),_=S=>g+y(S),w=S=>{const T=y(S),E=_(S);d.done=Math.abs(T)<=l,d.value=d.done?g:E};let k,b;const x=S=>{h(d.value)&&(k=S,b=o6({keyframes:[d.value,p(d.value)],velocity:a6(_,S,d.value),damping:r,stiffness:a,restDelta:l,restSpeed:c}))};return x(0),{calculatedDuration:null,next:S=>{let T=!1;return!b&&k===void 0&&(T=!0,w(S),x(S)),k!==void 0&&S>=k?b.next(S-k):(!T&&w(S),d)}}}const OB=rf(.42,0,1,1),FB=rf(0,0,.58,1),s6=rf(.42,0,.58,1),IB=t=>Array.isArray(t)&&typeof t[0]!="number",BB={linear:jt,easeIn:OB,easeInOut:s6,easeOut:FB,circIn:_m,circInOut:z4,circOut:U4,backIn:ym,backInOut:N4,backOut:L4,anticipate:j4},x_=t=>{if(hm(t)){r4(t.length===4);const[e,n,i,r]=t;return rf(e,n,i,r)}else if(typeof t=="string")return BB[t];return t};function DB(t,e,n){const i=[],r=n||r6,a=t.length-1;for(let o=0;oe[0];if(a===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=DB(e,i,r),f=s.length,l=c=>{if(o&&c1)for(;ul(ni(t[0],t[a-1],c)):l}function NB(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=Ga(0,e,i);t.push(Re(n,1,r))}}function jB(t){const e=[0];return NB(e,t.length-1),e}function UB(t,e){return t.map(n=>n*e)}function zB(t,e){return t.map(()=>e||s6).splice(0,t.length-1)}function Su({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=IB(i)?i.map(x_):x_(i),a={done:!1,value:e[0]},o=UB(n&&n.length===e.length?n:jB(e),t),s=LB(o,e,{ease:Array.isArray(r)?r:zB(e,r)});return{calculatedDuration:t,next:f=>(a.value=s(f),a.done=f>=t,a)}}const VB=t=>{const e=({timestamp:n})=>t(n);return{start:()=>xe.update(e,!0),stop:()=>Li(e),now:()=>rt.isProcessing?rt.timestamp:An.now()}},HB={decay:b_,inertia:b_,tween:Su,keyframes:Su,spring:o6},$B=t=>t/100;class Tm extends n6{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:i,element:r,keyframes:a}=this.options,o=(r==null?void 0:r.KeyframeResolver)||xm,s=(f,l)=>this.onKeyframesResolved(f,l);this.resolver=new o(a,s,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:a,velocity:o=0}=this.options,s=cm(n)?n:HB[n]||Su;let f,l;s!==Su&&typeof e[0]!="number"&&(f=af($B,r6(e[0],e[1])),e=[0,100]);const c=s({...this.options,keyframes:e});a==="mirror"&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=S4(c));const{calculatedDuration:u}=c,d=u+r,h=d*(i+1)-r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:f,calculatedDuration:u,resolvedDuration:d,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:r,generator:a,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:f,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=i;if(this.startTime===null)return a.next(0);const{delay:d,repeat:h,repeatType:p,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let _=this.currentTime,w=a;if(h){const S=Math.min(this.currentTime,c)/u;let T=Math.floor(S),E=S%1;!E&&S>=1&&(E=1),E===1&&T--,T=Math.min(T,h+1),!!(T%2)&&(p==="reverse"?(E=1-E,m&&(E-=m/u)):p==="mirror"&&(w=o)),_=ni(0,1,E)*u}const k=y?{done:!1,value:f[0]}:w.next(_);s&&(k.value=s(k.value));let{done:b}=k;!y&&l!==null&&(b=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return x&&r!==void 0&&(k.value=_d(f,this.options,r)),v&&v(k.value),x&&this.finish(),k}get duration(){const{resolved:e}=this;return e?Kn(e.calculatedDuration):0}get time(){return Kn(this.currentTime)}set time(e){e=Yn(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Kn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=VB,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(a=>this.tick(a))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const GB=new Set(["opacity","clipPath","filter","transform"]);function WB(t,e,n,{delay:i=0,duration:r=300,repeat:a=0,repeatType:o="loop",ease:s="easeInOut",times:f}={}){const l={[e]:n};f&&(l.offset=f);const c=C4(s,r);return Array.isArray(c)&&(l.easing=c),t.animate(l,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const qB=Z1(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Tu=10,XB=2e4;function YB(t){return cm(t.type)||t.type==="spring"||!E4(t.ease)}function KB(t,e){const n=new Tm({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const r=[];let a=0;for(;!i.done&&athis.onKeyframesResolved(o,s),n,i,r),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:r,ease:a,type:o,motionValue:s,name:f,startTime:l}=this.options;if(!s.owner||!s.owner.current)return!1;if(typeof a=="string"&&bu()&&ZB(a)&&(a=f6[a]),YB(this.options)){const{onComplete:u,onUpdate:d,motionValue:h,element:p,...m}=this.options,v=KB(e,m);e=v.keyframes,e.length===1&&(e[1]=e[0]),i=v.duration,r=v.times,a=v.ease,o="keyframes"}const c=WB(s.owner.current,f,e,{...this.options,duration:i,times:r,ease:a});return c.startTime=l??this.calcStartTime(),this.pendingTimeline?(f_(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:u}=this.options;s.set(_d(e,this.options,n)),u&&u(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:r,type:o,ease:a,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Kn(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Kn(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Yn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return jt;const{animation:i}=n;f_(i,e)}return jt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:r,type:a,ease:o,times:s}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:u,element:d,...h}=this.options,p=new Tm({...h,keyframes:i,duration:r,type:a,ease:o,times:s,isGenerator:!0}),m=Yn(this.time);l.setWithVelocity(p.sample(m-Tu).value,p.sample(m).value,Tu)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:r,repeatType:a,damping:o,type:s}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:l}=n.owner.getProps();return qB()&&i&&GB.has(i)&&!f&&!l&&!r&&a!=="mirror"&&o!==0&&s!=="inertia"}}const QB={type:"spring",stiffness:500,damping:25,restSpeed:10},JB=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),eD={type:"keyframes",duration:.8},tD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nD=(t,{keyframes:e})=>e.length>2?eD:Hr.has(t)?t.startsWith("scale")?JB(e[1]):QB:tD;function iD({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:a,repeatType:o,repeatDelay:s,from:f,elapsed:l,...c}){return!!Object.keys(c).length}const Em=(t,e,n,i={},r,a)=>o=>{const s=dm(i,t)||{},f=s.delay||i.delay||0;let{elapsed:l=0}=i;l=l-Yn(f);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...s,delay:-l,onUpdate:d=>{e.set(d),s.onUpdate&&s.onUpdate(d)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:t,motionValue:e,element:a?void 0:r};iD(s)||(c={...c,...nD(t,c)}),c.duration&&(c.duration=Yn(c.duration)),c.repeatDelay&&(c.repeatDelay=Yn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let u=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(u=!0)),u&&!a&&e.get()!==void 0){const d=_d(c.keyframes,s);if(d!==void 0)return xe.update(()=>{c.onUpdate(d),c.onComplete()}),new bI([])}return!a&&S_.supports(c)?new S_(c):new Tm(c)};function rD({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function l6(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var a;let{transition:o=t.getDefaultTransition(),transitionEnd:s,...f}=e;i&&(o=i);const l=[],c=r&&t.animationState&&t.animationState.getState()[r];for(const u in f){const d=t.getValue(u,(a=t.latestValues[u])!==null&&a!==void 0?a:null),h=f[u];if(h===void 0||c&&rD(c,u))continue;const p={delay:n,...dm(o||{},u)};let m=!1;if(window.MotionHandoffAnimation){const g=F4(t);if(g){const y=window.MotionHandoffAnimation(g,u,xe);y!==null&&(p.startTime=y,m=!0)}}Zp(t,u),d.start(Em(u,d,h,t.shouldReduceMotion&&R4.has(u)?{type:!1}:p,t,m));const v=d.animation;v&&l.push(v)}return s&&Promise.all(l).then(()=>{xe.update(()=>{s&&DI(t,s)})}),l}function rv(t,e,n={}){var i;const r=yd(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const o=r?()=>Promise.all(l6(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=a;return aD(t,e,c+l,u,d,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[l,c]=f==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function aD(t,e,n=0,i=0,r=1,a){const o=[],s=(t.variantChildren.size-1)*i,f=r===1?(l=0)=>l*i:(l=0)=>s-l*i;return Array.from(t.variantChildren).sort(oD).forEach((l,c)=>{l.notify("AnimationStart",e),o.push(rv(l,e,{...a,delay:n+f(c)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(o)}function oD(t,e){return t.sortNodePosition(e)}function sD(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(a=>rv(t,a,n));i=Promise.all(r)}else if(typeof e=="string")i=rv(t,e,n);else{const r=typeof e=="function"?yd(t,e,n.custom):e;i=Promise.all(l6(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const fD=J1.length;function u6(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?u6(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:i})=>sD(t,n,i)))}function cD(t){let e=dD(t),n=T_(),i=!0;const r=f=>(l,c)=>{var u;const d=yd(t,c,f==="exit"?(u=t.presenceContext)===null||u===void 0?void 0:u.custom:void 0);if(d){const{transition:h,transitionEnd:p,...m}=d;l={...l,...m,...p}}return l};function a(f){e=f(t)}function o(f){const{props:l}=t,c=u6(t.parent)||{},u=[],d=new Set;let h={},p=1/0;for(let v=0;vp&&w,T=!1;const E=Array.isArray(_)?_:[_];let A=E.reduce(r(g),{});k===!1&&(A={});const{prevResolvedValues:I={}}=y,D={...I,...A},$=U=>{S=!0,d.has(U)&&(T=!0,d.delete(U)),y.needsAnimating[U]=!0;const O=t.getValue(U);O&&(O.liveStyle=!1)};for(const U in D){const O=A[U],N=I[U];if(h.hasOwnProperty(U))continue;let P=!1;Xp(O)&&Xp(N)?P=!x4(O,N):P=O!==N,P?O!=null?$(U):d.add(U):O!==void 0&&d.has(U)?$(U):y.protectedKeys[U]=!0}y.prevProp=_,y.prevResolvedValues=A,y.isActive&&(h={...h,...A}),i&&t.blockInitialAnimation&&(S=!1),S&&(!(b&&x)||T)&&u.push(...E.map(U=>({animation:U,options:{type:g}})))}if(d.size){const v={};d.forEach(g=>{const y=t.getBaseTarget(g),_=t.getValue(g);_&&(_.liveStyle=!0),v[g]=y??null}),u.push({animation:v})}let m=!!u.length;return i&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(m=!1),i=!1,m?e(u):Promise.resolve()}function s(f,l){var c;if(n[f].isActive===l)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(f,l)}),n[f].isActive=l;const u=o(f);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=T_(),i=!0}}}function hD(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!x4(e,t):!1}function er(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function T_(){return{animate:er(!0),whileInView:er(),whileHover:er(),whileTap:er(),whileDrag:er(),whileFocus:er(),exit:er()}}class Wi{constructor(e){this.isMounted=!1,this.node=e}update(){}}class pD extends Wi{constructor(e){super(e),e.animationState||(e.animationState=cD(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();md(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let vD=0;class mD extends Wi{constructor(){super(...arguments),this.id=vD++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const gD={animation:{Feature:pD},exit:{Feature:mD}};function js(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function of(t){return{point:{x:t.pageX,y:t.pageY}}}const yD=t=>e=>pm(e)&&t(e,of(e));function Zo(t,e,n,i){return js(t,e,yD(n),i)}const E_=(t,e)=>Math.abs(t-e);function _D(t,e){const n=E_(t.x,e.x),i=E_(t.y,e.y);return Math.sqrt(n**2+i**2)}class d6{constructor(e,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=ih(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=_D(u.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:p}=u,{timestamp:m}=rt;this.history.push({...p,timestamp:m});const{onStart:v,onMove:g}=this.handlers;d||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=nh(d,this.transformPagePoint),xe.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{this.end();const{onEnd:h,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=ih(u.type==="pointercancel"?this.lastMoveEventInfo:nh(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(u,v),p&&p(u,v)},!pm(e))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const o=of(e),s=nh(o,this.transformPagePoint),{point:f}=s,{timestamp:l}=rt;this.history=[{...f,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,ih(s,this.history)),this.removeListeners=af(Zo(this.contextWindow,"pointermove",this.handlePointerMove),Zo(this.contextWindow,"pointerup",this.handlePointerUp),Zo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Li(this.updatePoint)}}function nh(t,e){return e?{point:e(t.point)}:t}function C_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ih({point:t},e){return{point:t,delta:C_(t,c6(e)),offset:C_(t,wD(e)),velocity:kD(e,.1)}}function wD(t){return t[0]}function c6(t){return t[t.length-1]}function kD(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=c6(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>Yn(e)));)n--;if(!i)return{x:0,y:0};const a=Kn(r.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const o={x:(r.x-i.x)/a,y:(r.y-i.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const h6=1e-4,bD=1-h6,xD=1+h6,p6=.01,SD=0-p6,TD=0+p6;function zt(t){return t.max-t.min}function ED(t,e,n){return Math.abs(t-e)<=n}function A_(t,e,n,i=.5){t.origin=i,t.originPoint=Re(e.min,e.max,t.origin),t.scale=zt(n)/zt(e),t.translate=Re(n.min,n.max,t.origin)-t.originPoint,(t.scale>=bD&&t.scale<=xD||isNaN(t.scale))&&(t.scale=1),(t.translate>=SD&&t.translate<=TD||isNaN(t.translate))&&(t.translate=0)}function Qo(t,e,n,i){A_(t.x,e.x,n.x,i?i.originX:void 0),A_(t.y,e.y,n.y,i?i.originY:void 0)}function P_(t,e,n){t.min=n.min+e.min,t.max=t.min+zt(e)}function CD(t,e,n){P_(t.x,e.x,n.x),P_(t.y,e.y,n.y)}function M_(t,e,n){t.min=e.min-n.min,t.max=t.min+zt(e)}function Jo(t,e,n){M_(t.x,e.x,n.x),M_(t.y,e.y,n.y)}function AD(t,{min:e,max:n},i){return e!==void 0&&tn&&(t=i?Re(n,t,i.max):Math.min(t,n)),t}function R_(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function PD(t,{top:e,left:n,bottom:i,right:r}){return{x:R_(t.x,n,r),y:R_(t.y,e,i)}}function O_(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.mini?n=Ga(e.min,e.max-i,t.min):i>r&&(n=Ga(t.min,t.max-r,e.min)),ni(0,1,n)}function OD(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const av=.35;function FD(t=av){return t===!1?t=0:t===!0&&(t=av),{x:F_(t,"left","right"),y:F_(t,"top","bottom")}}function F_(t,e,n){return{min:I_(t,e),max:I_(t,n)}}function I_(t,e){return typeof t=="number"?t:t[e]||0}const B_=()=>({translate:0,scale:1,origin:0,originPoint:0}),wa=()=>({x:B_(),y:B_()}),D_=()=>({min:0,max:0}),Ue=()=>({x:D_(),y:D_()});function qt(t){return[t("x"),t("y")]}function v6({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function ID({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function BD(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function rh(t){return t===void 0||t===1}function ov({scale:t,scaleX:e,scaleY:n}){return!rh(t)||!rh(e)||!rh(n)}function fr(t){return ov(t)||m6(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function m6(t){return L_(t.x)||L_(t.y)}function L_(t){return t&&t!=="0%"}function Eu(t,e,n){const i=t-n,r=e*i;return n+r}function N_(t,e,n,i,r){return r!==void 0&&(t=Eu(t,r,i)),Eu(t,n,i)+e}function sv(t,e=0,n=1,i,r){t.min=N_(t.min,e,n,i,r),t.max=N_(t.max,e,n,i,r)}function g6(t,{x:e,y:n}){sv(t.x,e.translate,e.scale,e.originPoint),sv(t.y,n.translate,n.scale,n.originPoint)}const j_=.999999999999,U_=1.0000000000001;function DD(t,e,n,i=!1){const r=n.length;if(!r)return;e.x=e.y=1;let a,o;for(let s=0;sj_&&(e.x=1),e.yj_&&(e.y=1)}function ka(t,e){t.min=t.min+e,t.max=t.max+e}function z_(t,e,n,i,r=.5){const a=Re(t.min,t.max,r);sv(t,e,n,a,i)}function ba(t,e){z_(t.x,e.x,e.scaleX,e.scale,e.originX),z_(t.y,e.y,e.scaleY,e.scale,e.originY)}function y6(t,e){return v6(BD(t.getBoundingClientRect(),e))}function LD(t,e,n){const i=y6(t,n),{scroll:r}=e;return r&&(ka(i.x,r.offset.x),ka(i.y,r.offset.y)),i}const _6=({current:t})=>t?t.ownerDocument.defaultView:null,ND=new WeakMap;class jD{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ue(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=c=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(of(c).point)},a=(c,u)=>{const{drag:d,dragPropagation:h,onDragStart:p}=this.getProps();if(d&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=RI(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),qt(v=>{let g=this.getAxisMotionValue(v).get()||0;if(Cn.test(g)){const{projection:y}=this.visualElement;if(y&&y.layout){const _=y.layout.layoutBox[v];_&&(g=zt(_)*(parseFloat(g)/100))}}this.originPoint[v]=g}),p&&xe.postRender(()=>p(c,u)),Zp(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(c,u)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:p,onDrag:m}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:v}=u;if(h&&this.currentDirection===null){this.currentDirection=UD(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),m&&m(c,u)},s=(c,u)=>this.stop(c,u),f=()=>qt(c=>{var u;return this.getAnimationState(c)==="paused"&&((u=this.getAxisMotionValue(c).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new d6(e,{onSessionStart:r,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:_6(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&xe.postRender(()=>a(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:r}=this.getProps();if(!i||!el(e,r,this.currentDirection))return;const a=this.getAxisMotionValue(e);let o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=AD(o,this.constraints[e],this.elastic[e])),a.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,a=this.constraints;n&&ya(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=PD(r.layoutBox,n):this.constraints=!1,this.elastic=FD(i),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&qt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=OD(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ya(e))return!1;const i=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const a=LD(i,r.root,this.visualElement.getTransformPagePoint());let o=MD(r.layout.layoutBox,a);if(n){const s=n(ID(o));this.hasMutatedConstraints=!!s,s&&(o=v6(s))}return o}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),f=this.constraints||{},l=qt(c=>{if(!el(c,n,this.currentDirection))return;let u=f&&f[c]||{};o&&(u={min:0,max:0});const d=r?200:1e6,h=r?40:1e7,p={type:"inertia",velocity:i?e[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...u};return this.startAxisValueAnimation(c,p)});return Promise.all(l).then(s)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Zp(this.visualElement,e),i.start(Em(e,i,0,n,this.visualElement,!1))}stopAnimation(){qt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){qt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){qt(n=>{const{drag:i}=this.getProps();if(!el(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,a=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:s}=r.layout.layoutBox[n];a.set(e[n]-Re(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ya(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};qt(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const f=s.get();r[o]=RD({min:f,max:f},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),qt(o=>{if(!el(o,e,null))return;const s=this.getAxisMotionValue(o),{min:f,max:l}=this.constraints[o];s.set(Re(f,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;ND.set(this.visualElement,this);const e=this.visualElement.current,n=Zo(e,"pointerdown",f=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();ya(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,a=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),xe.read(i);const o=js(window,"resize",()=>this.scalePositionWithinConstraints()),s=r.addEventListener("didUpdate",({delta:f,hasLayoutChanged:l})=>{this.isDragging&&l&&(qt(c=>{const u=this.getAxisMotionValue(c);u&&(this.originPoint[c]+=f[c].translate,u.set(u.get()+f[c].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:o=av,dragMomentum:s=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function el(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function UD(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class zD extends Wi{constructor(e){super(e),this.removeGroupControls=jt,this.removeListeners=jt,this.controls=new jD(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||jt}unmount(){this.removeGroupControls(),this.removeListeners()}}const V_=t=>(e,n)=>{t&&xe.postRender(()=>t(e,n))};class VD extends Wi{constructor(){super(...arguments),this.removePointerDownListener=jt}onPointerDown(e){this.session=new d6(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_6(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:V_(e),onStart:V_(n),onMove:i,onEnd:(a,o)=>{delete this.session,r&&xe.postRender(()=>r(a,o))}}}mount(){this.removePointerDownListener=Zo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Al={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function H_(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const xo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(W.test(t))t=parseFloat(t);else return t;const n=H_(t,e.target.x),i=H_(t,e.target.y);return`${n}% ${i}%`}},HD={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=Ni.parse(t);if(r.length>5)return i;const a=Ni.createTransformer(t),o=typeof r[0]!="number"?1:0,s=n.x.scale*e.x,f=n.y.scale*e.y;r[0+o]/=s,r[1+o]/=f;const l=Re(s,f,.5);return typeof r[2+o]=="number"&&(r[2+o]/=l),typeof r[3+o]=="number"&&(r[3+o]/=l),a(r)}};class $D extends C.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:a}=e;uI(GD),a&&(n.group&&n.group.add(a),i&&i.register&&r&&i.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Al.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:r,isPresent:a}=this.props,o=i.projection;return o&&(o.isPresent=a,r||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||xe.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),tm.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function w6(t){const[e,n]=n4(),i=C.useContext(q1);return ve.jsx($D,{...t,layoutGroup:i,switchLayoutGroup:C.useContext(u4),isPresent:e,safeToRemove:n})}const GD={borderRadius:{...xo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xo,borderTopRightRadius:xo,borderBottomLeftRadius:xo,borderBottomRightRadius:xo,boxShadow:HD};function WD(t,e,n){const i=gt(t)?t:Ls(t);return i.start(Em("",i,e,n)),i.animation}function qD(t){return t instanceof SVGElement&&t.tagName!=="svg"}const XD=(t,e)=>t.depth-e.depth;class YD{constructor(){this.children=[],this.isDirty=!1}add(e){vm(this.children,e),this.isDirty=!0}remove(e){mm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(XD),this.isDirty=!1,this.children.forEach(e)}}function KD(t,e){const n=An.now(),i=({timestamp:r})=>{const a=r-n;a>=e&&(Li(i),t(a-e))};return xe.read(i,!0),()=>Li(i)}const k6=["TopLeft","TopRight","BottomLeft","BottomRight"],ZD=k6.length,$_=t=>typeof t=="string"?parseFloat(t):t,G_=t=>typeof t=="number"||W.test(t);function QD(t,e,n,i,r,a){r?(t.opacity=Re(0,n.opacity!==void 0?n.opacity:1,JD(i)),t.opacityExit=Re(e.opacity!==void 0?e.opacity:1,0,eL(i))):a&&(t.opacity=Re(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let o=0;oie?1:n(Ga(t,e,i))}function q_(t,e){t.min=e.min,t.max=e.max}function Gt(t,e){q_(t.x,e.x),q_(t.y,e.y)}function X_(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Y_(t,e,n,i,r){return t-=e,t=Eu(t,1/n,i),r!==void 0&&(t=Eu(t,1/r,i)),t}function tL(t,e=0,n=1,i=.5,r,a=t,o=t){if(Cn.test(e)&&(e=parseFloat(e),e=Re(o.min,o.max,e/100)-o.min),typeof e!="number")return;let s=Re(a.min,a.max,i);t===a&&(s-=e),t.min=Y_(t.min,e,n,s,r),t.max=Y_(t.max,e,n,s,r)}function K_(t,e,[n,i,r],a,o){tL(t,e[n],e[i],e[r],e.scale,a,o)}const nL=["x","scaleX","originX"],iL=["y","scaleY","originY"];function Z_(t,e,n,i){K_(t.x,e,nL,n?n.x:void 0,i?i.x:void 0),K_(t.y,e,iL,n?n.y:void 0,i?i.y:void 0)}function Q_(t){return t.translate===0&&t.scale===1}function x6(t){return Q_(t.x)&&Q_(t.y)}function J_(t,e){return t.min===e.min&&t.max===e.max}function rL(t,e){return J_(t.x,e.x)&&J_(t.y,e.y)}function e2(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function S6(t,e){return e2(t.x,e.x)&&e2(t.y,e.y)}function t2(t){return zt(t.x)/zt(t.y)}function n2(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class aL{constructor(){this.members=[]}add(e){vm(this.members,e),e.scheduleRender()}remove(e){if(mm(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(r=>e===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1){i=a;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function oL(t,e,n){let i="";const r=t.x.translate/e.x,a=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((r||a||o)&&(i=`translate3d(${r}px, ${a}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:u,rotateY:d,skewX:h,skewY:p}=n;l&&(i=`perspective(${l}px) ${i}`),c&&(i+=`rotate(${c}deg) `),u&&(i+=`rotateX(${u}deg) `),d&&(i+=`rotateY(${d}deg) `),h&&(i+=`skewX(${h}deg) `),p&&(i+=`skewY(${p}deg) `)}const s=t.x.scale*e.x,f=t.y.scale*e.y;return(s!==1||f!==1)&&(i+=`scale(${s}, ${f})`),i||"none"}const lr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Fo=typeof window<"u"&&window.MotionDebug!==void 0,ah=["","X","Y","Z"],sL={visibility:"hidden"},i2=1e3;let fL=0;function oh(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function T6(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=F4(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",xe,!(r||a))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&T6(i)}function E6({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(o={},s=e==null?void 0:e()){this.id=fL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Fo&&(lr.totalNodes=lr.resolvedTargetDeltas=lr.recalculatedProjection=0),this.nodes.forEach(dL),this.nodes.forEach(mL),this.nodes.forEach(gL),this.nodes.forEach(cL),Fo&&window.MotionDebug.record(lr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let f=0;fthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=KD(d,250),Al.hasAnimatedSinceResize&&(Al.hasAnimatedSinceResize=!1,this.nodes.forEach(a2))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&c&&(f||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||bL,{onLayoutAnimationStart:v,onLayoutAnimationComplete:g}=c.getProps(),y=!this.targetLayout||!S6(this.targetLayout,p)||h,_=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||_||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,_);const w={...dm(m,"layout"),onPlay:v,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||a2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Li(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(yL),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&T6(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f{const k=w/1e3;o2(u.x,o.x,k),o2(u.y,o.y,k),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wL(this.relativeTarget,this.relativeTargetOrigin,d,k),_&&rL(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=Ue()),Gt(_,this.relativeTarget)),m&&(this.animationValues=c,QD(c,l,this.latestValues,k,y,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Li(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xe.update(()=>{Al.hasAnimatedSinceResize=!0,this.currentAnimation=WD(0,i2,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(i2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:f,layout:l,latestValues:c}=o;if(!(!s||!f||!l)){if(this!==o&&this.layout&&l&&C6(this.options.animationType,this.layout.layoutBox,l.layoutBox)){f=this.target||Ue();const u=zt(this.layout.layoutBox.x);f.x.min=o.target.x.min,f.x.max=f.x.min+u;const d=zt(this.layout.layoutBox.y);f.y.min=o.target.y.min,f.y.max=f.y.min+d}Gt(s,f),ba(s,c),Qo(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new aL),this.sharedNodes.get(o).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:f}={}){const l=this.getStack();l&&l.promote(this,f),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:f}=o;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(s=!0),!s)return;const l={};f.z&&oh("z",o,l,this.animationValues);for(let c=0;c{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(r2),this.root.sharedNodes.clear()}}}function lL(t){t.updateLayout()}function uL(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=t.layout,{animationType:a}=t.options,o=n.source!==t.layout.source;a==="size"?qt(u=>{const d=o?n.measuredBox[u]:n.layoutBox[u],h=zt(d);d.min=i[u].min,d.max=d.min+h}):C6(a,n.layoutBox,i)&&qt(u=>{const d=o?n.measuredBox[u]:n.layoutBox[u],h=zt(i[u]);d.max=d.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+h)});const s=wa();Qo(s,i,n.layoutBox);const f=wa();o?Qo(f,t.applyTransform(r,!0),n.measuredBox):Qo(f,i,n.layoutBox);const l=!x6(s);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:h}=u;if(d&&h){const p=Ue();Jo(p,n.layoutBox,d.layoutBox);const m=Ue();Jo(m,i,h.layoutBox),S6(p,m)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:f,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function dL(t){Fo&&lr.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function cL(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function hL(t){t.clearSnapshot()}function r2(t){t.clearMeasurements()}function pL(t){t.isLayoutDirty=!1}function vL(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function a2(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function mL(t){t.resolveTargetDelta()}function gL(t){t.calcProjection()}function yL(t){t.resetSkewAndRotation()}function _L(t){t.removeLeadSnapshot()}function o2(t,e,n){t.translate=Re(e.translate,0,n),t.scale=Re(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function s2(t,e,n,i){t.min=Re(e.min,n.min,i),t.max=Re(e.max,n.max,i)}function wL(t,e,n,i){s2(t.x,e.x,n.x,i),s2(t.y,e.y,n.y,i)}function kL(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const bL={duration:.45,ease:[.4,0,.1,1]},f2=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),l2=f2("applewebkit/")&&!f2("chrome/")?Math.round:jt;function u2(t){t.min=l2(t.min),t.max=l2(t.max)}function xL(t){u2(t.x),u2(t.y)}function C6(t,e,n){return t==="position"||t==="preserve-aspect"&&!ED(t2(e),t2(n),.2)}function SL(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const TL=E6({attachResizeListener:(t,e)=>js(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sh={current:void 0},A6=E6({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sh.current){const t=new TL({});t.mount(window),t.setOptions({layoutScroll:!0}),sh.current=t}return sh.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),EL={pan:{Feature:VD},drag:{Feature:zD,ProjectionNode:A6,MeasureLayout:w6}};function d2(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,a=i[r];a&&xe.postRender(()=>a(e,of(e)))}class CL extends Wi{mount(){const{current:e}=this.node;e&&(this.unmount=EI(e,n=>(d2(this.node,n,"Start"),i=>d2(this.node,i,"End"))))}unmount(){}}class AL extends Wi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=af(js(this.node.current,"focus",()=>this.onFocus()),js(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function c2(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),a=i[r];a&&xe.postRender(()=>a(e,of(e)))}class PL extends Wi{mount(){const{current:e}=this.node;e&&(this.unmount=MI(e,n=>(c2(this.node,n,"Start"),(i,{success:r})=>c2(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fv=new WeakMap,fh=new WeakMap,ML=t=>{const e=fv.get(t.target);e&&e(t)},RL=t=>{t.forEach(ML)};function OL({root:t,...e}){const n=t||document;fh.has(n)||fh.set(n,{});const i=fh.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(RL,{root:t,...e})),i[r]}function FL(t,e,n){const i=OL(e);return fv.set(t,n),i.observe(t),()=>{fv.delete(t),i.unobserve(t)}}const IL={some:0,all:1};class BL extends Wi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:a}=e,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:IL[r]},s=f=>{const{isIntersecting:l}=f;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:u}=this.node.getProps(),d=l?c:u;d&&d(f)};return FL(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(DL(e,n))&&this.startObserver()}unmount(){}}function DL({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const LL={inView:{Feature:BL},tap:{Feature:PL},focus:{Feature:AL},hover:{Feature:CL}},NL={layout:{ProjectionNode:A6,MeasureLayout:w6}},lv={current:null},P6={current:!1};function jL(){if(P6.current=!0,!!K1)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>lv.current=t.matches;t.addListener(e),e()}else lv.current=!1}const UL=[...e6,pt,Ni],zL=t=>UL.find(J4(t)),h2=new WeakMap;function VL(t,e,n){for(const i in e){const r=e[i],a=n[i];if(gt(r))t.addValue(i,r);else if(gt(a))t.addValue(i,Ls(r,{owner:t}));else if(a!==r)if(t.hasValue(i)){const o=t.getValue(i);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=t.getStaticValue(i);t.addValue(i,Ls(o!==void 0?o:r,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const p2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class HL{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=xm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=An.now();this.renderScheduledAtthis.bindToMotionValue(i,n)),P6.current||jL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:lv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){h2.delete(this.current),this.projection&&this.projection.unmount(),Li(this.notifyUpdate),Li(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Hr.has(e),r=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&xe.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Wa){const n=Wa[e];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const a=this.features[e];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ue()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;in.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Ls(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(Z4(r)||V4(r))?r=parseFloat(r):!zL(r)&&Ni.test(n)&&(r=X4(e,n)),this.setBaseTarget(e,gt(r)?r.get():r)),gt(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const o=im(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[e])}if(i&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,e);return a!==void 0&&!gt(a)?a:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new gm),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class M6 extends HL{constructor(){super(...arguments),this.KeyframeResolver=t6}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;gt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function $L(t){return window.getComputedStyle(t)}class GL extends M6{constructor(){super(...arguments),this.type="html",this.renderInstance=g4}readValueFromInstance(e,n){if(Hr.has(n)){const i=bm(n);return i&&i.default||0}else{const i=$L(e),r=(p4(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return y6(e,n)}build(e,n,i){om(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return um(e,n,i)}}class WL extends M6{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ue}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Hr.has(n)){const i=bm(n);return i&&i.default||0}return n=y4.has(n)?n:em(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return k4(e,n,i)}build(e,n,i){sm(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,r){_4(e,n,i,r)}mount(e){this.isSVGTag=lm(e.tagName),super.mount(e)}}const qL=(t,e)=>nm(t)?new WL(e):new GL(e,{allowProjection:t!==C.Fragment}),XL=_I({...gD,...LL,...EL,...NL},qL),DV=IF(XL);var R6={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},v2=Ce.createContext&&Ce.createContext(R6),YL=["attr","size","title"];function KL(t,e){if(t==null)return{};var n=ZL(t,e),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function ZL(t,e){if(t==null)return{};var n={};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}function Cu(){return Cu=Object.assign?Object.assign.bind():function(t){for(var e=1;eCe.createElement(e.tag,Au({key:n},e.attr),O6(e.child)))}function q(t){return e=>Ce.createElement(tN,Cu({attr:Au({},t.attr)},e),O6(t.child))}function tN(t){var e=n=>{var{attr:i,size:r,title:a}=t,o=KL(t,YL),s=r||n.size||"1em",f;return n.className&&(f=n.className),t.className&&(f=(f?f+" ":"")+t.className),Ce.createElement("svg",Cu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,o,{className:f,style:Au(Au({color:t.color||n.color},n.style),t.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&Ce.createElement("title",null,a),t.children)};return v2!==void 0?Ce.createElement(v2.Consumer,null,n=>e(n)):e(R6)}function LV(t){return q({attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"},child:[]}]})(t)}function NV(t){return q({attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"},child:[]}]})(t)}function jV(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"},child:[]}]})(t)}function UV(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(t)}function zV(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},child:[]}]})(t)}function VV(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},child:[]}]})(t)}function HV(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"},child:[]}]})(t)}function $V(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function GV(t){return q({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"},child:[]}]})(t)}function WV(t){return q({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"},child:[]}]})(t)}function qV(t){return q({attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"},child:[]}]})(t)}function XV(t){return q({attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"},child:[]}]})(t)}function YV(t){return q({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"},child:[]}]})(t)}function KV(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(t)}function ZV(t){return q({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},child:[]}]})(t)}function QV(t){return q({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(t)}function JV(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(t)}function eH(t){return q({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M592 192H473.26c12.69 29.59 7.12 65.2-17 89.32L320 417.58V464c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48V240c0-26.51-21.49-48-48-48zM480 376c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm-46.37-186.7L258.7 14.37c-19.16-19.16-50.23-19.16-69.39 0L14.37 189.3c-19.16 19.16-19.16 50.23 0 69.39L189.3 433.63c19.16 19.16 50.23 19.16 69.39 0L433.63 258.7c19.16-19.17 19.16-50.24 0-69.4zM96 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},child:[]}]})(t)}function tH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"},child:[]}]})(t)}function nH(t){return q({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M512 320s-64 92.65-64 128c0 35.35 28.66 64 64 64s64-28.65 64-64-64-128-64-128zm-9.37-102.94L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.76c-6.25-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.62l86.19 86.18-94.76 94.76c-37.49 37.48-37.49 98.26 0 135.75l117.19 117.19c18.74 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.87-28.12l221.57-221.57c12.5-12.5 12.5-32.75.01-45.25zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.6 58.6c12.49 12.49 32.75 12.49 45.24 0s12.49-32.75 0-45.24l-58.6-58.6 58.95-58.95 162.44 162.44-48.34 48.34z"},child:[]}]})(t)}function iH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"},child:[]}]})(t)}function rH(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},child:[]}]})(t)}function aH(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(t)}function oH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"},child:[]}]})(t)}function sH(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(t)}function fH(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"},child:[]}]})(t)}function lH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"},child:[]}]})(t)}function uH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"},child:[]}]})(t)}function dH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(t)}function cH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"},child:[]}]})(t)}function hH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"},child:[]}]})(t)}function pH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"},child:[]}]})(t)}function vH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"},child:[]}]})(t)}function mH(t){return q({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(t)}function gH(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"},child:[]}]})(t)}function yH(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32zm70.11-175.8l89.38-94.26a15.41 15.41 0 0 1 22.62 0l89.38 94.26c10.08 10.62 2.94 28.8-11.32 28.8H256v112a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V320h-57.37c-14.26 0-21.4-18.18-11.32-28.8zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"},child:[]}]})(t)}function _H(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"},child:[]}]})(t)}function wH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"},child:[]}]})(t)}function kH(t){return q({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(t)}function bH(t){return q({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},child:[]}]})(t)}function xH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"},child:[]}]})(t)}function SH(t){return q({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(t)}function TH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"},child:[]}]})(t)}function EH(t){return q({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"},child:[]}]})(t)}function Jr(t,e,n){let i=n.initialDeps??[],r;function a(){var o,s,f,l;let c;n.key&&((o=n.debug)!=null&&o.call(n))&&(c=Date.now());const u=t();if(!(u.length!==i.length||u.some((p,m)=>i[m]!==p)))return r;i=u;let h;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(h=Date.now()),r=e(...u),n.key&&((f=n.debug)!=null&&f.call(n))){const p=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-h)*100)/100,v=m/16,g=(y,_)=>{for(y=String(y);y.length<_;)y=" "+y;return y};console.info(`%c⏱ ${g(m,5)} /${g(p,5)} ms`,` font-size: .6rem; font-weight: bold; color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,r),r}return a.updateDeps=o=>{i=o},a}function g2(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const nN=(t,e)=>Math.abs(t-e)<1.01,iN=(t,e,n)=>{let i;return function(...r){t.clearTimeout(i),i=t.setTimeout(()=>e.apply(this,r),n)}},y2=t=>{const{offsetWidth:e,offsetHeight:n}=t;return{width:e,height:n}},rN=t=>t,aN=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),i=[];for(let r=e;r<=n;r++)i.push(r);return i},oN=(t,e)=>{const n=t.scrollElement;if(!n)return;const i=t.targetWindow;if(!i)return;const r=o=>{const{width:s,height:f}=o;e({width:Math.round(s),height:Math.round(f)})};if(r(y2(n)),!i.ResizeObserver)return()=>{};const a=new i.ResizeObserver(o=>{const s=()=>{const f=o[0];if(f!=null&&f.borderBoxSize){const l=f.borderBoxSize[0];if(l){r({width:l.inlineSize,height:l.blockSize});return}}r(y2(n))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},_2={passive:!0},w2=typeof window>"u"?!0:"onscrollend"in window,sN=(t,e)=>{const n=t.scrollElement;if(!n)return;const i=t.targetWindow;if(!i)return;let r=0;const a=t.options.useScrollendEvent&&w2?()=>{}:iN(i,()=>{e(r,!1)},t.options.isScrollingResetDelay),o=c=>()=>{const{horizontal:u,isRtl:d}=t.options;r=u?n.scrollLeft*(d&&-1||1):n.scrollTop,a(),e(r,c)},s=o(!0),f=o(!1);f(),n.addEventListener("scroll",s,_2);const l=t.options.useScrollendEvent&&w2;return l&&n.addEventListener("scrollend",f,_2),()=>{n.removeEventListener("scroll",s),l&&n.removeEventListener("scrollend",f)}},fN=(t,e,n)=>{if(e!=null&&e.borderBoxSize){const i=e.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return t[n.options.horizontal?"offsetWidth":"offsetHeight"]},lN=(t,{adjustments:e=0,behavior:n},i)=>{var r,a;const o=t+e;(a=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||a.call(r,{[i.options.horizontal?"left":"top"]:o,behavior:n})};class uN{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(a=>{const o=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var r;(r=i())==null||r.disconnect(),n=null},observe:r=>{var a;return(a=i())==null?void 0:a.observe(r,{box:"border-box"})},unobserve:r=>{var a;return(a=i())==null?void 0:a.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,r])=>{typeof r>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:rN,rangeExtractor:aN,onChange:()=>{},measureElement:fN,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,r;(r=(i=this.options).onChange)==null||r.call(i,this,n)},this.maybeNotify=Jr(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const r=new Map,a=new Map;for(let o=i-1;o>=0;o--){const s=n[o];if(r.has(s.lane))continue;const f=a.get(s.lane);if(f==null||s.end>f.end?a.set(s.lane,s):s.endo.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=Jr(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,i,r,a,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:r,getItemKey:a,enabled:o}),{key:!1}),this.getMeasurements=Jr(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:r,getItemKey:a,enabled:o},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const f=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,f);for(let c=f;cthis.options.debug}),this.calculateRange=Jr(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,r,a)=>this.range=n.length>0&&i>0?dN({measurements:n,outerSize:i,scrollOffset:r,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Jr(()=>{let n=null,i=null;const r=this.calculateRange();return r&&(n=r.startIndex,i=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,r,a,o)=>a===null||o===null?[]:n({startIndex:a,endIndex:o,overscan:i,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,r=n.getAttribute(i);return r?parseInt(r,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(n,i)=>{const r=this.indexFromElement(n),a=this.measurementsCache[r];if(!a)return;const o=a.key,s=this.elementsCache.get(o);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(r,this.options.measureElement(n,i,this))},this.resizeItem=(n,i)=>{const r=this.measurementsCache[n];if(!r)return;const a=this.itemSizeCache.get(r.key)??r.size,o=i-a;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,o,this):r.start{if(!n){this.elementsCache.forEach((i,r)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(r))});return}this._measureElement(n,void 0)},this.getVirtualItems=Jr(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const r=[];for(let a=0,o=n.length;athis.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return g2(i[F6(0,i.length-1,r=>g2(i[r]).start,n)])},this.getOffsetForAlignment=(n,i,r=0)=>{const a=this.getSize(),o=this.getScrollOffset();i==="auto"&&(i=n>=o+a?"end":"start"),i==="center"?n+=(r-a)/2:i==="end"&&(n-=a);const s=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.measurementsCache[n];if(!r)return;const a=this.getSize(),o=this.getScrollOffset();if(i==="auto")if(r.end>=o+a-this.options.scrollPaddingEnd)i="end";else if(r.start<=o+this.options.scrollPaddingStart)i="start";else return[o,i];const s=i==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,i,r.size),i]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:i="start",behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,i),{adjustments:void 0,behavior:r})},this.scrollToIndex=(n,{align:i="auto",behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let a=0;const o=10,s=l=>{if(!this.targetWindow)return;const c=this.getOffsetForIndex(n,l);if(!c){console.warn("Failed to get offset for index:",n);return}const[u,d]=c;this._scrollToOffset(u,{adjustments:void 0,behavior:r}),this.targetWindow.requestAnimationFrame(()=>{const h=this.getScrollOffset(),p=this.getOffsetForIndex(n,d);if(!p){console.warn("Failed to get offset for index:",n);return}nN(p[0],h)||f(d)})},f=l=>{this.targetWindow&&(a++,as(l)):console.warn(`Failed to scroll to index ${n} after ${o} attempts.`))};s(i)},this.scrollBy=(n,{behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:i})},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let r;if(i.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=i[i.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let o=i.length-1;for(;o>=0&&a.some(s=>s===null);){const s=i[o];a[s.lane]===null&&(a[s.lane]=s.end),o--}r=Math.max(...a.filter(s=>s!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const F6=(t,e,n,i)=>{for(;t<=e;){const r=(t+e)/2|0,a=n(r);if(ai)e=r-1;else return r}return t>0?t-1:0};function dN({measurements:t,outerSize:e,scrollOffset:n,lanes:i}){const r=t.length-1,a=f=>t[f].start;if(t.length<=i)return{startIndex:0,endIndex:r};let o=F6(0,r,a,n),s=o;if(i===1)for(;s1){const f=Array(i).fill(0);for(;sc=0&&l.some(c=>c>=n);){const c=t[o];l[c.lane]=c.start,o--}o=Math.max(0,o-o%i),s=Math.min(r,s+(i-1-s%i))}return{startIndex:o,endIndex:s}}const k2=typeof document<"u"?C.useLayoutEffect:C.useEffect;function cN(t){const e=C.useReducer(()=>({}),{})[1],n={...t,onChange:(r,a)=>{var o;a?O1.flushSync(e):e(),(o=t.onChange)==null||o.call(t,r,a)}},[i]=C.useState(()=>new uN(n));return i.setOptions(n),k2(()=>i._didMount(),[]),k2(()=>i._willUpdate()),i}function CH(t){return cN({observeElementRect:oN,observeElementOffset:sN,scrollToFn:lN,...t})}var lh,uh,dh;const tl=(dh=(uh=(lh=C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)!==null&&lh!==void 0?lh:C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!==null&&uh!==void 0?uh:C.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!==null&&dh!==void 0?dh:C._DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function hN(){return"ReactCurrentDispatcher"in tl?tl.ReactCurrentDispatcher:Object.defineProperty({},"current",{get:()=>{var t;return(t=tl.H)!==null&&t!==void 0?t:void 0},set:t=>{tl.H=t}})}const ch=hN(),pN=()=>C.useReducer(()=>({}))[1],vN=t=>()=>{const e=`Hook "${t}" no possible to using inside useBetween scope.`;throw console.error(e),new Error(e)},uv=(t,e)=>Object.is(t,e),So=(t,e)=>!t||!e||t.length!==e.length||t.some((n,i)=>!uv(n,e[i])),mN=()=>typeof window>"u",b2=new Map;let es=[],Pl=0,xa=[],wi=[],ts=()=>{},hh=mN(),gN;const si=()=>{const t=Pl++;return es[t]=es[t]||{}},I6={useState(t){const e=si(),n=ts;return e.initialized||(e.state=typeof t=="function"?t():t,e.set=i=>{if(typeof i=="function")return e.set(i(e.state));uv(i,e.state)||(e.state=i,n())},e.initialized=!0),[e.state,e.set]},useReducer(t,e,n){const i=si(),r=ts;return i.initialized||(i.state=n?n(e):e,i.dispatch=a=>{const o=t(i.state,a);uv(o,i.state)||(i.state=o,r())},i.initialized=!0),[i.state,i.dispatch]},useEffect(t,e){if(hh)return;const n=si();n.initialized?So(n.deps,e)&&(n.deps=e,xa.push([n,e,t])):(n.deps=e,n.initialized=!0,xa.push([n,e,t]))},useLayoutEffect(t,e){if(hh)return;const n=si();n.initialized?So(n.deps,e)&&(n.deps=e,wi.push([n,e,t])):(n.deps=e,n.initialized=!0,wi.push([n,e,t]))},useCallback(t,e){const n=si();return n.initialized?So(n.deps,e)&&(n.deps=e,n.fn=t):(n.fn=t,n.deps=e,n.initialized=!0),n.fn},useMemo(t,e){const n=si();return n.initialized?So(n.deps,e)&&(n.deps=e,n.state=t()):(n.deps=e,n.state=t(),n.initialized=!0),n.state},useRef(t){const e=si();return e.initialized||(e.state={current:t},e.initialized=!0),e.state},useImperativeHandle(t,e,n){if(hh)return;const i=si();i.initialized?So(i.deps,n)&&(i.deps=n,wi.push([i,n,()=>{typeof t=="function"?t(e()):t.current=e()}])):(i.deps=n,i.initialized=!0,wi.push([i,n,()=>{typeof t=="function"?t(e()):t.current=e()}]))}};["readContext","useContext","useDebugValue","useResponder","useDeferredValue","useTransition"].forEach(t=>I6[t]=vN(t));const yN=(t,e)=>{const n=[];let i=[],r,a=[],o=!1;const s=()=>{i.slice().forEach(h=>h())},f=()=>{if(o)return;const h=ch.current,p=[Pl,xa,wi,es,ts];let m=!1,v=!0;if(Pl=0,xa=[],wi=[],es=n,ts=()=>{v?m=!0:f()},ch.current=I6,r=t(gN),[wi,xa].forEach(g=>g.forEach(([y,_,w])=>{if(y.deps=_,y.unsub){const b=y.unsub;a=a.filter(x=>x!==b),b()}const k=w();typeof k=="function"?(a.push(k),y.unsub=k):y.unsub=null})),[Pl,xa,wi,es,ts]=p,ch.current=h,v=!1,!m){s();return}f()};return{init:()=>f(),get:()=>r,sub:h=>{i.indexOf(h)===-1&&i.push(h)},unsub:h=>{i=i.filter(p=>p!==h)},unsubs:()=>a,mock:h=>{o=!0,r=h,s()},unmock:()=>{o=!1,f()}}},_N=t=>{let e=b2.get(t);return e||(e=yN(t),b2.set(t,e),e.init()),e},AH=t=>{const e=pN();let n=_N(t);return n.sub(e),C.useEffect(()=>(n.sub(e),()=>n.unsub(e)),[n,e]),n.get()};function dv(t,e){return dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dv(t,e)}function B6(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,dv(t,e)}function ph(t){return t&&t.stopPropagation&&t.stopPropagation(),t&&t.preventDefault&&t.preventDefault(),!1}function vh(t){return t==null?[]:Array.isArray(t)?t.slice():[t]}function nl(t){return t!==null&&t.length===1?t[0]:t.slice()}function il(t){Object.keys(t).forEach(e=>{typeof document<"u"&&document.addEventListener(e,t[e],!1)})}function tr(t,e){return cv(function(n,i){let r=n;return r<=i.min&&(r=i.min),r>=i.max&&(r=i.max),r}(t,e),e)}function cv(t,e){const n=(t-e.min)%e.step;let i=t-n;return 2*Math.abs(n)>=e.step&&(i+=n>0?e.step:-e.step),parseFloat(i.toFixed(5))}let hv=function(t){function e(i){var r;(r=t.call(this,i)||this).onKeyUp=()=>{r.onEnd()},r.onMouseUp=()=>{r.onEnd(r.getMouseEventMap())},r.onTouchEnd=s=>{s.preventDefault(),r.onEnd(r.getTouchEventMap())},r.onBlur=()=>{r.setState({index:-1},r.onEnd(r.getKeyDownEventMap()))},r.onMouseMove=s=>{r.setState({pending:!0});const f=r.getMousePosition(s),l=r.getDiffPosition(f[0]),c=r.getValueFromPosition(l);r.move(c)},r.onTouchMove=s=>{if(s.touches.length>1)return;r.setState({pending:!0});const f=r.getTouchPosition(s);if(r.isScrolling===void 0){const u=f[0]-r.startPosition[0],d=f[1]-r.startPosition[1];r.isScrolling=Math.abs(d)>Math.abs(u)}if(r.isScrolling)return void r.setState({index:-1});const l=r.getDiffPosition(f[0]),c=r.getValueFromPosition(l);r.move(c)},r.onKeyDown=s=>{if(!(s.ctrlKey||s.shiftKey||s.altKey||s.metaKey))switch(r.setState({pending:!0}),s.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":s.preventDefault(),r.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":s.preventDefault(),r.moveUpByStep();break;case"Home":s.preventDefault(),r.move(r.props.min);break;case"End":s.preventDefault(),r.move(r.props.max);break;case"PageDown":s.preventDefault(),r.moveDownByStep(r.props.pageFn(r.props.step));break;case"PageUp":s.preventDefault(),r.moveUpByStep(r.props.pageFn(r.props.step))}},r.onSliderMouseDown=s=>{if(!r.props.disabled&&s.button!==2){if(r.setState({pending:!0}),!r.props.snapDragDisabled){const f=r.getMousePosition(s);r.forceValueFromPosition(f[0],l=>{r.start(l,f[0]),il(r.getMouseEventMap())})}ph(s)}},r.onSliderClick=s=>{if(!r.props.disabled&&r.props.onSliderClick&&!r.hasMoved){const f=r.getMousePosition(s),l=tr(r.calcValue(r.calcOffsetFromPosition(f[0])),r.props);r.props.onSliderClick(l)}},r.createOnKeyDown=s=>f=>{r.props.disabled||(r.start(s),il(r.getKeyDownEventMap()),ph(f))},r.createOnMouseDown=s=>f=>{if(r.props.disabled||f.button===2)return;r.setState({pending:!0});const l=r.getMousePosition(f);r.start(s,l[0]),il(r.getMouseEventMap()),ph(f)},r.createOnTouchStart=s=>f=>{if(r.props.disabled||f.touches.length>1)return;r.setState({pending:!0});const l=r.getTouchPosition(f);r.startPosition=l,r.isScrolling=void 0,r.start(s,l[0]),il(r.getTouchEventMap()),function(c){c.stopPropagation&&c.stopPropagation()}(f)},r.handleResize=()=>{const s=window.setTimeout(()=>{r.pendingResizeTimeouts.shift(),r.resize()},0);r.pendingResizeTimeouts.push(s)},r.renderThumb=(s,f)=>{const l=r.props.thumbClassName+" "+r.props.thumbClassName+"-"+f+" "+(r.state.index===f?r.props.thumbActiveClassName:""),c={ref:d=>{r["thumb"+f]=d},key:r.props.thumbClassName+"-"+f,className:l,style:s,onMouseDown:r.createOnMouseDown(f),onTouchStart:r.createOnTouchStart(f),onFocus:r.createOnKeyDown(f),tabIndex:0,role:"slider","aria-orientation":r.props.orientation,"aria-valuenow":r.state.value[f],"aria-valuemin":r.props.min,"aria-valuemax":r.props.max,"aria-label":Array.isArray(r.props.ariaLabel)?r.props.ariaLabel[f]:r.props.ariaLabel,"aria-labelledby":Array.isArray(r.props.ariaLabelledby)?r.props.ariaLabelledby[f]:r.props.ariaLabelledby,"aria-disabled":r.props.disabled},u={index:f,value:nl(r.state.value),valueNow:r.state.value[f]};return r.props.ariaValuetext&&(c["aria-valuetext"]=typeof r.props.ariaValuetext=="string"?r.props.ariaValuetext:r.props.ariaValuetext(u)),r.props.renderThumb(c,u)},r.renderTrack=(s,f,l)=>{const c={key:r.props.trackClassName+"-"+s,className:r.props.trackClassName+" "+r.props.trackClassName+"-"+s,style:r.buildTrackStyle(f,r.state.upperBound-l)},u={index:s,value:nl(r.state.value)};return r.props.renderTrack(c,u)};let a=vh(i.value);a.length||(a=vh(i.defaultValue)),r.pendingResizeTimeouts=[];const o=[];for(let s=0;str(o,i))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(i){i&&function(r){Object.keys(r).forEach(a=>{typeof document<"u"&&document.removeEventListener(a,r[a],!1)})}(i),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return nl(this.state.value)},n.getClosestIndex=function(i){let r=Number.MAX_VALUE,a=-1;const{value:o}=this.state,s=o.length;for(let f=0;f{r(o),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const i=this.pendingResizeTimeouts.shift();clearTimeout(i)}while(this.pendingResizeTimeouts.length)},n.start=function(i,r){const a=this["thumb"+i];a&&a.focus();const{zIndices:o}=this.state;o.splice(o.indexOf(i),1),o.push(i),this.setState(s=>({startValue:s.value[i],startPosition:r!==void 0?r:s.startPosition,index:i,zIndices:o}))},n.moveUpByStep=function(i){i===void 0&&(i=this.props.step);const r=this.state.value[this.state.index],a=tr(this.props.invert&&this.props.orientation==="horizontal"?r-i:r+i,this.props);this.move(Math.min(a,this.props.max))},n.moveDownByStep=function(i){i===void 0&&(i=this.props.step);const r=this.state.value[this.state.index],a=tr(this.props.invert&&this.props.orientation==="horizontal"?r+i:r-i,this.props);this.move(Math.max(a,this.props.min))},n.move=function(i){const r=this.state.value.slice(),{index:a}=this.state,{length:o}=r,s=r[a];if(i===s)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:f,max:l,min:c,minDistance:u}=this.props;if(!f){if(a>0){const d=r[a-1];id-u&&(i=d-u)}}r[a]=i,f&&o>1&&(i>s?(this.pushSucceeding(r,u,a),function(d,h,p,m){for(let v=0;vg&&(h[d-1-v]=g)}}(o,r,u,l)):ii[o+1];o+=1,s=i[o]+r)i[o+1]=cv(s,this.props)},n.pushPreceding=function(i,r,a){for(let o=a,s=i[o]-r;i[o-1]!==null&&s=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(r)+1};return a[this.posMinKey()]=i+"px",a},n.buildTrackStyle=function(i,r){const a={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return a[this.posMinKey()]=i,a[this.posMaxKey()]=r,a},n.buildMarkStyle=function(i){var r;return(r={position:"absolute"})[this.posMinKey()]=i,r},n.renderThumbs=function(i){const{length:r}=i,a=[];for(let s=0;so):typeof i=="number"&&(i=Array.from({length:r}).map((a,o)=>o).filter(a=>a%i==0)),i.map(parseFloat).sort((a,o)=>a-o).map(a=>{const o=this.calcOffset(a),s={key:a,className:this.props.markClassName,style:this.buildMarkStyle(o)};return this.props.renderMark(s)})},n.render=function(){const i=[],{value:r}=this.state,a=r.length;for(let l=0;l{this.slider=l,this.resizeElementRef.current=l},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},o,s,f)},e}(Ce.Component);hv.displayName="ReactSlider",hv.defaultProps={min:0,max:100,step:1,pageFn:t=>10*t,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:t=>Ce.createElement("div",t),renderTrack:t=>Ce.createElement("div",t),renderMark:t=>Ce.createElement("span",t)};var PH=hv;function MH(t){return q({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M2 20h20v4H2v-4zm3.49-3h2.42l1.27-3.58h5.65L16.09 17h2.42L13.25 3h-2.5L5.49 17zm4.42-5.61 2.03-5.79h.12l2.03 5.79H9.91z"},child:[]}]})(t)}function RH(t){return q({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(t)}function OH(t){return q({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(t)}var D6={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o1?c-1:0),d=1;d=19?t.props.ref:t.ref}const Am=!!(typeof window<"u"&&window.document&&window.document.createElement);var vv=!1,mv=!1;try{var mh={get passive(){return vv=!0},get once(){return mv=vv=!0}};Am&&(window.addEventListener("test",mh,mh),window.removeEventListener("test",mh,!0))}catch{}function zN(t,e,n,i){if(i&&typeof i!="boolean"&&!mv){var r=i.once,a=i.capture,o=n;!mv&&r&&(o=n.__once||function s(f){this.removeEventListener(e,s,a),n.call(this,f)},n.__once=o),t.addEventListener(e,o,vv?i:a)}t.addEventListener(e,n,i)}function VN(t,e,n,i){var r=i&&typeof i!="boolean"?i.capture:i;t.removeEventListener(e,n,r),n.__once&&t.removeEventListener(e,n.__once,r)}function yr(t,e,n,i){return zN(t,e,n,i),function(){VN(t,e,n,i)}}function HN(t,e,n,i){if(i===void 0&&(i=!0),t){var r=document.createEvent("HTMLEvents");r.initEvent(e,n,i),t.dispatchEvent(r)}}function $N(t){var e=N6(t,"transitionDuration")||"",n=e.indexOf("ms")===-1?1e3:1;return parseFloat(e)*n}function GN(t,e,n){n===void 0&&(n=5);var i=!1,r=setTimeout(function(){i||HN(t,"transitionend",!0)},e+n),a=yr(t,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(r),a()}}function WN(t,e,n,i){n==null&&(n=$N(t)||0);var r=GN(t,n,i),a=yr(t,"transitionend",e);return function(){r(),a()}}function S2(t,e){const n=N6(t,e)||"",i=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*i}function qN(t,e){const n=S2(t,"transitionDuration"),i=S2(t,"transitionDelay"),r=WN(t,a=>{a.target===t&&(r(),e(a))},n+i)}function XN(t){t.offsetHeight}const T2=t=>!t||typeof t=="function"?t:e=>{t.current=e};function YN(t,e){const n=T2(t),i=T2(e);return r=>{n&&n(r),i&&i(r)}}function Pm(t,e){return C.useMemo(()=>YN(t,e),[t,e])}function Pu(t){return t&&"setState"in t?pa.findDOMNode(t):t??null}const H6=Ce.forwardRef(({onEnter:t,onEntering:e,onEntered:n,onExit:i,onExiting:r,onExited:a,addEndListener:o,children:s,childRef:f,...l},c)=>{const u=C.useRef(null),d=Pm(u,f),h=b=>{d(Pu(b))},p=b=>x=>{b&&u.current&&b(u.current,x)},m=C.useCallback(p(t),[t]),v=C.useCallback(p(e),[e]),g=C.useCallback(p(n),[n]),y=C.useCallback(p(i),[i]),_=C.useCallback(p(r),[r]),w=C.useCallback(p(a),[a]),k=C.useCallback(p(o),[o]);return ve.jsx(ai,{ref:c,...l,onEnter:m,onEntered:g,onEntering:v,onExit:y,onExited:w,onExiting:_,addEndListener:k,nodeRef:u,children:typeof s=="function"?(b,x)=>s(b,{...x,ref:h}):Ce.cloneElement(s,{ref:h})})});H6.displayName="TransitionWrapper";function KN(t){const e=C.useRef(t);return C.useEffect(()=>{e.current=t},[t]),e}function ZN(t){const e=KN(t);return C.useCallback(function(...n){return e.current&&e.current(...n)},[e])}function E2(){return C.useState(null)}function QN(t){const e=C.useRef(t);return C.useEffect(()=>{e.current=t},[t]),e}function Us(t){const e=QN(t);return C.useCallback(function(...n){return e.current&&e.current(...n)},[e])}function JN(){const t=C.useRef(!0),e=C.useRef(()=>t.current);return C.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}const ej=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",tj=typeof document<"u",C2=tj||ej?C.useLayoutEffect:C.useEffect,nj=["as","disabled"];function ij(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}function rj(t){return!t||t.trim()==="#"}function $6({tagName:t,disabled:e,href:n,target:i,rel:r,role:a,onClick:o,tabIndex:s=0,type:f}){t||(n!=null||i!=null||r!=null?t="a":t="button");const l={tagName:t};if(t==="button")return[{type:f||"button",disabled:e},l];const c=d=>{if((e||t==="a"&&rj(n))&&d.preventDefault(),e){d.stopPropagation();return}o==null||o(d)},u=d=>{d.key===" "&&(d.preventDefault(),c(d))};return t==="a"&&(n||(n="#"),e&&(n=void 0)),[{role:a??"button",disabled:void 0,tabIndex:e?void 0:s,href:n,target:t==="a"?i:void 0,"aria-disabled":e||void 0,rel:t==="a"?r:void 0,onClick:c,onKeyDown:u},l]}const aj=C.forwardRef((t,e)=>{let{as:n,disabled:i}=t,r=ij(t,nj);const[a,{tagName:o}]=$6(Object.assign({tagName:n,disabled:i},r));return ve.jsx(o,Object.assign({},r,a,{ref:e}))});aj.displayName="Button";const oj={[hi]:"show",[cr]:"show"},gv=C.forwardRef(({className:t,children:e,transitionClasses:n={},onEnter:i,...r},a)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...r},s=C.useCallback((f,l)=>{XN(f),i==null||i(f,l)},[i]);return ve.jsx(H6,{ref:a,addEndListener:qN,...o,onEnter:s,childRef:sf(e),children:(f,l)=>C.cloneElement(e,{...l,className:$r("fade",t,e.props.className,oj[f],n[f])})})});gv.displayName="Fade";const sj=C.forwardRef(({as:t,bsPrefix:e,variant:n="primary",size:i,active:r=!1,disabled:a=!1,className:o,...s},f)=>{const l=Lr(e,"btn"),[c,{tagName:u}]=$6({tagName:t,disabled:a,...s}),d=u;return ve.jsx(d,{...c,...s,ref:f,disabled:a,className:$r(o,l,r&&"active",n&&`${l}-${n}`,i&&`${l}-${i}`,s.href&&a&&"disabled")})});sj.displayName="Button";function fj(){const t=C.useRef(!0),e=C.useRef(()=>t.current);return C.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}function lj(t){const e=C.useRef(t);return e.current=t,e}function uj(t){const e=lj(t);C.useEffect(()=>()=>e.current(),[])}const yv=2**31-1;function G6(t,e,n){const i=n-Date.now();t.current=i<=yv?setTimeout(e,i):setTimeout(()=>G6(t,e,n),yv)}function dj(){const t=fj(),e=C.useRef();return uj(()=>clearTimeout(e.current)),C.useMemo(()=>{const n=()=>clearTimeout(e.current);function i(r,a=0){t()&&(n(),a<=yv?e.current=setTimeout(r,a):G6(e,r,Date.now()+a))}return{set:i,clear:n,handleRef:e}},[])}var A2=Object.prototype.hasOwnProperty;function P2(t,e,n){for(n of t.keys())if(ns(n,e))return n}function ns(t,e){var n,i,r;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((i=t.length)===e.length)for(;i--&&ns(t[i],e[i]););return i===-1}if(n===Set){if(t.size!==e.size)return!1;for(i of t)if(r=i,r&&typeof r=="object"&&(r=P2(e,r),!r)||!e.has(r))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(i of t)if(r=i[0],r&&typeof r=="object"&&(r=P2(e,r),!r)||!ns(i[1],e.get(r)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((i=t.byteLength)===e.byteLength)for(;i--&&t.getInt8(i)===e.getInt8(i););return i===-1}if(ArrayBuffer.isView(t)){if((i=t.byteLength)===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}if(!n||typeof t=="object"){i=0;for(n in t)if(A2.call(t,n)&&++i&&!A2.call(e,n)||!(n in e)||!ns(t[n],e[n]))return!1;return Object.keys(e).length===i}}return t!==t&&e!==e}function cj(t){const e=JN();return[t[0],C.useCallback(n=>{if(e())return t[1](n)},[e,t[1]])]}var Mt="top",nn="bottom",rn="right",Rt="left",Mm="auto",ff=[Mt,nn,rn,Rt],Xa="start",zs="end",hj="clippingParents",W6="viewport",To="popper",pj="reference",M2=ff.reduce(function(t,e){return t.concat([e+"-"+Xa,e+"-"+zs])},[]),q6=[].concat(ff,[Mm]).reduce(function(t,e){return t.concat([e,e+"-"+Xa,e+"-"+zs])},[]),vj="beforeRead",mj="read",gj="afterRead",yj="beforeMain",_j="main",wj="afterMain",kj="beforeWrite",bj="write",xj="afterWrite",Sj=[vj,mj,gj,yj,_j,wj,kj,bj,xj];function Pn(t){return t.split("-")[0]}function Vt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Nr(t){var e=Vt(t).Element;return t instanceof e||t instanceof Element}function Mn(t){var e=Vt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Rm(t){if(typeof ShadowRoot>"u")return!1;var e=Vt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Er=Math.max,Mu=Math.min,Ya=Math.round;function _v(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function X6(){return!/^((?!chrome|android).)*safari/i.test(_v())}function Ka(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),r=1,a=1;e&&Mn(t)&&(r=t.offsetWidth>0&&Ya(i.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ya(i.height)/t.offsetHeight||1);var o=Nr(t)?Vt(t):window,s=o.visualViewport,f=!X6()&&n,l=(i.left+(f&&s?s.offsetLeft:0))/r,c=(i.top+(f&&s?s.offsetTop:0))/a,u=i.width/r,d=i.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Om(t){var e=Ka(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Y6(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Rm(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ji(t){return t?(t.nodeName||"").toLowerCase():null}function ii(t){return Vt(t).getComputedStyle(t)}function Tj(t){return["table","td","th"].indexOf(ji(t))>=0}function qi(t){return((Nr(t)?t.ownerDocument:t.document)||window.document).documentElement}function kd(t){return ji(t)==="html"?t:t.assignedSlot||t.parentNode||(Rm(t)?t.host:null)||qi(t)}function R2(t){return!Mn(t)||ii(t).position==="fixed"?null:t.offsetParent}function Ej(t){var e=/firefox/i.test(_v()),n=/Trident/i.test(_v());if(n&&Mn(t)){var i=ii(t);if(i.position==="fixed")return null}var r=kd(t);for(Rm(r)&&(r=r.host);Mn(r)&&["html","body"].indexOf(ji(r))<0;){var a=ii(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function lf(t){for(var e=Vt(t),n=R2(t);n&&Tj(n)&&ii(n).position==="static";)n=R2(n);return n&&(ji(n)==="html"||ji(n)==="body"&&ii(n).position==="static")?e:n||Ej(t)||e}function Fm(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function is(t,e,n){return Er(t,Mu(e,n))}function Cj(t,e,n){var i=is(t,e,n);return i>n?n:i}function K6(){return{top:0,right:0,bottom:0,left:0}}function Z6(t){return Object.assign({},K6(),t)}function Q6(t,e){return e.reduce(function(n,i){return n[i]=t,n},{})}var Aj=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Z6(typeof e!="number"?e:Q6(e,ff))};function Pj(t){var e,n=t.state,i=t.name,r=t.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Pn(n.placement),f=Fm(s),l=[Rt,rn].indexOf(s)>=0,c=l?"height":"width";if(!(!a||!o)){var u=Aj(r.padding,n),d=Om(a),h=f==="y"?Mt:Rt,p=f==="y"?nn:rn,m=n.rects.reference[c]+n.rects.reference[f]-o[f]-n.rects.popper[c],v=o[f]-n.rects.reference[f],g=lf(a),y=g?f==="y"?g.clientHeight||0:g.clientWidth||0:0,_=m/2-v/2,w=u[h],k=y-d[c]-u[p],b=y/2-d[c]/2+_,x=is(w,b,k),S=f;n.modifiersData[i]=(e={},e[S]=x,e.centerOffset=x-b,e)}}function Mj(t){var e=t.state,n=t.options,i=n.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Y6(e.elements.popper,r)&&(e.elements.arrow=r))}const Rj={name:"arrow",enabled:!0,phase:"main",fn:Pj,effect:Mj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Za(t){return t.split("-")[1]}var Oj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fj(t,e){var n=t.x,i=t.y,r=e.devicePixelRatio||1;return{x:Ya(n*r)/r||0,y:Ya(i*r)/r||0}}function O2(t){var e,n=t.popper,i=t.popperRect,r=t.placement,a=t.variation,o=t.offsets,s=t.position,f=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,u=t.isFixed,d=o.x,h=d===void 0?0:d,p=o.y,m=p===void 0?0:p,v=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=v.x,m=v.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=Rt,w=Mt,k=window;if(l){var b=lf(n),x="clientHeight",S="clientWidth";if(b===Vt(n)&&(b=qi(n),ii(b).position!=="static"&&s==="absolute"&&(x="scrollHeight",S="scrollWidth")),b=b,r===Mt||(r===Rt||r===rn)&&a===zs){w=nn;var T=u&&b===k&&k.visualViewport?k.visualViewport.height:b[x];m-=T-i.height,m*=f?1:-1}if(r===Rt||(r===Mt||r===nn)&&a===zs){_=rn;var E=u&&b===k&&k.visualViewport?k.visualViewport.width:b[S];h-=E-i.width,h*=f?1:-1}}var A=Object.assign({position:s},l&&Oj),I=c===!0?Fj({x:h,y:m},Vt(n)):{x:h,y:m};if(h=I.x,m=I.y,f){var D;return Object.assign({},A,(D={},D[w]=y?"0":"",D[_]=g?"0":"",D.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",D))}return Object.assign({},A,(e={},e[w]=y?m+"px":"",e[_]=g?h+"px":"",e.transform="",e))}function Ij(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=i===void 0?!0:i,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,f=s===void 0?!0:s,l={placement:Pn(e.placement),variation:Za(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,O2(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,O2(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Bj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ij,data:{}};var al={passive:!0};function Dj(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,a=r===void 0?!0:r,o=i.resize,s=o===void 0?!0:o,f=Vt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",n.update,al)}),s&&f.addEventListener("resize",n.update,al),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",n.update,al)}),s&&f.removeEventListener("resize",n.update,al)}}const Lj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Dj,data:{}};var Nj={left:"right",right:"left",bottom:"top",top:"bottom"};function Ml(t){return t.replace(/left|right|bottom|top/g,function(e){return Nj[e]})}var jj={start:"end",end:"start"};function F2(t){return t.replace(/start|end/g,function(e){return jj[e]})}function Im(t){var e=Vt(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Bm(t){return Ka(qi(t)).left+Im(t).scrollLeft}function Uj(t,e){var n=Vt(t),i=qi(t),r=n.visualViewport,a=i.clientWidth,o=i.clientHeight,s=0,f=0;if(r){a=r.width,o=r.height;var l=X6();(l||!l&&e==="fixed")&&(s=r.offsetLeft,f=r.offsetTop)}return{width:a,height:o,x:s+Bm(t),y:f}}function zj(t){var e,n=qi(t),i=Im(t),r=(e=t.ownerDocument)==null?void 0:e.body,a=Er(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Er(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+Bm(t),f=-i.scrollTop;return ii(r||n).direction==="rtl"&&(s+=Er(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:s,y:f}}function Dm(t){var e=ii(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function J6(t){return["html","body","#document"].indexOf(ji(t))>=0?t.ownerDocument.body:Mn(t)&&Dm(t)?t:J6(kd(t))}function rs(t,e){var n;e===void 0&&(e=[]);var i=J6(t),r=i===((n=t.ownerDocument)==null?void 0:n.body),a=Vt(i),o=r?[a].concat(a.visualViewport||[],Dm(i)?i:[]):i,s=e.concat(o);return r?s:s.concat(rs(kd(o)))}function wv(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Vj(t,e){var n=Ka(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function I2(t,e,n){return e===W6?wv(Uj(t,n)):Nr(e)?Vj(e,n):wv(zj(qi(t)))}function Hj(t){var e=rs(kd(t)),n=["absolute","fixed"].indexOf(ii(t).position)>=0,i=n&&Mn(t)?lf(t):t;return Nr(i)?e.filter(function(r){return Nr(r)&&Y6(r,i)&&ji(r)!=="body"}):[]}function $j(t,e,n,i){var r=e==="clippingParents"?Hj(t):[].concat(e),a=[].concat(r,[n]),o=a[0],s=a.reduce(function(f,l){var c=I2(t,l,i);return f.top=Er(c.top,f.top),f.right=Mu(c.right,f.right),f.bottom=Mu(c.bottom,f.bottom),f.left=Er(c.left,f.left),f},I2(t,o,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ex(t){var e=t.reference,n=t.element,i=t.placement,r=i?Pn(i):null,a=i?Za(i):null,o=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,f;switch(r){case Mt:f={x:o,y:e.y-n.height};break;case nn:f={x:o,y:e.y+e.height};break;case rn:f={x:e.x+e.width,y:s};break;case Rt:f={x:e.x-n.width,y:s};break;default:f={x:e.x,y:e.y}}var l=r?Fm(r):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case Xa:f[l]=f[l]-(e[c]/2-n[c]/2);break;case zs:f[l]=f[l]+(e[c]/2-n[c]/2);break}}return f}function Vs(t,e){e===void 0&&(e={});var n=e,i=n.placement,r=i===void 0?t.placement:i,a=n.strategy,o=a===void 0?t.strategy:a,s=n.boundary,f=s===void 0?hj:s,l=n.rootBoundary,c=l===void 0?W6:l,u=n.elementContext,d=u===void 0?To:u,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,v=m===void 0?0:m,g=Z6(typeof v!="number"?v:Q6(v,ff)),y=d===To?pj:To,_=t.rects.popper,w=t.elements[p?y:d],k=$j(Nr(w)?w:w.contextElement||qi(t.elements.popper),f,c,o),b=Ka(t.elements.reference),x=ex({reference:b,element:_,placement:r}),S=wv(Object.assign({},_,x)),T=d===To?S:b,E={top:k.top-T.top+g.top,bottom:T.bottom-k.bottom+g.bottom,left:k.left-T.left+g.left,right:T.right-k.right+g.right},A=t.modifiersData.offset;if(d===To&&A){var I=A[r];Object.keys(E).forEach(function(D){var $=[rn,nn].indexOf(D)>=0?1:-1,R=[Mt,nn].indexOf(D)>=0?"y":"x";E[D]+=I[R]*$})}return E}function Gj(t,e){e===void 0&&(e={});var n=e,i=n.placement,r=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,l=f===void 0?q6:f,c=Za(i),u=c?s?M2:M2.filter(function(p){return Za(p)===c}):ff,d=u.filter(function(p){return l.indexOf(p)>=0});d.length===0&&(d=u);var h=d.reduce(function(p,m){return p[m]=Vs(t,{placement:m,boundary:r,rootBoundary:a,padding:o})[Pn(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function Wj(t){if(Pn(t)===Mm)return[];var e=Ml(t);return[F2(t),e,F2(e)]}function qj(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!0:o,f=n.fallbackPlacements,l=n.padding,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,v=e.options.placement,g=Pn(v),y=g===v,_=f||(y||!p?[Ml(v)]:Wj(v)),w=[v].concat(_).reduce(function(Y,oe){return Y.concat(Pn(oe)===Mm?Gj(e,{placement:oe,boundary:c,rootBoundary:u,padding:l,flipVariations:p,allowedAutoPlacements:m}):oe)},[]),k=e.rects.reference,b=e.rects.popper,x=new Map,S=!0,T=w[0],E=0;E=0,R=$?"width":"height",B=Vs(e,{placement:A,boundary:c,rootBoundary:u,altBoundary:d,padding:l}),U=$?D?rn:Rt:D?nn:Mt;k[R]>b[R]&&(U=Ml(U));var O=Ml(U),N=[];if(a&&N.push(B[I]<=0),s&&N.push(B[U]<=0,B[O]<=0),N.every(function(Y){return Y})){T=A,S=!1;break}x.set(A,N)}if(S)for(var P=p?3:1,L=function(oe){var J=w.find(function(de){var he=x.get(de);if(he)return he.slice(0,oe).every(function(Be){return Be})});if(J)return T=J,"break"},V=P;V>0;V--){var Z=L(V);if(Z==="break")break}e.placement!==T&&(e.modifiersData[i]._skip=!0,e.placement=T,e.reset=!0)}}const Xj={name:"flip",enabled:!0,phase:"main",fn:qj,requiresIfExists:["offset"],data:{_skip:!1}};function B2(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function D2(t){return[Mt,rn,nn,Rt].some(function(e){return t[e]>=0})}function Yj(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,a=e.modifiersData.preventOverflow,o=Vs(e,{elementContext:"reference"}),s=Vs(e,{altBoundary:!0}),f=B2(o,i),l=B2(s,r,a),c=D2(f),u=D2(l);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const Kj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yj};function Zj(t,e,n){var i=Pn(t),r=[Rt,Mt].indexOf(i)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*r,[Rt,rn].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}function Qj(t){var e=t.state,n=t.options,i=t.name,r=n.offset,a=r===void 0?[0,0]:r,o=q6.reduce(function(c,u){return c[u]=Zj(u,e.rects,a),c},{}),s=o[e.placement],f=s.x,l=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=o}const Jj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qj};function eU(t){var e=t.state,n=t.name;e.modifiersData[n]=ex({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const tU={name:"popperOffsets",enabled:!0,phase:"read",fn:eU,data:{}};function nU(t){return t==="x"?"y":"x"}function iU(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,a=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!1:o,f=n.boundary,l=n.rootBoundary,c=n.altBoundary,u=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,m=p===void 0?0:p,v=Vs(e,{boundary:f,rootBoundary:l,padding:u,altBoundary:c}),g=Pn(e.placement),y=Za(e.placement),_=!y,w=Fm(g),k=nU(w),b=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,T=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,E=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(b){if(a){var D,$=w==="y"?Mt:Rt,R=w==="y"?nn:rn,B=w==="y"?"height":"width",U=b[w],O=U+v[$],N=U-v[R],P=h?-S[B]/2:0,L=y===Xa?x[B]:S[B],V=y===Xa?-S[B]:-x[B],Z=e.elements.arrow,Y=h&&Z?Om(Z):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:K6(),J=oe[$],de=oe[R],he=is(0,x[B],Y[B]),Be=_?x[B]/2-P-he-J-E.mainAxis:L-he-J-E.mainAxis,De=_?-x[B]/2+P+he+de+E.mainAxis:V+he+de+E.mainAxis,ce=e.elements.arrow&&lf(e.elements.arrow),ae=ce?w==="y"?ce.clientTop||0:ce.clientLeft||0:0,pe=(D=A==null?void 0:A[w])!=null?D:0,nt=U+Be-pe-ae,Q=U+De-pe,se=is(h?Mu(O,nt):O,U,h?Er(N,Q):N);b[w]=se,I[w]=se-U}if(s){var fe,lt=w==="x"?Mt:Rt,ee=w==="x"?nn:rn,K=b[k],Ot=k==="y"?"height":"width",He=K+v[lt],Xi=K-v[ee],Gr=[Mt,Rt].indexOf(g)!==-1,so=(fe=A==null?void 0:A[k])!=null?fe:0,zm=Gr?He:K-x[Ot]-S[Ot]-so+E.altAxis,Vm=Gr?K+x[Ot]+S[Ot]-so-E.altAxis:Xi,Hm=h&&Gr?Cj(zm,K,Vm):is(h?zm:He,K,h?Vm:Xi);b[k]=Hm,I[k]=Hm-K}e.modifiersData[i]=I}}const rU={name:"preventOverflow",enabled:!0,phase:"main",fn:iU,requiresIfExists:["offset"]};function aU(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function oU(t){return t===Vt(t)||!Mn(t)?Im(t):aU(t)}function sU(t){var e=t.getBoundingClientRect(),n=Ya(e.width)/t.offsetWidth||1,i=Ya(e.height)/t.offsetHeight||1;return n!==1||i!==1}function fU(t,e,n){n===void 0&&(n=!1);var i=Mn(e),r=Mn(e)&&sU(e),a=qi(e),o=Ka(t,r,n),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!n)&&((ji(e)!=="body"||Dm(a))&&(s=oU(e)),Mn(e)?(f=Ka(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):a&&(f.x=Bm(a))),{x:o.left+s.scrollLeft-f.x,y:o.top+s.scrollTop-f.y,width:o.width,height:o.height}}function lU(t){var e=new Map,n=new Set,i=[];t.forEach(function(a){e.set(a.name,a)});function r(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var f=e.get(s);f&&r(f)}}),i.push(a)}return t.forEach(function(a){n.has(a.name)||r(a)}),i}function uU(t){var e=lU(t);return Sj.reduce(function(n,i){return n.concat(e.filter(function(r){return r.phase===i}))},[])}function dU(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function cU(t){var e=t.reduce(function(n,i){var r=n[i.name];return n[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,n},{});return Object.keys(e).map(function(n){return e[n]})}var L2={placement:"bottom",modifiers:[],strategy:"absolute"};function N2(){for(var t=arguments.length,e=new Array(t),n=0;n=0)continue;n[i]=t[i]}return n}const gU={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},yU={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:e,popper:n}=t.elements;if("removeAttribute"in e){const i=(e.getAttribute("aria-describedby")||"").split(",").filter(r=>r.trim()!==n.id);i.length?e.setAttribute("aria-describedby",i.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:t})=>{var e;const{popper:n,reference:i}=t.elements,r=(e=n.getAttribute("role"))==null?void 0:e.toLowerCase();if(n.id&&r==="tooltip"&&"setAttribute"in i){const a=i.getAttribute("aria-describedby");if(a&&a.split(",").indexOf(n.id)!==-1)return;i.setAttribute("aria-describedby",a?`${a},${n.id}`:n.id)}}},_U=[];function wU(t,e,n={}){let{enabled:i=!0,placement:r="bottom",strategy:a="absolute",modifiers:o=_U}=n,s=mU(n,vU);const f=C.useRef(o),l=C.useRef(),c=C.useCallback(()=>{var v;(v=l.current)==null||v.update()},[]),u=C.useCallback(()=>{var v;(v=l.current)==null||v.forceUpdate()},[]),[d,h]=cj(C.useState({placement:r,update:c,forceUpdate:u,attributes:{},styles:{popper:{},arrow:{}}})),p=C.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const g={},y={};Object.keys(v.elements).forEach(_=>{g[_]=v.styles[_],y[_]=v.attributes[_]}),h({state:v,styles:g,attributes:y,update:c,forceUpdate:u,placement:v.placement})}}),[c,u,h]),m=C.useMemo(()=>(ns(f.current,o)||(f.current=o),f.current),[o]);return C.useEffect(()=>{!l.current||!i||l.current.setOptions({placement:r,strategy:a,modifiers:[...m,p,gU]})},[a,r,p,i,m]),C.useEffect(()=>{if(!(!i||t==null||e==null))return l.current=pU(t,e,Object.assign({},s,{placement:r,strategy:a,modifiers:[...m,yU,p]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,h(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[i,t,e]),d}function kv(t,e){if(t.contains)return t.contains(e);if(t.compareDocumentPosition)return t===e||!!(t.compareDocumentPosition(e)&16)}var kU=function(){},bU=kU;const xU=pn(bU),j2=()=>{};function SU(t){return t.button===0}function TU(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const Rl=t=>t&&("current"in t?t.current:t),U2={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function EU(t,e=j2,{disabled:n,clickTrigger:i="click"}={}){const r=C.useRef(!1),a=C.useRef(!1),o=C.useCallback(l=>{const c=Rl(t);xU(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),r.current=!c||TU(l)||!SU(l)||!!kv(c,l.target)||a.current,a.current=!1},[t]),s=Us(l=>{const c=Rl(t);c&&kv(c,l.target)?a.current=!0:a.current=!1}),f=Us(l=>{r.current||e(l)});C.useEffect(()=>{var l,c;if(n||t==null)return;const u=wd(Rl(t)),d=u.defaultView||window;let h=(l=d.event)!=null?l:(c=d.parent)==null?void 0:c.event,p=null;U2[i]&&(p=yr(u,U2[i],s,!0));const m=yr(u,i,o,!0),v=yr(u,i,y=>{if(y===h){h=void 0;return}f(y)});let g=[];return"ontouchstart"in u.documentElement&&(g=[].slice.call(u.body.children).map(y=>yr(y,"mousemove",j2))),()=>{p==null||p(),m(),v(),g.forEach(y=>y())}},[t,n,i,o,s,f])}function CU(t){const e={};return Array.isArray(t)?(t==null||t.forEach(n=>{e[n.name]=n}),e):t||e}function AU(t={}){return Array.isArray(t)?t:Object.keys(t).map(e=>(t[e].name=e,t[e]))}function PU({enabled:t,enableEvents:e,placement:n,flip:i,offset:r,fixed:a,containerPadding:o,arrowElement:s,popperConfig:f={}}){var l,c,u,d;const h=CU(f.modifiers);return Object.assign({},f,{placement:n,enabled:t,strategy:a?"fixed":f.strategy,modifiers:AU(Object.assign({},h,{eventListeners:{enabled:e,options:(l=h.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},h.preventOverflow,{options:Object.assign({padding:o},(c=h.preventOverflow)==null?void 0:c.options)}),offset:{options:Object.assign({offset:r},(u=h.offset)==null?void 0:u.options)},arrow:Object.assign({},h.arrow,{enabled:!!s,options:Object.assign({},(d=h.arrow)==null?void 0:d.options,{element:s})}),flip:Object.assign({enabled:!!i},h.flip)}))})}const tx=C.createContext(Am?window:void 0);tx.Provider;function MU(){return C.useContext(tx)}const RU=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",OU=typeof document<"u",FU=OU||RU?C.useLayoutEffect:C.useEffect,z2=t=>!t||typeof t=="function"?t:e=>{t.current=e};function IU(t,e){const n=z2(t),i=z2(e);return r=>{n&&n(r),i&&i(r)}}function bd(t,e){return C.useMemo(()=>IU(t,e),[t,e])}const gh=(t,e)=>Am?t==null?(e||wd()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function V2(t,e){const n=MU(),[i,r]=C.useState(()=>gh(t,n==null?void 0:n.document));if(!i){const a=gh(t);a&&r(a)}return C.useEffect(()=>{},[e,i]),C.useEffect(()=>{const a=gh(t);a!==i&&r(a)},[t,i]),i}function BU({children:t,in:e,onExited:n,mountOnEnter:i,unmountOnExit:r}){const a=C.useRef(null),o=C.useRef(e),s=Us(n);C.useEffect(()=>{e?o.current=!0:s(a.current)},[e,s]);const f=bd(a,sf(t)),l=C.cloneElement(t,{ref:f});return e?l:r||!o.current&&i?null:l}const DU=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function LU(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}function NU(t){let{onEnter:e,onEntering:n,onEntered:i,onExit:r,onExiting:a,onExited:o,addEndListener:s,children:f}=t,l=LU(t,DU);const c=C.useRef(null),u=bd(c,sf(f)),d=w=>k=>{w&&c.current&&w(c.current,k)},h=C.useCallback(d(e),[e]),p=C.useCallback(d(n),[n]),m=C.useCallback(d(i),[i]),v=C.useCallback(d(r),[r]),g=C.useCallback(d(a),[a]),y=C.useCallback(d(o),[o]),_=C.useCallback(d(s),[s]);return Object.assign({},l,{nodeRef:c},e&&{onEnter:h},n&&{onEntering:p},i&&{onEntered:m},r&&{onExit:v},a&&{onExiting:g},o&&{onExited:y},s&&{addEndListener:_},{children:typeof f=="function"?(w,k)=>f(w,Object.assign({},k,{ref:u})):C.cloneElement(f,{ref:u})})}const jU=["component"];function UU(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}const zU=C.forwardRef((t,e)=>{let{component:n}=t,i=UU(t,jU);const r=NU(i);return ve.jsx(n,Object.assign({ref:e},r))});function VU({in:t,onTransition:e}){const n=C.useRef(null),i=C.useRef(!0),r=Us(e);return C2(()=>{if(!n.current)return;let a=!1;return r({in:t,element:n.current,initial:i.current,isStale:()=>a}),()=>{a=!0}},[t,r]),C2(()=>(i.current=!1,()=>{i.current=!0}),[]),n}function HU({children:t,in:e,onExited:n,onEntered:i,transition:r}){const[a,o]=C.useState(!e);e&&a&&o(!1);const s=VU({in:!!e,onTransition:l=>{const c=()=>{l.isStale()||(l.in?i==null||i(l.element,l.initial):(o(!0),n==null||n(l.element)))};Promise.resolve(r(l)).then(c,u=>{throw l.in||o(!0),u})}}),f=bd(s,sf(t));return a&&!e?null:C.cloneElement(t,{ref:f})}function $U(t,e,n){return t?ve.jsx(zU,Object.assign({},n,{component:t})):e?ve.jsx(HU,Object.assign({},n,{transition:e})):ve.jsx(BU,Object.assign({},n))}function H2(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}const GU=()=>{};function WU(t,e,{disabled:n,clickTrigger:i}={}){const r=e||GU;EU(t,r,{disabled:n,clickTrigger:i});const a=Us(o=>{jN(o)&&r(o)});C.useEffect(()=>{if(n||t==null)return;const o=wd(Rl(t));let s=(o.defaultView||window).event;const f=yr(o,"keyup",l=>{if(l===s){s=void 0;return}a(l)});return()=>{f()}},[t,n,a])}const nx=C.forwardRef((t,e)=>{const{flip:n,offset:i,placement:r,containerPadding:a,popperConfig:o={},transition:s,runTransition:f}=t,[l,c]=E2(),[u,d]=E2(),h=bd(c,e),p=V2(t.container),m=V2(t.target),[v,g]=C.useState(!t.show),y=wU(m,l,PU({placement:r,enableEvents:!!t.show,containerPadding:a||5,flip:n,offset:i,arrowElement:u,popperConfig:o}));t.show&&v&&g(!1);const _=(...A)=>{g(!0),t.onExited&&t.onExited(...A)},w=t.show||!v;if(WU(l,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!w)return null;const{onExit:k,onExiting:b,onEnter:x,onEntering:S,onEntered:T}=t;let E=t.children(Object.assign({},y.attributes.popper,{style:y.styles.popper,ref:h}),{popper:y,placement:r,show:!!t.show,arrowProps:Object.assign({},y.attributes.arrow,{style:y.styles.arrow,ref:d})});return E=$U(s,f,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:E,onExit:k,onExiting:b,onExited:_,onEnter:x,onEntering:S,onEntered:T}),p?pa.createPortal(E,p):null});nx.displayName="Overlay";const ix=C.forwardRef(({className:t,bsPrefix:e,as:n="div",...i},r)=>(e=Lr(e,"popover-header"),ve.jsx(n,{ref:r,className:$r(t,e),...i})));ix.displayName="PopoverHeader";const Lm=C.forwardRef(({className:t,bsPrefix:e,as:n="div",...i},r)=>(e=Lr(e,"popover-body"),ve.jsx(n,{ref:r,className:$r(t,e),...i})));Lm.displayName="PopoverBody";function rx(t,e){let n=t;return t==="left"?n=e?"end":"start":t==="right"&&(n=e?"start":"end"),n}function ax(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const ox=C.forwardRef(({bsPrefix:t,placement:e="right",className:n,style:i,children:r,body:a,arrowProps:o,hasDoneInitialMeasure:s,popper:f,show:l,...c},u)=>{const d=Lr(t,"popover"),h=L6(),[p]=(e==null?void 0:e.split("-"))||[],m=rx(p,h);let v=i;return l&&!s&&(v={...i,...ax(f==null?void 0:f.strategy)}),ve.jsxs("div",{ref:u,role:"tooltip",style:v,"x-placement":p,className:$r(n,d,p&&`bs-popover-${m}`),...c,children:[ve.jsx("div",{className:"popover-arrow",...o}),a?ve.jsx(Lm,{children:r}):r]})});ox.displayName="Popover";const qU=Object.assign(ox,{Header:ix,Body:Lm,POPPER_OFFSET:[0,8]}),sx=C.forwardRef(({bsPrefix:t,placement:e="right",className:n,style:i,children:r,arrowProps:a,hasDoneInitialMeasure:o,popper:s,show:f,...l},c)=>{t=Lr(t,"tooltip");const u=L6(),[d]=(e==null?void 0:e.split("-"))||[],h=rx(d,u);let p=i;return f&&!o&&(p={...i,...ax(s==null?void 0:s.strategy)}),ve.jsxs("div",{ref:c,style:p,role:"tooltip","x-placement":d,className:$r(n,t,`bs-tooltip-${h}`),...l,children:[ve.jsx("div",{className:"tooltip-arrow",...a}),ve.jsx("div",{className:`${t}-inner`,children:r})]})});sx.displayName="Tooltip";const XU=Object.assign(sx,{TOOLTIP_OFFSET:[0,6]});function YU(t){const e=C.useRef(null),n=Lr(void 0,"popover"),i=Lr(void 0,"tooltip"),r=C.useMemo(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(e.current){if(H2(e.current,n))return qU.POPPER_OFFSET;if(H2(e.current,i))return XU.TOOLTIP_OFFSET}return[0,0]}}}),[t,n,i]);return[e,[r]]}function KU(t,e){const{ref:n}=t,{ref:i}=e;t.ref=n.__wrapped||(n.__wrapped=r=>n(Pu(r))),e.ref=i.__wrapped||(i.__wrapped=r=>i(Pu(r)))}const fx=C.forwardRef(({children:t,transition:e=gv,popperConfig:n={},rootClose:i=!1,placement:r="top",show:a=!1,...o},s)=>{const f=C.useRef({}),[l,c]=C.useState(null),[u,d]=YU(o.offset),h=Pm(s,u),p=e===!0?gv:e||void 0,m=ZN(v=>{c(v),n==null||n.onFirstUpdate==null||n.onFirstUpdate(v)});return FU(()=>{l&&o.target&&(f.current.scheduleUpdate==null||f.current.scheduleUpdate())},[l,o.target]),C.useEffect(()=>{a||c(null)},[a]),ve.jsx(nx,{...o,ref:h,popperConfig:{...n,modifiers:d.concat(n.modifiers||[]),onFirstUpdate:m},transition:p,rootClose:i,placement:r,show:a,children:(v,{arrowProps:g,popper:y,show:_})=>{var w;KU(v,g);const k=y==null?void 0:y.placement,b=Object.assign(f.current,{state:y==null?void 0:y.state,scheduleUpdate:y==null?void 0:y.update,placement:k,outOfBoundaries:(y==null||(w=y.state)==null||(w=w.modifiersData.hide)==null?void 0:w.isReferenceHidden)||!1,strategy:n.strategy}),x=!!l;return typeof t=="function"?t({...v,placement:k,show:_,...!e&&_&&{className:"show"},popper:b,arrowProps:g,hasDoneInitialMeasure:x}):C.cloneElement(t,{...v,placement:k,arrowProps:g,popper:b,hasDoneInitialMeasure:x,className:$r(t.props.className,!e&&_&&"show"),style:{...t.props.style,...v.style}})}})});fx.displayName="Overlay";function ZU(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function $2(t,e,n){const[i]=e,r=i.currentTarget,a=i.relatedTarget||i.nativeEvent[n];(!a||a!==r)&&!kv(r,a)&&t(...e)}LN.oneOf(["click","hover","focus"]);const BH=({trigger:t=["hover","focus"],overlay:e,children:n,popperConfig:i={},show:r,defaultShow:a=!1,onToggle:o,delay:s,placement:f,flip:l=f&&f.indexOf("auto")!==-1,...c})=>{const u=C.useRef(null),d=Pm(u,sf(n)),h=dj(),p=C.useRef(""),[m,v]=bN(r,a,o),g=ZU(s),{onFocus:y,onBlur:_,onClick:w}=typeof n!="function"?C.Children.only(n).props:{},k=R=>{d(Pu(R))},b=C.useCallback(()=>{if(h.clear(),p.current="show",!g.show){v(!0);return}h.set(()=>{p.current==="show"&&v(!0)},g.show)},[g.show,v,h]),x=C.useCallback(()=>{if(h.clear(),p.current="hide",!g.hide){v(!1);return}h.set(()=>{p.current==="hide"&&v(!1)},g.hide)},[g.hide,v,h]),S=C.useCallback((...R)=>{b(),y==null||y(...R)},[b,y]),T=C.useCallback((...R)=>{x(),_==null||_(...R)},[x,_]),E=C.useCallback((...R)=>{v(!m),w==null||w(...R)},[w,v,m]),A=C.useCallback((...R)=>{$2(b,R,"fromElement")},[b]),I=C.useCallback((...R)=>{$2(x,R,"toElement")},[x]),D=t==null?[]:[].concat(t),$={ref:k};return D.indexOf("click")!==-1&&($.onClick=E),D.indexOf("focus")!==-1&&($.onFocus=S,$.onBlur=T),D.indexOf("hover")!==-1&&($.onMouseOver=A,$.onMouseOut=I),ve.jsxs(ve.Fragment,{children:[typeof n=="function"?n($):C.cloneElement(n,$),ve.jsx(fx,{...c,show:m,onHide:x,flip:l,placement:f,popperConfig:i,target:u.current,children:e})]})};function DH(t){return q({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M6,12.4 L18,12.4 M12.6,7 L18,12.4 L12.6,17.8"},child:[]}]})(t)}function LH(t){return q({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.52,3.43A9.09,9.09,0,0,0,5.7,5.55V2.35H4.07v6.5h6.5V7.21H6.3a7.46,7.46,0,1,1-1.47,8.65l-1.46.73A9.11,9.11,0,1,0,11.52,3.43Z"},child:[]}]})(t)}function NH(t){return q({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.48,3.43A9.09,9.09,0,0,1,18.3,5.55V2.35h1.64v6.5h-6.5V7.21H17.7a7.46,7.46,0,1,0,1.47,8.65l1.46.73A9.11,9.11,0,1,1,12.48,3.43Z"},child:[]}]})(t)}const QU=[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","shaking_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","leftwards_pushing_hand","rightwards_pushing_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","pink_heart","orange_heart","yellow_heart","green_heart","blue_heart","light_blue_heart","purple_heart","brown_heart","black_heart","grey_heart","white_heart","kiss","100","anger","boom","dizzy","sweat_drops","dash","hole","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","moose","donkey","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","wing","black_bird","goose","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","jellyfish","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","hyacinth","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs","mushroom"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","peanuts","beans","chestnut","ginger_root","pea_pod","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","gun","8ball","crystal_ball","magic_wand","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","folding_hand_fan","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","hair_pick","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","maracas","flute","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","bomb","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","nazar_amulet","hamsa","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","khanda","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","wireless","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],JU={100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square","1","2","3","4"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing","shy"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},shaking_face:{id:"shaking_face",name:"Shaking Face",keywords:["dizzy","shock","blurry","earthquake"],skins:[{unified:"1fae8",native:"🫨"}],version:15},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease","covid"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever","covid"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy","cry","tears","sad","grievance"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude","cry"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["2&&(o.children=arguments.length>3?xd.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(a in t.defaultProps)o[a]===void 0&&(o[a]=t.defaultProps[a]);return Ol(t,o,i,r,null)}function Ol(t,e,n,i,r){var a={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++ux};return r==null&&G.vnode!=null&&G.vnode(a),a}function In(){return{current:null}}function Qa(t){return t.children}function Rn(t,e){this.props=t,this.context=e}function Ja(t,e){if(e==null)return t.__?Ja(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e0?Ol(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(d=g[c])===null||d&&h.key==d.key&&h.type===d.type)g[c]=void 0;else for(u=0;u{let t=null;try{navigator.userAgent.includes("jsdom")||(t=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!t)return()=>!1;const e=25,n=20,i=Math.floor(e/2);return t.font=i+"px Arial, Sans-Serif",t.textBaseline="top",t.canvas.width=n*2,t.canvas.height=e,r=>{t.clearRect(0,0,n*2,e),t.fillStyle="#FF0000",t.fillText(r,0,22),t.fillStyle="#0000FF",t.fillText(r,n,22);const a=t.getImageData(0,0,n,e).data,o=a.length;let s=0;for(;s=o)return!1;const f=n+s/4%n,l=Math.floor(s/4/n),c=t.getImageData(f,l,1,1).data;return!(a[s]!==c[0]||a[s+2]!==c[2]||t.measureText(r).width>=n)}})();var K2={latestVersion:uz,noCountryFlags:dz};const xv=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let at=null;function hz(t){at||(at=Mi.get("frequently")||{});const e=t.id||t;e&&(at[e]||(at[e]=0),at[e]+=1,Mi.set("last",e),Mi.set("frequently",at))}function pz({maxFrequentRows:t,perLine:e}){if(!t)return[];at||(at=Mi.get("frequently"));let n=[];if(!at){at={};for(let a in xv.slice(0,e)){const o=xv[a];at[o]=e-a,n.push(o)}return n}const i=t*e,r=Mi.get("last");for(let a in at)n.push(a);if(n.sort((a,o)=>{const s=at[o],f=at[a];return s==f?a.localeCompare(o):s-f}),n.length>i){const a=n.slice(i);n=n.slice(0,i);for(let o of a)o!=r&&delete at[o];r&&n.indexOf(r)==-1&&(delete at[n[n.length-1]],n.splice(-1,1,r)),Mi.set("frequently",at)}return n}var xx={add:hz,get:pz,DEFAULTS:xv},Sx={};Sx=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Vn={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let ht=null,ie=null;const _h={};async function Z2(t){if(_h[t])return _h[t];const n=await(await fetch(t)).json();return _h[t]=n,n}let wh=null,Tx=null,Ex=!1;function Sd(t,{caller:e}={}){return wh||(wh=new Promise(n=>{Tx=n})),t?vz(t):e&&!Ex&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),wh}async function vz(t){Ex=!0;let{emojiVersion:e,set:n,locale:i}=t;if(e||(e=Vn.emojiVersion.value),n||(n=Vn.set.value),i||(i=Vn.locale.value),ie)ie.categories=ie.categories.filter(f=>!f.name);else{ie=(typeof t.data=="function"?await t.data():t.data)||await Z2(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`),ie.emoticons={},ie.natives={},ie.categories.unshift({id:"frequent",emojis:[]});for(const f in ie.aliases){const l=ie.aliases[f],c=ie.emojis[l];c&&(c.aliases||(c.aliases=[]),c.aliases.push(f))}ie.originalCategories=ie.categories}if(ht=(typeof t.i18n=="function"?await t.i18n():t.i18n)||(i=="en"?lx(Sx):await Z2(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),t.custom)for(let f in t.custom){f=parseInt(f);const l=t.custom[f],c=t.custom[f-1];if(!(!l.emojis||!l.emojis.length)){l.id||(l.id=`custom_${f+1}`),l.name||(l.name=ht.categories.custom),c&&!l.icon&&(l.target=c.target||c),ie.categories.push(l);for(const u of l.emojis)ie.emojis[u.id]=u}}t.categories&&(ie.categories=ie.originalCategories.filter(f=>t.categories.indexOf(f.id)!=-1).sort((f,l)=>{const c=t.categories.indexOf(f.id),u=t.categories.indexOf(l.id);return c-u}));let r=null,a=null;n=="native"&&(r=K2.latestVersion(),a=t.noCountryFlags||K2.noCountryFlags());let o=ie.categories.length,s=!1;for(;o--;){const f=ie.categories[o];if(f.id=="frequent"){let{maxFrequentRows:u,perLine:d}=t;u=u>=0?u:Vn.maxFrequentRows.value,d||(d=Vn.perLine.value),f.emojis=xx.get({maxFrequentRows:u,perLine:d})}if(!f.emojis||!f.emojis.length){ie.categories.splice(o,1);continue}const{categoryIcons:l}=t;if(l){const u=l[f.id];u&&!f.icon&&(f.icon=u)}let c=f.emojis.length;for(;c--;){const u=f.emojis[c],d=u.id?u:ie.emojis[u],h=()=>{f.emojis.splice(c,1)};if(!d||t.exceptEmojis&&t.exceptEmojis.includes(d.id)){h();continue}if(r&&d.version>r){h();continue}if(a&&f.id=="flags"&&!wz.includes(d.id)){h();continue}if(!d.search){if(s=!0,d.search=","+[[d.id,!1],[d.name,!0],[d.keywords,!1],[d.emoticons,!1]].map(([m,v])=>{if(m)return(Array.isArray(m)?m:[m]).map(g=>(v?g.split(/[-|_|\s]+/):[g]).map(y=>y.toLowerCase())).flat()}).flat().filter(m=>m&&m.trim()).join(","),d.emoticons)for(const m of d.emoticons)ie.emoticons[m]||(ie.emoticons[m]=d.id);let p=0;for(const m of d.skins){if(!m)continue;p++;const{native:v}=m;v&&(ie.natives[v]=d.id,d.search+=`,${v}`);const g=p==1?"":`:skin-tone-${p}:`;m.shortcodes=`:${d.id}:${g}`}}}}s&&Ba.reset(),Tx()}function Cx(t,e,n){t||(t={});const i={};for(let r in e)i[r]=Ax(r,t,e,n);return i}function Ax(t,e,n,i){const r=n[t];let a=i&&i.getAttribute(t)||(e[t]!=null&&e[t]!=null?e[t]:null);return r&&(a!=null&&r.value&&typeof r.value!=typeof a&&(typeof r.value=="boolean"?a=a!="false":a=r.value.constructor(a)),r.transform&&a&&(a=r.transform(a)),(a==null||r.choices&&r.choices.indexOf(a)==-1)&&(a=r.value)),a}const mz=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let Sv=null;function gz(t){return t.id?t:ie.emojis[t]||ie.emojis[ie.aliases[t]]||ie.emojis[ie.natives[t]]}function yz(){Sv=null}async function _z(t,{maxResults:e,caller:n}={}){if(!t||!t.trim().length)return null;e||(e=90),await Sd(null,{caller:n||"SearchIndex.search"});const i=t.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((s,f,l)=>s.trim()&&l.indexOf(s)==f);if(!i.length)return;let r=Sv||(Sv=Object.values(ie.emojis)),a,o;for(const s of i){if(!r.length)break;a=[],o={};for(const f of r){if(!f.search)continue;const l=f.search.indexOf(`,${s}`);l!=-1&&(a.push(f),o[f.id]||(o[f.id]=0),o[f.id]+=f.id==s?0:l+1)}r=a}return a.length<2||(a.sort((s,f)=>{const l=o[s.id],c=o[f.id];return l==c?s.id.localeCompare(f.id):l-c}),a.length>e&&(a=a.slice(0,e))),a}var Ba={search:_z,get:gz,reset:yz,SHORTCODES_REGEX:mz};const wz=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function kz(t,e){return Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((n,i)=>n==e[i])}async function bz(t=1){for(let e in[...Array(t).keys()])await new Promise(requestAnimationFrame)}function xz(t,{skinIndex:e=0}={}){const n=t.skins[e]||(e=0,t.skins[e]),i={id:t.id,name:t.name,native:n.native,unified:n.unified,keywords:t.keywords,shortcodes:n.shortcodes||t.shortcodes};return t.skins.length>1&&(i.skin=e+1),n.src&&(i.src=n.src),t.aliases&&t.aliases.length&&(i.aliases=t.aliases),t.emoticons&&t.emoticons.length&&(i.emoticons=t.emoticons),i}const Sz={activity:{outline:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:M("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:M("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:M("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:M("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:M("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:M("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:M("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[M("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),M("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:M("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[M("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),M("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:M("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[M("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),M("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:M("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[M("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),M("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:M("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[M("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),M("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:M("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:M("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:M("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},Tz={loupe:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:M("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:M("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var Bu={categories:Sz,search:Tz};function Tv(t){let{id:e,skin:n,emoji:i}=t;if(t.shortcodes){const s=t.shortcodes.match(Ba.SHORTCODES_REGEX);s&&(e=s[1],s[2]&&(n=s[2]))}if(i||(i=Ba.get(e||t.native)),!i)return t.fallback;const r=i.skins[n-1]||i.skins[0],a=r.src||(t.set!="native"&&!t.spritesheet?typeof t.getImageURL=="function"?t.getImageURL(t.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/64/${r.unified}.png`:void 0),o=typeof t.getSpritesheetURL=="function"?t.getSpritesheetURL(t.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/sheets-256/64.png`;return M("span",{class:"emoji-mart-emoji","data-emoji-set":t.set,children:a?M("img",{style:{maxWidth:t.size||"1em",maxHeight:t.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:a}):t.set=="native"?M("span",{style:{fontSize:t.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):M("span",{style:{display:"block",width:t.size,height:t.size,backgroundImage:`url(${o})`,backgroundSize:`${100*ie.sheet.cols}% ${100*ie.sheet.rows}%`,backgroundPosition:`${100/(ie.sheet.cols-1)*r.x}% ${100/(ie.sheet.rows-1)*r.y}%`}})})}const Ez=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class Px extends Ez{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let n in e)this.attributeChangedCallback(n,null,e[n])}attributeChangedCallback(e,n,i){if(!this.component)return;const r=Ax(e,{[e]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let n=null;const i=e.parent||(n=e.ref&&e.ref.current);n&&(n.innerHTML=""),i&&i.appendChild(this)}}}class Cz extends Px{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const n=document.createElement("style");n.textContent=e,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(e,{styles:n}={}){super(e),this.setShadow(),this.injectStyles(n)}}var Mx={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:t=>/\D/.test(t)?t:`${t}px`},set:Vn.set,skin:Vn.skin};class Rx extends Px{async connectedCallback(){const e=Cx(this.props,Mx,this);e.element=this,e.ref=n=>{this.component=n},await Sd(),!this.disconnected&&kx(M(Tv,{...e}),this)}constructor(e){super(e)}}Xt(Rx,"Props",Mx);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",Rx);var Q2,Ev=[],J2=G.__b,ew=G.__r,tw=G.diffed,nw=G.__c,iw=G.unmount;function Az(){var t;for(Ev.sort(function(e,n){return e.__v.__b-n.__v.__b});t=Ev.pop();)if(t.__P)try{t.__H.__h.forEach(Fl),t.__H.__h.forEach(Cv),t.__H.__h=[]}catch(e){t.__H.__h=[],G.__e(e,t.__v)}}G.__b=function(t){J2&&J2(t)},G.__r=function(t){ew&&ew(t);var e=t.__c.__H;e&&(e.__h.forEach(Fl),e.__h.forEach(Cv),e.__h=[])},G.diffed=function(t){tw&&tw(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(Ev.push(e)!==1&&Q2===G.requestAnimationFrame||((Q2=G.requestAnimationFrame)||function(n){var i,r=function(){clearTimeout(a),rw&&cancelAnimationFrame(i),setTimeout(n)},a=setTimeout(r,100);rw&&(i=requestAnimationFrame(r))})(Az))},G.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Fl),n.__h=n.__h.filter(function(i){return!i.__||Cv(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],G.__e(i,n.__v)}}),nw&&nw(t,e)},G.unmount=function(t){iw&&iw(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{Fl(i)}catch(r){e=r}}),e&&G.__e(e,n.__v))};var rw=typeof requestAnimationFrame=="function";function Fl(t){var e=t.__c;typeof e=="function"&&(t.__c=void 0,e())}function Cv(t){t.__c=t.__()}function Pz(t,e){for(var n in e)t[n]=e[n];return t}function aw(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var i in e)if(i!=="__source"&&t[i]!==e[i])return!0;return!1}function Du(t){this.props=t}(Du.prototype=new Rn).isPureReactComponent=!0,Du.prototype.shouldComponentUpdate=function(t,e){return aw(this.props,t)||aw(this.state,e)};var ow=G.__b;G.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ow&&ow(t)};var Mz=G.__e;G.__e=function(t,e,n){if(t.then){for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}Mz(t,e,n)};var sw=G.unmount;function kh(){this.__u=0,this.t=null,this.__b=null}function Ox(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function ol(){this.u=null,this.o=null}G.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),sw&&sw(t)},(kh.prototype=new Rn).__c=function(t,e){var n=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(n);var r=Ox(i.__v),a=!1,o=function(){a||(a=!0,n.__R=null,r?r(s):s())};n.__R=o;var s=function(){if(!--i.__u){if(i.state.__e){var l=i.state.__e;i.__v.__k[0]=function u(d,h,p){return d&&(d.__v=null,d.__k=d.__k&&d.__k.map(function(m){return u(m,h,p)}),d.__c&&d.__c.__P===h&&(d.__e&&p.insertBefore(d.__e,d.__d),d.__c.__e=!0,d.__c.__P=p)),d}(l,l.__c.__P,l.__c.__O)}var c;for(i.setState({__e:i.__b=null});c=i.t.pop();)c.forceUpdate()}},f=e.__h===!0;i.__u++||f||i.setState({__e:i.__b=i.__v.__k[0]}),t.then(o,o)},kh.prototype.componentWillUnmount=function(){this.t=[]},kh.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,s,f){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(l){typeof l.__c=="function"&&l.__c()}),o.__c.__H=null),(o=Pz({},o)).__c!=null&&(o.__c.__P===f&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(l){return a(l,s,f)})),o}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__e&&bv(Qa,null,t.fallback);return r&&(r.__h=null),[bv(Qa,null,e.__e?null:t.children),r]};var fw=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]{const r=n.name||ht.categories[n.id],a=!this.props.unfocused&&n.id==this.state.categoryId;return a&&(e=i),M("button",{"aria-label":r,"aria-selected":a||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:n,i})},children:this.renderIcon(n)})}),M("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=ie.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class Uz extends Du{shouldComponentUpdate(e){for(let n in e)if(n!="children"&&e[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const sl={rowsPerRender:10};class zz extends Rn{getInitialState(e=this.props){return{skin:Mi.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=ht.rtl?"rtl":"ltr",this.refs={menu:In(),navigation:In(),scroll:In(),search:In(),searchInput:In(),skinToneButton:In(),skinToneRadio:In()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const n in e)this.nextState[n]=e[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(n=!0);delete this.nextState;const i=this.getInitialState();if(n)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(e={}){await Sd(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var e;document.removeEventListener("click",this.handleClickOutside),(e=this.darkMedia)==null||e.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const n of this.observers)e.includes(n)||n.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=ie;this.refs.categories=new Map;const n=ie.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const i=(r,a)=>{const o=[];o.__categoryId=a.id,o.__index=r.length,this.grid.push(o);const s=this.grid.length-1,f=s%sl.rowsPerRender?{}:In();return f.index=s,f.posinset=this.grid.setsize+1,r.push(f),o};for(let r of e){const a=[];let o=i(a,r);for(let s of r.emojis)o.length==this.getPerLine()&&(o=i(a,r)),this.grid.setsize+=1,o.push(s);this.refs.categories.set(r.id,{root:In(),rows:a})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:n,emojiButtonSize:i}=e,r=()=>{const{width:o}=n.getBoundingClientRect();return Math.floor(o/i)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(n),this.observers.push(a),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,n]){const i=this.state.searchResults||this.grid,r=i[e]&&i[e][n];if(r)return Ba.get(r)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const n=new Map,i=o=>{o!=e.state.categoryId&&e.setState({categoryId:o})},r={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const f of o){const l=f.target.dataset.id;n.set(l,f.intersectionRatio)}const s=[...n];for(const[f,l]of s)if(l){i(f);break}},r);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const e={...this.state.visibleRows},n=new IntersectionObserver(i=>{for(const r of i){const a=parseInt(r.target.dataset.index);r.isIntersecting?e[a]=!0:delete e[a]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(sl.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*sl.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&n.observe(r.current);this.observers.push(n)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:n,left:i,right:r,up:a,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[f,l]=this.state.pos;const c=(()=>{if(f==0&&l==0&&!e.repeat&&(i||a))return null;if(f==-1)return!e.repeat&&(r||o)&&n.selectionStart==n.value.length?[0,0]:null;if(i||r){let u=s[f];const d=i?-1:1;if(l+=d,!u[l]){if(f+=d,u=s[f],!u)return f=i?0:s.length-1,l=i?0:s[f].length-1,[f,l];l=i?u.length-1:0}return[f,l]}if(a||o){f+=a?-1:1;const u=s[f];return u?(u[l]||(l=u.length-1),[f,l]):(f=a?0:s.length-1,l=a?0:s[f].length-1,[f,l])}})();if(c)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:c,keyboard:!0},()=>{this.scrollTo({row:c[0]})})}scrollTo({categoryId:e,row:n}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,a=r.getBoundingClientRect();let o=0;if(n>=0&&(e=i[n].__categoryId),e&&(o=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(a.top-r.scrollTop)+1),n>=0)if(!n)o=0;else{const s=i[n].__index,f=o+s*this.props.emojiButtonSize,l=f+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(fr.scrollTop+a.height)o=l-a.height;else return}this.ignoreMouse(),r.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:n,pos:i}){if(this.props.onEmojiSelect&&(!n&&i&&(n=this.getEmojiByPos(i)),n)){const r=xz(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&xx.add(r,this.props),this.props.onEmojiSelect(r,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),Mi.set("skin",e)}renderNav(){return M(jz,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return M("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[M("div",{class:"flex flex-middle flex-grow",children:[M("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:M(Tv,{emoji:e,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),M("div",{class:`margin-${this.dir[0]}`,children:e||n?M("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[M("div",{class:"preview-title ellipsis",children:e?e.name:ht.search_no_results_1}),M("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:ht.search_no_results_2})]}):M("div",{class:"preview-placeholder color-c",children:ht.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:n,posinset:i,grid:r}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,f=(e.skins[o-1]||e.skins[0]).native,l=kz(this.state.pos,n),c=n.concat(e.id).join("");return M(Uz,{selected:l,skin:o,size:a,children:M("button",{"aria-label":f,"aria-selected":l||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:u=>this.handleEmojiClick({e:u,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[M("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),M(Tv,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},c)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return M("div",{children:[M("div",{class:"spacer"}),M("div",{class:"flex flex-middle",children:[M("div",{class:"search relative flex-grow",children:[M("input",{type:"search",ref:this.refs.searchInput,placeholder:ht.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),M("span",{class:"icon loupe flex",children:Bu.search.loupe}),this.state.searchResults&&M("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Bu.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?M("div",{class:"category",ref:this.refs.search,children:[M("div",{class:`sticky padding-small align-${this.dir[0]}`,children:ht.categories.search}),M("div",{children:e.length?e.map((n,i)=>M("div",{class:"flex",children:n.map((r,a)=>this.renderEmojiButton(r,{pos:[i,a],posinset:i*this.props.perLine+a+1,grid:e}))})):M("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&M("a",{onClick:this.props.onAddCustomEmoji,children:ht.add_custom})})})]}):null}renderCategories(){const{categories:e}=ie,n=!!this.state.searchResults,i=this.getPerLine();return M("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:e.map(r=>{const{root:a,rows:o}=this.refs.categories.get(r.id);return M("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:a,children:[M("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||ht.categories[r.id]}),M("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((s,f)=>{const l=s.index-s.index%sl.rowsPerRender,c=this.state.visibleRows[l],u="current"in s?s:void 0;if(!c&&!u)return null;const d=f*i,h=d+i,p=r.emojis.slice(d,h);return p.length{if(!m)return M("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const g=Ba.get(m);return this.renderEmojiButton(g,{pos:[s.index,v],posinset:s.posinset+v,grid:this.grid})})},s.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:M("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:M("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":ht.skins.choose,title:ht.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:M("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),n=e?e.name:"";return M("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-n.right-3:r.left=n.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-n.top+6:(r.top=n.bottom-i.top+3,r.bottom="auto"),M("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":ht.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(a=>{const o=a+1,s=this.state.skin==o;return M("div",{children:[M("input",{type:"radio",name:"skin-tone",value:o,"aria-label":ht.skins[o],ref:s?this.refs.skinToneRadio:null,defaultChecked:s,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:f=>{(f.code=="Enter"||f.code=="Space"||f.code=="Tab")&&(f.preventDefault(),this.handleSkinClick(o))}}),M("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[M("span",{class:`skin-tone skin-tone-${o}`}),M("span",{class:"margin-small-lr",children:ht.skins[o]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return M("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&M("div",{class:"padding-lr",children:this.renderSearch()}),M("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:M("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),Xt(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),Xt(this,"handleClickOutside",n=>{const{element:i}=this.props;n.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),Xt(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),Xt(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),Xt(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Xt(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:i}=n,r=await Ba.search(i),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},a);const o=n.selectionStart==n.value.length?[0,0]:[-1,-1],s=[];s.setsize=r.length;let f=null;for(let l of r)(!s.length||f.length==this.getPerLine())&&(f=[],f.__categoryId="search",f.__index=s.length,s.push(f)),f.push(l);this.ignoreMouse(),this.setState({searchResults:s,pos:o},a)}),Xt(this,"handleSearchKeyDown",n=>{const i=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:i,left:!0});break;case"ArrowRight":this.navigate({e:n,input:i,right:!0});break;case"ArrowUp":this.navigate({e:n,input:i,up:!0});break;case"ArrowDown":this.navigate({e:n,input:i,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),Xt(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),Xt(this,"handleCategoryClick",({category:n,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:n.id})}),Xt(this,"openSkins",n=>{const{currentTarget:i}=n,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await bz(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class jm extends Cz{async connectedCallback(){const e=Cx(this.props,Vn,this);e.element=this,e.ref=n=>{this.component=n},await Sd(e),!this.disconnected&&kx(M(zz,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:lx(Fx)})}}Xt(jm,"Props",Vn);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",jm);var Fx={};Fx=`:host { width: min-content; height: 435px; min-height: 230px; border-radius: var(--border-radius); box-shadow: var(--shadow); --border-radius: 10px; --category-icon-size: 18px; --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; --font-size: 15px; --preview-placeholder-size: 21px; --preview-title-size: 1.1em; --preview-subtitle-size: .9em; --shadow-color: 0deg 0% 0%; --shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14); display: flex; } [data-theme="light"] { --em-rgb-color: var(--rgb-color, 34, 36, 39); --em-rgb-accent: var(--rgb-accent, 34, 102, 237); --em-rgb-background: var(--rgb-background, 255, 255, 255); --em-rgb-input: var(--rgb-input, 255, 255, 255); --em-color-border: var(--color-border, rgba(0, 0, 0, .05)); --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1)); } [data-theme="dark"] { --em-rgb-color: var(--rgb-color, 222, 222, 221); --em-rgb-accent: var(--rgb-accent, 58, 130, 247); --em-rgb-background: var(--rgb-background, 21, 22, 23); --em-rgb-input: var(--rgb-input, 0, 0, 0); --em-color-border: var(--color-border, rgba(255, 255, 255, .1)); --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2)); } #root { --color-a: rgb(var(--em-rgb-color)); --color-b: rgba(var(--em-rgb-color), .65); --color-c: rgba(var(--em-rgb-color), .45); --padding: 12px; --padding-small: calc(var(--padding) / 2); --sidebar-width: 16px; --duration: 225ms; --duration-fast: 125ms; --duration-instant: 50ms; --easing: cubic-bezier(.4, 0, .2, 1); width: 100%; text-align: left; border-radius: var(--border-radius); background-color: rgb(var(--em-rgb-background)); position: relative; } @media (prefers-reduced-motion) { #root { --duration: 0; --duration-fast: 0; --duration-instant: 0; } } #root[data-menu] button { cursor: auto; } #root[data-menu] .menu button { cursor: pointer; } :host, #root, input, button { color: rgb(var(--em-rgb-color)); font-family: var(--font-family); font-size: var(--font-size); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: normal; } *, :before, :after { box-sizing: border-box; min-width: 0; margin: 0; padding: 0; } .relative { position: relative; } .flex { display: flex; } .flex-auto { flex: none; } .flex-center { justify-content: center; } .flex-column { flex-direction: column; } .flex-grow { flex: auto; } .flex-middle { align-items: center; } .flex-wrap { flex-wrap: wrap; } .padding { padding: var(--padding); } .padding-t { padding-top: var(--padding); } .padding-lr { padding-left: var(--padding); padding-right: var(--padding); } .padding-r { padding-right: var(--padding); } .padding-small { padding: var(--padding-small); } .padding-small-b { padding-bottom: var(--padding-small); } .padding-small-lr { padding-left: var(--padding-small); padding-right: var(--padding-small); } .margin { margin: var(--padding); } .margin-r { margin-right: var(--padding); } .margin-l { margin-left: var(--padding); } .margin-small-l { margin-left: var(--padding-small); } .margin-small-lr { margin-left: var(--padding-small); margin-right: var(--padding-small); } .align-l { text-align: left; } .align-r { text-align: right; } .color-a { color: var(--color-a); } .color-b { color: var(--color-b); } .color-c { color: var(--color-c); } .ellipsis { white-space: nowrap; max-width: 100%; width: auto; text-overflow: ellipsis; overflow: hidden; } .sr-only { width: 1px; height: 1px; position: absolute; top: auto; left: -10000px; overflow: hidden; } a { cursor: pointer; color: rgb(var(--em-rgb-accent)); } a:hover { text-decoration: underline; } .spacer { height: 10px; } [dir="rtl"] .scroll { padding-left: 0; padding-right: var(--padding); } .scroll { padding-right: 0; overflow-x: hidden; overflow-y: auto; } .scroll::-webkit-scrollbar { width: var(--sidebar-width); height: var(--sidebar-width); } .scroll::-webkit-scrollbar-track { border: 0; } .scroll::-webkit-scrollbar-button { width: 0; height: 0; display: none; } .scroll::-webkit-scrollbar-corner { background-color: rgba(0, 0, 0, 0); } .scroll::-webkit-scrollbar-thumb { min-height: 20%; min-height: 65px; border: 4px solid rgb(var(--em-rgb-background)); border-radius: 8px; } .scroll::-webkit-scrollbar-thumb:hover { background-color: var(--em-color-border-over) !important; } .scroll:hover::-webkit-scrollbar-thumb { background-color: var(--em-color-border); } .sticky { z-index: 1; background-color: rgba(var(--em-rgb-background), .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-weight: 500; position: sticky; top: -1px; } [dir="rtl"] .search input[type="search"] { padding: 10px 2.2em 10px 2em; } [dir="rtl"] .search .loupe { left: auto; right: .7em; } [dir="rtl"] .search .delete { left: .7em; right: auto; } .search { z-index: 2; position: relative; } .search input, .search button { font-size: calc(var(--font-size) - 1px); } .search input[type="search"] { width: 100%; background-color: var(--em-color-border); transition-duration: var(--duration); transition-property: background-color, box-shadow; transition-timing-function: var(--easing); border: 0; border-radius: 10px; outline: 0; padding: 10px 2em 10px 2.2em; display: block; } .search input[type="search"]::-ms-input-placeholder { color: inherit; opacity: .6; } .search input[type="search"]::placeholder { color: inherit; opacity: .6; } .search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration { -webkit-appearance: none; -ms-appearance: none; appearance: none; } .search input[type="search"]:focus { background-color: rgb(var(--em-rgb-input)); box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2); } .search .icon { z-index: 1; color: rgba(var(--em-rgb-color), .7); position: absolute; top: 50%; transform: translateY(-50%); } .search .loupe { pointer-events: none; left: .7em; } .search .delete { right: .7em; } svg { fill: currentColor; width: 1em; height: 1em; } button { -webkit-appearance: none; -ms-appearance: none; appearance: none; cursor: pointer; color: currentColor; background-color: rgba(0, 0, 0, 0); border: 0; } #nav { z-index: 2; padding-top: 12px; padding-bottom: 12px; padding-right: var(--sidebar-width); position: relative; } #nav button { color: var(--color-b); transition: color var(--duration) var(--easing); } #nav button:hover { color: var(--color-a); } #nav svg, #nav img { width: var(--category-icon-size); height: var(--category-icon-size); } #nav[dir="rtl"] .bar { left: auto; right: 0; } #nav .bar { width: 100%; height: 3px; background-color: rgb(var(--em-rgb-accent)); transition: transform var(--duration) var(--easing); border-radius: 3px 3px 0 0; position: absolute; bottom: -12px; left: 0; } #nav button[aria-selected] { color: rgb(var(--em-rgb-accent)); } #preview { z-index: 2; padding: calc(var(--padding) + 4px) var(--padding); padding-right: var(--sidebar-width); position: relative; } #preview .preview-placeholder { font-size: var(--preview-placeholder-size); } #preview .preview-title { font-size: var(--preview-title-size); } #preview .preview-subtitle { font-size: var(--preview-subtitle-size); } #nav:before, #preview:before { content: ""; height: 2px; position: absolute; left: 0; right: 0; } #nav[data-position="top"]:before, #preview[data-position="top"]:before { background: linear-gradient(to bottom, var(--em-color-border), transparent); top: 100%; } #nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before { background: linear-gradient(to top, var(--em-color-border), transparent); bottom: 100%; } .category:last-child { min-height: calc(100% + 1px); } .category button { font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif; position: relative; } .category button > * { position: relative; } .category button .background { opacity: 0; background-color: var(--em-color-border); transition: opacity var(--duration-fast) var(--easing) var(--duration-instant); position: absolute; top: 0; bottom: 0; left: 0; right: 0; } .category button:hover .background { transition-duration: var(--duration-instant); transition-delay: 0s; } .category button[aria-selected] .background { opacity: 1; } .category button[data-keyboard] .background { transition: none; } .row { width: 100%; position: absolute; top: 0; left: 0; } .skin-tone-button { border: 1px solid rgba(0, 0, 0, 0); border-radius: 100%; } .skin-tone-button:hover { border-color: var(--em-color-border); } .skin-tone-button:active .skin-tone { transform: scale(.85) !important; } .skin-tone-button .skin-tone { transition: transform var(--duration) var(--easing); } .skin-tone-button[aria-selected] { background-color: var(--em-color-border); border-top-color: rgba(0, 0, 0, .05); border-bottom-color: rgba(0, 0, 0, 0); border-left-width: 0; border-right-width: 0; } .skin-tone-button[aria-selected] .skin-tone { transform: scale(.9); } .menu { z-index: 2; white-space: nowrap; border: 1px solid var(--em-color-border); background-color: rgba(var(--em-rgb-background), .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition-property: opacity, transform; transition-duration: var(--duration); transition-timing-function: var(--easing); border-radius: 10px; padding: 4px; position: absolute; box-shadow: 1px 1px 5px rgba(0, 0, 0, .05); } .menu.hidden { opacity: 0; } .menu[data-position="bottom"] { transform-origin: 100% 100%; } .menu[data-position="bottom"].hidden { transform: scale(.9)rotate(-3deg)translateY(5%); } .menu[data-position="top"] { transform-origin: 100% 0; } .menu[data-position="top"].hidden { transform: scale(.9)rotate(3deg)translateY(-5%); } .menu input[type="radio"] { clip: rect(0 0 0 0); width: 1px; height: 1px; border: 0; margin: 0; padding: 0; position: absolute; overflow: hidden; } .menu input[type="radio"]:checked + .option { box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent)); } .option { width: 100%; border-radius: 6px; padding: 4px 6px; } .option:hover { color: #fff; background-color: rgb(var(--em-rgb-accent)); } .skin-tone { width: 16px; height: 16px; border-radius: 100%; display: inline-block; position: relative; overflow: hidden; } .skin-tone:after { content: ""; mix-blend-mode: overlay; background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0)); border: 1px solid rgba(0, 0, 0, .8); border-radius: 100%; position: absolute; top: 0; bottom: 0; left: 0; right: 0; box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff; } .skin-tone-1 { background-color: #ffc93a; } .skin-tone-2 { background-color: #ffdab7; } .skin-tone-3 { background-color: #e7b98f; } .skin-tone-4 { background-color: #c88c61; } .skin-tone-5 { background-color: #a46134; } .skin-tone-6 { background-color: #5d4437; } [data-index] { justify-content: space-between; } [data-emoji-set="twitter"] .skin-tone:after { box-shadow: none; border-color: rgba(0, 0, 0, .5); } [data-emoji-set="twitter"] .skin-tone-1 { background-color: #fade72; } [data-emoji-set="twitter"] .skin-tone-2 { background-color: #f3dfd0; } [data-emoji-set="twitter"] .skin-tone-3 { background-color: #eed3a8; } [data-emoji-set="twitter"] .skin-tone-4 { background-color: #cfad8d; } [data-emoji-set="twitter"] .skin-tone-5 { background-color: #a8805d; } [data-emoji-set="twitter"] .skin-tone-6 { background-color: #765542; } [data-emoji-set="google"] .skin-tone:after { box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4); } [data-emoji-set="google"] .skin-tone-1 { background-color: #f5c748; } [data-emoji-set="google"] .skin-tone-2 { background-color: #f1d5aa; } [data-emoji-set="google"] .skin-tone-3 { background-color: #d4b48d; } [data-emoji-set="google"] .skin-tone-4 { background-color: #aa876b; } [data-emoji-set="google"] .skin-tone-5 { background-color: #916544; } [data-emoji-set="google"] .skin-tone-6 { background-color: #61493f; } [data-emoji-set="facebook"] .skin-tone:after { border-color: rgba(0, 0, 0, .4); box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff; } [data-emoji-set="facebook"] .skin-tone-1 { background-color: #f5c748; } [data-emoji-set="facebook"] .skin-tone-2 { background-color: #f1d5aa; } [data-emoji-set="facebook"] .skin-tone-3 { background-color: #d4b48d; } [data-emoji-set="facebook"] .skin-tone-4 { background-color: #aa876b; } [data-emoji-set="facebook"] .skin-tone-5 { background-color: #916544; } [data-emoji-set="facebook"] .skin-tone-6 { background-color: #61493f; } `;function UH(t){const e=C.useRef(null),n=C.useRef(null);return n.current&&n.current.update(t),C.useEffect(()=>(n.current=new jm({...t,ref:e}),()=>{n.current=null}),[]),Ce.createElement("div",{ref:e})}var Ix={exports:{}},Vz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Hz=Vz,$z=Hz;function Bx(){}function Dx(){}Dx.resetWarningCache=Bx;var Gz=function(){function t(i,r,a,o,s,f){if(f!==$z){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Dx,resetWarningCache:Bx};return n.PropTypes=n,n};Ix.exports=Gz();var Wz=Ix.exports;const ct=pn(Wz);var qz=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,r,a;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(r=i;r--!==0;)if(!t(e[r],n[r]))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(a=Object.keys(e),i=a.length,i!==Object.keys(n).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[r]))return!1;for(r=i;r--!==0;){var o=a[r];if(!t(e[o],n[o]))return!1}return!0}return e!==e&&n!==n};const Xz=pn(qz);var Av={exports:{}},Lx;/** * @link https://github.com/gajus/sister for the canonical source repository * @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause */Lx=function(){var t={},e={};return t.on=function(n,i){var r={name:n,handler:i};return e[n]=e[n]||[],e[n].unshift(r),r},t.off=function(n){var i=e[n.name].indexOf(n);i!==-1&&e[n.name].splice(i,1)},t.trigger=function(n,i){var r=e[n],a;if(r)for(a=r.length;a--;)r[a].handler(i)},t};var Yz=Lx,Pv={exports:{}},Kz=function(e,n,i){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof n=="function"&&(i=n,n={}),n=n||{},i=i||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async="async"in n?!!n.async:!0,a.src=e,n.attrs&&Zz(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?hw:Qz;o(a,i),a.onload||hw(a,i),r.appendChild(a)};function Zz(t,e){for(var n in e)t.setAttribute(n,e[n])}function hw(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function Qz(t,e){t.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,t))}}(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=Kz,i=r(n);function r(a){return a&&a.__esModule?a:{default:a}}e.default=function(a){var o=new Promise(function(s){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){s(window.YT);return}else{var f=window.location.protocol==="http:"?"http:":"https:";(0,i.default)(f+"//www.youtube.com/iframe_api",function(c){c&&a.trigger("error",c)})}var l=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){l&&l(),s(window.YT)}});return o},t.exports=e.default})(Pv,Pv.exports);var Jz=Pv.exports,Mv={exports:{}},Rv={exports:{}},Ov={exports:{}},Hs=1e3,$s=Hs*60,Gs=$s*60,Ws=Gs*24,eV=Ws*365.25,tV=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return nV(t);if(n==="number"&&isNaN(t)===!1)return e.long?rV(t):iV(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function nV(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*eV;case"days":case"day":case"d":return n*Ws;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Gs;case"minutes":case"minute":case"mins":case"min":case"m":return n*$s;case"seconds":case"second":case"secs":case"sec":case"s":return n*Hs;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function iV(t){return t>=Ws?Math.round(t/Ws)+"d":t>=Gs?Math.round(t/Gs)+"h":t>=$s?Math.round(t/$s)+"m":t>=Hs?Math.round(t/Hs)+"s":t+"ms"}function rV(t){return fl(t,Ws,"day")||fl(t,Gs,"hour")||fl(t,$s,"minute")||fl(t,Hs,"second")||t+" ms"}function fl(t,e,n){if(!(t=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}e.formatters.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}};function r(l){var c=this.useColors;if(l[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+l[0]+(c?"%c ":" ")+"+"+e.humanize(this.diff),!!c){var u="color: "+this.color;l.splice(1,0,u,"color: inherit");var d=0,h=0;l[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(d++,p==="%c"&&(h=d))}),l.splice(h,0,u)}}function a(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(l){try{l==null?e.storage.removeItem("debug"):e.storage.debug=l}catch{}}function s(){var l;try{l=e.storage.debug}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=n.DEBUG),l}e.enable(s());function f(){try{return window.localStorage}catch{}}})(Rv,Rv.exports);var oV=Rv.exports,Fv={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],t.exports=e.default})(Fv,Fv.exports);var sV=Fv.exports,Iv={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],t.exports=e.default})(Iv,Iv.exports);var fV=Iv.exports,Bv={exports:{}},Dv={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},t.exports=e.default})(Dv,Dv.exports);var lV=Dv.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=lV,i=r(n);function r(a){return a&&a.__esModule?a:{default:a}}e.default={pauseVideo:{acceptableStates:[i.default.ENDED,i.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[i.default.ENDED,i.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[i.default.ENDED,i.default.PLAYING,i.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},t.exports=e.default})(Bv,Bv.exports);var uV=Bv.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=oV,i=c(n),r=sV,a=c(r),o=fV,s=c(o),f=uV,l=c(f);function c(h){return h&&h.__esModule?h:{default:h}}var u=(0,i.default)("youtube-player"),d={};d.proxyEvents=function(h){var p={},m=function(x){var S="on"+x.slice(0,1).toUpperCase()+x.slice(1);p[S]=function(T){u('event "%s"',S,T),h.trigger(x,T)}},v=!0,g=!1,y=void 0;try{for(var _=s.default[Symbol.iterator](),w;!(v=(w=_.next()).done);v=!0){var k=w.value;m(k)}}catch(b){g=!0,y=b}finally{try{!v&&_.return&&_.return()}finally{if(g)throw y}}return p},d.promisifyPlayer=function(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m={},v=function(S){p&&l.default[S]?m[S]=function(){for(var T=arguments.length,E=Array(T),A=0;A1&&arguments[1]!==void 0?arguments[1]:{},h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=(0,r.default)();if(c||(c=(0,o.default)(p)),d.events)throw new Error("Event handlers cannot be overwritten.");if(typeof u=="string"&&!document.getElementById(u))throw new Error('Element "'+u+'" does not exist.');d.events=f.default.proxyEvents(p);var m=new Promise(function(g){if((typeof u>"u"?"undefined":n(u))==="object"&&u.playVideo instanceof Function){var y=u;g(y)}else c.then(function(_){var w=new _.Player(u,d);return p.on("ready",function(){g(w)}),null})}),v=f.default.promisifyPlayer(m,h);return v.on=p.on,v.off=p.off,v},t.exports=e.default})(Av,Av.exports);var cV=Av.exports;const hV=pn(cV);function Il(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Il=function(n){return typeof n}:Il=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Il(t)}function pV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vV(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Lu(t){return Lu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Lu(t)}function pw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Sa(t){for(var e=1;e"u")){var a=Sa(Sa({},r.props.opts),{},{videoId:r.props.videoId});r.internalPlayer=hV(r.container,a),r.internalPlayer.on("ready",r.onPlayerReady),r.internalPlayer.on("error",r.onPlayerError),r.internalPlayer.on("stateChange",r.onPlayerStateChange),r.internalPlayer.on("playbackRateChange",r.onPlayerPlaybackRateChange),r.internalPlayer.on("playbackQualityChange",r.onPlayerPlaybackQualityChange)}}),Ft(Wt(r),"resetPlayer",function(){return r.internalPlayer.destroy().then(r.createPlayer)}),Ft(Wt(r),"updatePlayer",function(){r.internalPlayer.getIframe().then(function(a){r.props.id?a.setAttribute("id",r.props.id):a.removeAttribute("id"),r.props.className?a.setAttribute("class",r.props.className):a.removeAttribute("class"),r.props.opts&&r.props.opts.width?a.setAttribute("width",r.props.opts.width):a.removeAttribute("width"),r.props.opts&&r.props.opts.height?a.setAttribute("height",r.props.opts.height):a.removeAttribute("height"),typeof r.props.title=="string"?a.setAttribute("title",r.props.title):a.setAttribute("title","YouTube video player")})}),Ft(Wt(r),"getInternalPlayer",function(){return r.internalPlayer}),Ft(Wt(r),"updateVideo",function(){if(typeof r.props.videoId>"u"||r.props.videoId===null){r.internalPlayer.stopVideo();return}var a=!1,o={videoId:r.props.videoId};if("playerVars"in r.props.opts&&(a=r.props.opts.playerVars.autoplay===1,"start"in r.props.opts.playerVars&&(o.startSeconds=r.props.opts.playerVars.start),"end"in r.props.opts.playerVars&&(o.endSeconds=r.props.opts.playerVars.end)),a){r.internalPlayer.loadVideoById(o);return}r.internalPlayer.cueVideoById(o)}),Ft(Wt(r),"refContainer",function(a){r.container=a}),r.container=null,r.internalPlayer=null,r}return mV(n,[{key:"componentDidMount",value:function(){this.createPlayer()}},{key:"componentDidUpdate",value:function(r){xV(r,this.props)&&this.updatePlayer(),bV(r,this.props)&&this.resetPlayer(),kV(r,this.props)&&this.updateVideo()}},{key:"componentWillUnmount",value:function(){this.internalPlayer.destroy()}},{key:"render",value:function(){return Ce.createElement("div",{className:this.props.containerClassName},Ce.createElement("div",{id:this.props.id,className:this.props.className,ref:this.refContainer,loading:this.props.loading}))}}]),n}(Ce.Component);Ft(Um,"PlayerState",{UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5});Um.propTypes={videoId:ct.string,id:ct.string,className:ct.string,containerClassName:ct.string,title:ct.string,loading:ct.oneOf(["lazy","eager","auto"]),opts:ct.objectOf(ct.any),onReady:ct.func,onError:ct.func,onPlay:ct.func,onPause:ct.func,onEnd:ct.func,onStateChange:ct.func,onPlaybackRateChange:ct.func,onPlaybackQualityChange:ct.func};Um.defaultProps={videoId:null,id:null,className:null,loading:null,opts:{},containerClassName:"",onReady:function(){},onError:function(){},onPlay:function(){},onPause:function(){},onEnd:function(){},onStateChange:function(){},onPlaybackRateChange:function(){},onPlaybackQualityChange:function(){},title:null};export{lH as $,tO as A,ke as B,Di as C,O1 as D,MV as E,$1 as F,Vp as G,IV as H,DV as I,GV as J,AH as K,CH as L,_t as M,LV as N,PH as O,ge as P,NV as Q,te as R,ud as S,We as T,OH as U,RH as V,wH as W,_H as X,eH as Y,rH as Z,fH as _,AV as a,uH as a0,ZV as a1,QV as a2,dH as a3,sH as a4,qV as a5,XV as a6,nH as a7,pH as a8,UV as a9,jH as aA,MH as aB,Um as aC,sj as aD,xH as aE,bH as aF,SH as aG,uS as aH,tH as aa,VV as ab,jV as ac,zV as ad,qU as ae,BH as af,gH as ag,cH as ah,fx as ai,kH as aj,aH as ak,vH as al,$V as am,TH as an,EH as ao,JV as ap,KV as aq,XU as ar,DH as as,LH as at,NH as au,oH as av,HV as aw,hH as ax,yH as ay,UH as az,Br as b,NM as c,Vy as d,X as e,PV as f,$i as g,TM as h,CV as i,OV as j,EV as k,TV as l,SV as m,sF as n,bn as o,vF as p,FV as q,RV as r,H as s,bF as t,C as u,ve as v,YV as w,WV as x,iH as y,mH as z};